asteroid-odyssey 1.6.790 → 1.6.793

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
@@ -403,6 +403,96 @@ type AgentsContextUserOrganization = {
403
403
  id: CommonUuid;
404
404
  name: string;
405
405
  };
406
+ /**
407
+ * Engagement-activity rows for every organisation that has run an execution or built an agent.
408
+ */
409
+ type AgentsCustomerActivityCustomerActivityList = {
410
+ rows: Array<AgentsCustomerActivityCustomerActivityRow>;
411
+ /**
412
+ * When the snapshot was computed (server time).
413
+ */
414
+ computedAt: string;
415
+ };
416
+ /**
417
+ * Per-organisation engagement-activity row for the admin customers dashboard. Owned by the agents service; the frontend joins it onto billing identity on organisationId.
418
+ */
419
+ type AgentsCustomerActivityCustomerActivityRow = {
420
+ /**
421
+ * Organisation ID (usersdb organisation UUID).
422
+ */
423
+ organisationId: CommonUuid;
424
+ /**
425
+ * Timestamp of the most recent execution. Absent when the org never ran one.
426
+ */
427
+ lastActivityAt?: string;
428
+ /**
429
+ * Total agents (workflow groups) ever created by the org.
430
+ */
431
+ agentCount: number;
432
+ /**
433
+ * Executions created in the last 7 days.
434
+ */
435
+ execs7d: number;
436
+ /**
437
+ * Executions created in the last 30 days.
438
+ */
439
+ execs30d: number;
440
+ /**
441
+ * completed / (completed+failed) over runs that ended in the last 7 days, 0..1. Absent when fewer than 5 finished runs (volume floor).
442
+ */
443
+ successRate7d?: number;
444
+ /**
445
+ * Risk from inactivity: red >14d, amber 7-14d, green <7d since last activity. Never-active orgs are red.
446
+ */
447
+ inactivityRisk: AgentsCustomerActivityRiskLevel;
448
+ /**
449
+ * Risk from success rate: red <30%, amber 30-70%, green >70%. Absent below the volume floor.
450
+ */
451
+ qualityRisk?: AgentsCustomerActivityRiskLevel;
452
+ /**
453
+ * Worse of the two risks. The frontend weights this by MRR to derive the dashboard priority sort.
454
+ */
455
+ overallRisk: AgentsCustomerActivityRiskLevel;
456
+ };
457
+ /**
458
+ * Kind of high-intent activity event surfaced in the customer-health digest.
459
+ */
460
+ type AgentsCustomerActivityNotableActivityKind = 'first_scheduled_agent' | 'first_api_execution' | 'first_agent_built' | 'first_successful_execution' | 'friction';
461
+ /**
462
+ * Notable-activity events in the lookback window. Used by the customer-health Slack digest.
463
+ */
464
+ type AgentsCustomerActivityNotableActivityList = {
465
+ events: Array<AgentsCustomerActivityNotableActivityRow>;
466
+ /**
467
+ * Inclusive lower bound on occurredAt (UTC).
468
+ */
469
+ since: string;
470
+ };
471
+ /**
472
+ * An org tripped a high-intent activity event within the lookback window.
473
+ */
474
+ type AgentsCustomerActivityNotableActivityRow = {
475
+ /**
476
+ * Organisation ID (usersdb organisation UUID).
477
+ */
478
+ organisationId: CommonUuid;
479
+ /**
480
+ * Which event was tripped.
481
+ */
482
+ kind: AgentsCustomerActivityNotableActivityKind;
483
+ /**
484
+ * When the event occurred (for friction: the most recent qualifying run).
485
+ */
486
+ occurredAt: string;
487
+ /**
488
+ * Optional human-readable detail for the digest line. Absent when no detail applies.
489
+ */
490
+ detail?: string;
491
+ };
492
+ /**
493
+ * Traffic-light engagement-risk level derived from execution activity.
494
+ */
495
+ type AgentsCustomerActivityRiskLevel = 'red' | 'amber' | 'green';
406
496
  /**
407
497
  * Request to search Asteroid documentation
408
498
  */
@@ -2633,6 +2723,43 @@ type AgentsWorkflowSyncExecutionResponse = {
2633
2723
  */
2634
2724
  workflowId: CommonUuid;
2635
2725
  };
2726
+ /**
2727
+ * A file stored on a workflow version. Content is fetched via the workflow-scoped shared-file download endpoints using this id.
2728
+ */
2729
+ type AgentsWorkflowWorkflowFile = {
2730
+ /**
2731
+ * The unique ID of this file within the workflow version
2732
+ */
2733
+ id: CommonUuid;
2734
+ /**
2735
+ * The file path, relative to the agent's shared directory
2736
+ */
2737
+ filePath: string;
2738
+ /**
2739
+ * The file's base name
2740
+ */
2741
+ fileName: string;
2742
+ /**
2743
+ * The file size in bytes
2744
+ */
2745
+ fileSize: number;
2746
+ /**
2747
+ * The file's MIME type, when known
2748
+ */
2749
+ mimeType?: string;
2750
+ /**
2751
+ * Hex-encoded SHA-256 of the file contents, when known
2752
+ */
2753
+ checksum?: string;
2754
+ /**
2755
+ * When this file was first added to the workflow lineage
2756
+ */
2757
+ createdAt: string;
2758
+ /**
2759
+ * When this file was last modified
2760
+ */
2761
+ updatedAt: string;
2762
+ };
2636
2763
  /**
2637
2764
  * The typed inputs a workflow declares
2638
2765
  */
