asteroid-odyssey 1.7.330 → 1.7.337

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
@@ -1938,6 +1938,19 @@ type AgentsExecutionBatchBase = {
1938
1938
  */
1939
1939
  updatedAt: string;
1940
1940
  };
1941
+ /**
1942
+ * Warmup-triggered execution context: launched by a warm pool's replenisher
1943
+ */
1944
+ type AgentsExecutionWarmupTriggerContext = {
1945
+ /**
1946
+ * Trigger source discriminator
1947
+ */
1948
+ source: 'warmup';
1949
+ /**
1950
+ * Warm pool whose replenisher launched the execution
1951
+ */
1952
+ warmPoolId: CommonUuid;
1953
+ };
1941
1954
  type AgentsExecutionUtilGetDatetimeStartedDetails = {
1942
1955
  actionName: 'util_get_datetime';
1943
1956
  tzTimezoneIdentifier: string;
@@ -2000,7 +2013,9 @@ type AgentsExecutionTriggerContext = ({
2000
2013
  source: 'ui';
2001
2014
  } & AgentsExecutionUiTriggerContext) | ({
2002
2015
  source: 'schedule';
2003
- } & AgentsExecutionScheduleTriggerContext);
2016
+ } & AgentsExecutionScheduleTriggerContext) | ({
2017
+ source: 'warmup';
2018
+ } & AgentsExecutionWarmupTriggerContext);
2004
2019
  /**
2005
2020
  * Schedule reference for schedule-triggered executions
2006
2021
  */
@@ -3095,6 +3110,16 @@ type AgentsEnvironmentWorkflowEnvironmentSource = {
3095
3110
  */
3096
3111
  workflowId?: CommonUuid;
3097
3112
  };
3113
+ /**
3114
+ * A warm pool owns the environment for its whole life; executions borrow it without ever taking ownership.
3115
+ */
3116
+ type AgentsEnvironmentWarmPoolEnvironmentOwner = {
3117
+ type: 'warm_pool';
3118
+ /**
3119
+ * The warm pool the environment belongs to.
3120
+ */
3121
+ warmPoolId: CommonUuid;
3122
+ };
3098
3123
  /**
3099
3124
  * Request to start an environment. An environment belongs to an organisation; the agent is an optional binding carried in the body, not a path segment. With an agent, the environment is stamped external-owned and the agent's workflow/profile drive provisioning; without one, it is organization-owned and provisions from the explicit spec alone.
3100
3125
  */
@@ -3248,7 +3273,7 @@ type AgentsEnvironmentExecutionEnvironmentOwner = {
3248
3273
  executionId: CommonUuid;
3249
3274
  };
3250
3275
  /**
3251
- * Who the environment belongs to. Discriminated on `type`, mirroring the storage-side agent_environment.owner_type, so each owner kind carries exactly the identity it has — an execution id only exists for execution-owned envs, a chat id only for astro-owned ones. A future owner kind (warm pools) joins as a member rather than as another optional column.
3276
+ * Who the environment belongs to. Discriminated on `type`, mirroring the storage-side agent_environment.owner_type, so each owner kind carries exactly the identity it has — an execution id only exists for execution-owned envs, a chat id only for astro-owned ones. A future owner kind joins as a member rather than as another optional column.
3252
3277
  */
3253
3278
  type AgentsEnvironmentEnvironmentOwner = ({
3254
3279
  type: 'execution';
@@ -3258,7 +3283,9 @@ type AgentsEnvironmentEnvironmentOwner = ({
3258
3283
  type: 'external';
3259
3284
  } & AgentsEnvironmentExternalEnvironmentOwner) | ({
3260
3285
  type: 'organization';
3261
- } & AgentsEnvironmentOrganizationEnvironmentOwner);
3286
+ } & AgentsEnvironmentOrganizationEnvironmentOwner) | ({
3287
+ type: 'warm_pool';
3288
+ } & AgentsEnvironmentWarmPoolEnvironmentOwner);
3262
3289
  /**
3263
3290
  * An environment as it appears in a list. Carries everything a row needs; the provider `state` is fetched with the environment itself, because resolving it mints a signed recording URL per environment and a list would mint one per row.
3264
3291
  */
@@ -3686,7 +3713,7 @@ type AgentsExecutionSearchWorkflowVersion = number;
3686
3713
  /**
3687
3714
  * Filter by how the execution was triggered (can specify multiple, there is an 'OR' condition applied to these)
3688
3715
  */
3689
- type AgentsExecutionSearchTriggerSource = Array<'api' | 'ui' | 'schedule'>;
3716
+ type AgentsExecutionSearchTriggerSource = Array<'api' | 'ui' | 'schedule' | 'warmup'>;
3690
3717
  /**
3691
3718
  * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
3692
3719
  */
@@ -5816,7 +5843,7 @@ type ExecutionsListData = {
5816
5843
  /**
5817
5844
  * Filter by how the execution was triggered (can specify multiple, there is an 'OR' condition applied to these)
5818
5845
  */
5819
- triggerSource?: Array<'api' | 'ui' | 'schedule'>;
5846
+ triggerSource?: Array<'api' | 'ui' | 'schedule' | 'warmup'>;
5820
5847
  sortField?: AgentsExecutionSortField;
5821
5848
  sortDirection?: CommonSortDirection;
5822
5849
  };
@@ -6815,4 +6842,4 @@ declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Op
6815
6842
  */
6816
6843
  declare const workflowSpecValidationValidate: <ThrowOnError extends boolean = false>(options: Options<WorkflowSpecValidationValidateData, ThrowOnError>) => RequestResult<WorkflowSpecValidationValidateResponses, WorkflowSpecValidationValidateErrors, ThrowOnError, "fields">;
6817
6844
 
