@botpress/client 0.5.1 → 0.6.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.7.1
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -539,7 +539,7 @@ export interface CreateBotBody {
539
539
  [key: string]: CreateBotBodyEventsValue;
540
540
  };
541
541
  /**
542
- * Recurring events
542
+ *
543
543
  * @type {{ [key: string]: CreateBotBodyRecurringEventsValue; }}
544
544
  * @memberof CreateBotBody
545
545
  */
@@ -2152,6 +2152,19 @@ export interface GetStateResponse {
2152
2152
  */
2153
2153
  'state': State;
2154
2154
  }
2155
+ /**
2156
+ *
2157
+ * @export
2158
+ * @interface GetUsageResponse
2159
+ */
2160
+ export interface GetUsageResponse {
2161
+ /**
2162
+ *
2163
+ * @type {Usage}
2164
+ * @memberof GetUsageResponse
2165
+ */
2166
+ 'usage': Usage;
2167
+ }
2155
2168
  /**
2156
2169
  *
2157
2170
  * @export
@@ -2165,6 +2178,56 @@ export interface GetUserResponse {
2165
2178
  */
2166
2179
  'user': User;
2167
2180
  }
2181
+ /**
2182
+ *
2183
+ * @export
2184
+ * @interface GetWorkspaceQuotaResponse
2185
+ */
2186
+ export interface GetWorkspaceQuotaResponse {
2187
+ /**
2188
+ *
2189
+ * @type {GetWorkspaceQuotaResponseQuota}
2190
+ * @memberof GetWorkspaceQuotaResponse
2191
+ */
2192
+ 'quota': GetWorkspaceQuotaResponseQuota;
2193
+ }
2194
+ /**
2195
+ *
2196
+ * @export
2197
+ * @interface GetWorkspaceQuotaResponseQuota
2198
+ */
2199
+ export interface GetWorkspaceQuotaResponseQuota {
2200
+ /**
2201
+ * Period of the quota that it is applied to
2202
+ * @type {string}
2203
+ * @memberof GetWorkspaceQuotaResponseQuota
2204
+ */
2205
+ 'period': string;
2206
+ /**
2207
+ * Value of the quota that is used
2208
+ * @type {number}
2209
+ * @memberof GetWorkspaceQuotaResponseQuota
2210
+ */
2211
+ 'value': number;
2212
+ /**
2213
+ * Usage type that can be used
2214
+ * @type {string}
2215
+ * @memberof GetWorkspaceQuotaResponseQuota
2216
+ */
2217
+ 'type': GetWorkspaceQuotaResponseQuotaTypeEnum;
2218
+ }
2219
+ export declare const GetWorkspaceQuotaResponseQuotaTypeEnum: {
2220
+ readonly InvocationTimeout: "invocation_timeout";
2221
+ readonly InvocationCalls: "invocation_calls";
2222
+ readonly StorageCount: "storage_count";
2223
+ readonly BotCount: "bot_count";
2224
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
2225
+ readonly BotRatelimit: "bot_ratelimit";
2226
+ readonly TableRowCount: "table_row_count";
2227
+ readonly WorkspaceMemberCount: "workspace_member_count";
2228
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
2229
+ };
2230
+ export type GetWorkspaceQuotaResponseQuotaTypeEnum = typeof GetWorkspaceQuotaResponseQuotaTypeEnum[keyof typeof GetWorkspaceQuotaResponseQuotaTypeEnum];
2168
2231
  /**
2169
2232
  *
2170
2233
  * @export
@@ -2461,6 +2524,236 @@ export interface IntrospectResponse {
2461
2524
  */
2462
2525
  'userId': string;
2463
2526
  }