@@ -2717,6 +2844,10 @@ type AgentsWorkflowWorkflowSnapshot = {
2717
2844
  * The workflow graph
2718
2845
  */
2719
2846
  graph: AgentsGraphModelsAgentGraph;
2847
+ /**
2848
+ * The files stored on this workflow version. Empty when the workflow has no files.
2849
+ */
2850
+ files: Array<AgentsWorkflowWorkflowFile>;
2720
2851
  /**
2721
2852
  * When this workflow was created
2722
2853
  */
@@ -2823,6 +2954,83 @@ type AgentsProfilePoolSearch = string;
2823
2954
  type AgentsProfileSearch = string;
2824
2955
  type CommonPaginationPage = number;
2825
2956
  type CommonPaginationPageSize = number;
2957
+ type AdminCustomerActivityListData = {
2958
+ body?: never;
2959
+ path?: never;
2960
+ query?: never;
2961
+ url: '/admin/customer-activity';
2962
+ };
2963
+ type AdminCustomerActivityListErrors = {
2964
+ /**
2965
+ * The server could not understand the request due to invalid syntax.
2966
+ */
2967
+ 400: CommonBadRequestErrorBody;
2968
+ /**
2969
+ * Access is unauthorized.
2970
+ */
2971
+ 401: CommonUnauthorizedErrorBody;
2972
+ /**
2973
+ * Access is forbidden.
2974
+ */
2975
+ 403: CommonForbiddenErrorBody;
2976
+ /**
2977
+ * The server cannot find the requested resource.
2978
+ */
2979
+ 404: CommonNotFoundErrorBody;
2980
+ /**
2981
+ * Server error
2982
+ */
2983
+ 500: CommonInternalServerErrorBody;
2984
+ };
2985
+ type AdminCustomerActivityListError = AdminCustomerActivityListErrors[keyof AdminCustomerActivityListErrors];
2986
+ type AdminCustomerActivityListResponses = {
2987
+ /**
2988
+ * The request has succeeded.
2989
+ */
2990
+ 200: AgentsCustomerActivityCustomerActivityList;
2991
+ };
2992
+ type AdminCustomerActivityListResponse = AdminCustomerActivityListResponses[keyof AdminCustomerActivityListResponses];
2993
+ type AdminCustomerActivityNotableListData = {
2994
+ body?: never;
2995
+ path?: never;
2996
+ query?: {
2997
+ /**
2998
+ * Lookback in hours. Defaults to 24.
2999
+ */
3000
+ lookbackHours?: number;
3001
+ };
3002
+ url: '/admin/customer-activity/notable';
3003
+ };
3004
+ type AdminCustomerActivityNotableListErrors = {
3005
+ /**
3006
+ * The server could not understand the request due to invalid syntax.
3007
+ */
3008
+ 400: CommonBadRequestErrorBody;
3009
+ /**
3010
+ * Access is unauthorized.
3011
+ */
3012
+ 401: CommonUnauthorizedErrorBody;
3013
+ /**
3014
+ * Access is forbidden.
3015
+ */
3016
+ 403: CommonForbiddenErrorBody;
3017
+ /**
3018
+ * The server cannot find the requested resource.
3019
+ */
3020
+ 404: CommonNotFoundErrorBody;
3021
+ /**
3022
+ * Server error
3023
+ */
3024
+ 500: CommonInternalServerErrorBody;
3025
+ };
3026
+ type AdminCustomerActivityNotableListError = AdminCustomerActivityNotableListErrors[keyof AdminCustomerActivityNotableListErrors];
3027
+ type AdminCustomerActivityNotableListResponses = {
3028
+ /**
3029
+ * The request has succeeded.
3030
+ */
3031
+ 200: AgentsCustomerActivityNotableActivityList;
3032
+ };
3033
+ type AdminCustomerActivityNotableListResponse = AdminCustomerActivityNotableListResponses[keyof AdminCustomerActivityNotableListResponses];
2826
3034
  type AgentProfilePoolsListData = {
2827
3035
  body?: never;
2828
3036
  path?: never;
@@ -4975,6 +5183,18 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
4975
5183
  */
4976
5184
  meta?: Record<string, unknown>;
4977
5185
  };
5186
+ /**
5187
+ * List customer activity for all orgs
5188
+ *
5189
+ * Engagement-activity metrics (execution volume, success rate, agent count, risk) for every active organisation. Admin-only.
5190
+ */
5191
+ declare const adminCustomerActivityList: <ThrowOnError extends boolean = false>(options?: Options<AdminCustomerActivityListData, ThrowOnError>) => RequestResult<AdminCustomerActivityListResponses, AdminCustomerActivityListErrors, ThrowOnError, "fields">;
5192
+ /**
5193
+ * List notable activity in a lookback window
5194
+ *
5195
+ * List orgs that tripped a high-intent activity event within the lookback window. Admin-only. Feeds the customer-health Slack digest.
5196
+ */
5197
+ declare const adminCustomerActivityNotableList: <ThrowOnError extends boolean = false>(options?: Options<AdminCustomerActivityNotableListData, ThrowOnError>) => RequestResult<AdminCustomerActivityNotableListResponses, AdminCustomerActivityNotableListErrors, ThrowOnError, "fields">;
4978
5198
  /**
4979
5199
  * List Agent Profile Pools
4980
5200
  *
@@ -5330,4 +5550,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5330
5550
  */
5331
5551
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5332
5552
 
5333
- 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 AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, 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 };
5553
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, 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 AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type 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 AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, 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 AgentsWorkflowWorkflowFile, 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, adminCustomerActivityList, adminCustomerActivityNotableList, 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
@@ -403,6 +403,96 @@ type AgentsContextUserOrganization = {
403
403
  id: CommonUuid;
404
404
  name: string;
405
405
  };
