From 4e84560bedeb8d7a9eaf8717d452382dbe0b7b93 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 8 Mar 2026 20:57:36 -0400 Subject: [PATCH] Regenerate TypeScript API client with new models and updated fields Adds completion messages/tools, git author/webhook config, checkpoint, log, pull request config, and sandbox env/exe support. Co-Authored-By: Claude Opus 4.6 --- .../src/.openapi-generator/FILES | 9 ++++ .../src/models/checkpoint-configuration.ts | 26 ++++++++++ .../src/models/completion-content-part.ts | 27 ++++++++++ .../src/models/completion-message.ts | 52 +++++++++++++++++++ .../src/models/completion-response.ts | 10 ++-- .../src/models/completion-tool-choice.ts | 40 ++++++++++++++ .../src/models/completion-tool-definition.ts | 31 +++++++++++ .../src/models/create-completion-request.ts | 33 ++++++++++-- .../src/models/git-author-configuration.ts | 30 +++++++++++ .../src/models/git-configuration.ts | 12 +++++ packages/arc-api-client/src/models/index.ts | 9 ++++ .../src/models/log-configuration.ts | 26 ++++++++++ .../src/models/pull-request-configuration.ts | 26 ++++++++++ .../src/models/sandbox-configuration.ts | 8 +++ .../src/models/server-configuration.ts | 12 +++++ .../src/models/webhook-configuration.ts | 33 ++++++++++++ 16 files changed, 376 insertions(+), 8 deletions(-) create mode 100644 packages/arc-api-client/src/models/checkpoint-configuration.ts create mode 100644 packages/arc-api-client/src/models/completion-content-part.ts create mode 100644 packages/arc-api-client/src/models/completion-message.ts create mode 100644 packages/arc-api-client/src/models/completion-tool-choice.ts create mode 100644 packages/arc-api-client/src/models/completion-tool-definition.ts create mode 100644 packages/arc-api-client/src/models/git-author-configuration.ts create mode 100644 packages/arc-api-client/src/models/log-configuration.ts create mode 100644 packages/arc-api-client/src/models/pull-request-configuration.ts create mode 100644 packages/arc-api-client/src/models/webhook-configuration.ts diff --git a/packages/arc-api-client/src/.openapi-generator/FILES b/packages/arc-api-client/src/.openapi-generator/FILES index 793f5d7ac..c7e4d6194 100644 --- a/packages/arc-api-client/src/.openapi-generator/FILES +++ b/packages/arc-api-client/src/.openapi-generator/FILES @@ -28,8 +28,13 @@ models/auth-configuration.ts models/board-column.ts models/check-run-status.ts models/check-run.ts +models/checkpoint-configuration.ts models/code-location.ts +models/completion-content-part.ts +models/completion-message.ts models/completion-response.ts +models/completion-tool-choice.ts +models/completion-tool-definition.ts models/completion-usage.ts models/control-detail.ts models/control-info.ts @@ -54,6 +59,7 @@ models/file-checkpoint.ts models/file-diff.ts models/friction-kind.ts models/friction-point.ts +models/git-author-configuration.ts models/git-configuration.ts models/health-response.ts models/history-entry.ts @@ -62,6 +68,7 @@ models/index.ts models/learning-category.ts models/learning.ts models/llm-configuration.ts +models/log-configuration.ts models/model-costs.ts models/model-features.ts models/model-limits.ts @@ -87,6 +94,7 @@ models/paginated-workflow-list.ts models/pagination-meta.ts models/preview-url-request.ts models/preview-url-response.ts +models/pull-request-configuration.ts models/question-type.ts models/recent-control-result.ts models/repository-reference.ts @@ -150,6 +158,7 @@ models/verification-mode.ts models/verification-result.ts models/verification-type.ts models/web-configuration.ts +models/webhook-configuration.ts models/workflow-detail.ts models/workflow-last-run.ts models/workflow-list-item.ts diff --git a/packages/arc-api-client/src/models/checkpoint-configuration.ts b/packages/arc-api-client/src/models/checkpoint-configuration.ts new file mode 100644 index 000000000..2529c0c88 --- /dev/null +++ b/packages/arc-api-client/src/models/checkpoint-configuration.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Checkpoint configuration for file exclusion. + */ +export interface CheckpointConfiguration { + /** + * Glob patterns to exclude from checkpoints. + */ + 'exclude_globs'?: Array; +} + diff --git a/packages/arc-api-client/src/models/completion-content-part.ts b/packages/arc-api-client/src/models/completion-content-part.ts new file mode 100644 index 000000000..35a718678 --- /dev/null +++ b/packages/arc-api-client/src/models/completion-content-part.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * A content part within a message, discriminated by `kind`. + */ +export interface CompletionContentPart { + /** + * Content part type: text, image, tool_call, tool_result, thinking, etc. + */ + 'kind': string; + 'data'?: any; +} + diff --git a/packages/arc-api-client/src/models/completion-message.ts b/packages/arc-api-client/src/models/completion-message.ts new file mode 100644 index 000000000..eebd411a4 --- /dev/null +++ b/packages/arc-api-client/src/models/completion-message.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CompletionContentPart } from './completion-content-part'; + +/** + * A message in the conversation. + */ +export interface CompletionMessage { + /** + * The role of the message author. + */ + 'role': CompletionMessageRoleEnum; + /** + * Content parts of the message. + */ + 'content': Array; + /** + * Optional name for the message author. + */ + 'name'?: string; + /** + * Tool call ID for tool result messages. + */ + 'tool_call_id'?: string; +} + +export const CompletionMessageRoleEnum = { + SYSTEM: 'system', + USER: 'user', + ASSISTANT: 'assistant', + TOOL: 'tool', + DEVELOPER: 'developer' +} as const; + +export type CompletionMessageRoleEnum = typeof CompletionMessageRoleEnum[keyof typeof CompletionMessageRoleEnum]; + + diff --git a/packages/arc-api-client/src/models/completion-response.ts b/packages/arc-api-client/src/models/completion-response.ts index 9a0dca0fa..9ddc8c286 100644 --- a/packages/arc-api-client/src/models/completion-response.ts +++ b/packages/arc-api-client/src/models/completion-response.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import type { CompletionMessage } from './completion-message'; // May contain unused imports in some cases // @ts-ignore import type { CompletionUsage } from './completion-usage'; @@ -20,12 +23,9 @@ import type { CompletionUsage } from './completion-usage'; export interface CompletionResponse { 'id': string; 'model': string; + 'message': CompletionMessage; /** - * Generated text. - */ - 'content': string; - /** - * Why generation stopped (end_turn, max_tokens). + * Why generation stopped (end_turn, max_tokens, tool_calls). */ 'stop_reason': string; 'usage': CompletionUsage; diff --git a/packages/arc-api-client/src/models/completion-tool-choice.ts b/packages/arc-api-client/src/models/completion-tool-choice.ts new file mode 100644 index 000000000..c33fcf159 --- /dev/null +++ b/packages/arc-api-client/src/models/completion-tool-choice.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Controls how the model selects tools. + */ +export interface CompletionToolChoice { + /** + * Tool selection mode. + */ + 'mode': CompletionToolChoiceModeEnum; + /** + * Required when mode is \"named\". + */ + 'tool_name'?: string; +} + +export const CompletionToolChoiceModeEnum = { + AUTO: 'auto', + NONE: 'none', + REQUIRED: 'required', + NAMED: 'named' +} as const; + +export type CompletionToolChoiceModeEnum = typeof CompletionToolChoiceModeEnum[keyof typeof CompletionToolChoiceModeEnum]; + + diff --git a/packages/arc-api-client/src/models/completion-tool-definition.ts b/packages/arc-api-client/src/models/completion-tool-definition.ts new file mode 100644 index 000000000..58f40b4c2 --- /dev/null +++ b/packages/arc-api-client/src/models/completion-tool-definition.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * A tool available for the model to call. + */ +export interface CompletionToolDefinition { + /** + * Tool name. + */ + 'name': string; + /** + * Human-readable tool description. + */ + 'description': string; + 'parameters': any; +} + diff --git a/packages/arc-api-client/src/models/create-completion-request.ts b/packages/arc-api-client/src/models/create-completion-request.ts index b0bd6c76b..ba5b8419b 100644 --- a/packages/arc-api-client/src/models/create-completion-request.ts +++ b/packages/arc-api-client/src/models/create-completion-request.ts @@ -13,27 +13,54 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import type { CompletionMessage } from './completion-message'; +// May contain unused imports in some cases +// @ts-ignore +import type { CompletionToolChoice } from './completion-tool-choice'; +// May contain unused imports in some cases +// @ts-ignore +import type { CompletionToolDefinition } from './completion-tool-definition'; export interface CreateCompletionRequest { /** - * The user prompt text. + * The conversation messages. */ - 'prompt': string; + 'messages': Array; /** * Model ID or alias. Server picks default if omitted. */ 'model'?: string; /** - * System prompt. + * System prompt (convenience; prepended as a system message). */ 'system'?: string; /** * Stream response via SSE. */ 'stream'?: boolean; + /** + * Tool definitions available to the model. + */ + 'tools'?: Array; + 'tool_choice'?: CompletionToolChoice; 'schema'?: any; 'temperature'?: number; 'max_tokens'?: number; 'top_p'?: number; + /** + * Stop sequences. + */ + 'stop_sequences'?: Array; + /** + * Reasoning effort level. + */ + 'reasoning_effort'?: string; + /** + * Provider to route to. + */ + 'provider'?: string; + 'provider_options'?: any; } diff --git a/packages/arc-api-client/src/models/git-author-configuration.ts b/packages/arc-api-client/src/models/git-author-configuration.ts new file mode 100644 index 000000000..c8d3e8caa --- /dev/null +++ b/packages/arc-api-client/src/models/git-author-configuration.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Git commit author configuration. + */ +export interface GitAuthorConfiguration { + /** + * Author name for commits. + */ + 'name'?: string; + /** + * Author email for commits. + */ + 'email'?: string; +} + diff --git a/packages/arc-api-client/src/models/git-configuration.ts b/packages/arc-api-client/src/models/git-configuration.ts index 1df8e2a24..bc9053fad 100644 --- a/packages/arc-api-client/src/models/git-configuration.ts +++ b/packages/arc-api-client/src/models/git-configuration.ts @@ -13,6 +13,12 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import type { GitAuthorConfiguration } from './git-author-configuration'; +// May contain unused imports in some cases +// @ts-ignore +import type { WebhookConfiguration } from './webhook-configuration'; /** * Git provider configuration. @@ -30,6 +36,12 @@ export interface GitConfiguration { * GitHub App Client ID. */ 'client_id'?: string; + /** + * GitHub App slug. + */ + 'slug'?: string; + 'author'?: GitAuthorConfiguration; + 'webhooks'?: WebhookConfiguration; } export const GitConfigurationProviderEnum = { diff --git a/packages/arc-api-client/src/models/index.ts b/packages/arc-api-client/src/models/index.ts index d984acf45..31ec1c998 100644 --- a/packages/arc-api-client/src/models/index.ts +++ b/packages/arc-api-client/src/models/index.ts @@ -9,8 +9,13 @@ export * from './auth-configuration'; export * from './board-column'; export * from './check-run'; export * from './check-run-status'; +export * from './checkpoint-configuration'; export * from './code-location'; +export * from './completion-content-part'; +export * from './completion-message'; export * from './completion-response'; +export * from './completion-tool-choice'; +export * from './completion-tool-definition'; export * from './completion-usage'; export * from './control-detail'; export * from './control-info'; @@ -35,6 +40,7 @@ export * from './file-checkpoint'; export * from './file-diff'; export * from './friction-kind'; export * from './friction-point'; +export * from './git-author-configuration'; export * from './git-configuration'; export * from './health-response'; export * from './history-entry'; @@ -42,6 +48,7 @@ export * from './hook-definition'; export * from './learning'; export * from './learning-category'; export * from './llm-configuration'; +export * from './log-configuration'; export * from './model'; export * from './model-costs'; export * from './model-features'; @@ -67,6 +74,7 @@ export * from './paginated-workflow-list'; export * from './pagination-meta'; export * from './preview-url-request'; export * from './preview-url-response'; +export * from './pull-request-configuration'; export * from './question-type'; export * from './recent-control-result'; export * from './repository-reference'; @@ -130,6 +138,7 @@ export * from './verification-mode'; export * from './verification-result'; export * from './verification-type'; export * from './web-configuration'; +export * from './webhook-configuration'; export * from './workflow-detail'; export * from './workflow-last-run'; export * from './workflow-list-item'; diff --git a/packages/arc-api-client/src/models/log-configuration.ts b/packages/arc-api-client/src/models/log-configuration.ts new file mode 100644 index 000000000..fd52f0820 --- /dev/null +++ b/packages/arc-api-client/src/models/log-configuration.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Logging configuration. + */ +export interface LogConfiguration { + /** + * Log level (e.g. trace, debug, info). + */ + 'level'?: string; +} + diff --git a/packages/arc-api-client/src/models/pull-request-configuration.ts b/packages/arc-api-client/src/models/pull-request-configuration.ts new file mode 100644 index 000000000..4fb16c1cb --- /dev/null +++ b/packages/arc-api-client/src/models/pull-request-configuration.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Pull request creation configuration. + */ +export interface PullRequestConfiguration { + /** + * Whether to create a pull request after a successful run. + */ + 'enabled'?: boolean; +} + diff --git a/packages/arc-api-client/src/models/sandbox-configuration.ts b/packages/arc-api-client/src/models/sandbox-configuration.ts index 1b3f921ad..0da47d094 100644 --- a/packages/arc-api-client/src/models/sandbox-configuration.ts +++ b/packages/arc-api-client/src/models/sandbox-configuration.ts @@ -30,5 +30,13 @@ export interface SandboxConfiguration { */ 'preserve'?: boolean; 'daytona'?: DaytonaConfiguration; + /** + * exe.dev sandbox configuration. + */ + 'exe'?: object; + /** + * Environment variables injected into the sandbox. + */ + 'env'?: { [key: string]: string; }; } diff --git a/packages/arc-api-client/src/models/server-configuration.ts b/packages/arc-api-client/src/models/server-configuration.ts index 14472631b..834efd88f 100644 --- a/packages/arc-api-client/src/models/server-configuration.ts +++ b/packages/arc-api-client/src/models/server-configuration.ts @@ -18,6 +18,9 @@ import type { ApiConfiguration } from './api-configuration'; // May contain unused imports in some cases // @ts-ignore +import type { CheckpointConfiguration } from './checkpoint-configuration'; +// May contain unused imports in some cases +// @ts-ignore import type { FeatureFlags } from './feature-flags'; // May contain unused imports in some cases // @ts-ignore @@ -30,6 +33,12 @@ import type { HookDefinition } from './hook-definition'; import type { LlmConfiguration } from './llm-configuration'; // May contain unused imports in some cases // @ts-ignore +import type { LogConfiguration } from './log-configuration'; +// May contain unused imports in some cases +// @ts-ignore +import type { PullRequestConfiguration } from './pull-request-configuration'; +// May contain unused imports in some cases +// @ts-ignore import type { SandboxConfiguration } from './sandbox-configuration'; // May contain unused imports in some cases // @ts-ignore @@ -54,6 +63,7 @@ export interface ServerConfiguration { 'api'?: ApiConfiguration; 'git'?: GitConfiguration; 'feature_flags'?: FeatureFlags; + 'log'?: LogConfiguration; /** * Default working directory. */ @@ -65,6 +75,8 @@ export interface ServerConfiguration { * Default variable map. */ 'vars'?: { [key: string]: string; }; + 'checkpoint'?: CheckpointConfiguration; + 'pull_request'?: PullRequestConfiguration; 'hooks'?: Array; } diff --git a/packages/arc-api-client/src/models/webhook-configuration.ts b/packages/arc-api-client/src/models/webhook-configuration.ts new file mode 100644 index 000000000..67b550eef --- /dev/null +++ b/packages/arc-api-client/src/models/webhook-configuration.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Arc Run API + * HTTP API for managing Arc workflow run executions. + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Webhook delivery configuration. + */ +export interface WebhookConfiguration { + /** + * Webhook delivery strategy. + */ + 'strategy': WebhookConfigurationStrategyEnum; +} + +export const WebhookConfigurationStrategyEnum = { + TAILSCALE_FUNNEL: 'tailscale_funnel' +} as const; + +export type WebhookConfigurationStrategyEnum = typeof WebhookConfigurationStrategyEnum[keyof typeof WebhookConfigurationStrategyEnum]; + +