6818
- export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsValidateData, type AgentWorkflowsValidateError, type AgentWorkflowsValidateErrors, type AgentWorkflowsValidateResponse, type AgentWorkflowsValidateResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentExternalCreateRequest, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsEnvironmentAstroEnvironmentOwner, type AgentsEnvironmentEnvironment, type AgentsEnvironmentEnvironmentConnection, type AgentsEnvironmentEnvironmentOwner, type AgentsEnvironmentEnvironmentSource, type AgentsEnvironmentEnvironmentStatus, type AgentsEnvironmentEnvironmentSummary, type AgentsEnvironmentExecutionEnvironmentOwner, type AgentsEnvironmentExplicitEnvironmentSource, type AgentsEnvironmentExternalEnvironmentOwner, type AgentsEnvironmentListEnvironmentsResponse, type AgentsEnvironmentOrganizationEnvironmentOwner, type AgentsEnvironmentSpecBrowserTemplate, type AgentsEnvironmentSpecEnvironmentTemplate, type AgentsEnvironmentSpecOsTemplate, type AgentsEnvironmentStartEnvironmentRequest, type AgentsEnvironmentWorkflowEnvironmentSource, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityOutputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionAnchorProviderConfig, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBatchBase, type AgentsExecutionBatchBatchConfig, type AgentsExecutionBatchBatchItem, type AgentsExecutionBatchCreateRequest, type AgentsExecutionBatchListFilterAgentId, type AgentsExecutionBatchListFilterStatus, type AgentsExecutionBatchMaxConcurrentConfig, type AgentsExecutionBatchStatus, type AgentsExecutionBatchTimeBatchingConfig, type AgentsExecutionBrowserProviderConfig, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionBrowserState, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionDaytonaProviderConfig, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionEnvironmentState, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionInputResolutionSource, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionOsState, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionSteelProviderConfig, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsExternalSettings, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsScheduledExecutionBase, type AgentsScheduledExecutionListFilterAgentId, type AgentsScheduledExecutionListFilterBatchId, type AgentsScheduledExecutionListFilterOrder, type AgentsScheduledExecutionListFilterStatus, type AgentsScheduledExecutionListFilterWorkflowId, type AgentsScheduledExecutionStatus, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowExternalCreateWorkflowRequest, type AgentsWorkflowExternalWorkflowSnapshot, type AgentsWorkflowInput, type AgentsWorkflowLiveEnvironmentCuaConnection, type AgentsWorkflowLiveEnvironmentCuaProvider, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowValidationIssue, type AgentsWorkflowWorkflowValidationResponse, type AgentsWorkflowWorkflowValidationSeverity, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type EnvironmentByIdGetData, type EnvironmentByIdGetError, type EnvironmentByIdGetErrors, type EnvironmentByIdGetResponse, type EnvironmentByIdGetResponses, type EnvironmentByIdStopData, type EnvironmentByIdStopError, type EnvironmentByIdStopErrors, type EnvironmentByIdStopResponse, type EnvironmentByIdStopResponses, type EnvironmentsListData, type EnvironmentsListError, type EnvironmentsListErrors, type EnvironmentsListResponse, type EnvironmentsListResponses, type EnvironmentsStartData, type EnvironmentsStartError, type EnvironmentsStartErrors, type EnvironmentsStartResponse, type EnvironmentsStartResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionBatchCancelData, type ExecutionBatchCancelError, type ExecutionBatchCancelErrors, type ExecutionBatchCancelResponse, type ExecutionBatchCancelResponses, type ExecutionBatchGetData, type ExecutionBatchGetError, type ExecutionBatchGetErrors, type ExecutionBatchGetResponse, type ExecutionBatchGetResponses, type ExecutionBatchPauseData, type ExecutionBatchPauseError, type ExecutionBatchPauseErrors, type ExecutionBatchPauseResponse, type ExecutionBatchPauseResponses, type ExecutionBatchResumeData, type ExecutionBatchResumeError, type ExecutionBatchResumeErrors, type ExecutionBatchResumeResponse, type ExecutionBatchResumeResponses, type ExecutionBatchesCreateData, type ExecutionBatchesCreateError, type ExecutionBatchesCreateErrors, type ExecutionBatchesCreateResponse, type ExecutionBatchesCreateResponses, type ExecutionBatchesListData, type ExecutionBatchesListError, type ExecutionBatchesListErrors, type ExecutionBatchesListResponse, type ExecutionBatchesListResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type ScheduledExecutionsListData, type ScheduledExecutionsListError, type ScheduledExecutionsListErrors, type ScheduledExecutionsListResponse, type ScheduledExecutionsListResponses, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type WorkflowSpecValidationValidateData, type WorkflowSpecValidationValidateError, type WorkflowSpecValidationValidateErrors, type WorkflowSpecValidationValidateResponse, type WorkflowSpecValidationValidateResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsValidate, availableToolsList, client, contextGet, docsSearchSearch, environmentByIdGet, environmentByIdStop, environmentsList, environmentsStart, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionBatchCancel, executionBatchGet, executionBatchPause, executionBatchResume, executionBatchesCreate, executionBatchesList, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, scheduledExecutionsList, schemaValidationValidate, tempFilesStage, workflowSpecValidationValidate };
6845
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsValidateData, type AgentWorkflowsValidateError, type AgentWorkflowsValidateErrors, type AgentWorkflowsValidateResponse, type AgentWorkflowsValidateResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentExternalCreateRequest, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsEnvironmentAstroEnvironmentOwner, type AgentsEnvironmentEnvironment, type AgentsEnvironmentEnvironmentConnection, type AgentsEnvironmentEnvironmentOwner, type AgentsEnvironmentEnvironmentSource, type AgentsEnvironmentEnvironmentStatus, type AgentsEnvironmentEnvironmentSummary, type AgentsEnvironmentExecutionEnvironmentOwner, type AgentsEnvironmentExplicitEnvironmentSource, type AgentsEnvironmentExternalEnvironmentOwner, type AgentsEnvironmentListEnvironmentsResponse, type AgentsEnvironmentOrganizationEnvironmentOwner, type AgentsEnvironmentSpecBrowserTemplate, type AgentsEnvironmentSpecEnvironmentTemplate, type AgentsEnvironmentSpecOsTemplate, type AgentsEnvironmentStartEnvironmentRequest, type AgentsEnvironmentWarmPoolEnvironmentOwner, type AgentsEnvironmentWorkflowEnvironmentSource, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityOutputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionAnchorProviderConfig, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBatchBase, type AgentsExecutionBatchBatchConfig, type AgentsExecutionBatchBatchItem, type AgentsExecutionBatchCreateRequest, type AgentsExecutionBatchListFilterAgentId, type AgentsExecutionBatchListFilterStatus, type AgentsExecutionBatchMaxConcurrentConfig, type AgentsExecutionBatchStatus, type AgentsExecutionBatchTimeBatchingConfig, type AgentsExecutionBrowserProviderConfig, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionBrowserState, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionDaytonaProviderConfig, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionEnvironmentState, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionInputResolutionSource, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionOsState, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionSteelProviderConfig, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWarmupTriggerContext, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsExternalSettings, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsScheduledExecutionBase, type AgentsScheduledExecutionListFilterAgentId, type AgentsScheduledExecutionListFilterBatchId, type AgentsScheduledExecutionListFilterOrder, type AgentsScheduledExecutionListFilterStatus, type AgentsScheduledExecutionListFilterWorkflowId, type AgentsScheduledExecutionStatus, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowExternalCreateWorkflowRequest, type AgentsWorkflowExternalWorkflowSnapshot, type AgentsWorkflowInput, type AgentsWorkflowLiveEnvironmentCuaConnection, type AgentsWorkflowLiveEnvironmentCuaProvider, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowValidationIssue, type AgentsWorkflowWorkflowValidationResponse, type AgentsWorkflowWorkflowValidationSeverity, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type EnvironmentByIdGetData, type EnvironmentByIdGetError, type EnvironmentByIdGetErrors, type EnvironmentByIdGetResponse, type EnvironmentByIdGetResponses, type EnvironmentByIdStopData, type EnvironmentByIdStopError, type EnvironmentByIdStopErrors, type EnvironmentByIdStopResponse, type EnvironmentByIdStopResponses, type EnvironmentsListData, type EnvironmentsListError, type EnvironmentsListErrors, type EnvironmentsListResponse, type EnvironmentsListResponses, type EnvironmentsStartData, type EnvironmentsStartError, type EnvironmentsStartErrors, type EnvironmentsStartResponse, type EnvironmentsStartResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionBatchCancelData, type ExecutionBatchCancelError, type ExecutionBatchCancelErrors, type ExecutionBatchCancelResponse, type ExecutionBatchCancelResponses, type ExecutionBatchGetData, type ExecutionBatchGetError, type ExecutionBatchGetErrors, type ExecutionBatchGetResponse, type ExecutionBatchGetResponses, type ExecutionBatchPauseData, type ExecutionBatchPauseError, type ExecutionBatchPauseErrors, type ExecutionBatchPauseResponse, type ExecutionBatchPauseResponses, type ExecutionBatchResumeData, type ExecutionBatchResumeError, type ExecutionBatchResumeErrors, type ExecutionBatchResumeResponse, type ExecutionBatchResumeResponses, type ExecutionBatchesCreateData, type ExecutionBatchesCreateError, type ExecutionBatchesCreateErrors, type ExecutionBatchesCreateResponse, type ExecutionBatchesCreateResponses, type ExecutionBatchesListData, type ExecutionBatchesListError, type ExecutionBatchesListErrors, type ExecutionBatchesListResponse, type ExecutionBatchesListResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type ScheduledExecutionsListData, type ScheduledExecutionsListError, type ScheduledExecutionsListErrors, type ScheduledExecutionsListResponse, type ScheduledExecutionsListResponses, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type WorkflowSpecValidationValidateData, type WorkflowSpecValidationValidateError, type WorkflowSpecValidationValidateErrors, type WorkflowSpecValidationValidateResponse, type WorkflowSpecValidationValidateResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsValidate, availableToolsList, client, contextGet, docsSearchSearch, environmentByIdGet, environmentByIdStop, environmentsList, environmentsStart, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionBatchCancel, executionBatchGet, executionBatchPause, executionBatchResume, executionBatchesCreate, executionBatchesList, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, scheduledExecutionsList, schemaValidationValidate, tempFilesStage, workflowSpecValidationValidate };
package/dist/index.d.ts CHANGED
@@ -1938,6 +1938,19 @@ type AgentsExecutionBatchBase = {
1938
1938
  */
1939
1939
  updatedAt: string;
1940
1940
  };