406
+ /**
407
+ * Engagement-activity rows for every organisation that has run an execution or built an agent.
408
+ */
409
+ type AgentsCustomerActivityCustomerActivityList = {
410
+ rows: Array<AgentsCustomerActivityCustomerActivityRow>;
411
+ /**
412
+ * When the snapshot was computed (server time).
413
+ */
414
+ computedAt: string;
415
+ };
416
+ /**
417
+ * Per-organisation engagement-activity row for the admin customers dashboard. Owned by the agents service; the frontend joins it onto billing identity on organisationId.
418
+ */
419
+ type AgentsCustomerActivityCustomerActivityRow = {
420
+ /**
421
+ * Organisation ID (usersdb organisation UUID).
422
+ */
423
+ organisationId: CommonUuid;
424
+ /**
425
+ * Timestamp of the most recent execution. Absent when the org never ran one.
426
+ */
427
+ lastActivityAt?: string;
428
+ /**
429
+ * Total agents (workflow groups) ever created by the org.
430
+ */
431
+ agentCount: number;
432
+ /**
433
+ * Executions created in the last 7 days.
434
+ */
435
+ execs7d: number;
436
+ /**
437
+ * Executions created in the last 30 days.
438
+ */
439
+ execs30d: number;
440
+ /**
441
+ * completed / (completed+failed) over runs that ended in the last 7 days, 0..1. Absent when fewer than 5 finished runs (volume floor).
442
+ */
443
+ successRate7d?: number;
444
+ /**
445
+ * Risk from inactivity: red >14d, amber 7-14d, green <7d since last activity. Never-active orgs are red.
446
+ */
447
+ inactivityRisk: AgentsCustomerActivityRiskLevel;
448
+ /**
449
+ * Risk from success rate: red <30%, amber 30-70%, green >70%. Absent below the volume floor.
450
+ */
451
+ qualityRisk?: AgentsCustomerActivityRiskLevel;
452
+ /**
453
+ * Worse of the two risks. The frontend weights this by MRR to derive the dashboard priority sort.
454
+ */
455
+ overallRisk: AgentsCustomerActivityRiskLevel;
456
+ };
457
+ /**
458
+ * Kind of high-intent activity event surfaced in the customer-health digest.
459
+ */
460
+ type AgentsCustomerActivityNotableActivityKind = 'first_scheduled_agent' | 'first_api_execution' | 'first_agent_built' | 'first_successful_execution' | 'friction';
461
+ /**
462
+ * Notable-activity events in the lookback window. Used by the customer-health Slack digest.
463
+ */
464
+ type AgentsCustomerActivityNotableActivityList = {
465
+ events: Array<AgentsCustomerActivityNotableActivityRow>;
466
+ /**
467
+ * Inclusive lower bound on occurredAt (UTC).
468
+ */
469
+ since: string;
470
+ };
471
+ /**
472
+ * An org tripped a high-intent activity event within the lookback window.
473
+ */
474
+ type AgentsCustomerActivityNotableActivityRow = {
475
+ /**
476
+ * Organisation ID (usersdb organisation UUID).
477
+ */
478
+ organisationId: CommonUuid;
479
+ /**
480
+ * Which event was tripped.
481
+ */
482
+ kind: AgentsCustomerActivityNotableActivityKind;
483
+ /**
484
+ * When the event occurred (for friction: the most recent qualifying run).
485
+ */
486
+ occurredAt: string;
487
+ /**
488
+ * Optional human-readable detail for the digest line. Absent when no detail applies.
489
+ */
490
+ detail?: string;
491
+ };
492
+ /**
493
+ * Traffic-light engagement-risk level derived from execution activity.
494
+ */
495
+ type AgentsCustomerActivityRiskLevel = 'red' | 'amber' | 'green';
406
496
  /**
407
497
  * Request to search Asteroid documentation
408
498
  */
