@mastra/client-js 1.21.2-alpha.2 → 1.22.0-alpha.3

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.
@@ -3040,30 +3040,207 @@ export interface PostAgentsAgentIdObserve_RouteContract {
3040
3040
  response: PostAgentsAgentIdObserve_Response;
3041
3041
  responseType: 'stream';
3042
3042
  }
3043
- export type PostAgentsAgentIdSignals_PathParams = {
3043
+ export type PostAgentsAgentIdSendMessage_PathParams = {
3044
3044
  /** Unique identifier for the agent */
3045
3045
  agentId: string;
3046
3046
  };
3047
- type PostAgentsAgentIdSignals_Body_Auxiliary_2 = string | number | boolean | null | PostAgentsAgentIdSignals_Body_Auxiliary_2[] | {
3048
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3047
+ type PostAgentsAgentIdSendMessage_Body_Auxiliary_3 = string | number | boolean | null | PostAgentsAgentIdSendMessage_Body_Auxiliary_3[] | {
3048
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3049
3049
  };
3050
- export type PostAgentsAgentIdSignals_Body = {
3051
- signal: {
3052
- id?: string | undefined;
3053
- createdAt?: (string | Date) | undefined;
3050
+ export type PostAgentsAgentIdSendMessage_Body = {
3051
+ ifActive?: {
3052
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3053
+ attributes?: {
3054
+ [key: string]: string | number | boolean | null | undefined;
3055
+ } | undefined;
3056
+ } | undefined;
3057
+ runId: string;
3058
+ resourceId?: string | undefined;
3059
+ threadId?: string | undefined;
3060
+ ifIdle?: undefined | undefined;
3061
+ message: (string | ({
3062
+ type: 'text';
3063
+ text: string;
3064
+ providerOptions?: {
3065
+ [key: string]: {
3066
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3067
+ };
3068
+ } | undefined;
3069
+ } | {
3070
+ type: 'file';
3071
+ data: string;
3072
+ mediaType: string;
3073
+ filename?: string | undefined;
3074
+ providerOptions?: {
3075
+ [key: string]: {
3076
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3077
+ };
3078
+ } | undefined;
3079
+ })[]) | {
3080
+ contents: string | ({
3081
+ type: 'text';
3082
+ text: string;
3083
+ providerOptions?: {
3084
+ [key: string]: {
3085
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3086
+ };
3087
+ } | undefined;
3088
+ } | {
3089
+ type: 'file';
3090
+ data: string;
3091
+ mediaType: string;
3092
+ filename?: string | undefined;
3093
+ providerOptions?: {
3094
+ [key: string]: {
3095
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3096
+ };
3097
+ } | undefined;
3098
+ })[];
3099
+ attributes?: {
3100
+ [key: string]: string | number | boolean | null | undefined;
3101
+ } | undefined;
3054
3102
  metadata?: {
3055
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3103
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3104
+ } | undefined;
3105
+ providerOptions?: {
3106
+ [key: string]: {
3107
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3108
+ };
3056
3109
  } | undefined;
3110
+ };
3111
+ } | {
3112
+ ifActive?: {
3113
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3057
3114
  attributes?: {
3058
3115
  [key: string]: string | number | boolean | null | undefined;
3059
3116
  } | undefined;
3060
- type: string;
3117
+ } | undefined;
3118
+ runId?: undefined | undefined;
3119
+ resourceId: string;
3120
+ threadId: string;
3121
+ ifIdle?: {
3122
+ behavior?: ('wake' | 'persist' | 'discard') | undefined;
3123
+ streamOptions?: {
3124
+ instructions?: (string | string[] | any | any[]) | undefined;
3125
+ system?: (string | string[] | any | any[]) | undefined;
3126
+ context?: any[] | undefined;
3127
+ memory?: {
3128
+ thread: string | {
3129
+ id: string;
3130
+ [x: string]: unknown;
3131
+ };
3132
+ resource: string;
3133
+ options?: {
3134
+ [key: string]: any;
3135
+ } | undefined;
3136
+ readOnly?: boolean | undefined;
3137
+ } | undefined;
3138
+ runId?: string | undefined;
3139
+ savePerStep?: boolean | undefined;
3140
+ requestContext?: {
3141
+ [key: string]: any;
3142
+ } | undefined;
3143
+ versions?: {
3144
+ agents?: {
3145
+ [key: string]: {
3146
+ versionId: string;
3147
+ } | {
3148
+ status: 'draft' | 'published';
3149
+ };
3150
+ } | undefined;
3151
+ defaultStatus?: ('draft' | 'published') | undefined;
3152
+ } | undefined;
3153
+ maxSteps?: number | undefined;
3154
+ stopWhen?: any | undefined;
3155
+ providerOptions?: {
3156
+ anthropic?: {
3157
+ [key: string]: any;
3158
+ } | undefined;
3159
+ google?: {
3160
+ [key: string]: any;
3161
+ } | undefined;
3162
+ openai?: {
3163
+ [key: string]: any;
3164
+ } | undefined;
3165
+ xai?: {
3166
+ [key: string]: any;
3167
+ } | undefined;
3168
+ } | undefined;
3169
+ modelSettings?: any | undefined;
3170
+ activeTools?: string[] | undefined;
3171
+ toolsets?: {
3172
+ [key: string]: any;
3173
+ } | undefined;
3174
+ clientTools?: {
3175
+ [key: string]: any;
3176
+ } | undefined;
3177
+ toolChoice?: (('auto' | 'none' | 'required') | {
3178
+ type: 'tool';
3179
+ toolName: string;
3180
+ }) | undefined;
3181
+ requireToolApproval?: boolean | undefined;
3182
+ scorers?: ({
3183
+ [key: string]: any;
3184
+ } | {
3185
+ [key: string]: {
3186
+ scorer: string;
3187
+ sampling?: any | undefined;
3188
+ };
3189
+ }) | undefined;
3190
+ returnScorerData?: boolean | undefined;
3191
+ tracingOptions?: {
3192
+ metadata?: {
3193
+ [key: string]: unknown;
3194
+ } | undefined;
3195
+ requestContextKeys?: string[] | undefined;
3196
+ traceId?: string | undefined;
3197
+ parentSpanId?: string | undefined;
3198
+ tags?: string[] | undefined;
3199
+ hideInput?: boolean | undefined;
3200
+ hideOutput?: boolean | undefined;
3201
+ } | undefined;
3202
+ output?: any | undefined;
3203
+ structuredOutput?: {
3204
+ schema: {
3205
+ [x: string]: unknown;
3206
+ };
3207
+ model?: (string | any) | undefined;
3208
+ instructions?: string | undefined;
3209
+ jsonPromptInjection?: boolean | undefined;
3210
+ errorStrategy?: ('strict' | 'warn' | 'fallback') | undefined;
3211
+ fallbackValue?: any | undefined;
3212
+ } | undefined;
3213
+ [x: string]: unknown;
3214
+ } | undefined;
3215
+ attributes?: {
3216
+ [key: string]: string | number | boolean | null | undefined;
3217
+ } | undefined;
3218
+ } | undefined;
3219
+ message: (string | ({
3220
+ type: 'text';
3221
+ text: string;
3222
+ providerOptions?: {
3223
+ [key: string]: {
3224
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3225
+ };
3226
+ } | undefined;
3227
+ } | {
3228
+ type: 'file';
3229
+ data: string;
3230
+ mediaType: string;
3231
+ filename?: string | undefined;
3232
+ providerOptions?: {
3233
+ [key: string]: {
3234
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3235
+ };
3236
+ } | undefined;
3237
+ })[]) | {
3061
3238
  contents: string | ({
3062
3239
  type: 'text';
3063
3240
  text: string;
3064
3241
  providerOptions?: {
3065
3242
  [key: string]: {
3066
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3243
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3067
3244
  };
3068
3245
  } | undefined;
3069
3246
  } | {
@@ -3073,40 +3250,333 @@ export type PostAgentsAgentIdSignals_Body = {
3073
3250
  filename?: string | undefined;
3074
3251
  providerOptions?: {
3075
3252
  [key: string]: {
3076
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3253
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3077
3254
  };
3078
3255
  } | undefined;
3079
3256
  })[];
3257
+ attributes?: {
3258
+ [key: string]: string | number | boolean | null | undefined;
3259
+ } | undefined;
3260
+ metadata?: {
3261
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3262
+ } | undefined;
3080
3263
  providerOptions?: {
3081
3264
  [key: string]: {
3082
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3265
+ [key: string]: PostAgentsAgentIdSendMessage_Body_Auxiliary_3;
3083
3266
  };
3084
3267
  } | undefined;
3085
3268
  };
3269
+ };
3270
+ export type PostAgentsAgentIdSendMessage_Response = {
3271
+ accepted: true;
3272
+ runId: string;
3273
+ signal?: any | undefined;
3274
+ };
3275
+ export type PostAgentsAgentIdSendMessage_Request = Simplify<(PostAgentsAgentIdSendMessage_PathParams extends never ? {} : {
3276
+ params: PostAgentsAgentIdSendMessage_PathParams;
3277
+ }) & (never extends never ? {} : {} extends never ? {
3278
+ query?: never;
3279
+ } : {
3280
+ query: never;
3281
+ }) & (PostAgentsAgentIdSendMessage_Body extends never ? {} : {} extends PostAgentsAgentIdSendMessage_Body ? {
3282
+ body?: PostAgentsAgentIdSendMessage_Body;
3283
+ } : {
3284
+ body: PostAgentsAgentIdSendMessage_Body;
3285
+ })>;
3286
+ export interface PostAgentsAgentIdSendMessage_RouteContract {
3287
+ pathParams: PostAgentsAgentIdSendMessage_PathParams;
3288
+ queryParams: never;
3289
+ body: PostAgentsAgentIdSendMessage_Body;
3290
+ request: PostAgentsAgentIdSendMessage_Request;
3291
+ response: PostAgentsAgentIdSendMessage_Response;
3292
+ responseType: 'json';
3293
+ }
3294
+ export type PostAgentsAgentIdQueueMessage_PathParams = {
3295
+ /** Unique identifier for the agent */
3296
+ agentId: string;
3297
+ };
3298
+ type PostAgentsAgentIdQueueMessage_Body_Auxiliary_3 = string | number | boolean | null | PostAgentsAgentIdQueueMessage_Body_Auxiliary_3[] | {
3299
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3300
+ };
3301
+ export type PostAgentsAgentIdQueueMessage_Body = {
3086
3302
  ifActive?: {
3087
3303
  behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3304
+ attributes?: {
3305
+ [key: string]: string | number | boolean | null | undefined;
3306
+ } | undefined;
3088
3307
  } | undefined;
3089
3308
  runId: string;
3090
3309
  resourceId?: string | undefined;
3091
3310
  threadId?: string | undefined;
3092
3311
  ifIdle?: undefined | undefined;
3312
+ message: (string | ({
3313
+ type: 'text';
3314
+ text: string;
3315
+ providerOptions?: {
3316
+ [key: string]: {
3317
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3318
+ };
3319
+ } | undefined;
3320
+ } | {
3321
+ type: 'file';
3322
+ data: string;
3323
+ mediaType: string;
3324
+ filename?: string | undefined;
3325
+ providerOptions?: {
3326
+ [key: string]: {
3327
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3328
+ };
3329
+ } | undefined;
3330
+ })[]) | {
3331
+ contents: string | ({
3332
+ type: 'text';
3333
+ text: string;
3334
+ providerOptions?: {
3335
+ [key: string]: {
3336
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3337
+ };
3338
+ } | undefined;
3339
+ } | {
3340
+ type: 'file';
3341
+ data: string;
3342
+ mediaType: string;
3343
+ filename?: string | undefined;
3344
+ providerOptions?: {
3345
+ [key: string]: {
3346
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3347
+ };
3348
+ } | undefined;
3349
+ })[];
3350
+ attributes?: {
3351
+ [key: string]: string | number | boolean | null | undefined;
3352
+ } | undefined;
3353
+ metadata?: {
3354
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3355
+ } | undefined;
3356
+ providerOptions?: {
3357
+ [key: string]: {
3358
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3359
+ };
3360
+ } | undefined;
3361
+ };
3093
3362
  } | {
3363
+ ifActive?: {
3364
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3365
+ attributes?: {
3366
+ [key: string]: string | number | boolean | null | undefined;
3367
+ } | undefined;
3368
+ } | undefined;
3369
+ runId?: undefined | undefined;
3370
+ resourceId: string;
3371
+ threadId: string;
3372
+ ifIdle?: {
3373
+ behavior?: ('wake' | 'persist' | 'discard') | undefined;
3374
+ streamOptions?: {
3375
+ instructions?: (string | string[] | any | any[]) | undefined;
3376
+ system?: (string | string[] | any | any[]) | undefined;
3377
+ context?: any[] | undefined;
3378
+ memory?: {
3379
+ thread: string | {
3380
+ id: string;
3381
+ [x: string]: unknown;
3382
+ };
3383
+ resource: string;
3384
+ options?: {
3385
+ [key: string]: any;
3386
+ } | undefined;
3387
+ readOnly?: boolean | undefined;
3388
+ } | undefined;
3389
+ runId?: string | undefined;
3390
+ savePerStep?: boolean | undefined;
3391
+ requestContext?: {
3392
+ [key: string]: any;
3393
+ } | undefined;
3394
+ versions?: {
3395
+ agents?: {
3396
+ [key: string]: {
3397
+ versionId: string;
3398
+ } | {
3399
+ status: 'draft' | 'published';
3400
+ };
3401
+ } | undefined;
3402
+ defaultStatus?: ('draft' | 'published') | undefined;
3403
+ } | undefined;
3404
+ maxSteps?: number | undefined;
3405
+ stopWhen?: any | undefined;
3406
+ providerOptions?: {
3407
+ anthropic?: {
3408
+ [key: string]: any;
3409
+ } | undefined;
3410
+ google?: {
3411
+ [key: string]: any;
3412
+ } | undefined;
3413
+ openai?: {
3414
+ [key: string]: any;
3415
+ } | undefined;
3416
+ xai?: {
3417
+ [key: string]: any;
3418
+ } | undefined;
3419
+ } | undefined;
3420
+ modelSettings?: any | undefined;
3421
+ activeTools?: string[] | undefined;
3422
+ toolsets?: {
3423
+ [key: string]: any;
3424
+ } | undefined;
3425
+ clientTools?: {
3426
+ [key: string]: any;
3427
+ } | undefined;
3428
+ toolChoice?: (('auto' | 'none' | 'required') | {
3429
+ type: 'tool';
3430
+ toolName: string;
3431
+ }) | undefined;
3432
+ requireToolApproval?: boolean | undefined;
3433
+ scorers?: ({
3434
+ [key: string]: any;
3435
+ } | {
3436
+ [key: string]: {
3437
+ scorer: string;
3438
+ sampling?: any | undefined;
3439
+ };
3440
+ }) | undefined;
3441
+ returnScorerData?: boolean | undefined;
3442
+ tracingOptions?: {
3443
+ metadata?: {
3444
+ [key: string]: unknown;
3445
+ } | undefined;
3446
+ requestContextKeys?: string[] | undefined;
3447
+ traceId?: string | undefined;
3448
+ parentSpanId?: string | undefined;
3449
+ tags?: string[] | undefined;
3450
+ hideInput?: boolean | undefined;
3451
+ hideOutput?: boolean | undefined;
3452
+ } | undefined;
3453
+ output?: any | undefined;
3454
+ structuredOutput?: {
3455
+ schema: {
3456
+ [x: string]: unknown;
3457
+ };
3458
+ model?: (string | any) | undefined;
3459
+ instructions?: string | undefined;
3460
+ jsonPromptInjection?: boolean | undefined;
3461
+ errorStrategy?: ('strict' | 'warn' | 'fallback') | undefined;
3462
+ fallbackValue?: any | undefined;
3463
+ } | undefined;
3464
+ [x: string]: unknown;
3465
+ } | undefined;
3466
+ attributes?: {
3467
+ [key: string]: string | number | boolean | null | undefined;
3468
+ } | undefined;
3469
+ } | undefined;
3470
+ message: (string | ({
3471
+ type: 'text';
3472
+ text: string;
3473
+ providerOptions?: {
3474
+ [key: string]: {
3475
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3476
+ };
3477
+ } | undefined;
3478
+ } | {
3479
+ type: 'file';
3480
+ data: string;
3481
+ mediaType: string;
3482
+ filename?: string | undefined;
3483
+ providerOptions?: {
3484
+ [key: string]: {
3485
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3486
+ };
3487
+ } | undefined;
3488
+ })[]) | {
3489
+ contents: string | ({
3490
+ type: 'text';
3491
+ text: string;
3492
+ providerOptions?: {
3493
+ [key: string]: {
3494
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3495
+ };
3496
+ } | undefined;
3497
+ } | {
3498
+ type: 'file';
3499
+ data: string;
3500
+ mediaType: string;
3501
+ filename?: string | undefined;
3502
+ providerOptions?: {
3503
+ [key: string]: {
3504
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3505
+ };
3506
+ } | undefined;
3507
+ })[];
3508
+ attributes?: {
3509
+ [key: string]: string | number | boolean | null | undefined;
3510
+ } | undefined;
3511
+ metadata?: {
3512
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3513
+ } | undefined;
3514
+ providerOptions?: {
3515
+ [key: string]: {
3516
+ [key: string]: PostAgentsAgentIdQueueMessage_Body_Auxiliary_3;
3517
+ };
3518
+ } | undefined;
3519
+ };
3520
+ };
3521
+ export type PostAgentsAgentIdQueueMessage_Response = {
3522
+ accepted: true;
3523
+ runId: string;
3524
+ signal?: any | undefined;
3525
+ };
3526
+ export type PostAgentsAgentIdQueueMessage_Request = Simplify<(PostAgentsAgentIdQueueMessage_PathParams extends never ? {} : {
3527
+ params: PostAgentsAgentIdQueueMessage_PathParams;
3528
+ }) & (never extends never ? {} : {} extends never ? {
3529
+ query?: never;
3530
+ } : {
3531
+ query: never;
3532
+ }) & (PostAgentsAgentIdQueueMessage_Body extends never ? {} : {} extends PostAgentsAgentIdQueueMessage_Body ? {
3533
+ body?: PostAgentsAgentIdQueueMessage_Body;
3534
+ } : {
3535
+ body: PostAgentsAgentIdQueueMessage_Body;
3536
+ })>;
3537
+ export interface PostAgentsAgentIdQueueMessage_RouteContract {
3538
+ pathParams: PostAgentsAgentIdQueueMessage_PathParams;
3539
+ queryParams: never;
3540
+ body: PostAgentsAgentIdQueueMessage_Body;
3541
+ request: PostAgentsAgentIdQueueMessage_Request;
3542
+ response: PostAgentsAgentIdQueueMessage_Response;
3543
+ responseType: 'json';
3544
+ }
3545
+ export type PostAgentsAgentIdSignals_PathParams = {
3546
+ /** Unique identifier for the agent */
3547
+ agentId: string;
3548
+ };
3549
+ type PostAgentsAgentIdSignals_Body_Auxiliary_3 = string | number | boolean | null | PostAgentsAgentIdSignals_Body_Auxiliary_3[] | {
3550
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3551
+ };
3552
+ export type PostAgentsAgentIdSignals_Body = {
3553
+ ifActive?: {
3554
+ behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3555
+ attributes?: {
3556
+ [key: string]: string | number | boolean | null | undefined;
3557
+ } | undefined;
3558
+ } | undefined;
3559
+ runId: string;
3560
+ resourceId?: string | undefined;
3561
+ threadId?: string | undefined;
3562
+ ifIdle?: undefined | undefined;
3094
3563
  signal: {
3095
3564
  id?: string | undefined;
3096
3565
  createdAt?: (string | Date) | undefined;
3097
3566
  metadata?: {
3098
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3567
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3099
3568
  } | undefined;
3100
3569
  attributes?: {
3101
3570
  [key: string]: string | number | boolean | null | undefined;
3102
3571
  } | undefined;
3103
- type: string;
3572
+ type: 'user' | 'state' | 'reactive' | 'notification' | 'user-message' | 'system-reminder';
3573
+ tagName?: string | undefined;
3104
3574
  contents: string | ({
3105
3575
  type: 'text';
3106
3576
  text: string;
3107
3577
  providerOptions?: {
3108
3578
  [key: string]: {
3109
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3579
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3110
3580
  };
3111
3581
  } | undefined;
3112
3582
  } | {
@@ -3116,20 +3586,24 @@ export type PostAgentsAgentIdSignals_Body = {
3116
3586
  filename?: string | undefined;
3117
3587
  providerOptions?: {
3118
3588
  [key: string]: {
3119
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3589
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3120
3590
  };
3121
3591
  } | undefined;
3122
3592
  })[];
3123
3593
  providerOptions?: {
3124
3594
  [key: string]: {
3125
- [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_2;
3595
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3126
3596
  };
3127
3597
  } | undefined;
3128
3598
  };
3599
+ } | {
3129
3600
  ifActive?: {
3130
3601
  behavior?: ('deliver' | 'persist' | 'discard') | undefined;
3602
+ attributes?: {
3603
+ [key: string]: string | number | boolean | null | undefined;
3604
+ } | undefined;
3131
3605
  } | undefined;
3132
- runId?: string | undefined;
3606
+ runId?: undefined | undefined;
3133
3607
  resourceId: string;
3134
3608
  threadId: string;
3135
3609
  ifIdle?: {
@@ -3226,11 +3700,51 @@ export type PostAgentsAgentIdSignals_Body = {
3226
3700
  } | undefined;
3227
3701
  [x: string]: unknown;
3228
3702
  } | undefined;
3703
+ attributes?: {
3704
+ [key: string]: string | number | boolean | null | undefined;
3705
+ } | undefined;
3229
3706
  } | undefined;
3707
+ signal: {
3708
+ id?: string | undefined;
3709
+ createdAt?: (string | Date) | undefined;
3710
+ metadata?: {
3711
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3712
+ } | undefined;
3713
+ attributes?: {
3714
+ [key: string]: string | number | boolean | null | undefined;
3715
+ } | undefined;
3716
+ type: 'user' | 'state' | 'reactive' | 'notification' | 'user-message' | 'system-reminder';
3717
+ tagName?: string | undefined;
3718
+ contents: string | ({
3719
+ type: 'text';
3720
+ text: string;
3721
+ providerOptions?: {
3722
+ [key: string]: {
3723
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3724
+ };
3725
+ } | undefined;
3726
+ } | {
3727
+ type: 'file';
3728
+ data: string;
3729
+ mediaType: string;
3730
+ filename?: string | undefined;
3731
+ providerOptions?: {
3732
+ [key: string]: {
3733
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3734
+ };
3735
+ } | undefined;
3736
+ })[];
3737
+ providerOptions?: {
3738
+ [key: string]: {
3739
+ [key: string]: PostAgentsAgentIdSignals_Body_Auxiliary_3;
3740
+ };
3741
+ } | undefined;
3742
+ };
3230
3743
  };
3231
3744
  export type PostAgentsAgentIdSignals_Response = {
3232
3745
  accepted: true;
3233
3746
  runId: string;
3747
+ signal?: any | undefined;
3234
3748
  };
3235
3749
  export type PostAgentsAgentIdSignals_Request = Simplify<(PostAgentsAgentIdSignals_PathParams extends never ? {} : {
3236
3750
  params: PostAgentsAgentIdSignals_PathParams;
@@ -4910,6 +5424,9 @@ export type GetWorkflows_Response = {
4910
5424
  };
4911
5425
  name?: string | undefined;
4912
5426
  description?: string | undefined;
5427
+ metadata?: {
5428
+ [key: string]: unknown;
5429
+ } | undefined;
4913
5430
  stepGraph: {
4914
5431
  type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
4915
5432
  }[];
@@ -4978,6 +5495,9 @@ export type GetWorkflowsWorkflowId_Response = {
4978
5495
  };
4979
5496
  name?: string | undefined;
4980
5497
  description?: string | undefined;
5498
+ metadata?: {
5499
+ [key: string]: unknown;
5500
+ } | undefined;
4981
5501
  stepGraph: {
4982
5502
  type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
4983
5503
  }[];
@@ -5468,6 +5988,56 @@ export interface PostWorkflowsWorkflowIdResumeAsync_RouteContract {
5468
5988
  response: PostWorkflowsWorkflowIdResumeAsync_Response;
5469
5989
  responseType: 'json';
5470
5990
  }
5991
+ export type PostWorkflowsWorkflowIdResumeNoWait_PathParams = {
5992
+ /** Unique identifier for the workflow */
5993
+ workflowId: string;
5994
+ };
5995
+ export type PostWorkflowsWorkflowIdResumeNoWait_QueryParams = {
5996
+ /** Unique identifier for the run */
5997
+ runId: string;
5998
+ };
5999
+ export type PostWorkflowsWorkflowIdResumeNoWait_Body = {
6000
+ step?: (string | string[]) | undefined;
6001
+ resumeData?: unknown | undefined;
6002
+ requestContext?: {
6003
+ [key: string]: unknown;
6004
+ } | undefined;
6005
+ tracingOptions?: {
6006
+ metadata?: {
6007
+ [key: string]: unknown;
6008
+ } | undefined;
6009
+ requestContextKeys?: string[] | undefined;
6010
+ traceId?: string | undefined;
6011
+ parentSpanId?: string | undefined;
6012
+ tags?: string[] | undefined;
6013
+ hideInput?: boolean | undefined;
6014
+ hideOutput?: boolean | undefined;
6015
+ } | undefined;
6016
+ perStep?: boolean | undefined;
6017
+ forEachIndex?: number | undefined;
6018
+ };
6019
+ export type PostWorkflowsWorkflowIdResumeNoWait_Response = {
6020
+ runId: string;
6021
+ };
6022
+ export type PostWorkflowsWorkflowIdResumeNoWait_Request = Simplify<(PostWorkflowsWorkflowIdResumeNoWait_PathParams extends never ? {} : {
6023
+ params: PostWorkflowsWorkflowIdResumeNoWait_PathParams;
6024
+ }) & (PostWorkflowsWorkflowIdResumeNoWait_QueryParams extends never ? {} : {} extends PostWorkflowsWorkflowIdResumeNoWait_QueryParams ? {
6025
+ query?: PostWorkflowsWorkflowIdResumeNoWait_QueryParams;
6026
+ } : {
6027
+ query: PostWorkflowsWorkflowIdResumeNoWait_QueryParams;
6028
+ }) & (PostWorkflowsWorkflowIdResumeNoWait_Body extends never ? {} : {} extends PostWorkflowsWorkflowIdResumeNoWait_Body ? {
6029
+ body?: PostWorkflowsWorkflowIdResumeNoWait_Body;
6030
+ } : {
6031
+ body: PostWorkflowsWorkflowIdResumeNoWait_Body;
6032
+ })>;
6033
+ export interface PostWorkflowsWorkflowIdResumeNoWait_RouteContract {
6034
+ pathParams: PostWorkflowsWorkflowIdResumeNoWait_PathParams;
6035
+ queryParams: PostWorkflowsWorkflowIdResumeNoWait_QueryParams;
6036
+ body: PostWorkflowsWorkflowIdResumeNoWait_Body;
6037
+ request: PostWorkflowsWorkflowIdResumeNoWait_Request;
6038
+ response: PostWorkflowsWorkflowIdResumeNoWait_Response;
6039
+ responseType: 'json';
6040
+ }
5471
6041
  export type PostWorkflowsWorkflowIdResume_PathParams = {
5472
6042
  /** Unique identifier for the workflow */
5473
6043
  workflowId: string;
@@ -42443,6 +43013,9 @@ export type GetAgentBuilder_Response = {
42443
43013
  };
42444
43014
  name?: string | undefined;
42445
43015
  description?: string | undefined;
43016
+ metadata?: {
43017
+ [key: string]: unknown;
43018
+ } | undefined;
42446
43019
  stepGraph: {
42447
43020
  type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42448
43021
  }[];
@@ -42511,6 +43084,9 @@ export type GetAgentBuilderActionId_Response = {
42511
43084
  };
42512
43085
  name?: string | undefined;
42513
43086
  description?: string | undefined;
43087
+ metadata?: {
43088
+ [key: string]: unknown;
43089
+ } | undefined;
42514
43090
  stepGraph: {
42515
43091
  type: 'step' | 'sleep' | 'sleepUntil' | 'waitForEvent' | 'parallel' | 'conditional' | 'loop' | 'foreach';
42516
43092
  }[];
@@ -42996,6 +43572,56 @@ export interface PostAgentBuilderActionIdResumeAsync_RouteContract {
42996
43572
  response: PostAgentBuilderActionIdResumeAsync_Response;
42997
43573
  responseType: 'json';
42998
43574
  }
43575
+ export type PostAgentBuilderActionIdResumeNoWait_PathParams = {
43576
+ /** Unique identifier for the agent-builder action */
43577
+ actionId: string;
43578
+ };
43579
+ export type PostAgentBuilderActionIdResumeNoWait_QueryParams = {
43580
+ /** Unique identifier for the run */
43581
+ runId: string;
43582
+ };
43583
+ export type PostAgentBuilderActionIdResumeNoWait_Body = {
43584
+ step?: (string | string[]) | undefined;
43585
+ resumeData?: unknown | undefined;
43586
+ requestContext?: {
43587
+ [key: string]: unknown;
43588
+ } | undefined;
43589
+ tracingOptions?: {
43590
+ metadata?: {
43591
+ [key: string]: unknown;
43592
+ } | undefined;
43593
+ requestContextKeys?: string[] | undefined;
43594
+ traceId?: string | undefined;
43595
+ parentSpanId?: string | undefined;
43596
+ tags?: string[] | undefined;
43597
+ hideInput?: boolean | undefined;
43598
+ hideOutput?: boolean | undefined;
43599
+ } | undefined;
43600
+ perStep?: boolean | undefined;
43601
+ forEachIndex?: number | undefined;
43602
+ };
43603
+ export type PostAgentBuilderActionIdResumeNoWait_Response = {
43604
+ runId: string;
43605
+ };
43606
+ export type PostAgentBuilderActionIdResumeNoWait_Request = Simplify<(PostAgentBuilderActionIdResumeNoWait_PathParams extends never ? {} : {
43607
+ params: PostAgentBuilderActionIdResumeNoWait_PathParams;
43608
+ }) & (PostAgentBuilderActionIdResumeNoWait_QueryParams extends never ? {} : {} extends PostAgentBuilderActionIdResumeNoWait_QueryParams ? {
43609
+ query?: PostAgentBuilderActionIdResumeNoWait_QueryParams;
43610
+ } : {
43611
+ query: PostAgentBuilderActionIdResumeNoWait_QueryParams;
43612
+ }) & (PostAgentBuilderActionIdResumeNoWait_Body extends never ? {} : {} extends PostAgentBuilderActionIdResumeNoWait_Body ? {
43613
+ body?: PostAgentBuilderActionIdResumeNoWait_Body;
43614
+ } : {
43615
+ body: PostAgentBuilderActionIdResumeNoWait_Body;
43616
+ })>;
43617
+ export interface PostAgentBuilderActionIdResumeNoWait_RouteContract {
43618
+ pathParams: PostAgentBuilderActionIdResumeNoWait_PathParams;
43619
+ queryParams: PostAgentBuilderActionIdResumeNoWait_QueryParams;
43620
+ body: PostAgentBuilderActionIdResumeNoWait_Body;
43621
+ request: PostAgentBuilderActionIdResumeNoWait_Request;
43622
+ response: PostAgentBuilderActionIdResumeNoWait_Response;
43623
+ responseType: 'json';
43624
+ }
42999
43625
  export type PostAgentBuilderActionIdResume_PathParams = {
43000
43626
  /** Unique identifier for the agent-builder action */
43001
43627
  actionId: string;
@@ -43553,6 +44179,8 @@ export interface RouteTypes {
43553
44179
  'POST /agents/:agentId/stream-until-idle': PostAgentsAgentIdStreamUntilIdle_RouteContract;
43554
44180
  'POST /agents/:agentId/stream/vnext': PostAgentsAgentIdStreamVnext_RouteContract;
43555
44181
  'POST /agents/:agentId/observe': PostAgentsAgentIdObserve_RouteContract;
44182
+ 'POST /agents/:agentId/send-message': PostAgentsAgentIdSendMessage_RouteContract;
44183
+ 'POST /agents/:agentId/queue-message': PostAgentsAgentIdQueueMessage_RouteContract;
43556
44184
  'POST /agents/:agentId/signals': PostAgentsAgentIdSignals_RouteContract;
43557
44185
  'POST /agents/:agentId/threads/subscribe': PostAgentsAgentIdThreadsSubscribe_RouteContract;
43558
44186
  'POST /agents/:agentId/tools/:toolId/execute': PostAgentsAgentIdToolsToolIdExecute_RouteContract;
@@ -43601,6 +44229,7 @@ export interface RouteTypes {
43601
44229
  'POST /workflows/:workflowId/start': PostWorkflowsWorkflowIdStart_RouteContract;
43602
44230
  'POST /workflows/:workflowId/observe': PostWorkflowsWorkflowIdObserve_RouteContract;
43603
44231
  'POST /workflows/:workflowId/resume-async': PostWorkflowsWorkflowIdResumeAsync_RouteContract;
44232
+ 'POST /workflows/:workflowId/resume-no-wait': PostWorkflowsWorkflowIdResumeNoWait_RouteContract;
43604
44233
  'POST /workflows/:workflowId/resume': PostWorkflowsWorkflowIdResume_RouteContract;
43605
44234
  'POST /workflows/:workflowId/runs/:runId/cancel': PostWorkflowsWorkflowIdRunsRunIdCancel_RouteContract;
43606
44235
  'POST /workflows/:workflowId/time-travel': PostWorkflowsWorkflowIdTimeTravel_RouteContract;
@@ -43860,6 +44489,7 @@ export interface RouteTypes {
43860
44489
  'POST /agent-builder/:actionId/observe': PostAgentBuilderActionIdObserve_RouteContract;
43861
44490
  'POST /agent-builder/:actionId/observe-stream-legacy': PostAgentBuilderActionIdObserveStreamLegacy_RouteContract;
43862
44491
  'POST /agent-builder/:actionId/resume-async': PostAgentBuilderActionIdResumeAsync_RouteContract;
44492
+ 'POST /agent-builder/:actionId/resume-no-wait': PostAgentBuilderActionIdResumeNoWait_RouteContract;
43863
44493
  'POST /agent-builder/:actionId/resume': PostAgentBuilderActionIdResume_RouteContract;
43864
44494
  'POST /agent-builder/:actionId/resume-stream': PostAgentBuilderActionIdResumeStream_RouteContract;
43865
44495
  'POST /agent-builder/:actionId/runs/:runId/cancel': PostAgentBuilderActionIdRunsRunIdCancel_RouteContract;
@@ -43908,6 +44538,9 @@ export interface Client {
43908
44538
  '/agent-builder/:actionId/resume-async': {
43909
44539
  POST: PostAgentBuilderActionIdResumeAsync_RouteContract;
43910
44540
  };
44541
+ '/agent-builder/:actionId/resume-no-wait': {
44542
+ POST: PostAgentBuilderActionIdResumeNoWait_RouteContract;
44543
+ };
43911
44544
  '/agent-builder/:actionId/resume-stream': {
43912
44545
  POST: PostAgentBuilderActionIdResumeStream_RouteContract;
43913
44546
  };
@@ -43992,12 +44625,18 @@ export interface Client {
43992
44625
  '/agents/:agentId/observe': {
43993
44626
  POST: PostAgentsAgentIdObserve_RouteContract;
43994
44627
  };
44628
+ '/agents/:agentId/queue-message': {
44629
+ POST: PostAgentsAgentIdQueueMessage_RouteContract;
44630
+ };
43995
44631
  '/agents/:agentId/resume-stream': {
43996
44632
  POST: PostAgentsAgentIdResumeStream_RouteContract;
43997
44633
  };
43998
44634
  '/agents/:agentId/resume-stream-until-idle': {
43999
44635
  POST: PostAgentsAgentIdResumeStreamUntilIdle_RouteContract;
44000
44636
  };
44637
+ '/agents/:agentId/send-message': {
44638
+ POST: PostAgentsAgentIdSendMessage_RouteContract;
44639
+ };
44001
44640
  '/agents/:agentId/signals': {
44002
44641
  POST: PostAgentsAgentIdSignals_RouteContract;
44003
44642
  };
@@ -44673,6 +45312,9 @@ export interface Client {
44673
45312
  '/workflows/:workflowId/resume-async': {
44674
45313
  POST: PostWorkflowsWorkflowIdResumeAsync_RouteContract;
44675
45314
  };
45315
+ '/workflows/:workflowId/resume-no-wait': {
45316
+ POST: PostWorkflowsWorkflowIdResumeNoWait_RouteContract;
45317
+ };
44676
45318
  '/workflows/:workflowId/resume-stream': {
44677
45319
  POST: PostWorkflowsWorkflowIdResumeStream_RouteContract;
44678
45320
  };