2527
+ /**
2528
+ *
2529
+ * @export
2530
+ * @interface Issue
2531
+ */
2532
+ export interface Issue {
2533
+ /**
2534
+ *
2535
+ * @type {string}
2536
+ * @memberof Issue
2537
+ */
2538
+ 'id': string;
2539
+ /**
2540
+ *
2541
+ * @type {string}
2542
+ * @memberof Issue
2543
+ */
2544
+ 'code': string;
2545
+ /**
2546
+ *
2547
+ * @type {string}
2548
+ * @memberof Issue
2549
+ */
2550
+ 'createdAt': string;
2551
+ /**
2552
+ *
2553
+ * @type {string}
2554
+ * @memberof Issue
2555
+ */
2556
+ 'lastSeenAt': string;
2557
+ /**
2558
+ *
2559
+ * @type {string}
2560
+ * @memberof Issue
2561
+ */
2562
+ 'title': string;
2563
+ /**
2564
+ *
2565
+ * @type {string}
2566
+ * @memberof Issue
2567
+ */
2568
+ 'description': string;
2569
+ /**
2570
+ *
2571
+ * @type {object}
2572
+ * @memberof Issue
2573
+ */
2574
+ 'groupedData': object;
2575
+ /**
2576
+ *
2577
+ * @type {number}
2578
+ * @memberof Issue
2579
+ */
2580
+ 'eventsCount': number;
2581
+ /**
2582
+ *
2583
+ * @type {string}
2584
+ * @memberof Issue
2585
+ */
2586
+ 'category': IssueCategoryEnum;
2587
+ /**
2588
+ *
2589
+ * @type {string}
2590
+ * @memberof Issue
2591
+ */
2592
+ 'resolutionLink': string | null;
2593
+ }
2594
+ export declare const IssueCategoryEnum: {
2595
+ readonly UserCode: "user_code";
2596
+ readonly Limits: "limits";
2597
+ readonly Configuration: "configuration";
2598
+ readonly Other: "other";
2599
+ };
2600
+ export type IssueCategoryEnum = typeof IssueCategoryEnum[keyof typeof IssueCategoryEnum];
2601
+ /**
2602
+ *
2603
+ * @export
2604
+ * @interface IssueEvent
2605
+ */
2606
+ export interface IssueEvent {
2607
+ /**
2608
+ *
2609
+ * @type {string}
2610
+ * @memberof IssueEvent
2611
+ */
2612
+ 'id': string;
2613
+ /**
2614
+ *
2615
+ * @type {string}
2616
+ * @memberof IssueEvent
2617
+ */
2618
+ 'createdAt': string;
2619
+ /**
2620
+ *
2621
+ * @type {object}
2622
+ * @memberof IssueEvent
2623
+ */
2624
+ 'data': object;
2625
+ }
2626
+ /**
2627
+ *
2628
+ * @export
2629
+ * @interface ListBotIssueEventsResponse
2630
+ */
2631
+ export interface ListBotIssueEventsResponse {
2632
+ /**
2633
+ *
2634
+ * @type {Array<ListBotIssueEventsResponseIssueEventsInner>}
2635
+ * @memberof ListBotIssueEventsResponse
2636
+ */
2637
+ 'issueEvents': Array<ListBotIssueEventsResponseIssueEventsInner>;
2638
+ }
2639
+ /**
2640
+ *
2641
+ * @export
2642
+ * @interface ListBotIssueEventsResponseIssueEventsInner
2643
+ */
2644
+ export interface ListBotIssueEventsResponseIssueEventsInner {
2645
+ /**
2646
+ *
2647
+ * @type {string}
2648
+ * @memberof ListBotIssueEventsResponseIssueEventsInner
2649
+ */
2650
+ 'id': string;
2651
+ /**
2652
+ *
2653
+ * @type {string}
2654
+ * @memberof ListBotIssueEventsResponseIssueEventsInner
2655
+ */
2656
+ 'createdAt': string;
2657
+ /**
2658
+ *
2659
+ * @type {object}
2660
+ * @memberof ListBotIssueEventsResponseIssueEventsInner
2661
+ */
2662
+ 'data': object;
2663
+ }
2664
+ /**
2665
+ *
2666
+ * @export
2667
+ * @interface ListBotIssuesResponse
2668
+ */
2669
+ export interface ListBotIssuesResponse {
2670
+ /**
2671
+ *
2672
+ * @type {Array<ListBotIssuesResponseIssuesInner>}
2673
+ * @memberof ListBotIssuesResponse
2674
+ */
2675
+ 'issues': Array<ListBotIssuesResponseIssuesInner>;
2676
+ /**
2677
+ *
2678
+ * @type {ListConversationsResponseMeta}
2679
+ * @memberof ListBotIssuesResponse
2680
+ */
2681
+ 'meta': ListConversationsResponseMeta;
2682
+ }
2683
+ /**
2684
+ *
2685
+ * @export
2686
+ * @interface ListBotIssuesResponseIssuesInner
2687
+ */
2688
+ export interface ListBotIssuesResponseIssuesInner {
2689
+ /**
2690
+ *
2691
+ * @type {string}
2692
+ * @memberof ListBotIssuesResponseIssuesInner
2693
+ */
2694
+ 'id': string;
2695
+ /**
2696
+ *
2697
+ * @type {string}
2698
+ * @memberof ListBotIssuesResponseIssuesInner
2699
+ */
2700
+ 'code': string;
2701
+ /**
2702
+ *
2703
+ * @type {string}
2704
+ * @memberof ListBotIssuesResponseIssuesInner
2705
+ */
2706
+ 'createdAt': string;
2707
+ /**
2708
+ *
2709
+ * @type {string}
2710
+ * @memberof ListBotIssuesResponseIssuesInner
2711
+ */
2712
+ 'lastSeenAt': string;
2713
+ /**
2714
+ *
2715
+ * @type {string}
2716
+ * @memberof ListBotIssuesResponseIssuesInner
2717
+ */
2718
+ 'title': string;
2719
+ /**
2720
+ *
2721
+ * @type {string}
2722
+ * @memberof ListBotIssuesResponseIssuesInner
2723
+ */
2724
+ 'description': string;
2725
+ /**
2726
+ *
2727
+ * @type {object}
2728
+ * @memberof ListBotIssuesResponseIssuesInner
2729
+ */
2730
+ 'groupedData': object;
2731
+ /**
2732
+ *
2733
+ * @type {number}
2734
+ * @memberof ListBotIssuesResponseIssuesInner
2735
+ */
2736
+ 'eventsCount': number;
2737
+ /**
2738
+ *
2739
+ * @type {string}
2740
+ * @memberof ListBotIssuesResponseIssuesInner
2741
+ */
2742
+ 'category': ListBotIssuesResponseIssuesInnerCategoryEnum;
2743
+ /**
2744
+ *
2745
+ * @type {string}
2746
+ * @memberof ListBotIssuesResponseIssuesInner
2747
+ */
2748
+ 'resolutionLink': string | null;
2749
+ }
2750
+ export declare const ListBotIssuesResponseIssuesInnerCategoryEnum: {
2751
+ readonly UserCode: "user_code";
2752
+ readonly Limits: "limits";
2753
+ readonly Configuration: "configuration";
2754
+ readonly Other: "other";
2755
+ };
2756
+ export type ListBotIssuesResponseIssuesInnerCategoryEnum = typeof ListBotIssuesResponseIssuesInnerCategoryEnum[keyof typeof ListBotIssuesResponseIssuesInnerCategoryEnum];
2464
2757
  /**
2465
2758
  *
2466
2759
  * @export
@@ -2737,6 +3030,19 @@ export interface ListPublicIntegrationsResponseIntegrationsInner {
2737
3030
  */
2738
3031
  'iconUrl': string;
2739
3032
  }
