@botpress/client 0.7.0 → 0.8.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.
package/dist/gen/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Botpress API
3
3
  * API for Botpress Cloud
4
4
  *
5
- * The version of the OpenAPI document: 0.13.0
5
+ * The version of the OpenAPI document: 0.14.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -71,7 +71,7 @@ export interface AddParticipantResponse {
71
71
  */
72
72
  export interface Bot {
73
73
  /**
74
- * Id of the [Bot](#schema_bot)
74
+ * ID of the [Conversation](#schema_conversation)
75
75
  * @type {string}
76
76
  * @memberof Bot
77
77
  */
@@ -144,11 +144,11 @@ export interface Bot {
144
144
  };
145
145
  /**
146
146
  * Recurring events
147
- * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}
147
+ * @type {{ [key: string]: BotRecurringEventsValue; }}
148
148
  * @memberof Bot
149
149
  */
150
150
  'recurringEvents': {
151
- [key: string]: CreateBotBodyRecurringEventsValue;
151
+ [key: string]: BotRecurringEventsValue;
152
152
  };
153
153
  /**
154
154
  * Name of the [Bot](#schema_bot)
@@ -232,31 +232,31 @@ export interface BotIntegrationsValue {
232
232
  */
233
233
  'enabled': boolean;
234
234
  /**
235
- * Name of the [Integration](#schema_integration)
235
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
236
236
  * @type {string}
237
237
  * @memberof BotIntegrationsValue
238
238
  */
239
239
  'name': string;
240
240
  /**
241
- * Version of the [Integration](#schema_integration)
241
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
242
242
  * @type {string}
243
243
  * @memberof BotIntegrationsValue
244
244
  */
245
245
  'version': string;
246
246
  /**
247
- *
247
+ * Signing secret of the [Bot](#schema_bot)
248
248
  * @type {string}
249
249
  * @memberof BotIntegrationsValue
250
250
  */
251
251
  'webhookUrl': string;
252
252
  /**
253
- *
253
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
254
254
  * @type {string}
255
255
  * @memberof BotIntegrationsValue
256
256
  */
257
257
  'webhookId': string;
258
258
  /**
259
- *
259
+ * Signing secret of the [Bot](#schema_bot)
260
260
  * @type {string}
261
261
  * @memberof BotIntegrationsValue
262
262
  */
@@ -276,13 +276,13 @@ export interface BotIntegrationsValue {
276
276
  */
277
277
  'status': BotIntegrationsValueStatusEnum;
278
278
  /**
279
- *
279
+ * Signing secret of the [Bot](#schema_bot)
280
280
  * @type {string}
281
281
  * @memberof BotIntegrationsValue
282
282
  */
283
283
  'statusReason': string | null;
284
284
  /**
285
- * ID of the [Integration](#schema_integration)
285
+ * ID of the [Conversation](#schema_conversation)
286
286
  * @type {string}
287
287
  * @memberof BotIntegrationsValue
288
288
  */
@@ -361,6 +361,46 @@ export interface BotMessage {
361
361
  [key: string]: CreateBotBodyUserTagsValue;
362
362
  };
363
363
  }
364
+ /**
365
+ *
366
+ * @export
367
+ * @interface BotRecurringEventsValue
368
+ */
369
+ export interface BotRecurringEventsValue {
370
+ /**
371
+ *
372
+ * @type {BotRecurringEventsValueSchedule}
373
+ * @memberof BotRecurringEventsValue
374
+ */
375
+ 'schedule': BotRecurringEventsValueSchedule;
376
+ /**
377
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
378
+ * @type {string}
379
+ * @memberof BotRecurringEventsValue
380
+ */
381
+ 'type': string;
382
+ /**
383
+ *
384
+ * @type {{ [key: string]: any; }}
385
+ * @memberof BotRecurringEventsValue
386
+ */
387
+ 'payload': {
388
+ [key: string]: any;
389
+ };
390
+ }
391
+ /**
392
+ *
393
+ * @export
394
+ * @interface BotRecurringEventsValueSchedule
395
+ */
396
+ export interface BotRecurringEventsValueSchedule {
397
+ /**
398
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
399
+ * @type {string}
400
+ * @memberof BotRecurringEventsValueSchedule
401
+ */
402
+ 'cron': string;
403
+ }
364
404
  /**
365
405
  * User object configuration
366
406
  * @export
@@ -383,7 +423,7 @@ export interface BotUser {
383
423
  */
384
424
  export interface CallActionBody {
385
425
  /**
386
- * Type of the action
426
+ * Unique identifier of the integration that was installed on the bot
387
427
  * @type {string}
388
428
  * @memberof CallActionBody
389
429
  */
@@ -604,7 +644,7 @@ export interface ConfigureIntegrationBody {
604
644
  */
605
645
  export interface Conversation {
606
646
  /**
607
- * Id of the [Conversation](#schema_conversation)
647
+ * ID of the [Conversation](#schema_conversation)
608
648
  * @type {string}
609
649
  * @memberof Conversation
610
650
  */
@@ -809,7 +849,7 @@ export interface CreateBotBodyRecurringEventsValue {
809
849
  */
810
850
  'schedule': CreateBotBodyRecurringEventsValueSchedule;
811
851
  /**
812
- *
852
+ * Unique identifier of the integration that was installed on the bot
813
853
  * @type {string}
814
854
  * @memberof CreateBotBodyRecurringEventsValue
815
855
  */
@@ -830,7 +870,7 @@ export interface CreateBotBodyRecurringEventsValue {
830
870
  */
831
871
  export interface CreateBotBodyRecurringEventsValueSchedule {
832
872
  /**
833
- *
873
+ * Unique identifier of the integration that was installed on the bot
834
874
  * @type {string}
835
875
  * @memberof CreateBotBodyRecurringEventsValueSchedule
836
876
  */
@@ -923,7 +963,7 @@ export interface CreateBotResponse {
923
963
  */
924
964
  export interface CreateConversationBody {
925
965
  /**
926
- * Channel name
966
+ * Unique identifier of the integration that was installed on the bot
927
967
  * @type {string}
928
968
  * @memberof CreateConversationBody
929
969
  */
@@ -937,7 +977,7 @@ export interface CreateConversationBody {
937
977
  [key: string]: string;
938
978
  };
939
979
  /**
940
- * Name of the integration to which the conversation creation will be delegated
980
+ * [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
941
981
  * @type {string}
942
982
  * @memberof CreateConversationBody
943
983
  */
@@ -963,7 +1003,7 @@ export interface CreateConversationResponse {
963
1003
  */
964
1004
  export interface CreateEventBody {
965
1005
  /**
966
- * Type of the [Event](#schema_event).
1006
+ * Unique identifier of the integration that was installed on the bot
967
1007
  * @type {string}
968
1008
  * @memberof CreateEventBody
969
1009
  */
@@ -1089,13 +1129,13 @@ export interface CreateFileResponse {
1089
1129
  */
1090
1130
  export interface CreateIntegrationBody {
1091
1131
  /**
1092
- * Name of the [Integration](#schema_integration)
1132
+ * Unique identifier of the integration that was installed on the bot
1093
1133
  * @type {string}
1094
1134
  * @memberof CreateIntegrationBody
1095
1135
  */
1096
1136
  'name': string;
1097
1137
  /**
1098
- * Version of the [Integration](#schema_integration)
1138
+ * Unique identifier of the integration that was installed on the bot
1099
1139
  * @type {string}
1100
1140
  * @memberof CreateIntegrationBody
1101
1141
  */
@@ -1367,7 +1407,7 @@ export interface CreateIntegrationBodyConfigurationIdentifier {
1367
1407
  */
1368
1408
  'required'?: boolean;
1369
1409
  /**
1370
- *
1410
+ * Signing secret of the [Bot](#schema_bot)
1371
1411
  * @type {string}
1372
1412
  * @memberof CreateIntegrationBodyConfigurationIdentifier
1373
1413
  */
@@ -1380,13 +1420,13 @@ export interface CreateIntegrationBodyConfigurationIdentifier {
1380
1420
  */
1381
1421
  export interface CreateIntegrationBodyIdentifier {
1382
1422
  /**
1383
- *
1423
+ * Signing secret of the [Bot](#schema_bot)
1384
1424
  * @type {string}
1385
1425
  * @memberof CreateIntegrationBodyIdentifier
1386
1426
  */
1387
1427
  'fallbackHandlerScript'?: string;
1388
1428
  /**
1389
- *
1429
+ * Signing secret of the [Bot](#schema_bot)
1390
1430
  * @type {string}
1391
1431
  * @memberof CreateIntegrationBodyIdentifier
1392
1432
  */
@@ -1487,19 +1527,19 @@ export interface CreateMessageBody {
1487
1527
  [key: string]: any;
1488
1528
  };
1489
1529
  /**
1490
- * ID of the [User](#schema_user)
1530
+ * User id
1491
1531
  * @type {string}
1492
1532
  * @memberof CreateMessageBody
1493
1533
  */
1494
1534
  'userId': string;
1495
1535
  /**
1496
- * ID of the [Conversation](#schema_conversation)
1536
+ * User id
1497
1537
  * @type {string}
1498
1538
  * @memberof CreateMessageBody
1499
1539
  */
1500
1540
  'conversationId': string;
1501
1541
  /**
1502
- * Type of the [Message](#schema_message) represents the resource type that the message is related to
1542
+ * Unique identifier of the integration that was installed on the bot
1503
1543
  * @type {string}
1504
1544
  * @memberof CreateMessageBody
1505
1545
  */
@@ -1526,7 +1566,7 @@ export interface CreateMessageBody {
1526
1566
  */
1527
1567
  export interface CreateMessageBodySchedule {
1528
1568
  /**
1529
- * When the [Message](#schema_message) will be sent, in the ISO 8601 format
1569
+ * When the [Event](#schema_event) will be sent, in the ISO 8601 format
1530
1570
  * @type {string}
1531
1571
  * @memberof CreateMessageBodySchedule
1532
1572
  */
@@ -1623,7 +1663,7 @@ export interface CreateUserBody {
1623
1663
  [key: string]: string;
1624
1664
  };
1625
1665
  /**
1626
- * Name of the integration to which the user creation will be delegated
1666
+ * [DEPRECATED] To create a user from within a bot, call an action of the integration instead.
1627
1667
  * @type {string}
1628
1668
  * @memberof CreateUserBody
1629
1669
  */
@@ -1635,7 +1675,7 @@ export interface CreateUserBody {
1635
1675
  */
1636
1676
  'name'?: string;
1637
1677
  /**
1638
- * URL of the user picture
1678
+ * URI of the user picture
1639
1679
  * @type {string}
1640
1680
  * @memberof CreateUserBody
1641
1681
  */
@@ -1820,7 +1860,7 @@ export type CreateWorkspaceResponsePlanEnum = typeof CreateWorkspaceResponsePlan
1820
1860
  */
1821
1861
  export interface Event {
1822
1862
  /**
1823
- * Id of the [Event](#schema_event)
1863
+ * ID of the [Conversation](#schema_conversation)
1824
1864
  * @type {string}
1825
1865
  * @memberof Event
1826
1866
  */
@@ -1832,7 +1872,7 @@ export interface Event {
1832
1872
  */
1833
1873
  'createdAt': string;
1834
1874
  /**
1835
- * Type of the [Event](#schema_event).
1875
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
1836
1876
  * @type {string}
1837
1877
  * @memberof Event
1838
1878
  */
@@ -2248,7 +2288,7 @@ export interface GetMessageResponse {
2248
2288
  */
2249
2289
  export interface GetOrCreateConversationBody {
2250
2290
  /**
2251
- * Channel name
2291
+ * Unique identifier of the integration that was installed on the bot
2252
2292
  * @type {string}
2253
2293
  * @memberof GetOrCreateConversationBody
2254
2294
  */
@@ -2262,7 +2302,7 @@ export interface GetOrCreateConversationBody {
2262
2302
  [key: string]: string;
2263
2303
  };
2264
2304
  /**
2265
- * Name of the integration to which the conversation creation will be delegated
2305
+ * [DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.
2266
2306
  * @type {string}
2267
2307
  * @memberof GetOrCreateConversationBody
2268
2308
  */
@@ -2296,19 +2336,19 @@ export interface GetOrCreateMessageBody {
2296
2336
  [key: string]: any;
2297
2337
  };
2298
2338
  /**
2299
- * ID of the [User](#schema_user)
2339
+ * User id
2300
2340
  * @type {string}
2301
2341
  * @memberof GetOrCreateMessageBody
2302
2342
  */
2303
2343
  'userId': string;
2304
2344
  /**
2305
- * ID of the [Conversation](#schema_conversation)
2345
+ * User id
2306
2346
  * @type {string}
2307
2347
  * @memberof GetOrCreateMessageBody
2308
2348
  */
2309
2349
  'conversationId': string;
2310
2350
  /**
2311
- * Type of the [Message](#schema_message) represents the resource type that the message is related to
2351
+ * Unique identifier of the integration that was installed on the bot
2312
2352
  * @type {string}
2313
2353
  * @memberof GetOrCreateMessageBody
2314
2354
  */
@@ -2356,7 +2396,7 @@ export interface GetOrCreateUserBody {
2356
2396
  [key: string]: string;
2357
2397
  };
2358
2398
  /**
2359
- * Name of the integration to which the user creation will be delegated
2399
+ * [DEPRECATED] To create a user from within a bot, call an action of the integration instead.
2360
2400
  * @type {string}
2361
2401
  * @memberof GetOrCreateUserBody
2362
2402
  */
@@ -2368,7 +2408,7 @@ export interface GetOrCreateUserBody {
2368
2408
  */
2369
2409
  'name'?: string;
2370
2410
  /**
2371
- * URL of the user picture
2411
+ * URI of the user picture
2372
2412
  * @type {string}
2373
2413
  * @memberof GetOrCreateUserBody
2374
2414
  */
@@ -2627,13 +2667,12 @@ export declare const GetWorkspaceQuotaResponseQuotaTypeEnum: {
2627
2667
  readonly InvocationCalls: "invocation_calls";
2628
2668
  readonly StorageCount: "storage_count";
2629
2669
  readonly BotCount: "bot_count";
2630
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
2631
- readonly BotRatelimit: "bot_ratelimit";
2670
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
2671
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
2632
2672
  readonly TableRowCount: "table_row_count";
2633
2673
  readonly WorkspaceMemberCount: "workspace_member_count";
2634
2674
  readonly IntegrationsOwnedCount: "integrations_owned_count";
2635
- readonly CognitiveCalls: "cognitive_calls";
2636
- readonly ModelCredit: "model_credit";
2675
+ readonly AiSpend: "ai_spend";
2637
2676
  };
2638
2677
  export type GetWorkspaceQuotaResponseQuotaTypeEnum = typeof GetWorkspaceQuotaResponseQuotaTypeEnum[keyof typeof GetWorkspaceQuotaResponseQuotaTypeEnum];
2639
2678
  /**
@@ -2721,7 +2760,7 @@ export type GetWorkspaceResponsePlanEnum = typeof GetWorkspaceResponsePlanEnum[k
2721
2760
  */
2722
2761
  export interface Integration {
2723
2762
  /**
2724
- * ID of the [Integration](#schema_integration)
2763
+ * ID of the [Conversation](#schema_conversation)
2725
2764
  * @type {string}
2726
2765
  * @memberof Integration
2727
2766
  */
@@ -2745,13 +2784,13 @@ export interface Integration {
2745
2784
  */
2746
2785
  'identifier': IntegrationIdentifier;
2747
2786
  /**
2748
- * Name of the [Integration](#schema_integration)
2787
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
2749
2788
  * @type {string}
2750
2789
  * @memberof Integration
2751
2790
  */
2752
2791
  'name': string;
2753
2792
  /**
2754
- * Version of the [Integration](#schema_integration)
2793
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
2755
2794
  * @type {string}
2756
2795
  * @memberof Integration
2757
2796
  */
@@ -2919,7 +2958,7 @@ export interface IntegrationConfiguration {
2919
2958
  */
2920
2959
  export interface IntegrationConfigurationIdentifier {
2921
2960
  /**
2922
- *
2961
+ * Signing secret of the [Bot](#schema_bot)
2923
2962
  * @type {string}
2924
2963
  * @memberof IntegrationConfigurationIdentifier
2925
2964
  */
@@ -3311,7 +3350,7 @@ export interface ListBotsResponse {
3311
3350
  */
3312
3351
  export interface ListBotsResponseBotsInner {
3313
3352
  /**
3314
- * Id of the [Bot](#schema_bot)
3353
+ * User id
3315
3354
  * @type {string}
3316
3355
  * @memberof ListBotsResponseBotsInner
3317
3356
  */
@@ -3532,19 +3571,19 @@ export interface ListPublicIntegrationsResponse {
3532
3571
  */
3533
3572
  export interface ListPublicIntegrationsResponseIntegrationsInner {
3534
3573
  /**
3535
- * ID of the [Integration](#schema_integration)
3574
+ * User id
3536
3575
  * @type {string}
3537
3576
  * @memberof ListPublicIntegrationsResponseIntegrationsInner
3538
3577
  */
3539
3578
  'id': string;
3540
3579
  /**
3541
- * Name of the [Integration](#schema_integration)
3580
+ * Unique identifier of the integration that was installed on the bot
3542
3581
  * @type {string}
3543
3582
  * @memberof ListPublicIntegrationsResponseIntegrationsInner
3544
3583
  */
3545
3584
  'name': string;
3546
3585
  /**
3547
- * Version of the [Integration](#schema_integration)
3586
+ * Unique identifier of the integration that was installed on the bot
3548
3587
  * @type {string}
3549
3588
  * @memberof ListPublicIntegrationsResponseIntegrationsInner
3550
3589
  */
@@ -3812,13 +3851,12 @@ export declare const ListWorkspaceQuotasResponseQuotasInnerTypeEnum: {
3812
3851
  readonly InvocationCalls: "invocation_calls";
3813
3852
  readonly StorageCount: "storage_count";
3814
3853
  readonly BotCount: "bot_count";
3815
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
3816
- readonly BotRatelimit: "bot_ratelimit";
3854
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
3855
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
3817
3856
  readonly TableRowCount: "table_row_count";
3818
3857
  readonly WorkspaceMemberCount: "workspace_member_count";
3819
3858
  readonly IntegrationsOwnedCount: "integrations_owned_count";
3820
- readonly CognitiveCalls: "cognitive_calls";
3821
- readonly ModelCredit: "model_credit";
3859
+ readonly AiSpend: "ai_spend";
3822
3860
  };
3823
3861
  export type ListWorkspaceQuotasResponseQuotasInnerTypeEnum = typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum[keyof typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum];
3824
3862
  /**
@@ -3860,7 +3898,7 @@ export interface ListWorkspacesResponse {
3860
3898
  */
3861
3899
  export interface Message {
3862
3900
  /**
3863
- * Id of the [Message](#schema_message)
3901
+ * ID of the [Conversation](#schema_conversation)
3864
3902
  * @type {string}
3865
3903
  * @memberof Message
3866
3904
  */
@@ -3892,7 +3930,7 @@ export interface Message {
3892
3930
  */
3893
3931
  'direction': MessageDirectionEnum;
3894
3932
  /**
3895
- * ID of the [User](#schema_user)
3933
+ * ID of the [Conversation](#schema_conversation)
3896
3934
  * @type {string}
3897
3935
  * @memberof Message
3898
3936
  */
@@ -4106,7 +4144,7 @@ export interface SetWorkspacePaymentMethodResponseNextAction {
4106
4144
  */
4107
4145
  export interface State {
4108
4146
  /**
4109
- * Id of the [State](#schema_state)
4147
+ * ID of the [Conversation](#schema_conversation)
4110
4148
  * @type {string}
4111
4149
  * @memberof State
4112
4150
  */
@@ -4124,7 +4162,7 @@ export interface State {
4124
4162
  */
4125
4163
  'updatedAt': string;
4126
4164
  /**
4127
- * Id of the [Bot](#schema_bot)
4165
+ * ID of the [Conversation](#schema_conversation)
4128
4166
  * @type {string}
4129
4167
  * @memberof State
4130
4168
  */
@@ -4142,7 +4180,7 @@ export interface State {
4142
4180
  */
4143
4181
  'userId'?: string;
4144
4182
  /**
4145
- * Name of the [State](#schema_state) which is declared inside the bot definition
4183
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
4146
4184
  * @type {string}
4147
4185
  * @memberof State
4148
4186
  */
@@ -4346,7 +4384,7 @@ export interface UpdateBotBodyRecurringEventsValue {
4346
4384
  */
4347
4385
  'schedule': CreateBotBodyRecurringEventsValueSchedule;
4348
4386
  /**
4349
- *
4387
+ * Unique identifier of the integration that was installed on the bot
4350
4388
  * @type {string}
4351
4389
  * @memberof UpdateBotBodyRecurringEventsValue
4352
4390
  */
@@ -4695,7 +4733,7 @@ export interface UpdateIntegrationBodyConfiguration {
4695
4733
  */
4696
4734
  export interface UpdateIntegrationBodyConfigurationIdentifier {
4697
4735
  /**
4698
- *
4736
+ * Signing secret of the [Bot](#schema_bot)
4699
4737
  * @type {string}
4700
4738
  * @memberof UpdateIntegrationBodyConfigurationIdentifier
4701
4739
  */
@@ -4714,13 +4752,13 @@ export interface UpdateIntegrationBodyConfigurationIdentifier {
4714
4752
  */
4715
4753
  export interface UpdateIntegrationBodyIdentifier {
4716
4754
  /**
4717
- *
4755
+ * Signing secret of the [Bot](#schema_bot)
4718
4756
  * @type {string}
4719
4757
  * @memberof UpdateIntegrationBodyIdentifier
4720
4758
  */
4721
4759
  'extractScript'?: string | null;
4722
4760
  /**
4723
- *
4761
+ * Signing secret of the [Bot](#schema_bot)
4724
4762
  * @type {string}
4725
4763
  * @memberof UpdateIntegrationBodyIdentifier
4726
4764
  */
@@ -4826,7 +4864,7 @@ export interface UpdateUserBody {
4826
4864
  * @type {{ [key: string]: string; }}
4827
4865
  * @memberof UpdateUserBody
4828
4866
  */
4829
- 'tags': {
4867
+ 'tags'?: {
4830
4868
  [key: string]: string;
4831
4869
  };
4832
4870
  /**
@@ -4834,9 +4872,9 @@ export interface UpdateUserBody {
4834
4872
  * @type {string}
4835
4873
  * @memberof UpdateUserBody
4836
4874
  */
4837
- 'name'?: string | null;
4875
+ 'name'?: string;
4838
4876
  /**
4839
- * URL of the user picture
4877
+ * URI of the user picture
4840
4878
  * @type {string}
4841
4879
  * @memberof UpdateUserBody
4842
4880
  */
@@ -5134,13 +5172,12 @@ export declare const UsageTypeEnum: {
5134
5172
  readonly InvocationCalls: "invocation_calls";
5135
5173
  readonly StorageCount: "storage_count";
5136
5174
  readonly BotCount: "bot_count";
5137
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
5138
- readonly BotRatelimit: "bot_ratelimit";
5175
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
5176
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
5139
5177
  readonly TableRowCount: "table_row_count";
5140
5178
  readonly WorkspaceMemberCount: "workspace_member_count";
5141
5179
  readonly IntegrationsOwnedCount: "integrations_owned_count";
5142
- readonly CognitiveCalls: "cognitive_calls";
5143
- readonly ModelCredit: "model_credit";
5180
+ readonly AiSpend: "ai_spend";
5144
5181
  };
5145
5182
  export type UsageTypeEnum = typeof UsageTypeEnum[keyof typeof UsageTypeEnum];
5146
5183
  /**
@@ -5150,7 +5187,7 @@ export type UsageTypeEnum = typeof UsageTypeEnum[keyof typeof UsageTypeEnum];
5150
5187
  */
5151
5188
  export interface User {
5152
5189
  /**
5153
- * Id of the [User](#schema_user)
5190
+ * ID of the [Conversation](#schema_conversation)
5154
5191
  * @type {string}
5155
5192
  * @memberof User
5156
5193
  */
@@ -7881,7 +7918,7 @@ export interface DefaultApiGetStateRequest {
7881
7918
  export interface DefaultApiGetUsageRequest {
7882
7919
  /**
7883
7920
  * Type of usage
7884
- * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'cognitive_calls' | 'model_credit'}
7921
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_storage' | 'workspace_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'ai_spend'}
7885
7922
  * @memberof DefaultApiGetUsage
7886
7923
  */
7887
7924
  readonly type: GetUsageTypeEnum;
@@ -7951,7 +7988,7 @@ export interface DefaultApiGetWorkspaceQuotaRequest {
7951
7988
  readonly id: string;
7952
7989
  /**
7953
7990
  * Type of usage
7954
- * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'cognitive_calls' | 'model_credit'}
7991
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_storage' | 'workspace_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'ai_spend'}
7955
7992
  * @memberof DefaultApiGetWorkspaceQuota
7956
7993
  */
7957
7994
  readonly type: GetWorkspaceQuotaTypeEnum;
@@ -8213,7 +8250,7 @@ export interface DefaultApiListPublicIntegrationsRequest {
8213
8250
  export interface DefaultApiListUsageHistoryRequest {
8214
8251
  /**
8215
8252
  * Type of usage
8216
- * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'cognitive_calls' | 'model_credit'}
8253
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_storage' | 'workspace_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'ai_spend'}
8217
8254
  * @memberof DefaultApiListUsageHistory
8218
8255
  */
8219
8256
  readonly type: ListUsageHistoryTypeEnum;
@@ -8310,7 +8347,7 @@ export interface DefaultApiListWorkspaceUsagesRequest {
8310
8347
  readonly id: string;
8311
8348
  /**
8312
8349
  * Type of usage
8313
- * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'cognitive_calls' | 'model_credit'}
8350
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_storage' | 'workspace_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count' | 'ai_spend'}
8314
8351
  * @memberof DefaultApiListWorkspaceUsages
8315
8352
  */
8316
8353
  readonly type: ListWorkspaceUsagesTypeEnum;
@@ -9276,13 +9313,12 @@ export declare const GetUsageTypeEnum: {
9276
9313
  readonly InvocationCalls: "invocation_calls";
9277
9314
  readonly StorageCount: "storage_count";
9278
9315
  readonly BotCount: "bot_count";
9279
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
9280
- readonly BotRatelimit: "bot_ratelimit";
9316
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
9317
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
9281
9318
  readonly TableRowCount: "table_row_count";
9282
9319
  readonly WorkspaceMemberCount: "workspace_member_count";
9283
9320
  readonly IntegrationsOwnedCount: "integrations_owned_count";
9284
- readonly CognitiveCalls: "cognitive_calls";
9285
- readonly ModelCredit: "model_credit";
9321
+ readonly AiSpend: "ai_spend";
9286
9322
  };
9287
9323
  export type GetUsageTypeEnum = typeof GetUsageTypeEnum[keyof typeof GetUsageTypeEnum];
9288
9324
  /**
@@ -9293,13 +9329,12 @@ export declare const GetWorkspaceQuotaTypeEnum: {
9293
9329
  readonly InvocationCalls: "invocation_calls";
9294
9330
  readonly StorageCount: "storage_count";
9295
9331
  readonly BotCount: "bot_count";
9296
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
9297
- readonly BotRatelimit: "bot_ratelimit";
9332
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
9333
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
9298
9334
  readonly TableRowCount: "table_row_count";
9299
9335
  readonly WorkspaceMemberCount: "workspace_member_count";
9300
9336
  readonly IntegrationsOwnedCount: "integrations_owned_count";
9301
- readonly CognitiveCalls: "cognitive_calls";
9302
- readonly ModelCredit: "model_credit";
9337
+ readonly AiSpend: "ai_spend";
9303
9338
  };
9304
9339
  export type GetWorkspaceQuotaTypeEnum = typeof GetWorkspaceQuotaTypeEnum[keyof typeof GetWorkspaceQuotaTypeEnum];
9305
9340
  /**
@@ -9310,13 +9345,12 @@ export declare const ListUsageHistoryTypeEnum: {
9310
9345
  readonly InvocationCalls: "invocation_calls";
9311
9346
  readonly StorageCount: "storage_count";
9312
9347
  readonly BotCount: "bot_count";
9313
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
9314
- readonly BotRatelimit: "bot_ratelimit";
9348
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
9349
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
9315
9350
  readonly TableRowCount: "table_row_count";
9316
9351
  readonly WorkspaceMemberCount: "workspace_member_count";
9317
9352
  readonly IntegrationsOwnedCount: "integrations_owned_count";
9318
- readonly CognitiveCalls: "cognitive_calls";
9319
- readonly ModelCredit: "model_credit";
9353
+ readonly AiSpend: "ai_spend";
9320
9354
  };
9321
9355
  export type ListUsageHistoryTypeEnum = typeof ListUsageHistoryTypeEnum[keyof typeof ListUsageHistoryTypeEnum];
9322
9356
  /**
@@ -9327,13 +9361,12 @@ export declare const ListWorkspaceUsagesTypeEnum: {
9327
9361
  readonly InvocationCalls: "invocation_calls";
9328
9362
  readonly StorageCount: "storage_count";
9329
9363
  readonly BotCount: "bot_count";
9330
- readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
9331
- readonly BotRatelimit: "bot_ratelimit";
9364
+ readonly KnowledgebaseVectorStorage: "knowledgebase_vector_storage";
9365
+ readonly WorkspaceRatelimit: "workspace_ratelimit";
9332
9366
  readonly TableRowCount: "table_row_count";
9333
9367
  readonly WorkspaceMemberCount: "workspace_member_count";
9334
9368
  readonly IntegrationsOwnedCount: "integrations_owned_count";
9335
- readonly CognitiveCalls: "cognitive_calls";
9336
- readonly ModelCredit: "model_credit";
9369
+ readonly AiSpend: "ai_spend";
9337
9370
  };
9338
9371
  export type ListWorkspaceUsagesTypeEnum = typeof ListWorkspaceUsagesTypeEnum[keyof typeof ListWorkspaceUsagesTypeEnum];
9339
9372
  /**