1941
+ /**
1942
+ * Warmup-triggered execution context: launched by a warm pool's replenisher
1943
+ */
1944
+ type AgentsExecutionWarmupTriggerContext = {
1945
+ /**
1946
+ * Trigger source discriminator
1947
+ */
1948
+ source: 'warmup';
1949
+ /**
1950
+ * Warm pool whose replenisher launched the execution
1951
+ */
1952
+ warmPoolId: CommonUuid;
1953
+ };
1941
1954
  type AgentsExecutionUtilGetDatetimeStartedDetails = {
1942
1955
  actionName: 'util_get_datetime';
1943
1956
  tzTimezoneIdentifier: string;
@@ -2000,7 +2013,9 @@ type AgentsExecutionTriggerContext = ({
2000
2013
  source: 'ui';
2001
2014
  } & AgentsExecutionUiTriggerContext) | ({
2002
2015
  source: 'schedule';
2003
- } & AgentsExecutionScheduleTriggerContext);
2016
+ } & AgentsExecutionScheduleTriggerContext) | ({
2017
+ source: 'warmup';
2018
+ } & AgentsExecutionWarmupTriggerContext);
2004
2019
  /**
2005
2020
  * Schedule reference for schedule-triggered executions
2006
2021
  */
@@ -3095,6 +3110,16 @@ type AgentsEnvironmentWorkflowEnvironmentSource = {
3095
3110
  */
3096
3111
  workflowId?: CommonUuid;
3097
3112
  };
3113
+ /**
3114
+ * A warm pool owns the environment for its whole life; executions borrow it without ever taking ownership.
3115
+ */
3116
+ type AgentsEnvironmentWarmPoolEnvironmentOwner = {
3117
+ type: 'warm_pool';
3118
+ /**
3119
+ * The warm pool the environment belongs to.
3120
+ */
3121
+ warmPoolId: CommonUuid;
3122
+ };
3098
3123
  /**
3099
3124
  * Request to start an environment. An environment belongs to an organisation; the agent is an optional binding carried in the body, not a path segment. With an agent, the environment is stamped external-owned and the agent's workflow/profile drive provisioning; without one, it is organization-owned and provisions from the explicit spec alone.
3100
3125
  */
@@ -3248,7 +3273,7 @@ type AgentsEnvironmentExecutionEnvironmentOwner = {
3248
3273
  executionId: CommonUuid;
3249
3274
  };
3250
3275
  /**
3251
- * Who the environment belongs to. Discriminated on `type`, mirroring the storage-side agent_environment.owner_type, so each owner kind carries exactly the identity it has — an execution id only exists for execution-owned envs, a chat id only for astro-owned ones. A future owner kind (warm pools) joins as a member rather than as another optional column.
3276
+ * Who the environment belongs to. Discriminated on `type`, mirroring the storage-side agent_environment.owner_type, so each owner kind carries exactly the identity it has — an execution id only exists for execution-owned envs, a chat id only for astro-owned ones. A future owner kind joins as a member rather than as another optional column.
3252
3277
  */
3253
3278
  type AgentsEnvironmentEnvironmentOwner = ({
3254
3279
  type: 'execution';
@@ -3258,7 +3283,9 @@ type AgentsEnvironmentEnvironmentOwner = ({
3258
3283
  type: 'external';
3259
3284
  } & AgentsEnvironmentExternalEnvironmentOwner) | ({
3260
3285
  type: 'organization';
3261
- } & AgentsEnvironmentOrganizationEnvironmentOwner);
3286
+ } & AgentsEnvironmentOrganizationEnvironmentOwner) | ({
3287
+ type: 'warm_pool';
3288
+ } & AgentsEnvironmentWarmPoolEnvironmentOwner);
3262
3289
  /**
3263
3290
  * An environment as it appears in a list. Carries everything a row needs; the provider `state` is fetched with the environment itself, because resolving it mints a signed recording URL per environment and a list would mint one per row.
3264
3291
  */
@@ -3686,7 +3713,7 @@ type AgentsExecutionSearchWorkflowVersion = number;
3686
3713
  /**
3687
3714
  * Filter by how the execution was triggered (can specify multiple, there is an 'OR' condition applied to these)
3688
3715
  */
3689
- type AgentsExecutionSearchTriggerSource = Array<'api' | 'ui' | 'schedule'>;
3716
+ type AgentsExecutionSearchTriggerSource = Array<'api' | 'ui' | 'schedule' | 'warmup'>;
3690
3717
  /**
3691
3718
  * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
3692
3719
  */
@@ -5816,7 +5843,7 @@ type ExecutionsListData = {
5816
5843
  /**
5817
5844
  * Filter by how the execution was triggered (can specify multiple, there is an 'OR' condition applied to these)
5818
5845
  */
5819
- triggerSource?: Array<'api' | 'ui' | 'schedule'>;
5846
+ triggerSource?: Array<'api' | 'ui' | 'schedule' | 'warmup'>;
5820
5847
  sortField?: AgentsExecutionSortField;
5821
5848
  sortDirection?: CommonSortDirection;
5822
5849
  };
@@ -6815,4 +6842,4 @@ declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Op
6815
6842
  */
6816
6843
  declare const workflowSpecValidationValidate: <ThrowOnError extends boolean = false>(options: Options<WorkflowSpecValidationValidateData, ThrowOnError>) => RequestResult<WorkflowSpecValidationValidateResponses, WorkflowSpecValidationValidateErrors, ThrowOnError, "fields">;
6817
6844
 