3033
+ /**
3034
+ *
3035
+ * @export
3036
+ * @interface ListUsageHistoryResponse
3037
+ */
3038
+ export interface ListUsageHistoryResponse {
3039
+ /**
3040
+ *
3041
+ * @type {Array<Usage>}
3042
+ * @memberof ListUsageHistoryResponse
3043
+ */
3044
+ 'usages': Array<Usage>;
3045
+ }
2740
3046
  /**
2741
3047
  *
2742
3048
  * @export
@@ -2815,6 +3121,69 @@ export declare const ListWorkspaceMembersResponseMembersInnerRoleEnum: {
2815
3121
  readonly Owner: "owner";
2816
3122
  };
2817
3123
  export type ListWorkspaceMembersResponseMembersInnerRoleEnum = typeof ListWorkspaceMembersResponseMembersInnerRoleEnum[keyof typeof ListWorkspaceMembersResponseMembersInnerRoleEnum];
3124
+ /**
3125
+ *
3126
+ * @export
3127
+ * @interface ListWorkspaceQuotasResponse
3128
+ */
3129
+ export interface ListWorkspaceQuotasResponse {
3130
+ /**
3131
+ *
3132
+ * @type {Array<ListWorkspaceQuotasResponseQuotasInner>}
3133
+ * @memberof ListWorkspaceQuotasResponse
3134
+ */
3135
+ 'quotas': Array<ListWorkspaceQuotasResponseQuotasInner>;
3136
+ }
3137
+ /**
3138
+ *
3139
+ * @export
3140
+ * @interface ListWorkspaceQuotasResponseQuotasInner
3141
+ */
3142
+ export interface ListWorkspaceQuotasResponseQuotasInner {
3143
+ /**
3144
+ * Period of the quota that it is applied to
3145
+ * @type {string}
3146
+ * @memberof ListWorkspaceQuotasResponseQuotasInner
3147
+ */
3148
+ 'period': string;
3149
+ /**
3150
+ * Value of the quota that is used
3151
+ * @type {number}
3152
+ * @memberof ListWorkspaceQuotasResponseQuotasInner
3153
+ */
3154
+ 'value': number;
3155
+ /**
3156
+ * Usage type that can be used
3157
+ * @type {string}
3158
+ * @memberof ListWorkspaceQuotasResponseQuotasInner
3159
+ */
3160
+ 'type': ListWorkspaceQuotasResponseQuotasInnerTypeEnum;
3161
+ }
3162
+ export declare const ListWorkspaceQuotasResponseQuotasInnerTypeEnum: {
3163
+ readonly InvocationTimeout: "invocation_timeout";
3164
+ readonly InvocationCalls: "invocation_calls";
3165
+ readonly StorageCount: "storage_count";
3166
+ readonly BotCount: "bot_count";
3167
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
3168
+ readonly BotRatelimit: "bot_ratelimit";
3169
+ readonly TableRowCount: "table_row_count";
3170
+ readonly WorkspaceMemberCount: "workspace_member_count";
3171
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
3172
+ };
3173
+ export type ListWorkspaceQuotasResponseQuotasInnerTypeEnum = typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum[keyof typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum];
3174
+ /**
3175
+ *
3176
+ * @export
3177
+ * @interface ListWorkspaceUsagesResponse
3178
+ */
3179
+ export interface ListWorkspaceUsagesResponse {
3180
+ /**
3181
+ *
3182
+ * @type {Array<Usage>}
3183
+ * @memberof ListWorkspaceUsagesResponse
3184
+ */
3185
+ 'usages': Array<Usage>;
3186
+ }
2818
3187
  /**
2819
3188
  *
2820
3189
  * @export
@@ -3906,6 +4275,55 @@ export declare const UpdateWorkspaceResponse1AccountTypeEnum: {
3906
4275
  readonly Premium: "premium";
3907
4276
  };
3908
4277
  export type UpdateWorkspaceResponse1AccountTypeEnum = typeof UpdateWorkspaceResponse1AccountTypeEnum[keyof typeof UpdateWorkspaceResponse1AccountTypeEnum];
4278
+ /**
4279
+ *
4280
+ * @export
4281
+ * @interface Usage
4282
+ */
4283
+ export interface Usage {
4284
+ /**
4285
+ * Id of the usage that it is linked to. It can either be a workspace id or a bot id
4286
+ * @type {string}
4287
+ * @memberof Usage
4288
+ */
4289
+ 'id': string;
4290
+ /**
4291
+ * Period of the quota that it is applied to
4292
+ * @type {string}
4293
+ * @memberof Usage
4294
+ */
4295
+ 'period': string;
4296
+ /**
4297
+ * Value of the current usage
4298
+ * @type {number}
4299
+ * @memberof Usage
4300
+ */
4301
+ 'value': number;
4302
+ /**
4303
+ * Quota of the current usage
4304
+ * @type {number}
4305
+ * @memberof Usage
4306
+ */
4307
+ 'quota': number;
4308
+ /**
4309
+ * Usage type that can be used
4310
+ * @type {string}
4311
+ * @memberof Usage
4312
+ */
4313
+ 'type': UsageTypeEnum;
4314
+ }
4315
+ export declare const UsageTypeEnum: {
4316
+ readonly InvocationTimeout: "invocation_timeout";
4317
+ readonly InvocationCalls: "invocation_calls";
4318
+ readonly StorageCount: "storage_count";
4319
+ readonly BotCount: "bot_count";
4320
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
4321
+ readonly BotRatelimit: "bot_ratelimit";
4322
+ readonly TableRowCount: "table_row_count";
4323
+ readonly WorkspaceMemberCount: "workspace_member_count";
4324
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
4325
+ };
4326
+ export type UsageTypeEnum = typeof UsageTypeEnum[keyof typeof UsageTypeEnum];
3909
4327
  /**
3910
4328
  * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
3911
4329
  * @export
@@ -4149,6 +4567,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4149
4567
  * @throws {RequiredError}
4150
4568
  */
4151
4569
  deleteBot: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4570