@@ -2633,6 +2723,43 @@ type AgentsWorkflowSyncExecutionResponse = {
2633
2723
  */
2634
2724
  workflowId: CommonUuid;
2635
2725
  };
2726
+ /**
2727
+ * A file stored on a workflow version. Content is fetched via the workflow-scoped shared-file download endpoints using this id.
2728
+ */
2729
+ type AgentsWorkflowWorkflowFile = {
2730
+ /**
2731
+ * The unique ID of this file within the workflow version
2732
+ */
2733
+ id: CommonUuid;
2734
+ /**
2735
+ * The file path, relative to the agent's shared directory
2736
+ */
2737
+ filePath: string;
2738
+ /**
2739
+ * The file's base name
2740
+ */
2741
+ fileName: string;
2742
+ /**
2743
+ * The file size in bytes
2744
+ */
2745
+ fileSize: number;
2746
+ /**
2747
+ * The file's MIME type, when known
2748
+ */
2749
+ mimeType?: string;
2750
+ /**
2751
+ * Hex-encoded SHA-256 of the file contents, when known
2752
+ */
2753
+ checksum?: string;
2754
+ /**
2755
+ * When this file was first added to the workflow lineage
2756
+ */
2757
+ createdAt: string;
2758
+ /**
2759
+ * When this file was last modified
2760
+ */
2761
+ updatedAt: string;
2762
+ };
2636
2763
  /**
2637
2764
  * The typed inputs a workflow declares
2638
2765
  */