6818
- export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsValidateData, type AgentWorkflowsValidateError, type AgentWorkflowsValidateErrors, type AgentWorkflowsValidateResponse, type AgentWorkflowsValidateResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentExternalCreateRequest, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsEnvironmentAstroEnvironmentOwner, type AgentsEnvironmentEnvironment, type AgentsEnvironmentEnvironmentConnection, type AgentsEnvironmentEnvironmentOwner, type AgentsEnvironmentEnvironmentSource, type AgentsEnvironmentEnvironmentStatus, type AgentsEnvironmentEnvironmentSummary, type AgentsEnvironmentExecutionEnvironmentOwner, type AgentsEnvironmentExplicitEnvironmentSource, type AgentsEnvironmentExternalEnvironmentOwner, type AgentsEnvironmentListEnvironmentsResponse, type AgentsEnvironmentOrganizationEnvironmentOwner, type AgentsEnvironmentSpecBrowserTemplate, type AgentsEnvironmentSpecEnvironmentTemplate, type AgentsEnvironmentSpecOsTemplate, type AgentsEnvironmentStartEnvironmentRequest, type AgentsEnvironmentWorkflowEnvironmentSource, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityOutputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionAnchorProviderConfig, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBatchBase, type AgentsExecutionBatchBatchConfig, type AgentsExecutionBatchBatchItem, type AgentsExecutionBatchCreateRequest, type AgentsExecutionBatchListFilterAgentId, type AgentsExecutionBatchListFilterStatus, type AgentsExecutionBatchMaxConcurrentConfig, type AgentsExecutionBatchStatus, type AgentsExecutionBatchTimeBatchingConfig, type AgentsExecutionBrowserProviderConfig, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionBrowserState, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionDaytonaProviderConfig, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionEnvironmentState, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionInputResolutionSource, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionOsState, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionSteelProviderConfig, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsExternalSettings, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsScheduledExecutionBase, type AgentsScheduledExecutionListFilterAgentId, type AgentsScheduledExecutionListFilterBatchId, type AgentsScheduledExecutionListFilterOrder, type AgentsScheduledExecutionListFilterStatus, type AgentsScheduledExecutionListFilterWorkflowId, type AgentsScheduledExecutionStatus, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowExternalCreateWorkflowRequest, type AgentsWorkflowExternalWorkflowSnapshot, type AgentsWorkflowInput, type AgentsWorkflowLiveEnvironmentCuaConnection, type AgentsWorkflowLiveEnvironmentCuaProvider, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowValidationIssue, type AgentsWorkflowWorkflowValidationResponse, type AgentsWorkflowWorkflowValidationSeverity, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type EnvironmentByIdGetData, type EnvironmentByIdGetError, type EnvironmentByIdGetErrors, type EnvironmentByIdGetResponse, type EnvironmentByIdGetResponses, type EnvironmentByIdStopData, type EnvironmentByIdStopError, type EnvironmentByIdStopErrors, type EnvironmentByIdStopResponse, type EnvironmentByIdStopResponses, type EnvironmentsListData, type EnvironmentsListError, type EnvironmentsListErrors, type EnvironmentsListResponse, type EnvironmentsListResponses, type EnvironmentsStartData, type EnvironmentsStartError, type EnvironmentsStartErrors, type EnvironmentsStartResponse, type EnvironmentsStartResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionBatchCancelData, type ExecutionBatchCancelError, type ExecutionBatchCancelErrors, type ExecutionBatchCancelResponse, type ExecutionBatchCancelResponses, type ExecutionBatchGetData, type ExecutionBatchGetError, type ExecutionBatchGetErrors, type ExecutionBatchGetResponse, type ExecutionBatchGetResponses, type ExecutionBatchPauseData, type ExecutionBatchPauseError, type ExecutionBatchPauseErrors, type ExecutionBatchPauseResponse, type ExecutionBatchPauseResponses, type ExecutionBatchResumeData, type ExecutionBatchResumeError, type ExecutionBatchResumeErrors, type ExecutionBatchResumeResponse, type ExecutionBatchResumeResponses, type ExecutionBatchesCreateData, type ExecutionBatchesCreateError, type ExecutionBatchesCreateErrors, type ExecutionBatchesCreateResponse, type ExecutionBatchesCreateResponses, type ExecutionBatchesListData, type ExecutionBatchesListError, type ExecutionBatchesListErrors, type ExecutionBatchesListResponse, type ExecutionBatchesListResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type ScheduledExecutionsListData, type ScheduledExecutionsListError, type ScheduledExecutionsListErrors, type ScheduledExecutionsListResponse, type ScheduledExecutionsListResponses, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type WorkflowSpecValidationValidateData, type WorkflowSpecValidationValidateError, type WorkflowSpecValidationValidateErrors, type WorkflowSpecValidationValidateResponse, type WorkflowSpecValidationValidateResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsValidate, availableToolsList, client, contextGet, docsSearchSearch, environmentByIdGet, environmentByIdStop, environmentsList, environmentsStart, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionBatchCancel, executionBatchGet, executionBatchPause, executionBatchResume, executionBatchesCreate, executionBatchesList, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, scheduledExecutionsList, schemaValidationValidate, tempFilesStage, workflowSpecValidationValidate };
6845
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, type AdminCustomerActivityWindowStatsListData, type AdminCustomerActivityWindowStatsListError, type AdminCustomerActivityWindowStatsListErrors, type AdminCustomerActivityWindowStatsListResponse, type AdminCustomerActivityWindowStatsListResponses, type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentByIdUpdateData, type AgentByIdUpdateError, type AgentByIdUpdateErrors, type AgentByIdUpdateResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsValidateData, type AgentWorkflowsValidateError, type AgentWorkflowsValidateErrors, type AgentWorkflowsValidateResponse, type AgentWorkflowsValidateResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentExternalCreateRequest, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsAgentUpdateRequest, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityCustomerWindowStatsList, type AgentsCustomerActivityCustomerWindowStatsRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityOrgWindowStat, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsEnvironmentAstroEnvironmentOwner, type AgentsEnvironmentEnvironment, type AgentsEnvironmentEnvironmentConnection, type AgentsEnvironmentEnvironmentOwner, type AgentsEnvironmentEnvironmentSource, type AgentsEnvironmentEnvironmentStatus, type AgentsEnvironmentEnvironmentSummary, type AgentsEnvironmentExecutionEnvironmentOwner, type AgentsEnvironmentExplicitEnvironmentSource, type AgentsEnvironmentExternalEnvironmentOwner, type AgentsEnvironmentListEnvironmentsResponse, type AgentsEnvironmentOrganizationEnvironmentOwner, type AgentsEnvironmentSpecBrowserTemplate, type AgentsEnvironmentSpecEnvironmentTemplate, type AgentsEnvironmentSpecOsTemplate, type AgentsEnvironmentStartEnvironmentRequest, type AgentsEnvironmentWarmPoolEnvironmentOwner, type AgentsEnvironmentWorkflowEnvironmentSource, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityInputSchemaResolvedPayload, type AgentsExecutionActivityOutputSchemaResolvedPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionAnchorProviderConfig, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBatchBase, type AgentsExecutionBatchBatchConfig, type AgentsExecutionBatchBatchItem, type AgentsExecutionBatchCreateRequest, type AgentsExecutionBatchListFilterAgentId, type AgentsExecutionBatchListFilterStatus, type AgentsExecutionBatchMaxConcurrentConfig, type AgentsExecutionBatchStatus, type AgentsExecutionBatchTimeBatchingConfig, type AgentsExecutionBrowserProviderConfig, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionBrowserState, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionDaytonaProviderConfig, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionEnvironmentState, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionInputResolutionSource, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionOsState, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptFailure, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchAgentProfileIds, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHasScriptFailures, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchTriggerSource, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionSteelProviderConfig, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWarmupTriggerContext, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsExternalSettings, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesStartProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesSize, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileFeature, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearchFeature, type AgentsProfileSearchOperatingSystem, type AgentsProfileSearchProxyMode, type AgentsProfileSearchSearchName, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsScheduledExecutionBase, type AgentsScheduledExecutionListFilterAgentId, type AgentsScheduledExecutionListFilterBatchId, type AgentsScheduledExecutionListFilterOrder, type AgentsScheduledExecutionListFilterStatus, type AgentsScheduledExecutionListFilterWorkflowId, type AgentsScheduledExecutionStatus, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowExternalCreateWorkflowRequest, type AgentsWorkflowExternalWorkflowSnapshot, type AgentsWorkflowInput, type AgentsWorkflowLiveEnvironmentCuaConnection, type AgentsWorkflowLiveEnvironmentCuaProvider, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowWorkflowFile, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowValidationIssue, type AgentsWorkflowWorkflowValidationResponse, type AgentsWorkflowWorkflowValidationSeverity, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonConflictErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type EnvironmentByIdGetData, type EnvironmentByIdGetError, type EnvironmentByIdGetErrors, type EnvironmentByIdGetResponse, type EnvironmentByIdGetResponses, type EnvironmentByIdStopData, type EnvironmentByIdStopError, type EnvironmentByIdStopErrors, type EnvironmentByIdStopResponse, type EnvironmentByIdStopResponses, type EnvironmentsListData, type EnvironmentsListError, type EnvironmentsListErrors, type EnvironmentsListResponse, type EnvironmentsListResponses, type EnvironmentsStartData, type EnvironmentsStartError, type EnvironmentsStartErrors, type EnvironmentsStartResponse, type EnvironmentsStartResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionBatchCancelData, type ExecutionBatchCancelError, type ExecutionBatchCancelErrors, type ExecutionBatchCancelResponse, type ExecutionBatchCancelResponses, type ExecutionBatchGetData, type ExecutionBatchGetError, type ExecutionBatchGetErrors, type ExecutionBatchGetResponse, type ExecutionBatchGetResponses, type ExecutionBatchPauseData, type ExecutionBatchPauseError, type ExecutionBatchPauseErrors, type ExecutionBatchPauseResponse, type ExecutionBatchPauseResponses, type ExecutionBatchResumeData, type ExecutionBatchResumeError, type ExecutionBatchResumeErrors, type ExecutionBatchResumeResponse, type ExecutionBatchResumeResponses, type ExecutionBatchesCreateData, type ExecutionBatchesCreateError, type ExecutionBatchesCreateErrors, type ExecutionBatchesCreateResponse, type ExecutionBatchesCreateResponses, type ExecutionBatchesListData, type ExecutionBatchesListError, type ExecutionBatchesListErrors, type ExecutionBatchesListResponse, type ExecutionBatchesListResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type ScheduledExecutionsListData, type ScheduledExecutionsListError, type ScheduledExecutionsListErrors, type ScheduledExecutionsListResponse, type ScheduledExecutionsListResponses, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type WorkflowSpecValidationValidateData, type WorkflowSpecValidationValidateError, type WorkflowSpecValidationValidateErrors, type WorkflowSpecValidationValidateResponse, type WorkflowSpecValidationValidateResponses, adminCustomerActivityList, adminCustomerActivityNotableList, adminCustomerActivityWindowStatsList, agentByIdDelete, agentByIdUpdate, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsValidate, availableToolsList, client, contextGet, docsSearchSearch, environmentByIdGet, environmentByIdStop, environmentsList, environmentsStart, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionBatchCancel, executionBatchGet, executionBatchPause, executionBatchResume, executionBatchesCreate, executionBatchesList, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, scheduledExecutionsList, schemaValidationValidate, tempFilesStage, workflowSpecValidationValidate };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- 'use strict';var N=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var G={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>N(t,r,i)):N(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:u,...n})=>{let E,D=c??(d=>new Promise(f=>setTimeout(f,d)));return {stream:async function*(){let d=p??3e3,f=0,w=n.signal??new AbortController().signal;for(;!w.aborted;){f++;let O=n.headers instanceof Headers?n.headers:new Headers(n.headers);E!==void 0&&O.set("Last-Event-ID",E);try{let P={redirect:"follow",...n,body:n.serializedBody,headers:O,signal:w},m=new Request(u,P);e&&(m=await e(u,P));let A=await(n.fetch??globalThis.fetch)(m);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let x=A.body.pipeThrough(new TextDecoderStream).getReader(),C="",q=()=>{try{x.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
1
+ 'use strict';var N=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var G={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>N(t,r,i)):N(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:u,...n})=>{let E,D=c??(d=>new Promise(f=>setTimeout(f,d)));return {stream:async function*(){let d=p??3e3,f=0,w=n.signal??new AbortController().signal;for(;!w.aborted;){f++;let O=n.headers instanceof Headers?n.headers:new Headers(n.headers);E!==void 0&&O.set("Last-Event-ID",E);try{let P={redirect:"follow",...n,body:n.serializedBody,headers:O,signal:w},h=new Request(u,P);e&&(h=await e(u,P));let A=await(n.fetch??globalThis.fetch)(h);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let x=A.body.pipeThrough(new TextDecoderStream).getReader(),C="",q=()=>{try{x.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let M=C.split(`
4
4
 
5
5
  `);C=M.pop()??"";for(let re of M){let oe=re.split(`
6
- `),v=[],z;for(let h of oe)if(h.startsWith("data:"))v.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))z=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))E=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let j=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(j)||(d=j);}let R,V=!1;if(v.length){let h=v.join(`
7
- `);try{R=JSON.parse(h),V=!0;}catch{R=h;}}V&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:z,id:E,retry:d}),v.length&&(yield R);}}}finally{w.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&f>=l)break;let m=Math.min(d*2**(f-1),a??3e4);await D(m);}}}()}};var ne=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},se=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:s,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(se(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=ne(s),l=i.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):S({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},S=({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:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(s!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)];});let u=c.join(",");switch(s){case "form":return `${r}=${u}`;case "label":return `.${u}`;case "matrix":return `;${r}=${u}`;default:return u}}let l=ie(s),a=Object.entries(i).map(([c,u])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:u})).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 i of s){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${S({name:l,value:c})}`);continue}let u=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,u);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;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 i=[];if(s&&typeof s=="object")for(let p in s){let l=s[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=S({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=s;break;case "cookie":t.headers.append("Cookie",`${i}=${s}`);break;default:t.headers.set(i,s);break}}},F=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=B(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},B=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of s)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let 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"}}),ue={"Content-Type":"application/json"},T=(e={})=>({...L,headers:ue,parseAs:"auto",querySerializer:de,...e});var U=(e={})=>{let t=K(T(),e),r=()=>({...t}),s=u=>(t=K(t,u),r()),i=Z(),p=async u=>{let n={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:B(t.headers,u.headers),serializedBody:void 0};n.security&&await Y({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=F(n);return {opts:n,url:E}},l=async u=>{let{opts:n,url:E}=await p(u),D={redirect:"follow",...n,body:$(n)},y=new Request(E,D);for(let g of i.request.fns)g&&(y=await g(y,n));let k=n.fetch,d;try{d=await k(y);}catch(g){let A=g;for(let x of i.error.fns)x&&(A=await x(g,void 0,y,n));if(A=A||{},n.throwOnError)throw A;return n.responseStyle==="data"?void 0:{error:A,request:y,response:void 0}}for(let g of i.response.fns)g&&(d=await g(d,y,n));let f={request:y,response:d};if(d.ok){let g=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(g){case "arrayBuffer":case "blob":case "text":x=await d[g]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...f}}let A;switch(g){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[g]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return g==="json"&&(n.responseValidator&&await n.responseValidator(A),n.responseTransformer&&(A=await n.responseTransformer(A))),n.responseStyle==="data"?A:{data:A,...f}}let w=await d.text(),O;try{O=JSON.parse(w);}catch{}let P=O??w,m=P;for(let g of i.error.fns)g&&(m=await g(P,d,y,n));if(m=m||{},n.throwOnError)throw m;return n.responseStyle==="data"?void 0:{error:m,...f}},a=u=>n=>l({...n,method:u}),c=u=>async n=>{let{opts:E,url:D}=await p(n);return X({...E,body:E.body,headers:E.headers,method:u,onRequest:async(y,k)=>{let d=new Request(y,k);for(let f of i.request.fns)f&&(d=await f(d,E));return d},url:D})};return {buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=U(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),xe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Fe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}/stop",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e}),tt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}",...e}),ot=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/cancel",...e}),nt=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/pause",...e}),st=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/resume",...e}),it=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ut=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),Et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ft=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),xt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/scheduled-executions",...e}),wt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}}),Rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}});
8
- exports.adminCustomerActivityList=ge;exports.adminCustomerActivityNotableList=Ae;exports.adminCustomerActivityWindowStatsList=Ee;exports.agentByIdDelete=Le;exports.agentByIdUpdate=Fe;exports.agentCreate=We;exports.agentExecutePost=Ke;exports.agentList=Ie;exports.agentProfileClearBrowserCache=Te;exports.agentProfileDelete=Oe;exports.agentProfileDuplicate=ke;exports.agentProfileGet=Ce;exports.agentProfileGetInboxEmail=Ge;exports.agentProfileGetInboxEmails=ve;exports.agentProfilePoolDelete=ye;exports.agentProfilePoolGet=he;exports.agentProfilePoolMembersAdd=Re;exports.agentProfilePoolMembersList=Pe;exports.agentProfilePoolMembersRemove=we;exports.agentProfilePoolUpdate=me;exports.agentProfilePoolsCreate=xe;exports.agentProfilePoolsList=fe;exports.agentProfileUpdate=be;exports.agentProfilesCreate=De;exports.agentProfilesList=Se;exports.agentWorkflowsCreate=qe;exports.agentWorkflowsDeleteWorkflow=ze;exports.agentWorkflowsExecute=je;exports.agentWorkflowsGet=Ve;exports.agentWorkflowsGetInputs=Ne;exports.agentWorkflowsGetOutputSchemas=Xe;exports.agentWorkflowsList=Ue;exports.agentWorkflowsPublish=He;exports.agentWorkflowsValidate=Me;exports.availableToolsList=Be;exports.client=o;exports.contextGet=$e;exports.docsSearchSearch=Qe;exports.environmentByIdGet=Ye;exports.environmentByIdStop=Ze;exports.environmentsList=Je;exports.environmentsStart=_e;exports.executionActivitiesGet=lt;exports.executionAgentFileDownloadRedirect=pt;exports.executionAgentFilesGet=ct;exports.executionBatchCancel=ot;exports.executionBatchGet=rt;exports.executionBatchPause=nt;exports.executionBatchResume=st;exports.executionBatchesCreate=tt;exports.executionBatchesList=et;exports.executionContextFileDownloadRedirect=gt;exports.executionContextFilesGet=dt;exports.executionContextFilesUpload=ut;exports.executionDebugFileDownloadRedirect=At;exports.executionFileDownloadRedirect=ft;exports.executionFilesGet=Et;exports.executionGet=at;exports.executionRecordingRedirect=xt;exports.executionStatusUpdate=yt;exports.executionUserMessagesAdd=ht;exports.executionsList=it;exports.scheduledExecutionsList=mt;exports.schemaValidationValidate=wt;exports.tempFilesStage=Pt;exports.workflowSpecValidationValidate=Rt;
6
+ `),v=[],z;for(let m of oe)if(m.startsWith("data:"))v.push(m.replace(/^data:\s*/,""));else if(m.startsWith("event:"))z=m.replace(/^event:\s*/,"");else if(m.startsWith("id:"))E=m.replace(/^id:\s*/,"");else if(m.startsWith("retry:")){let j=Number.parseInt(m.replace(/^retry:\s*/,""),10);Number.isNaN(j)||(d=j);}let R,V=!1;if(v.length){let m=v.join(`
7
+ `);try{R=JSON.parse(m),V=!0;}catch{R=m;}}V&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:z,id:E,retry:d}),v.length&&(yield R);}}}finally{w.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&f>=l)break;let h=Math.min(d*2**(f-1),a??3e4);await D(h);}}}()}};var ne=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},se=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:s,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(se(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=ne(s),l=i.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):S({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},S=({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:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(s!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)];});let u=c.join(",");switch(s){case "form":return `${r}=${u}`;case "label":return `.${u}`;case "matrix":return `;${r}=${u}`;default:return u}}let l=ie(s),a=Object.entries(i).map(([c,u])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:u})).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 i of s){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${S({name:l,value:c})}`);continue}let u=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,u);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;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 i=[];if(s&&typeof s=="object")for(let p in s){let l=s[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=S({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=s;break;case "cookie":t.headers.append("Cookie",`${i}=${s}`);break;default:t.headers.set(i,s);break}}},F=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=B(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},B=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of s)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let 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"}}),ue={"Content-Type":"application/json"},T=(e={})=>({...L,headers:ue,parseAs:"auto",querySerializer:de,...e});var U=(e={})=>{let t=K(T(),e),r=()=>({...t}),s=u=>(t=K(t,u),r()),i=Z(),p=async u=>{let n={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:B(t.headers,u.headers),serializedBody:void 0};n.security&&await Y({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=F(n);return {opts:n,url:E}},l=async u=>{let{opts:n,url:E}=await p(u),D={redirect:"follow",...n,body:$(n)},y=new Request(E,D);for(let g of i.request.fns)g&&(y=await g(y,n));let k=n.fetch,d;try{d=await k(y);}catch(g){let A=g;for(let x of i.error.fns)x&&(A=await x(g,void 0,y,n));if(A=A||{},n.throwOnError)throw A;return n.responseStyle==="data"?void 0:{error:A,request:y,response:void 0}}for(let g of i.response.fns)g&&(d=await g(d,y,n));let f={request:y,response:d};if(d.ok){let g=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(g){case "arrayBuffer":case "blob":case "text":x=await d[g]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...f}}let A;switch(g){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[g]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return g==="json"&&(n.responseValidator&&await n.responseValidator(A),n.responseTransformer&&(A=await n.responseTransformer(A))),n.responseStyle==="data"?A:{data:A,...f}}let w=await d.text(),O;try{O=JSON.parse(w);}catch{}let P=O??w,h=P;for(let g of i.error.fns)g&&(h=await g(P,d,y,n));if(h=h||{},n.throwOnError)throw h;return n.responseStyle==="data"?void 0:{error:h,...f}},a=u=>n=>l({...n,method:u}),c=u=>async n=>{let{opts:E,url:D}=await p(n);return X({...E,body:E.body,headers:E.headers,method:u,onRequest:async(y,k)=>{let d=new Request(y,k);for(let f of i.request.fns)f&&(d=await f(d,E));return d},url:D})};return {buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=U(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),xe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Fe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}/stop",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e}),tt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}",...e}),ot=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/cancel",...e}),nt=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/pause",...e}),st=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/resume",...e}),it=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ut=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),Et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ft=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),xt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/scheduled-executions",...e}),wt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}}),Rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}});
8
+ exports.adminCustomerActivityList=ge;exports.adminCustomerActivityNotableList=Ae;exports.adminCustomerActivityWindowStatsList=Ee;exports.agentByIdDelete=Le;exports.agentByIdUpdate=Fe;exports.agentCreate=We;exports.agentExecutePost=Ke;exports.agentList=Ie;exports.agentProfileClearBrowserCache=Te;exports.agentProfileDelete=Oe;exports.agentProfileDuplicate=ke;exports.agentProfileGet=Ce;exports.agentProfileGetInboxEmail=Ge;exports.agentProfileGetInboxEmails=ve;exports.agentProfilePoolDelete=ye;exports.agentProfilePoolGet=me;exports.agentProfilePoolMembersAdd=Re;exports.agentProfilePoolMembersList=Pe;exports.agentProfilePoolMembersRemove=we;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=xe;exports.agentProfilePoolsList=fe;exports.agentProfileUpdate=be;exports.agentProfilesCreate=De;exports.agentProfilesList=Se;exports.agentWorkflowsCreate=qe;exports.agentWorkflowsDeleteWorkflow=ze;exports.agentWorkflowsExecute=je;exports.agentWorkflowsGet=Ve;exports.agentWorkflowsGetInputs=Ne;exports.agentWorkflowsGetOutputSchemas=Xe;exports.agentWorkflowsList=Ue;exports.agentWorkflowsPublish=He;exports.agentWorkflowsValidate=Me;exports.availableToolsList=Be;exports.client=o;exports.contextGet=$e;exports.docsSearchSearch=Qe;exports.environmentByIdGet=Ye;exports.environmentByIdStop=Ze;exports.environmentsList=Je;exports.environmentsStart=_e;exports.executionActivitiesGet=lt;exports.executionAgentFileDownloadRedirect=pt;exports.executionAgentFilesGet=ct;exports.executionBatchCancel=ot;exports.executionBatchGet=rt;exports.executionBatchPause=nt;exports.executionBatchResume=st;exports.executionBatchesCreate=tt;exports.executionBatchesList=et;exports.executionContextFileDownloadRedirect=gt;exports.executionContextFilesGet=dt;exports.executionContextFilesUpload=ut;exports.executionDebugFileDownloadRedirect=At;exports.executionFileDownloadRedirect=ft;exports.executionFilesGet=Et;exports.executionGet=at;exports.executionRecordingRedirect=xt;exports.executionStatusUpdate=yt;exports.executionUserMessagesAdd=mt;exports.executionsList=it;exports.scheduledExecutionsList=ht;exports.schemaValidationValidate=wt;exports.tempFilesStage=Pt;exports.workflowSpecValidationValidate=Rt;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var N=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var G={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>N(t,r,i)):N(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:u,...n})=>{let E,D=c??(d=>new Promise(f=>setTimeout(f,d)));return {stream:async function*(){let d=p??3e3,f=0,w=n.signal??new AbortController().signal;for(;!w.aborted;){f++;let O=n.headers instanceof Headers?n.headers:new Headers(n.headers);E!==void 0&&O.set("Last-Event-ID",E);try{let P={redirect:"follow",...n,body:n.serializedBody,headers:O,signal:w},m=new Request(u,P);e&&(m=await e(u,P));let A=await(n.fetch??globalThis.fetch)(m);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let x=A.body.pipeThrough(new TextDecoderStream).getReader(),C="",q=()=>{try{x.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
1
+ var N=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var G={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>N(t,r,i)):N(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:u,...n})=>{let E,D=c??(d=>new Promise(f=>setTimeout(f,d)));return {stream:async function*(){let d=p??3e3,f=0,w=n.signal??new AbortController().signal;for(;!w.aborted;){f++;let O=n.headers instanceof Headers?n.headers:new Headers(n.headers);E!==void 0&&O.set("Last-Event-ID",E);try{let P={redirect:"follow",...n,body:n.serializedBody,headers:O,signal:w},h=new Request(u,P);e&&(h=await e(u,P));let A=await(n.fetch??globalThis.fetch)(h);if(!A.ok)throw new Error(`SSE failed: ${A.status} ${A.statusText}`);if(!A.body)throw new Error("No body in SSE response");let x=A.body.pipeThrough(new TextDecoderStream).getReader(),C="",q=()=>{try{x.cancel();}catch{}};w.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let M=C.split(`
4
4
 
5
5
  `);C=M.pop()??"";for(let re of M){let oe=re.split(`
6
- `),v=[],z;for(let h of oe)if(h.startsWith("data:"))v.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))z=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))E=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let j=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(j)||(d=j);}let R,V=!1;if(v.length){let h=v.join(`
7
- `);try{R=JSON.parse(h),V=!0;}catch{R=h;}}V&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:z,id:E,retry:d}),v.length&&(yield R);}}}finally{w.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&f>=l)break;let m=Math.min(d*2**(f-1),a??3e4);await D(m);}}}()}};var ne=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},se=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:s,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(se(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=ne(s),l=i.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):S({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},S=({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:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(s!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)];});let u=c.join(",");switch(s){case "form":return `${r}=${u}`;case "label":return `.${u}`;case "matrix":return `;${r}=${u}`;default:return u}}let l=ie(s),a=Object.entries(i).map(([c,u])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:u})).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 i of s){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${S({name:l,value:c})}`);continue}let u=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,u);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;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 i=[];if(s&&typeof s=="object")for(let p in s){let l=s[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=S({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=s;break;case "cookie":t.headers.append("Cookie",`${i}=${s}`);break;default:t.headers.set(i,s);break}}},F=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=B(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},B=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of s)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let 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"}}),ue={"Content-Type":"application/json"},T=(e={})=>({...L,headers:ue,parseAs:"auto",querySerializer:de,...e});var U=(e={})=>{let t=K(T(),e),r=()=>({...t}),s=u=>(t=K(t,u),r()),i=Z(),p=async u=>{let n={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:B(t.headers,u.headers),serializedBody:void 0};n.security&&await Y({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=F(n);return {opts:n,url:E}},l=async u=>{let{opts:n,url:E}=await p(u),D={redirect:"follow",...n,body:$(n)},y=new Request(E,D);for(let g of i.request.fns)g&&(y=await g(y,n));let k=n.fetch,d;try{d=await k(y);}catch(g){let A=g;for(let x of i.error.fns)x&&(A=await x(g,void 0,y,n));if(A=A||{},n.throwOnError)throw A;return n.responseStyle==="data"?void 0:{error:A,request:y,response:void 0}}for(let g of i.response.fns)g&&(d=await g(d,y,n));let f={request:y,response:d};if(d.ok){let g=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(g){case "arrayBuffer":case "blob":case "text":x=await d[g]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...f}}let A;switch(g){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[g]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return g==="json"&&(n.responseValidator&&await n.responseValidator(A),n.responseTransformer&&(A=await n.responseTransformer(A))),n.responseStyle==="data"?A:{data:A,...f}}let w=await d.text(),O;try{O=JSON.parse(w);}catch{}let P=O??w,m=P;for(let g of i.error.fns)g&&(m=await g(P,d,y,n));if(m=m||{},n.throwOnError)throw m;return n.responseStyle==="data"?void 0:{error:m,...f}},a=u=>n=>l({...n,method:u}),c=u=>async n=>{let{opts:E,url:D}=await p(n);return X({...E,body:E.body,headers:E.headers,method:u,onRequest:async(y,k)=>{let d=new Request(y,k);for(let f of i.request.fns)f&&(d=await f(d,E));return d},url:D})};return {buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=U(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),xe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Fe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}/stop",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e}),tt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}",...e}),ot=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/cancel",...e}),nt=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/pause",...e}),st=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/resume",...e}),it=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ut=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),Et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ft=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),xt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/scheduled-executions",...e}),wt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}}),Rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}});
8
- export{ge as adminCustomerActivityList,Ae as adminCustomerActivityNotableList,Ee as adminCustomerActivityWindowStatsList,Le as agentByIdDelete,Fe as agentByIdUpdate,We as agentCreate,Ke as agentExecutePost,Ie as agentList,Te as agentProfileClearBrowserCache,Oe as agentProfileDelete,ke as agentProfileDuplicate,Ce as agentProfileGet,Ge as agentProfileGetInboxEmail,ve as agentProfileGetInboxEmails,ye as agentProfilePoolDelete,he as agentProfilePoolGet,Re as agentProfilePoolMembersAdd,Pe as agentProfilePoolMembersList,we as agentProfilePoolMembersRemove,me as agentProfilePoolUpdate,xe as agentProfilePoolsCreate,fe as agentProfilePoolsList,be as agentProfileUpdate,De as agentProfilesCreate,Se as agentProfilesList,qe as agentWorkflowsCreate,ze as agentWorkflowsDeleteWorkflow,je as agentWorkflowsExecute,Ve as agentWorkflowsGet,Ne as agentWorkflowsGetInputs,Xe as agentWorkflowsGetOutputSchemas,Ue as agentWorkflowsList,He as agentWorkflowsPublish,Me as agentWorkflowsValidate,Be as availableToolsList,o as client,$e as contextGet,Qe as docsSearchSearch,Ye as environmentByIdGet,Ze as environmentByIdStop,Je as environmentsList,_e as environmentsStart,lt as executionActivitiesGet,pt as executionAgentFileDownloadRedirect,ct as executionAgentFilesGet,ot as executionBatchCancel,rt as executionBatchGet,nt as executionBatchPause,st as executionBatchResume,tt as executionBatchesCreate,et as executionBatchesList,gt as executionContextFileDownloadRedirect,dt as executionContextFilesGet,ut as executionContextFilesUpload,At as executionDebugFileDownloadRedirect,ft as executionFileDownloadRedirect,Et as executionFilesGet,at as executionGet,xt as executionRecordingRedirect,yt as executionStatusUpdate,ht as executionUserMessagesAdd,it as executionsList,mt as scheduledExecutionsList,wt as schemaValidationValidate,Pt as tempFilesStage,Rt as workflowSpecValidationValidate};
6
+ `),v=[],z;for(let m of oe)if(m.startsWith("data:"))v.push(m.replace(/^data:\s*/,""));else if(m.startsWith("event:"))z=m.replace(/^event:\s*/,"");else if(m.startsWith("id:"))E=m.replace(/^id:\s*/,"");else if(m.startsWith("retry:")){let j=Number.parseInt(m.replace(/^retry:\s*/,""),10);Number.isNaN(j)||(d=j);}let R,V=!1;if(v.length){let m=v.join(`
7
+ `);try{R=JSON.parse(m),V=!0;}catch{R=m;}}V&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:z,id:E,retry:d}),v.length&&(yield R);}}}finally{w.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&f>=l)break;let h=Math.min(d*2**(f-1),a??3e4);await D(h);}}}()}};var ne=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},se=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:s,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(se(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let p=ne(s),l=i.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):S({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},S=({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:i,valueOnly:p})=>{if(i instanceof Date)return p?i.toISOString():`${r}=${i.toISOString()}`;if(s!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([n,E])=>{c=[...c,n,e?E:encodeURIComponent(E)];});let u=c.join(",");switch(s){case "form":return `${r}=${u}`;case "label":return `.${u}`;case "matrix":return `;${r}=${u}`;default:return u}}let l=ie(s),a=Object.entries(i).map(([c,u])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:u})).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 i of s){let p=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(p=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:p,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:p,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${S({name:l,value:c})}`);continue}let u=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,u);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:i})=>{let p=i.startsWith("/")?i:`/${i}`,l=(e??"")+p;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 i=[];if(s&&typeof s=="object")for(let p in s){let l=s[p];if(l==null)continue;let a=e[p]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:p,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:p,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=S({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=s;break;case "cookie":t.headers.append("Cookie",`${i}=${s}`);break;default:t.headers.set(i,s);break}}},F=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=B(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},B=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?pe(r):Object.entries(r);for(let[i,p]of s)if(p===null)t.delete(i);else if(Array.isArray(p))for(let l of p)t.append(i,l);else p!==void 0&&t.set(i,typeof p=="object"?JSON.stringify(p):p);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let 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"}}),ue={"Content-Type":"application/json"},T=(e={})=>({...L,headers:ue,parseAs:"auto",querySerializer:de,...e});var U=(e={})=>{let t=K(T(),e),r=()=>({...t}),s=u=>(t=K(t,u),r()),i=Z(),p=async u=>{let n={...t,...u,fetch:u.fetch??t.fetch??globalThis.fetch,headers:B(t.headers,u.headers),serializedBody:void 0};n.security&&await Y({...n,security:n.security}),n.requestValidator&&await n.requestValidator(n),n.body!==void 0&&n.bodySerializer&&(n.serializedBody=n.bodySerializer(n.body)),(n.body===void 0||n.serializedBody==="")&&n.headers.delete("Content-Type");let E=F(n);return {opts:n,url:E}},l=async u=>{let{opts:n,url:E}=await p(u),D={redirect:"follow",...n,body:$(n)},y=new Request(E,D);for(let g of i.request.fns)g&&(y=await g(y,n));let k=n.fetch,d;try{d=await k(y);}catch(g){let A=g;for(let x of i.error.fns)x&&(A=await x(g,void 0,y,n));if(A=A||{},n.throwOnError)throw A;return n.responseStyle==="data"?void 0:{error:A,request:y,response:void 0}}for(let g of i.response.fns)g&&(d=await g(d,y,n));let f={request:y,response:d};if(d.ok){let g=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(g){case "arrayBuffer":case "blob":case "text":x=await d[g]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...f}}let A;switch(g){case "arrayBuffer":case "blob":case "formData":case "json":case "text":A=await d[g]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...f}}return g==="json"&&(n.responseValidator&&await n.responseValidator(A),n.responseTransformer&&(A=await n.responseTransformer(A))),n.responseStyle==="data"?A:{data:A,...f}}let w=await d.text(),O;try{O=JSON.parse(w);}catch{}let P=O??w,h=P;for(let g of i.error.fns)g&&(h=await g(P,d,y,n));if(h=h||{},n.throwOnError)throw h;return n.responseStyle==="data"?void 0:{error:h,...f}},a=u=>n=>l({...n,method:u}),c=u=>async n=>{let{opts:E,url:D}=await p(n);return X({...E,body:E.body,headers:E.headers,method:u,onRequest:async(y,k)=>{let d=new Request(y,k);for(let f of i.request.fns)f&&(d=await f(d,E));return d},url:D})};return {buildUrl:F,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=U(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),Ee=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/window-stats",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),xe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Re=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),De=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ge=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ie=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),We=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Fe=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Xe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),He=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),$e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}",...e}),Ze=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/environments/{environmentId}/stop",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e}),tt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches",...e,headers:{"Content-Type":"application/json",...e.headers}}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}",...e}),ot=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/cancel",...e}),nt=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/pause",...e}),st=e=>(e.client??o).put({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/execution-batches/{batchId}/resume",...e}),it=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),at=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),ut=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),At=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),Et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ft=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),xt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),yt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/scheduled-executions",...e}),wt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pt=e=>(e.client??o).post({...G,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}}),Rt=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/workflows/validate",...e,headers:{"Content-Type":"application/json",...e.headers}});
8
+ export{ge as adminCustomerActivityList,Ae as adminCustomerActivityNotableList,Ee as adminCustomerActivityWindowStatsList,Le as agentByIdDelete,Fe as agentByIdUpdate,We as agentCreate,Ke as agentExecutePost,Ie as agentList,Te as agentProfileClearBrowserCache,Oe as agentProfileDelete,ke as agentProfileDuplicate,Ce as agentProfileGet,Ge as agentProfileGetInboxEmail,ve as agentProfileGetInboxEmails,ye as agentProfilePoolDelete,me as agentProfilePoolGet,Re as agentProfilePoolMembersAdd,Pe as agentProfilePoolMembersList,we as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,xe as agentProfilePoolsCreate,fe as agentProfilePoolsList,be as agentProfileUpdate,De as agentProfilesCreate,Se as agentProfilesList,qe as agentWorkflowsCreate,ze as agentWorkflowsDeleteWorkflow,je as agentWorkflowsExecute,Ve as agentWorkflowsGet,Ne as agentWorkflowsGetInputs,Xe as agentWorkflowsGetOutputSchemas,Ue as agentWorkflowsList,He as agentWorkflowsPublish,Me as agentWorkflowsValidate,Be as availableToolsList,o as client,$e as contextGet,Qe as docsSearchSearch,Ye as environmentByIdGet,Ze as environmentByIdStop,Je as environmentsList,_e as environmentsStart,lt as executionActivitiesGet,pt as executionAgentFileDownloadRedirect,ct as executionAgentFilesGet,ot as executionBatchCancel,rt as executionBatchGet,nt as executionBatchPause,st as executionBatchResume,tt as executionBatchesCreate,et as executionBatchesList,gt as executionContextFileDownloadRedirect,dt as executionContextFilesGet,ut as executionContextFilesUpload,At as executionDebugFileDownloadRedirect,ft as executionFileDownloadRedirect,Et as executionFilesGet,at as executionGet,xt as executionRecordingRedirect,yt as executionStatusUpdate,mt as executionUserMessagesAdd,it as executionsList,ht as scheduledExecutionsList,wt as schemaValidationValidate,Pt as tempFilesStage,Rt as workflowSpecValidationValidate};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.330",
3
+ "version": "1.7.337",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",