+ /**
4571
+ * Delete Bot Issue
4572
+ * @param {string} id Bot ID
4573
+ * @param {string} issueId Issue ID
4574
+ * @param {*} [options] Override http request option.
4575
+ * @throws {RequiredError}
4576
+ */
4577
+ deleteBotIssue: (id: string, issueId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4152
4578
  /**
4153
4579
  * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).
4154
4580
  * @param {string} id Conversation id
@@ -4165,7 +4591,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4165
4591
  deleteFile: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4166
4592
  /**
4167
4593
  * Delete integration
4168
- * @param {string} id Integration Id
4594
+ * @param {string} id Integration ID
4169
4595
  * @param {*} [options] Override http request option.
4170
4596
  * @throws {RequiredError}
4171
4597
  */
@@ -4283,7 +4709,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4283
4709
  getFile: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4284
4710
  /**
4285
4711
  * Get integration
4286
- * @param {string} id Integration Id
4712
+ * @param {string} id Integration ID
4287
4713
  * @param {*} [options] Override http request option.
4288
4714
  * @throws {RequiredError}
4289
4715
  */
@@ -4298,7 +4724,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4298
4724
  getIntegrationByName: (name: string, version: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4299
4725
  /**
4300
4726
  * Get integration logs
4301
- * @param {string} id Integration Id
4727
+ * @param {string} id Integration ID
4302
4728
  * @param {string} timeStart Beginning of the time range to get logs from
4303
4729
  * @param {string} timeEnd End of the time range to get logs from
4304
4730
  * @param {string} [nextToken] Token to get the next page of logs
@@ -4344,7 +4770,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4344
4770
  getPublicIntegration: (name: string, version: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4345
4771
  /**
4346
4772
  * Get public integration by Id
4347
- * @param {string} id Integration Id
4773
+ * @param {string} id Integration ID
4348
4774
  * @param {*} [options] Override http request option.
4349
4775
  * @throws {RequiredError}
4350
4776
  */
@@ -4358,6 +4784,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4358
4784
  * @throws {RequiredError}
4359
4785
  */
4360
4786
  getState: (type: GetStateTypeEnum, id: string, name: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4787
+ /**
4788
+ * Get usage
4789
+ * @param {GetUsageTypeEnum} type Type of usage
4790
+ * @param {string} id id of a bot or a workspace depending on the usage type
4791
+ * @param {string} [period] Period to get
4792
+ * @param {*} [options] Override http request option.
4793
+ * @throws {RequiredError}
4794
+ */
4795
+ getUsage: (type: GetUsageTypeEnum, id: string, period?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4361
4796
  /**
4362
4797
  * Retrieves the [User](#schema_user) object for a valid identifier.
4363
4798
  * @param {string} id User ID
@@ -4372,6 +4807,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4372
4807
  * @throws {RequiredError}
4373
4808
  */
4374
4809
  getWorkspace: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4810
+ /**
4811
+ * Get workspace quota
4812
+ * @param {string} id Workspace ID
4813
+ * @param {GetWorkspaceQuotaTypeEnum} type Type of usage
4814
+ * @param {string} [period] Period to get
4815
+ * @param {*} [options] Override http request option.
4816
+ * @throws {RequiredError}
4817
+ */
4818
+ getWorkspaceQuota: (id: string, type: GetWorkspaceQuotaTypeEnum, period?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4375
4819
  /**
4376
4820
  * Introspect the API
4377
4821
  * @param {IntrospectBody} [introspectBody]
@@ -4379,6 +4823,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4379
4823
  * @throws {RequiredError}
4380
4824
  */
4381
4825
  introspect: (introspectBody?: IntrospectBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4826
+ /**
4827
+ * List Events for a Bot Issue
4828
+ * @param {string} id Bot ID
4829
+ * @param {string} issueId Issue ID
4830
+ * @param {*} [options] Override http request option.
4831
+ * @throws {RequiredError}
4832
+ */
4833
+ listBotIssueEvents: (id: string, issueId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4834
+ /**
4835
+ * List Bot Issues
4836
+ * @param {string} id Bot ID
4837
+ * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
4838
+ * @param {*} [options] Override http request option.
4839
+ * @throws {RequiredError}
4840
+ */
4841
+ listBotIssues: (id: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4382
4842
  /**
4383
4843
  * List bots
4384
4844
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -4448,6 +4908,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4448
4908
  * @throws {RequiredError}
4449
4909
  */
4450
4910
  listPublicIntegrations: (nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4911
+ /**
4912
+ * Get usage history
4913
+ * @param {ListUsageHistoryTypeEnum} type Type of usage
4914
+ * @param {string} id id of a bot or a workspace depending on the usage type
4915
+ * @param {*} [options] Override http request option.
4916
+ * @throws {RequiredError}
4917
+ */
4918
+ listUsageHistory: (type: ListUsageHistoryTypeEnum, id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4451
4919
  /**
4452
4920
  * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).
4453
4921
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -4466,6 +4934,23 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4466
4934
  * @throws {RequiredError}
4467
4935
  */
4468
4936
  listWorkspaceMembers: (nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4937
+ /**
4938
+ * List workspace quotas
4939
+ * @param {string} id Workspace ID
4940
+ * @param {string} [period] Period to get
4941
+ * @param {*} [options] Override http request option.
4942
+ * @throws {RequiredError}
4943
+ */
4944
+ listWorkspaceQuotas: (id: string, period?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4945
+ /**
4946
+ * List workspace usages
4947
+ * @param {string} id Workspace ID
4948
+ * @param {ListWorkspaceUsagesTypeEnum} type Type of usage
4949
+ * @param {string} [period] Period to get
4950
+ * @param {*} [options] Override http request option.
4951
+ * @throws {RequiredError}
4952
+ */
4953
+ listWorkspaceUsages: (id: string, type: ListWorkspaceUsagesTypeEnum, period?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4469
4954
  /**
4470
4955
  * List workspaces the user has access to
4471
4956
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -4519,7 +5004,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
4519
5004
  updateConversation: (id: string, updateConversationBody?: UpdateConversationBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4520
5005
  /**
4521
5006
  * Update integration
4522
- * @param {string} id Integration Id
5007
+ * @param {string} id Integration ID
4523
5008
  * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration
4524
5009
  * @param {*} [options] Override http request option.
4525
5010
  * @throws {RequiredError}
@@ -4662,6 +5147,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4662
5147
  * @throws {RequiredError}
4663
5148
  */
4664
5149
  deleteBot(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
5150
+ /**
5151
+ * Delete Bot Issue
5152
+ * @param {string} id Bot ID
5153
+ * @param {string} issueId Issue ID
5154
+ * @param {*} [options] Override http request option.
5155
+ * @throws {RequiredError}
5156
+ */
5157
+ deleteBotIssue(id: string, issueId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
4665
5158
  /**
4666
5159
  * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).
4667
5160
  * @param {string} id Conversation id
@@ -4678,7 +5171,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4678
5171
  deleteFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
4679
5172
  /**
4680
5173
  * Delete integration
4681
- * @param {string} id Integration Id
5174
+ * @param {string} id Integration ID
4682
5175
  * @param {*} [options] Override http request option.
4683
5176
  * @throws {RequiredError}
4684
5177
  */
@@ -4796,7 +5289,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4796
5289
  getFile(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFileResponse>>;
4797
5290
  /**
4798
5291
  * Get integration
4799
- * @param {string} id Integration Id
5292
+ * @param {string} id Integration ID
4800
5293
  * @param {*} [options] Override http request option.
4801
5294
  * @throws {RequiredError}
4802
5295
  */
@@ -4811,7 +5304,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4811
5304
  getIntegrationByName(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIntegrationByNameResponse>>;
4812
5305
  /**
4813
5306
  * Get integration logs
4814
- * @param {string} id Integration Id
5307
+ * @param {string} id Integration ID
4815
5308
  * @param {string} timeStart Beginning of the time range to get logs from
4816
5309
  * @param {string} timeEnd End of the time range to get logs from
4817
5310
  * @param {string} [nextToken] Token to get the next page of logs
@@ -4857,7 +5350,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4857
5350
  getPublicIntegration(name: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicIntegrationResponse>>;
4858
5351
  /**
4859
5352
  * Get public integration by Id
4860
- * @param {string} id Integration Id
5353
+ * @param {string} id Integration ID
4861
5354
  * @param {*} [options] Override http request option.
4862
5355
  * @throws {RequiredError}
4863
5356
  */
@@ -4871,6 +5364,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4871
5364
  * @throws {RequiredError}
4872
5365
  */
4873
5366
  getState(type: GetStateTypeEnum, id: string, name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetStateResponse>>;
5367
+ /**
5368
+ * Get usage
5369
+ * @param {GetUsageTypeEnum} type Type of usage
5370
+ * @param {string} id id of a bot or a workspace depending on the usage type
5371
+ * @param {string} [period] Period to get
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ */
5375
+ getUsage(type: GetUsageTypeEnum, id: string, period?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUsageResponse>>;
4874
5376
  /**
4875
5377
  * Retrieves the [User](#schema_user) object for a valid identifier.
4876
5378
  * @param {string} id User ID
@@ -4885,6 +5387,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4885
5387
  * @throws {RequiredError}
4886
5388
  */
4887
5389
  getWorkspace(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWorkspaceResponse>>;
5390
+ /**
5391
+ * Get workspace quota
5392
+ * @param {string} id Workspace ID
5393
+ * @param {GetWorkspaceQuotaTypeEnum} type Type of usage
5394
+ * @param {string} [period] Period to get
5395
+ * @param {*} [options] Override http request option.
5396
+ * @throws {RequiredError}
5397
+ */
5398
+ getWorkspaceQuota(id: string, type: GetWorkspaceQuotaTypeEnum, period?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWorkspaceQuotaResponse>>;
4888
5399
  /**
4889
5400
  * Introspect the API
4890
5401
  * @param {IntrospectBody} [introspectBody]
@@ -4892,6 +5403,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4892
5403
  * @throws {RequiredError}
4893
5404
  */
4894
5405
  introspect(introspectBody?: IntrospectBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntrospectResponse>>;
5406
+ /**
5407
+ * List Events for a Bot Issue
5408
+ * @param {string} id Bot ID
5409
+ * @param {string} issueId Issue ID
5410
+ * @param {*} [options] Override http request option.
5411
+ * @throws {RequiredError}
5412
+ */
5413
+ listBotIssueEvents(id: string, issueId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBotIssueEventsResponse>>;
5414
+ /**
5415
+ * List Bot Issues
5416
+ * @param {string} id Bot ID
5417
+ * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
5418
+ * @param {*} [options] Override http request option.
5419
+ * @throws {RequiredError}
5420
+ */
5421
+ listBotIssues(id: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBotIssuesResponse>>;
4895
5422
  /**
4896
5423
  * List bots
4897
5424
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -4961,6 +5488,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4961
5488
  * @throws {RequiredError}
4962
5489
  */
4963
5490
  listPublicIntegrations(nextToken?: string, name?: string, version?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPublicIntegrationsResponse>>;
5491
+ /**
5492
+ * Get usage history
5493
+ * @param {ListUsageHistoryTypeEnum} type Type of usage
5494
+ * @param {string} id id of a bot or a workspace depending on the usage type
5495
+ * @param {*} [options] Override http request option.
5496
+ * @throws {RequiredError}
5497
+ */
5498
+ listUsageHistory(type: ListUsageHistoryTypeEnum, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsageHistoryResponse>>;
4964
5499
  /**
4965
5500
  * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).
4966
5501
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -4979,6 +5514,23 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4979
5514
  * @throws {RequiredError}
4980
5515
  */
4981
5516
  listWorkspaceMembers(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspaceMembersResponse>>;
5517
+ /**
5518
+ * List workspace quotas
5519
+ * @param {string} id Workspace ID
5520
+ * @param {string} [period] Period to get
5521
+ * @param {*} [options] Override http request option.
5522
+ * @throws {RequiredError}
5523
+ */
5524
+ listWorkspaceQuotas(id: string, period?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspaceQuotasResponse>>;
5525
+ /**
5526
+ * List workspace usages
5527
+ * @param {string} id Workspace ID
5528
+ * @param {ListWorkspaceUsagesTypeEnum} type Type of usage
5529
+ * @param {string} [period] Period to get
5530
+ * @param {*} [options] Override http request option.
5531
+ * @throws {RequiredError}
5532
+ */
5533
+ listWorkspaceUsages(id: string, type: ListWorkspaceUsagesTypeEnum, period?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspaceUsagesResponse>>;
4982
5534
  /**
4983
5535
  * List workspaces the user has access to
4984
5536
  * @param {string} [nextToken] Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
@@ -5032,7 +5584,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
5032
5584
  updateConversation(id: string, updateConversationBody?: UpdateConversationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateConversationResponse>>;
5033
5585
  /**
5034
5586
  * Update integration
5035
- * @param {string} id Integration Id
5587
+ * @param {string} id Integration ID
5036
5588
  * @param {UpdateIntegrationBody} [updateIntegrationBody] Integration
5037
5589
  * @param {*} [options] Override http request option.
5038
5590
  * @throws {RequiredError}
@@ -5174,6 +5726,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5174
5726
  * @throws {RequiredError}
5175
5727
  */
5176
5728
  deleteBot(requestParameters: DefaultApiDeleteBotRequest, options?: AxiosRequestConfig): AxiosPromise<object>;
5729
+ /**
5730
+ * Delete Bot Issue
5731
+ * @param {DefaultApiDeleteBotIssueRequest} requestParameters Request parameters.
5732
+ * @param {*} [options] Override http request option.
5733
+ * @throws {RequiredError}
5734
+ */
5735
+ deleteBotIssue(requestParameters: DefaultApiDeleteBotIssueRequest, options?: AxiosRequestConfig): AxiosPromise<object>;
5177
5736
  /**
5178
5737
  * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).
5179
5738
  * @param {DefaultApiDeleteConversationRequest} requestParameters Request parameters.
@@ -5369,6 +5928,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5369
5928
  * @throws {RequiredError}
5370
5929
  */
5371
5930
  getState(requestParameters: DefaultApiGetStateRequest, options?: AxiosRequestConfig): AxiosPromise<GetStateResponse>;
5931
+ /**
5932
+ * Get usage
5933
+ * @param {DefaultApiGetUsageRequest} requestParameters Request parameters.
5934
+ * @param {*} [options] Override http request option.
5935
+ * @throws {RequiredError}
5936
+ */
5937
+ getUsage(requestParameters: DefaultApiGetUsageRequest, options?: AxiosRequestConfig): AxiosPromise<GetUsageResponse>;
5372
5938
  /**
5373
5939
  * Retrieves the [User](#schema_user) object for a valid identifier.
5374
5940
  * @param {DefaultApiGetUserRequest} requestParameters Request parameters.
@@ -5383,6 +5949,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5383
5949
  * @throws {RequiredError}
5384
5950
  */
5385
5951
  getWorkspace(requestParameters: DefaultApiGetWorkspaceRequest, options?: AxiosRequestConfig): AxiosPromise<GetWorkspaceResponse>;
5952
+ /**
5953
+ * Get workspace quota
5954
+ * @param {DefaultApiGetWorkspaceQuotaRequest} requestParameters Request parameters.
5955
+ * @param {*} [options] Override http request option.
5956
+ * @throws {RequiredError}
5957
+ */
5958
+ getWorkspaceQuota(requestParameters: DefaultApiGetWorkspaceQuotaRequest, options?: AxiosRequestConfig): AxiosPromise<GetWorkspaceQuotaResponse>;
5386
5959
  /**
5387
5960
  * Introspect the API
5388
5961
  * @param {DefaultApiIntrospectRequest} requestParameters Request parameters.
@@ -5390,6 +5963,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5390
5963
  * @throws {RequiredError}
5391
5964
  */
5392
5965
  introspect(requestParameters?: DefaultApiIntrospectRequest, options?: AxiosRequestConfig): AxiosPromise<IntrospectResponse>;
5966
+ /**
5967
+ * List Events for a Bot Issue
5968
+ * @param {DefaultApiListBotIssueEventsRequest} requestParameters Request parameters.
5969
+ * @param {*} [options] Override http request option.
5970
+ * @throws {RequiredError}
5971
+ */
5972
+ listBotIssueEvents(requestParameters: DefaultApiListBotIssueEventsRequest, options?: AxiosRequestConfig): AxiosPromise<ListBotIssueEventsResponse>;
5973
+ /**
5974
+ * List Bot Issues
5975
+ * @param {DefaultApiListBotIssuesRequest} requestParameters Request parameters.
5976
+ * @param {*} [options] Override http request option.
5977
+ * @throws {RequiredError}
5978
+ */
5979
+ listBotIssues(requestParameters: DefaultApiListBotIssuesRequest, options?: AxiosRequestConfig): AxiosPromise<ListBotIssuesResponse>;
5393
5980
  /**
5394
5981
  * List bots
5395
5982
  * @param {DefaultApiListBotsRequest} requestParameters Request parameters.
@@ -5445,6 +6032,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5445
6032
  * @throws {RequiredError}
5446
6033
  */
5447
6034
  listPublicIntegrations(requestParameters?: DefaultApiListPublicIntegrationsRequest, options?: AxiosRequestConfig): AxiosPromise<ListPublicIntegrationsResponse>;
6035
+ /**
6036
+ * Get usage history
6037
+ * @param {DefaultApiListUsageHistoryRequest} requestParameters Request parameters.
6038
+ * @param {*} [options] Override http request option.
6039
+ * @throws {RequiredError}
6040
+ */
6041
+ listUsageHistory(requestParameters: DefaultApiListUsageHistoryRequest, options?: AxiosRequestConfig): AxiosPromise<ListUsageHistoryResponse>;
5448
6042
  /**
5449
6043
  * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).
5450
6044
  * @param {DefaultApiListUsersRequest} requestParameters Request parameters.
@@ -5459,6 +6053,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
5459
6053
  * @throws {RequiredError}
5460
6054
  */
5461
6055
  listWorkspaceMembers(requestParameters?: DefaultApiListWorkspaceMembersRequest, options?: AxiosRequestConfig): AxiosPromise<ListWorkspaceMembersResponse>;
6056
+ /**
6057
+ * List workspace quotas
6058
+ * @param {DefaultApiListWorkspaceQuotasRequest} requestParameters Request parameters.
6059
+ * @param {*} [options] Override http request option.
6060
+ * @throws {RequiredError}
6061
+ */
6062
+ listWorkspaceQuotas(requestParameters: DefaultApiListWorkspaceQuotasRequest, options?: AxiosRequestConfig): AxiosPromise<ListWorkspaceQuotasResponse>;
6063
+ /**
6064
+ * List workspace usages
6065
+ * @param {DefaultApiListWorkspaceUsagesRequest} requestParameters Request parameters.
6066
+ * @param {*} [options] Override http request option.
6067
+ * @throws {RequiredError}
6068
+ */
6069
+ listWorkspaceUsages(requestParameters: DefaultApiListWorkspaceUsagesRequest, options?: AxiosRequestConfig): AxiosPromise<ListWorkspaceUsagesResponse>;
5462
6070
  /**
5463
6071
  * List workspaces the user has access to
5464
6072
  * @param {DefaultApiListWorkspacesRequest} requestParameters Request parameters.
@@ -5725,6 +6333,25 @@ export interface DefaultApiDeleteBotRequest {
5725
6333
  */
5726
6334
  readonly id: string;
5727
6335
  }
6336
+ /**
6337
+ * Request parameters for deleteBotIssue operation in DefaultApi.
6338
+ * @export
6339
+ * @interface DefaultApiDeleteBotIssueRequest
6340
+ */
6341
+ export interface DefaultApiDeleteBotIssueRequest {
6342
+ /**
6343
+ * Bot ID
6344
+ * @type {string}
6345
+ * @memberof DefaultApiDeleteBotIssue
6346
+ */
6347
+ readonly id: string;
6348
+ /**
6349
+ * Issue ID
6350
+ * @type {string}
6351
+ * @memberof DefaultApiDeleteBotIssue
6352
+ */
6353
+ readonly issueId: string;
6354
+ }
5728
6355
  /**
5729
6356
  * Request parameters for deleteConversation operation in DefaultApi.
5730
6357
  * @export
@@ -5758,7 +6385,7 @@ export interface DefaultApiDeleteFileRequest {
5758
6385
  */
5759
6386
  export interface DefaultApiDeleteIntegrationRequest {
5760
6387
  /**
5761
- * Integration Id
6388
+ * Integration ID
5762
6389
  * @type {string}
5763
6390
  * @memberof DefaultApiDeleteIntegration
5764
6391
  */
@@ -5995,7 +6622,7 @@ export interface DefaultApiGetFileRequest {
5995
6622
  */
5996
6623
  export interface DefaultApiGetIntegrationRequest {
5997
6624
  /**
5998
- * Integration Id
6625
+ * Integration ID
5999
6626
  * @type {string}
6000
6627
  * @memberof DefaultApiGetIntegration
6001
6628
  */
@@ -6027,7 +6654,7 @@ export interface DefaultApiGetIntegrationByNameRequest {
6027
6654
  */
6028
6655
  export interface DefaultApiGetIntegrationLogsRequest {
6029
6656
  /**
6030
- * Integration Id
6657
+ * Integration ID
6031
6658
  * @type {string}
6032
6659
  * @memberof DefaultApiGetIntegrationLogs
6033
6660
  */
@@ -6129,7 +6756,7 @@ export interface DefaultApiGetPublicIntegrationRequest {
6129
6756
  */
6130
6757
  export interface DefaultApiGetPublicIntegrationByIdRequest {
6131
6758
  /**
6132
- * Integration Id
6759
+ * Integration ID
6133
6760
  * @type {string}
6134
6761
  * @memberof DefaultApiGetPublicIntegrationById
6135
6762
  */
@@ -6160,6 +6787,31 @@ export interface DefaultApiGetStateRequest {
6160
6787
  */
6161
6788
  readonly name: string;
6162
6789
  }
6790
+ /**
6791
+ * Request parameters for getUsage operation in DefaultApi.
6792
+ * @export
6793
+ * @interface DefaultApiGetUsageRequest
6794
+ */
6795
+ export interface DefaultApiGetUsageRequest {
6796
+ /**
6797
+ * Type of usage
6798
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count'}
6799
+ * @memberof DefaultApiGetUsage
6800
+ */
6801
+ readonly type: GetUsageTypeEnum;
6802
+ /**
6803
+ * id of a bot or a workspace depending on the usage type
6804
+ * @type {string}
6805
+ * @memberof DefaultApiGetUsage
6806
+ */
6807
+ readonly id: string;
6808
+ /**
6809
+ * Period to get
6810
+ * @type {string}
6811
+ * @memberof DefaultApiGetUsage
6812
+ */
6813
+ readonly period?: string;
6814
+ }
6163
6815
  /**
6164
6816
  * Request parameters for getUser operation in DefaultApi.
6165
6817
  * @export
@@ -6186,6 +6838,31 @@ export interface DefaultApiGetWorkspaceRequest {
6186
6838
  */
6187
6839
  readonly id: string;
6188
6840
  }
6841
+ /**
6842
+ * Request parameters for getWorkspaceQuota operation in DefaultApi.
6843
+ * @export
6844
+ * @interface DefaultApiGetWorkspaceQuotaRequest
6845
+ */
6846
+ export interface DefaultApiGetWorkspaceQuotaRequest {
6847
+ /**
6848
+ * Workspace ID
6849
+ * @type {string}
6850
+ * @memberof DefaultApiGetWorkspaceQuota
6851
+ */
6852
+ readonly id: string;
6853
+ /**
6854
+ * Type of usage
6855
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count'}
6856
+ * @memberof DefaultApiGetWorkspaceQuota
6857
+ */
6858
+ readonly type: GetWorkspaceQuotaTypeEnum;
6859
+ /**
6860
+ * Period to get
6861
+ * @type {string}
6862
+ * @memberof DefaultApiGetWorkspaceQuota
6863
+ */
6864
+ readonly period?: string;
6865
+ }
6189
6866
  /**
6190
6867
  * Request parameters for introspect operation in DefaultApi.
6191
6868
  * @export
@@ -6199,6 +6876,44 @@ export interface DefaultApiIntrospectRequest {
6199
6876
  */
6200
6877
  readonly introspectBody?: IntrospectBody;
6201
6878
  }
6879
+ /**
6880
+ * Request parameters for listBotIssueEvents operation in DefaultApi.
6881
+ * @export
6882
+ * @interface DefaultApiListBotIssueEventsRequest
6883
+ */
6884
+ export interface DefaultApiListBotIssueEventsRequest {
6885
+ /**
6886
+ * Bot ID
6887
+ * @type {string}
6888
+ * @memberof DefaultApiListBotIssueEvents
6889
+ */
6890
+ readonly id: string;
6891
+ /**
6892
+ * Issue ID
6893
+ * @type {string}
6894
+ * @memberof DefaultApiListBotIssueEvents
6895
+ */
6896
+ readonly issueId: string;
6897
+ }
6898
+ /**
6899
+ * Request parameters for listBotIssues operation in DefaultApi.
6900
+ * @export
6901
+ * @interface DefaultApiListBotIssuesRequest
6902
+ */
6903
+ export interface DefaultApiListBotIssuesRequest {
6904
+ /**
6905
+ * Bot ID
6906
+ * @type {string}
6907
+ * @memberof DefaultApiListBotIssues
6908
+ */
6909
+ readonly id: string;
6910
+ /**
6911
+ * Provide the &#x60;meta.nextToken&#x60; value provided in the last API response to retrieve the next page of results
6912
+ * @type {string}
6913
+ * @memberof DefaultApiListBotIssues
6914
+ */
6915
+ readonly nextToken?: string;
6916
+ }
6202
6917
  /**
6203
6918
  * Request parameters for listBots operation in DefaultApi.
6204
6919
  * @export
@@ -6354,6 +7069,25 @@ export interface DefaultApiListPublicIntegrationsRequest {
6354
7069
  */
6355
7070
  readonly version?: string;
6356
7071
  }
7072
+ /**
7073
+ * Request parameters for listUsageHistory operation in DefaultApi.
7074
+ * @export
7075
+ * @interface DefaultApiListUsageHistoryRequest
7076
+ */
7077
+ export interface DefaultApiListUsageHistoryRequest {
7078
+ /**
7079
+ * Type of usage
7080
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count'}
7081
+ * @memberof DefaultApiListUsageHistory
7082
+ */
7083
+ readonly type: ListUsageHistoryTypeEnum;
7084
+ /**
7085
+ * id of a bot or a workspace depending on the usage type
7086
+ * @type {string}
7087
+ * @memberof DefaultApiListUsageHistory
7088
+ */
7089
+ readonly id: string;
7090
+ }
6357
7091
  /**
6358
7092
  * Request parameters for listUsers operation in DefaultApi.
6359
7093
  * @export
@@ -6394,6 +7128,50 @@ export interface DefaultApiListWorkspaceMembersRequest {
6394
7128
  */
6395
7129
  readonly nextToken?: string;
6396
7130
  }
7131
+ /**
7132
+ * Request parameters for listWorkspaceQuotas operation in DefaultApi.
7133
+ * @export
7134
+ * @interface DefaultApiListWorkspaceQuotasRequest
7135
+ */
7136
+ export interface DefaultApiListWorkspaceQuotasRequest {
7137
+ /**
7138
+ * Workspace ID
7139
+ * @type {string}
7140
+ * @memberof DefaultApiListWorkspaceQuotas
7141
+ */
7142
+ readonly id: string;
7143
+ /**
7144
+ * Period to get
7145
+ * @type {string}
7146
+ * @memberof DefaultApiListWorkspaceQuotas
7147
+ */
7148
+ readonly period?: string;
7149
+ }
7150
+ /**
7151
+ * Request parameters for listWorkspaceUsages operation in DefaultApi.
7152
+ * @export
7153
+ * @interface DefaultApiListWorkspaceUsagesRequest
7154
+ */
7155
+ export interface DefaultApiListWorkspaceUsagesRequest {
7156
+ /**
7157
+ * Workspace ID
7158
+ * @type {string}
7159
+ * @memberof DefaultApiListWorkspaceUsages
7160
+ */
7161
+ readonly id: string;
7162
+ /**
7163
+ * Type of usage
7164
+ * @type {'invocation_timeout' | 'invocation_calls' | 'storage_count' | 'bot_count' | 'knowledgebase_vector_count' | 'bot_ratelimit' | 'table_row_count' | 'workspace_member_count' | 'integrations_owned_count'}
7165
+ * @memberof DefaultApiListWorkspaceUsages
7166
+ */
7167
+ readonly type: ListWorkspaceUsagesTypeEnum;
7168
+ /**
7169
+ * Period to get
7170
+ * @type {string}
7171
+ * @memberof DefaultApiListWorkspaceUsages
7172
+ */
7173
+ readonly period?: string;
7174
+ }
6397
7175
  /**
6398
7176
  * Request parameters for listWorkspaces operation in DefaultApi.
6399
7177
  * @export
@@ -6533,7 +7311,7 @@ export interface DefaultApiUpdateConversationRequest {
6533
7311
  */
6534
7312
  export interface DefaultApiUpdateIntegrationRequest {
6535
7313
  /**
6536
- * Integration Id
7314
+ * Integration ID
6537
7315
  * @type {string}
6538
7316
  * @memberof DefaultApiUpdateIntegration
6539
7317
  */
@@ -6740,6 +7518,14 @@ export declare class DefaultApi extends BaseAPI {
6740
7518
  * @memberof DefaultApi
6741
7519
  */
6742
7520
  deleteBot(requestParameters: DefaultApiDeleteBotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
7521
+ /**
7522
+ * Delete Bot Issue
7523
+ * @param {DefaultApiDeleteBotIssueRequest} requestParameters Request parameters.
7524
+ * @param {*} [options] Override http request option.
7525
+ * @throws {RequiredError}
7526
+ * @memberof DefaultApi
7527
+ */
7528
+ deleteBotIssue(requestParameters: DefaultApiDeleteBotIssueRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
6743
7529
  /**
6744
7530
  * Permanently deletes a [Conversation](#schema_conversation). It cannot be undone. Also immediately deletes corresponding [Messages](#schema_message).
6745
7531
  * @param {DefaultApiDeleteConversationRequest} requestParameters Request parameters.
@@ -6963,6 +7749,14 @@ export declare class DefaultApi extends BaseAPI {
6963
7749
  * @memberof DefaultApi
6964
7750
  */
6965
7751
  getState(requestParameters: DefaultApiGetStateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetStateResponse, any>>;
7752
+ /**
7753
+ * Get usage
7754
+ * @param {DefaultApiGetUsageRequest} requestParameters Request parameters.
7755
+ * @param {*} [options] Override http request option.
7756
+ * @throws {RequiredError}
7757
+ * @memberof DefaultApi
7758
+ */
7759
+ getUsage(requestParameters: DefaultApiGetUsageRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUsageResponse, any>>;
6966
7760
  /**
6967
7761
  * Retrieves the [User](#schema_user) object for a valid identifier.
6968
7762
  * @param {DefaultApiGetUserRequest} requestParameters Request parameters.
@@ -6979,6 +7773,14 @@ export declare class DefaultApi extends BaseAPI {
6979
7773
  * @memberof DefaultApi
6980
7774
  */
6981
7775
  getWorkspace(requestParameters: DefaultApiGetWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetWorkspaceResponse, any>>;
7776
+ /**
7777
+ * Get workspace quota
7778
+ * @param {DefaultApiGetWorkspaceQuotaRequest} requestParameters Request parameters.
7779
+ * @param {*} [options] Override http request option.
7780
+ * @throws {RequiredError}
7781
+ * @memberof DefaultApi
7782
+ */
7783
+ getWorkspaceQuota(requestParameters: DefaultApiGetWorkspaceQuotaRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetWorkspaceQuotaResponse, any>>;
6982
7784
  /**
6983
7785
  * Introspect the API
6984
7786
  * @param {DefaultApiIntrospectRequest} requestParameters Request parameters.
@@ -6987,6 +7789,22 @@ export declare class DefaultApi extends BaseAPI {
6987
7789
  * @memberof DefaultApi
6988
7790
  */
6989
7791
  introspect(requestParameters?: DefaultApiIntrospectRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<IntrospectResponse, any>>;
7792
+ /**
7793
+ * List Events for a Bot Issue
7794
+ * @param {DefaultApiListBotIssueEventsRequest} requestParameters Request parameters.
7795
+ * @param {*} [options] Override http request option.
7796
+ * @throws {RequiredError}
7797
+ * @memberof DefaultApi
7798
+ */
7799
+ listBotIssueEvents(requestParameters: DefaultApiListBotIssueEventsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBotIssueEventsResponse, any>>;
7800
+ /**
7801
+ * List Bot Issues
7802
+ * @param {DefaultApiListBotIssuesRequest} requestParameters Request parameters.
7803
+ * @param {*} [options] Override http request option.
7804
+ * @throws {RequiredError}
7805
+ * @memberof DefaultApi
7806
+ */
7807
+ listBotIssues(requestParameters: DefaultApiListBotIssuesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBotIssuesResponse, any>>;
6990
7808
  /**
6991
7809
  * List bots
6992
7810
  * @param {DefaultApiListBotsRequest} requestParameters Request parameters.
@@ -7050,6 +7868,14 @@ export declare class DefaultApi extends BaseAPI {
7050
7868
  * @memberof DefaultApi
7051
7869
  */
7052
7870
  listPublicIntegrations(requestParameters?: DefaultApiListPublicIntegrationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPublicIntegrationsResponse, any>>;
7871
+ /**
7872
+ * Get usage history
7873
+ * @param {DefaultApiListUsageHistoryRequest} requestParameters Request parameters.
7874
+ * @param {*} [options] Override http request option.
7875
+ * @throws {RequiredError}
7876
+ * @memberof DefaultApi
7877
+ */
7878
+ listUsageHistory(requestParameters: DefaultApiListUsageHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUsageHistoryResponse, any>>;
7053
7879
  /**
7054
7880
  * Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).
7055
7881
  * @param {DefaultApiListUsersRequest} requestParameters Request parameters.
@@ -7066,6 +7892,22 @@ export declare class DefaultApi extends BaseAPI {
7066
7892
  * @memberof DefaultApi
7067
7893
  */
7068
7894
  listWorkspaceMembers(requestParameters?: DefaultApiListWorkspaceMembersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspaceMembersResponse, any>>;
7895
+ /**
7896
+ * List workspace quotas
7897
+ * @param {DefaultApiListWorkspaceQuotasRequest} requestParameters Request parameters.
7898
+ * @param {*} [options] Override http request option.
7899
+ * @throws {RequiredError}
7900
+ * @memberof DefaultApi
7901
+ */
7902
+ listWorkspaceQuotas(requestParameters: DefaultApiListWorkspaceQuotasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspaceQuotasResponse, any>>;
7903
+ /**
7904
+ * List workspace usages
7905
+ * @param {DefaultApiListWorkspaceUsagesRequest} requestParameters Request parameters.
7906
+ * @param {*} [options] Override http request option.
7907
+ * @throws {RequiredError}
7908
+ * @memberof DefaultApi
7909
+ */
7910
+ listWorkspaceUsages(requestParameters: DefaultApiListWorkspaceUsagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspaceUsagesResponse, any>>;
7069
7911
  /**
7070
7912
  * List workspaces the user has access to
7071
7913
  * @param {DefaultApiListWorkspacesRequest} requestParameters Request parameters.
@@ -7175,6 +8017,66 @@ export declare const GetStateTypeEnum: {
7175
8017
  readonly Integration: "integration";
7176
8018
  };
7177
8019
  export type GetStateTypeEnum = typeof GetStateTypeEnum[keyof typeof GetStateTypeEnum];
8020
+ /**
8021
+ * @export
8022
+ */
8023
+ export declare const GetUsageTypeEnum: {
8024
+ readonly InvocationTimeout: "invocation_timeout";
8025
+ readonly InvocationCalls: "invocation_calls";
8026
+ readonly StorageCount: "storage_count";
8027
+ readonly BotCount: "bot_count";
8028
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
8029
+ readonly BotRatelimit: "bot_ratelimit";
8030
+ readonly TableRowCount: "table_row_count";
8031
+ readonly WorkspaceMemberCount: "workspace_member_count";
8032
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
8033
+ };
8034
+ export type GetUsageTypeEnum = typeof GetUsageTypeEnum[keyof typeof GetUsageTypeEnum];
8035
+ /**
8036
+ * @export
8037
+ */
8038
+ export declare const GetWorkspaceQuotaTypeEnum: {
8039
+ readonly InvocationTimeout: "invocation_timeout";
8040
+ readonly InvocationCalls: "invocation_calls";
8041
+ readonly StorageCount: "storage_count";
8042
+ readonly BotCount: "bot_count";
8043
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
8044
+ readonly BotRatelimit: "bot_ratelimit";
8045
+ readonly TableRowCount: "table_row_count";
8046
+ readonly WorkspaceMemberCount: "workspace_member_count";
8047
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
8048
+ };
8049
+ export type GetWorkspaceQuotaTypeEnum = typeof GetWorkspaceQuotaTypeEnum[keyof typeof GetWorkspaceQuotaTypeEnum];
8050
+ /**
8051
+ * @export
8052
+ */
8053
+ export declare const ListUsageHistoryTypeEnum: {
8054
+ readonly InvocationTimeout: "invocation_timeout";
8055
+ readonly InvocationCalls: "invocation_calls";
8056
+ readonly StorageCount: "storage_count";
8057
+ readonly BotCount: "bot_count";
8058
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
8059
+ readonly BotRatelimit: "bot_ratelimit";
8060
+ readonly TableRowCount: "table_row_count";
8061
+ readonly WorkspaceMemberCount: "workspace_member_count";
8062
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
8063
+ };
8064
+ export type ListUsageHistoryTypeEnum = typeof ListUsageHistoryTypeEnum[keyof typeof ListUsageHistoryTypeEnum];
8065
+ /**
8066
+ * @export
8067
+ */
8068
+ export declare const ListWorkspaceUsagesTypeEnum: {
8069
+ readonly InvocationTimeout: "invocation_timeout";
8070
+ readonly InvocationCalls: "invocation_calls";
8071
+ readonly StorageCount: "storage_count";
8072
+ readonly BotCount: "bot_count";
8073
+ readonly KnowledgebaseVectorCount: "knowledgebase_vector_count";
8074
+ readonly BotRatelimit: "bot_ratelimit";
8075
+ readonly TableRowCount: "table_row_count";
8076
+ readonly WorkspaceMemberCount: "workspace_member_count";
8077
+ readonly IntegrationsOwnedCount: "integrations_owned_count";
8078
+ };
8079
+ export type ListWorkspaceUsagesTypeEnum = typeof ListWorkspaceUsagesTypeEnum[keyof typeof ListWorkspaceUsagesTypeEnum];
7178
8080
  /**
7179
8081
  * @export
7180
8082
  */