@talqing/sdk 0.2.1 → 0.4.0

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.
Files changed (44) hide show
  1. package/README.md +117 -29
  2. package/dist/cjs/client.d.ts +0 -2
  3. package/dist/cjs/client.d.ts.map +1 -1
  4. package/dist/cjs/client.js +0 -3
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/gen/index.d.ts +1 -1
  7. package/dist/cjs/gen/index.d.ts.map +1 -1
  8. package/dist/cjs/gen/sdk.gen.d.ts +72 -220
  9. package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
  10. package/dist/cjs/gen/sdk.gen.js +102 -408
  11. package/dist/cjs/gen/sdk.gen.js.map +1 -1
  12. package/dist/cjs/gen/types.gen.d.ts +307 -984
  13. package/dist/cjs/gen/types.gen.d.ts.map +1 -1
  14. package/dist/cjs/vocabulary.d.ts +1 -4
  15. package/dist/cjs/vocabulary.d.ts.map +1 -1
  16. package/dist/esm/client.d.ts +0 -2
  17. package/dist/esm/client.d.ts.map +1 -1
  18. package/dist/esm/client.js +0 -3
  19. package/dist/esm/client.js.map +1 -1
  20. package/dist/esm/gen/index.d.ts +1 -1
  21. package/dist/esm/gen/index.d.ts.map +1 -1
  22. package/dist/esm/gen/sdk.gen.d.ts +72 -220
  23. package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
  24. package/dist/esm/gen/sdk.gen.js +98 -402
  25. package/dist/esm/gen/sdk.gen.js.map +1 -1
  26. package/dist/esm/gen/types.gen.d.ts +307 -984
  27. package/dist/esm/gen/types.gen.d.ts.map +1 -1
  28. package/dist/esm/vocabulary.d.ts +1 -4
  29. package/dist/esm/vocabulary.d.ts.map +1 -1
  30. package/package.json +7 -34
  31. package/src/client.ts +0 -6
  32. package/src/gen/index.ts +1 -1
  33. package/src/gen/sdk.gen.ts +116 -459
  34. package/src/gen/types.gen.ts +471 -1224
  35. package/src/vocabulary.ts +0 -5
  36. package/dist/cjs/browser.d.ts +0 -158
  37. package/dist/cjs/browser.d.ts.map +0 -1
  38. package/dist/cjs/browser.js +0 -465
  39. package/dist/cjs/browser.js.map +0 -1
  40. package/dist/esm/browser.d.ts +0 -158
  41. package/dist/esm/browser.d.ts.map +0 -1
  42. package/dist/esm/browser.js +0 -442
  43. package/dist/esm/browser.js.map +0 -1
  44. package/src/browser.tsx +0 -678
@@ -610,14 +610,6 @@ export type AssistantStartedEvent = {
610
610
  trigger_item_id: string;
611
611
  };
612
612
 
613
- /**
614
- * AuthContextResponse
615
- */
616
- export type AuthContextResponse = {
617
- tenant: PublicTenantResponse;
618
- user: PublicUserResponse;
619
- };
620
-
621
613
  /**
622
614
  * AvatarCatalogEntryResponse
623
615
  */
