asteroid-odyssey 1.7.167 → 1.7.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -738,6 +738,10 @@ type AgentsGraphModelsAgentGraph = {
738
738
  * LLM provider for the new agent loop
739
739
  */
740
740
  type AgentsGraphModelsLlmProvider = 'bedrock' | 'anthropic' | 'bifrost';
741
+ /**
742
+ * When the computer-use tool captures a screenshot
743
+ */
744
+ type AgentsGraphModelsCuaScreenshotMode = 'auto' | 'on_request';
741
745
  /**
742
746
  * Agent-loop backend harness
743
747
  */
@@ -774,6 +778,10 @@ type AgentsGraphModelsSettings = {
774
778
  * Anthropic early-access tool definitions to enable on the vercel-ai-sdk backend — 'computer' and/or 'browser' (admin-only; requires a direct-Anthropic Opus 4.8 model)
775
779
  */
776
780
  anthropic_preview_tools?: Array<string>;
781
+ /**
782
+ * Whether the computer-use tool screenshots after every call or only when asked (admin-only; defaults to auto)
783
+ */
784
+ cua_screenshot_mode?: AgentsGraphModelsCuaScreenshotMode;
777
785
  /**
778
786
  * LLM provider override for the new agent loop (admin-only in UI; defaults to server config)
779
787
  */
@@ -1669,49 +1677,9 @@ type AgentsProfileAddProfilesToPoolRequest = {
1669
1677
  */
1670
1678
  profileIds: Array<CommonUuid>;
1671
1679
  };
1672
- /**
1673
- * A file in the agent's persistent shared storage
1674
- */
1675
- type AgentsFilesSharedFile = {
1676
- id: CommonUuid;
1677
- agentId: CommonUuid;
1678
- filePath: string;
1679
- fileName: string;
1680
- fileSize: number;
1681
- mimeType?: string;
1682
- createdAt: string;
1683
- updatedAt: string;
1684
- version: number;
1685
- isFrozen: boolean;
1686
- lastModifiedByExecutionId?: CommonUuid;
1687
- downloadUrl: string;
1688
- /**
1689
- * Hex-encoded SHA-256 of the file contents. Used for change and rename detection when diffing versions. Absent when the checksum is unknown.
1690
- */
1691
- checksum?: string;
1692
- };
1693
1680
  type AgentsFilesTempFilesResponse = {
1694
1681
  tempFiles: Array<AgentsFilesTempFile>;
1695
1682
  };
1696
- /**
1697
- * Response containing all shared files for an agent
1698
- */
1699
- type AgentsFilesSharedFilesResponse = {
1700
- files: Array<AgentsFilesSharedFile>;
1701
- totalSize: number;
1702
- };
1703
- /**
1704
- * Response after uploading shared files
1705
- */
1706
- type AgentsFilesSharedFileUploadResponse = {
1707
- files: Array<AgentsFilesSharedFile>;
1708
- };
1709
- /**
1710
- * Request to set the frozen status of a shared file
1711
- */
1712
- type AgentsFilesSetFrozenRequest = {
1713
- isFrozen: boolean;
1714
- };
1715
1683
  type AgentsFilesFilePart = Blob | File;
1716
1684
  type AgentsFilesFile = {
1717
1685
  id: CommonUuid;
@@ -4227,169 +4195,6 @@ type AgentExecutePostResponses = {
4227
4195
  202: AgentsAgentExecuteAgentResponse;
4228
4196
  };
4229
4197
  type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
4230
- type AgentSharedFilesGetData = {
4231
- body?: never;
4232
- path: {
4233
- agentId: CommonUuid;
4234
- };
4235
- query?: never;
4236
- url: '/agents/{agentId}/shared-files';
4237
- };
4238
- type AgentSharedFilesGetErrors = {
4239
- /**
4240
- * The server cannot find the requested resource.
4241
- */
4242
- 404: 'Agent not found.';
4243
- };
4244
- type AgentSharedFilesGetError = AgentSharedFilesGetErrors[keyof AgentSharedFilesGetErrors];
4245
- type AgentSharedFilesGetResponses = {
4246
- /**
4247
- * The request has succeeded.
4248
- */
4249
- 200: AgentsFilesSharedFilesResponse;
4250
- };
4251
- type AgentSharedFilesGetResponse = AgentSharedFilesGetResponses[keyof AgentSharedFilesGetResponses];
4252
- type AgentSharedFilesUploadData = {
4253
- body: {
4254
- files: Array<AgentsFilesFilePart>;
4255
- };
4256
- path: {
4257
- agentId: CommonUuid;
4258
- };
4259
- query?: never;
4260
- url: '/agents/{agentId}/shared-files';
4261
- };
4262
- type AgentSharedFilesUploadErrors = {
4263
- /**
4264
- * The server could not understand the request due to invalid syntax.
4265
- */
4266
- 400: 'Invalid file upload request.';
4267
- /**
4268
- * The server cannot find the requested resource.
4269
- */
4270
- 404: 'Agent not found.';
4271
- };
4272
- type AgentSharedFilesUploadError = AgentSharedFilesUploadErrors[keyof AgentSharedFilesUploadErrors];
4273
- type AgentSharedFilesUploadResponses = {
4274
- /**
4275
- * The request has succeeded.
4276
- */
4277
- 200: AgentsFilesSharedFileUploadResponse;
4278
- };
4279
- type AgentSharedFilesUploadResponse = AgentSharedFilesUploadResponses[keyof AgentSharedFilesUploadResponses];
4280
- type AgentSharedFilesDeleteAllData = {
4281
- body?: never;
4282
- path: {
4283
- agentId: CommonUuid;
4284
- };
4285
- query?: never;
4286
- url: '/agents/{agentId}/shared-files/delete-all';
4287
- };
4288
- type AgentSharedFilesDeleteAllErrors = {
4289
- /**
4290
- * The server cannot find the requested resource.
4291
- */
4292
- 404: 'Agent not found.';
4293
- };
4294
- type AgentSharedFilesDeleteAllError = AgentSharedFilesDeleteAllErrors[keyof AgentSharedFilesDeleteAllErrors];
4295
- type AgentSharedFilesDeleteAllResponses = {
4296
- /**
4297
- * There is no content to send for this request, but the headers may be useful.
4298
- */
4299
- 204: void;
4300
- };
4301
- type AgentSharedFilesDeleteAllResponse = AgentSharedFilesDeleteAllResponses[keyof AgentSharedFilesDeleteAllResponses];
4302
- type AgentSharedFilesDeleteData = {
4303
- body?: never;
4304
- path: {
4305
- agentId: CommonUuid;
4306
- fileId: CommonUuid;
4307
- };
4308
- query?: never;
4309
- url: '/agents/{agentId}/shared-files/{fileId}';
4310
- };
4311
- type AgentSharedFilesDeleteErrors = {
4312
- /**
4313
- * The server cannot find the requested resource.
4314
- */
4315
- 404: 'File not found.';
4316
- };
4317
- type AgentSharedFilesDeleteError = AgentSharedFilesDeleteErrors[keyof AgentSharedFilesDeleteErrors];
4318
- type AgentSharedFilesDeleteResponses = {
4319
- /**
4320
- * There is no content to send for this request, but the headers may be useful.
4321
- */
4322
- 204: void;
4323
- };
4324
- type AgentSharedFilesDeleteResponse = AgentSharedFilesDeleteResponses[keyof AgentSharedFilesDeleteResponses];
4325
- type AgentSharedFilesUpdateData = {
4326
- body: {
4327
- files: Array<AgentsFilesFilePart>;
4328
- };
4329
- path: {
4330
- agentId: CommonUuid;
4331
- fileId: CommonUuid;
4332
- };
4333
- query?: never;
4334
- url: '/agents/{agentId}/shared-files/{fileId}';
4335
- };
4336
- type AgentSharedFilesUpdateErrors = {
4337
- /**
4338
- * The server could not understand the request due to invalid syntax.
4339
- */
4340
- 400: 'Invalid file upload request.';
4341
- /**
4342
- * The server cannot find the requested resource.
4343
- */
4344
- 404: 'File not found.';
4345
- };
4346
- type AgentSharedFilesUpdateError = AgentSharedFilesUpdateErrors[keyof AgentSharedFilesUpdateErrors];
4347
- type AgentSharedFilesUpdateResponses = {
4348
- /**
4349
- * The request has succeeded.
4350
- */
4351
- 200: AgentsFilesSharedFile;
4352
- };
4353
- type AgentSharedFilesUpdateResponse = AgentSharedFilesUpdateResponses[keyof AgentSharedFilesUpdateResponses];
4354
- type AgentSharedFileDownloadRedirectData = {
4355
- body?: never;
4356
- path: {
4357
- agentId: CommonUuid;
4358
- fileId: CommonUuid;
4359
- };
4360
- query?: never;
4361
- url: '/agents/{agentId}/shared-files/{fileId}/download';
4362
- };
4363
- type AgentSharedFileDownloadRedirectErrors = {
4364
- /**
4365
- * The server cannot find the requested resource.
4366
- */
4367
- 404: 'File not found.';
4368
- };
4369
- type AgentSharedFileDownloadRedirectError = AgentSharedFileDownloadRedirectErrors[keyof AgentSharedFileDownloadRedirectErrors];
4370
- type AgentSharedFilesFreezeData = {
4371
- body: AgentsFilesSetFrozenRequest;
4372
- path: {
4373
- agentId: CommonUuid;
4374
- fileId: CommonUuid;
4375
- };
4376
- query?: never;
4377
- url: '/agents/{agentId}/shared-files/{fileId}/freeze';
4378
- };
4379
- type AgentSharedFilesFreezeErrors = {
4380
- /**
4381
- * The server cannot find the requested resource.
4382
- */
4383
- 404: 'File not found.';
4384
- };
4385
- type AgentSharedFilesFreezeError = AgentSharedFilesFreezeErrors[keyof AgentSharedFilesFreezeErrors];
4386
- type AgentSharedFilesFreezeResponses = {
4387
- /**
4388
- * The request has succeeded.
4389
- */
4390
- 200: AgentsFilesSharedFile;
4391
- };
4392
- type AgentSharedFilesFreezeResponse = AgentSharedFilesFreezeResponses[keyof AgentSharedFilesFreezeResponses];
4393
4198
  type AgentWorkflowsListData = {
4394
4199
  body?: never;
4395
4200
  path: {
@@ -5613,62 +5418,6 @@ declare const agentByIdUpdate: <ThrowOnError extends boolean = false>(options: O
5613
5418
  * Start an execution for the given agent.
5614
5419
  */
5615
5420
  declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
5616
- /**
5617
- * Get Agent Shared Files
5618
- *
5619
- * Deprecated: implicitly resolves the agent's latest published workflow version and returns that version's files. Use GET /agents/{agentId}/workflows/{workflowId}/agent-files to target an explicit workflow version instead.
5620
- *
5621
- * @deprecated
5622
- */
5623
- declare const agentSharedFilesGet: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesGetData, ThrowOnError>) => RequestResult<AgentSharedFilesGetResponses, AgentSharedFilesGetErrors, ThrowOnError, "fields">;
5624
- /**
5625
- * Upload Agent Shared Files
5626
- *
5627
- * Deprecated: implicitly uploads to the agent's latest published workflow version, deriving a new workflow version behind the scenes. Use POST /agents/{agentId}/workflows/{workflowId}/agent-files to upload to an explicit workflow version instead.
5628
- *
5629
- * @deprecated
5630
- */
5631
- declare const agentSharedFilesUpload: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUploadData, ThrowOnError>) => RequestResult<AgentSharedFilesUploadResponses, AgentSharedFilesUploadErrors, ThrowOnError, "fields">;
5632
- /**
5633
- * Delete All Agent Shared Files
5634
- *
5635
- * Deprecated: delete all shared files from the agent's latest published workflow version. Use the batch DELETE /agents/{agentId}/workflows/{workflowId}/agent-files endpoint to target an explicit workflow version instead.
5636
- *
5637
- * @deprecated
5638
- */
5639
- declare const agentSharedFilesDeleteAll: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteAllData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteAllResponses, AgentSharedFilesDeleteAllErrors, ThrowOnError, "fields">;
5640
- /**
5641
- * Delete Agent Shared File
5642
- *
5643
- * Deprecated: delete a file from the agent's latest published workflow version. Use DELETE /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId} to target an explicit workflow version instead.
5644
- *
5645
- * @deprecated
5646
- */
5647
- declare const agentSharedFilesDelete: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteResponses, AgentSharedFilesDeleteErrors, ThrowOnError, "fields">;
5648
- /**
5649
- * Update Agent Shared File
5650
- *
5651
- * Deprecated: replace the contents of a shared file in the agent's latest published workflow version. The request body must contain exactly one file. Use PUT /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId} to target an explicit workflow version instead.
5652
- *
5653
- * @deprecated
5654
- */
5655
- declare const agentSharedFilesUpdate: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUpdateData, ThrowOnError>) => RequestResult<AgentSharedFilesUpdateResponses, AgentSharedFilesUpdateErrors, ThrowOnError, "fields">;
5656
- /**
5657
- * Download shared file
5658
- *
5659
- * Deprecated: redirects to a short-lived signed URL for a file in the agent's latest published workflow version. Use GET /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId}/download to target an explicit workflow version instead.
5660
- *
5661
- * @deprecated
5662
- */
5663
- declare const agentSharedFileDownloadRedirect: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFileDownloadRedirectData, ThrowOnError>) => RequestResult<unknown, AgentSharedFileDownloadRedirectErrors, ThrowOnError, "fields">;
5664
- /**
5665
- * Set Freeze on Agent Shared File
5666
- *
5667
- * Set the frozen status of a shared file. Frozen files are preserved across executions and cannot be overwritten by the agent.
5668
- *
5669
- * @deprecated
5670
- */
5671
- declare const agentSharedFilesFreeze: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesFreezeData, ThrowOnError>) => RequestResult<AgentSharedFilesFreezeResponses, AgentSharedFilesFreezeErrors, ThrowOnError, "fields">;
5672
5421
  /**
5673
5422
  * List workflow references
5674
5423
  *
@@ -5690,7 +5439,7 @@ declare const agentWorkflowsDeleteWorkflow: <ThrowOnError extends boolean = fals
5690
5439
  /**
5691
5440
  * Get workflow by ID
5692
5441
  *
5693
- * Get a workflow by its ID
5442
+ * Get a workflow by its ID. `files` is this version's manifest — file edits create a new version, so fetch the id returned by the agent-files endpoints to see the updated list.
5694
5443
  */
5695
5444
  declare const agentWorkflowsGet: <ThrowOnError extends boolean = false>(options: Options<AgentWorkflowsGetData, ThrowOnError>) => RequestResult<AgentWorkflowsGetResponses, AgentWorkflowsGetErrors, ThrowOnError, "fields">;
5696
5445
  /**
@@ -5836,4 +5585,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5836
5585
  */
5837
5586
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5838
5587
 
5839
- export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsAgentLoopBackend, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
5588
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsAgentLoopBackend, type AgentsGraphModelsCuaScreenshotMode, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.d.ts CHANGED
@@ -738,6 +738,10 @@ type AgentsGraphModelsAgentGraph = {
738
738
  * LLM provider for the new agent loop
739
739
  */
740
740
  type AgentsGraphModelsLlmProvider = 'bedrock' | 'anthropic' | 'bifrost';
741
+ /**
742
+ * When the computer-use tool captures a screenshot
743
+ */
744
+ type AgentsGraphModelsCuaScreenshotMode = 'auto' | 'on_request';
741
745
  /**
742
746
  * Agent-loop backend harness
743
747
  */
@@ -774,6 +778,10 @@ type AgentsGraphModelsSettings = {
774
778
  * Anthropic early-access tool definitions to enable on the vercel-ai-sdk backend — 'computer' and/or 'browser' (admin-only; requires a direct-Anthropic Opus 4.8 model)
775
779
  */
776
780
  anthropic_preview_tools?: Array<string>;
781
+ /**
782
+ * Whether the computer-use tool screenshots after every call or only when asked (admin-only; defaults to auto)
783
+ */
784
+ cua_screenshot_mode?: AgentsGraphModelsCuaScreenshotMode;
777
785
  /**
778
786
  * LLM provider override for the new agent loop (admin-only in UI; defaults to server config)
779
787
  */
@@ -1669,49 +1677,9 @@ type AgentsProfileAddProfilesToPoolRequest = {
1669
1677
  */
1670
1678
  profileIds: Array<CommonUuid>;
1671
1679
  };
1672
- /**
1673
- * A file in the agent's persistent shared storage
1674
- */
1675
- type AgentsFilesSharedFile = {
1676
- id: CommonUuid;
1677
- agentId: CommonUuid;
1678
- filePath: string;
1679
- fileName: string;
1680
- fileSize: number;
1681
- mimeType?: string;
1682
- createdAt: string;
1683
- updatedAt: string;
1684
- version: number;
1685
- isFrozen: boolean;
1686
- lastModifiedByExecutionId?: CommonUuid;
1687
- downloadUrl: string;
1688
- /**
1689
- * Hex-encoded SHA-256 of the file contents. Used for change and rename detection when diffing versions. Absent when the checksum is unknown.
1690
- */
1691
- checksum?: string;
1692
- };
1693
1680
  type AgentsFilesTempFilesResponse = {
1694
1681
  tempFiles: Array<AgentsFilesTempFile>;
1695
1682
  };
1696
- /**
1697
- * Response containing all shared files for an agent
1698
- */
1699
- type AgentsFilesSharedFilesResponse = {
1700
- files: Array<AgentsFilesSharedFile>;
1701
- totalSize: number;
1702
- };
1703
- /**
1704
- * Response after uploading shared files
1705
- */
1706
- type AgentsFilesSharedFileUploadResponse = {
1707
- files: Array<AgentsFilesSharedFile>;
1708
- };
1709
- /**
1710
- * Request to set the frozen status of a shared file
1711
- */
1712
- type AgentsFilesSetFrozenRequest = {
1713
- isFrozen: boolean;
1714
- };
1715
1683
  type AgentsFilesFilePart = Blob | File;
1716
1684
  type AgentsFilesFile = {
1717
1685
  id: CommonUuid;
@@ -4227,169 +4195,6 @@ type AgentExecutePostResponses = {
4227
4195
  202: AgentsAgentExecuteAgentResponse;
4228
4196
  };
4229
4197
  type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
4230
- type AgentSharedFilesGetData = {
4231
- body?: never;
4232
- path: {
4233
- agentId: CommonUuid;
4234
- };
4235
- query?: never;
4236
- url: '/agents/{agentId}/shared-files';
4237
- };
4238
- type AgentSharedFilesGetErrors = {
4239
- /**
4240
- * The server cannot find the requested resource.
4241
- */
4242
- 404: 'Agent not found.';
4243
- };
4244
- type AgentSharedFilesGetError = AgentSharedFilesGetErrors[keyof AgentSharedFilesGetErrors];
4245
- type AgentSharedFilesGetResponses = {
4246
- /**
4247
- * The request has succeeded.
4248
- */
4249
- 200: AgentsFilesSharedFilesResponse;
4250
- };
4251
- type AgentSharedFilesGetResponse = AgentSharedFilesGetResponses[keyof AgentSharedFilesGetResponses];
4252
- type AgentSharedFilesUploadData = {
4253
- body: {
4254
- files: Array<AgentsFilesFilePart>;
4255
- };
4256
- path: {
4257
- agentId: CommonUuid;
4258
- };
4259
- query?: never;
4260
- url: '/agents/{agentId}/shared-files';
4261
- };
4262
- type AgentSharedFilesUploadErrors = {
4263
- /**
4264
- * The server could not understand the request due to invalid syntax.
4265
- */
4266
- 400: 'Invalid file upload request.';
4267
- /**
4268
- * The server cannot find the requested resource.
4269
- */
4270
- 404: 'Agent not found.';
4271
- };
4272
- type AgentSharedFilesUploadError = AgentSharedFilesUploadErrors[keyof AgentSharedFilesUploadErrors];
4273
- type AgentSharedFilesUploadResponses = {
4274
- /**
4275
- * The request has succeeded.
4276
- */
4277
- 200: AgentsFilesSharedFileUploadResponse;
4278
- };
4279
- type AgentSharedFilesUploadResponse = AgentSharedFilesUploadResponses[keyof AgentSharedFilesUploadResponses];
4280
- type AgentSharedFilesDeleteAllData = {
4281
- body?: never;
4282
- path: {
4283
- agentId: CommonUuid;
4284
- };
4285
- query?: never;
4286
- url: '/agents/{agentId}/shared-files/delete-all';
4287
- };
4288
- type AgentSharedFilesDeleteAllErrors = {
4289
- /**
4290
- * The server cannot find the requested resource.
4291
- */
4292
- 404: 'Agent not found.';
4293
- };
4294
- type AgentSharedFilesDeleteAllError = AgentSharedFilesDeleteAllErrors[keyof AgentSharedFilesDeleteAllErrors];
4295
- type AgentSharedFilesDeleteAllResponses = {
4296
- /**
4297
- * There is no content to send for this request, but the headers may be useful.
4298
- */
4299
- 204: void;
4300
- };
4301
- type AgentSharedFilesDeleteAllResponse = AgentSharedFilesDeleteAllResponses[keyof AgentSharedFilesDeleteAllResponses];
4302
- type AgentSharedFilesDeleteData = {
4303
- body?: never;
4304
- path: {
4305
- agentId: CommonUuid;
4306
- fileId: CommonUuid;
4307
- };
4308
- query?: never;
4309
- url: '/agents/{agentId}/shared-files/{fileId}';
4310
- };
4311
- type AgentSharedFilesDeleteErrors = {
4312
- /**
4313
- * The server cannot find the requested resource.
4314
- */
4315
- 404: 'File not found.';
4316
- };
4317
- type AgentSharedFilesDeleteError = AgentSharedFilesDeleteErrors[keyof AgentSharedFilesDeleteErrors];
4318
- type AgentSharedFilesDeleteResponses = {
4319
- /**
4320
- * There is no content to send for this request, but the headers may be useful.
4321
- */
4322
- 204: void;
4323
- };
4324
- type AgentSharedFilesDeleteResponse = AgentSharedFilesDeleteResponses[keyof AgentSharedFilesDeleteResponses];
4325
- type AgentSharedFilesUpdateData = {
4326
- body: {
4327
- files: Array<AgentsFilesFilePart>;
4328
- };
4329
- path: {
4330
- agentId: CommonUuid;
4331
- fileId: CommonUuid;
4332
- };
4333
- query?: never;
4334
- url: '/agents/{agentId}/shared-files/{fileId}';
4335
- };
4336
- type AgentSharedFilesUpdateErrors = {
4337
- /**
4338
- * The server could not understand the request due to invalid syntax.
4339
- */
4340
- 400: 'Invalid file upload request.';
4341
- /**
4342
- * The server cannot find the requested resource.
4343
- */
4344
- 404: 'File not found.';
4345
- };
4346
- type AgentSharedFilesUpdateError = AgentSharedFilesUpdateErrors[keyof AgentSharedFilesUpdateErrors];
4347
- type AgentSharedFilesUpdateResponses = {
4348
- /**
4349
- * The request has succeeded.
4350
- */
4351
- 200: AgentsFilesSharedFile;
4352
- };
4353
- type AgentSharedFilesUpdateResponse = AgentSharedFilesUpdateResponses[keyof AgentSharedFilesUpdateResponses];
4354
- type AgentSharedFileDownloadRedirectData = {
4355
- body?: never;
4356
- path: {
4357
- agentId: CommonUuid;
4358
- fileId: CommonUuid;
4359
- };
4360
- query?: never;
4361
- url: '/agents/{agentId}/shared-files/{fileId}/download';
4362
- };
4363
- type AgentSharedFileDownloadRedirectErrors = {
4364
- /**
4365
- * The server cannot find the requested resource.
4366
- */
4367
- 404: 'File not found.';
4368
- };
4369
- type AgentSharedFileDownloadRedirectError = AgentSharedFileDownloadRedirectErrors[keyof AgentSharedFileDownloadRedirectErrors];
4370
- type AgentSharedFilesFreezeData = {
4371
- body: AgentsFilesSetFrozenRequest;
4372
- path: {
4373
- agentId: CommonUuid;
4374
- fileId: CommonUuid;
4375
- };
4376
- query?: never;
4377
- url: '/agents/{agentId}/shared-files/{fileId}/freeze';
4378
- };
4379
- type AgentSharedFilesFreezeErrors = {
4380
- /**
4381
- * The server cannot find the requested resource.
4382
- */
4383
- 404: 'File not found.';
4384
- };
4385
- type AgentSharedFilesFreezeError = AgentSharedFilesFreezeErrors[keyof AgentSharedFilesFreezeErrors];
4386
- type AgentSharedFilesFreezeResponses = {
4387
- /**
4388
- * The request has succeeded.
4389
- */
4390
- 200: AgentsFilesSharedFile;
4391
- };
4392
- type AgentSharedFilesFreezeResponse = AgentSharedFilesFreezeResponses[keyof AgentSharedFilesFreezeResponses];
4393
4198
  type AgentWorkflowsListData = {
4394
4199
  body?: never;
4395
4200
  path: {
@@ -5613,62 +5418,6 @@ declare const agentByIdUpdate: <ThrowOnError extends boolean = false>(options: O
5613
5418
  * Start an execution for the given agent.
5614
5419
  */
5615
5420
  declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
5616
- /**
5617
- * Get Agent Shared Files
5618
- *
5619
- * Deprecated: implicitly resolves the agent's latest published workflow version and returns that version's files. Use GET /agents/{agentId}/workflows/{workflowId}/agent-files to target an explicit workflow version instead.
5620
- *
5621
- * @deprecated
5622
- */
5623
- declare const agentSharedFilesGet: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesGetData, ThrowOnError>) => RequestResult<AgentSharedFilesGetResponses, AgentSharedFilesGetErrors, ThrowOnError, "fields">;
5624
- /**
5625
- * Upload Agent Shared Files
5626
- *
5627
- * Deprecated: implicitly uploads to the agent's latest published workflow version, deriving a new workflow version behind the scenes. Use POST /agents/{agentId}/workflows/{workflowId}/agent-files to upload to an explicit workflow version instead.
5628
- *
5629
- * @deprecated
5630
- */
5631
- declare const agentSharedFilesUpload: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUploadData, ThrowOnError>) => RequestResult<AgentSharedFilesUploadResponses, AgentSharedFilesUploadErrors, ThrowOnError, "fields">;
5632
- /**
5633
- * Delete All Agent Shared Files
5634
- *
5635
- * Deprecated: delete all shared files from the agent's latest published workflow version. Use the batch DELETE /agents/{agentId}/workflows/{workflowId}/agent-files endpoint to target an explicit workflow version instead.
5636
- *
5637
- * @deprecated
5638
- */
5639
- declare const agentSharedFilesDeleteAll: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteAllData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteAllResponses, AgentSharedFilesDeleteAllErrors, ThrowOnError, "fields">;
5640
- /**
5641
- * Delete Agent Shared File
5642
- *
5643
- * Deprecated: delete a file from the agent's latest published workflow version. Use DELETE /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId} to target an explicit workflow version instead.
5644
- *
5645
- * @deprecated
5646
- */
5647
- declare const agentSharedFilesDelete: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteResponses, AgentSharedFilesDeleteErrors, ThrowOnError, "fields">;
5648
- /**
5649
- * Update Agent Shared File
5650
- *
5651
- * Deprecated: replace the contents of a shared file in the agent's latest published workflow version. The request body must contain exactly one file. Use PUT /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId} to target an explicit workflow version instead.
5652
- *
5653
- * @deprecated
5654
- */
5655
- declare const agentSharedFilesUpdate: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUpdateData, ThrowOnError>) => RequestResult<AgentSharedFilesUpdateResponses, AgentSharedFilesUpdateErrors, ThrowOnError, "fields">;
5656
- /**
5657
- * Download shared file
5658
- *
5659
- * Deprecated: redirects to a short-lived signed URL for a file in the agent's latest published workflow version. Use GET /agents/{agentId}/workflows/{workflowId}/agent-files/{fileId}/download to target an explicit workflow version instead.
5660
- *
5661
- * @deprecated
5662
- */
5663
- declare const agentSharedFileDownloadRedirect: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFileDownloadRedirectData, ThrowOnError>) => RequestResult<unknown, AgentSharedFileDownloadRedirectErrors, ThrowOnError, "fields">;
5664
- /**
5665
- * Set Freeze on Agent Shared File
5666
- *
5667
- * Set the frozen status of a shared file. Frozen files are preserved across executions and cannot be overwritten by the agent.
5668
- *
5669
- * @deprecated
5670
- */
5671
- declare const agentSharedFilesFreeze: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesFreezeData, ThrowOnError>) => RequestResult<AgentSharedFilesFreezeResponses, AgentSharedFilesFreezeErrors, ThrowOnError, "fields">;
5672
5421
  /**
5673
5422
  * List workflow references
5674
5423
  *
@@ -5690,7 +5439,7 @@ declare const agentWorkflowsDeleteWorkflow: <ThrowOnError extends boolean = fals
5690
5439
  /**
5691
5440
  * Get workflow by ID
5692
5441
  *
5693
- * Get a workflow by its ID
5442
+ * Get a workflow by its ID. `files` is this version's manifest — file edits create a new version, so fetch the id returned by the agent-files endpoints to see the updated list.
5694
5443
  */
5695
5444
  declare const agentWorkflowsGet: <ThrowOnError extends boolean = false>(options: Options<AgentWorkflowsGetData, ThrowOnError>) => RequestResult<AgentWorkflowsGetResponses, AgentWorkflowsGetErrors, ThrowOnError, "fields">;
5696
5445
  /**
@@ -5836,4 +5585,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5836
5585
  */
5837
5586
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5838
5587
 
5839
- export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsAgentLoopBackend, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
5588
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsAgentLoopBackend, type AgentsGraphModelsCuaScreenshotMode, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- 'use strict';var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var R={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,O=c??(p=>new Promise(E=>setTimeout(E,p)));return {stream:async function*(){let p=d??3e3,E=0,w=s.signal??new AbortController().signal;for(;!w.aborted;){E++;let C=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let P={redirect:"follow",...s,body:s.serializedBody,headers:C,signal:w},m=new Request(g,P);e&&(m=await e(g,P));let u=await(s.fetch??globalThis.fetch)(m);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let y=u.body.pipeThrough(new TextDecoderStream).getReader(),b="",q=()=>{try{y.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await y.read();if(ee)break;b+=te,b=b.replace(/\r\n/g,`
1
+ 'use strict';var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var W={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},F={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,S=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=s.signal??new AbortController().signal;for(;!P.aborted;){E++;let C=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let w={redirect:"follow",...s,body:s.serializedBody,headers:C,signal:P},h=new Request(g,w);e&&(h=await e(g,w));let A=await(s.fetch??globalThis.fetch)(h);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let y=A.body.pipeThrough(new TextDecoderStream).getReader(),O="",q=()=>{try{y.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await y.read();if(ee)break;O+=te,O=O.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let M=b.split(`
3
+ `);let z=O.split(`
4
4
 
5
- `);b=M.pop()??"";for(let re of M){let oe=re.split(`
6
- `),G=[],B;for(let h of oe)if(h.startsWith("data:"))G.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))B=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))f=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let N=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(p=N);}let S,j=!1;if(G.length){let h=G.join(`
7
- `);try{S=JSON.parse(h),j=!0;}catch{S=h;}}j&&(i&&await i(S),n&&(S=await n(S))),r?.({data:S,event:B,id:f,retry:p}),G.length&&(yield S);}}}finally{w.removeEventListener("abort",q),y.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&E>=l)break;let m=Math.min(p*2**(E-1),a??3e4);await O(m);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let d=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(d);return n==="label"||n==="matrix"?d+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let d=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(d=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:d,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:d,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,l=(e??"")+d;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let d in n){let l=n[d];if(l==null)continue;let a=e[d]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:d,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:d,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:d,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},de=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?de(r):Object.entries(r);for(let[i,d]of n)if(d===null)t.delete(i);else if(Array.isArray(d))for(let l of d)t.append(i,l);else d!==void 0&&t.set(i,typeof d=="object"?JSON.stringify(d):d);}return t},T=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new T,request:new T,response:new T}),pe=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:pe,...e});var z=(e={})=>{let t=K(k(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),d=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await d(g),O={redirect:"follow",...s,body:$(s)},x=new Request(f,O);for(let A of i.request.fns)A&&(x=await A(x,s));let F=s.fetch,p;try{p=await F(x);}catch(A){let u=A;for(let y of i.error.fns)y&&(u=await y(A,void 0,x,s));if(u=u||{},s.throwOnError)throw u;return s.responseStyle==="data"?void 0:{error:u,request:x,response:void 0}}for(let A of i.response.fns)A&&(p=await A(p,x,s));let E={request:x,response:p};if(p.ok){let A=(s.parseAs==="auto"?_(p.headers.get("Content-Type")):s.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let y;switch(A){case "arrayBuffer":case "blob":case "text":y=await p[A]();break;case "formData":y=new FormData;break;case "stream":y=p.body;break;default:y={};break}return s.responseStyle==="data"?y:{data:y,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await p[A]();break;case "stream":return s.responseStyle==="data"?p.body:{data:p.body,...E}}return A==="json"&&(s.responseValidator&&await s.responseValidator(u),s.responseTransformer&&(u=await s.responseTransformer(u))),s.responseStyle==="data"?u:{data:u,...E}}let w=await p.text(),C;try{C=JSON.parse(w);}catch{}let P=C??w,m=P;for(let A of i.error.fns)A&&(m=await A(P,p,x,s));if(m=m||{},s.throwOnError)throw m;return s.responseStyle==="data"?void 0:{error:m,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:O}=await d(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(x,F)=>{let p=new Request(x,F);for(let E of i.request.fns)E&&(p=await E(p,f));return p},url:O})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ye=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Ue=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),qe=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Me=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Be=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),je=e=>(e.client??o).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Xe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),et=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ct=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),ut=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),ft=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- exports.adminCustomerActivityList=Ae;exports.adminCustomerActivityNotableList=ue;exports.adminCustomerActivityWindowStatsList=fe;exports.agentByIdDelete=Le;exports.agentByIdUpdate=Ue;exports.agentCreate=We;exports.agentExecutePost=Ke;exports.agentList=Ie;exports.agentProfileClearBrowserCache=Te;exports.agentProfileDelete=Oe;exports.agentProfileDuplicate=ke;exports.agentProfileGet=Ce;exports.agentProfileGetInboxEmail=Ge;exports.agentProfileGetInboxEmails=Fe;exports.agentProfilePoolDelete=xe;exports.agentProfilePoolGet=he;exports.agentProfilePoolMembersAdd=Se;exports.agentProfilePoolMembersList=Pe;exports.agentProfilePoolMembersRemove=we;exports.agentProfilePoolUpdate=me;exports.agentProfilePoolsCreate=ye;exports.agentProfilePoolsList=Ee;exports.agentProfileUpdate=be;exports.agentProfilesCreate=De;exports.agentProfilesList=Re;exports.agentSharedFileDownloadRedirect=Ne;exports.agentSharedFilesDelete=Be;exports.agentSharedFilesDeleteAll=Me;exports.agentSharedFilesFreeze=Xe;exports.agentSharedFilesGet=ze;exports.agentSharedFilesUpdate=je;exports.agentSharedFilesUpload=qe;exports.agentWorkflowsCreate=He;exports.agentWorkflowsDeleteWorkflow=$e;exports.agentWorkflowsExecute=Je;exports.agentWorkflowsGet=Qe;exports.agentWorkflowsGetInputs=_e;exports.agentWorkflowsGetOutputSchemas=Ye;exports.agentWorkflowsList=Ve;exports.agentWorkflowsPublish=Ze;exports.agentWorkflowsSyncExecution=et;exports.availableToolsList=ve;exports.client=o;exports.contextGet=tt;exports.docsSearchSearch=rt;exports.executionActivitiesGet=nt;exports.executionAgentFileDownloadRedirect=at;exports.executionAgentFilesGet=it;exports.executionContextFileDownloadRedirect=dt;exports.executionContextFilesGet=lt;exports.executionContextFilesUpload=ct;exports.executionDebugFileDownloadRedirect=pt;exports.executionFileDownloadRedirect=At;exports.executionFilesGet=gt;exports.executionGet=st;exports.executionRecordingRedirect=ut;exports.executionStatusUpdate=ft;exports.executionUserMessagesAdd=Et;exports.executionsList=ot;exports.schemaValidationValidate=yt;exports.tempFilesStage=xt;
5
+ `);O=z.pop()??"";for(let re of z){let oe=re.split(`
6
+ `),G=[],B;for(let m of oe)if(m.startsWith("data:"))G.push(m.replace(/^data:\s*/,""));else if(m.startsWith("event:"))B=m.replace(/^event:\s*/,"");else if(m.startsWith("id:"))f=m.replace(/^id:\s*/,"");else if(m.startsWith("retry:")){let N=Number.parseInt(m.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let R,j=!1;if(G.length){let m=G.join(`
7
+ `);try{R=JSON.parse(m),j=!0;}catch{R=m;}}j&&(i&&await i(R),n&&(R=await n(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),y.releaseLock();}break}catch(w){if(t?.(w),l!==void 0&&E>=l)break;let h=Math.min(d*2**(E-1),a??3e4);await S(h);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(p);return n==="label"||n==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},v=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,v({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let p in n){let l=n[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=v({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},L=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of n)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new b,request:new b,response:new b}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},T=(e={})=>({...F,headers:ge,parseAs:"auto",querySerializer:de,...e});var M=(e={})=>{let t=K(T(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),p=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await p(g),S={redirect:"follow",...s,body:$(s)},x=new Request(f,S);for(let u of i.request.fns)u&&(x=await u(x,s));let k=s.fetch,d;try{d=await k(x);}catch(u){let A=u;for(let y of i.error.fns)y&&(A=await y(u,void 0,x,s));if(A=A||{},s.throwOnError)throw A;return s.responseStyle==="data"?void 0:{error:A,request:x,response:void 0}}for(let u of i.response.fns)u&&(d=await u(d,x,s));let E={request:x,response:d};if(d.ok){let u=(s.parseAs==="auto"?_(d.headers.get("Content-Type")):s.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let y;switch(u){case "arrayBuffer":case "blob":case "text":y=await d[u]();break;case "formData":y=new FormData;break;case "stream":y=d.body;break;default:y={};break}return s.responseStyle==="data"?y:{data:y,...E}}let A;switch(u){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[u]();break;case "stream":return s.responseStyle==="data"?d.body:{data:d.body,...E}}return u==="json"&&(s.responseValidator&&await s.responseValidator(A),s.responseTransformer&&(A=await s.responseTransformer(A))),s.responseStyle==="data"?A:{data:A,...E}}let P=await d.text(),C;try{C=JSON.parse(P);}catch{}let w=C??P,h=w;for(let u of i.error.fns)u&&(h=await u(w,d,x,s));if(h=h||{},s.throwOnError)throw h;return s.responseStyle==="data"?void 0:{error:h,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:S}=await p(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(x,k)=>{let d=new Request(x,k);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:S})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=M(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ye=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Oe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),We=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),ve=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Ue=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Ve=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),_e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),Ze=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),rt=e=>(e.client??o).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),lt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),ct=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),dt=e=>(e.client??o).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ exports.adminCustomerActivityList=ue;exports.adminCustomerActivityNotableList=Ae;exports.adminCustomerActivityWindowStatsList=fe;exports.agentByIdDelete=Fe;exports.agentByIdUpdate=Ue;exports.agentCreate=ve;exports.agentExecutePost=Ke;exports.agentList=Ie;exports.agentProfileClearBrowserCache=Te;exports.agentProfileDelete=Ce;exports.agentProfileDuplicate=ke;exports.agentProfileGet=Oe;exports.agentProfileGetInboxEmail=We;exports.agentProfileGetInboxEmails=Ge;exports.agentProfilePoolDelete=xe;exports.agentProfilePoolGet=me;exports.agentProfilePoolMembersAdd=Re;exports.agentProfilePoolMembersList=we;exports.agentProfilePoolMembersRemove=Pe;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=ye;exports.agentProfilePoolsList=Ee;exports.agentProfileUpdate=be;exports.agentProfilesCreate=Se;exports.agentProfilesList=De;exports.agentWorkflowsCreate=qe;exports.agentWorkflowsDeleteWorkflow=ze;exports.agentWorkflowsExecute=je;exports.agentWorkflowsGet=Be;exports.agentWorkflowsGetInputs=Ne;exports.agentWorkflowsGetOutputSchemas=Xe;exports.agentWorkflowsList=Me;exports.agentWorkflowsPublish=Ve;exports.agentWorkflowsSyncExecution=He;exports.availableToolsList=Le;exports.client=o;exports.contextGet=$e;exports.docsSearchSearch=Qe;exports.executionActivitiesGet=Ye;exports.executionAgentFileDownloadRedirect=et;exports.executionAgentFilesGet=Ze;exports.executionContextFileDownloadRedirect=ot;exports.executionContextFilesGet=tt;exports.executionContextFilesUpload=rt;exports.executionDebugFileDownloadRedirect=st;exports.executionFileDownloadRedirect=it;exports.executionFilesGet=nt;exports.executionGet=_e;exports.executionRecordingRedirect=at;exports.executionStatusUpdate=lt;exports.executionUserMessagesAdd=ct;exports.executionsList=Je;exports.schemaValidationValidate=pt;exports.tempFilesStage=dt;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var R={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,O=c??(p=>new Promise(E=>setTimeout(E,p)));return {stream:async function*(){let p=d??3e3,E=0,w=s.signal??new AbortController().signal;for(;!w.aborted;){E++;let C=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let P={redirect:"follow",...s,body:s.serializedBody,headers:C,signal:w},m=new Request(g,P);e&&(m=await e(g,P));let u=await(s.fetch??globalThis.fetch)(m);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let y=u.body.pipeThrough(new TextDecoderStream).getReader(),b="",q=()=>{try{y.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await y.read();if(ee)break;b+=te,b=b.replace(/\r\n/g,`
1
+ var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var W={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},F={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,S=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=s.signal??new AbortController().signal;for(;!P.aborted;){E++;let C=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let w={redirect:"follow",...s,body:s.serializedBody,headers:C,signal:P},h=new Request(g,w);e&&(h=await e(g,w));let A=await(s.fetch??globalThis.fetch)(h);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let y=A.body.pipeThrough(new TextDecoderStream).getReader(),O="",q=()=>{try{y.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await y.read();if(ee)break;O+=te,O=O.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let M=b.split(`
3
+ `);let z=O.split(`
4
4
 
5
- `);b=M.pop()??"";for(let re of M){let oe=re.split(`
6
- `),G=[],B;for(let h of oe)if(h.startsWith("data:"))G.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))B=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))f=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let N=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(p=N);}let S,j=!1;if(G.length){let h=G.join(`
7
- `);try{S=JSON.parse(h),j=!0;}catch{S=h;}}j&&(i&&await i(S),n&&(S=await n(S))),r?.({data:S,event:B,id:f,retry:p}),G.length&&(yield S);}}}finally{w.removeEventListener("abort",q),y.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&E>=l)break;let m=Math.min(p*2**(E-1),a??3e4);await O(m);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let d=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(d);return n==="label"||n==="matrix"?d+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let d=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(d=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:d,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:d,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,l=(e??"")+d;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let d in n){let l=n[d];if(l==null)continue;let a=e[d]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:d,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:d,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:d,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},de=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?de(r):Object.entries(r);for(let[i,d]of n)if(d===null)t.delete(i);else if(Array.isArray(d))for(let l of d)t.append(i,l);else d!==void 0&&t.set(i,typeof d=="object"?JSON.stringify(d):d);}return t},T=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new T,request:new T,response:new T}),pe=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:pe,...e});var z=(e={})=>{let t=K(k(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),d=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await d(g),O={redirect:"follow",...s,body:$(s)},x=new Request(f,O);for(let A of i.request.fns)A&&(x=await A(x,s));let F=s.fetch,p;try{p=await F(x);}catch(A){let u=A;for(let y of i.error.fns)y&&(u=await y(A,void 0,x,s));if(u=u||{},s.throwOnError)throw u;return s.responseStyle==="data"?void 0:{error:u,request:x,response:void 0}}for(let A of i.response.fns)A&&(p=await A(p,x,s));let E={request:x,response:p};if(p.ok){let A=(s.parseAs==="auto"?_(p.headers.get("Content-Type")):s.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let y;switch(A){case "arrayBuffer":case "blob":case "text":y=await p[A]();break;case "formData":y=new FormData;break;case "stream":y=p.body;break;default:y={};break}return s.responseStyle==="data"?y:{data:y,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await p[A]();break;case "stream":return s.responseStyle==="data"?p.body:{data:p.body,...E}}return A==="json"&&(s.responseValidator&&await s.responseValidator(u),s.responseTransformer&&(u=await s.responseTransformer(u))),s.responseStyle==="data"?u:{data:u,...E}}let w=await p.text(),C;try{C=JSON.parse(w);}catch{}let P=C??w,m=P;for(let A of i.error.fns)A&&(m=await A(P,p,x,s));if(m=m||{},s.throwOnError)throw m;return s.responseStyle==="data"?void 0:{error:m,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:O}=await d(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(x,F)=>{let p=new Request(x,F);for(let E of i.request.fns)E&&(p=await E(p,f));return p},url:O})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ye=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Ue=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),qe=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Me=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Be=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),je=e=>(e.client??o).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Xe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),et=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),ot=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ct=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),ut=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),ft=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Et=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),xt=e=>(e.client??o).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- export{Ae as adminCustomerActivityList,ue as adminCustomerActivityNotableList,fe as adminCustomerActivityWindowStatsList,Le as agentByIdDelete,Ue as agentByIdUpdate,We as agentCreate,Ke as agentExecutePost,Ie as agentList,Te as agentProfileClearBrowserCache,Oe as agentProfileDelete,ke as agentProfileDuplicate,Ce as agentProfileGet,Ge as agentProfileGetInboxEmail,Fe as agentProfileGetInboxEmails,xe as agentProfilePoolDelete,he as agentProfilePoolGet,Se as agentProfilePoolMembersAdd,Pe as agentProfilePoolMembersList,we as agentProfilePoolMembersRemove,me as agentProfilePoolUpdate,ye as agentProfilePoolsCreate,Ee as agentProfilePoolsList,be as agentProfileUpdate,De as agentProfilesCreate,Re as agentProfilesList,Ne as agentSharedFileDownloadRedirect,Be as agentSharedFilesDelete,Me as agentSharedFilesDeleteAll,Xe as agentSharedFilesFreeze,ze as agentSharedFilesGet,je as agentSharedFilesUpdate,qe as agentSharedFilesUpload,He as agentWorkflowsCreate,$e as agentWorkflowsDeleteWorkflow,Je as agentWorkflowsExecute,Qe as agentWorkflowsGet,_e as agentWorkflowsGetInputs,Ye as agentWorkflowsGetOutputSchemas,Ve as agentWorkflowsList,Ze as agentWorkflowsPublish,et as agentWorkflowsSyncExecution,ve as availableToolsList,o as client,tt as contextGet,rt as docsSearchSearch,nt as executionActivitiesGet,at as executionAgentFileDownloadRedirect,it as executionAgentFilesGet,dt as executionContextFileDownloadRedirect,lt as executionContextFilesGet,ct as executionContextFilesUpload,pt as executionDebugFileDownloadRedirect,At as executionFileDownloadRedirect,gt as executionFilesGet,st as executionGet,ut as executionRecordingRedirect,ft as executionStatusUpdate,Et as executionUserMessagesAdd,ot as executionsList,yt as schemaValidationValidate,xt as tempFilesStage};
5
+ `);O=z.pop()??"";for(let re of z){let oe=re.split(`
6
+ `),G=[],B;for(let m of oe)if(m.startsWith("data:"))G.push(m.replace(/^data:\s*/,""));else if(m.startsWith("event:"))B=m.replace(/^event:\s*/,"");else if(m.startsWith("id:"))f=m.replace(/^id:\s*/,"");else if(m.startsWith("retry:")){let N=Number.parseInt(m.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let R,j=!1;if(G.length){let m=G.join(`
7
+ `);try{R=JSON.parse(m),j=!0;}catch{R=m;}}j&&(i&&await i(R),n&&(R=await n(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),y.releaseLock();}break}catch(w){if(t?.(w),l!==void 0&&E>=l)break;let h=Math.min(d*2**(E-1),a??3e4);await S(h);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(p);return n==="label"||n==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},v=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,v({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let p in n){let l=n[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=v({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},L=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of n)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new b,request:new b,response:new b}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},T=(e={})=>({...F,headers:ge,parseAs:"auto",querySerializer:de,...e});var M=(e={})=>{let t=K(T(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),p=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await p(g),S={redirect:"follow",...s,body:$(s)},x=new Request(f,S);for(let u of i.request.fns)u&&(x=await u(x,s));let k=s.fetch,d;try{d=await k(x);}catch(u){let A=u;for(let y of i.error.fns)y&&(A=await y(u,void 0,x,s));if(A=A||{},s.throwOnError)throw A;return s.responseStyle==="data"?void 0:{error:A,request:x,response:void 0}}for(let u of i.response.fns)u&&(d=await u(d,x,s));let E={request:x,response:d};if(d.ok){let u=(s.parseAs==="auto"?_(d.headers.get("Content-Type")):s.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let y;switch(u){case "arrayBuffer":case "blob":case "text":y=await d[u]();break;case "formData":y=new FormData;break;case "stream":y=d.body;break;default:y={};break}return s.responseStyle==="data"?y:{data:y,...E}}let A;switch(u){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[u]();break;case "stream":return s.responseStyle==="data"?d.body:{data:d.body,...E}}return u==="json"&&(s.responseValidator&&await s.responseValidator(A),s.responseTransformer&&(A=await s.responseTransformer(A))),s.responseStyle==="data"?A:{data:A,...E}}let P=await d.text(),C;try{C=JSON.parse(P);}catch{}let w=C??P,h=w;for(let u of i.error.fns)u&&(h=await u(w,d,x,s));if(h=h||{},s.throwOnError)throw h;return s.responseStyle==="data"?void 0:{error:h,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:S}=await p(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(x,k)=>{let d=new Request(x,k);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:S})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=M(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ye=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Oe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),We=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),ve=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Ue=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Ve=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),_e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),Ze=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),rt=e=>(e.client??o).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),lt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),ct=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),pt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),dt=e=>(e.client??o).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ export{ue as adminCustomerActivityList,Ae as adminCustomerActivityNotableList,fe as adminCustomerActivityWindowStatsList,Fe as agentByIdDelete,Ue as agentByIdUpdate,ve as agentCreate,Ke as agentExecutePost,Ie as agentList,Te as agentProfileClearBrowserCache,Ce as agentProfileDelete,ke as agentProfileDuplicate,Oe as agentProfileGet,We as agentProfileGetInboxEmail,Ge as agentProfileGetInboxEmails,xe as agentProfilePoolDelete,me as agentProfilePoolGet,Re as agentProfilePoolMembersAdd,we as agentProfilePoolMembersList,Pe as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,ye as agentProfilePoolsCreate,Ee as agentProfilePoolsList,be as agentProfileUpdate,Se as agentProfilesCreate,De as agentProfilesList,qe as agentWorkflowsCreate,ze as agentWorkflowsDeleteWorkflow,je as agentWorkflowsExecute,Be as agentWorkflowsGet,Ne as agentWorkflowsGetInputs,Xe as agentWorkflowsGetOutputSchemas,Me as agentWorkflowsList,Ve as agentWorkflowsPublish,He as agentWorkflowsSyncExecution,Le as availableToolsList,o as client,$e as contextGet,Qe as docsSearchSearch,Ye as executionActivitiesGet,et as executionAgentFileDownloadRedirect,Ze as executionAgentFilesGet,ot as executionContextFileDownloadRedirect,tt as executionContextFilesGet,rt as executionContextFilesUpload,st as executionDebugFileDownloadRedirect,it as executionFileDownloadRedirect,nt as executionFilesGet,_e as executionGet,at as executionRecordingRedirect,lt as executionStatusUpdate,ct as executionUserMessagesAdd,Je as executionsList,pt as schemaValidationValidate,dt as tempFilesStage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.167",
3
+ "version": "1.7.199",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",