asteroid-odyssey 1.6.782 → 1.6.786

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
@@ -468,7 +468,7 @@ type AgentsExecutionApiTriggerContext = {
468
468
  */
469
469
  apiKey?: AgentsExecutionApiKeyRef;
470
470
  };
471
- type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_triple_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_run_code' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'browser_solve_captcha' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_data' | 'ext_get_mail' | 'ext_send_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call' | 'sdk_bash' | 'sdk_read' | 'sdk_write' | 'sdk_edit' | 'sdk_glob' | 'sdk_grep' | 'handoff_prepare' | 'read_file';
471
+ type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_triple_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_run_code' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'browser_solve_captcha' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_data' | 'ext_get_mail' | 'ext_send_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call' | 'advisor' | 'sdk_bash' | 'sdk_read' | 'sdk_write' | 'sdk_edit' | 'sdk_glob' | 'sdk_grep' | 'handoff_prepare' | 'read_file';
472
472
  type AgentsExecutionActivity = {
473
473
  id: CommonUuid;
474
474
  payload: AgentsExecutionActivityPayloadUnion;
@@ -533,7 +533,9 @@ type AgentsExecutionActivityActionCompletedInfo = ({
533
533
  actionName: 'handoff_prepare';
534
534
  } & AgentsExecutionHandoffPrepareCompletedDetails) | ({
535
535
  actionName: 'ext_send_mail';
536
- } & AgentsExecutionExtSendMailCompletedDetails);
536
+ } & AgentsExecutionExtSendMailCompletedDetails) | ({
537
+ actionName: 'advisor';
538
+ } & AgentsExecutionAdvisorCompletedDetails);
537
539
  type AgentsExecutionActivityActionCompletedPayload = {
538
540
  activityType: 'action_completed';
539
541
  message: string;
@@ -745,6 +747,10 @@ type AgentsExecutionActivityWorkflowUpdatedPayload = {
745
747
  activityType: 'workflow_updated';
746
748
  workflowUpdate: Array<AgentsExecutionWorkflowUpdate>;
747
749
  };
750
+ type AgentsExecutionAdvisorCompletedDetails = {
751
+ actionName: 'advisor';
752
+ advice: string;
753
+ };
748
754
  type AgentsExecutionAgentQueryContextCompletedDetails = {
749
755
  actionName: 'agent_query_context';
750
756
  query: string;
@@ -1540,12 +1546,17 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
1540
1546
  type: 'iris';
1541
1547
  instructions: string;
1542
1548
  tools: Array<string>;
1549
+ capabilities?: AgentsGraphModelsNodesPropertiesNodeCapabilities;
1543
1550
  snapshot_compression: boolean;
1544
1551
  compression_strategies?: Array<string>;
1545
1552
  temperature: number;
1546
1553
  batch_actions: boolean;
1547
1554
  playwright_script_properties?: AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties;
1548
1555
  learn_and_compile?: boolean;
1556
+ /**
1557
+ * IDs of preceding nodes whose outputs are excluded from this node's execution data.
1558
+ */
1559
+ excluded_execution_data_node_ids?: Array<string>;
1549
1560
  /**
1550
1561
  * Optional custom JSON schema for the node's structured output. When
1551
1562
  * present (non-empty), the `prepare_handoff` tool's free-form `variables`
@@ -1597,8 +1608,23 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
1597
1608
  thinking_mode?: 'adaptive' | 'enabled' | 'disabled';
1598
1609
  thinking_budget_tokens?: number;
1599
1610
  thinking_effort?: 'low' | 'medium' | 'high' | 'max';
1611
+ /**
1612
+ * Server-side advisor model the executor consults mid-generation. When set,
1613
+ * the node's executor (`model`) defers to this stronger model for harder
1614
+ * sub-decisions. Available on the bifrost and anthropic providers; ignored
1615
+ * on bedrock.
1616
+ */
1617
+ advisor_model?: string;
1600
1618
  model: string;
1601
1619
  };
1620
+ /**
1621
+ * Coarse environment-level capability toggles for an AI node.
1622
+ */
1623
+ type AgentsGraphModelsNodesPropertiesNodeCapabilities = {
1624
+ browser_use: boolean;
1625
+ computer_use: boolean;
1626
+ ask_user_question: boolean;
1627
+ };
1602
1628
  type AgentsGraphModelsNodesPropertiesOutcomeString = string;
1603
1629
  type AgentsGraphModelsNodesPropertiesOutputProperties = {
1604
1630
  type: 'output';
@@ -1607,6 +1633,10 @@ type AgentsGraphModelsNodesPropertiesOutputProperties = {
1607
1633
  schema?: {
1608
1634
  [key: string]: unknown;
1609
1635
  };
1636
+ /**
1637
+ * IDs of preceding nodes whose outputs are excluded from this node's execution data.
1638
+ */
1639
+ excluded_execution_data_node_ids?: Array<string>;
1610
1640
  outcomes: Array<AgentsGraphModelsNodesPropertiesOutcomeString>;
1611
1641
  model?: string;
1612
1642
  };
@@ -5287,4 +5317,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5287
5317
  */
5288
5318
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5289
5319
 
5290
- export { type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentByIdDelete, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
5320
+ export { type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, 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 AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentByIdDelete, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.d.ts CHANGED
@@ -468,7 +468,7 @@ type AgentsExecutionApiTriggerContext = {
468
468
  */
469
469
  apiKey?: AgentsExecutionApiKeyRef;
470
470
  };
471
- type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_triple_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_run_code' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'browser_solve_captcha' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_data' | 'ext_get_mail' | 'ext_send_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call' | 'sdk_bash' | 'sdk_read' | 'sdk_write' | 'sdk_edit' | 'sdk_glob' | 'sdk_grep' | 'handoff_prepare' | 'read_file';
471
+ type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_triple_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_run_code' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'browser_solve_captcha' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_data' | 'ext_get_mail' | 'ext_send_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call' | 'advisor' | 'sdk_bash' | 'sdk_read' | 'sdk_write' | 'sdk_edit' | 'sdk_glob' | 'sdk_grep' | 'handoff_prepare' | 'read_file';
472
472
  type AgentsExecutionActivity = {
473
473
  id: CommonUuid;
474
474
  payload: AgentsExecutionActivityPayloadUnion;
@@ -533,7 +533,9 @@ type AgentsExecutionActivityActionCompletedInfo = ({
533
533
  actionName: 'handoff_prepare';
534
534
  } & AgentsExecutionHandoffPrepareCompletedDetails) | ({
535
535
  actionName: 'ext_send_mail';
536
- } & AgentsExecutionExtSendMailCompletedDetails);
536
+ } & AgentsExecutionExtSendMailCompletedDetails) | ({
537
+ actionName: 'advisor';
538
+ } & AgentsExecutionAdvisorCompletedDetails);
537
539
  type AgentsExecutionActivityActionCompletedPayload = {
538
540
  activityType: 'action_completed';
539
541
  message: string;
@@ -745,6 +747,10 @@ type AgentsExecutionActivityWorkflowUpdatedPayload = {
745
747
  activityType: 'workflow_updated';
746
748
  workflowUpdate: Array<AgentsExecutionWorkflowUpdate>;
747
749
  };
750
+ type AgentsExecutionAdvisorCompletedDetails = {
751
+ actionName: 'advisor';
752
+ advice: string;
753
+ };
748
754
  type AgentsExecutionAgentQueryContextCompletedDetails = {
749
755
  actionName: 'agent_query_context';
750
756
  query: string;
@@ -1540,12 +1546,17 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
1540
1546
  type: 'iris';
1541
1547
  instructions: string;
1542
1548
  tools: Array<string>;
1549
+ capabilities?: AgentsGraphModelsNodesPropertiesNodeCapabilities;
1543
1550
  snapshot_compression: boolean;
1544
1551
  compression_strategies?: Array<string>;
1545
1552
  temperature: number;
1546
1553
  batch_actions: boolean;
1547
1554
  playwright_script_properties?: AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties;
1548
1555
  learn_and_compile?: boolean;
1556
+ /**
1557
+ * IDs of preceding nodes whose outputs are excluded from this node's execution data.
1558
+ */
1559
+ excluded_execution_data_node_ids?: Array<string>;
1549
1560
  /**
1550
1561
  * Optional custom JSON schema for the node's structured output. When
1551
1562
  * present (non-empty), the `prepare_handoff` tool's free-form `variables`
@@ -1597,8 +1608,23 @@ type AgentsGraphModelsNodesPropertiesIrisProperties = {
1597
1608
  thinking_mode?: 'adaptive' | 'enabled' | 'disabled';
1598
1609
  thinking_budget_tokens?: number;
1599
1610
  thinking_effort?: 'low' | 'medium' | 'high' | 'max';
1611
+ /**
1612
+ * Server-side advisor model the executor consults mid-generation. When set,
1613
+ * the node's executor (`model`) defers to this stronger model for harder
1614
+ * sub-decisions. Available on the bifrost and anthropic providers; ignored
1615
+ * on bedrock.
1616
+ */
1617
+ advisor_model?: string;
1600
1618
  model: string;
1601
1619
  };
1620
+ /**
1621
+ * Coarse environment-level capability toggles for an AI node.
1622
+ */
1623
+ type AgentsGraphModelsNodesPropertiesNodeCapabilities = {
1624
+ browser_use: boolean;
1625
+ computer_use: boolean;
1626
+ ask_user_question: boolean;
1627
+ };
1602
1628
  type AgentsGraphModelsNodesPropertiesOutcomeString = string;
1603
1629
  type AgentsGraphModelsNodesPropertiesOutputProperties = {
1604
1630
  type: 'output';
@@ -1607,6 +1633,10 @@ type AgentsGraphModelsNodesPropertiesOutputProperties = {
1607
1633
  schema?: {
1608
1634
  [key: string]: unknown;
1609
1635
  };
1636
+ /**
1637
+ * IDs of preceding nodes whose outputs are excluded from this node's execution data.
1638
+ */
1639
+ excluded_execution_data_node_ids?: Array<string>;
1610
1640
  outcomes: Array<AgentsGraphModelsNodesPropertiesOutcomeString>;
1611
1641
  model?: string;
1612
1642
  };
@@ -5287,4 +5317,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5287
5317
  */
5288
5318
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5289
5319
 
5290
- export { type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfileInboxEmailsResponse, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentByIdDelete, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
5320
+ export { type AgentByIdDeleteData, type AgentByIdDeleteError, type AgentByIdDeleteErrors, type AgentByIdDeleteResponse, type AgentByIdDeleteResponses, type AgentCreateData, type AgentCreateError, type AgentCreateErrors, type AgentCreateResponse, type AgentCreateResponses, type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetInboxEmailData, type AgentProfileGetInboxEmailError, type AgentProfileGetInboxEmailErrors, type AgentProfileGetInboxEmailResponse, type AgentProfileGetInboxEmailResponses, type AgentProfileGetInboxEmailsData, type AgentProfileGetInboxEmailsError, type AgentProfileGetInboxEmailsErrors, type AgentProfileGetInboxEmailsResponse, type AgentProfileGetInboxEmailsResponses, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFileDownloadRedirectData, type AgentSharedFileDownloadRedirectError, type AgentSharedFileDownloadRedirectErrors, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsDeleteWorkflowData, type AgentWorkflowsDeleteWorkflowError, type AgentWorkflowsDeleteWorkflowErrors, type AgentWorkflowsDeleteWorkflowResponse, type AgentWorkflowsDeleteWorkflowResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetInputsData, type AgentWorkflowsGetInputsError, type AgentWorkflowsGetInputsErrors, type AgentWorkflowsGetInputsResponse, type AgentWorkflowsGetInputsResponses, type AgentWorkflowsGetOutputSchemasData, type AgentWorkflowsGetOutputSchemasError, type AgentWorkflowsGetOutputSchemasErrors, type AgentWorkflowsGetOutputSchemasResponse, type AgentWorkflowsGetOutputSchemasResponses, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentCreateRequest, type AgentsAgentCreateResponse, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentExecutionOptions, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityScriptVariablesSubstitutedPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTodosUpdatedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAdvisorCompletedDetails, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionExtSendMailCompletedDetails, type AgentsExecutionExtSendMailStartedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHandoffPrepareCompletedDetails, type AgentsExecutionHandoffPrepareStartedDetails, type AgentsExecutionHandoffPrepareVariable, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionReadFileCompletedDetails, type AgentsExecutionReadFileStartedDetails, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchInputsKey, type AgentsExecutionSearchInputsValue, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTodo, type AgentsExecutionTodoStatus, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesAgentFile, type AgentsFilesAgentFileCreatedBy, type AgentsFilesAgentFileDirectory, type AgentsFilesAgentFilesDirectoryListing, type AgentsFilesAgentFilesResponse, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsLlmProvider, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesNodeCapabilities, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, 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 AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProfileInboxEmail, type AgentsProfileProfileInboxEmailDetail, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowInput, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowOsType, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowInputs, type AgentsWorkflowWorkflowOutputSchemas, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonPaymentRequiredErrorBody, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionAgentFileDownloadRedirectData, type ExecutionAgentFileDownloadRedirectError, type ExecutionAgentFileDownloadRedirectErrors, type ExecutionAgentFilesGetData, type ExecutionAgentFilesGetError, type ExecutionAgentFilesGetErrors, type ExecutionAgentFilesGetResponse, type ExecutionAgentFilesGetResponses, type ExecutionContextFileDownloadRedirectData, type ExecutionContextFileDownloadRedirectError, type ExecutionContextFileDownloadRedirectErrors, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionDebugFileDownloadRedirectData, type ExecutionDebugFileDownloadRedirectError, type ExecutionDebugFileDownloadRedirectErrors, type ExecutionFileDownloadRedirectData, type ExecutionFileDownloadRedirectError, type ExecutionFileDownloadRedirectErrors, type ExecutionFilesGetData, type ExecutionFilesGetError, type ExecutionFilesGetErrors, type ExecutionFilesGetResponse, type ExecutionFilesGetResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentByIdDelete, agentCreate, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfileGetInboxEmail, agentProfileGetInboxEmails, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFileDownloadRedirect, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsDeleteWorkflow, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsGetInputs, agentWorkflowsGetOutputSchemas, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionAgentFileDownloadRedirect, executionAgentFilesGet, executionContextFileDownloadRedirect, executionContextFilesGet, executionContextFilesUpload, executionDebugFileDownloadRedirect, executionFileDownloadRedirect, executionFilesGet, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- 'use strict';var V=(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 S={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>V(t,r,i)):V(t,r,s));}),t}},v={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var N=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...n})=>{let f,O=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=n.signal??new AbortController().signal;for(;!P.aborted;){E++;let b=n.headers instanceof Headers?n.headers:new Headers(n.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let m={redirect:"follow",...n,body:n.serializedBody,headers:b,signal:P},w=new Request(g,m);e&&(w=await e(g,m));let u=await(n.fetch??globalThis.fetch)(w);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let x=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",q=()=>{try{x.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;T+=te,T=T.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 S={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}},v={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...n})=>{let f,O=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=n.signal??new AbortController().signal;for(;!P.aborted;){E++;let b=n.headers instanceof Headers?n.headers:new Headers(n.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let m={redirect:"follow",...n,body:n.serializedBody,headers:b,signal:P},w=new Request(g,m);e&&(w=await e(g,m));let u=await(n.fetch??globalThis.fetch)(w);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let x=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",q=()=>{try{x.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;T+=te,T=T.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let M=T.split(`
4
4
 
5
5
  `);T=M.pop()??"";for(let re of M){let oe=re.split(`
6
6
  `),G=[],B;for(let y of oe)if(y.startsWith("data:"))G.push(y.replace(/^data:\s*/,""));else if(y.startsWith("event:"))B=y.replace(/^event:\s*/,"");else if(y.startsWith("id:"))f=y.replace(/^id:\s*/,"");else if(y.startsWith("retry:")){let X=Number.parseInt(y.replace(/^retry:\s*/,""),10);Number.isNaN(X)||(d=X);}let R,j=!1;if(G.length){let y=G.join(`
7
- `);try{R=JSON.parse(y),j=!0;}catch{R=y;}}j&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),x.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let w=Math.min(d*2**(E-1),a??3e4);await O(w);}}}()}};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):D({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},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,f])=>{c=[...c,n,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let 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,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer: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=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let 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}}},K=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),L=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},U=(...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},C=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 C,request:new C,response:new C}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...v,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=L(k(),e),r=()=>({...t}),s=g=>(t=L(t,g),r()),i=Z(),p=async g=>{let n={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,g.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 f=K(n);return {opts:n,url:f}},l=async g=>{let{opts:n,url:f}=await p(g),O={redirect:"follow",...n,body:$(n)},h=new Request(f,O);for(let A of i.request.fns)A&&(h=await A(h,n));let F=n.fetch,d;try{d=await F(h);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,h,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:h,response:void 0}}for(let A of i.response.fns)A&&(d=await A(d,h,n));let E={request:h,response:d};if(d.ok){let A=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await d[A]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...E}}let P=await d.text(),b;try{b=JSON.parse(P);}catch{}let m=b??P,w=m;for(let A of i.error.fns)A&&(w=await A(m,d,h,n));if(w=w||{},n.throwOnError)throw w;return n.responseStyle==="data"?void 0:{error:w,...E}},a=g=>n=>l({...n,method:g}),c=g=>async n=>{let{opts:f,url:O}=await p(n);return N({...f,body:f.body,headers:f.headers,method:g,onRequest:async(h,F)=>{let d=new Request(h,F);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:K,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=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=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}}),fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),xe=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}}),he=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}}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),we=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}}),Pe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=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}}),Re=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=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}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=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}}),Te=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),ke=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Fe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Ie=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),We=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}/shared-files",...e}),ve=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ke=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ze=e=>(e.client??o).put({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),je=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}}),Xe=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}),Ne=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}}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),$e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),st=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),it=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}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),dt=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}}),gt=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}}),At=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}}),ut=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- exports.agentByIdDelete=Ie;exports.agentCreate=Fe;exports.agentExecutePost=We;exports.agentList=ke;exports.agentProfileClearBrowserCache=Oe;exports.agentProfileDelete=Re;exports.agentProfileDuplicate=be;exports.agentProfileGet=Se;exports.agentProfileGetInboxEmail=Ce;exports.agentProfileGetInboxEmails=Te;exports.agentProfilePoolDelete=fe;exports.agentProfilePoolGet=Ee;exports.agentProfilePoolMembersAdd=we;exports.agentProfilePoolMembersList=ye;exports.agentProfilePoolMembersRemove=he;exports.agentProfilePoolUpdate=xe;exports.agentProfilePoolsCreate=ue;exports.agentProfilePoolsList=Ae;exports.agentProfileUpdate=De;exports.agentProfilesCreate=me;exports.agentProfilesList=Pe;exports.agentSharedFileDownloadRedirect=qe;exports.agentSharedFilesDelete=Le;exports.agentSharedFilesDeleteAll=Ke;exports.agentSharedFilesFreeze=Me;exports.agentSharedFilesGet=Ue;exports.agentSharedFilesUpdate=ze;exports.agentSharedFilesUpload=ve;exports.agentWorkflowsCreate=je;exports.agentWorkflowsDeleteWorkflow=Xe;exports.agentWorkflowsExecute=Ne;exports.agentWorkflowsGet=Ve;exports.agentWorkflowsGetInputs=He;exports.agentWorkflowsGetOutputSchemas=$e;exports.agentWorkflowsList=Be;exports.agentWorkflowsPublish=Qe;exports.agentWorkflowsSyncExecution=Je;exports.availableToolsList=Ge;exports.client=o;exports.contextGet=_e;exports.docsSearchSearch=Ye;exports.executionActivitiesGet=tt;exports.executionAgentFileDownloadRedirect=ot;exports.executionAgentFilesGet=rt;exports.executionContextFileDownloadRedirect=it;exports.executionContextFilesGet=nt;exports.executionContextFilesUpload=st;exports.executionDebugFileDownloadRedirect=at;exports.executionFileDownloadRedirect=ct;exports.executionFilesGet=lt;exports.executionGet=et;exports.executionRecordingRedirect=pt;exports.executionStatusUpdate=dt;exports.executionUserMessagesAdd=gt;exports.executionsList=Ze;exports.schemaValidationValidate=At;exports.tempFilesStage=ut;
7
+ `);try{R=JSON.parse(y),j=!0;}catch{R=y;}}j&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),x.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let w=Math.min(d*2**(E-1),a??3e4);await O(w);}}}()}};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):D({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},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,f])=>{c=[...c,n,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let 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,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer: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=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let 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}}},K=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),L=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},U=(...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},C=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 C,request:new C,response:new C}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...v,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=L(k(),e),r=()=>({...t}),s=g=>(t=L(t,g),r()),i=Z(),p=async g=>{let n={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,g.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 f=K(n);return {opts:n,url:f}},l=async g=>{let{opts:n,url:f}=await p(g),O={redirect:"follow",...n,body:$(n)},h=new Request(f,O);for(let A of i.request.fns)A&&(h=await A(h,n));let F=n.fetch,d;try{d=await F(h);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,h,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:h,response:void 0}}for(let A of i.response.fns)A&&(d=await A(d,h,n));let E={request:h,response:d};if(d.ok){let A=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await d[A]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...E}}let P=await d.text(),b;try{b=JSON.parse(P);}catch{}let m=b??P,w=m;for(let A of i.error.fns)A&&(w=await A(m,d,h,n));if(w=w||{},n.throwOnError)throw w;return n.responseStyle==="data"?void 0:{error:w,...E}},a=g=>n=>l({...n,method:g}),c=g=>async n=>{let{opts:f,url:O}=await p(n);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(h,F)=>{let d=new Request(h,F);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:K,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=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=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}}),fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),xe=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}}),he=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}}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),we=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}}),Pe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=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}}),Re=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=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}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=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}}),Te=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),ke=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Fe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Ie=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),We=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}/shared-files",...e}),ve=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ke=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ze=e=>(e.client??o).put({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),je=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}}),Xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=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}}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),$e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),st=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),it=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}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),dt=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}}),gt=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}}),At=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}}),ut=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ exports.agentByIdDelete=Ie;exports.agentCreate=Fe;exports.agentExecutePost=We;exports.agentList=ke;exports.agentProfileClearBrowserCache=Oe;exports.agentProfileDelete=Re;exports.agentProfileDuplicate=be;exports.agentProfileGet=Se;exports.agentProfileGetInboxEmail=Ce;exports.agentProfileGetInboxEmails=Te;exports.agentProfilePoolDelete=fe;exports.agentProfilePoolGet=Ee;exports.agentProfilePoolMembersAdd=we;exports.agentProfilePoolMembersList=ye;exports.agentProfilePoolMembersRemove=he;exports.agentProfilePoolUpdate=xe;exports.agentProfilePoolsCreate=ue;exports.agentProfilePoolsList=Ae;exports.agentProfileUpdate=De;exports.agentProfilesCreate=me;exports.agentProfilesList=Pe;exports.agentSharedFileDownloadRedirect=qe;exports.agentSharedFilesDelete=Le;exports.agentSharedFilesDeleteAll=Ke;exports.agentSharedFilesFreeze=Me;exports.agentSharedFilesGet=Ue;exports.agentSharedFilesUpdate=ze;exports.agentSharedFilesUpload=ve;exports.agentWorkflowsCreate=je;exports.agentWorkflowsDeleteWorkflow=Xe;exports.agentWorkflowsExecute=Ve;exports.agentWorkflowsGet=Ne;exports.agentWorkflowsGetInputs=He;exports.agentWorkflowsGetOutputSchemas=$e;exports.agentWorkflowsList=Be;exports.agentWorkflowsPublish=Qe;exports.agentWorkflowsSyncExecution=Je;exports.availableToolsList=Ge;exports.client=o;exports.contextGet=_e;exports.docsSearchSearch=Ye;exports.executionActivitiesGet=tt;exports.executionAgentFileDownloadRedirect=ot;exports.executionAgentFilesGet=rt;exports.executionContextFileDownloadRedirect=it;exports.executionContextFilesGet=nt;exports.executionContextFilesUpload=st;exports.executionDebugFileDownloadRedirect=at;exports.executionFileDownloadRedirect=ct;exports.executionFilesGet=lt;exports.executionGet=et;exports.executionRecordingRedirect=pt;exports.executionStatusUpdate=dt;exports.executionUserMessagesAdd=gt;exports.executionsList=Ze;exports.schemaValidationValidate=At;exports.tempFilesStage=ut;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var V=(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 S={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(i=>V(t,r,i)):V(t,r,s));}),t}},v={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var N=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...n})=>{let f,O=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=n.signal??new AbortController().signal;for(;!P.aborted;){E++;let b=n.headers instanceof Headers?n.headers:new Headers(n.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let m={redirect:"follow",...n,body:n.serializedBody,headers:b,signal:P},w=new Request(g,m);e&&(w=await e(g,m));let u=await(n.fetch??globalThis.fetch)(w);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let x=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",q=()=>{try{x.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;T+=te,T=T.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 S={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}},v={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:p,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...n})=>{let f,O=c??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=p??3e3,E=0,P=n.signal??new AbortController().signal;for(;!P.aborted;){E++;let b=n.headers instanceof Headers?n.headers:new Headers(n.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let m={redirect:"follow",...n,body:n.serializedBody,headers:b,signal:P},w=new Request(g,m);e&&(w=await e(g,m));let u=await(n.fetch??globalThis.fetch)(w);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let x=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",q=()=>{try{x.cancel();}catch{}};P.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;T+=te,T=T.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
3
  `);let M=T.split(`
4
4
 
5
5
  `);T=M.pop()??"";for(let re of M){let oe=re.split(`
6
6
  `),G=[],B;for(let y of oe)if(y.startsWith("data:"))G.push(y.replace(/^data:\s*/,""));else if(y.startsWith("event:"))B=y.replace(/^event:\s*/,"");else if(y.startsWith("id:"))f=y.replace(/^id:\s*/,"");else if(y.startsWith("retry:")){let X=Number.parseInt(y.replace(/^retry:\s*/,""),10);Number.isNaN(X)||(d=X);}let R,j=!1;if(G.length){let y=G.join(`
7
- `);try{R=JSON.parse(y),j=!0;}catch{R=y;}}j&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),x.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let w=Math.min(d*2**(E-1),a??3e4);await O(w);}}}()}};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):D({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},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,f])=>{c=[...c,n,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let 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,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer: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=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let 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}}},K=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),L=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},U=(...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},C=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 C,request:new C,response:new C}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...v,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=L(k(),e),r=()=>({...t}),s=g=>(t=L(t,g),r()),i=Z(),p=async g=>{let n={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,g.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 f=K(n);return {opts:n,url:f}},l=async g=>{let{opts:n,url:f}=await p(g),O={redirect:"follow",...n,body:$(n)},h=new Request(f,O);for(let A of i.request.fns)A&&(h=await A(h,n));let F=n.fetch,d;try{d=await F(h);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,h,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:h,response:void 0}}for(let A of i.response.fns)A&&(d=await A(d,h,n));let E={request:h,response:d};if(d.ok){let A=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await d[A]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...E}}let P=await d.text(),b;try{b=JSON.parse(P);}catch{}let m=b??P,w=m;for(let A of i.error.fns)A&&(w=await A(m,d,h,n));if(w=w||{},n.throwOnError)throw w;return n.responseStyle==="data"?void 0:{error:w,...E}},a=g=>n=>l({...n,method:g}),c=g=>async n=>{let{opts:f,url:O}=await p(n);return N({...f,body:f.body,headers:f.headers,method:g,onRequest:async(h,F)=>{let d=new Request(h,F);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:K,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=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=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}}),fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),xe=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}}),he=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}}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),we=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}}),Pe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=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}}),Re=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=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}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=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}}),Te=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),ke=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Fe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Ie=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),We=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}/shared-files",...e}),ve=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ke=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ze=e=>(e.client??o).put({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),je=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}}),Xe=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}),Ne=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}}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),$e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),st=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),it=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}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),dt=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}}),gt=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}}),At=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}}),ut=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
- export{Ie as agentByIdDelete,Fe as agentCreate,We as agentExecutePost,ke as agentList,Oe as agentProfileClearBrowserCache,Re as agentProfileDelete,be as agentProfileDuplicate,Se as agentProfileGet,Ce as agentProfileGetInboxEmail,Te as agentProfileGetInboxEmails,fe as agentProfilePoolDelete,Ee as agentProfilePoolGet,we as agentProfilePoolMembersAdd,ye as agentProfilePoolMembersList,he as agentProfilePoolMembersRemove,xe as agentProfilePoolUpdate,ue as agentProfilePoolsCreate,Ae as agentProfilePoolsList,De as agentProfileUpdate,me as agentProfilesCreate,Pe as agentProfilesList,qe as agentSharedFileDownloadRedirect,Le as agentSharedFilesDelete,Ke as agentSharedFilesDeleteAll,Me as agentSharedFilesFreeze,Ue as agentSharedFilesGet,ze as agentSharedFilesUpdate,ve as agentSharedFilesUpload,je as agentWorkflowsCreate,Xe as agentWorkflowsDeleteWorkflow,Ne as agentWorkflowsExecute,Ve as agentWorkflowsGet,He as agentWorkflowsGetInputs,$e as agentWorkflowsGetOutputSchemas,Be as agentWorkflowsList,Qe as agentWorkflowsPublish,Je as agentWorkflowsSyncExecution,Ge as availableToolsList,o as client,_e as contextGet,Ye as docsSearchSearch,tt as executionActivitiesGet,ot as executionAgentFileDownloadRedirect,rt as executionAgentFilesGet,it as executionContextFileDownloadRedirect,nt as executionContextFilesGet,st as executionContextFilesUpload,at as executionDebugFileDownloadRedirect,ct as executionFileDownloadRedirect,lt as executionFilesGet,et as executionGet,pt as executionRecordingRedirect,dt as executionStatusUpdate,gt as executionUserMessagesAdd,Ze as executionsList,At as schemaValidationValidate,ut as tempFilesStage};
7
+ `);try{R=JSON.parse(y),j=!0;}catch{R=y;}}j&&(i&&await i(R),s&&(R=await s(R))),r?.({data:R,event:B,id:f,retry:d}),G.length&&(yield R);}}}finally{P.removeEventListener("abort",q),x.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let w=Math.min(d*2**(E-1),a??3e4);await O(w);}}}()}};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):D({allowReserved:e,name:r,value:a})).join(p);return s==="label"||s==="matrix"?p+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},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,f])=>{c=[...c,n,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let 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,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer: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=D({allowReserved:a.allowReserved,name:p,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let 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}}},K=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),L=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=U(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},U=(...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},C=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 C,request:new C,response:new C}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...v,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=L(k(),e),r=()=>({...t}),s=g=>(t=L(t,g),r()),i=Z(),p=async g=>{let n={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:U(t.headers,g.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 f=K(n);return {opts:n,url:f}},l=async g=>{let{opts:n,url:f}=await p(g),O={redirect:"follow",...n,body:$(n)},h=new Request(f,O);for(let A of i.request.fns)A&&(h=await A(h,n));let F=n.fetch,d;try{d=await F(h);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,h,n));if(u=u||{},n.throwOnError)throw u;return n.responseStyle==="data"?void 0:{error:u,request:h,response:void 0}}for(let A of i.response.fns)A&&(d=await A(d,h,n));let E={request:h,response:d};if(d.ok){let A=(n.parseAs==="auto"?_(d.headers.get("Content-Type")):n.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await d[A]();break;case "formData":x=new FormData;break;case "stream":x=d.body;break;default:x={};break}return n.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return n.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(n.responseValidator&&await n.responseValidator(u),n.responseTransformer&&(u=await n.responseTransformer(u))),n.responseStyle==="data"?u:{data:u,...E}}let P=await d.text(),b;try{b=JSON.parse(P);}catch{}let m=b??P,w=m;for(let A of i.error.fns)A&&(w=await A(m,d,h,n));if(w=w||{},n.throwOnError)throw w;return n.responseStyle==="data"?void 0:{error:w,...E}},a=g=>n=>l({...n,method:g}),c=g=>async n=>{let{opts:f,url:O}=await p(n);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(h,F)=>{let d=new Request(h,F);for(let E of i.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:K,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=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=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}}),fe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),xe=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}}),he=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}}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),we=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}}),Pe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=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}}),Re=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=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}}),Oe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=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}}),Te=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Ce=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),ke=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Fe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),Ie=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),We=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}/shared-files",...e}),ve=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ke=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),Le=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ze=e=>(e.client??o).put({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),Me=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),je=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}}),Xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Ve=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}}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),$e=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),Qe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Je=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),et=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),tt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),st=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),it=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}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),dt=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}}),gt=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}}),At=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}}),ut=e=>(e.client??o).post({...S,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
8
+ export{Ie as agentByIdDelete,Fe as agentCreate,We as agentExecutePost,ke as agentList,Oe as agentProfileClearBrowserCache,Re as agentProfileDelete,be as agentProfileDuplicate,Se as agentProfileGet,Ce as agentProfileGetInboxEmail,Te as agentProfileGetInboxEmails,fe as agentProfilePoolDelete,Ee as agentProfilePoolGet,we as agentProfilePoolMembersAdd,ye as agentProfilePoolMembersList,he as agentProfilePoolMembersRemove,xe as agentProfilePoolUpdate,ue as agentProfilePoolsCreate,Ae as agentProfilePoolsList,De as agentProfileUpdate,me as agentProfilesCreate,Pe as agentProfilesList,qe as agentSharedFileDownloadRedirect,Le as agentSharedFilesDelete,Ke as agentSharedFilesDeleteAll,Me as agentSharedFilesFreeze,Ue as agentSharedFilesGet,ze as agentSharedFilesUpdate,ve as agentSharedFilesUpload,je as agentWorkflowsCreate,Xe as agentWorkflowsDeleteWorkflow,Ve as agentWorkflowsExecute,Ne as agentWorkflowsGet,He as agentWorkflowsGetInputs,$e as agentWorkflowsGetOutputSchemas,Be as agentWorkflowsList,Qe as agentWorkflowsPublish,Je as agentWorkflowsSyncExecution,Ge as availableToolsList,o as client,_e as contextGet,Ye as docsSearchSearch,tt as executionActivitiesGet,ot as executionAgentFileDownloadRedirect,rt as executionAgentFilesGet,it as executionContextFileDownloadRedirect,nt as executionContextFilesGet,st as executionContextFilesUpload,at as executionDebugFileDownloadRedirect,ct as executionFileDownloadRedirect,lt as executionFilesGet,et as executionGet,pt as executionRecordingRedirect,dt as executionStatusUpdate,gt as executionUserMessagesAdd,Ze as executionsList,At as schemaValidationValidate,ut as tempFilesStage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.6.782",
3
+ "version": "1.6.786",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",