@@ -1572,20 +1564,10 @@ export type CallTeamMemberResponse = {
1572
1564
 
1573
1565
  /**
1574
1566
  * CallTokenResponse
1567
+ *
1568
+ * How to join this call, and which call it is.
1575
1569
  */
1576
1570
  export type CallTokenResponse = {
1577
- /**
1578
- * Agent Version
1579
- */
1580
- agent_version?: number | null;
1581
- /**
1582
- * Contact Key
1583
- */
1584
- contact_key: string;
1585
- /**
1586
- * Conversation Id
1587
- */
1588
- conversation_id: string;
1589
1571
  /**
1590
1572
  * Participant Token
1591
1573
  */
@@ -1601,7 +1583,7 @@ export type CallTokenResponse = {
1601
1583
  /**
1602
1584
  * Warnings
1603
1585
  */
1604
- warnings?: Array<string>;
1586
+ warnings: Array<string>;
1605
1587
  };
1606
1588
 
1607
1589
  /**
@@ -1751,6 +1733,11 @@ export type CodeConfig = {
1751
1733
 
1752
1734
  /**
1753
1735
  * CodeOperation
1736
+ *
1737
+ * Run TypeScript to transform or shape data an `http` operation cannot.
1738
+ *
1739
+ * Its sandbox has `fetch`, but reaching an API with it instead of an `http`
1740
+ * operation costs a V8 isolate per call and hides the request from the editor.
1754
1741
  */
1755
1742
  export type CodeOperation = {
1756
1743
  /**
@@ -2661,6 +2648,10 @@ export type CreateIntegrationRequest = {
2661
2648
  provider_account_info?: {
2662
2649
  [key: string]: unknown;
2663
2650
  };
2651
+ /**
2652
+ * Tools Namespace
2653
+ */
2654
+ tools_namespace?: string | null;
2664
2655
  /**
2665
2656
  * Webhook Config
2666
2657
  */
@@ -2825,16 +2816,6 @@ export type CreateTextConversationRequest = {
2825
2816
  } | null;
2826
2817
  };
2827
2818
 
2828
- /**
2829
- * CreateTokenRequest
2830
- */
2831
- export type CreateTokenRequest = {
2832
- /**
2833
- * Name
2834
- */
2835
- name: string;
2836
- };
2837
-
2838
2819
  /**
2839
2820
  * CreateToolRequest
2840
2821
  */
@@ -2889,6 +2870,139 @@ export type CreateWebhookRequest = {
2889
2870
  url: string;
2890
2871
  };
2891
2872
 
2873
+ /**
2874
+ * CreditBalanceResponse
2875
+ *
2876
+ * This region's balance for the workspace, what it buys, and top-up prices.
2877
+ *
2878
+ * Per region, because the balance is a data-plane table. A caller reading this
2879
+ * is reading the balance of whichever region's API they called, and the
2880
+ * dashboard labels it with that region's name — a bare number is what makes a
2881
+ * customer with $50 in one region and $0 in another think the money vanished.
2882
+ */
2883
+ export type CreditBalanceResponse = {
2884
+ /**
2885
+ * Balance
2886
+ */
2887
+ balance: number;
2888
+ /**
2889
+ * Currency
2890
+ */
2891
+ currency: 'USD';
2892
+ /**
2893
+ * Low Balance Threshold
2894
+ */
2895
+ low_balance_threshold: number;
2896
+ /**
2897
+ * Packs
2898
+ */
2899
+ packs: Array<CreditPackResponse>;
2900
+ /**
2901
+ * Topup Status
2902
+ */
2903
+ topup_status: 'pending' | 'paid' | 'failed' | 'cancelled' | 'refunded' | null;
2904
+ /**
2905
+ * Video Minutes Remaining
2906
+ */
2907
+ video_minutes_remaining: number;
2908
+ /**
2909
+ * Voice Minutes Remaining
2910
+ */
2911
+ voice_minutes_remaining: number;
2912
+ };
2913
+
2914
+ /**
2915
+ * CreditCheckoutRequest
2916
+ *
2917
+ * Which pack to buy. Never an arbitrary amount — the packs are the prices.
2918
+ */
2919
+ export type CreditCheckoutRequest = {
2920
+ /**
2921
+ * Pack
2922
+ */
2923
+ pack: 'usd_20' | 'usd_50' | 'usd_100' | 'usd_200' | 'usd_500' | 'usd_1000';
2924
+ };
2925
+
2926
+ /**
2927
+ * CreditCheckoutResponse
2928
+ *
2929
+ * Where to send the buyer, and the top-up that is waiting on them.
2930
+ */
2931
+ export type CreditCheckoutResponse = {
2932
+ /**
2933
+ * Checkout Url
2934
+ */
2935
+ checkout_url: string;
2936
+ /**
2937
+ * Topup Id
2938
+ */
2939
+ topup_id: string;
2940
+ };
2941
+
2942
+ /**
2943
+ * CreditLedgerEntryResponse
2944
+ *
2945
+ * A ledger row, as the billing page reads it.
2946
+ *
2947
+ * Money is `float` here, matching `CostResponse` — the API has spoken JSON
2948
+ * numbers for every other money field since it existed, and one column in one
2949
+ * string would only make a client parse two shapes.
2950
+ */
2951
+ export type CreditLedgerEntryResponse = {
2952
+ /**
2953
+ * Amount
2954
+ */
2955
+ amount: number;
2956
+ /**
2957
+ * Balance After
2958
+ */
2959
+ balance_after: number;
2960
+ /**
2961
+ * Created At
2962
+ */
2963
+ created_at: string;
2964
+ /**
2965
+ * Id
2966
+ */
2967
+ id: string;
2968
+ /**
2969
+ * Kind
2970
+ */
2971
+ kind: 'signup_grant' | 'purchase' | 'usage' | 'refund' | 'adjustment';
2972
+ /**
2973
+ * Note
2974
+ */
2975
+ note: string | null;
2976
+ /**
2977
+ * Session Id
2978
+ */
2979
+ session_id: string | null;
2980
+ /**
2981
+ * Topup Id
2982
+ */
2983
+ topup_id: string | null;
2984
+ };
2985
+
2986
+ /**
2987
+ * CreditPackResponse
2988
+ *
2989
+ * One pack the workspace may buy, priced in USD.
2990
+ */
2991
+ export type CreditPackResponse = {
2992
+ /**
2993
+ * Amount
2994
+ */
2995
+ amount: number;
2996
+ /**
2997
+ * Id
2998
+ */
2999
+ id: 'usd_20' | 'usd_50' | 'usd_100' | 'usd_200' | 'usd_500' | 'usd_1000';
3000
+ /**
3001
+ * Voice Minutes
3002
+ */
3003
+ voice_minutes: number;
3004
+ };
3005
+
2892
3006
  /**
2893
3007
  * DeliveryError
2894
3008
  *
@@ -3157,10 +3271,6 @@ export type EmailRecipientResponse = {
3157
3271
  columns: {
3158
3272
  [key: string]: unknown;
3159
3273
  };
3160
- /**
3161
- * Delivery Status
3162
- */
3163
- delivery_status: 'delivered' | 'delayed' | 'bounced' | 'complained' | 'suppressed' | null;
3164
3274
  /**
3165
3275
  * Id
3166
3276
  */
@@ -3441,6 +3551,26 @@ export type FrontendRpcOperation = {
3441
3551
  silent?: boolean;
3442
3552
  };
3443
3553
 
3554
+ /**
3555
+ * FunctionArgumentsResponse
3556
+ */
3557
+ export type FunctionArgumentsResponse = {
3558
+ /**
3559
+ * Description
3560
+ */
3561
+ description: string;
3562
+ /**
3563
+ * Json Schema
3564
+ */
3565
+ json_schema: {
3566
+ [key: string]: unknown;
3567
+ };
3568
+ /**
3569
+ * Name
3570
+ */
3571
+ name: string;
3572
+ };
3573
+
3444
3574
  /**
3445
3575
  * GenerateReplyConfig
3446
3576
  */
@@ -3773,6 +3903,8 @@ export type HttpConfig = {
3773
3903
 
3774
3904
  /**
3775
3905
  * HttpOperation
3906
+ *
3907
+ * Call a REST API. The right operation for any plain request/response call.
3776
3908
  */
3777
3909
  export type HttpOperation = {
3778
3910
  /**
@@ -3923,6 +4055,7 @@ export type InboundImage = {
3923
4055
  * A remote MCP server defined here rather than named.
3924
4056
  *
3925
4057
  * API-key-shaped only — an OAuth server has to be an integration.
4058
+ * `tools_namespace` prefixes every tool the model is shown: `crm` -> `crm_search`.
3926
4059
  */
3927
4060
  export type InlineMcpServer = {
3928
4061
  /**
@@ -3939,6 +4072,10 @@ export type InlineMcpServer = {
3939
4072
  * Name
3940
4073
  */
3941
4074
  name: string;
4075
+ /**
4076
+ * Tools Namespace
4077
+ */
4078
+ tools_namespace?: string;
3942
4079
  /**
3943
4080
  * Url
3944
4081
  */
@@ -4060,6 +4197,10 @@ export type IntegrationMcpTool = {
4060
4197
  * Description
4061
4198
  */
4062
4199
  description?: string;
4200
+ /**
4201
+ * Exposed Name
4202
+ */
4203
+ exposed_name: string;
4063
4204
  /**
4064
4205
  * Name
4065
4206
  */
@@ -4141,6 +4282,10 @@ export type IntegrationResponse = {
4141
4282
  * Status
4142
4283
  */
4143
4284
  status: 'active' | 'disabled' | 'needs_reconnect' | 'error';
4285
+ /**
4286
+ * Tools Namespace
4287
+ */
4288
+ tools_namespace: string;
4144
4289
  /**
4145
4290
  * Updated At
4146
4291
  */
@@ -4271,12 +4416,9 @@ export type IntegrationTriggerResponse = {
4271
4416
  *
4272
4417
  * Where the provider delivers, and whether anything has arrived yet.
4273
4418
  *
4274
- * Chat providers register their own webhook when a trigger is enabled, so for
4275
- * those this is status rather than instructions. Resend is the exception: we
4276
- * hold an API key, not a dashboard session, so a tenant who wants delivery and
4277
- * bounce events has to paste this URL into Resend themselves — and until they
4278
- * do, bounces and spam complaints are invisible, which are the two facts that
4279
- * decide whether a sending domain survives.
4419
+ * Status rather than instructions: a chat provider registers its own webhook
4420
+ * when a trigger is enabled, so nobody has to paste this URL anywhere. It is
4421
+ * here for support "has anything ever arrived on this connection".
4280
4422
  */
4281
4423
  export type IntegrationWebhookSetup = {
4282
4424
  /**
@@ -4291,10 +4433,6 @@ export type IntegrationWebhookSetup = {
4291
4433
  * Last Received At
4292
4434
  */
4293
4435
  last_received_at?: string | null;
4294
- /**
4295
- * Required Subscriptions
4296
- */
4297
- required_subscriptions: Array<string>;
4298
4436
  };
4299
4437
 
4300
4438
  /**
@@ -4385,46 +4523,6 @@ export type InterruptionSpecOverride = {
4385
4523
  resume_false_interruption?: boolean | null;
4386
4524
  };
4387
4525
 
4388
- /**
4389
- * InviteRequest
4390
- */
4391
- export type InviteRequest = {
4392
- /**
4393
- * Email
4394
- */
4395
- email: string;
4396
- /**
4397
- * Role
4398
- */
4399
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
4400
- };
4401
-
4402
- /**
4403
- * InviteResponse
4404
- */
4405
- export type InviteResponse = {
4406
- /**
4407
- * Accepted At
4408
- */
4409
- accepted_at?: string | null;
4410
- /**
4411
- * Created At
4412
- */
4413
- created_at: string;
4414
- /**
4415
- * Email
4416
- */
4417
- email: string;
4418
- /**
4419
- * Id
4420
- */
4421
- id: string;
4422
- /**
4423
- * Role
4424
- */
4425
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
4426
- };
4427
-
4428
4526
  /**
4429
4527
  * ItemCreatedEvent
4430
4528
  *
@@ -5221,64 +5319,6 @@ export type McpSelection = {
5221
5319
  mcp?: InlineMcpServer | null;
5222
5320
  };
5223
5321
 
5224
- /**
5225
- * McpTokenResponse
5226
- *
5227
- * Everything an MCP client configuration needs, in one response.
5228
- */
5229
- export type McpTokenResponse = {
5230
- /**
5231
- * Api Url
5232
- */
5233
- api_url: string;
5234
- /**
5235
- * Created At
5236
- */
5237
- created_at: string;
5238
- /**
5239
- * Id
5240
- */
5241
- id: string;
5242
- /**
5243
- * Name
5244
- */
5245
- name: string;
5246
- /**
5247
- * Token
5248
- */
5249
- token: string;
5250
- };
5251
-
5252
- /**
5253
- * MemberResponse
5254
- */
5255
- export type MemberResponse = {
5256
- /**
5257
- * Email
5258
- */
5259
- email: string;
5260
- /**
5261
- * Id
5262
- */
5263
- id: string;
5264
- /**
5265
- * Joined At
5266
- */
5267
- joined_at: string;
5268
- /**
5269
- * Name
5270
- */
5271
- name?: string | null;
5272
- /**
5273
- * Picture Url
5274
- */
5275
- picture_url?: string | null;
5276
- /**
5277
- * Role
5278
- */
5279
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
5280
- };
5281
-
5282
5322
  /**
5283
5323
  * ModelMetadata
5284
5324
  *
@@ -5989,42 +6029,6 @@ export type OkResponse = {
5989
6029
  ok?: boolean;
5990
6030
  };
5991
6031
 
5992
- /**
5993
- * OrgNameRequest
5994
- */
5995
- export type OrgNameRequest = {
5996
- /**
5997
- * Name
5998
- */
5999
- name: string;
6000
- };
6001
-
6002
- /**
6003
- * OrgResponse
6004
- */
6005
- export type OrgResponse = {
6006
- /**
6007
- * Id
6008
- */
6009
- id: string;
6010
- /**
6011
- * Joined At
6012
- */
6013
- joined_at: string;
6014
- /**
6015
- * Name
6016
- */
6017
- name: string;
6018
- /**
6019
- * Retention Days
6020
- */
6021
- retention_days?: number | null;
6022
- /**
6023
- * Role
6024
- */
6025
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
6026
- };
6027
-
6028
6032
  /**
6029
6033
  * OutboundCallRequest
6030
6034
  *
@@ -6083,28 +6087,18 @@ export type OutboundCallRequest = {
6083
6087
 
6084
6088
  /**
6085
6089
  * OutboundCallResponse
6090
+ *
6091
+ * Which call this is, and what resolving it complained about.
6086
6092
  */
6087
6093
  export type OutboundCallResponse = {
6088
- /**
6089
- * Agent Version
6090
- */
6091
- agent_version?: number | null;
6092
- /**
6093
- * Conversation Id
6094
- */
6095
- conversation_id: string;
6096
6094
  /**
6097
6095
  * Session Id
6098
6096
  */
6099
6097
  session_id: string;
6100
- /**
6101
- * Status
6102
- */
6103
- status: string;
6104
6098
  /**
6105
6099
  * Warnings
6106
6100
  */
6107
- warnings?: Array<string>;
6101
+ warnings: Array<string>;
6108
6102
  };
6109
6103
 
6110
6104
  /**
@@ -6316,9 +6310,9 @@ export type PageConversationSessionResponse = {
6316
6310
  };
6317
6311
 
6318
6312
  /**
6319
- * Page[DeliveryResponse]
6313
+ * Page[CreditLedgerEntryResponse]
6320
6314
  */
6321
- export type PageDeliveryResponse = {
6315
+ export type PageCreditLedgerEntryResponse = {
6322
6316
  /**
6323
6317
  * Has More
6324
6318
  */
@@ -6326,7 +6320,7 @@ export type PageDeliveryResponse = {
6326
6320
  /**
6327
6321
  * Items
6328
6322
  */
6329
- items: Array<DeliveryResponse>;
6323
+ items: Array<CreditLedgerEntryResponse>;
6330
6324
  /**
6331
6325
  * Limit
6332
6326
  */
@@ -6338,9 +6332,9 @@ export type PageDeliveryResponse = {
6338
6332
  };
6339
6333
 
6340
6334
  /**
6341
- * Page[EmailBatchResponse]
6335
+ * Page[DeliveryResponse]
6342
6336
  */
6343
- export type PageEmailBatchResponse = {
6337
+ export type PageDeliveryResponse = {
6344
6338
  /**
6345
6339
  * Has More
6346
6340
  */
@@ -6348,7 +6342,7 @@ export type PageEmailBatchResponse = {
6348
6342
  /**
6349
6343
  * Items
6350
6344
  */
6351
- items: Array<EmailBatchResponse>;
6345
+ items: Array<DeliveryResponse>;
6352
6346
  /**
6353
6347
  * Limit
6354
6348
  */
@@ -6360,9 +6354,9 @@ export type PageEmailBatchResponse = {
6360
6354
  };
6361
6355
 
6362
6356
  /**
6363
- * Page[EmailRecipientResponse]
6357
+ * Page[EmailBatchResponse]
6364
6358
  */
6365
- export type PageEmailRecipientResponse = {
6359
+ export type PageEmailBatchResponse = {
6366
6360
  /**
6367
6361
  * Has More
6368
6362
  */
@@ -6370,7 +6364,7 @@ export type PageEmailRecipientResponse = {
6370
6364
  /**
6371
6365
  * Items
6372
6366
  */
6373
- items: Array<EmailRecipientResponse>;
6367
+ items: Array<EmailBatchResponse>;
6374
6368
  /**
6375
6369
  * Limit
6376
6370
  */
@@ -6382,9 +6376,9 @@ export type PageEmailRecipientResponse = {
6382
6376
  };
6383
6377
 
6384
6378
  /**
6385
- * Page[IntegrationCatalogItem]
6379
+ * Page[EmailRecipientResponse]
6386
6380
  */
6387
- export type PageIntegrationCatalogItem = {
6381
+ export type PageEmailRecipientResponse = {
6388
6382
  /**
6389
6383
  * Has More
6390
6384
  */
@@ -6392,7 +6386,7 @@ export type PageIntegrationCatalogItem = {
6392
6386
  /**
6393
6387
  * Items
6394
6388
  */
6395
- items: Array<IntegrationCatalogItem>;
6389
+ items: Array<EmailRecipientResponse>;
6396
6390
  /**
6397
6391
  * Limit
6398
6392
  */
@@ -6404,9 +6398,9 @@ export type PageIntegrationCatalogItem = {
6404
6398
  };
6405
6399
 
6406
6400
  /**
6407
- * Page[IntegrationResponse]
6401
+ * Page[IntegrationCatalogItem]
6408
6402
  */
6409
- export type PageIntegrationResponse = {
6403
+ export type PageIntegrationCatalogItem = {
6410
6404
  /**
6411
6405
  * Has More
6412
6406
  */
@@ -6414,7 +6408,7 @@ export type PageIntegrationResponse = {
6414
6408
  /**
6415
6409
  * Items
6416
6410
  */
6417
- items: Array<IntegrationResponse>;
6411
+ items: Array<IntegrationCatalogItem>;
6418
6412
  /**
6419
6413
  * Limit
6420
6414
  */
@@ -6426,9 +6420,9 @@ export type PageIntegrationResponse = {
6426
6420
  };
6427
6421
 
6428
6422
  /**
6429
- * Page[IntegrationTriggerResponse]
6423
+ * Page[IntegrationResponse]
6430
6424
  */
6431
- export type PageIntegrationTriggerResponse = {
6425
+ export type PageIntegrationResponse = {
6432
6426
  /**
6433
6427
  * Has More
6434
6428
  */
@@ -6436,7 +6430,7 @@ export type PageIntegrationTriggerResponse = {
6436
6430
  /**
6437
6431
  * Items
6438
6432
  */
6439
- items: Array<IntegrationTriggerResponse>;
6433
+ items: Array<IntegrationResponse>;
6440
6434
  /**
6441
6435
  * Limit
6442
6436
  */
@@ -6448,9 +6442,9 @@ export type PageIntegrationTriggerResponse = {
6448
6442
  };
6449
6443
 
6450
6444
  /**
6451
- * Page[InviteResponse]
6445
+ * Page[IntegrationTriggerResponse]
6452
6446
  */
6453
- export type PageInviteResponse = {
6447
+ export type PageIntegrationTriggerResponse = {
6454
6448
  /**
6455
6449
  * Has More
6456
6450
  */
@@ -6458,7 +6452,7 @@ export type PageInviteResponse = {
6458
6452
  /**
6459
6453
  * Items
6460
6454
  */
6461
- items: Array<InviteResponse>;
6455
+ items: Array<IntegrationTriggerResponse>;
6462
6456
  /**
6463
6457
  * Limit
6464
6458
  */
@@ -6513,50 +6507,6 @@ export type PageKBSummary = {
6513
6507
  offset: number;
6514
6508
  };
6515
6509
 
6516
- /**
6517
- * Page[MemberResponse]
6518
- */
6519
- export type PageMemberResponse = {
6520
- /**
6521
- * Has More
6522
- */
6523
- has_more: boolean;
6524
- /**
6525
- * Items
6526
- */
6527
- items: Array<MemberResponse>;
6528
- /**
6529
- * Limit
6530
- */
6531
- limit: number;
6532
- /**
6533
- * Offset
6534
- */
6535
- offset: number;
6536
- };
6537
-
6538
- /**
6539
- * Page[OrgResponse]
6540
- */
6541
- export type PageOrgResponse = {
6542
- /**
6543
- * Has More
6544
- */
6545
- has_more: boolean;
6546
- /**
6547
- * Items
6548
- */
6549
- items: Array<OrgResponse>;
6550
- /**
6551
- * Limit
6552
- */
6553
- limit: number;
6554
- /**
6555
- * Offset
6556
- */
6557
- offset: number;
6558
- };
6559
-
6560
6510
  /**
6561
6511
  * Page[PhoneNumberResponse]
6562
6512
  */
@@ -6711,28 +6661,6 @@ export type PageTelephonyProviderSpec = {
6711
6661
  offset: number;
6712
6662
  };
6713
6663
 
6714
- /**
6715
- * Page[TokenResponse]
6716
- */
6717
- export type PageTokenResponse = {
6718
- /**
6719
- * Has More
6720
- */
6721
- has_more: boolean;
6722
- /**
6723
- * Items
6724
- */
6725
- items: Array<TokenResponse>;
6726
- /**
6727
- * Limit
6728
- */
6729
- limit: number;
6730
- /**
6731
- * Offset
6732
- */
6733
- offset: number;
6734
- };
6735
-
6736
6664
  /**
6737
6665
  * Page[ToolResponse]
6738
6666
  */
@@ -6966,6 +6894,10 @@ export type PatchIntegrationRequest = {
6966
6894
  * Status
6967
6895
  */
6968
6896
  status?: 'active' | 'disabled' | 'needs_reconnect' | 'error' | null;
6897
+ /**
6898
+ * Tools Namespace
6899
+ */
6900
+ tools_namespace?: string | null;
6969
6901
  /**
6970
6902
  * Webhook Config
6971
6903
  */
@@ -7032,28 +6964,6 @@ export type PatchNodeRequest = {
7032
6964
  version?: number | null;
7033
6965
  };
7034
6966
 
7035
- /**
7036
- * PatchOrgRequest
7037
- *
7038
- * Merge-style, like every other PATCH here: an omitted field is unchanged.
7039
- *
7040
- * ``retention_days`` needs the sentinel because ``null`` is a real value —
7041
- * "keep everything forever" — and has to be distinguishable from "leave the
7042
- * policy alone".
7043
- */
7044
- export type PatchOrgRequest = {
7045
- /**
7046
- * Name
7047
- */
7048
- name?: string | null;
7049
- /**
7050
- * Retention Days
7051
- *
7052
- * How many days to keep call and conversation content — recordings, transcripts, summaries and the phone numbers on a call. `null` keeps everything forever, which is the default. Applies to calls from now on.
7053
- */
7054
- retention_days?: number | null;
7055
- };
7056
-
7057
6967
  /**
7058
6968
  * PatchPhoneNumberRequest
7059
6969
  */
@@ -7566,46 +7476,6 @@ export type PublicMessage = {
7566
7476
  }> | null;
7567
7477
  };
7568
7478
 
7569
- /**
7570
- * PublicTenantResponse
7571
- */
7572
- export type PublicTenantResponse = {
7573
- /**
7574
- * Id
7575
- */
7576
- id: string;
7577
- /**
7578
- * Name
7579
- */
7580
- name: string;
7581
- };
7582
-
7583
- /**
7584
- * PublicUserResponse
7585
- */
7586
- export type PublicUserResponse = {
7587
- /**
7588
- * Email
7589
- */
7590
- email: string;
7591
- /**
7592
- * Id
7593
- */
7594
- id: string;
7595
- /**
7596
- * Name
7597
- */
7598
- name?: string | null;
7599
- /**
7600
- * Picture Url
7601
- */
7602
- picture_url?: string | null;
7603
- /**
7604
- * Role
7605
- */
7606
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
7607
- };
7608
-
7609
7479
  /**
7610
7480
  * PublishAgentResponse
7611
7481
  */
@@ -8181,16 +8051,6 @@ export type RemoteNumber = {
8181
8051
  provider_number_id?: string | null;
8182
8052
  };
8183
8053
 
8184
- /**
8185
- * RoleRequest
8186
- */
8187
- export type RoleRequest = {
8188
- /**
8189
- * Role
8190
- */
8191
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
8192
- };
8193
-
8194
8054
  /**
8195
8055
  * RunStepResponse
8196
8056
  *
@@ -9864,40 +9724,6 @@ export type TocResultResponse = {
9864
9724
  pages: number;
9865
9725
  };
9866
9726
 
9867
- /**
9868
- * TokenCreatedResponse
9869
- */
9870
- export type TokenCreatedResponse = {
9871
- /**
9872
- * Created At
9873
- */
9874
- created_at: string;
9875
- /**
9876
- * Id
9877
- */
9878
- id: string;
9879
- /**
9880
- * Kind
9881
- */
9882
- kind: 'manual' | 'mcp';
9883
- /**
9884
- * Name
9885
- */
9886
- name: string;
9887
- /**
9888
- * Token
9889
- */
9890
- token: string;
9891
- /**
9892
- * User Email
9893
- */
9894
- user_email: string;
9895
- /**
9896
- * User Id
9897
- */
9898
- user_id: string;
9899
- };
9900
-
9901
9727
  /**
9902
9728
  * TokenRequest
9903
9729
  *
@@ -9950,36 +9776,6 @@ export type TokenRequest = {
9950
9776
  } | null;
9951
9777
  };
9952
9778
 
9953
- /**
9954
- * TokenResponse
9955
- */
9956
- export type TokenResponse = {
9957
- /**
9958
- * Created At
9959
- */
9960
- created_at: string;
9961
- /**
9962
- * Id
9963
- */
9964
- id: string;
9965
- /**
9966
- * Kind
9967
- */
9968
- kind: 'manual' | 'mcp';
9969
- /**
9970
- * Name
9971
- */
9972
- name: string;
9973
- /**
9974
- * User Email
9975
- */
9976
- user_email: string;
9977
- /**
9978
- * User Id
9979
- */
9980
- user_id: string;
9981
- };
9982
-
9983
9779
  /**
9984
9780
  * ToolResponse
9985
9781
  */
@@ -11321,59 +11117,132 @@ export type AgentsVersionsRollbackResults = {
11321
11117
 
11322
11118
  export type AgentsVersionsRollbackResult = AgentsVersionsRollbackResults[keyof AgentsVersionsRollbackResults];
11323
11119
 
11324
- export type AuthLogoutData = {
11120
+ export type BillingCreditsGetData = {
11325
11121
  body?: never;
11326
11122
  path?: never;
11123
+ query?: {
11124
+ /**
11125
+ * Topup
11126
+ *
11127
+ * A top-up to report the payment processor's own status for.
11128
+ */
11129
+ topup?: string | null;
11130
+ };
11131
+ url: '/v1/billing/credits';
11132
+ };
11133
+
11134
+ export type BillingCreditsGetErrors = {
11135
+ /**
11136
+ * Missing credential, or one that is revoked or no longer a member of this organization.
11137
+ */
11138
+ 401: ErrorResponse;
11139
+ /**
11140
+ * The request did not match this operation's schema; `detail.errors` lists each field.
11141
+ */
11142
+ 422: ErrorResponse;
11143
+ /**
11144
+ * Unexpected error. Every error this API returns carries this body.
11145
+ */
11146
+ default: ErrorResponse;
11147
+ };
11148
+
11149
+ export type BillingCreditsGetError = BillingCreditsGetErrors[keyof BillingCreditsGetErrors];
11150
+
11151
+ export type BillingCreditsGetResults = {
11152
+ /**
11153
+ * Successful Response
11154
+ */
11155
+ 200: CreditBalanceResponse;
11156
+ };
11157
+
11158
+ export type BillingCreditsGetResult = BillingCreditsGetResults[keyof BillingCreditsGetResults];
11159
+
11160
+ export type BillingCreditsCheckoutData = {
11161
+ body: CreditCheckoutRequest;
11162
+ path?: never;
11327
11163
  query?: never;
11328
- url: '/v1/auth/logout';
11164
+ url: '/v1/billing/credits/checkout';
11329
11165
  };
11330
11166
 
11331
- export type AuthLogoutErrors = {
11167
+ export type BillingCreditsCheckoutErrors = {
11168
+ /**
11169
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
11170
+ */
11171
+ 400: ErrorResponse;
11172
+ /**
11173
+ * Missing credential, or one that is revoked or no longer a member of this organization.
11174
+ */
11175
+ 401: ErrorResponse;
11176
+ /**
11177
+ * Authenticated, but this organization role may not perform the operation.
11178
+ */
11179
+ 403: ErrorResponse;
11180
+ /**
11181
+ * The resource's current state forbids this — a name already taken, a job already running.
11182
+ */
11183
+ 409: ErrorResponse;
11184
+ /**
11185
+ * The request did not match this operation's schema; `detail.errors` lists each field.
11186
+ */
11187
+ 422: ErrorResponse;
11332
11188
  /**
11333
11189
  * Unexpected error. Every error this API returns carries this body.
11334
11190
  */
11335
11191
  default: ErrorResponse;
11336
11192
  };
11337
11193
 
11338
- export type AuthLogoutError = AuthLogoutErrors[keyof AuthLogoutErrors];
11194
+ export type BillingCreditsCheckoutError = BillingCreditsCheckoutErrors[keyof BillingCreditsCheckoutErrors];
11339
11195
 
11340
- export type AuthLogoutResults = {
11196
+ export type BillingCreditsCheckoutResults = {
11341
11197
  /**
11342
11198
  * Successful Response
11343
11199
  */
11344
- 200: OkResponse;
11200
+ 200: CreditCheckoutResponse;
11345
11201
  };
11346
11202
 
11347
- export type AuthLogoutResult = AuthLogoutResults[keyof AuthLogoutResults];
11203
+ export type BillingCreditsCheckoutResult = BillingCreditsCheckoutResults[keyof BillingCreditsCheckoutResults];
11348
11204
 
11349
- export type AuthMeData = {
11205
+ export type BillingCreditsLedgerData = {
11350
11206
  body?: never;
11351
11207
  path?: never;
11352
- query?: never;
11353
- url: '/v1/auth/me';
11208
+ query?: {
11209
+ /**
11210
+ * Limit
11211
+ */
11212
+ limit?: number;
11213
+ /**
11214
+ * Offset
11215
+ */
11216
+ offset?: number;
11217
+ };
11218
+ url: '/v1/billing/credits/ledger';
11354
11219
  };
11355
11220
 
11356
- export type AuthMeErrors = {
11221
+ export type BillingCreditsLedgerErrors = {
11357
11222
  /**
11358
11223
  * Missing credential, or one that is revoked or no longer a member of this organization.
11359
11224
  */
11360
11225
  401: ErrorResponse;
11226
+ /**
11227
+ * The request did not match this operation's schema; `detail.errors` lists each field.
11228
+ */
11229
+ 422: ErrorResponse;
11361
11230
  /**
11362
11231
  * Unexpected error. Every error this API returns carries this body.
11363
11232
  */
11364
11233
  default: ErrorResponse;
11365
11234
  };
11366
11235
 
11367
- export type AuthMeError = AuthMeErrors[keyof AuthMeErrors];
11236
+ export type BillingCreditsLedgerError = BillingCreditsLedgerErrors[keyof BillingCreditsLedgerErrors];
11368
11237
 
11369
- export type AuthMeResults = {
11238
+ export type BillingCreditsLedgerResults = {
11370
11239
  /**
11371
11240
  * Successful Response
11372
11241
  */
11373
- 200: AuthContextResponse;
11242
+ 200: PageCreditLedgerEntryResponse;
11374
11243
  };
11375
11244
 
11376
- export type AuthMeResult = AuthMeResults[keyof AuthMeResults];
11245
+ export type BillingCreditsLedgerResult = BillingCreditsLedgerResults[keyof BillingCreditsLedgerResults];
11377
11246
 
11378
11247
  export type ProviderKeysListData = {
11379
11248
  body?: never;
@@ -12129,6 +11998,10 @@ export type CallsOutboundErrors = {
12129
11998
  * Missing credential, or one that is revoked or no longer a member of this organization.
12130
11999
  */
12131
12000
  401: ErrorResponse;
12001
+ /**
12002
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
12003
+ */
12004
+ 402: ErrorResponse;
12132
12005
  /**
12133
12006
  * Authenticated, but this organization role may not perform the operation.
12134
12007
  */
@@ -12225,7 +12098,11 @@ export type CallsTokenErrors = {
12225
12098
  */
12226
12099
  401: ErrorResponse;
12227
12100
  /**
12228
- * Authenticated, but this organization role may not perform the operation.
12101
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
12102
+ */
12103
+ 402: ErrorResponse;
12104
+ /**
12105
+ * Authenticated, but this organization role may not perform the operation.
12229
12106
  */
12230
12107
  403: ErrorResponse;
12231
12108
  /**
@@ -15501,35 +15378,6 @@ export type KnowledgeRegenerateTocResults = {
15501
15378
 
15502
15379
  export type KnowledgeRegenerateTocResult = KnowledgeRegenerateTocResults[keyof KnowledgeRegenerateTocResults];
15503
15380
 
15504
- export type TokensMcpData = {
15505
- body?: never;
15506
- path?: never;
15507
- query?: never;
15508
- url: '/v1/mcp-token';
15509
- };
15510
-
15511
- export type TokensMcpErrors = {
15512
- /**
15513
- * Missing credential, or one that is revoked or no longer a member of this organization.
15514
- */
15515
- 401: ErrorResponse;
15516
- /**
15517
- * Unexpected error. Every error this API returns carries this body.
15518
- */
15519
- default: ErrorResponse;
15520
- };
15521
-
15522
- export type TokensMcpError = TokensMcpErrors[keyof TokensMcpErrors];
15523
-
15524
- export type TokensMcpResults = {
15525
- /**
15526
- * Successful Response
15527
- */
15528
- 200: McpTokenResponse;
15529
- };
15530
-
15531
- export type TokensMcpResult = TokensMcpResults[keyof TokensMcpResults];
15532
-
15533
15381
  export type ObservabilityGetData = {
15534
15382
  body?: never;
15535
15383
  path?: never;
@@ -15584,30 +15432,69 @@ export type ObservabilityGetResults = {
15584
15432
 
15585
15433
  export type ObservabilityGetResult = ObservabilityGetResults[keyof ObservabilityGetResults];
15586
15434
 
15587
- export type OrgsUpdateData = {
15588
- body: PatchOrgRequest;
15589
- path?: never;
15435
+ export type SchemasFunctionsGetData = {
15436
+ body?: never;
15437
+ path: {
15438
+ /**
15439
+ * Name
15440
+ */
15441
+ name: string;
15442
+ };
15590
15443
  query?: never;
15591
- url: '/v1/org';
15444
+ url: '/v1/schemas/functions/{name}';
15592
15445
  };
15593
15446
 
15594
- export type OrgsUpdateErrors = {
15595
- /**
15596
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15597
- */
15598
- 400: ErrorResponse;
15447
+ export type SchemasFunctionsGetErrors = {
15599
15448
  /**
15600
15449
  * Missing credential, or one that is revoked or no longer a member of this organization.
15601
15450
  */
15602
15451
  401: ErrorResponse;
15603
15452
  /**
15604
- * Authenticated, but this organization role may not perform the operation.
15453
+ * No such resource in this organization.
15605
15454
  */
15606
- 403: ErrorResponse;
15455
+ 404: ErrorResponse;
15607
15456
  /**
15608
- * The resource's current state forbids this a name already taken, a job already running.
15457
+ * The request did not match this operation's schema; `detail.errors` lists each field.
15609
15458
  */
15610
- 409: ErrorResponse;
15459
+ 422: ErrorResponse;
15460
+ /**
15461
+ * Unexpected error. Every error this API returns carries this body.
15462
+ */
15463
+ default: ErrorResponse;
15464
+ };
15465
+
15466
+ export type SchemasFunctionsGetError = SchemasFunctionsGetErrors[keyof SchemasFunctionsGetErrors];
15467
+
15468
+ export type SchemasFunctionsGetResults = {
15469
+ /**
15470
+ * Successful Response
15471
+ */
15472
+ 200: FunctionArgumentsResponse;
15473
+ };
15474
+
15475
+ export type SchemasFunctionsGetResult = SchemasFunctionsGetResults[keyof SchemasFunctionsGetResults];
15476
+
15477
+ export type SchemasGetData = {
15478
+ body?: never;
15479
+ path: {
15480
+ /**
15481
+ * Name
15482
+ */
15483
+ name: 'AgentConfig' | 'AgentOverride' | 'AgentTeam' | 'TaskConfig' | 'ToolOperations';
15484
+ };
15485
+ query?: never;
15486
+ url: '/v1/schemas/{name}';
15487
+ };
15488
+
15489
+ export type SchemasGetErrors = {
15490
+ /**
15491
+ * Missing credential, or one that is revoked or no longer a member of this organization.
15492
+ */
15493
+ 401: ErrorResponse;
15494
+ /**
15495
+ * No such resource in this organization.
15496
+ */
15497
+ 404: ErrorResponse;
15611
15498
  /**
15612
15499
  * The request did not match this operation's schema; `detail.errors` lists each field.
15613
15500
  */
@@ -15618,18 +15505,18 @@ export type OrgsUpdateErrors = {
15618
15505
  default: ErrorResponse;
15619
15506
  };
15620
15507
 
15621
- export type OrgsUpdateError = OrgsUpdateErrors[keyof OrgsUpdateErrors];
15508
+ export type SchemasGetError = SchemasGetErrors[keyof SchemasGetErrors];
15622
15509
 
15623
- export type OrgsUpdateResults = {
15510
+ export type SchemasGetResults = {
15624
15511
  /**
15625
15512
  * Successful Response
15626
15513
  */
15627
- 200: OrgResponse;
15514
+ 200: SchemaDocumentResponse;
15628
15515
  };
15629
15516
 
15630
- export type OrgsUpdateResult = OrgsUpdateResults[keyof OrgsUpdateResults];
15517
+ export type SchemasGetResult = SchemasGetResults[keyof SchemasGetResults];
15631
15518
 
15632
- export type OrgsInvitesListData = {
15519
+ export type SecretsListData = {
15633
15520
  body?: never;
15634
15521
  path?: never;
15635
15522
  query?: {
@@ -15642,18 +15529,14 @@ export type OrgsInvitesListData = {
15642
15529
  */
15643
15530
  offset?: number;
15644
15531
  };
15645
- url: '/v1/org/invites';
15532
+ url: '/v1/secrets';
15646
15533
  };
15647
15534
 
15648
- export type OrgsInvitesListErrors = {
15535
+ export type SecretsListErrors = {
15649
15536
  /**
15650
15537
  * Missing credential, or one that is revoked or no longer a member of this organization.
15651
15538
  */
15652
15539
  401: ErrorResponse;
15653
- /**
15654
- * Authenticated, but this organization role may not perform the operation.
15655
- */
15656
- 403: ErrorResponse;
15657
15540
  /**
15658
15541
  * The request did not match this operation's schema; `detail.errors` lists each field.
15659
15542
  */
@@ -15664,25 +15547,25 @@ export type OrgsInvitesListErrors = {
15664
15547
  default: ErrorResponse;
15665
15548
  };
15666
15549
 
15667
- export type OrgsInvitesListError = OrgsInvitesListErrors[keyof OrgsInvitesListErrors];
15550
+ export type SecretsListError = SecretsListErrors[keyof SecretsListErrors];
15668
15551
 
15669
- export type OrgsInvitesListResults = {
15552
+ export type SecretsListResults = {
15670
15553
  /**
15671
15554
  * Successful Response
15672
15555
  */
15673
- 200: PageInviteResponse;
15556
+ 200: PageSecretResponse;
15674
15557
  };
15675
15558
 
15676
- export type OrgsInvitesListResult = OrgsInvitesListResults[keyof OrgsInvitesListResults];
15559
+ export type SecretsListResult = SecretsListResults[keyof SecretsListResults];
15677
15560
 
15678
- export type OrgsInvitesCreateData = {
15679
- body: InviteRequest;
15561
+ export type SecretsCreateData = {
15562
+ body: CreateSecretRequest;
15680
15563
  path?: never;
15681
15564
  query?: never;
15682
- url: '/v1/org/invites';
15565
+ url: '/v1/secrets';
15683
15566
  };
15684
15567
 
15685
- export type OrgsInvitesCreateErrors = {
15568
+ export type SecretsCreateErrors = {
15686
15569
  /**
15687
15570
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15688
15571
  */
@@ -15709,30 +15592,30 @@ export type OrgsInvitesCreateErrors = {
15709
15592
  default: ErrorResponse;
15710
15593
  };
15711
15594
 
15712
- export type OrgsInvitesCreateError = OrgsInvitesCreateErrors[keyof OrgsInvitesCreateErrors];
15595
+ export type SecretsCreateError = SecretsCreateErrors[keyof SecretsCreateErrors];
15713
15596
 
15714
- export type OrgsInvitesCreateResults = {
15597
+ export type SecretsCreateResults = {
15715
15598
  /**
15716
15599
  * Successful Response
15717
15600
  */
15718
- 201: InviteResponse;
15601
+ 201: SecretResponse;
15719
15602
  };
15720
15603
 
15721
- export type OrgsInvitesCreateResult = OrgsInvitesCreateResults[keyof OrgsInvitesCreateResults];
15604
+ export type SecretsCreateResult = SecretsCreateResults[keyof SecretsCreateResults];
15722
15605
 
15723
- export type OrgsInvitesRevokeData = {
15606
+ export type SecretsDeleteData = {
15724
15607
  body?: never;
15725
15608
  path: {
15726
15609
  /**
15727
- * Invite Id
15610
+ * Secret Id
15728
15611
  */
15729
- invite_id: string;
15612
+ secret_id: string;
15730
15613
  };
15731
15614
  query?: never;
15732
- url: '/v1/org/invites/{invite_id}';
15615
+ url: '/v1/secrets/{secret_id}';
15733
15616
  };
15734
15617
 
15735
- export type OrgsInvitesRevokeErrors = {
15618
+ export type SecretsDeleteErrors = {
15736
15619
  /**
15737
15620
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15738
15621
  */
@@ -15763,55 +15646,18 @@ export type OrgsInvitesRevokeErrors = {
15763
15646
  default: ErrorResponse;
15764
15647
  };
15765
15648
 
15766
- export type OrgsInvitesRevokeError = OrgsInvitesRevokeErrors[keyof OrgsInvitesRevokeErrors];
15767
-
15768
- export type OrgsInvitesRevokeResults = {
15769
- /**
15770
- * Successful Response
15771
- */
15772
- 200: OkResponse;
15773
- };
15774
-
15775
- export type OrgsInvitesRevokeResult = OrgsInvitesRevokeResults[keyof OrgsInvitesRevokeResults];
15776
-
15777
- export type OrgsLeaveData = {
15778
- body?: never;
15779
- path?: never;
15780
- query?: never;
15781
- url: '/v1/org/leave';
15782
- };
15783
-
15784
- export type OrgsLeaveErrors = {
15785
- /**
15786
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15787
- */
15788
- 400: ErrorResponse;
15789
- /**
15790
- * Missing credential, or one that is revoked or no longer a member of this organization.
15791
- */
15792
- 401: ErrorResponse;
15793
- /**
15794
- * The resource's current state forbids this — a name already taken, a job already running.
15795
- */
15796
- 409: ErrorResponse;
15797
- /**
15798
- * Unexpected error. Every error this API returns carries this body.
15799
- */
15800
- default: ErrorResponse;
15801
- };
15802
-
15803
- export type OrgsLeaveError = OrgsLeaveErrors[keyof OrgsLeaveErrors];
15649
+ export type SecretsDeleteError = SecretsDeleteErrors[keyof SecretsDeleteErrors];
15804
15650
 
15805
- export type OrgsLeaveResults = {
15651
+ export type SecretsDeleteResults = {
15806
15652
  /**
15807
15653
  * Successful Response
15808
15654
  */
15809
15655
  200: OkResponse;
15810
15656
  };
15811
15657
 
15812
- export type OrgsLeaveResult = OrgsLeaveResults[keyof OrgsLeaveResults];
15658
+ export type SecretsDeleteResult = SecretsDeleteResults[keyof SecretsDeleteResults];
15813
15659
 
15814
- export type OrgsMembersListData = {
15660
+ export type TasksListData = {
15815
15661
  body?: never;
15816
15662
  path?: never;
15817
15663
  query?: {
@@ -15824,10 +15670,10 @@ export type OrgsMembersListData = {
15824
15670
  */
15825
15671
  offset?: number;
15826
15672
  };
15827
- url: '/v1/org/members';
15673
+ url: '/v1/tasks';
15828
15674
  };
15829
15675
 
15830
- export type OrgsMembersListErrors = {
15676
+ export type TasksListErrors = {
15831
15677
  /**
15832
15678
  * Missing credential, or one that is revoked or no longer a member of this organization.
15833
15679
  */
@@ -15842,30 +15688,25 @@ export type OrgsMembersListErrors = {
15842
15688
  default: ErrorResponse;
15843
15689
  };
15844
15690
 
15845
- export type OrgsMembersListError = OrgsMembersListErrors[keyof OrgsMembersListErrors];
15691
+ export type TasksListError = TasksListErrors[keyof TasksListErrors];
15846
15692
 
15847
- export type OrgsMembersListResults = {
15693
+ export type TasksListResults = {
15848
15694
  /**
15849
15695
  * Successful Response
15850
15696
  */
15851
- 200: PageMemberResponse;
15697
+ 200: PageTaskResponse;
15852
15698
  };
15853
15699
 
15854
- export type OrgsMembersListResult = OrgsMembersListResults[keyof OrgsMembersListResults];
15700
+ export type TasksListResult = TasksListResults[keyof TasksListResults];
15855
15701
 
15856
- export type OrgsMembersRemoveData = {
15857
- body?: never;
15858
- path: {
15859
- /**
15860
- * User Id
15861
- */
15862
- user_id: string;
15863
- };
15702
+ export type TasksCreateData = {
15703
+ body: CreateTaskRequest;
15704
+ path?: never;
15864
15705
  query?: never;
15865
- url: '/v1/org/members/{user_id}';
15706
+ url: '/v1/tasks';
15866
15707
  };
15867
15708
 
15868
- export type OrgsMembersRemoveErrors = {
15709
+ export type TasksCreateErrors = {
15869
15710
  /**
15870
15711
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15871
15712
  */
@@ -15878,10 +15719,6 @@ export type OrgsMembersRemoveErrors = {
15878
15719
  * Authenticated, but this organization role may not perform the operation.
15879
15720
  */
15880
15721
  403: ErrorResponse;
15881
- /**
15882
- * No such resource in this organization.
15883
- */
15884
- 404: ErrorResponse;
15885
15722
  /**
15886
15723
  * The resource's current state forbids this — a name already taken, a job already running.
15887
15724
  */
@@ -15896,30 +15733,30 @@ export type OrgsMembersRemoveErrors = {
15896
15733
  default: ErrorResponse;
15897
15734
  };
15898
15735
 
15899
- export type OrgsMembersRemoveError = OrgsMembersRemoveErrors[keyof OrgsMembersRemoveErrors];
15736
+ export type TasksCreateError = TasksCreateErrors[keyof TasksCreateErrors];
15900
15737
 
15901
- export type OrgsMembersRemoveResults = {
15738
+ export type TasksCreateResults = {
15902
15739
  /**
15903
15740
  * Successful Response
15904
15741
  */
15905
- 200: OkResponse;
15742
+ 201: TaskWriteResponse;
15906
15743
  };
15907
15744
 
15908
- export type OrgsMembersRemoveResult = OrgsMembersRemoveResults[keyof OrgsMembersRemoveResults];
15745
+ export type TasksCreateResult = TasksCreateResults[keyof TasksCreateResults];
15909
15746
 
15910
- export type OrgsMembersSetRoleData = {
15911
- body: RoleRequest;
15747
+ export type TasksDeleteData = {
15748
+ body?: never;
15912
15749
  path: {
15913
15750
  /**
15914
- * User Id
15751
+ * Task Id
15915
15752
  */
15916
- user_id: string;
15753
+ task_id: string;
15917
15754
  };
15918
15755
  query?: never;
15919
- url: '/v1/org/members/{user_id}';
15756
+ url: '/v1/tasks/{task_id}';
15920
15757
  };
15921
15758
 
15922
- export type OrgsMembersSetRoleErrors = {
15759
+ export type TasksDeleteErrors = {
15923
15760
  /**
15924
15761
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15925
15762
  */
@@ -15950,38 +15787,38 @@ export type OrgsMembersSetRoleErrors = {
15950
15787
  default: ErrorResponse;
15951
15788
  };
15952
15789
 
15953
- export type OrgsMembersSetRoleError = OrgsMembersSetRoleErrors[keyof OrgsMembersSetRoleErrors];
15790
+ export type TasksDeleteError = TasksDeleteErrors[keyof TasksDeleteErrors];
15954
15791
 
15955
- export type OrgsMembersSetRoleResults = {
15792
+ export type TasksDeleteResults = {
15956
15793
  /**
15957
15794
  * Successful Response
15958
15795
  */
15959
- 200: MemberResponse;
15796
+ 200: OkResponse;
15960
15797
  };
15961
15798
 
15962
- export type OrgsMembersSetRoleResult = OrgsMembersSetRoleResults[keyof OrgsMembersSetRoleResults];
15799
+ export type TasksDeleteResult = TasksDeleteResults[keyof TasksDeleteResults];
15963
15800
 
15964
- export type OrgsListData = {
15801
+ export type TasksGetData = {
15965
15802
  body?: never;
15966
- path?: never;
15967
- query?: {
15968
- /**
15969
- * Limit
15970
- */
15971
- limit?: number;
15803
+ path: {
15972
15804
  /**
15973
- * Offset
15805
+ * Task Id
15974
15806
  */
15975
- offset?: number;
15807
+ task_id: string;
15976
15808
  };
15977
- url: '/v1/orgs';
15809
+ query?: never;
15810
+ url: '/v1/tasks/{task_id}';
15978
15811
  };
15979
15812
 
15980
- export type OrgsListErrors = {
15813
+ export type TasksGetErrors = {
15981
15814
  /**
15982
15815
  * Missing credential, or one that is revoked or no longer a member of this organization.
15983
15816
  */
15984
15817
  401: ErrorResponse;
15818
+ /**
15819
+ * No such resource in this organization.
15820
+ */
15821
+ 404: ErrorResponse;
15985
15822
  /**
15986
15823
  * The request did not match this operation's schema; `detail.errors` lists each field.
15987
15824
  */
@@ -15992,25 +15829,30 @@ export type OrgsListErrors = {
15992
15829
  default: ErrorResponse;
15993
15830
  };
15994
15831
 
15995
- export type OrgsListError = OrgsListErrors[keyof OrgsListErrors];
15832
+ export type TasksGetError = TasksGetErrors[keyof TasksGetErrors];
15996
15833
 
15997
- export type OrgsListResults = {
15834
+ export type TasksGetResults = {
15998
15835
  /**
15999
15836
  * Successful Response
16000
15837
  */
16001
- 200: PageOrgResponse;
15838
+ 200: TaskResponse;
16002
15839
  };
16003
15840
 
16004
- export type OrgsListResult = OrgsListResults[keyof OrgsListResults];
15841
+ export type TasksGetResult = TasksGetResults[keyof TasksGetResults];
16005
15842
 
16006
- export type OrgsCreateData = {
16007
- body: OrgNameRequest;
16008
- path?: never;
15843
+ export type TasksUpdateData = {
15844
+ body: PatchTaskRequest;
15845
+ path: {
15846
+ /**
15847
+ * Task Id
15848
+ */
15849
+ task_id: string;
15850
+ };
16009
15851
  query?: never;
16010
- url: '/v1/orgs';
15852
+ url: '/v1/tasks/{task_id}';
16011
15853
  };
16012
15854
 
16013
- export type OrgsCreateErrors = {
15855
+ export type TasksUpdateErrors = {
16014
15856
  /**
16015
15857
  * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16016
15858
  */
@@ -16019,6 +15861,14 @@ export type OrgsCreateErrors = {
16019
15861
  * Missing credential, or one that is revoked or no longer a member of this organization.
16020
15862
  */
16021
15863
  401: ErrorResponse;
15864
+ /**
15865
+ * Authenticated, but this organization role may not perform the operation.
15866
+ */
15867
+ 403: ErrorResponse;
15868
+ /**
15869
+ * No such resource in this organization.
15870
+ */
15871
+ 404: ErrorResponse;
16022
15872
  /**
16023
15873
  * The resource's current state forbids this — a name already taken, a job already running.
16024
15874
  */
@@ -16033,34 +15883,39 @@ export type OrgsCreateErrors = {
16033
15883
  default: ErrorResponse;
16034
15884
  };
16035
15885
 
16036
- export type OrgsCreateError = OrgsCreateErrors[keyof OrgsCreateErrors];
15886
+ export type TasksUpdateError = TasksUpdateErrors[keyof TasksUpdateErrors];
16037
15887
 
16038
- export type OrgsCreateResults = {
15888
+ export type TasksUpdateResults = {
16039
15889
  /**
16040
15890
  * Successful Response
16041
15891
  */
16042
- 201: OrgResponse;
15892
+ 200: TaskWriteResponse;
16043
15893
  };
16044
15894
 
16045
- export type OrgsCreateResult = OrgsCreateResults[keyof OrgsCreateResults];
15895
+ export type TasksUpdateResult = TasksUpdateResults[keyof TasksUpdateResults];
16046
15896
 
16047
- export type OrgsSwitchData = {
15897
+ export type TasksRunsListData = {
16048
15898
  body?: never;
16049
15899
  path: {
16050
15900
  /**
16051
- * Org Id
15901
+ * Task Id
15902
+ */
15903
+ task_id: string;
15904
+ };
15905
+ query?: {
15906
+ /**
15907
+ * Limit
15908
+ */
15909
+ limit?: number;
15910
+ /**
15911
+ * Offset
16052
15912
  */
16053
- org_id: string;
15913
+ offset?: number;
16054
15914
  };
16055
- query?: never;
16056
- url: '/v1/orgs/{org_id}/switch';
15915
+ url: '/v1/tasks/{task_id}/runs';
16057
15916
  };
16058
15917
 
16059
- export type OrgsSwitchErrors = {
16060
- /**
16061
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16062
- */
16063
- 400: ErrorResponse;
15918
+ export type TasksRunsListErrors = {
16064
15919
  /**
16065
15920
  * Missing credential, or one that is revoked or no longer a member of this organization.
16066
15921
  */
@@ -16069,10 +15924,6 @@ export type OrgsSwitchErrors = {
16069
15924
  * No such resource in this organization.
16070
15925
  */
16071
15926
  404: ErrorResponse;
16072
- /**
16073
- * The resource's current state forbids this — a name already taken, a job already running.
16074
- */
16075
- 409: ErrorResponse;
16076
15927
  /**
16077
15928
  * The request did not match this operation's schema; `detail.errors` lists each field.
16078
15929
  */
@@ -16083,490 +15934,19 @@ export type OrgsSwitchErrors = {
16083
15934
  default: ErrorResponse;
16084
15935
  };
16085
15936
 
16086
- export type OrgsSwitchError = OrgsSwitchErrors[keyof OrgsSwitchErrors];
15937
+ export type TasksRunsListError = TasksRunsListErrors[keyof TasksRunsListErrors];
16087
15938
 
16088
- export type OrgsSwitchResults = {
15939
+ export type TasksRunsListResults = {
16089
15940
  /**
16090
15941
  * Successful Response
16091
15942
  */
16092
- 200: OkResponse;
15943
+ 200: PageTaskRunResponse;
16093
15944
  };
16094
15945
 
16095
- export type OrgsSwitchResult = OrgsSwitchResults[keyof OrgsSwitchResults];
15946
+ export type TasksRunsListResult = TasksRunsListResults[keyof TasksRunsListResults];
16096
15947
 
16097
- export type SchemasGetData = {
16098
- body?: never;
16099
- path: {
16100
- /**
16101
- * Name
16102
- */
16103
- name: 'AgentConfig' | 'AgentOverride' | 'AgentTeam' | 'TaskConfig' | 'ToolOperations';
16104
- };
16105
- query?: never;
16106
- url: '/v1/schemas/{name}';
16107
- };
16108
-
16109
- export type SchemasGetErrors = {
16110
- /**
16111
- * Missing credential, or one that is revoked or no longer a member of this organization.
16112
- */
16113
- 401: ErrorResponse;
16114
- /**
16115
- * No such resource in this organization.
16116
- */
16117
- 404: ErrorResponse;
16118
- /**
16119
- * The request did not match this operation's schema; `detail.errors` lists each field.
16120
- */
16121
- 422: ErrorResponse;
16122
- /**
16123
- * Unexpected error. Every error this API returns carries this body.
16124
- */
16125
- default: ErrorResponse;
16126
- };
16127
-
16128
- export type SchemasGetError = SchemasGetErrors[keyof SchemasGetErrors];
16129
-
16130
- export type SchemasGetResults = {
16131
- /**
16132
- * Successful Response
16133
- */
16134
- 200: SchemaDocumentResponse;
16135
- };
16136
-
16137
- export type SchemasGetResult = SchemasGetResults[keyof SchemasGetResults];
16138
-
16139
- export type SecretsListData = {
16140
- body?: never;
16141
- path?: never;
16142
- query?: {
16143
- /**
16144
- * Limit
16145
- */
16146
- limit?: number;
16147
- /**
16148
- * Offset
16149
- */
16150
- offset?: number;
16151
- };
16152
- url: '/v1/secrets';
16153
- };
16154
-
16155
- export type SecretsListErrors = {
16156
- /**
16157
- * Missing credential, or one that is revoked or no longer a member of this organization.
16158
- */
16159
- 401: ErrorResponse;
16160
- /**
16161
- * The request did not match this operation's schema; `detail.errors` lists each field.
16162
- */
16163
- 422: ErrorResponse;
16164
- /**
16165
- * Unexpected error. Every error this API returns carries this body.
16166
- */
16167
- default: ErrorResponse;
16168
- };
16169
-
16170
- export type SecretsListError = SecretsListErrors[keyof SecretsListErrors];
16171
-
16172
- export type SecretsListResults = {
16173
- /**
16174
- * Successful Response
16175
- */
16176
- 200: PageSecretResponse;
16177
- };
16178
-
16179
- export type SecretsListResult = SecretsListResults[keyof SecretsListResults];
16180
-
16181
- export type SecretsCreateData = {
16182
- body: CreateSecretRequest;
16183
- path?: never;
16184
- query?: never;
16185
- url: '/v1/secrets';
16186
- };
16187
-
16188
- export type SecretsCreateErrors = {
16189
- /**
16190
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16191
- */
16192
- 400: ErrorResponse;
16193
- /**
16194
- * Missing credential, or one that is revoked or no longer a member of this organization.
16195
- */
16196
- 401: ErrorResponse;
16197
- /**
16198
- * Authenticated, but this organization role may not perform the operation.
16199
- */
16200
- 403: ErrorResponse;
16201
- /**
16202
- * The resource's current state forbids this — a name already taken, a job already running.
16203
- */
16204
- 409: ErrorResponse;
16205
- /**
16206
- * The request did not match this operation's schema; `detail.errors` lists each field.
16207
- */
16208
- 422: ErrorResponse;
16209
- /**
16210
- * Unexpected error. Every error this API returns carries this body.
16211
- */
16212
- default: ErrorResponse;
16213
- };
16214
-
16215
- export type SecretsCreateError = SecretsCreateErrors[keyof SecretsCreateErrors];
16216
-
16217
- export type SecretsCreateResults = {
16218
- /**
16219
- * Successful Response
16220
- */
16221
- 201: SecretResponse;
16222
- };
16223
-
16224
- export type SecretsCreateResult = SecretsCreateResults[keyof SecretsCreateResults];
16225
-
16226
- export type SecretsDeleteData = {
16227
- body?: never;
16228
- path: {
16229
- /**
16230
- * Secret Id
16231
- */
16232
- secret_id: string;
16233
- };
16234
- query?: never;
16235
- url: '/v1/secrets/{secret_id}';
16236
- };
16237
-
16238
- export type SecretsDeleteErrors = {
16239
- /**
16240
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16241
- */
16242
- 400: ErrorResponse;
16243
- /**
16244
- * Missing credential, or one that is revoked or no longer a member of this organization.
16245
- */
16246
- 401: ErrorResponse;
16247
- /**
16248
- * Authenticated, but this organization role may not perform the operation.
16249
- */
16250
- 403: ErrorResponse;
16251
- /**
16252
- * No such resource in this organization.
16253
- */
16254
- 404: ErrorResponse;
16255
- /**
16256
- * The resource's current state forbids this — a name already taken, a job already running.
16257
- */
16258
- 409: ErrorResponse;
16259
- /**
16260
- * The request did not match this operation's schema; `detail.errors` lists each field.
16261
- */
16262
- 422: ErrorResponse;
16263
- /**
16264
- * Unexpected error. Every error this API returns carries this body.
16265
- */
16266
- default: ErrorResponse;
16267
- };
16268
-
16269
- export type SecretsDeleteError = SecretsDeleteErrors[keyof SecretsDeleteErrors];
16270
-
16271
- export type SecretsDeleteResults = {
16272
- /**
16273
- * Successful Response
16274
- */
16275
- 200: OkResponse;
16276
- };
16277
-
16278
- export type SecretsDeleteResult = SecretsDeleteResults[keyof SecretsDeleteResults];
16279
-
16280
- export type TasksListData = {
16281
- body?: never;
16282
- path?: never;
16283
- query?: {
16284
- /**
16285
- * Limit
16286
- */
16287
- limit?: number;
16288
- /**
16289
- * Offset
16290
- */
16291
- offset?: number;
16292
- };
16293
- url: '/v1/tasks';
16294
- };
16295
-
16296
- export type TasksListErrors = {
16297
- /**
16298
- * Missing credential, or one that is revoked or no longer a member of this organization.
16299
- */
16300
- 401: ErrorResponse;
16301
- /**
16302
- * The request did not match this operation's schema; `detail.errors` lists each field.
16303
- */
16304
- 422: ErrorResponse;
16305
- /**
16306
- * Unexpected error. Every error this API returns carries this body.
16307
- */
16308
- default: ErrorResponse;
16309
- };
16310
-
16311
- export type TasksListError = TasksListErrors[keyof TasksListErrors];
16312
-
16313
- export type TasksListResults = {
16314
- /**
16315
- * Successful Response
16316
- */
16317
- 200: PageTaskResponse;
16318
- };
16319
-
16320
- export type TasksListResult = TasksListResults[keyof TasksListResults];
16321
-
16322
- export type TasksCreateData = {
16323
- body: CreateTaskRequest;
16324
- path?: never;
16325
- query?: never;
16326
- url: '/v1/tasks';
16327
- };
16328
-
16329
- export type TasksCreateErrors = {
16330
- /**
16331
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16332
- */
16333
- 400: ErrorResponse;
16334
- /**
16335
- * Missing credential, or one that is revoked or no longer a member of this organization.
16336
- */
16337
- 401: ErrorResponse;
16338
- /**
16339
- * Authenticated, but this organization role may not perform the operation.
16340
- */
16341
- 403: ErrorResponse;
16342
- /**
16343
- * The resource's current state forbids this — a name already taken, a job already running.
16344
- */
16345
- 409: ErrorResponse;
16346
- /**
16347
- * The request did not match this operation's schema; `detail.errors` lists each field.
16348
- */
16349
- 422: ErrorResponse;
16350
- /**
16351
- * Unexpected error. Every error this API returns carries this body.
16352
- */
16353
- default: ErrorResponse;
16354
- };
16355
-
16356
- export type TasksCreateError = TasksCreateErrors[keyof TasksCreateErrors];
16357
-
16358
- export type TasksCreateResults = {
16359
- /**
16360
- * Successful Response
16361
- */
16362
- 201: TaskWriteResponse;
16363
- };
16364
-
16365
- export type TasksCreateResult = TasksCreateResults[keyof TasksCreateResults];
16366
-
16367
- export type TasksDeleteData = {
16368
- body?: never;
16369
- path: {
16370
- /**
16371
- * Task Id
16372
- */
16373
- task_id: string;
16374
- };
16375
- query?: never;
16376
- url: '/v1/tasks/{task_id}';
16377
- };
16378
-
16379
- export type TasksDeleteErrors = {
16380
- /**
16381
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16382
- */
16383
- 400: ErrorResponse;
16384
- /**
16385
- * Missing credential, or one that is revoked or no longer a member of this organization.
16386
- */
16387
- 401: ErrorResponse;
16388
- /**
16389
- * Authenticated, but this organization role may not perform the operation.
16390
- */
16391
- 403: ErrorResponse;
16392
- /**
16393
- * No such resource in this organization.
16394
- */
16395
- 404: ErrorResponse;
16396
- /**
16397
- * The resource's current state forbids this — a name already taken, a job already running.
16398
- */
16399
- 409: ErrorResponse;
16400
- /**
16401
- * The request did not match this operation's schema; `detail.errors` lists each field.
16402
- */
16403
- 422: ErrorResponse;
16404
- /**
16405
- * Unexpected error. Every error this API returns carries this body.
16406
- */
16407
- default: ErrorResponse;
16408
- };
16409
-
16410
- export type TasksDeleteError = TasksDeleteErrors[keyof TasksDeleteErrors];
16411
-
16412
- export type TasksDeleteResults = {
16413
- /**
16414
- * Successful Response
16415
- */
16416
- 200: OkResponse;
16417
- };
16418
-
16419
- export type TasksDeleteResult = TasksDeleteResults[keyof TasksDeleteResults];
16420
-
16421
- export type TasksGetData = {
16422
- body?: never;
16423
- path: {
16424
- /**
16425
- * Task Id
16426
- */
16427
- task_id: string;
16428
- };
16429
- query?: never;
16430
- url: '/v1/tasks/{task_id}';
16431
- };
16432
-
16433
- export type TasksGetErrors = {
16434
- /**
16435
- * Missing credential, or one that is revoked or no longer a member of this organization.
16436
- */
16437
- 401: ErrorResponse;
16438
- /**
16439
- * No such resource in this organization.
16440
- */
16441
- 404: ErrorResponse;
16442
- /**
16443
- * The request did not match this operation's schema; `detail.errors` lists each field.
16444
- */
16445
- 422: ErrorResponse;
16446
- /**
16447
- * Unexpected error. Every error this API returns carries this body.
16448
- */
16449
- default: ErrorResponse;
16450
- };
16451
-
16452
- export type TasksGetError = TasksGetErrors[keyof TasksGetErrors];
16453
-
16454
- export type TasksGetResults = {
16455
- /**
16456
- * Successful Response
16457
- */
16458
- 200: TaskResponse;
16459
- };
16460
-
16461
- export type TasksGetResult = TasksGetResults[keyof TasksGetResults];
16462
-
16463
- export type TasksUpdateData = {
16464
- body: PatchTaskRequest;
16465
- path: {
16466
- /**
16467
- * Task Id
16468
- */
16469
- task_id: string;
16470
- };
16471
- query?: never;
16472
- url: '/v1/tasks/{task_id}';
16473
- };
16474
-
16475
- export type TasksUpdateErrors = {
16476
- /**
16477
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16478
- */
16479
- 400: ErrorResponse;
16480
- /**
16481
- * Missing credential, or one that is revoked or no longer a member of this organization.
16482
- */
16483
- 401: ErrorResponse;
16484
- /**
16485
- * Authenticated, but this organization role may not perform the operation.
16486
- */
16487
- 403: ErrorResponse;
16488
- /**
16489
- * No such resource in this organization.
16490
- */
16491
- 404: ErrorResponse;
16492
- /**
16493
- * The resource's current state forbids this — a name already taken, a job already running.
16494
- */
16495
- 409: ErrorResponse;
16496
- /**
16497
- * The request did not match this operation's schema; `detail.errors` lists each field.
16498
- */
16499
- 422: ErrorResponse;
16500
- /**
16501
- * Unexpected error. Every error this API returns carries this body.
16502
- */
16503
- default: ErrorResponse;
16504
- };
16505
-
16506
- export type TasksUpdateError = TasksUpdateErrors[keyof TasksUpdateErrors];
16507
-
16508
- export type TasksUpdateResults = {
16509
- /**
16510
- * Successful Response
16511
- */
16512
- 200: TaskWriteResponse;
16513
- };
16514
-
16515
- export type TasksUpdateResult = TasksUpdateResults[keyof TasksUpdateResults];
16516
-
16517
- export type TasksRunsListData = {
16518
- body?: never;
16519
- path: {
16520
- /**
16521
- * Task Id
16522
- */
16523
- task_id: string;
16524
- };
16525
- query?: {
16526
- /**
16527
- * Limit
16528
- */
16529
- limit?: number;
16530
- /**
16531
- * Offset
16532
- */
16533
- offset?: number;
16534
- };
16535
- url: '/v1/tasks/{task_id}/runs';
16536
- };
16537
-
16538
- export type TasksRunsListErrors = {
16539
- /**
16540
- * Missing credential, or one that is revoked or no longer a member of this organization.
16541
- */
16542
- 401: ErrorResponse;
16543
- /**
16544
- * No such resource in this organization.
16545
- */
16546
- 404: ErrorResponse;
16547
- /**
16548
- * The request did not match this operation's schema; `detail.errors` lists each field.
16549
- */
16550
- 422: ErrorResponse;
16551
- /**
16552
- * Unexpected error. Every error this API returns carries this body.
16553
- */
16554
- default: ErrorResponse;
16555
- };
16556
-
16557
- export type TasksRunsListError = TasksRunsListErrors[keyof TasksRunsListErrors];
16558
-
16559
- export type TasksRunsListResults = {
16560
- /**
16561
- * Successful Response
16562
- */
16563
- 200: PageTaskRunResponse;
16564
- };
16565
-
16566
- export type TasksRunsListResult = TasksRunsListResults[keyof TasksRunsListResults];
16567
-
16568
- export type TasksRunsCreateData = {
16569
- body: RunTaskRequest;
15948
+ export type TasksRunsCreateData = {
15949
+ body: RunTaskRequest;
16570
15950
  path: {
16571
15951
  /**
16572
15952
  * Task Id
@@ -17398,139 +16778,6 @@ export type TelephonyProvidersListResults = {
17398
16778
 
17399
16779
  export type TelephonyProvidersListResult = TelephonyProvidersListResults[keyof TelephonyProvidersListResults];
17400
16780
 
17401
- export type TokensListData = {
17402
- body?: never;
17403
- path?: never;
17404
- query?: {
17405
- /**
17406
- * Limit
17407
- */
17408
- limit?: number;
17409
- /**
17410
- * Offset
17411
- */
17412
- offset?: number;
17413
- };
17414
- url: '/v1/tokens';
17415
- };
17416
-
17417
- export type TokensListErrors = {
17418
- /**
17419
- * Missing credential, or one that is revoked or no longer a member of this organization.
17420
- */
17421
- 401: ErrorResponse;
17422
- /**
17423
- * The request did not match this operation's schema; `detail.errors` lists each field.
17424
- */
17425
- 422: ErrorResponse;
17426
- /**
17427
- * Unexpected error. Every error this API returns carries this body.
17428
- */
17429
- default: ErrorResponse;
17430
- };
17431
-
17432
- export type TokensListError = TokensListErrors[keyof TokensListErrors];
17433
-
17434
- export type TokensListResults = {
17435
- /**
17436
- * Successful Response
17437
- */
17438
- 200: PageTokenResponse;
17439
- };
17440
-
17441
- export type TokensListResult = TokensListResults[keyof TokensListResults];
17442
-
17443
- export type TokensCreateData = {
17444
- body: CreateTokenRequest;
17445
- path?: never;
17446
- query?: never;
17447
- url: '/v1/tokens';
17448
- };
17449
-
17450
- export type TokensCreateErrors = {
17451
- /**
17452
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17453
- */
17454
- 400: ErrorResponse;
17455
- /**
17456
- * Missing credential, or one that is revoked or no longer a member of this organization.
17457
- */
17458
- 401: ErrorResponse;
17459
- /**
17460
- * The resource's current state forbids this — a name already taken, a job already running.
17461
- */
17462
- 409: ErrorResponse;
17463
- /**
17464
- * The request did not match this operation's schema; `detail.errors` lists each field.
17465
- */
17466
- 422: ErrorResponse;
17467
- /**
17468
- * Unexpected error. Every error this API returns carries this body.
17469
- */
17470
- default: ErrorResponse;
17471
- };
17472
-
17473
- export type TokensCreateError = TokensCreateErrors[keyof TokensCreateErrors];
17474
-
17475
- export type TokensCreateResults = {
17476
- /**
17477
- * Successful Response
17478
- */
17479
- 201: TokenCreatedResponse;
17480
- };
17481
-
17482
- export type TokensCreateResult = TokensCreateResults[keyof TokensCreateResults];
17483
-
17484
- export type TokensDeleteData = {
17485
- body?: never;
17486
- path: {
17487
- /**
17488
- * Token Id
17489
- */
17490
- token_id: string;
17491
- };
17492
- query?: never;
17493
- url: '/v1/tokens/{token_id}';
17494
- };
17495
-
17496
- export type TokensDeleteErrors = {
17497
- /**
17498
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
17499
- */
17500
- 400: ErrorResponse;
17501
- /**
17502
- * Missing credential, or one that is revoked or no longer a member of this organization.
17503
- */
17504
- 401: ErrorResponse;
17505
- /**
17506
- * No such resource in this organization.
17507
- */
17508
- 404: ErrorResponse;
17509
- /**
17510
- * The resource's current state forbids this — a name already taken, a job already running.
17511
- */
17512
- 409: ErrorResponse;
17513
- /**
17514
- * The request did not match this operation's schema; `detail.errors` lists each field.
17515
- */
17516
- 422: ErrorResponse;
17517
- /**
17518
- * Unexpected error. Every error this API returns carries this body.
17519
- */
17520
- default: ErrorResponse;
17521
- };
17522
-
17523
- export type TokensDeleteError = TokensDeleteErrors[keyof TokensDeleteErrors];
17524
-
17525
- export type TokensDeleteResults = {
17526
- /**
17527
- * Successful Response
17528
- */
17529
- 200: OkResponse;
17530
- };
17531
-
17532
- export type TokensDeleteResult = TokensDeleteResults[keyof TokensDeleteResults];
17533
-
17534
16781
  export type ToolsListData = {
17535
16782
  body?: never;
17536
16783
  path?: never;