asteroid-odyssey 1.6.369 → 1.6.374

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
@@ -1246,6 +1246,48 @@ type AgentsExecutionWorkflowUpdate = {
1246
1246
  nodeDetails?: AgentsExecutionNodeDetails;
1247
1247
  transitionDetails?: AgentsExecutionTransitionDetails;
1248
1248
  };
1249
+ /**
1250
+ * A file tracked in the agent filesystem
1251
+ */
1252
+ type AgentsFilesAgentFile = {
1253
+ id: CommonUuid;
1254
+ agentId: CommonUuid;
1255
+ filePath: string;
1256
+ fileName: string;
1257
+ fileSize: number;
1258
+ mimeType?: string;
1259
+ createdAt: string;
1260
+ updatedAt: string;
1261
+ executionId: CommonUuid;
1262
+ directory: AgentsFilesAgentFileDirectory;
1263
+ createdBy: AgentsFilesAgentFileCreatedBy;
1264
+ downloadUrl: string;
1265
+ };
1266
+ /**
1267
+ * Creator of the file
1268
+ */
1269
+ type AgentsFilesAgentFileCreatedBy = 'user' | 'agent' | 'environment' | 'system';
1270
+ /**
1271
+ * Directory types within the agent filesystem
1272
+ */
1273
+ type AgentsFilesAgentFileDirectory = 'uploads' | 'downloads' | 'workspace' | 'shared' | 'debug';
1274
+ /**
1275
+ * Files grouped by their agent directory
1276
+ */
1277
+ type AgentsFilesAgentFilesDirectoryListing = {
1278
+ uploads?: Array<AgentsFilesAgentFile>;
1279
+ downloads?: Array<AgentsFilesAgentFile>;
1280
+ workspace?: Array<AgentsFilesAgentFile>;
1281
+ shared?: Array<AgentsFilesAgentFile>;
1282
+ debug?: Array<AgentsFilesAgentFile>;
1283
+ };
1284
+ /**
1285
+ * Response containing all agent files for an execution, grouped by directory
1286
+ */
1287
+ type AgentsFilesAgentFilesResponse = {
1288
+ directories: AgentsFilesAgentFilesDirectoryListing;
1289
+ lastUpdated?: string;
1290
+ };
1249
1291
  type AgentsFilesFile = {
1250
1292
  id: CommonUuid;
1251
1293
  executionId: CommonUuid;
@@ -3822,6 +3864,28 @@ type ExecutionActivitiesGetResponses = {
3822
3864
  200: Array<AgentsExecutionActivity>;
3823
3865
  };
3824
3866
  type ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponses[keyof ExecutionActivitiesGetResponses];
3867
+ type ExecutionAgentFilesGetData = {
3868
+ body?: never;
3869
+ path: {
3870
+ executionId: CommonUuid;
3871
+ };
3872
+ query?: never;
3873
+ url: '/executions/{executionId}/agent-files';
3874
+ };
3875
+ type ExecutionAgentFilesGetErrors = {
3876
+ /**
3877
+ * The server cannot find the requested resource.
3878
+ */
3879
+ 404: 'Execution not found.';
3880
+ };
3881
+ type ExecutionAgentFilesGetError = ExecutionAgentFilesGetErrors[keyof ExecutionAgentFilesGetErrors];
3882
+ type ExecutionAgentFilesGetResponses = {
3883
+ /**
3884
+ * The request has succeeded.
3885
+ */
3886
+ 200: AgentsFilesAgentFilesResponse;
3887
+ };
3888
+ type ExecutionAgentFilesGetResponse = ExecutionAgentFilesGetResponses[keyof ExecutionAgentFilesGetResponses];
3825
3889
  type ExecutionContextFilesGetData = {
3826
3890
  body?: never;
3827
3891
  path: {
@@ -4305,6 +4369,12 @@ declare const executionGet: <ThrowOnError extends boolean = false>(options: Opti
4305
4369
  * Get activities for an execution
4306
4370
  */
4307
4371
  declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
4372
+ /**
4373
+ * Get Agent Files
4374
+ *
4375
+ * Get all agent files for an execution, grouped by directory. Files are tracked by the file syncer daemon during execution.
4376
+ */
4377
+ declare const executionAgentFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionAgentFilesGetData, ThrowOnError>) => RequestResult<ExecutionAgentFilesGetResponses, ExecutionAgentFilesGetErrors, ThrowOnError, "fields">;
4308
4378
  /**
4309
4379
  * Get Execution Context Files
4310
4380
  *
@@ -4348,4 +4418,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
4348
4418
  */
4349
4419
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
4350
4420
 
4351
- export { 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 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 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 AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, 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 AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, 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 AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, 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 AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, 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 AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, 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 AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, 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 ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, 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, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
4421
+ export { 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 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 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 AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, 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 AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, 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 AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, 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 AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, 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 AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, 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 AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, 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 AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, 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 ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, 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, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFilesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.d.ts CHANGED
@@ -1246,6 +1246,48 @@ type AgentsExecutionWorkflowUpdate = {
1246
1246
  nodeDetails?: AgentsExecutionNodeDetails;
1247
1247
  transitionDetails?: AgentsExecutionTransitionDetails;
1248
1248
  };
1249
+ /**
1250
+ * A file tracked in the agent filesystem
1251
+ */
1252
+ type AgentsFilesAgentFile = {
1253
+ id: CommonUuid;
1254
+ agentId: CommonUuid;
1255
+ filePath: string;
1256
+ fileName: string;
1257
+ fileSize: number;
1258
+ mimeType?: string;
1259
+ createdAt: string;
1260
+ updatedAt: string;
1261
+ executionId: CommonUuid;
1262
+ directory: AgentsFilesAgentFileDirectory;
1263
+ createdBy: AgentsFilesAgentFileCreatedBy;
1264
+ downloadUrl: string;
1265
+ };
1266
+ /**
1267
+ * Creator of the file
1268
+ */
1269
+ type AgentsFilesAgentFileCreatedBy = 'user' | 'agent' | 'environment' | 'system';
1270
+ /**
1271
+ * Directory types within the agent filesystem
1272
+ */
1273
+ type AgentsFilesAgentFileDirectory = 'uploads' | 'downloads' | 'workspace' | 'shared' | 'debug';
1274
+ /**
1275
+ * Files grouped by their agent directory
1276
+ */
1277
+ type AgentsFilesAgentFilesDirectoryListing = {
1278
+ uploads?: Array<AgentsFilesAgentFile>;
1279
+ downloads?: Array<AgentsFilesAgentFile>;
1280
+ workspace?: Array<AgentsFilesAgentFile>;
1281
+ shared?: Array<AgentsFilesAgentFile>;
1282
+ debug?: Array<AgentsFilesAgentFile>;
1283
+ };
1284
+ /**
1285
+ * Response containing all agent files for an execution, grouped by directory
1286
+ */
1287
+ type AgentsFilesAgentFilesResponse = {
1288
+ directories: AgentsFilesAgentFilesDirectoryListing;
1289
+ lastUpdated?: string;
1290
+ };
1249
1291
  type AgentsFilesFile = {
1250
1292
  id: CommonUuid;
1251
1293
  executionId: CommonUuid;
@@ -3822,6 +3864,28 @@ type ExecutionActivitiesGetResponses = {
3822
3864
  200: Array<AgentsExecutionActivity>;
3823
3865
  };
3824
3866
  type ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponses[keyof ExecutionActivitiesGetResponses];
3867
+ type ExecutionAgentFilesGetData = {
3868
+ body?: never;
3869
+ path: {
3870
+ executionId: CommonUuid;
3871
+ };
3872
+ query?: never;
3873
+ url: '/executions/{executionId}/agent-files';
3874
+ };
3875
+ type ExecutionAgentFilesGetErrors = {
3876
+ /**
3877
+ * The server cannot find the requested resource.
3878
+ */
3879
+ 404: 'Execution not found.';
3880
+ };
3881
+ type ExecutionAgentFilesGetError = ExecutionAgentFilesGetErrors[keyof ExecutionAgentFilesGetErrors];
3882
+ type ExecutionAgentFilesGetResponses = {
3883
+ /**
3884
+ * The request has succeeded.
3885
+ */
3886
+ 200: AgentsFilesAgentFilesResponse;
3887
+ };
3888
+ type ExecutionAgentFilesGetResponse = ExecutionAgentFilesGetResponses[keyof ExecutionAgentFilesGetResponses];
3825
3889
  type ExecutionContextFilesGetData = {
3826
3890
  body?: never;
3827
3891
  path: {
@@ -4305,6 +4369,12 @@ declare const executionGet: <ThrowOnError extends boolean = false>(options: Opti
4305
4369
  * Get activities for an execution
4306
4370
  */
4307
4371
  declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
4372
+ /**
4373
+ * Get Agent Files
4374
+ *
4375
+ * Get all agent files for an execution, grouped by directory. Files are tracked by the file syncer daemon during execution.
4376
+ */
4377
+ declare const executionAgentFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionAgentFilesGetData, ThrowOnError>) => RequestResult<ExecutionAgentFilesGetResponses, ExecutionAgentFilesGetErrors, ThrowOnError, "fields">;
4308
4378
  /**
4309
4379
  * Get Execution Context Files
4310
4380
  *
@@ -4348,4 +4418,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
4348
4418
  */
4349
4419
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
4350
4420
 
4351
- export { 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 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 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 AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, 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 AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, 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 AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, 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 AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, 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 AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, 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 AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, 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 ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, 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, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
4421
+ export { 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 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 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 AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, 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 AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, 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 AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, 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 AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, 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 AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, 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 AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, 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 AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, 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 ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, 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, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFilesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.js CHANGED
@@ -4,5 +4,5 @@
4
4
 
5
5
  `);T=K.pop()??"";for(let re of K){let oe=re.split(`
6
6
  `),G=[],j;for(let x of oe)if(x.startsWith("data:"))G.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))j=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))f=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let N=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let w,B=!1;if(G.length){let x=G.join(`
7
- `);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};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 "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+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:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=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 p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(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}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.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"}},pe=(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(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(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},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}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 s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=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"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(k(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let F=o.fetch,d;try{d=await F(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let d=new Request(y,F);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).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}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).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}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Qe=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Je=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),_e=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- exports.agentExecutePost=ke;exports.agentList=Te;exports.agentProfileClearBrowserCache=Oe;exports.agentProfileDelete=we;exports.agentProfileDuplicate=Ce;exports.agentProfileGet=Re;exports.agentProfilePoolDelete=fe;exports.agentProfilePoolGet=Ee;exports.agentProfilePoolMembersAdd=Pe;exports.agentProfilePoolMembersList=xe;exports.agentProfilePoolMembersRemove=ye;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=ue;exports.agentProfilePoolsList=Ae;exports.agentProfileUpdate=De;exports.agentProfilesCreate=me;exports.agentProfilesList=Se;exports.agentSharedFilesDelete=We;exports.agentSharedFilesDeleteAll=Ue;exports.agentSharedFilesFreeze=Le;exports.agentSharedFilesGet=Fe;exports.agentSharedFilesUpdate=ve;exports.agentSharedFilesUpload=Ge;exports.agentWorkflowsCreate=Ie;exports.agentWorkflowsExecute=Me;exports.agentWorkflowsGet=qe;exports.agentWorkflowsList=ze;exports.agentWorkflowsPublish=Ke;exports.agentWorkflowsSyncExecution=je;exports.availableToolsList=be;exports.client=i;exports.contextGet=Be;exports.docsSearchSearch=Ne;exports.executionActivitiesGet=He;exports.executionContextFilesGet=$e;exports.executionContextFilesUpload=Qe;exports.executionGet=Xe;exports.executionRecordingRedirect=Je;exports.executionStatusUpdate=_e;exports.executionUserMessagesAdd=Ye;exports.executionsList=Ve;exports.schemaValidationValidate=Ze;exports.tempFilesStage=et;
7
+ `);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};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 "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+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:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=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 p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(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}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.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"}},pe=(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(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(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},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}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 s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=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"},F=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(F(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let k=o.fetch,d;try{d=await k(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,k)=>{let d=new Request(y,k);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(F({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Fe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).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}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).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}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),Qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Je=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),_e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ exports.agentExecutePost=Fe;exports.agentList=Te;exports.agentProfileClearBrowserCache=Oe;exports.agentProfileDelete=we;exports.agentProfileDuplicate=Ce;exports.agentProfileGet=Re;exports.agentProfilePoolDelete=fe;exports.agentProfilePoolGet=Ee;exports.agentProfilePoolMembersAdd=Pe;exports.agentProfilePoolMembersList=xe;exports.agentProfilePoolMembersRemove=ye;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=ue;exports.agentProfilePoolsList=Ae;exports.agentProfileUpdate=De;exports.agentProfilesCreate=me;exports.agentProfilesList=Se;exports.agentSharedFilesDelete=We;exports.agentSharedFilesDeleteAll=Ue;exports.agentSharedFilesFreeze=Le;exports.agentSharedFilesGet=ke;exports.agentSharedFilesUpdate=ve;exports.agentSharedFilesUpload=Ge;exports.agentWorkflowsCreate=Ie;exports.agentWorkflowsExecute=Me;exports.agentWorkflowsGet=qe;exports.agentWorkflowsList=ze;exports.agentWorkflowsPublish=Ke;exports.agentWorkflowsSyncExecution=je;exports.availableToolsList=be;exports.client=i;exports.contextGet=Be;exports.docsSearchSearch=Ne;exports.executionActivitiesGet=He;exports.executionAgentFilesGet=$e;exports.executionContextFilesGet=Qe;exports.executionContextFilesUpload=Je;exports.executionGet=Xe;exports.executionRecordingRedirect=_e;exports.executionStatusUpdate=Ye;exports.executionUserMessagesAdd=Ze;exports.executionsList=Ve;exports.schemaValidationValidate=et;exports.tempFilesStage=tt;
package/dist/index.mjs CHANGED
@@ -4,5 +4,5 @@ var V=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof
4
4
 
5
5
  `);T=K.pop()??"";for(let re of K){let oe=re.split(`
6
6
  `),G=[],j;for(let x of oe)if(x.startsWith("data:"))G.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))j=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))f=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let N=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let w,B=!1;if(G.length){let x=G.join(`
7
- `);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};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 "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+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:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=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 p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(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}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.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"}},pe=(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(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(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},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}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 s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=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"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(k(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let F=o.fetch,d;try{d=await F(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let d=new Request(y,F);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).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}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).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}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Qe=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Je=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),_e=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- export{ke as agentExecutePost,Te as agentList,Oe as agentProfileClearBrowserCache,we as agentProfileDelete,Ce as agentProfileDuplicate,Re as agentProfileGet,fe as agentProfilePoolDelete,Ee as agentProfilePoolGet,Pe as agentProfilePoolMembersAdd,xe as agentProfilePoolMembersList,ye as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,ue as agentProfilePoolsCreate,Ae as agentProfilePoolsList,De as agentProfileUpdate,me as agentProfilesCreate,Se as agentProfilesList,We as agentSharedFilesDelete,Ue as agentSharedFilesDeleteAll,Le as agentSharedFilesFreeze,Fe as agentSharedFilesGet,ve as agentSharedFilesUpdate,Ge as agentSharedFilesUpload,Ie as agentWorkflowsCreate,Me as agentWorkflowsExecute,qe as agentWorkflowsGet,ze as agentWorkflowsList,Ke as agentWorkflowsPublish,je as agentWorkflowsSyncExecution,be as availableToolsList,i as client,Be as contextGet,Ne as docsSearchSearch,He as executionActivitiesGet,$e as executionContextFilesGet,Qe as executionContextFilesUpload,Xe as executionGet,Je as executionRecordingRedirect,_e as executionStatusUpdate,Ye as executionUserMessagesAdd,Ve as executionsList,Ze as schemaValidationValidate,et as tempFilesStage};
7
+ `);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};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 "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+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:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=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 p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(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}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.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"}},pe=(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(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(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},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}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 s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=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"},F=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(F(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let k=o.fetch,d;try{d=await k(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,k)=>{let d=new Request(y,k);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(F({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Fe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).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}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).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}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),Qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Je=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),_e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ export{Fe as agentExecutePost,Te as agentList,Oe as agentProfileClearBrowserCache,we as agentProfileDelete,Ce as agentProfileDuplicate,Re as agentProfileGet,fe as agentProfilePoolDelete,Ee as agentProfilePoolGet,Pe as agentProfilePoolMembersAdd,xe as agentProfilePoolMembersList,ye as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,ue as agentProfilePoolsCreate,Ae as agentProfilePoolsList,De as agentProfileUpdate,me as agentProfilesCreate,Se as agentProfilesList,We as agentSharedFilesDelete,Ue as agentSharedFilesDeleteAll,Le as agentSharedFilesFreeze,ke as agentSharedFilesGet,ve as agentSharedFilesUpdate,Ge as agentSharedFilesUpload,Ie as agentWorkflowsCreate,Me as agentWorkflowsExecute,qe as agentWorkflowsGet,ze as agentWorkflowsList,Ke as agentWorkflowsPublish,je as agentWorkflowsSyncExecution,be as availableToolsList,i as client,Be as contextGet,Ne as docsSearchSearch,He as executionActivitiesGet,$e as executionAgentFilesGet,Qe as executionContextFilesGet,Je as executionContextFilesUpload,Xe as executionGet,_e as executionRecordingRedirect,Ye as executionStatusUpdate,Ze as executionUserMessagesAdd,Ve as executionsList,et as schemaValidationValidate,tt as tempFilesStage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.6.369",
3
+ "version": "1.6.374",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",