asteroid-odyssey 1.6.303 → 1.6.308
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 +232 -1
- package/dist/index.d.ts +232 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -510,6 +510,7 @@ type AgentsExecutionActivityActionCompletedPayload = {
|
|
|
510
510
|
actionName: AgentsExecutionActionName;
|
|
511
511
|
duration?: number;
|
|
512
512
|
info?: AgentsExecutionActivityActionCompletedInfo;
|
|
513
|
+
display?: AgentsExecutionActivityDisplay;
|
|
513
514
|
};
|
|
514
515
|
type AgentsExecutionActivityActionFailedPayload = {
|
|
515
516
|
activityType: 'action_failed';
|
|
@@ -517,6 +518,7 @@ type AgentsExecutionActivityActionFailedPayload = {
|
|
|
517
518
|
actionName: AgentsExecutionActionName;
|
|
518
519
|
actionId: string;
|
|
519
520
|
duration?: number;
|
|
521
|
+
display?: AgentsExecutionActivityDisplay;
|
|
520
522
|
};
|
|
521
523
|
type AgentsExecutionActivityActionStartedInfo = ({
|
|
522
524
|
actionName: 'nav_to';
|
|
@@ -563,6 +565,13 @@ type AgentsExecutionActivityActionStartedPayload = {
|
|
|
563
565
|
actionName: AgentsExecutionActionName;
|
|
564
566
|
actionId: string;
|
|
565
567
|
info?: AgentsExecutionActivityActionStartedInfo;
|
|
568
|
+
display?: AgentsExecutionActivityDisplay;
|
|
569
|
+
};
|
|
570
|
+
type AgentsExecutionActivityDisplay = {
|
|
571
|
+
turnId?: string;
|
|
572
|
+
groupId?: string;
|
|
573
|
+
summaryText?: string;
|
|
574
|
+
presentationLevel?: AgentsExecutionActivityPresentationLevel;
|
|
566
575
|
};
|
|
567
576
|
type AgentsExecutionActivityFileAddedPayload = {
|
|
568
577
|
activityType: 'file_added';
|
|
@@ -576,6 +585,7 @@ type AgentsExecutionActivityFileAddedPayload = {
|
|
|
576
585
|
type AgentsExecutionActivityGenericPayload = {
|
|
577
586
|
activityType: 'generic';
|
|
578
587
|
message: string;
|
|
588
|
+
display?: AgentsExecutionActivityDisplay;
|
|
579
589
|
};
|
|
580
590
|
type AgentsExecutionActivityPayloadUnion = ({
|
|
581
591
|
activityType: 'terminal';
|
|
@@ -615,9 +625,11 @@ type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
|
|
|
615
625
|
context: string;
|
|
616
626
|
oldScript?: string;
|
|
617
627
|
};
|
|
628
|
+
type AgentsExecutionActivityPresentationLevel = 'primary' | 'secondary' | 'system';
|
|
618
629
|
type AgentsExecutionActivityReasoningPayload = {
|
|
619
630
|
activityType: 'reasoning';
|
|
620
631
|
reasoning: string;
|
|
632
|
+
display?: AgentsExecutionActivityDisplay;
|
|
621
633
|
};
|
|
622
634
|
type AgentsExecutionActivityStatusChangedPayload = {
|
|
623
635
|
activityType: 'status_changed';
|
|
@@ -1248,6 +1260,42 @@ type AgentsFilesFile = {
|
|
|
1248
1260
|
signedUrl: string;
|
|
1249
1261
|
};
|
|
1250
1262
|
type AgentsFilesFilePart = Blob | File;
|
|
1263
|
+
/**
|
|
1264
|
+
* Request to set the frozen status of a shared file
|
|
1265
|
+
*/
|
|
1266
|
+
type AgentsFilesSetFrozenRequest = {
|
|
1267
|
+
isFrozen: boolean;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* A file in the agent's persistent shared storage
|
|
1271
|
+
*/
|
|
1272
|
+
type AgentsFilesSharedFile = {
|
|
1273
|
+
id: CommonUuid;
|
|
1274
|
+
agentId: CommonUuid;
|
|
1275
|
+
filePath: string;
|
|
1276
|
+
fileName: string;
|
|
1277
|
+
fileSize: number;
|
|
1278
|
+
mimeType?: string;
|
|
1279
|
+
createdAt: string;
|
|
1280
|
+
updatedAt: string;
|
|
1281
|
+
version: number;
|
|
1282
|
+
isFrozen: boolean;
|
|
1283
|
+
lastModifiedByExecutionId?: CommonUuid;
|
|
1284
|
+
downloadUrl: string;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Response after uploading shared files
|
|
1288
|
+
*/
|
|
1289
|
+
type AgentsFilesSharedFileUploadResponse = {
|
|
1290
|
+
files: Array<AgentsFilesSharedFile>;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* Response containing all shared files for an agent
|
|
1294
|
+
*/
|
|
1295
|
+
type AgentsFilesSharedFilesResponse = {
|
|
1296
|
+
files: Array<AgentsFilesSharedFile>;
|
|
1297
|
+
totalSize: number;
|
|
1298
|
+
};
|
|
1251
1299
|
type AgentsFilesTempFile = {
|
|
1252
1300
|
id: CommonUuid;
|
|
1253
1301
|
name: string;
|
|
@@ -3178,6 +3226,153 @@ type AgentExecutePostResponses = {
|
|
|
3178
3226
|
202: AgentsAgentExecuteAgentResponse;
|
|
3179
3227
|
};
|
|
3180
3228
|
type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
|
|
3229
|
+
type AgentSharedFilesGetData = {
|
|
3230
|
+
body?: never;
|
|
3231
|
+
path: {
|
|
3232
|
+
agentId: CommonUuid;
|
|
3233
|
+
};
|
|
3234
|
+
query?: never;
|
|
3235
|
+
url: '/agents/{agentId}/shared-files';
|
|
3236
|
+
};
|
|
3237
|
+
type AgentSharedFilesGetErrors = {
|
|
3238
|
+
/**
|
|
3239
|
+
* The server cannot find the requested resource.
|
|
3240
|
+
*/
|
|
3241
|
+
404: 'Agent not found.';
|
|
3242
|
+
};
|
|
3243
|
+
type AgentSharedFilesGetError = AgentSharedFilesGetErrors[keyof AgentSharedFilesGetErrors];
|
|
3244
|
+
type AgentSharedFilesGetResponses = {
|
|
3245
|
+
/**
|
|
3246
|
+
* The request has succeeded.
|
|
3247
|
+
*/
|
|
3248
|
+
200: AgentsFilesSharedFilesResponse;
|
|
3249
|
+
};
|
|
3250
|
+
type AgentSharedFilesGetResponse = AgentSharedFilesGetResponses[keyof AgentSharedFilesGetResponses];
|
|
3251
|
+
type AgentSharedFilesUploadData = {
|
|
3252
|
+
body: {
|
|
3253
|
+
files: Array<AgentsFilesFilePart>;
|
|
3254
|
+
};
|
|
3255
|
+
path: {
|
|
3256
|
+
agentId: CommonUuid;
|
|
3257
|
+
};
|
|
3258
|
+
query?: never;
|
|
3259
|
+
url: '/agents/{agentId}/shared-files';
|
|
3260
|
+
};
|
|
3261
|
+
type AgentSharedFilesUploadErrors = {
|
|
3262
|
+
/**
|
|
3263
|
+
* The server could not understand the request due to invalid syntax.
|
|
3264
|
+
*/
|
|
3265
|
+
400: 'Invalid file upload request.';
|
|
3266
|
+
/**
|
|
3267
|
+
* The server cannot find the requested resource.
|
|
3268
|
+
*/
|
|
3269
|
+
404: 'Agent not found.';
|
|
3270
|
+
};
|
|
3271
|
+
type AgentSharedFilesUploadError = AgentSharedFilesUploadErrors[keyof AgentSharedFilesUploadErrors];
|
|
3272
|
+
type AgentSharedFilesUploadResponses = {
|
|
3273
|
+
/**
|
|
3274
|
+
* The request has succeeded.
|
|
3275
|
+
*/
|
|
3276
|
+
200: AgentsFilesSharedFileUploadResponse;
|
|
3277
|
+
};
|
|
3278
|
+
type AgentSharedFilesUploadResponse = AgentSharedFilesUploadResponses[keyof AgentSharedFilesUploadResponses];
|
|
3279
|
+
type AgentSharedFilesDeleteAllData = {
|
|
3280
|
+
body?: never;
|
|
3281
|
+
path: {
|
|
3282
|
+
agentId: CommonUuid;
|
|
3283
|
+
};
|
|
3284
|
+
query?: never;
|
|
3285
|
+
url: '/agents/{agentId}/shared-files/delete-all';
|
|
3286
|
+
};
|
|
3287
|
+
type AgentSharedFilesDeleteAllErrors = {
|
|
3288
|
+
/**
|
|
3289
|
+
* The server cannot find the requested resource.
|
|
3290
|
+
*/
|
|
3291
|
+
404: 'Agent not found.';
|
|
3292
|
+
};
|
|
3293
|
+
type AgentSharedFilesDeleteAllError = AgentSharedFilesDeleteAllErrors[keyof AgentSharedFilesDeleteAllErrors];
|
|
3294
|
+
type AgentSharedFilesDeleteAllResponses = {
|
|
3295
|
+
/**
|
|
3296
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
3297
|
+
*/
|
|
3298
|
+
204: void;
|
|
3299
|
+
};
|
|
3300
|
+
type AgentSharedFilesDeleteAllResponse = AgentSharedFilesDeleteAllResponses[keyof AgentSharedFilesDeleteAllResponses];
|
|
3301
|
+
type AgentSharedFilesDeleteData = {
|
|
3302
|
+
body?: never;
|
|
3303
|
+
path: {
|
|
3304
|
+
agentId: CommonUuid;
|
|
3305
|
+
fileId: CommonUuid;
|
|
3306
|
+
};
|
|
3307
|
+
query?: never;
|
|
3308
|
+
url: '/agents/{agentId}/shared-files/{fileId}';
|
|
3309
|
+
};
|
|
3310
|
+
type AgentSharedFilesDeleteErrors = {
|
|
3311
|
+
/**
|
|
3312
|
+
* The server cannot find the requested resource.
|
|
3313
|
+
*/
|
|
3314
|
+
404: 'File not found.';
|
|
3315
|
+
};
|
|
3316
|
+
type AgentSharedFilesDeleteError = AgentSharedFilesDeleteErrors[keyof AgentSharedFilesDeleteErrors];
|
|
3317
|
+
type AgentSharedFilesDeleteResponses = {
|
|
3318
|
+
/**
|
|
3319
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
3320
|
+
*/
|
|
3321
|
+
204: void;
|
|
3322
|
+
};
|
|
3323
|
+
type AgentSharedFilesDeleteResponse = AgentSharedFilesDeleteResponses[keyof AgentSharedFilesDeleteResponses];
|
|
3324
|
+
type AgentSharedFilesUpdateData = {
|
|
3325
|
+
body: {
|
|
3326
|
+
files: Array<AgentsFilesFilePart>;
|
|
3327
|
+
};
|
|
3328
|
+
path: {
|
|
3329
|
+
agentId: CommonUuid;
|
|
3330
|
+
fileId: CommonUuid;
|
|
3331
|
+
};
|
|
3332
|
+
query?: never;
|
|
3333
|
+
url: '/agents/{agentId}/shared-files/{fileId}';
|
|
3334
|
+
};
|
|
3335
|
+
type AgentSharedFilesUpdateErrors = {
|
|
3336
|
+
/**
|
|
3337
|
+
* The server could not understand the request due to invalid syntax.
|
|
3338
|
+
*/
|
|
3339
|
+
400: 'Invalid file upload request.';
|
|
3340
|
+
/**
|
|
3341
|
+
* The server cannot find the requested resource.
|
|
3342
|
+
*/
|
|
3343
|
+
404: 'File not found.';
|
|
3344
|
+
};
|
|
3345
|
+
type AgentSharedFilesUpdateError = AgentSharedFilesUpdateErrors[keyof AgentSharedFilesUpdateErrors];
|
|
3346
|
+
type AgentSharedFilesUpdateResponses = {
|
|
3347
|
+
/**
|
|
3348
|
+
* The request has succeeded.
|
|
3349
|
+
*/
|
|
3350
|
+
200: AgentsFilesSharedFile;
|
|
3351
|
+
};
|
|
3352
|
+
type AgentSharedFilesUpdateResponse = AgentSharedFilesUpdateResponses[keyof AgentSharedFilesUpdateResponses];
|
|
3353
|
+
type AgentSharedFilesFreezeData = {
|
|
3354
|
+
body: AgentsFilesSetFrozenRequest;
|
|
3355
|
+
path: {
|
|
3356
|
+
agentId: CommonUuid;
|
|
3357
|
+
fileId: CommonUuid;
|
|
3358
|
+
};
|
|
3359
|
+
query?: never;
|
|
3360
|
+
url: '/agents/{agentId}/shared-files/{fileId}/freeze';
|
|
3361
|
+
};
|
|
3362
|
+
type AgentSharedFilesFreezeErrors = {
|
|
3363
|
+
/**
|
|
3364
|
+
* The server cannot find the requested resource.
|
|
3365
|
+
*/
|
|
3366
|
+
404: 'File not found.';
|
|
3367
|
+
};
|
|
3368
|
+
type AgentSharedFilesFreezeError = AgentSharedFilesFreezeErrors[keyof AgentSharedFilesFreezeErrors];
|
|
3369
|
+
type AgentSharedFilesFreezeResponses = {
|
|
3370
|
+
/**
|
|
3371
|
+
* The request has succeeded.
|
|
3372
|
+
*/
|
|
3373
|
+
200: AgentsFilesSharedFile;
|
|
3374
|
+
};
|
|
3375
|
+
type AgentSharedFilesFreezeResponse = AgentSharedFilesFreezeResponses[keyof AgentSharedFilesFreezeResponses];
|
|
3181
3376
|
type AgentWorkflowsListData = {
|
|
3182
3377
|
body?: never;
|
|
3183
3378
|
path: {
|
|
@@ -4086,6 +4281,42 @@ declare const availableToolsList: <ThrowOnError extends boolean = false>(options
|
|
|
4086
4281
|
* Start an execution for the given agent.
|
|
4087
4282
|
*/
|
|
4088
4283
|
declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
|
|
4284
|
+
/**
|
|
4285
|
+
* Get Agent Shared Files
|
|
4286
|
+
*
|
|
4287
|
+
* Get all persistent shared files for an agent. These files persist across executions and are automatically restored when a new execution starts.
|
|
4288
|
+
*/
|
|
4289
|
+
declare const agentSharedFilesGet: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesGetData, ThrowOnError>) => RequestResult<AgentSharedFilesGetResponses, AgentSharedFilesGetErrors, ThrowOnError, "fields">;
|
|
4290
|
+
/**
|
|
4291
|
+
* Upload Agent Shared Files
|
|
4292
|
+
*
|
|
4293
|
+
* Upload one or more files to the agent's persistent shared storage. Files are available across all executions.
|
|
4294
|
+
*/
|
|
4295
|
+
declare const agentSharedFilesUpload: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUploadData, ThrowOnError>) => RequestResult<AgentSharedFilesUploadResponses, AgentSharedFilesUploadErrors, ThrowOnError, "fields">;
|
|
4296
|
+
/**
|
|
4297
|
+
* Delete All Agent Shared Files
|
|
4298
|
+
*
|
|
4299
|
+
* Delete all shared files for an agent.
|
|
4300
|
+
*/
|
|
4301
|
+
declare const agentSharedFilesDeleteAll: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteAllData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteAllResponses, AgentSharedFilesDeleteAllErrors, ThrowOnError, "fields">;
|
|
4302
|
+
/**
|
|
4303
|
+
* Delete Agent Shared File
|
|
4304
|
+
*
|
|
4305
|
+
* Delete a file from the agent's persistent shared storage.
|
|
4306
|
+
*/
|
|
4307
|
+
declare const agentSharedFilesDelete: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteResponses, AgentSharedFilesDeleteErrors, ThrowOnError, "fields">;
|
|
4308
|
+
/**
|
|
4309
|
+
* Update Agent Shared File
|
|
4310
|
+
*
|
|
4311
|
+
* Replace the contents of a shared file. The request body must contain exactly one file.
|
|
4312
|
+
*/
|
|
4313
|
+
declare const agentSharedFilesUpdate: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUpdateData, ThrowOnError>) => RequestResult<AgentSharedFilesUpdateResponses, AgentSharedFilesUpdateErrors, ThrowOnError, "fields">;
|
|
4314
|
+
/**
|
|
4315
|
+
* Set Freeze on Agent Shared File
|
|
4316
|
+
*
|
|
4317
|
+
* Set the frozen status of a shared file. Frozen files are preserved across executions and cannot be overwritten by the agent.
|
|
4318
|
+
*/
|
|
4319
|
+
declare const agentSharedFilesFreeze: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesFreezeData, ThrowOnError>) => RequestResult<AgentSharedFilesFreezeResponses, AgentSharedFilesFreezeErrors, ThrowOnError, "fields">;
|
|
4089
4320
|
/**
|
|
4090
4321
|
* List workflow references
|
|
4091
4322
|
*
|
|
@@ -4195,4 +4426,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
|
|
|
4195
4426
|
*/
|
|
4196
4427
|
declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
|
|
4197
4428
|
|
|
4198
|
-
export { type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesPropertiesVestaProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
|
|
4429
|
+
export { type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesPropertiesVestaProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
|
package/dist/index.d.ts
CHANGED
|
@@ -510,6 +510,7 @@ type AgentsExecutionActivityActionCompletedPayload = {
|
|
|
510
510
|
actionName: AgentsExecutionActionName;
|
|
511
511
|
duration?: number;
|
|
512
512
|
info?: AgentsExecutionActivityActionCompletedInfo;
|
|
513
|
+
display?: AgentsExecutionActivityDisplay;
|
|
513
514
|
};
|
|
514
515
|
type AgentsExecutionActivityActionFailedPayload = {
|
|
515
516
|
activityType: 'action_failed';
|
|
@@ -517,6 +518,7 @@ type AgentsExecutionActivityActionFailedPayload = {
|
|
|
517
518
|
actionName: AgentsExecutionActionName;
|
|
518
519
|
actionId: string;
|
|
519
520
|
duration?: number;
|
|
521
|
+
display?: AgentsExecutionActivityDisplay;
|
|
520
522
|
};
|
|
521
523
|
type AgentsExecutionActivityActionStartedInfo = ({
|
|
522
524
|
actionName: 'nav_to';
|
|
@@ -563,6 +565,13 @@ type AgentsExecutionActivityActionStartedPayload = {
|
|
|
563
565
|
actionName: AgentsExecutionActionName;
|
|
564
566
|
actionId: string;
|
|
565
567
|
info?: AgentsExecutionActivityActionStartedInfo;
|
|
568
|
+
display?: AgentsExecutionActivityDisplay;
|
|
569
|
+
};
|
|
570
|
+
type AgentsExecutionActivityDisplay = {
|
|
571
|
+
turnId?: string;
|
|
572
|
+
groupId?: string;
|
|
573
|
+
summaryText?: string;
|
|
574
|
+
presentationLevel?: AgentsExecutionActivityPresentationLevel;
|
|
566
575
|
};
|
|
567
576
|
type AgentsExecutionActivityFileAddedPayload = {
|
|
568
577
|
activityType: 'file_added';
|
|
@@ -576,6 +585,7 @@ type AgentsExecutionActivityFileAddedPayload = {
|
|
|
576
585
|
type AgentsExecutionActivityGenericPayload = {
|
|
577
586
|
activityType: 'generic';
|
|
578
587
|
message: string;
|
|
588
|
+
display?: AgentsExecutionActivityDisplay;
|
|
579
589
|
};
|
|
580
590
|
type AgentsExecutionActivityPayloadUnion = ({
|
|
581
591
|
activityType: 'terminal';
|
|
@@ -615,9 +625,11 @@ type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
|
|
|
615
625
|
context: string;
|
|
616
626
|
oldScript?: string;
|
|
617
627
|
};
|
|
628
|
+
type AgentsExecutionActivityPresentationLevel = 'primary' | 'secondary' | 'system';
|
|
618
629
|
type AgentsExecutionActivityReasoningPayload = {
|
|
619
630
|
activityType: 'reasoning';
|
|
620
631
|
reasoning: string;
|
|
632
|
+
display?: AgentsExecutionActivityDisplay;
|
|
621
633
|
};
|
|
622
634
|
type AgentsExecutionActivityStatusChangedPayload = {
|
|
623
635
|
activityType: 'status_changed';
|
|
@@ -1248,6 +1260,42 @@ type AgentsFilesFile = {
|
|
|
1248
1260
|
signedUrl: string;
|
|
1249
1261
|
};
|
|
1250
1262
|
type AgentsFilesFilePart = Blob | File;
|
|
1263
|
+
/**
|
|
1264
|
+
* Request to set the frozen status of a shared file
|
|
1265
|
+
*/
|
|
1266
|
+
type AgentsFilesSetFrozenRequest = {
|
|
1267
|
+
isFrozen: boolean;
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* A file in the agent's persistent shared storage
|
|
1271
|
+
*/
|
|
1272
|
+
type AgentsFilesSharedFile = {
|
|
1273
|
+
id: CommonUuid;
|
|
1274
|
+
agentId: CommonUuid;
|
|
1275
|
+
filePath: string;
|
|
1276
|
+
fileName: string;
|
|
1277
|
+
fileSize: number;
|
|
1278
|
+
mimeType?: string;
|
|
1279
|
+
createdAt: string;
|
|
1280
|
+
updatedAt: string;
|
|
1281
|
+
version: number;
|
|
1282
|
+
isFrozen: boolean;
|
|
1283
|
+
lastModifiedByExecutionId?: CommonUuid;
|
|
1284
|
+
downloadUrl: string;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Response after uploading shared files
|
|
1288
|
+
*/
|
|
1289
|
+
type AgentsFilesSharedFileUploadResponse = {
|
|
1290
|
+
files: Array<AgentsFilesSharedFile>;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* Response containing all shared files for an agent
|
|
1294
|
+
*/
|
|
1295
|
+
type AgentsFilesSharedFilesResponse = {
|
|
1296
|
+
files: Array<AgentsFilesSharedFile>;
|
|
1297
|
+
totalSize: number;
|
|
1298
|
+
};
|
|
1251
1299
|
type AgentsFilesTempFile = {
|
|
1252
1300
|
id: CommonUuid;
|
|
1253
1301
|
name: string;
|
|
@@ -3178,6 +3226,153 @@ type AgentExecutePostResponses = {
|
|
|
3178
3226
|
202: AgentsAgentExecuteAgentResponse;
|
|
3179
3227
|
};
|
|
3180
3228
|
type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
|
|
3229
|
+
type AgentSharedFilesGetData = {
|
|
3230
|
+
body?: never;
|
|
3231
|
+
path: {
|
|
3232
|
+
agentId: CommonUuid;
|
|
3233
|
+
};
|
|
3234
|
+
query?: never;
|
|
3235
|
+
url: '/agents/{agentId}/shared-files';
|
|
3236
|
+
};
|
|
3237
|
+
type AgentSharedFilesGetErrors = {
|
|
3238
|
+
/**
|
|
3239
|
+
* The server cannot find the requested resource.
|
|
3240
|
+
*/
|
|
3241
|
+
404: 'Agent not found.';
|
|
3242
|
+
};
|
|
3243
|
+
type AgentSharedFilesGetError = AgentSharedFilesGetErrors[keyof AgentSharedFilesGetErrors];
|
|
3244
|
+
type AgentSharedFilesGetResponses = {
|
|
3245
|
+
/**
|
|
3246
|
+
* The request has succeeded.
|
|
3247
|
+
*/
|
|
3248
|
+
200: AgentsFilesSharedFilesResponse;
|
|
3249
|
+
};
|
|
3250
|
+
type AgentSharedFilesGetResponse = AgentSharedFilesGetResponses[keyof AgentSharedFilesGetResponses];
|
|
3251
|
+
type AgentSharedFilesUploadData = {
|
|
3252
|
+
body: {
|
|
3253
|
+
files: Array<AgentsFilesFilePart>;
|
|
3254
|
+
};
|
|
3255
|
+
path: {
|
|
3256
|
+
agentId: CommonUuid;
|
|
3257
|
+
};
|
|
3258
|
+
query?: never;
|
|
3259
|
+
url: '/agents/{agentId}/shared-files';
|
|
3260
|
+
};
|
|
3261
|
+
type AgentSharedFilesUploadErrors = {
|
|
3262
|
+
/**
|
|
3263
|
+
* The server could not understand the request due to invalid syntax.
|
|
3264
|
+
*/
|
|
3265
|
+
400: 'Invalid file upload request.';
|
|
3266
|
+
/**
|
|
3267
|
+
* The server cannot find the requested resource.
|
|
3268
|
+
*/
|
|
3269
|
+
404: 'Agent not found.';
|
|
3270
|
+
};
|
|
3271
|
+
type AgentSharedFilesUploadError = AgentSharedFilesUploadErrors[keyof AgentSharedFilesUploadErrors];
|
|
3272
|
+
type AgentSharedFilesUploadResponses = {
|
|
3273
|
+
/**
|
|
3274
|
+
* The request has succeeded.
|
|
3275
|
+
*/
|
|
3276
|
+
200: AgentsFilesSharedFileUploadResponse;
|
|
3277
|
+
};
|
|
3278
|
+
type AgentSharedFilesUploadResponse = AgentSharedFilesUploadResponses[keyof AgentSharedFilesUploadResponses];
|
|
3279
|
+
type AgentSharedFilesDeleteAllData = {
|
|
3280
|
+
body?: never;
|
|
3281
|
+
path: {
|
|
3282
|
+
agentId: CommonUuid;
|
|
3283
|
+
};
|
|
3284
|
+
query?: never;
|
|
3285
|
+
url: '/agents/{agentId}/shared-files/delete-all';
|
|
3286
|
+
};
|
|
3287
|
+
type AgentSharedFilesDeleteAllErrors = {
|
|
3288
|
+
/**
|
|
3289
|
+
* The server cannot find the requested resource.
|
|
3290
|
+
*/
|
|
3291
|
+
404: 'Agent not found.';
|
|
3292
|
+
};
|
|
3293
|
+
type AgentSharedFilesDeleteAllError = AgentSharedFilesDeleteAllErrors[keyof AgentSharedFilesDeleteAllErrors];
|
|
3294
|
+
type AgentSharedFilesDeleteAllResponses = {
|
|
3295
|
+
/**
|
|
3296
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
3297
|
+
*/
|
|
3298
|
+
204: void;
|
|
3299
|
+
};
|
|
3300
|
+
type AgentSharedFilesDeleteAllResponse = AgentSharedFilesDeleteAllResponses[keyof AgentSharedFilesDeleteAllResponses];
|
|
3301
|
+
type AgentSharedFilesDeleteData = {
|
|
3302
|
+
body?: never;
|
|
3303
|
+
path: {
|
|
3304
|
+
agentId: CommonUuid;
|
|
3305
|
+
fileId: CommonUuid;
|
|
3306
|
+
};
|
|
3307
|
+
query?: never;
|
|
3308
|
+
url: '/agents/{agentId}/shared-files/{fileId}';
|
|
3309
|
+
};
|
|
3310
|
+
type AgentSharedFilesDeleteErrors = {
|
|
3311
|
+
/**
|
|
3312
|
+
* The server cannot find the requested resource.
|
|
3313
|
+
*/
|
|
3314
|
+
404: 'File not found.';
|
|
3315
|
+
};
|
|
3316
|
+
type AgentSharedFilesDeleteError = AgentSharedFilesDeleteErrors[keyof AgentSharedFilesDeleteErrors];
|
|
3317
|
+
type AgentSharedFilesDeleteResponses = {
|
|
3318
|
+
/**
|
|
3319
|
+
* There is no content to send for this request, but the headers may be useful.
|
|
3320
|
+
*/
|
|
3321
|
+
204: void;
|
|
3322
|
+
};
|
|
3323
|
+
type AgentSharedFilesDeleteResponse = AgentSharedFilesDeleteResponses[keyof AgentSharedFilesDeleteResponses];
|
|
3324
|
+
type AgentSharedFilesUpdateData = {
|
|
3325
|
+
body: {
|
|
3326
|
+
files: Array<AgentsFilesFilePart>;
|
|
3327
|
+
};
|
|
3328
|
+
path: {
|
|
3329
|
+
agentId: CommonUuid;
|
|
3330
|
+
fileId: CommonUuid;
|
|
3331
|
+
};
|
|
3332
|
+
query?: never;
|
|
3333
|
+
url: '/agents/{agentId}/shared-files/{fileId}';
|
|
3334
|
+
};
|
|
3335
|
+
type AgentSharedFilesUpdateErrors = {
|
|
3336
|
+
/**
|
|
3337
|
+
* The server could not understand the request due to invalid syntax.
|
|
3338
|
+
*/
|
|
3339
|
+
400: 'Invalid file upload request.';
|
|
3340
|
+
/**
|
|
3341
|
+
* The server cannot find the requested resource.
|
|
3342
|
+
*/
|
|
3343
|
+
404: 'File not found.';
|
|
3344
|
+
};
|
|
3345
|
+
type AgentSharedFilesUpdateError = AgentSharedFilesUpdateErrors[keyof AgentSharedFilesUpdateErrors];
|
|
3346
|
+
type AgentSharedFilesUpdateResponses = {
|
|
3347
|
+
/**
|
|
3348
|
+
* The request has succeeded.
|
|
3349
|
+
*/
|
|
3350
|
+
200: AgentsFilesSharedFile;
|
|
3351
|
+
};
|
|
3352
|
+
type AgentSharedFilesUpdateResponse = AgentSharedFilesUpdateResponses[keyof AgentSharedFilesUpdateResponses];
|
|
3353
|
+
type AgentSharedFilesFreezeData = {
|
|
3354
|
+
body: AgentsFilesSetFrozenRequest;
|
|
3355
|
+
path: {
|
|
3356
|
+
agentId: CommonUuid;
|
|
3357
|
+
fileId: CommonUuid;
|
|
3358
|
+
};
|
|
3359
|
+
query?: never;
|
|
3360
|
+
url: '/agents/{agentId}/shared-files/{fileId}/freeze';
|
|
3361
|
+
};
|
|
3362
|
+
type AgentSharedFilesFreezeErrors = {
|
|
3363
|
+
/**
|
|
3364
|
+
* The server cannot find the requested resource.
|
|
3365
|
+
*/
|
|
3366
|
+
404: 'File not found.';
|
|
3367
|
+
};
|
|
3368
|
+
type AgentSharedFilesFreezeError = AgentSharedFilesFreezeErrors[keyof AgentSharedFilesFreezeErrors];
|
|
3369
|
+
type AgentSharedFilesFreezeResponses = {
|
|
3370
|
+
/**
|
|
3371
|
+
* The request has succeeded.
|
|
3372
|
+
*/
|
|
3373
|
+
200: AgentsFilesSharedFile;
|
|
3374
|
+
};
|
|
3375
|
+
type AgentSharedFilesFreezeResponse = AgentSharedFilesFreezeResponses[keyof AgentSharedFilesFreezeResponses];
|
|
3181
3376
|
type AgentWorkflowsListData = {
|
|
3182
3377
|
body?: never;
|
|
3183
3378
|
path: {
|
|
@@ -4086,6 +4281,42 @@ declare const availableToolsList: <ThrowOnError extends boolean = false>(options
|
|
|
4086
4281
|
* Start an execution for the given agent.
|
|
4087
4282
|
*/
|
|
4088
4283
|
declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
|
|
4284
|
+
/**
|
|
4285
|
+
* Get Agent Shared Files
|
|
4286
|
+
*
|
|
4287
|
+
* Get all persistent shared files for an agent. These files persist across executions and are automatically restored when a new execution starts.
|
|
4288
|
+
*/
|
|
4289
|
+
declare const agentSharedFilesGet: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesGetData, ThrowOnError>) => RequestResult<AgentSharedFilesGetResponses, AgentSharedFilesGetErrors, ThrowOnError, "fields">;
|
|
4290
|
+
/**
|
|
4291
|
+
* Upload Agent Shared Files
|
|
4292
|
+
*
|
|
4293
|
+
* Upload one or more files to the agent's persistent shared storage. Files are available across all executions.
|
|
4294
|
+
*/
|
|
4295
|
+
declare const agentSharedFilesUpload: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUploadData, ThrowOnError>) => RequestResult<AgentSharedFilesUploadResponses, AgentSharedFilesUploadErrors, ThrowOnError, "fields">;
|
|
4296
|
+
/**
|
|
4297
|
+
* Delete All Agent Shared Files
|
|
4298
|
+
*
|
|
4299
|
+
* Delete all shared files for an agent.
|
|
4300
|
+
*/
|
|
4301
|
+
declare const agentSharedFilesDeleteAll: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteAllData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteAllResponses, AgentSharedFilesDeleteAllErrors, ThrowOnError, "fields">;
|
|
4302
|
+
/**
|
|
4303
|
+
* Delete Agent Shared File
|
|
4304
|
+
*
|
|
4305
|
+
* Delete a file from the agent's persistent shared storage.
|
|
4306
|
+
*/
|
|
4307
|
+
declare const agentSharedFilesDelete: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesDeleteData, ThrowOnError>) => RequestResult<AgentSharedFilesDeleteResponses, AgentSharedFilesDeleteErrors, ThrowOnError, "fields">;
|
|
4308
|
+
/**
|
|
4309
|
+
* Update Agent Shared File
|
|
4310
|
+
*
|
|
4311
|
+
* Replace the contents of a shared file. The request body must contain exactly one file.
|
|
4312
|
+
*/
|
|
4313
|
+
declare const agentSharedFilesUpdate: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesUpdateData, ThrowOnError>) => RequestResult<AgentSharedFilesUpdateResponses, AgentSharedFilesUpdateErrors, ThrowOnError, "fields">;
|
|
4314
|
+
/**
|
|
4315
|
+
* Set Freeze on Agent Shared File
|
|
4316
|
+
*
|
|
4317
|
+
* Set the frozen status of a shared file. Frozen files are preserved across executions and cannot be overwritten by the agent.
|
|
4318
|
+
*/
|
|
4319
|
+
declare const agentSharedFilesFreeze: <ThrowOnError extends boolean = false>(options: Options<AgentSharedFilesFreezeData, ThrowOnError>) => RequestResult<AgentSharedFilesFreezeResponses, AgentSharedFilesFreezeErrors, ThrowOnError, "fields">;
|
|
4089
4320
|
/**
|
|
4090
4321
|
* List workflow references
|
|
4091
4322
|
*
|
|
@@ -4195,4 +4426,4 @@ declare const schemaValidationValidate: <ThrowOnError extends boolean = false>(o
|
|
|
4195
4426
|
*/
|
|
4196
4427
|
declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
|
|
4197
4428
|
|
|
4198
|
-
export { type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesPropertiesVestaProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
|
|
4429
|
+
export { type AgentExecutePostData, type AgentExecutePostError, type AgentExecutePostErrors, type AgentExecutePostResponse, type AgentExecutePostResponses, type AgentListData, type AgentListError, type AgentListErrors, type AgentListResponse, type AgentListResponses, type AgentProfileClearBrowserCacheData, type AgentProfileClearBrowserCacheError, type AgentProfileClearBrowserCacheErrors, type AgentProfileClearBrowserCacheResponse, type AgentProfileClearBrowserCacheResponses, type AgentProfileDeleteData, type AgentProfileDeleteError, type AgentProfileDeleteErrors, type AgentProfileDeleteResponse, type AgentProfileDeleteResponses, type AgentProfileDuplicateData, type AgentProfileDuplicateError, type AgentProfileDuplicateErrors, type AgentProfileDuplicateResponse, type AgentProfileDuplicateResponses, type AgentProfileGetData, type AgentProfileGetError, type AgentProfileGetErrors, type AgentProfileGetResponse, type AgentProfileGetResponses, type AgentProfilePoolDeleteData, type AgentProfilePoolDeleteError, type AgentProfilePoolDeleteErrors, type AgentProfilePoolDeleteResponse, type AgentProfilePoolDeleteResponses, type AgentProfilePoolGetData, type AgentProfilePoolGetError, type AgentProfilePoolGetErrors, type AgentProfilePoolGetResponse, type AgentProfilePoolGetResponses, type AgentProfilePoolMembersAddData, type AgentProfilePoolMembersAddError, type AgentProfilePoolMembersAddErrors, type AgentProfilePoolMembersAddResponse, type AgentProfilePoolMembersAddResponses, type AgentProfilePoolMembersListData, type AgentProfilePoolMembersListError, type AgentProfilePoolMembersListErrors, type AgentProfilePoolMembersListResponse, type AgentProfilePoolMembersListResponses, type AgentProfilePoolMembersRemoveData, type AgentProfilePoolMembersRemoveError, type AgentProfilePoolMembersRemoveErrors, type AgentProfilePoolMembersRemoveResponse, type AgentProfilePoolMembersRemoveResponses, type AgentProfilePoolUpdateData, type AgentProfilePoolUpdateError, type AgentProfilePoolUpdateErrors, type AgentProfilePoolUpdateResponse, type AgentProfilePoolUpdateResponses, type AgentProfilePoolsCreateData, type AgentProfilePoolsCreateError, type AgentProfilePoolsCreateErrors, type AgentProfilePoolsCreateResponse, type AgentProfilePoolsCreateResponses, type AgentProfilePoolsListData, type AgentProfilePoolsListError, type AgentProfilePoolsListErrors, type AgentProfilePoolsListResponse, type AgentProfilePoolsListResponses, type AgentProfileUpdateData, type AgentProfileUpdateError, type AgentProfileUpdateErrors, type AgentProfileUpdateResponse, type AgentProfileUpdateResponses, type AgentProfilesCreateData, type AgentProfilesCreateError, type AgentProfilesCreateErrors, type AgentProfilesCreateResponse, type AgentProfilesCreateResponses, type AgentProfilesListData, type AgentProfilesListError, type AgentProfilesListErrors, type AgentProfilesListResponse, type AgentProfilesListResponses, type AgentSharedFilesDeleteAllData, type AgentSharedFilesDeleteAllError, type AgentSharedFilesDeleteAllErrors, type AgentSharedFilesDeleteAllResponse, type AgentSharedFilesDeleteAllResponses, type AgentSharedFilesDeleteData, type AgentSharedFilesDeleteError, type AgentSharedFilesDeleteErrors, type AgentSharedFilesDeleteResponse, type AgentSharedFilesDeleteResponses, type AgentSharedFilesFreezeData, type AgentSharedFilesFreezeError, type AgentSharedFilesFreezeErrors, type AgentSharedFilesFreezeResponse, type AgentSharedFilesFreezeResponses, type AgentSharedFilesGetData, type AgentSharedFilesGetError, type AgentSharedFilesGetErrors, type AgentSharedFilesGetResponse, type AgentSharedFilesGetResponses, type AgentSharedFilesUpdateData, type AgentSharedFilesUpdateError, type AgentSharedFilesUpdateErrors, type AgentSharedFilesUpdateResponse, type AgentSharedFilesUpdateResponses, type AgentSharedFilesUploadData, type AgentSharedFilesUploadError, type AgentSharedFilesUploadErrors, type AgentSharedFilesUploadResponse, type AgentSharedFilesUploadResponses, type AgentWorkflowsCreateData, type AgentWorkflowsCreateError, type AgentWorkflowsCreateErrors, type AgentWorkflowsCreateResponse, type AgentWorkflowsCreateResponses, type AgentWorkflowsExecuteData, type AgentWorkflowsExecuteError, type AgentWorkflowsExecuteErrors, type AgentWorkflowsExecuteResponse, type AgentWorkflowsExecuteResponses, type AgentWorkflowsGetData, type AgentWorkflowsGetError, type AgentWorkflowsGetErrors, type AgentWorkflowsGetResponse, type AgentWorkflowsGetResponses, type AgentWorkflowsListData, type AgentWorkflowsListError, type AgentWorkflowsListErrors, type AgentWorkflowsListResponse, type AgentWorkflowsListResponses, type AgentWorkflowsPublishData, type AgentWorkflowsPublishError, type AgentWorkflowsPublishErrors, type AgentWorkflowsPublishResponse, type AgentWorkflowsPublishResponses, type AgentWorkflowsSyncExecutionData, type AgentWorkflowsSyncExecutionError, type AgentWorkflowsSyncExecutionErrors, type AgentWorkflowsSyncExecutionResponse, type AgentWorkflowsSyncExecutionResponses, type AgentsAgentAvailableTool, type AgentsAgentAvailableToolsResponse, type AgentsAgentBase, type AgentsAgentExecuteAgentRequest, type AgentsAgentExecuteAgentResponse, type AgentsAgentSearch, type AgentsAgentSortField, type AgentsContextUserContextResponse, type AgentsContextUserOrganization, type AgentsDocsSearchDocsRequest, type AgentsDocsSearchDocsResponse, type AgentsDocsSearchResult, type AgentsExecutionActionName, type AgentsExecutionActivity, type AgentsExecutionActivityActionCompletedInfo, type AgentsExecutionActivityActionCompletedPayload, type AgentsExecutionActivityActionFailedPayload, type AgentsExecutionActivityActionStartedInfo, type AgentsExecutionActivityActionStartedPayload, type AgentsExecutionActivityDisplay, type AgentsExecutionActivityFileAddedPayload, type AgentsExecutionActivityGenericPayload, type AgentsExecutionActivityPayloadUnion, type AgentsExecutionActivityPlaywrightScriptGeneratedPayload, type AgentsExecutionActivityPresentationLevel, type AgentsExecutionActivityReasoningPayload, type AgentsExecutionActivityStatusChangedPayload, type AgentsExecutionActivityStepCompletedPayload, type AgentsExecutionActivityStepStartedPayload, type AgentsExecutionActivityTransitionedNodePayload, type AgentsExecutionActivityUserMessageReceivedPayload, type AgentsExecutionActivityWorkflowUpdatedPayload, type AgentsExecutionAgentQueryContextCompletedDetails, type AgentsExecutionAgentQueryContextStartedDetails, type AgentsExecutionApiKeyRef, type AgentsExecutionApiTriggerContext, type AgentsExecutionAskUserQuestion, type AgentsExecutionAwaitingConfirmationPayload, type AgentsExecutionBrowserRunCodeCompletedDetails, type AgentsExecutionBrowserRunCodeStartedDetails, type AgentsExecutionCancelReason, type AgentsExecutionCancelledPayload, type AgentsExecutionComment, type AgentsExecutionCompletedPayload, type AgentsExecutionElementFileUploadCompletedDetails, type AgentsExecutionExecutionResult, type AgentsExecutionExtApiCallCompletedDetails, type AgentsExecutionExtGetMailCompletedDetails, type AgentsExecutionFailedPayload, type AgentsExecutionFileListCompletedDetails, type AgentsExecutionFileReadCompletedDetails, type AgentsExecutionFileStageCompletedDetails, type AgentsExecutionHumanLabel, type AgentsExecutionListItem, type AgentsExecutionLlmCallPurpose, type AgentsExecutionLlmCallStartedDetails, type AgentsExecutionNavToCompletedDetails, type AgentsExecutionNavToStartedDetails, type AgentsExecutionNodeDetails, type AgentsExecutionNodeOutputItem, type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, type AgentsExecutionPausedPayload, type AgentsExecutionQuestionItem, type AgentsExecutionQuestionOption, type AgentsExecutionRulesDetails, type AgentsExecutionScheduleRef, type AgentsExecutionScheduleTriggerContext, type AgentsExecutionScratchpadReadCompletedDetails, type AgentsExecutionScratchpadReadStartedDetails, type AgentsExecutionScratchpadWriteCompletedDetails, type AgentsExecutionScratchpadWriteStartedDetails, type AgentsExecutionScriptEvalCompletedDetails, type AgentsExecutionScriptEvalStartedDetails, type AgentsExecutionScriptHybridPlaywrightCompletedDetails, type AgentsExecutionScriptHybridPlaywrightStartedDetails, type AgentsExecutionScriptPadRunFunctionCompletedDetails, type AgentsExecutionScriptPlaywrightCompletedDetails, type AgentsExecutionScriptPlaywrightStartedDetails, type AgentsExecutionScriptpadReadCompletedDetails, type AgentsExecutionScriptpadReadStartedDetails, type AgentsExecutionScriptpadRunFunctionStartedDetails, type AgentsExecutionScriptpadSearchReplaceCompletedDetails, type AgentsExecutionScriptpadSearchReplaceStartedDetails, type AgentsExecutionScriptpadWriteCompletedDetails, type AgentsExecutionSdkBashCompletedDetails, type AgentsExecutionSdkBashStartedDetails, type AgentsExecutionSdkEditCompletedDetails, type AgentsExecutionSdkEditStartedDetails, type AgentsExecutionSdkGlobCompletedDetails, type AgentsExecutionSdkGlobStartedDetails, type AgentsExecutionSdkGrepCompletedDetails, type AgentsExecutionSdkGrepStartedDetails, type AgentsExecutionSdkReadCompletedDetails, type AgentsExecutionSdkReadStartedDetails, type AgentsExecutionSdkWriteCompletedDetails, type AgentsExecutionSdkWriteStartedDetails, type AgentsExecutionSearchAgentId, type AgentsExecutionSearchCreatedAfter, type AgentsExecutionSearchCreatedBefore, type AgentsExecutionSearchExecutionId, type AgentsExecutionSearchHumanLabels, type AgentsExecutionSearchMetadataKey, type AgentsExecutionSearchMetadataValue, type AgentsExecutionSearchOutcomeLabel, type AgentsExecutionSearchStatus, type AgentsExecutionSearchWorkflowVersion, type AgentsExecutionSortField, type AgentsExecutionStatus, type AgentsExecutionTerminalPayload, type AgentsExecutionTransitionDetails, type AgentsExecutionTriggerContext, type AgentsExecutionTriggerRunner, type AgentsExecutionUiTriggerContext, type AgentsExecutionUpdateExecutionStatusRequest, type AgentsExecutionUpdateType, type AgentsExecutionUpdateableStatus, type AgentsExecutionUserMessagesAddTextBody, type AgentsExecutionUtilGetDatetimeCompletedDetails, type AgentsExecutionUtilGetDatetimeStartedDetails, type AgentsExecutionWorkflowUpdate, type AgentsFilesFile, type AgentsFilesFilePart, type AgentsFilesSetFrozenRequest, type AgentsFilesSharedFile, type AgentsFilesSharedFileUploadResponse, type AgentsFilesSharedFilesResponse, type AgentsFilesTempFile, type AgentsFilesTempFilesResponse, type AgentsGraphModelsAgentGraph, type AgentsGraphModelsNodesNode, type AgentsGraphModelsNodesNodePropertiesUnion, type AgentsGraphModelsNodesNodeType, type AgentsGraphModelsNodesPosition, type AgentsGraphModelsNodesPropertiesApiMethod, type AgentsGraphModelsNodesPropertiesApiProperties, type AgentsGraphModelsNodesPropertiesIrisPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesIrisProperties, type AgentsGraphModelsNodesPropertiesOutcomeString, type AgentsGraphModelsNodesPropertiesOutputProperties, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, type AgentsGraphModelsNodesPropertiesPlaywrightScriptProperties, type AgentsGraphModelsNodesPropertiesUrlProperties, type AgentsGraphModelsNodesPropertiesVestaProperties, type AgentsGraphModelsSettings, type AgentsGraphModelsStickyNote, type AgentsGraphModelsTransitionsPropertiesIrisProperties, type AgentsGraphModelsTransitionsPropertiesOutcomeSuccessProperties, type AgentsGraphModelsTransitionsPropertiesSelectorProperties, type AgentsGraphModelsTransitionsTransition, type AgentsGraphModelsTransitionsTransitionPropertiesUnion, type AgentsGraphModelsTransitionsTransitionType, type AgentsGraphModelsTypeInputMethod, type AgentsProfileAddProfilesToPoolRequest, type AgentsProfileAgentProfile, type AgentsProfileAgentProfilePool, type AgentsProfileAgentProfilePoolMember, type AgentsProfileCookie, type AgentsProfileCountryCode, type AgentsProfileCreateAgentProfilePoolRequest, type AgentsProfileCreateAgentProfileRequest, type AgentsProfileCredential, type AgentsProfileCredentialUpdate, type AgentsProfileCustomProxyConfigInput, type AgentsProfileCustomProxyConfigOutput, type AgentsProfileDuplicateAgentProfileRequest, type AgentsProfileOperatingSystem, type AgentsProfilePoolSearch, type AgentsProfilePoolSortField, type AgentsProfileProxyMode, type AgentsProfileProxyType, type AgentsProfileRemoveProfilesFromPoolRequest, type AgentsProfileSameSite, type AgentsProfileSearch, type AgentsProfileSelectionStrategy, type AgentsProfileSortField, type AgentsProfileUpdateAgentProfilePoolRequest, type AgentsProfileUpdateAgentProfileRequest, type AgentsSchemaValidateSchemaRequest, type AgentsSchemaValidateSchemaResponse, type AgentsWorkflowBrowserProvider, type AgentsWorkflowBrowserTemplateConfig, type AgentsWorkflowCreateWorkflowRequest, type AgentsWorkflowCreateWorkflowResponse, type AgentsWorkflowEnvironmentTemplate, type AgentsWorkflowEnvironmentType, type AgentsWorkflowExecuteWorkflowRequest, type AgentsWorkflowExecuteWorkflowResponse, type AgentsWorkflowOsProvider, type AgentsWorkflowOsTemplateConfig, type AgentsWorkflowPublishWorkflowResponse, type AgentsWorkflowSyncExecutionRequest, type AgentsWorkflowSyncExecutionResponse, type AgentsWorkflowWorkflowRef, type AgentsWorkflowWorkflowSnapshot, type AvailableToolsListData, type AvailableToolsListError, type AvailableToolsListErrors, type AvailableToolsListResponse, type AvailableToolsListResponses, type ClientOptions, type CommonBadRequestErrorBody, type CommonError, type CommonForbiddenErrorBody, type CommonInternalServerErrorBody, type CommonNotFoundErrorBody, type CommonOsError, type CommonPaginationPage, type CommonPaginationPageSize, type CommonSortDirection, type CommonUnauthorizedErrorBody, type CommonUuid, type ContextGetData, type ContextGetError, type ContextGetErrors, type ContextGetResponse, type ContextGetResponses, type CreateClientConfig, type DocsSearchSearchData, type DocsSearchSearchError, type DocsSearchSearchErrors, type DocsSearchSearchResponse, type DocsSearchSearchResponses, type ExecutionActivitiesGetData, type ExecutionActivitiesGetError, type ExecutionActivitiesGetErrors, type ExecutionActivitiesGetResponse, type ExecutionActivitiesGetResponses, type ExecutionContextFilesGetData, type ExecutionContextFilesGetError, type ExecutionContextFilesGetErrors, type ExecutionContextFilesGetResponse, type ExecutionContextFilesGetResponses, type ExecutionContextFilesUploadData, type ExecutionContextFilesUploadError, type ExecutionContextFilesUploadErrors, type ExecutionContextFilesUploadResponse, type ExecutionContextFilesUploadResponses, type ExecutionGetData, type ExecutionGetError, type ExecutionGetErrors, type ExecutionGetResponse, type ExecutionGetResponses, type ExecutionRecordingRedirectData, type ExecutionRecordingRedirectError, type ExecutionRecordingRedirectErrors, type ExecutionStatusUpdateData, type ExecutionStatusUpdateError, type ExecutionStatusUpdateErrors, type ExecutionStatusUpdateResponse, type ExecutionStatusUpdateResponses, type ExecutionUserMessagesAddData, type ExecutionUserMessagesAddError, type ExecutionUserMessagesAddErrors, type ExecutionUserMessagesAddResponse, type ExecutionUserMessagesAddResponses, type ExecutionsListData, type ExecutionsListError, type ExecutionsListErrors, type ExecutionsListResponse, type ExecutionsListResponses, type Options, type SchemaValidationValidateData, type SchemaValidationValidateError, type SchemaValidationValidateErrors, type SchemaValidationValidateResponse, type SchemaValidationValidateResponses, type TempFilesStageData, type TempFilesStageError, type TempFilesStageErrors, type TempFilesStageResponse, type TempFilesStageResponses, type Version, agentExecutePost, agentList, agentProfileClearBrowserCache, agentProfileDelete, agentProfileDuplicate, agentProfileGet, agentProfilePoolDelete, agentProfilePoolGet, agentProfilePoolMembersAdd, agentProfilePoolMembersList, agentProfilePoolMembersRemove, agentProfilePoolUpdate, agentProfilePoolsCreate, agentProfilePoolsList, agentProfileUpdate, agentProfilesCreate, agentProfilesList, agentSharedFilesDelete, agentSharedFilesDeleteAll, agentSharedFilesFreeze, agentSharedFilesGet, agentSharedFilesUpdate, agentSharedFilesUpload, agentWorkflowsCreate, agentWorkflowsExecute, agentWorkflowsGet, agentWorkflowsList, agentWorkflowsPublish, agentWorkflowsSyncExecution, availableToolsList, client, contextGet, docsSearchSearch, executionActivitiesGet, executionContextFilesGet, executionContextFilesUpload, executionGet, executionRecordingRedirect, executionStatusUpdate, executionUserMessagesAdd, executionsList, schemaValidationValidate, tempFilesStage };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
'use strict';var V=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var
|
|
1
|
+
'use strict';var V=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var R={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(n=>V(t,r,n)):V(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:n,sseDefaultRetryDelay:c,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:p,url:g,...o})=>{let f,O=p??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=c??3e3,E=0,S=o.signal??new AbortController().signal;for(;!S.aborted;){E++;let C=o.headers instanceof Headers?o.headers:new Headers(o.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let m={redirect:"follow",...o,body:o.serializedBody,headers:C,signal:S},P=new Request(g,m);e&&(P=await e(g,m));let u=await(o.fetch??globalThis.fetch)(P);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let h=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",M=()=>{try{h.cancel();}catch{}};S.addEventListener("abort",M);try{for(;;){let{done:ee,value:te}=await h.read();if(ee)break;T+=te,T=T.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let
|
|
3
|
+
`);let K=T.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),G=[],
|
|
7
|
-
`);try{R=JSON.parse(P),B=!0;}catch{R=P;}}B&&(n&&await n(R),s&&(R=await s(R))),r?.({data:R,event:F,id:A,retry:d}),G.length&&(yield R);}}}finally{m.removeEventListener("abort",K),y.releaseLock();}break}catch(w){if(t?.(w),a!==void 0&&E>=a)break;let h=Math.min(d*2**(E-1),i??3e4);await C(h);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let i=(e?n:n.map(l=>encodeURIComponent(l))).join(ne(s));switch(s){case "label":return `.${i}`;case "matrix":return `;${r}=${i}`;case "simple":return i;default:return `${r}=${i}`}}let p=se(s),a=n.map(i=>s==="label"||s==="simple"?e?i:encodeURIComponent(i):S({allowReserved:e,name:r,value:i})).join(p);return s==="label"||s==="matrix"?p+a:a},S=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},v=({allowReserved:e,explode:t,name:r,style:s,value:n,valueOnly:p})=>{if(n instanceof Date)return p?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let l=[];Object.entries(n).forEach(([o,A])=>{l=[...l,o,e?A:encodeURIComponent(A)];});let g=l.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let a=ie(s),i=Object.entries(n).map(([l,g])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${l}]`:l,value:g})).join(a);return s==="label"||s==="matrix"?a+i:i};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let p=false,a=n.substring(1,n.length-1),i="simple";a.endsWith("*")&&(p=true,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),i="label"):a.startsWith(";")&&(a=a.substring(1),i="matrix");let l=e[a];if(l==null)continue;if(Array.isArray(l)){r=r.replace(n,U({explode:p,name:a,style:i,value:l}));continue}if(typeof l=="object"){r=r.replace(n,v({explode:p,name:a,style:i,value:l,valueOnly:true}));continue}if(i==="matrix"){r=r.replace(n,`;${S({name:a,value:l})}`);continue}let g=encodeURIComponent(i==="label"?`.${l}`:l);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let p=n.startsWith("/")?n:`/${n}`,a=(e??"")+p;t&&(a=le({path:t,url:a}));let i=r?s(r):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(a+=`?${i}`),a};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let p in s){let a=s[p];if(a==null)continue;let i=e[p]||t;if(Array.isArray(a)){let l=U({allowReserved:i.allowReserved,explode:true,name:p,style:"form",value:a,...i.array});l&&n.push(l);}else if(typeof a=="object"){let l=v({allowReserved:i.allowReserved,explode:true,name:p,style:"deepObject",value:a,...i.object});l&&n.push(l);}else {let l=S({allowReserved:i.allowReserved,name:p,value:a});l&&n.push(l);}}return n.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},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 n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},M=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},L=(...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[n,p]of s)if(p===null)t.delete(n);else if(Array.isArray(p))for(let a of p)t.append(n,a);else p!==void 0&&t.set(n,typeof p=="object"?JSON.stringify(p):p);}return t},D=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 D,request:new D,response:new D}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},T=(e={})=>({...q,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=I(T(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),p=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let A=M(o);return {opts:o,url:A}},a=async g=>{let{opts:o,url:A}=await p(g),C={redirect:"follow",...o,body:$(o)},x=new Request(A,C);for(let u of n.request.fns)u&&(x=await u(x,o));let k=o.fetch,d;try{d=await k(x);}catch(u){let f=u;for(let y of n.error.fns)y&&(f=await y(u,void 0,x,o));if(f=f||{},o.throwOnError)throw f;return o.responseStyle==="data"?void 0:{error:f,request:x,response:void 0}}for(let u of n.response.fns)u&&(d=await u(d,x,o));let E={request:x,response:d};if(d.ok){let u=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let y;switch(u){case "arrayBuffer":case "blob":case "text":y=await d[u]();break;case "formData":y=new FormData;break;case "stream":y=d.body;break;default:y={};break}return o.responseStyle==="data"?y:{data:y,...E}}let f;switch(u){case "arrayBuffer":case "blob":case "formData":case "json":case "text":f=await d[u]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return u==="json"&&(o.responseValidator&&await o.responseValidator(f),o.responseTransformer&&(f=await o.responseTransformer(f))),o.responseStyle==="data"?f:{data:f,...E}}let m=await d.text(),O;try{O=JSON.parse(m);}catch{}let w=O??m,h=w;for(let u of n.error.fns)u&&(h=await u(w,d,x,o));if(h=h||{},o.throwOnError)throw h;return o.responseStyle==="data"?void 0:{error:h,...E}},i=g=>o=>a({...o,method:g}),l=g=>async o=>{let{opts:A,url:C}=await p(o);return X({...A,body:A.body,headers:A.headers,method:g,onRequest:async(x,k)=>{let d=new Request(x,k);for(let E of n.request.fns)E&&(d=await E(d,A));return d},url:C})};return {buildUrl:M,connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:r,head:i("HEAD"),interceptors:n,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:a,setConfig:s,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:i("TRACE")}};var c=z(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ue=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),fe=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),ye=e=>(e.client??c).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),he=e=>(e.client??c).post({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??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),we=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??c).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??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Te=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),We=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),ve=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),qe=e=>(e.client??c).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}}),Me=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ie=e=>(e.client??c).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??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Ke=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),je=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),Fe=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Be=e=>(e.client??c).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Ne=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),Ve=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xe=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??c).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
|
|
8
|
-
exports.agentExecutePost=ke;exports.agentList=
|
|
5
|
+
`);T=K.pop()??"";for(let re of K){let oe=re.split(`
|
|
6
|
+
`),G=[],j;for(let x of oe)if(x.startsWith("data:"))G.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))j=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))f=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let N=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let w,B=!1;if(G.length){let x=G.join(`
|
|
7
|
+
`);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},pe=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new b,request:new b,response:new b}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(k(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let F=o.fetch,d;try{d=await F(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let d=new Request(y,F);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Qe=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Je=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),_e=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
|
|
8
|
+
exports.agentExecutePost=ke;exports.agentList=Te;exports.agentProfileClearBrowserCache=Oe;exports.agentProfileDelete=we;exports.agentProfileDuplicate=Ce;exports.agentProfileGet=Re;exports.agentProfilePoolDelete=fe;exports.agentProfilePoolGet=Ee;exports.agentProfilePoolMembersAdd=Pe;exports.agentProfilePoolMembersList=xe;exports.agentProfilePoolMembersRemove=ye;exports.agentProfilePoolUpdate=he;exports.agentProfilePoolsCreate=ue;exports.agentProfilePoolsList=Ae;exports.agentProfileUpdate=De;exports.agentProfilesCreate=me;exports.agentProfilesList=Se;exports.agentSharedFilesDelete=We;exports.agentSharedFilesDeleteAll=Ue;exports.agentSharedFilesFreeze=Le;exports.agentSharedFilesGet=Fe;exports.agentSharedFilesUpdate=ve;exports.agentSharedFilesUpload=Ge;exports.agentWorkflowsCreate=Ie;exports.agentWorkflowsExecute=Me;exports.agentWorkflowsGet=qe;exports.agentWorkflowsList=ze;exports.agentWorkflowsPublish=Ke;exports.agentWorkflowsSyncExecution=je;exports.availableToolsList=be;exports.client=i;exports.contextGet=Be;exports.docsSearchSearch=Ne;exports.executionActivitiesGet=He;exports.executionContextFilesGet=$e;exports.executionContextFilesUpload=Qe;exports.executionGet=Xe;exports.executionRecordingRedirect=Je;exports.executionStatusUpdate=_e;exports.executionUserMessagesAdd=Ye;exports.executionsList=Ve;exports.schemaValidationValidate=Ze;exports.tempFilesStage=et;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var V=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var
|
|
1
|
+
var V=(e,t,r)=>{typeof r=="string"||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r));};var R={bodySerializer:e=>{let t=new FormData;return Object.entries(e).forEach(([r,s])=>{s!=null&&(Array.isArray(s)?s.forEach(n=>V(t,r,n)):V(t,r,s));}),t}},L={bodySerializer:e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString():r)};var X=({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:s,responseValidator:n,sseDefaultRetryDelay:c,sseMaxRetryAttempts:l,sseMaxRetryDelay:a,sseSleepFn:p,url:g,...o})=>{let f,O=p??(d=>new Promise(E=>setTimeout(E,d)));return {stream:async function*(){let d=c??3e3,E=0,S=o.signal??new AbortController().signal;for(;!S.aborted;){E++;let C=o.headers instanceof Headers?o.headers:new Headers(o.headers);f!==void 0&&C.set("Last-Event-ID",f);try{let m={redirect:"follow",...o,body:o.serializedBody,headers:C,signal:S},P=new Request(g,m);e&&(P=await e(g,m));let u=await(o.fetch??globalThis.fetch)(P);if(!u.ok)throw new Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw new Error("No body in SSE response");let h=u.body.pipeThrough(new TextDecoderStream).getReader(),T="",M=()=>{try{h.cancel();}catch{}};S.addEventListener("abort",M);try{for(;;){let{done:ee,value:te}=await h.read();if(ee)break;T+=te,T=T.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
|
-
`);let
|
|
3
|
+
`);let K=T.split(`
|
|
4
4
|
|
|
5
|
-
`);
|
|
6
|
-
`),G=[],
|
|
7
|
-
`);try{R=JSON.parse(P),B=!0;}catch{R=P;}}B&&(n&&await n(R),s&&(R=await s(R))),r?.({data:R,event:F,id:A,retry:d}),G.length&&(yield R);}}}finally{m.removeEventListener("abort",K),y.releaseLock();}break}catch(w){if(t?.(w),a!==void 0&&E>=a)break;let h=Math.min(d*2**(E-1),i??3e4);await C(h);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let i=(e?n:n.map(l=>encodeURIComponent(l))).join(ne(s));switch(s){case "label":return `.${i}`;case "matrix":return `;${r}=${i}`;case "simple":return i;default:return `${r}=${i}`}}let p=se(s),a=n.map(i=>s==="label"||s==="simple"?e?i:encodeURIComponent(i):S({allowReserved:e,name:r,value:i})).join(p);return s==="label"||s==="matrix"?p+a:a},S=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},v=({allowReserved:e,explode:t,name:r,style:s,value:n,valueOnly:p})=>{if(n instanceof Date)return p?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let l=[];Object.entries(n).forEach(([o,A])=>{l=[...l,o,e?A:encodeURIComponent(A)];});let g=l.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let a=ie(s),i=Object.entries(n).map(([l,g])=>S({allowReserved:e,name:s==="deepObject"?`${r}[${l}]`:l,value:g})).join(a);return s==="label"||s==="matrix"?a+i:i};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let p=false,a=n.substring(1,n.length-1),i="simple";a.endsWith("*")&&(p=true,a=a.substring(0,a.length-1)),a.startsWith(".")?(a=a.substring(1),i="label"):a.startsWith(";")&&(a=a.substring(1),i="matrix");let l=e[a];if(l==null)continue;if(Array.isArray(l)){r=r.replace(n,U({explode:p,name:a,style:i,value:l}));continue}if(typeof l=="object"){r=r.replace(n,v({explode:p,name:a,style:i,value:l,valueOnly:true}));continue}if(i==="matrix"){r=r.replace(n,`;${S({name:a,value:l})}`);continue}let g=encodeURIComponent(i==="label"?`.${l}`:l);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let p=n.startsWith("/")?n:`/${n}`,a=(e??"")+p;t&&(a=le({path:t,url:a}));let i=r?s(r):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(a+=`?${i}`),a};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let p in s){let a=s[p];if(a==null)continue;let i=e[p]||t;if(Array.isArray(a)){let l=U({allowReserved:i.allowReserved,explode:true,name:p,style:"form",value:a,...i.array});l&&n.push(l);}else if(typeof a=="object"){let l=v({allowReserved:i.allowReserved,explode:true,name:p,style:"deepObject",value:a,...i.object});l&&n.push(l);}else {let l=S({allowReserved:i.allowReserved,name:p,value:a});l&&n.push(l);}}return n.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},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 n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},M=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=L(e.headers,t.headers),r},pe=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},L=(...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[n,p]of s)if(p===null)t.delete(n);else if(Array.isArray(p))for(let a of p)t.append(n,a);else p!==void 0&&t.set(n,typeof p=="object"?JSON.stringify(p):p);}return t},D=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 D,request:new D,response:new D}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},T=(e={})=>({...q,headers:ge,parseAs:"auto",querySerializer:de,...e});var z=(e={})=>{let t=I(T(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),p=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:L(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let A=M(o);return {opts:o,url:A}},a=async g=>{let{opts:o,url:A}=await p(g),C={redirect:"follow",...o,body:$(o)},x=new Request(A,C);for(let u of n.request.fns)u&&(x=await u(x,o));let k=o.fetch,d;try{d=await k(x);}catch(u){let f=u;for(let y of n.error.fns)y&&(f=await y(u,void 0,x,o));if(f=f||{},o.throwOnError)throw f;return o.responseStyle==="data"?void 0:{error:f,request:x,response:void 0}}for(let u of n.response.fns)u&&(d=await u(d,x,o));let E={request:x,response:d};if(d.ok){let u=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let y;switch(u){case "arrayBuffer":case "blob":case "text":y=await d[u]();break;case "formData":y=new FormData;break;case "stream":y=d.body;break;default:y={};break}return o.responseStyle==="data"?y:{data:y,...E}}let f;switch(u){case "arrayBuffer":case "blob":case "formData":case "json":case "text":f=await d[u]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return u==="json"&&(o.responseValidator&&await o.responseValidator(f),o.responseTransformer&&(f=await o.responseTransformer(f))),o.responseStyle==="data"?f:{data:f,...E}}let m=await d.text(),O;try{O=JSON.parse(m);}catch{}let w=O??m,h=w;for(let u of n.error.fns)u&&(h=await u(w,d,x,o));if(h=h||{},o.throwOnError)throw h;return o.responseStyle==="data"?void 0:{error:h,...E}},i=g=>o=>a({...o,method:g}),l=g=>async o=>{let{opts:A,url:C}=await p(o);return X({...A,body:A.body,headers:A.headers,method:g,onRequest:async(x,k)=>{let d=new Request(x,k);for(let E of n.request.fns)E&&(d=await E(d,A));return d},url:C})};return {buildUrl:M,connect:i("CONNECT"),delete:i("DELETE"),get:i("GET"),getConfig:r,head:i("HEAD"),interceptors:n,options:i("OPTIONS"),patch:i("PATCH"),post:i("POST"),put:i("PUT"),request:a,setConfig:s,sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:i("TRACE")}};var c=z(T({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var ue=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),fe=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),ye=e=>(e.client??c).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),he=e=>(e.client??c).post({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??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),we=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Se=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Ce=e=>(e.client??c).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??c).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),be=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),Te=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ge=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),We=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ue=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),ve=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),qe=e=>(e.client??c).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}}),Me=e=>(e?.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ie=e=>(e.client??c).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??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Ke=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),je=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),Fe=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Be=e=>(e.client??c).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Ne=e=>(e.client??c).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),Ve=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xe=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??c).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??c).post({...W,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
|
|
8
|
-
export{ke as agentExecutePost,
|
|
5
|
+
`);T=K.pop()??"";for(let re of K){let oe=re.split(`
|
|
6
|
+
`),G=[],j;for(let x of oe)if(x.startsWith("data:"))G.push(x.replace(/^data:\s*/,""));else if(x.startsWith("event:"))j=x.replace(/^event:\s*/,"");else if(x.startsWith("id:"))f=x.replace(/^id:\s*/,"");else if(x.startsWith("retry:")){let N=Number.parseInt(x.replace(/^retry:\s*/,""),10);Number.isNaN(N)||(d=N);}let w,B=!1;if(G.length){let x=G.join(`
|
|
7
|
+
`);try{w=JSON.parse(x),B=!0;}catch{w=x;}}B&&(n&&await n(w),s&&(w=await s(w))),r?.({data:w,event:j,id:f,retry:d}),G.length&&(yield w);}}}finally{S.removeEventListener("abort",M),h.releaseLock();}break}catch(m){if(t?.(m),l!==void 0&&E>=l)break;let P=Math.min(d*2**(E-1),a??3e4);await O(P);}}}()}};var se=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},ne=e=>{switch(e){case "form":return ",";case "pipeDelimited":return "|";case "spaceDelimited":return "%20";default:return ","}},ie=e=>{switch(e){case "label":return ".";case "matrix":return ";";case "simple":return ",";default:return "&"}},U=({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){let a=(e?n:n.map(p=>encodeURIComponent(p))).join(ne(s));switch(s){case "label":return `.${a}`;case "matrix":return `;${r}=${a}`;case "simple":return a;default:return `${r}=${a}`}}let c=se(s),l=n.map(a=>s==="label"||s==="simple"?e?a:encodeURIComponent(a):D({allowReserved:e,name:r,value:a})).join(c);return s==="label"||s==="matrix"?c+l:l},D=({allowReserved:e,name:t,value:r})=>{if(r==null)return "";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return `${t}=${e?r:encodeURIComponent(r)}`},W=({allowReserved:e,explode:t,name:r,style:s,value:n,valueOnly:c})=>{if(n instanceof Date)return c?n.toISOString():`${r}=${n.toISOString()}`;if(s!=="deepObject"&&!t){let p=[];Object.entries(n).forEach(([o,f])=>{p=[...p,o,e?f:encodeURIComponent(f)];});let g=p.join(",");switch(s){case "form":return `${r}=${g}`;case "label":return `.${g}`;case "matrix":return `;${r}=${g}`;default:return g}}let l=ie(s),a=Object.entries(n).map(([p,g])=>D({allowReserved:e,name:s==="deepObject"?`${r}[${p}]`:p,value:g})).join(l);return s==="label"||s==="matrix"?l+a:a};var ae=/\{[^{}]+\}/g,le=({path:e,url:t})=>{let r=t,s=t.match(ae);if(s)for(let n of s){let c=false,l=n.substring(1,n.length-1),a="simple";l.endsWith("*")&&(c=true,l=l.substring(0,l.length-1)),l.startsWith(".")?(l=l.substring(1),a="label"):l.startsWith(";")&&(l=l.substring(1),a="matrix");let p=e[l];if(p==null)continue;if(Array.isArray(p)){r=r.replace(n,U({explode:c,name:l,style:a,value:p}));continue}if(typeof p=="object"){r=r.replace(n,W({explode:c,name:l,style:a,value:p,valueOnly:true}));continue}if(a==="matrix"){r=r.replace(n,`;${D({name:l,value:p})}`);continue}let g=encodeURIComponent(a==="label"?`.${p}`:p);r=r.replace(n,g);}return r},H=({baseUrl:e,path:t,query:r,querySerializer:s,url:n})=>{let c=n.startsWith("/")?n:`/${n}`,l=(e??"")+c;t&&(l=le({path:t,url:l}));let a=r?s(r):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(l+=`?${a}`),l};function $(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return "serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(t)return e.body}var Q=async(e,t)=>{let r=typeof t=="function"?await t(e):t;if(r)return e.scheme==="bearer"?`Bearer ${r}`:e.scheme==="basic"?`Basic ${btoa(r)}`:r};var J=({parameters:e={},...t}={})=>s=>{let n=[];if(s&&typeof s=="object")for(let c in s){let l=s[c];if(l==null)continue;let a=e[c]||t;if(Array.isArray(l)){let p=U({allowReserved:a.allowReserved,explode:true,name:c,style:"form",value:l,...a.array});p&&n.push(p);}else if(typeof l=="object"){let p=W({allowReserved:a.allowReserved,explode:true,name:c,style:"deepObject",value:l,...a.object});p&&n.push(p);}else {let p=D({allowReserved:a.allowReserved,name:c,value:l});p&&n.push(p);}}return n.join("&")},_=e=>{if(!e)return "stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return "json";if(t==="multipart/form-data")return "formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return "blob";if(t.startsWith("text/"))return "text"}},pe=(e,t)=>t?!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)):false,Y=async({security:e,...t})=>{for(let r of e){if(pe(t,r.name))continue;let s=await Q(r,t.auth);if(!s)continue;let n=r.name??"Authorization";switch(r.in){case "query":t.query||(t.query={}),t.query[n]=s;break;case "cookie":t.headers.append("Cookie",`${n}=${s}`);break;default:t.headers.set(n,s);break}}},z=e=>H({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:J(e.querySerializer),url:e.url}),I=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=v(e.headers,t.headers),r},ce=e=>{let t=[];return e.forEach((r,s)=>{t.push([s,r]);}),t},v=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let s=r instanceof Headers?ce(r):Object.entries(r);for(let[n,c]of s)if(c===null)t.delete(n);else if(Array.isArray(c))for(let l of c)t.append(n,l);else c!==void 0&&t.set(n,typeof c=="object"?JSON.stringify(c):c);}return t},b=class{fns=[];clear(){this.fns=[];}eject(t){let r=this.getInterceptorIndex(t);this.fns[r]&&(this.fns[r]=null);}exists(t){let r=this.getInterceptorIndex(t);return !!this.fns[r]}getInterceptorIndex(t){return typeof t=="number"?this.fns[t]?t:-1:this.fns.indexOf(t)}update(t,r){let s=this.getInterceptorIndex(t);return this.fns[s]?(this.fns[s]=r,t):false}use(t){return this.fns.push(t),this.fns.length-1}},Z=()=>({error:new b,request:new b,response:new b}),de=J({allowReserved:false,array:{explode:true,style:"form"},object:{explode:true,style:"deepObject"}}),ge={"Content-Type":"application/json"},k=(e={})=>({...L,headers:ge,parseAs:"auto",querySerializer:de,...e});var q=(e={})=>{let t=I(k(),e),r=()=>({...t}),s=g=>(t=I(t,g),r()),n=Z(),c=async g=>{let o={...t,...g,fetch:g.fetch??t.fetch??globalThis.fetch,headers:v(t.headers,g.headers),serializedBody:void 0};o.security&&await Y({...o,security:o.security}),o.requestValidator&&await o.requestValidator(o),o.body!==void 0&&o.bodySerializer&&(o.serializedBody=o.bodySerializer(o.body)),(o.body===void 0||o.serializedBody==="")&&o.headers.delete("Content-Type");let f=z(o);return {opts:o,url:f}},l=async g=>{let{opts:o,url:f}=await c(g),O={redirect:"follow",...o,body:$(o)},y=new Request(f,O);for(let A of n.request.fns)A&&(y=await A(y,o));let F=o.fetch,d;try{d=await F(y);}catch(A){let u=A;for(let h of n.error.fns)h&&(u=await h(A,void 0,y,o));if(u=u||{},o.throwOnError)throw u;return o.responseStyle==="data"?void 0:{error:u,request:y,response:void 0}}for(let A of n.response.fns)A&&(d=await A(d,y,o));let E={request:y,response:d};if(d.ok){let A=(o.parseAs==="auto"?_(d.headers.get("Content-Type")):o.parseAs)??"json";if(d.status===204||d.headers.get("Content-Length")==="0"){let h;switch(A){case "arrayBuffer":case "blob":case "text":h=await d[A]();break;case "formData":h=new FormData;break;case "stream":h=d.body;break;default:h={};break}return o.responseStyle==="data"?h:{data:h,...E}}let u;switch(A){case "arrayBuffer":case "blob":case "formData":case "json":case "text":u=await d[A]();break;case "stream":return o.responseStyle==="data"?d.body:{data:d.body,...E}}return A==="json"&&(o.responseValidator&&await o.responseValidator(u),o.responseTransformer&&(u=await o.responseTransformer(u))),o.responseStyle==="data"?u:{data:u,...E}}let S=await d.text(),C;try{C=JSON.parse(S);}catch{}let m=C??S,P=m;for(let A of n.error.fns)A&&(P=await A(m,d,y,o));if(P=P||{},o.throwOnError)throw P;return o.responseStyle==="data"?void 0:{error:P,...E}},a=g=>o=>l({...o,method:g}),p=g=>async o=>{let{opts:f,url:O}=await c(o);return X({...f,body:f.body,headers:f.headers,method:g,onRequest:async(y,F)=>{let d=new Request(y,F);for(let E of n.request.fns)E&&(d=await E(d,f));return d},url:O})};return {buildUrl:z,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:l,setConfig:s,sse:{connect:p("CONNECT"),delete:p("DELETE"),get:p("GET"),head:p("HEAD"),options:p("OPTIONS"),patch:p("PATCH"),post:p("POST"),put:p("PUT"),trace:p("TRACE")},trace:a("TRACE")}};var i=q(k({baseUrl:"https://odyssey.asteroid.ai/agents/v2"}));var Ae=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e}),ue=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),Ee=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e}),he=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e}),Pe=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profile-pools/{poolId}/members",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e}),me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),Re=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e}),De=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/clear-browser-cache",...e}),Ce=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agent-profiles/{profileId}/duplicate",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents",...e}),be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/available-tools",...e}),ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e}),Ge=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files",...e,headers:{"Content-Type":null,...e.headers}}),Ue=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/delete-all",...e}),We=e=>(e.client??i).delete({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e}),ve=e=>(e.client??i).put({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}",...e,headers:{"Content-Type":null,...e.headers}}),Le=e=>(e.client??i).patch({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/shared-files/{fileId}/freeze",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e}),Ie=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}",...e}),Me=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/execute",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ke=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/publish",...e}),je=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/agents/{agentId}/workflows/{workflowId}/sync-execution",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/context",...e}),Ne=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/docs/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions",...e}),Xe=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}",...e}),He=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/activities",...e}),$e=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e}),Qe=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/context-files",...e,headers:{"Content-Type":null,...e.headers}}),Je=e=>(e.client??i).get({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/recording",...e}),_e=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ye=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/executions/{executionId}/user-messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ze=e=>(e.client??i).post({security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/schema/validate",...e,headers:{"Content-Type":"application/json",...e.headers}}),et=e=>(e.client??i).post({...R,security:[{name:"X-Asteroid-Agents-Api-Key",type:"apiKey"}],url:"/temp-files/{organizationId}",...e,headers:{"Content-Type":null,...e.headers}});
|
|
8
|
+
export{ke as agentExecutePost,Te as agentList,Oe as agentProfileClearBrowserCache,we as agentProfileDelete,Ce as agentProfileDuplicate,Re as agentProfileGet,fe as agentProfilePoolDelete,Ee as agentProfilePoolGet,Pe as agentProfilePoolMembersAdd,xe as agentProfilePoolMembersList,ye as agentProfilePoolMembersRemove,he as agentProfilePoolUpdate,ue as agentProfilePoolsCreate,Ae as agentProfilePoolsList,De as agentProfileUpdate,me as agentProfilesCreate,Se as agentProfilesList,We as agentSharedFilesDelete,Ue as agentSharedFilesDeleteAll,Le as agentSharedFilesFreeze,Fe as agentSharedFilesGet,ve as agentSharedFilesUpdate,Ge as agentSharedFilesUpload,Ie as agentWorkflowsCreate,Me as agentWorkflowsExecute,qe as agentWorkflowsGet,ze as agentWorkflowsList,Ke as agentWorkflowsPublish,je as agentWorkflowsSyncExecution,be as availableToolsList,i as client,Be as contextGet,Ne as docsSearchSearch,He as executionActivitiesGet,$e as executionContextFilesGet,Qe as executionContextFilesUpload,Xe as executionGet,Je as executionRecordingRedirect,_e as executionStatusUpdate,Ye as executionUserMessagesAdd,Ve as executionsList,Ze as schemaValidationValidate,et as tempFilesStage};
|