@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
@@ -585,13 +585,6 @@ export type AssistantStartedEvent = {
585
585
  */
586
586
  trigger_item_id: string;
587
587
  };
588
- /**
589
- * AuthContextResponse
590
- */
591
- export type AuthContextResponse = {
592
- tenant: PublicTenantResponse;
593
- user: PublicUserResponse;
594
- };
595
588
  /**
596
589
  * AvatarCatalogEntryResponse
597
590
  */
@@ -1518,20 +1511,10 @@ export type CallTeamMemberResponse = {
1518
1511
  };
1519
1512
  /**
1520
1513
  * CallTokenResponse
1514
+ *
1515
+ * How to join this call, and which call it is.
1521
1516
  */
1522
1517
  export type CallTokenResponse = {
1523
- /**
1524
- * Agent Version
1525
- */
1526
- agent_version?: number | null;
1527
- /**
1528
- * Contact Key
1529
- */
1530
- contact_key: string;
1531
- /**
1532
- * Conversation Id
1533
- */
1534
- conversation_id: string;
1535
1518
  /**
1536
1519
  * Participant Token
1537
1520
  */
@@ -1547,7 +1530,7 @@ export type CallTokenResponse = {
1547
1530
  /**
1548
1531
  * Warnings
1549
1532
  */
1550
- warnings?: Array<string>;
1533
+ warnings: Array<string>;
1551
1534
  };
1552
1535
  /**
1553
1536
  * CallToolResponse
@@ -1692,6 +1675,11 @@ export type CodeConfig = {
1692
1675
  };
1693
1676
  /**
1694
1677
  * CodeOperation
1678
+ *
1679
+ * Run TypeScript to transform or shape data an `http` operation cannot.
1680
+ *
1681
+ * Its sandbox has `fetch`, but reaching an API with it instead of an `http`
1682
+ * operation costs a V8 isolate per call and hides the request from the editor.
1695
1683
  */
1696
1684
  export type CodeOperation = {
1697
1685
  /**
@@ -2580,6 +2568,10 @@ export type CreateIntegrationRequest = {
2580
2568
  provider_account_info?: {
2581
2569
  [key: string]: unknown;
2582
2570
  };
2571
+ /**
2572
+ * Tools Namespace
2573
+ */
2574
+ tools_namespace?: string | null;
2583
2575
  /**
2584
2576
  * Webhook Config
2585
2577
  */
@@ -2737,15 +2729,6 @@ export type CreateTextConversationRequest = {
2737
2729
  [key: string]: string;
2738
2730
  } | null;
2739
2731
  };
2740
- /**
2741
- * CreateTokenRequest
2742
- */
2743
- export type CreateTokenRequest = {
2744
- /**
2745
- * Name
2746
- */
2747
- name: string;
2748
- };
2749
2732
  /**
2750
2733
  * CreateToolRequest
2751
2734
  */
@@ -2798,6 +2781,134 @@ export type CreateWebhookRequest = {
2798
2781
  */
2799
2782
  url: string;
2800
2783
  };
2784
+ /**
2785
+ * CreditBalanceResponse
2786
+ *
2787
+ * This region's balance for the workspace, what it buys, and top-up prices.
2788
+ *
2789
+ * Per region, because the balance is a data-plane table. A caller reading this
2790
+ * is reading the balance of whichever region's API they called, and the
2791
+ * dashboard labels it with that region's name — a bare number is what makes a
2792
+ * customer with $50 in one region and $0 in another think the money vanished.
2793
+ */
2794
+ export type CreditBalanceResponse = {
2795
+ /**
2796
+ * Balance
2797
+ */
2798
+ balance: number;
2799
+ /**
2800
+ * Currency
2801
+ */
2802
+ currency: 'USD';
2803
+ /**
2804
+ * Low Balance Threshold
2805
+ */
2806
+ low_balance_threshold: number;
2807
+ /**
2808
+ * Packs
2809
+ */
2810
+ packs: Array<CreditPackResponse>;
2811
+ /**
2812
+ * Topup Status
2813
+ */
2814
+ topup_status: 'pending' | 'paid' | 'failed' | 'cancelled' | 'refunded' | null;
2815
+ /**
2816
+ * Video Minutes Remaining
2817
+ */
2818
+ video_minutes_remaining: number;
2819
+ /**
2820
+ * Voice Minutes Remaining
2821
+ */
2822
+ voice_minutes_remaining: number;
2823
+ };
2824
+ /**
2825
+ * CreditCheckoutRequest
2826
+ *
2827
+ * Which pack to buy. Never an arbitrary amount — the packs are the prices.
2828
+ */
2829
+ export type CreditCheckoutRequest = {
2830
+ /**
2831
+ * Pack
2832
+ */
2833
+ pack: 'usd_20' | 'usd_50' | 'usd_100' | 'usd_200' | 'usd_500' | 'usd_1000';
2834
+ };
2835
+ /**
2836
+ * CreditCheckoutResponse
2837
+ *
2838
+ * Where to send the buyer, and the top-up that is waiting on them.
2839
+ */
2840
+ export type CreditCheckoutResponse = {
2841
+ /**
2842
+ * Checkout Url
2843
+ */
2844
+ checkout_url: string;
2845
+ /**
2846
+ * Topup Id
2847
+ */
2848
+ topup_id: string;
2849
+ };
2850
+ /**
2851
+ * CreditLedgerEntryResponse
2852
+ *
2853
+ * A ledger row, as the billing page reads it.
2854
+ *
2855
+ * Money is `float` here, matching `CostResponse` — the API has spoken JSON
2856
+ * numbers for every other money field since it existed, and one column in one
2857
+ * string would only make a client parse two shapes.
2858
+ */
2859
+ export type CreditLedgerEntryResponse = {
2860
+ /**
2861
+ * Amount
2862
+ */
2863
+ amount: number;
2864
+ /**
2865
+ * Balance After
2866
+ */
2867
+ balance_after: number;
2868
+ /**
2869
+ * Created At
2870
+ */
2871
+ created_at: string;
2872
+ /**
2873
+ * Id
2874
+ */
2875
+ id: string;
2876
+ /**
2877
+ * Kind
2878
+ */
2879
+ kind: 'signup_grant' | 'purchase' | 'usage' | 'refund' | 'adjustment';
2880
+ /**
2881
+ * Note
2882
+ */
2883
+ note: string | null;
2884
+ /**
2885
+ * Session Id
2886
+ */
2887
+ session_id: string | null;
2888
+ /**
2889
+ * Topup Id
2890
+ */
2891
+ topup_id: string | null;
2892
+ };
2893
+ /**
2894
+ * CreditPackResponse
2895
+ *
2896
+ * One pack the workspace may buy, priced in USD.
2897
+ */
2898
+ export type CreditPackResponse = {
2899
+ /**
2900
+ * Amount
2901
+ */
2902
+ amount: number;
2903
+ /**
2904
+ * Id
2905
+ */
2906
+ id: 'usd_20' | 'usd_50' | 'usd_100' | 'usd_200' | 'usd_500' | 'usd_1000';
2907
+ /**
2908
+ * Voice Minutes
2909
+ */
2910
+ voice_minutes: number;
2911
+ };
2801
2912
  /**
2802
2913
  * DeliveryError
2803
2914
  *
@@ -3060,10 +3171,6 @@ export type EmailRecipientResponse = {
3060
3171
  columns: {
3061
3172
  [key: string]: unknown;
3062
3173
  };
3063
- /**
3064
- * Delivery Status
3065
- */
3066
- delivery_status: 'delivered' | 'delayed' | 'bounced' | 'complained' | 'suppressed' | null;
3067
3174
  /**
3068
3175
  * Id
3069
3176
  */
@@ -3332,6 +3439,25 @@ export type FrontendRpcOperation = {
3332
3439
  */
3333
3440
  silent?: boolean;
3334
3441
  };
3442
+ /**
3443
+ * FunctionArgumentsResponse
3444
+ */
3445
+ export type FunctionArgumentsResponse = {
3446
+ /**
3447
+ * Description
3448
+ */
3449
+ description: string;
3450
+ /**
3451
+ * Json Schema
3452
+ */
3453
+ json_schema: {
3454
+ [key: string]: unknown;
3455
+ };
3456
+ /**
3457
+ * Name
3458
+ */
3459
+ name: string;
3460
+ };
3335
3461
  /**
3336
3462
  * GenerateReplyConfig
3337
3463
  */
@@ -3656,6 +3782,8 @@ export type HttpConfig = {
3656
3782
  };
3657
3783
  /**
3658
3784
  * HttpOperation
3785
+ *
3786
+ * Call a REST API. The right operation for any plain request/response call.
3659
3787
  */
3660
3788
  export type HttpOperation = {
3661
3789
  /**
@@ -3799,6 +3927,7 @@ export type InboundImage = {
3799
3927
  * A remote MCP server defined here rather than named.
3800
3928
  *
3801
3929
  * API-key-shaped only — an OAuth server has to be an integration.
3930
+ * `tools_namespace` prefixes every tool the model is shown: `crm` -> `crm_search`.
3802
3931
  */
3803
3932
  export type InlineMcpServer = {
3804
3933
  /**
@@ -3815,6 +3944,10 @@ export type InlineMcpServer = {
3815
3944
  * Name
3816
3945
  */
3817
3946
  name: string;
3947
+ /**
3948
+ * Tools Namespace
3949
+ */
3950
+ tools_namespace?: string;
3818
3951
  /**
3819
3952
  * Url
3820
3953
  */
@@ -3932,6 +4065,10 @@ export type IntegrationMcpTool = {
3932
4065
  * Description
3933
4066
  */
3934
4067
  description?: string;
4068
+ /**
4069
+ * Exposed Name
4070
+ */
4071
+ exposed_name: string;
3935
4072
  /**
3936
4073
  * Name
3937
4074
  */
@@ -4011,6 +4148,10 @@ export type IntegrationResponse = {
4011
4148
  * Status
4012
4149
  */
4013
4150
  status: 'active' | 'disabled' | 'needs_reconnect' | 'error';
4151
+ /**
4152
+ * Tools Namespace
4153
+ */
4154
+ tools_namespace: string;
4014
4155
  /**
4015
4156
  * Updated At
4016
4157
  */
@@ -4137,12 +4278,9 @@ export type IntegrationTriggerResponse = {
4137
4278
  *
4138
4279
  * Where the provider delivers, and whether anything has arrived yet.
4139
4280
  *
4140
- * Chat providers register their own webhook when a trigger is enabled, so for
4141
- * those this is status rather than instructions. Resend is the exception: we
4142
- * hold an API key, not a dashboard session, so a tenant who wants delivery and
4143
- * bounce events has to paste this URL into Resend themselves — and until they
4144
- * do, bounces and spam complaints are invisible, which are the two facts that
4145
- * decide whether a sending domain survives.
4281
+ * Status rather than instructions: a chat provider registers its own webhook
4282
+ * when a trigger is enabled, so nobody has to paste this URL anywhere. It is
4283
+ * here for support "has anything ever arrived on this connection".
4146
4284
  */
4147
4285
  export type IntegrationWebhookSetup = {
4148
4286
  /**
@@ -4157,10 +4295,6 @@ export type IntegrationWebhookSetup = {
4157
4295
  * Last Received At
4158
4296
  */
4159
4297
  last_received_at?: string | null;
4160
- /**
4161
- * Required Subscriptions
4162
- */
4163
- required_subscriptions: Array<string>;
4164
4298
  };
4165
4299
  /**
4166
4300
  * InterruptionSpec
@@ -4248,44 +4382,6 @@ export type InterruptionSpecOverride = {
4248
4382
  */
4249
4383
  resume_false_interruption?: boolean | null;
4250
4384
  };
4251
- /**
4252
- * InviteRequest
4253
- */
4254
- export type InviteRequest = {
4255
- /**
4256
- * Email
4257
- */
4258
- email: string;
4259
- /**
4260
- * Role
4261
- */
4262
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
4263
- };
4264
- /**
4265
- * InviteResponse
4266
- */
4267
- export type InviteResponse = {
4268
- /**
4269
- * Accepted At
4270
- */
4271
- accepted_at?: string | null;
4272
- /**
4273
- * Created At
4274
- */
4275
- created_at: string;
4276
- /**
4277
- * Email
4278
- */
4279
- email: string;
4280
- /**
4281
- * Id
4282
- */
4283
- id: string;
4284
- /**
4285
- * Role
4286
- */
4287
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
4288
- };
4289
4385
  /**
4290
4386
  * ItemCreatedEvent
4291
4387
  *
@@ -5060,62 +5156,6 @@ export type McpSelection = {
5060
5156
  integration_id?: string | null;
5061
5157
  mcp?: InlineMcpServer | null;
5062
5158
  };
5063
- /**
5064
- * McpTokenResponse
5065
- *
5066
- * Everything an MCP client configuration needs, in one response.
5067
- */
5068
- export type McpTokenResponse = {
5069
- /**
5070
- * Api Url
5071
- */
5072
- api_url: string;
5073
- /**
5074
- * Created At
5075
- */
5076
- created_at: string;
5077
- /**
5078
- * Id
5079
- */
5080
- id: string;
5081
- /**
5082
- * Name
5083
- */
5084
- name: string;
5085
- /**
5086
- * Token
5087
- */
5088
- token: string;
5089
- };
5090
- /**
5091
- * MemberResponse
5092
- */
5093
- export type MemberResponse = {
5094
- /**
5095
- * Email
5096
- */
5097
- email: string;
5098
- /**
5099
- * Id
5100
- */
5101
- id: string;
5102
- /**
5103
- * Joined At
5104
- */
5105
- joined_at: string;
5106
- /**
5107
- * Name
5108
- */
5109
- name?: string | null;
5110
- /**
5111
- * Picture Url
5112
- */
5113
- picture_url?: string | null;
5114
- /**
5115
- * Role
5116
- */
5117
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
5118
- };
5119
5159
  /**
5120
5160
  * ModelMetadata
5121
5161
  *
@@ -5802,40 +5842,6 @@ export type OkResponse = {
5802
5842
  */
5803
5843
  ok?: boolean;
5804
5844
  };
5805
- /**
5806
- * OrgNameRequest
5807
- */
5808
- export type OrgNameRequest = {
5809
- /**
5810
- * Name
5811
- */
5812
- name: string;
5813
- };
5814
- /**
5815
- * OrgResponse
5816
- */
5817
- export type OrgResponse = {
5818
- /**
5819
- * Id
5820
- */
5821
- id: string;
5822
- /**
5823
- * Joined At
5824
- */
5825
- joined_at: string;
5826
- /**
5827
- * Name
5828
- */
5829
- name: string;
5830
- /**
5831
- * Retention Days
5832
- */
5833
- retention_days?: number | null;
5834
- /**
5835
- * Role
5836
- */
5837
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
5838
- };
5839
5845
  /**
5840
5846
  * OutboundCallRequest
5841
5847
  *
@@ -5893,28 +5899,18 @@ export type OutboundCallRequest = {
5893
5899
  };
5894
5900
  /**
5895
5901
  * OutboundCallResponse
5902
+ *
5903
+ * Which call this is, and what resolving it complained about.
5896
5904
  */
5897
5905
  export type OutboundCallResponse = {
5898
- /**
5899
- * Agent Version
5900
- */
5901
- agent_version?: number | null;
5902
- /**
5903
- * Conversation Id
5904
- */
5905
- conversation_id: string;
5906
5906
  /**
5907
5907
  * Session Id
5908
5908
  */
5909
5909
  session_id: string;
5910
- /**
5911
- * Status
5912
- */
5913
- status: string;
5914
5910
  /**
5915
5911
  * Warnings
5916
5912
  */
5917
- warnings?: Array<string>;
5913
+ warnings: Array<string>;
5918
5914
  };
5919
5915
  /**
5920
5916
  * OutcomeSpec
@@ -6114,6 +6110,27 @@ export type PageConversationSessionResponse = {
6114
6110
  */
6115
6111
  offset: number;
6116
6112
  };
6113
+ /**
6114
+ * Page[CreditLedgerEntryResponse]
6115
+ */
6116
+ export type PageCreditLedgerEntryResponse = {
6117
+ /**
6118
+ * Has More
6119
+ */
6120
+ has_more: boolean;
6121
+ /**
6122
+ * Items
6123
+ */
6124
+ items: Array<CreditLedgerEntryResponse>;
6125
+ /**
6126
+ * Limit
6127
+ */
6128
+ limit: number;
6129
+ /**
6130
+ * Offset
6131
+ */
6132
+ offset: number;
6133
+ };
6117
6134
  /**
6118
6135
  * Page[DeliveryResponse]
6119
6136
  */
@@ -6241,30 +6258,9 @@ export type PageIntegrationTriggerResponse = {
6241
6258
  offset: number;
6242
6259
  };
6243
6260
  /**
6244
- * Page[InviteResponse]
6261
+ * Page[KBPageResponse]
6245
6262
  */
6246
- export type PageInviteResponse = {
6247
- /**
6248
- * Has More
6249
- */
6250
- has_more: boolean;
6251
- /**
6252
- * Items
6253
- */
6254
- items: Array<InviteResponse>;
6255
- /**
6256
- * Limit
6257
- */
6258
- limit: number;
6259
- /**
6260
- * Offset
6261
- */
6262
- offset: number;
6263
- };
6264
- /**
6265
- * Page[KBPageResponse]
6266
- */
6267
- export type PageKBPageResponse = {
6263
+ export type PageKBPageResponse = {
6268
6264
  /**
6269
6265
  * Has More
6270
6266
  */
@@ -6303,48 +6299,6 @@ export type PageKBSummary = {
6303
6299
  */
6304
6300
  offset: number;
6305
6301
  };
6306
- /**
6307
- * Page[MemberResponse]
6308
- */
6309
- export type PageMemberResponse = {
6310
- /**
6311
- * Has More
6312
- */
6313
- has_more: boolean;
6314
- /**
6315
- * Items
6316
- */
6317
- items: Array<MemberResponse>;
6318
- /**
6319
- * Limit
6320
- */
6321
- limit: number;
6322
- /**
6323
- * Offset
6324
- */
6325
- offset: number;
6326
- };
6327
- /**
6328
- * Page[OrgResponse]
6329
- */
6330
- export type PageOrgResponse = {
6331
- /**
6332
- * Has More
6333
- */
6334
- has_more: boolean;
6335
- /**
6336
- * Items
6337
- */
6338
- items: Array<OrgResponse>;
6339
- /**
6340
- * Limit
6341
- */
6342
- limit: number;
6343
- /**
6344
- * Offset
6345
- */
6346
- offset: number;
6347
- };
6348
6302
  /**
6349
6303
  * Page[PhoneNumberResponse]
6350
6304
  */
@@ -6492,27 +6446,6 @@ export type PageTelephonyProviderSpec = {
6492
6446
  */
6493
6447
  offset: number;
6494
6448
  };
6495
- /**
6496
- * Page[TokenResponse]
6497
- */
6498
- export type PageTokenResponse = {
6499
- /**
6500
- * Has More
6501
- */
6502
- has_more: boolean;
6503
- /**
6504
- * Items
6505
- */
6506
- items: Array<TokenResponse>;
6507
- /**
6508
- * Limit
6509
- */
6510
- limit: number;
6511
- /**
6512
- * Offset
6513
- */
6514
- offset: number;
6515
- };
6516
6449
  /**
6517
6450
  * Page[ToolResponse]
6518
6451
  */
@@ -6740,6 +6673,10 @@ export type PatchIntegrationRequest = {
6740
6673
  * Status
6741
6674
  */
6742
6675
  status?: 'active' | 'disabled' | 'needs_reconnect' | 'error' | null;
6676
+ /**
6677
+ * Tools Namespace
6678
+ */
6679
+ tools_namespace?: string | null;
6743
6680
  /**
6744
6681
  * Webhook Config
6745
6682
  */
@@ -6803,27 +6740,6 @@ export type PatchNodeRequest = {
6803
6740
  */
6804
6741
  version?: number | null;
6805
6742
  };
6806
- /**
6807
- * PatchOrgRequest
6808
- *
6809
- * Merge-style, like every other PATCH here: an omitted field is unchanged.
6810
- *
6811
- * ``retention_days`` needs the sentinel because ``null`` is a real value —
6812
- * "keep everything forever" — and has to be distinguishable from "leave the
6813
- * policy alone".
6814
- */
6815
- export type PatchOrgRequest = {
6816
- /**
6817
- * Name
6818
- */
6819
- name?: string | null;
6820
- /**
6821
- * Retention Days
6822
- *
6823
- * 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.
6824
- */
6825
- retention_days?: number | null;
6826
- };
6827
6743
  /**
6828
6744
  * PatchPhoneNumberRequest
6829
6745
  */
@@ -7318,44 +7234,6 @@ export type PublicMessage = {
7318
7234
  [key: string]: string;
7319
7235
  }> | null;
7320
7236
  };
7321
- /**
7322
- * PublicTenantResponse
7323
- */
7324
- export type PublicTenantResponse = {
7325
- /**
7326
- * Id
7327
- */
7328
- id: string;
7329
- /**
7330
- * Name
7331
- */
7332
- name: string;
7333
- };
7334
- /**
7335
- * PublicUserResponse
7336
- */
7337
- export type PublicUserResponse = {
7338
- /**
7339
- * Email
7340
- */
7341
- email: string;
7342
- /**
7343
- * Id
7344
- */
7345
- id: string;
7346
- /**
7347
- * Name
7348
- */
7349
- name?: string | null;
7350
- /**
7351
- * Picture Url
7352
- */
7353
- picture_url?: string | null;
7354
- /**
7355
- * Role
7356
- */
7357
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
7358
- };
7359
7237
  /**
7360
7238
  * PublishAgentResponse
7361
7239
  */
@@ -7912,15 +7790,6 @@ export type RemoteNumber = {
7912
7790
  */
7913
7791
  provider_number_id?: string | null;
7914
7792
  };
7915
- /**
7916
- * RoleRequest
7917
- */
7918
- export type RoleRequest = {
7919
- /**
7920
- * Role
7921
- */
7922
- role: 'ADMIN' | 'EDITOR' | 'VIEWER';
7923
- };
7924
7793
  /**
7925
7794
  * RunStepResponse
7926
7795
  *
@@ -9537,39 +9406,6 @@ export type TocResultResponse = {
9537
9406
  */
9538
9407
  pages: number;
9539
9408
  };
9540
- /**
9541
- * TokenCreatedResponse
9542
- */
9543
- export type TokenCreatedResponse = {
9544
- /**
9545
- * Created At
9546
- */
9547
- created_at: string;
9548
- /**
9549
- * Id
9550
- */
9551
- id: string;
9552
- /**
9553
- * Kind
9554
- */
9555
- kind: 'manual' | 'mcp';
9556
- /**
9557
- * Name
9558
- */
9559
- name: string;
9560
- /**
9561
- * Token
9562
- */
9563
- token: string;
9564
- /**
9565
- * User Email
9566
- */
9567
- user_email: string;
9568
- /**
9569
- * User Id
9570
- */
9571
- user_id: string;
9572
- };
9573
9409
  /**
9574
9410
  * TokenRequest
9575
9411
  *
@@ -9621,35 +9457,6 @@ export type TokenRequest = {
9621
9457
  [key: string]: string;
9622
9458
  } | null;
9623
9459
  };
9624
- /**
9625
- * TokenResponse
9626
- */
9627
- export type TokenResponse = {
9628
- /**
9629
- * Created At
9630
- */
9631
- created_at: string;
9632
- /**
9633
- * Id
9634
- */
9635
- id: string;
9636
- /**
9637
- * Kind
9638
- */
9639
- kind: 'manual' | 'mcp';
9640
- /**
9641
- * Name
9642
- */
9643
- name: string;
9644
- /**
9645
- * User Email
9646
- */
9647
- user_email: string;
9648
- /**
9649
- * User Id
9650
- */
9651
- user_id: string;
9652
- };
9653
9460
  /**
9654
9461
  * ToolResponse
9655
9462
  */
@@ -10913,50 +10720,118 @@ export type AgentsVersionsRollbackResults = {
10913
10720
  200: AgentResponse;
10914
10721
  };
10915
10722
  export type AgentsVersionsRollbackResult = AgentsVersionsRollbackResults[keyof AgentsVersionsRollbackResults];
10916
- export type AuthLogoutData = {
10723
+ export type BillingCreditsGetData = {
10917
10724
  body?: never;
10918
10725
  path?: never;
10726
+ query?: {
10727
+ /**
10728
+ * Topup
10729
+ *
10730
+ * A top-up to report the payment processor's own status for.
10731
+ */
10732
+ topup?: string | null;
10733
+ };
10734
+ url: '/v1/billing/credits';
10735
+ };
10736
+ export type BillingCreditsGetErrors = {
10737
+ /**
10738
+ * Missing credential, or one that is revoked or no longer a member of this organization.
10739
+ */
10740
+ 401: ErrorResponse;
10741
+ /**
10742
+ * The request did not match this operation's schema; `detail.errors` lists each field.
10743
+ */
10744
+ 422: ErrorResponse;
10745
+ /**
10746
+ * Unexpected error. Every error this API returns carries this body.
10747
+ */
10748
+ default: ErrorResponse;
10749
+ };
10750
+ export type BillingCreditsGetError = BillingCreditsGetErrors[keyof BillingCreditsGetErrors];
10751
+ export type BillingCreditsGetResults = {
10752
+ /**
10753
+ * Successful Response
10754
+ */
10755
+ 200: CreditBalanceResponse;
10756
+ };
10757
+ export type BillingCreditsGetResult = BillingCreditsGetResults[keyof BillingCreditsGetResults];
10758
+ export type BillingCreditsCheckoutData = {
10759
+ body: CreditCheckoutRequest;
10760
+ path?: never;
10919
10761
  query?: never;
10920
- url: '/v1/auth/logout';
10762
+ url: '/v1/billing/credits/checkout';
10921
10763
  };
10922
- export type AuthLogoutErrors = {
10764
+ export type BillingCreditsCheckoutErrors = {
10765
+ /**
10766
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
10767
+ */
10768
+ 400: ErrorResponse;
10769
+ /**
10770
+ * Missing credential, or one that is revoked or no longer a member of this organization.
10771
+ */
10772
+ 401: ErrorResponse;
10773
+ /**
10774
+ * Authenticated, but this organization role may not perform the operation.
10775
+ */
10776
+ 403: ErrorResponse;
10777
+ /**
10778
+ * The resource's current state forbids this — a name already taken, a job already running.
10779
+ */
10780
+ 409: ErrorResponse;
10781
+ /**
10782
+ * The request did not match this operation's schema; `detail.errors` lists each field.
10783
+ */
10784
+ 422: ErrorResponse;
10923
10785
  /**
10924
10786
  * Unexpected error. Every error this API returns carries this body.
10925
10787
  */
10926
10788
  default: ErrorResponse;
10927
10789
  };
10928
- export type AuthLogoutError = AuthLogoutErrors[keyof AuthLogoutErrors];
10929
- export type AuthLogoutResults = {
10790
+ export type BillingCreditsCheckoutError = BillingCreditsCheckoutErrors[keyof BillingCreditsCheckoutErrors];
10791
+ export type BillingCreditsCheckoutResults = {
10930
10792
  /**
10931
10793
  * Successful Response
10932
10794
  */
10933
- 200: OkResponse;
10795
+ 200: CreditCheckoutResponse;
10934
10796
  };
10935
- export type AuthLogoutResult = AuthLogoutResults[keyof AuthLogoutResults];
10936
- export type AuthMeData = {
10797
+ export type BillingCreditsCheckoutResult = BillingCreditsCheckoutResults[keyof BillingCreditsCheckoutResults];
10798
+ export type BillingCreditsLedgerData = {
10937
10799
  body?: never;
10938
10800
  path?: never;
10939
- query?: never;
10940
- url: '/v1/auth/me';
10801
+ query?: {
10802
+ /**
10803
+ * Limit
10804
+ */
10805
+ limit?: number;
10806
+ /**
10807
+ * Offset
10808
+ */
10809
+ offset?: number;
10810
+ };
10811
+ url: '/v1/billing/credits/ledger';
10941
10812
  };
10942
- export type AuthMeErrors = {
10813
+ export type BillingCreditsLedgerErrors = {
10943
10814
  /**
10944
10815
  * Missing credential, or one that is revoked or no longer a member of this organization.
10945
10816
  */
10946
10817
  401: ErrorResponse;
10818
+ /**
10819
+ * The request did not match this operation's schema; `detail.errors` lists each field.
10820
+ */
10821
+ 422: ErrorResponse;
10947
10822
  /**
10948
10823
  * Unexpected error. Every error this API returns carries this body.
10949
10824
  */
10950
10825
  default: ErrorResponse;
10951
10826
  };
10952
- export type AuthMeError = AuthMeErrors[keyof AuthMeErrors];
10953
- export type AuthMeResults = {
10827
+ export type BillingCreditsLedgerError = BillingCreditsLedgerErrors[keyof BillingCreditsLedgerErrors];
10828
+ export type BillingCreditsLedgerResults = {
10954
10829
  /**
10955
10830
  * Successful Response
10956
10831
  */
10957
- 200: AuthContextResponse;
10832
+ 200: PageCreditLedgerEntryResponse;
10958
10833
  };
10959
- export type AuthMeResult = AuthMeResults[keyof AuthMeResults];
10834
+ export type BillingCreditsLedgerResult = BillingCreditsLedgerResults[keyof BillingCreditsLedgerResults];
10960
10835
  export type ProviderKeysListData = {
10961
10836
  body?: never;
10962
10837
  path?: never;
@@ -11640,6 +11515,10 @@ export type CallsOutboundErrors = {
11640
11515
  * Missing credential, or one that is revoked or no longer a member of this organization.
11641
11516
  */
11642
11517
  401: ErrorResponse;
11518
+ /**
11519
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
11520
+ */
11521
+ 402: ErrorResponse;
11643
11522
  /**
11644
11523
  * Authenticated, but this organization role may not perform the operation.
11645
11524
  */
@@ -11725,6 +11604,10 @@ export type CallsTokenErrors = {
11725
11604
  * Missing credential, or one that is revoked or no longer a member of this organization.
11726
11605
  */
11727
11606
  401: ErrorResponse;
11607
+ /**
11608
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
11609
+ */
11610
+ 402: ErrorResponse;
11728
11611
  /**
11729
11612
  * Authenticated, but this organization role may not perform the operation.
11730
11613
  */
@@ -14674,30 +14557,6 @@ export type KnowledgeRegenerateTocResults = {
14674
14557
  200: TocResultResponse;
14675
14558
  };
14676
14559
  export type KnowledgeRegenerateTocResult = KnowledgeRegenerateTocResults[keyof KnowledgeRegenerateTocResults];
14677
- export type TokensMcpData = {
14678
- body?: never;
14679
- path?: never;
14680
- query?: never;
14681
- url: '/v1/mcp-token';
14682
- };
14683
- export type TokensMcpErrors = {
14684
- /**
14685
- * Missing credential, or one that is revoked or no longer a member of this organization.
14686
- */
14687
- 401: ErrorResponse;
14688
- /**
14689
- * Unexpected error. Every error this API returns carries this body.
14690
- */
14691
- default: ErrorResponse;
14692
- };
14693
- export type TokensMcpError = TokensMcpErrors[keyof TokensMcpErrors];
14694
- export type TokensMcpResults = {
14695
- /**
14696
- * Successful Response
14697
- */
14698
- 200: McpTokenResponse;
14699
- };
14700
- export type TokensMcpResult = TokensMcpResults[keyof TokensMcpResults];
14701
14560
  export type ObservabilityGetData = {
14702
14561
  body?: never;
14703
14562
  path?: never;
@@ -14747,432 +14606,18 @@ export type ObservabilityGetResults = {
14747
14606
  200: ObservabilityResponse;
14748
14607
  };
14749
14608
  export type ObservabilityGetResult = ObservabilityGetResults[keyof ObservabilityGetResults];
14750
- export type OrgsUpdateData = {
14751
- body: PatchOrgRequest;
14752
- path?: never;
14753
- query?: never;
14754
- url: '/v1/org';
14755
- };
14756
- export type OrgsUpdateErrors = {
14757
- /**
14758
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14759
- */
14760
- 400: ErrorResponse;
14761
- /**
14762
- * Missing credential, or one that is revoked or no longer a member of this organization.
14763
- */
14764
- 401: ErrorResponse;
14765
- /**
14766
- * Authenticated, but this organization role may not perform the operation.
14767
- */
14768
- 403: ErrorResponse;
14769
- /**
14770
- * The resource's current state forbids this — a name already taken, a job already running.
14771
- */
14772
- 409: ErrorResponse;
14773
- /**
14774
- * The request did not match this operation's schema; `detail.errors` lists each field.
14775
- */
14776
- 422: ErrorResponse;
14777
- /**
14778
- * Unexpected error. Every error this API returns carries this body.
14779
- */
14780
- default: ErrorResponse;
14781
- };
14782
- export type OrgsUpdateError = OrgsUpdateErrors[keyof OrgsUpdateErrors];
14783
- export type OrgsUpdateResults = {
14784
- /**
14785
- * Successful Response
14786
- */
14787
- 200: OrgResponse;
14788
- };
14789
- export type OrgsUpdateResult = OrgsUpdateResults[keyof OrgsUpdateResults];
14790
- export type OrgsInvitesListData = {
14791
- body?: never;
14792
- path?: never;
14793
- query?: {
14794
- /**
14795
- * Limit
14796
- */
14797
- limit?: number;
14798
- /**
14799
- * Offset
14800
- */
14801
- offset?: number;
14802
- };
14803
- url: '/v1/org/invites';
14804
- };
14805
- export type OrgsInvitesListErrors = {
14806
- /**
14807
- * Missing credential, or one that is revoked or no longer a member of this organization.
14808
- */
14809
- 401: ErrorResponse;
14810
- /**
14811
- * Authenticated, but this organization role may not perform the operation.
14812
- */
14813
- 403: ErrorResponse;
14814
- /**
14815
- * The request did not match this operation's schema; `detail.errors` lists each field.
14816
- */
14817
- 422: ErrorResponse;
14818
- /**
14819
- * Unexpected error. Every error this API returns carries this body.
14820
- */
14821
- default: ErrorResponse;
14822
- };
14823
- export type OrgsInvitesListError = OrgsInvitesListErrors[keyof OrgsInvitesListErrors];
14824
- export type OrgsInvitesListResults = {
14825
- /**
14826
- * Successful Response
14827
- */
14828
- 200: PageInviteResponse;
14829
- };
14830
- export type OrgsInvitesListResult = OrgsInvitesListResults[keyof OrgsInvitesListResults];
14831
- export type OrgsInvitesCreateData = {
14832
- body: InviteRequest;
14833
- path?: never;
14834
- query?: never;
14835
- url: '/v1/org/invites';
14836
- };
14837
- export type OrgsInvitesCreateErrors = {
14838
- /**
14839
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14840
- */
14841
- 400: ErrorResponse;
14842
- /**
14843
- * Missing credential, or one that is revoked or no longer a member of this organization.
14844
- */
14845
- 401: ErrorResponse;
14846
- /**
14847
- * Authenticated, but this organization role may not perform the operation.
14848
- */
14849
- 403: ErrorResponse;
14850
- /**
14851
- * The resource's current state forbids this — a name already taken, a job already running.
14852
- */
14853
- 409: ErrorResponse;
14854
- /**
14855
- * The request did not match this operation's schema; `detail.errors` lists each field.
14856
- */
14857
- 422: ErrorResponse;
14858
- /**
14859
- * Unexpected error. Every error this API returns carries this body.
14860
- */
14861
- default: ErrorResponse;
14862
- };
14863
- export type OrgsInvitesCreateError = OrgsInvitesCreateErrors[keyof OrgsInvitesCreateErrors];
14864
- export type OrgsInvitesCreateResults = {
14865
- /**
14866
- * Successful Response
14867
- */
14868
- 201: InviteResponse;
14869
- };
14870
- export type OrgsInvitesCreateResult = OrgsInvitesCreateResults[keyof OrgsInvitesCreateResults];
14871
- export type OrgsInvitesRevokeData = {
14872
- body?: never;
14873
- path: {
14874
- /**
14875
- * Invite Id
14876
- */
14877
- invite_id: string;
14878
- };
14879
- query?: never;
14880
- url: '/v1/org/invites/{invite_id}';
14881
- };
14882
- export type OrgsInvitesRevokeErrors = {
14883
- /**
14884
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14885
- */
14886
- 400: ErrorResponse;
14887
- /**
14888
- * Missing credential, or one that is revoked or no longer a member of this organization.
14889
- */
14890
- 401: ErrorResponse;
14891
- /**
14892
- * Authenticated, but this organization role may not perform the operation.
14893
- */
14894
- 403: ErrorResponse;
14895
- /**
14896
- * No such resource in this organization.
14897
- */
14898
- 404: ErrorResponse;
14899
- /**
14900
- * The resource's current state forbids this — a name already taken, a job already running.
14901
- */
14902
- 409: ErrorResponse;
14903
- /**
14904
- * The request did not match this operation's schema; `detail.errors` lists each field.
14905
- */
14906
- 422: ErrorResponse;
14907
- /**
14908
- * Unexpected error. Every error this API returns carries this body.
14909
- */
14910
- default: ErrorResponse;
14911
- };
14912
- export type OrgsInvitesRevokeError = OrgsInvitesRevokeErrors[keyof OrgsInvitesRevokeErrors];
14913
- export type OrgsInvitesRevokeResults = {
14914
- /**
14915
- * Successful Response
14916
- */
14917
- 200: OkResponse;
14918
- };
14919
- export type OrgsInvitesRevokeResult = OrgsInvitesRevokeResults[keyof OrgsInvitesRevokeResults];
14920
- export type OrgsLeaveData = {
14921
- body?: never;
14922
- path?: never;
14923
- query?: never;
14924
- url: '/v1/org/leave';
14925
- };
14926
- export type OrgsLeaveErrors = {
14927
- /**
14928
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14929
- */
14930
- 400: ErrorResponse;
14931
- /**
14932
- * Missing credential, or one that is revoked or no longer a member of this organization.
14933
- */
14934
- 401: ErrorResponse;
14935
- /**
14936
- * The resource's current state forbids this — a name already taken, a job already running.
14937
- */
14938
- 409: ErrorResponse;
14939
- /**
14940
- * Unexpected error. Every error this API returns carries this body.
14941
- */
14942
- default: ErrorResponse;
14943
- };
14944
- export type OrgsLeaveError = OrgsLeaveErrors[keyof OrgsLeaveErrors];
14945
- export type OrgsLeaveResults = {
14946
- /**
14947
- * Successful Response
14948
- */
14949
- 200: OkResponse;
14950
- };
14951
- export type OrgsLeaveResult = OrgsLeaveResults[keyof OrgsLeaveResults];
14952
- export type OrgsMembersListData = {
14953
- body?: never;
14954
- path?: never;
14955
- query?: {
14956
- /**
14957
- * Limit
14958
- */
14959
- limit?: number;
14960
- /**
14961
- * Offset
14962
- */
14963
- offset?: number;
14964
- };
14965
- url: '/v1/org/members';
14966
- };
14967
- export type OrgsMembersListErrors = {
14968
- /**
14969
- * Missing credential, or one that is revoked or no longer a member of this organization.
14970
- */
14971
- 401: ErrorResponse;
14972
- /**
14973
- * The request did not match this operation's schema; `detail.errors` lists each field.
14974
- */
14975
- 422: ErrorResponse;
14976
- /**
14977
- * Unexpected error. Every error this API returns carries this body.
14978
- */
14979
- default: ErrorResponse;
14980
- };
14981
- export type OrgsMembersListError = OrgsMembersListErrors[keyof OrgsMembersListErrors];
14982
- export type OrgsMembersListResults = {
14983
- /**
14984
- * Successful Response
14985
- */
14986
- 200: PageMemberResponse;
14987
- };
14988
- export type OrgsMembersListResult = OrgsMembersListResults[keyof OrgsMembersListResults];
14989
- export type OrgsMembersRemoveData = {
14990
- body?: never;
14991
- path: {
14992
- /**
14993
- * User Id
14994
- */
14995
- user_id: string;
14996
- };
14997
- query?: never;
14998
- url: '/v1/org/members/{user_id}';
14999
- };
15000
- export type OrgsMembersRemoveErrors = {
15001
- /**
15002
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15003
- */
15004
- 400: ErrorResponse;
15005
- /**
15006
- * Missing credential, or one that is revoked or no longer a member of this organization.
15007
- */
15008
- 401: ErrorResponse;
15009
- /**
15010
- * Authenticated, but this organization role may not perform the operation.
15011
- */
15012
- 403: ErrorResponse;
15013
- /**
15014
- * No such resource in this organization.
15015
- */
15016
- 404: ErrorResponse;
15017
- /**
15018
- * The resource's current state forbids this — a name already taken, a job already running.
15019
- */
15020
- 409: ErrorResponse;
15021
- /**
15022
- * The request did not match this operation's schema; `detail.errors` lists each field.
15023
- */
15024
- 422: ErrorResponse;
15025
- /**
15026
- * Unexpected error. Every error this API returns carries this body.
15027
- */
15028
- default: ErrorResponse;
15029
- };
15030
- export type OrgsMembersRemoveError = OrgsMembersRemoveErrors[keyof OrgsMembersRemoveErrors];
15031
- export type OrgsMembersRemoveResults = {
15032
- /**
15033
- * Successful Response
15034
- */
15035
- 200: OkResponse;
15036
- };
15037
- export type OrgsMembersRemoveResult = OrgsMembersRemoveResults[keyof OrgsMembersRemoveResults];
15038
- export type OrgsMembersSetRoleData = {
15039
- body: RoleRequest;
15040
- path: {
15041
- /**
15042
- * User Id
15043
- */
15044
- user_id: string;
15045
- };
15046
- query?: never;
15047
- url: '/v1/org/members/{user_id}';
15048
- };
15049
- export type OrgsMembersSetRoleErrors = {
15050
- /**
15051
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15052
- */
15053
- 400: ErrorResponse;
15054
- /**
15055
- * Missing credential, or one that is revoked or no longer a member of this organization.
15056
- */
15057
- 401: ErrorResponse;
15058
- /**
15059
- * Authenticated, but this organization role may not perform the operation.
15060
- */
15061
- 403: ErrorResponse;
15062
- /**
15063
- * No such resource in this organization.
15064
- */
15065
- 404: ErrorResponse;
15066
- /**
15067
- * The resource's current state forbids this — a name already taken, a job already running.
15068
- */
15069
- 409: ErrorResponse;
15070
- /**
15071
- * The request did not match this operation's schema; `detail.errors` lists each field.
15072
- */
15073
- 422: ErrorResponse;
15074
- /**
15075
- * Unexpected error. Every error this API returns carries this body.
15076
- */
15077
- default: ErrorResponse;
15078
- };
15079
- export type OrgsMembersSetRoleError = OrgsMembersSetRoleErrors[keyof OrgsMembersSetRoleErrors];
15080
- export type OrgsMembersSetRoleResults = {
15081
- /**
15082
- * Successful Response
15083
- */
15084
- 200: MemberResponse;
15085
- };
15086
- export type OrgsMembersSetRoleResult = OrgsMembersSetRoleResults[keyof OrgsMembersSetRoleResults];
15087
- export type OrgsListData = {
15088
- body?: never;
15089
- path?: never;
15090
- query?: {
15091
- /**
15092
- * Limit
15093
- */
15094
- limit?: number;
15095
- /**
15096
- * Offset
15097
- */
15098
- offset?: number;
15099
- };
15100
- url: '/v1/orgs';
15101
- };
15102
- export type OrgsListErrors = {
15103
- /**
15104
- * Missing credential, or one that is revoked or no longer a member of this organization.
15105
- */
15106
- 401: ErrorResponse;
15107
- /**
15108
- * The request did not match this operation's schema; `detail.errors` lists each field.
15109
- */
15110
- 422: ErrorResponse;
15111
- /**
15112
- * Unexpected error. Every error this API returns carries this body.
15113
- */
15114
- default: ErrorResponse;
15115
- };
15116
- export type OrgsListError = OrgsListErrors[keyof OrgsListErrors];
15117
- export type OrgsListResults = {
15118
- /**
15119
- * Successful Response
15120
- */
15121
- 200: PageOrgResponse;
15122
- };
15123
- export type OrgsListResult = OrgsListResults[keyof OrgsListResults];
15124
- export type OrgsCreateData = {
15125
- body: OrgNameRequest;
15126
- path?: never;
15127
- query?: never;
15128
- url: '/v1/orgs';
15129
- };
15130
- export type OrgsCreateErrors = {
15131
- /**
15132
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15133
- */
15134
- 400: ErrorResponse;
15135
- /**
15136
- * Missing credential, or one that is revoked or no longer a member of this organization.
15137
- */
15138
- 401: ErrorResponse;
15139
- /**
15140
- * The resource's current state forbids this — a name already taken, a job already running.
15141
- */
15142
- 409: ErrorResponse;
15143
- /**
15144
- * The request did not match this operation's schema; `detail.errors` lists each field.
15145
- */
15146
- 422: ErrorResponse;
15147
- /**
15148
- * Unexpected error. Every error this API returns carries this body.
15149
- */
15150
- default: ErrorResponse;
15151
- };
15152
- export type OrgsCreateError = OrgsCreateErrors[keyof OrgsCreateErrors];
15153
- export type OrgsCreateResults = {
15154
- /**
15155
- * Successful Response
15156
- */
15157
- 201: OrgResponse;
15158
- };
15159
- export type OrgsCreateResult = OrgsCreateResults[keyof OrgsCreateResults];
15160
- export type OrgsSwitchData = {
14609
+ export type SchemasFunctionsGetData = {
15161
14610
  body?: never;
15162
14611
  path: {
15163
14612
  /**
15164
- * Org Id
14613
+ * Name
15165
14614
  */
15166
- org_id: string;
14615
+ name: string;
15167
14616
  };
15168
14617
  query?: never;
15169
- url: '/v1/orgs/{org_id}/switch';
14618
+ url: '/v1/schemas/functions/{name}';
15170
14619
  };
15171
- export type OrgsSwitchErrors = {
15172
- /**
15173
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15174
- */
15175
- 400: ErrorResponse;
14620
+ export type SchemasFunctionsGetErrors = {
15176
14621
  /**
15177
14622
  * Missing credential, or one that is revoked or no longer a member of this organization.
15178
14623
  */
@@ -15181,10 +14626,6 @@ export type OrgsSwitchErrors = {
15181
14626
  * No such resource in this organization.
15182
14627
  */
15183
14628
  404: ErrorResponse;
15184
- /**
15185
- * The resource's current state forbids this — a name already taken, a job already running.
15186
- */
15187
- 409: ErrorResponse;
15188
14629
  /**
15189
14630
  * The request did not match this operation's schema; `detail.errors` lists each field.
15190
14631
  */
@@ -15194,14 +14635,14 @@ export type OrgsSwitchErrors = {
15194
14635
  */
15195
14636
  default: ErrorResponse;
15196
14637
  };
15197
- export type OrgsSwitchError = OrgsSwitchErrors[keyof OrgsSwitchErrors];
15198
- export type OrgsSwitchResults = {
14638
+ export type SchemasFunctionsGetError = SchemasFunctionsGetErrors[keyof SchemasFunctionsGetErrors];
14639
+ export type SchemasFunctionsGetResults = {
15199
14640
  /**
15200
14641
  * Successful Response
15201
14642
  */
15202
- 200: OkResponse;
14643
+ 200: FunctionArgumentsResponse;
15203
14644
  };
15204
- export type OrgsSwitchResult = OrgsSwitchResults[keyof OrgsSwitchResults];
14645
+ export type SchemasFunctionsGetResult = SchemasFunctionsGetResults[keyof SchemasFunctionsGetResults];
15205
14646
  export type SchemasGetData = {
15206
14647
  body?: never;
15207
14648
  path: {
@@ -16371,124 +15812,6 @@ export type TelephonyProvidersListResults = {
16371
15812
  200: PageTelephonyProviderSpec;
16372
15813
  };
16373
15814
  export type TelephonyProvidersListResult = TelephonyProvidersListResults[keyof TelephonyProvidersListResults];
16374
- export type TokensListData = {
16375
- body?: never;
16376
- path?: never;
16377
- query?: {
16378
- /**
16379
- * Limit
16380
- */
16381
- limit?: number;
16382
- /**
16383
- * Offset
16384
- */
16385
- offset?: number;
16386
- };
16387
- url: '/v1/tokens';
16388
- };
16389
- export type TokensListErrors = {
16390
- /**
16391
- * Missing credential, or one that is revoked or no longer a member of this organization.
16392
- */
16393
- 401: ErrorResponse;
16394
- /**
16395
- * The request did not match this operation's schema; `detail.errors` lists each field.
16396
- */
16397
- 422: ErrorResponse;
16398
- /**
16399
- * Unexpected error. Every error this API returns carries this body.
16400
- */
16401
- default: ErrorResponse;
16402
- };
16403
- export type TokensListError = TokensListErrors[keyof TokensListErrors];
16404
- export type TokensListResults = {
16405
- /**
16406
- * Successful Response
16407
- */
16408
- 200: PageTokenResponse;
16409
- };
16410
- export type TokensListResult = TokensListResults[keyof TokensListResults];
16411
- export type TokensCreateData = {
16412
- body: CreateTokenRequest;
16413
- path?: never;
16414
- query?: never;
16415
- url: '/v1/tokens';
16416
- };
16417
- export type TokensCreateErrors = {
16418
- /**
16419
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16420
- */
16421
- 400: ErrorResponse;
16422
- /**
16423
- * Missing credential, or one that is revoked or no longer a member of this organization.
16424
- */
16425
- 401: ErrorResponse;
16426
- /**
16427
- * The resource's current state forbids this — a name already taken, a job already running.
16428
- */
16429
- 409: ErrorResponse;
16430
- /**
16431
- * The request did not match this operation's schema; `detail.errors` lists each field.
16432
- */
16433
- 422: ErrorResponse;
16434
- /**
16435
- * Unexpected error. Every error this API returns carries this body.
16436
- */
16437
- default: ErrorResponse;
16438
- };
16439
- export type TokensCreateError = TokensCreateErrors[keyof TokensCreateErrors];
16440
- export type TokensCreateResults = {
16441
- /**
16442
- * Successful Response
16443
- */
16444
- 201: TokenCreatedResponse;
16445
- };
16446
- export type TokensCreateResult = TokensCreateResults[keyof TokensCreateResults];
16447
- export type TokensDeleteData = {
16448
- body?: never;
16449
- path: {
16450
- /**
16451
- * Token Id
16452
- */
16453
- token_id: string;
16454
- };
16455
- query?: never;
16456
- url: '/v1/tokens/{token_id}';
16457
- };
16458
- export type TokensDeleteErrors = {
16459
- /**
16460
- * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
16461
- */
16462
- 400: ErrorResponse;
16463
- /**
16464
- * Missing credential, or one that is revoked or no longer a member of this organization.
16465
- */
16466
- 401: ErrorResponse;
16467
- /**
16468
- * No such resource in this organization.
16469
- */
16470
- 404: ErrorResponse;
16471
- /**
16472
- * The resource's current state forbids this — a name already taken, a job already running.
16473
- */
16474
- 409: ErrorResponse;
16475
- /**
16476
- * The request did not match this operation's schema; `detail.errors` lists each field.
16477
- */
16478
- 422: ErrorResponse;
16479
- /**
16480
- * Unexpected error. Every error this API returns carries this body.
16481
- */
16482
- default: ErrorResponse;
16483
- };
16484
- export type TokensDeleteError = TokensDeleteErrors[keyof TokensDeleteErrors];
16485
- export type TokensDeleteResults = {
16486
- /**
16487
- * Successful Response
16488
- */
16489
- 200: OkResponse;
16490
- };
16491
- export type TokensDeleteResult = TokensDeleteResults[keyof TokensDeleteResults];
16492
15815
  export type ToolsListData = {
16493
15816
  body?: never;
16494
15817
  path?: never;