@@ -2717,6 +2844,10 @@ type AgentsWorkflowWorkflowSnapshot = {
2717
2844
  * The workflow graph
2718
2845
  */
2719
2846
  graph: AgentsGraphModelsAgentGraph;
2847
+ /**
2848
+ * The files stored on this workflow version. Empty when the workflow has no files.
2849
+ */
2850
+ files: Array<AgentsWorkflowWorkflowFile>;
2720
2851
  /**
2721
2852
  * When this workflow was created
2722
2853
  */
@@ -2823,6 +2954,83 @@ type AgentsProfilePoolSearch = string;
2823
2954
  type AgentsProfileSearch = string;
2824
2955
  type CommonPaginationPage = number;
2825
2956
  type CommonPaginationPageSize = number;
2957
+ type AdminCustomerActivityListData = {
2958
+ body?: never;
2959
+ path?: never;
2960
+ query?: never;
2961
+ url: '/admin/customer-activity';
2962
+ };
2963
+ type AdminCustomerActivityListErrors = {
2964
+ /**
2965
+ * The server could not understand the request due to invalid syntax.
2966
+ */
2967
+ 400: CommonBadRequestErrorBody;
2968
+ /**
2969
+ * Access is unauthorized.
2970
+ */
2971
+ 401: CommonUnauthorizedErrorBody;
2972
+ /**
2973
+ * Access is forbidden.
2974
+ */
2975
+ 403: CommonForbiddenErrorBody;
2976
+ /**
2977
+ * The server cannot find the requested resource.
2978
+ */
2979
+ 404: CommonNotFoundErrorBody;
2980
+ /**
2981
+ * Server error
2982
+ */
2983
+ 500: CommonInternalServerErrorBody;
2984
+ };
2985
+ type AdminCustomerActivityListError = AdminCustomerActivityListErrors[keyof AdminCustomerActivityListErrors];
2986
+ type AdminCustomerActivityListResponses = {
2987
+ /**
2988
+ * The request has succeeded.
2989
+ */
2990
+ 200: AgentsCustomerActivityCustomerActivityList;
2991
+ };
2992
+ type AdminCustomerActivityListResponse = AdminCustomerActivityListResponses[keyof AdminCustomerActivityListResponses];
2993
+ type AdminCustomerActivityNotableListData = {
2994
+ body?: never;
2995
+ path?: never;
2996
+ query?: {
2997
+ /**
2998
+ * Lookback in hours. Defaults to 24.
2999
+ */
3000
+ lookbackHours?: number;
3001
+ };
3002
+ url: '/admin/customer-activity/notable';
3003
+ };
3004
+ type AdminCustomerActivityNotableListErrors = {
3005
+ /**
3006
+ * The server could not understand the request due to invalid syntax.
3007
+ */
3008
+ 400: CommonBadRequestErrorBody;
3009
+ /**
3010
+ * Access is unauthorized.
3011
+ */
3012
+ 401: CommonUnauthorizedErrorBody;
3013
+ /**
3014
+ * Access is forbidden.
3015
+ */
3016
+ 403: CommonForbiddenErrorBody;
3017
+ /**
3018
+ * The server cannot find the requested resource.
3019
+ */
3020
+ 404: CommonNotFoundErrorBody;
3021
+ /**
3022
+ * Server error
3023
+ */
3024
+ 500: CommonInternalServerErrorBody;
3025
+ };
3026
+ type AdminCustomerActivityNotableListError = AdminCustomerActivityNotableListErrors[keyof AdminCustomerActivityNotableListErrors];
3027
+ type AdminCustomerActivityNotableListResponses = {
3028
+ /**
3029
+ * The request has succeeded.
3030
+ */
3031
+ 200: AgentsCustomerActivityNotableActivityList;
3032
+ };
3033
+ type AdminCustomerActivityNotableListResponse = AdminCustomerActivityNotableListResponses[keyof AdminCustomerActivityNotableListResponses];
2826
3034
  type AgentProfilePoolsListData = {
2827
3035
  body?: never;
2828
3036
  path?: never;
@@ -4975,6 +5183,18 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
4975
5183
  */
4976
5184
  meta?: Record<string, unknown>;
4977
5185
  };
5186
+ /**
5187
+ * List customer activity for all orgs
5188
+ *
5189
+ * Engagement-activity metrics (execution volume, success rate, agent count, risk) for every active organisation. Admin-only.
5190
+ */
5191
+ declare const adminCustomerActivityList: <ThrowOnError extends boolean = false>(options?: Options<AdminCustomerActivityListData, ThrowOnError>) => RequestResult<AdminCustomerActivityListResponses, AdminCustomerActivityListErrors, ThrowOnError, "fields">;
5192
+ /**
5193
+ * List notable activity in a lookback window
5194
+ *
5195
+ * List orgs that tripped a high-intent activity event within the lookback window. Admin-only. Feeds the customer-health Slack digest.
5196
+ */
5197
+ declare const adminCustomerActivityNotableList: <ThrowOnError extends boolean = false>(options?: Options<AdminCustomerActivityNotableListData, ThrowOnError>) => RequestResult<AdminCustomerActivityNotableListResponses, AdminCustomerActivityNotableListErrors, ThrowOnError, "fields">;
4978
5198
  /**
4979
5199
  * List Agent Profile Pools
4980
5200
  *
@@ -5330,4 +5550,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
5330
5550
  */
5331
5551
  declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
5332
5552
 
5333
- 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 AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, 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 };
5553
+ export { type AdminCustomerActivityListData, type AdminCustomerActivityListError, type AdminCustomerActivityListErrors, type AdminCustomerActivityListResponse, type AdminCustomerActivityListResponses, type AdminCustomerActivityNotableListData, type AdminCustomerActivityNotableListError, type AdminCustomerActivityNotableListErrors, type AdminCustomerActivityNotableListResponse, type AdminCustomerActivityNotableListResponses, 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 AgentsCustomerActivityCustomerActivityList, type AgentsCustomerActivityCustomerActivityRow, type AgentsCustomerActivityNotableActivityKind, type AgentsCustomerActivityNotableActivityList, type AgentsCustomerActivityNotableActivityRow, type AgentsCustomerActivityRiskLevel, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityCompactionPerformedPayload, type AgentsExecutionActivityCompactionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type 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 AgentsExecutionSdkSkillCompletedDetails, type AgentsExecutionSdkSkillStartedDetails, 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 AgentsWorkflowWorkflowFile, 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, adminCustomerActivityList, adminCustomerActivityNotableList, 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 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 R={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,`
1
+ 'use strict';var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var S={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,O=c??(p=>new Promise(E=>setTimeout(E,p)));return {stream:async function*(){let p=d??3e3,E=0,m=s.signal??new AbortController().signal;for(;!m.aborted;){E++;let b=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let P={redirect:"follow",...s,body:s.serializedBody,headers:b,signal:m},w=new Request(g,P);e&&(w=await e(g,P));let u=await(s.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(),C="",q=()=>{try{x.cancel();}catch{}};m.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let M=T.split(`
3
+ `);let M=C.split(`
4
4
 
5
- `);T=M.pop()??"";for(let re of M){let oe=re.split(`
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 S,j=!1;if(G.length){let y=G.join(`
7
- `);try{S=JSON.parse(y),j=!0;}catch{S=y;}}j&&(i&&await i(S),s&&(S=await s(S))),r?.({data:S,event:B,id:f,retry:d}),G.length&&(yield S);}}}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}}),Se=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=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({...R,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({...R,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({...R,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({...R,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=Se;exports.agentProfileDuplicate=be;exports.agentProfileGet=Re;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;
5
+ `);C=M.pop()??"";for(let re of M){let oe=re.split(`
6
+ `),G=[],B;for(let h of oe)if(h.startsWith("data:"))G.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))B=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))f=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let N=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(p=N);}let R,j=!1;if(G.length){let h=G.join(`
7
+ `);try{R=JSON.parse(h),j=!0;}catch{R=h;}}j&&(i&&await i(R),n&&(R=await n(R))),r?.({data:R,event:B,id:f,retry:p}),G.length&&(yield R);}}}finally{m.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&E>=l)break;let w=Math.min(p*2**(E-1),a??3e4);await O(w);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let d=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(d);return n==="label"||n==="matrix"?d+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let d=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(d=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:d,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:d,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,l=(e??"")+d;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let d in n){let l=n[d];if(l==null)continue;let a=e[d]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:d,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:d,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:d,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},de=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?de(r):Object.entries(r);for(let[i,d]of n)if(d===null)t.delete(i);else if(Array.isArray(d))for(let l of d)t.append(i,l);else d!==void 0&&t.set(i,typeof d=="object"?JSON.stringify(d):d);}return t},T=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new T,request:new T,response:new T}),pe=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:pe,...e});var z=(e={})=>{let t=K(k(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),d=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await d(g),O={redirect:"follow",...s,body:$(s)},y=new Request(f,O);for(let A of i.request.fns)A&&(y=await A(y,s));let F=s.fetch,p;try{p=await F(y);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,y,s));if(u=u||{},s.throwOnError)throw u;return s.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of i.response.fns)A&&(p=await A(p,y,s));let E={request:y,response:p};if(p.ok){let A=(s.parseAs==="auto"?_(p.headers.get("Content-Type")):s.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await p[A]();break;case "formData":x=new FormData;break;case "stream":x=p.body;break;default:x={};break}return s.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await p[A]();break;case "stream":return s.responseStyle==="data"?p.body:{data:p.body,...E}}return A==="json"&&(s.responseValidator&&await s.responseValidator(u),s.responseTransformer&&(u=await s.responseTransformer(u))),s.responseStyle==="data"?u:{data:u,...E}}let m=await p.text(),b;try{b=JSON.parse(m);}catch{}let P=b??m,w=P;for(let A of i.error.fns)A&&(w=await A(P,p,y,s));if(w=w||{},s.throwOnError)throw w;return s.responseStyle==="data"?void 0:{error:w,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:O}=await d(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let p=new Request(y,F);for(let E of i.request.fns)E&&(p=await E(p,f));return p},url:O})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),Ee=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Oe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Te=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}}),ke=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Fe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Ie=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ve=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Le=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}),Ke=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}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),qe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),Me=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}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),je=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}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Xe=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}}),Ve=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),$e=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}}),Qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),et=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}}),tt=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),at=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}}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),At=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}}),ut=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}}),ft=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}}),Et=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.adminCustomerActivityList=Ae;exports.adminCustomerActivityNotableList=ue;exports.agentByIdDelete=ve;exports.agentCreate=Ie;exports.agentExecutePost=Le;exports.agentList=Ge;exports.agentProfileClearBrowserCache=Ce;exports.agentProfileDelete=De;exports.agentProfileDuplicate=Te;exports.agentProfileGet=Oe;exports.agentProfileGetInboxEmail=Fe;exports.agentProfileGetInboxEmails=ke;exports.agentProfilePoolDelete=xe;exports.agentProfilePoolGet=ye;exports.agentProfilePoolMembersAdd=Pe;exports.agentProfilePoolMembersList=me;exports.agentProfilePoolMembersRemove=we;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=Ee;exports.agentProfilePoolsList=fe;exports.agentProfileUpdate=be;exports.agentProfilesCreate=Se;exports.agentProfilesList=Re;exports.agentSharedFileDownloadRedirect=Be;exports.agentSharedFilesDelete=qe;exports.agentSharedFilesDeleteAll=ze;exports.agentSharedFilesFreeze=je;exports.agentSharedFilesGet=Ue;exports.agentSharedFilesUpdate=Me;exports.agentSharedFilesUpload=Ke;exports.agentWorkflowsCreate=Xe;exports.agentWorkflowsDeleteWorkflow=Ve;exports.agentWorkflowsExecute=$e;exports.agentWorkflowsGet=He;exports.agentWorkflowsGetInputs=Qe;exports.agentWorkflowsGetOutputSchemas=Je;exports.agentWorkflowsList=Ne;exports.agentWorkflowsPublish=_e;exports.agentWorkflowsSyncExecution=Ye;exports.availableToolsList=We;exports.client=o;exports.contextGet=Ze;exports.docsSearchSearch=et;exports.executionActivitiesGet=ot;exports.executionAgentFileDownloadRedirect=nt;exports.executionAgentFilesGet=st;exports.executionContextFileDownloadRedirect=lt;exports.executionContextFilesGet=it;exports.executionContextFilesUpload=at;exports.executionDebugFileDownloadRedirect=ct;exports.executionFileDownloadRedirect=pt;exports.executionFilesGet=dt;exports.executionGet=rt;exports.executionRecordingRedirect=gt;exports.executionStatusUpdate=At;exports.executionUserMessagesAdd=ut;exports.executionsList=tt;exports.schemaValidationValidate=ft;exports.tempFilesStage=Et;
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- var N=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var R={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,`
1
+ var X=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var S={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,n])=>{n!=null&&(Array.isArray(n)?n.forEach(i=>X(t,r,i)):X(t,r,n));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var V=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:c,url:g,...s})=>{let f,O=c??(p=>new Promise(E=>setTimeout(E,p)));return {stream:async function*(){let p=d??3e3,E=0,m=s.signal??new AbortController().signal;for(;!m.aborted;){E++;let b=s.headers instanceof Headers?s.headers:new Headers(s.headers);f!==void 0&&b.set("Last-Event-ID",f);try{let P={redirect:"follow",...s,body:s.serializedBody,headers:b,signal:m},w=new Request(g,P);e&&(w=await e(g,P));let u=await(s.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(),C="",q=()=>{try{x.cancel();}catch{}};m.addEventListener("abort",q);try{for(;;){let{done:ee,value:te}=await x.read();if(ee)break;C+=te,C=C.replace(/\r\n/g,`
2
2
  `).replace(/\r/g,`
3
- `);let M=T.split(`
3
+ `);let M=C.split(`
4
4
 
5
- `);T=M.pop()??"";for(let re of M){let oe=re.split(`
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 S,j=!1;if(G.length){let y=G.join(`
7
- `);try{S=JSON.parse(y),j=!0;}catch{S=y;}}j&&(i&&await i(S),s&&(S=await s(S))),r?.({data:S,event:B,id:f,retry:d}),G.length&&(yield S);}}}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}}),Se=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=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({...R,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({...R,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({...R,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({...R,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,Se as agentProfileDelete,be as agentProfileDuplicate,Re 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};
5
+ `);C=M.pop()??"";for(let re of M){let oe=re.split(`
6
+ `),G=[],B;for(let h of oe)if(h.startsWith("data:"))G.push(h.replace(/^data:\s*/,""));else if(h.startsWith("event:"))B=h.replace(/^event:\s*/,"");else if(h.startsWith("id:"))f=h.replace(/^id:\s*/,"");else if(h.startsWith("retry:")){let N=Number.parseInt(h.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(p=N);}let R,j=!1;if(G.length){let h=G.join(`
7
+ `);try{R=JSON.parse(h),j=!0;}catch{R=h;}}j&&(i&&await i(R),n&&(R=await n(R))),r?.({data:R,event:B,id:f,retry:p}),G.length&&(yield R);}}}finally{m.removeEventListener("abort",q),x.releaseLock();}break}catch(P){if(t?.(P),l!==void 0&&E>=l)break;let w=Math.min(p*2**(E-1),a??3e4);await O(w);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},I=({allowReserved:e,explode:t,name:r,style:n,value:i})=>{if(!t){let a=(e?i:i.map(c=>encodeURIComponent(c))).join(ne(n));switch(n){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let d=se(n),l=i.map(a=>n==="label"||n==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(d);return n==="label"||n==="matrix"?d+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:n,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${r}=${i.toISOString()}`;if(n!=="deepObject"&&!t){let c=[];Object.entries(i).forEach(([s,f])=>{c=[...c,s,e?f:encodeURIComponent(f)];});let g=c.join(",");switch(n){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(n),a=Object.entries(i).map(([c,g])=>D({allowReserved:e,name:n==="deepObject"?`${r}[${c}]`:c,value:g})).join(l);return n==="label"||n==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,n=t.match(ae);if(n)for(let i of n){let d=false,l=i.substring(1,i.length-1),a="simple";l.endsWith("*")&&(d=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let c=e[l];if(c==null)continue;if(Array.isArray(c)){r=r.replace(i,I({explode:d,name:l,style:a,value:c}));continue}if(typeof c=="object"){r=r.replace(i,W({explode:d,name:l,style:a,value:c,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(i,`;${D({name:l,value:c})}`);continue}let g=encodeURIComponent(a==="label"?`.${c}`:c);r=r.replace(i,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:n,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,l=(e??"")+d;t&&(l=le({path:t,url:l}));let a=r?n(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>n=>{let i=[];if(n&&typeof n=="object")for(let d in n){let l=n[d];if(l==null)continue;let a=e[d]||t;if(Array.isArray(l)){let c=I({allowReserved:a.allowReserved,explode:true,name:d,style:"form",value:l,...a.array});c&&i.push(c);}else if(typeof l=="object"){let c=W({allowReserved:a.allowReserved,explode:true,name:d,style:"deepObject",value:l,...a.object});c&&i.push(c);}else {let c=D({allowReserved:a.allowReserved,name:d,value:l});c&&i.push(c);}}return i.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},ce=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(ce(t,r.name))continue;let n=await Q(r,t.auth);if(!n)continue;let i=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[i]=n;break;case "cookie":t.headers.append("Cookie",`${i}=${n}`);break;default:t.headers.set(i,n);break}}},U=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),K=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},de=e=>{let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?de(r):Object.entries(r);for(let[i,d]of n)if(d===null)t.delete(i);else if(Array.isArray(d))for(let l of d)t.append(i,l);else d!==void 0&&t.set(i,typeof d=="object"?JSON.stringify(d):d);}return t},T=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let n=this.getInterceptorIndex(t);return this.fns[n]?(this.fns[n]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new T,request:new T,response:new T}),pe=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:pe,...e});var z=(e={})=>{let t=K(k(),e),r=()=>({...t}),n=g=>(t=K(t,g),r()),i=Z(),d=async g=>{let s={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};s.security&&await Y({...s,security:s.security}),s.requestValidator&&await s.requestValidator(s),s.body!==void 0&&s.bodySerializer&&(s.serializedBody=s.bodySerializer(s.body)),(s.body===void 0||s.serializedBody==="")&&s.headers.delete("Content-Type");let f=U(s);return {opts:s,url:f}},l=async g=>{let{opts:s,url:f}=await d(g),O={redirect:"follow",...s,body:$(s)},y=new Request(f,O);for(let A of i.request.fns)A&&(y=await A(y,s));let F=s.fetch,p;try{p=await F(y);}catch(A){let u=A;for(let x of i.error.fns)x&&(u=await x(A,void 0,y,s));if(u=u||{},s.throwOnError)throw u;return s.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of i.response.fns)A&&(p=await A(p,y,s));let E={request:y,response:p};if(p.ok){let A=(s.parseAs==="auto"?_(p.headers.get("Content-Type")):s.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let x;switch(A){case "arrayBuffer":case "blob":case "text":x=await p[A]();break;case "formData":x=new FormData;break;case "stream":x=p.body;break;default:x={};break}return s.responseStyle==="data"?x:{data:x,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await p[A]();break;case "stream":return s.responseStyle==="data"?p.body:{data:p.body,...E}}return A==="json"&&(s.responseValidator&&await s.responseValidator(u),s.responseTransformer&&(u=await s.responseTransformer(u))),s.responseStyle==="data"?u:{data:u,...E}}let m=await p.text(),b;try{b=JSON.parse(m);}catch{}let P=b??m,w=P;for(let A of i.error.fns)A&&(w=await A(P,p,y,s));if(w=w||{},s.throwOnError)throw w;return s.responseStyle==="data"?void 0:{error:w,...E}},a=g=>s=>l({...s,method:g}),c=g=>async s=>{let{opts:f,url:O}=await d(s);return V({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let p=new Request(y,F);for(let E of i.request.fns)E&&(p=await E(p,f));return p},url:O})};return {buildUrl:U,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:i,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:n,sse:{connect:c("CONNECT"),delete:c("DELETE"),get:c("GET"),head:c("HEAD"),options:c("OPTIONS"),patch:c("PATCH"),post:c("POST"),put:c("PUT"),trace:c("TRACE")},trace:a("TRACE")}};var o=z(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity",...e}),ue=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/admin/customer-activity/notable",...e}),fe=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),Ee=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),ye=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),Se=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Oe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),be=e=>(e.client??o).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Te=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}}),ke=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails",...e}),Fe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/inbox-emails/{emailId}",...e}),Ge=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Ie=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ve=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}",...e}),Le=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}),Ke=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}}),ze=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),qe=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),Me=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}}),Be=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/download",...e}),je=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}}),Ne=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Xe=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}}),Ve=e=>(e.client??o).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),He=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),$e=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}}),Qe=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/inputs",...e}),Je=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/output-schemas",...e}),_e=e=>(e.client??o).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),Ye=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}}),Ze=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),et=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}}),tt=e=>(e?.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),rt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),ot=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),st=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files",...e}),nt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/agent-files/{fileId}/download",...e}),it=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),at=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}}),lt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files/{fileId}/download",...e}),ct=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/debug-files/{fileId}/download",...e}),dt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files",...e}),pt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/files/{fileId}/download",...e}),gt=e=>(e.client??o).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),At=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}}),ut=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}}),ft=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}}),Et=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{Ae as adminCustomerActivityList,ue as adminCustomerActivityNotableList,ve as agentByIdDelete,Ie as agentCreate,Le as agentExecutePost,Ge as agentList,Ce as agentProfileClearBrowserCache,De as agentProfileDelete,Te as agentProfileDuplicate,Oe as agentProfileGet,Fe as agentProfileGetInboxEmail,ke as agentProfileGetInboxEmails,xe as agentProfilePoolDelete,ye as agentProfilePoolGet,Pe as agentProfilePoolMembersAdd,me as agentProfilePoolMembersList,we as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,Ee as agentProfilePoolsCreate,fe as agentProfilePoolsList,be as agentProfileUpdate,Se as agentProfilesCreate,Re as agentProfilesList,Be as agentSharedFileDownloadRedirect,qe as agentSharedFilesDelete,ze as agentSharedFilesDeleteAll,je as agentSharedFilesFreeze,Ue as agentSharedFilesGet,Me as agentSharedFilesUpdate,Ke as agentSharedFilesUpload,Xe as agentWorkflowsCreate,Ve as agentWorkflowsDeleteWorkflow,$e as agentWorkflowsExecute,He as agentWorkflowsGet,Qe as agentWorkflowsGetInputs,Je as agentWorkflowsGetOutputSchemas,Ne as agentWorkflowsList,_e as agentWorkflowsPublish,Ye as agentWorkflowsSyncExecution,We as availableToolsList,o as client,Ze as contextGet,et as docsSearchSearch,ot as executionActivitiesGet,nt as executionAgentFileDownloadRedirect,st as executionAgentFilesGet,lt as executionContextFileDownloadRedirect,it as executionContextFilesGet,at as executionContextFilesUpload,ct as executionDebugFileDownloadRedirect,pt as executionFileDownloadRedirect,dt as executionFilesGet,rt as executionGet,gt as executionRecordingRedirect,At as executionStatusUpdate,ut as executionUserMessagesAdd,tt as executionsList,ft as schemaValidationValidate,Et as tempFilesStage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.6.790",
3
+ "version": "1.6.793",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",