@botpress/client 0.8.0 → 0.9.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/bundle.cjs +7 -7
- package/dist/bundle.cjs.map +3 -3
- package/dist/gen/api.d.ts +80 -11
- package/dist/gen/base.d.ts +1 -1
- package/dist/gen/client.d.ts +3 -1
- package/dist/gen/common.d.ts +1 -1
- package/dist/gen/configuration.d.ts +1 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
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.
|
|
5
|
+
* The version of the OpenAPI document: 0.15.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -452,6 +452,19 @@ export interface CallActionResponse {
|
|
|
452
452
|
[key: string]: any;
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @export
|
|
458
|
+
* @interface ChangeAISpendQuotaBody
|
|
459
|
+
*/
|
|
460
|
+
export interface ChangeAISpendQuotaBody {
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {number}
|
|
464
|
+
* @memberof ChangeAISpendQuotaBody
|
|
465
|
+
*/
|
|
466
|
+
'monthlySpendingLimit': number;
|
|
467
|
+
}
|
|
455
468
|
/**
|
|
456
469
|
*
|
|
457
470
|
* @export
|
|
@@ -2673,6 +2686,8 @@ export declare const GetWorkspaceQuotaResponseQuotaTypeEnum: {
|
|
|
2673
2686
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
2674
2687
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
2675
2688
|
readonly AiSpend: "ai_spend";
|
|
2689
|
+
readonly OpenaiSpend: "openai_spend";
|
|
2690
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
2676
2691
|
};
|
|
2677
2692
|
export type GetWorkspaceQuotaResponseQuotaTypeEnum = typeof GetWorkspaceQuotaResponseQuotaTypeEnum[keyof typeof GetWorkspaceQuotaResponseQuotaTypeEnum];
|
|
2678
2693
|
/**
|
|
@@ -3857,6 +3872,8 @@ export declare const ListWorkspaceQuotasResponseQuotasInnerTypeEnum: {
|
|
|
3857
3872
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
3858
3873
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
3859
3874
|
readonly AiSpend: "ai_spend";
|
|
3875
|
+
readonly OpenaiSpend: "openai_spend";
|
|
3876
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
3860
3877
|
};
|
|
3861
3878
|
export type ListWorkspaceQuotasResponseQuotasInnerTypeEnum = typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum[keyof typeof ListWorkspaceQuotasResponseQuotasInnerTypeEnum];
|
|
3862
3879
|
/**
|
|
@@ -5178,6 +5195,8 @@ export declare const UsageTypeEnum: {
|
|
|
5178
5195
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
5179
5196
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
5180
5197
|
readonly AiSpend: "ai_spend";
|
|
5198
|
+
readonly OpenaiSpend: "openai_spend";
|
|
5199
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
5181
5200
|
};
|
|
5182
5201
|
export type UsageTypeEnum = typeof UsageTypeEnum[keyof typeof UsageTypeEnum];
|
|
5183
5202
|
/**
|
|
@@ -5363,6 +5382,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5363
5382
|
* @throws {RequiredError}
|
|
5364
5383
|
*/
|
|
5365
5384
|
callAction: (callActionBody?: CallActionBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5385
|
+
/**
|
|
5386
|
+
* Change AI Spend quota
|
|
5387
|
+
* @param {ChangeAISpendQuotaBody} [changeAISpendQuotaBody] New AI Spend quota
|
|
5388
|
+
* @param {*} [options] Override http request option.
|
|
5389
|
+
* @throws {RequiredError}
|
|
5390
|
+
*/
|
|
5391
|
+
changeAISpendQuota: (changeAISpendQuotaBody?: ChangeAISpendQuotaBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5366
5392
|
/**
|
|
5367
5393
|
* Change workspace billing plan
|
|
5368
5394
|
* @param {string} id Workspace ID
|
|
@@ -5691,7 +5717,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5691
5717
|
/**
|
|
5692
5718
|
* Get usage
|
|
5693
5719
|
* @param {GetUsageTypeEnum} type Type of usage
|
|
5694
|
-
* @param {string} id
|
|
5720
|
+
* @param {string} id ID of a bot or a workspace, depending on the \"type\" parameter
|
|
5695
5721
|
* @param {string} [period] Period to get
|
|
5696
5722
|
* @param {*} [options] Override http request option.
|
|
5697
5723
|
* @throws {RequiredError}
|
|
@@ -5833,7 +5859,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5833
5859
|
/**
|
|
5834
5860
|
* Get usage history
|
|
5835
5861
|
* @param {ListUsageHistoryTypeEnum} type Type of usage
|
|
5836
|
-
* @param {string} id
|
|
5862
|
+
* @param {string} id ID of a bot or a workspace, depending on the \"type\" parameter
|
|
5837
5863
|
* @param {*} [options] Override http request option.
|
|
5838
5864
|
* @throws {RequiredError}
|
|
5839
5865
|
*/
|
|
@@ -6008,6 +6034,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6008
6034
|
* @throws {RequiredError}
|
|
6009
6035
|
*/
|
|
6010
6036
|
callAction(callActionBody?: CallActionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CallActionResponse>>;
|
|
6037
|
+
/**
|
|
6038
|
+
* Change AI Spend quota
|
|
6039
|
+
* @param {ChangeAISpendQuotaBody} [changeAISpendQuotaBody] New AI Spend quota
|
|
6040
|
+
* @param {*} [options] Override http request option.
|
|
6041
|
+
* @throws {RequiredError}
|
|
6042
|
+
*/
|
|
6043
|
+
changeAISpendQuota(changeAISpendQuotaBody?: ChangeAISpendQuotaBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
6011
6044
|
/**
|
|
6012
6045
|
* Change workspace billing plan
|
|
6013
6046
|
* @param {string} id Workspace ID
|
|
@@ -6336,7 +6369,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6336
6369
|
/**
|
|
6337
6370
|
* Get usage
|
|
6338
6371
|
* @param {GetUsageTypeEnum} type Type of usage
|
|
6339
|
-
* @param {string} id
|
|
6372
|
+
* @param {string} id ID of a bot or a workspace, depending on the \"type\" parameter
|
|
6340
6373
|
* @param {string} [period] Period to get
|
|
6341
6374
|
* @param {*} [options] Override http request option.
|
|
6342
6375
|
* @throws {RequiredError}
|
|
@@ -6478,7 +6511,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
6478
6511
|
/**
|
|
6479
6512
|
* Get usage history
|
|
6480
6513
|
* @param {ListUsageHistoryTypeEnum} type Type of usage
|
|
6481
|
-
* @param {string} id
|
|
6514
|
+
* @param {string} id ID of a bot or a workspace, depending on the \"type\" parameter
|
|
6482
6515
|
* @param {*} [options] Override http request option.
|
|
6483
6516
|
* @throws {RequiredError}
|
|
6484
6517
|
*/
|
|
@@ -6652,6 +6685,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
6652
6685
|
* @throws {RequiredError}
|
|
6653
6686
|
*/
|
|
6654
6687
|
callAction(requestParameters?: DefaultApiCallActionRequest, options?: AxiosRequestConfig): AxiosPromise<CallActionResponse>;
|
|
6688
|
+
/**
|
|
6689
|
+
* Change AI Spend quota
|
|
6690
|
+
* @param {DefaultApiChangeAISpendQuotaRequest} requestParameters Request parameters.
|
|
6691
|
+
* @param {*} [options] Override http request option.
|
|
6692
|
+
* @throws {RequiredError}
|
|
6693
|
+
*/
|
|
6694
|
+
changeAISpendQuota(requestParameters?: DefaultApiChangeAISpendQuotaRequest, options?: AxiosRequestConfig): AxiosPromise<object>;
|
|
6655
6695
|
/**
|
|
6656
6696
|
* Change workspace billing plan
|
|
6657
6697
|
* @param {DefaultApiChangeWorkspacePlanRequest} requestParameters Request parameters.
|
|
@@ -7243,6 +7283,19 @@ export interface DefaultApiCallActionRequest {
|
|
|
7243
7283
|
*/
|
|
7244
7284
|
readonly callActionBody?: CallActionBody;
|
|
7245
7285
|
}
|
|
7286
|
+
/**
|
|
7287
|
+
* Request parameters for changeAISpendQuota operation in DefaultApi.
|
|
7288
|
+
* @export
|
|
7289
|
+
* @interface DefaultApiChangeAISpendQuotaRequest
|
|
7290
|
+
*/
|
|
7291
|
+
export interface DefaultApiChangeAISpendQuotaRequest {
|
|
7292
|
+
/**
|
|
7293
|
+
* New AI Spend quota
|
|
7294
|
+
* @type {ChangeAISpendQuotaBody}
|
|
7295
|
+
* @memberof DefaultApiChangeAISpendQuota
|
|
7296
|
+
*/
|
|
7297
|
+
readonly changeAISpendQuotaBody?: ChangeAISpendQuotaBody;
|
|
7298
|
+
}
|
|
7246
7299
|
/**
|
|
7247
7300
|
* Request parameters for changeWorkspacePlan operation in DefaultApi.
|
|
7248
7301
|
* @export
|
|
@@ -7918,12 +7971,12 @@ export interface DefaultApiGetStateRequest {
|
|
|
7918
7971
|
export interface DefaultApiGetUsageRequest {
|
|
7919
7972
|
/**
|
|
7920
7973
|
* Type of usage
|
|
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'}
|
|
7974
|
+
* @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' | 'openai_spend' | 'bing_search_spend'}
|
|
7922
7975
|
* @memberof DefaultApiGetUsage
|
|
7923
7976
|
*/
|
|
7924
7977
|
readonly type: GetUsageTypeEnum;
|
|
7925
7978
|
/**
|
|
7926
|
-
*
|
|
7979
|
+
* ID of a bot or a workspace, depending on the \"type\" parameter
|
|
7927
7980
|
* @type {string}
|
|
7928
7981
|
* @memberof DefaultApiGetUsage
|
|
7929
7982
|
*/
|
|
@@ -7988,7 +8041,7 @@ export interface DefaultApiGetWorkspaceQuotaRequest {
|
|
|
7988
8041
|
readonly id: string;
|
|
7989
8042
|
/**
|
|
7990
8043
|
* Type of usage
|
|
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'}
|
|
8044
|
+
* @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' | 'openai_spend' | 'bing_search_spend'}
|
|
7992
8045
|
* @memberof DefaultApiGetWorkspaceQuota
|
|
7993
8046
|
*/
|
|
7994
8047
|
readonly type: GetWorkspaceQuotaTypeEnum;
|
|
@@ -8250,12 +8303,12 @@ export interface DefaultApiListPublicIntegrationsRequest {
|
|
|
8250
8303
|
export interface DefaultApiListUsageHistoryRequest {
|
|
8251
8304
|
/**
|
|
8252
8305
|
* Type of usage
|
|
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'}
|
|
8306
|
+
* @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' | 'openai_spend' | 'bing_search_spend'}
|
|
8254
8307
|
* @memberof DefaultApiListUsageHistory
|
|
8255
8308
|
*/
|
|
8256
8309
|
readonly type: ListUsageHistoryTypeEnum;
|
|
8257
8310
|
/**
|
|
8258
|
-
*
|
|
8311
|
+
* ID of a bot or a workspace, depending on the \"type\" parameter
|
|
8259
8312
|
* @type {string}
|
|
8260
8313
|
* @memberof DefaultApiListUsageHistory
|
|
8261
8314
|
*/
|
|
@@ -8347,7 +8400,7 @@ export interface DefaultApiListWorkspaceUsagesRequest {
|
|
|
8347
8400
|
readonly id: string;
|
|
8348
8401
|
/**
|
|
8349
8402
|
* Type of usage
|
|
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'}
|
|
8403
|
+
* @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' | 'openai_spend' | 'bing_search_spend'}
|
|
8351
8404
|
* @memberof DefaultApiListWorkspaceUsages
|
|
8352
8405
|
*/
|
|
8353
8406
|
readonly type: ListWorkspaceUsagesTypeEnum;
|
|
@@ -8646,6 +8699,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
8646
8699
|
* @memberof DefaultApi
|
|
8647
8700
|
*/
|
|
8648
8701
|
callAction(requestParameters?: DefaultApiCallActionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CallActionResponse, any>>;
|
|
8702
|
+
/**
|
|
8703
|
+
* Change AI Spend quota
|
|
8704
|
+
* @param {DefaultApiChangeAISpendQuotaRequest} requestParameters Request parameters.
|
|
8705
|
+
* @param {*} [options] Override http request option.
|
|
8706
|
+
* @throws {RequiredError}
|
|
8707
|
+
* @memberof DefaultApi
|
|
8708
|
+
*/
|
|
8709
|
+
changeAISpendQuota(requestParameters?: DefaultApiChangeAISpendQuotaRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
8649
8710
|
/**
|
|
8650
8711
|
* Change workspace billing plan
|
|
8651
8712
|
* @param {DefaultApiChangeWorkspacePlanRequest} requestParameters Request parameters.
|
|
@@ -9319,6 +9380,8 @@ export declare const GetUsageTypeEnum: {
|
|
|
9319
9380
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
9320
9381
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
9321
9382
|
readonly AiSpend: "ai_spend";
|
|
9383
|
+
readonly OpenaiSpend: "openai_spend";
|
|
9384
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
9322
9385
|
};
|
|
9323
9386
|
export type GetUsageTypeEnum = typeof GetUsageTypeEnum[keyof typeof GetUsageTypeEnum];
|
|
9324
9387
|
/**
|
|
@@ -9335,6 +9398,8 @@ export declare const GetWorkspaceQuotaTypeEnum: {
|
|
|
9335
9398
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
9336
9399
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
9337
9400
|
readonly AiSpend: "ai_spend";
|
|
9401
|
+
readonly OpenaiSpend: "openai_spend";
|
|
9402
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
9338
9403
|
};
|
|
9339
9404
|
export type GetWorkspaceQuotaTypeEnum = typeof GetWorkspaceQuotaTypeEnum[keyof typeof GetWorkspaceQuotaTypeEnum];
|
|
9340
9405
|
/**
|
|
@@ -9351,6 +9416,8 @@ export declare const ListUsageHistoryTypeEnum: {
|
|
|
9351
9416
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
9352
9417
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
9353
9418
|
readonly AiSpend: "ai_spend";
|
|
9419
|
+
readonly OpenaiSpend: "openai_spend";
|
|
9420
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
9354
9421
|
};
|
|
9355
9422
|
export type ListUsageHistoryTypeEnum = typeof ListUsageHistoryTypeEnum[keyof typeof ListUsageHistoryTypeEnum];
|
|
9356
9423
|
/**
|
|
@@ -9367,6 +9434,8 @@ export declare const ListWorkspaceUsagesTypeEnum: {
|
|
|
9367
9434
|
readonly WorkspaceMemberCount: "workspace_member_count";
|
|
9368
9435
|
readonly IntegrationsOwnedCount: "integrations_owned_count";
|
|
9369
9436
|
readonly AiSpend: "ai_spend";
|
|
9437
|
+
readonly OpenaiSpend: "openai_spend";
|
|
9438
|
+
readonly BingSearchSpend: "bing_search_spend";
|
|
9370
9439
|
};
|
|
9371
9440
|
export type ListWorkspaceUsagesTypeEnum = typeof ListWorkspaceUsagesTypeEnum[keyof typeof ListWorkspaceUsagesTypeEnum];
|
|
9372
9441
|
/**
|
package/dist/gen/base.d.ts
CHANGED
package/dist/gen/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import type { Merge, Except } from 'type-fest';
|
|
3
|
-
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiListParticipantsRequest, DefaultApiAddParticipantRequest, DefaultApiGetParticipantRequest, DefaultApiRemoveParticipantRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiCreatePersonalAccessTokenRequest, DefaultApiDeletePersonalAccessTokenRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiListBotIssuesRequest, DefaultApiDeleteBotIssueRequest, DefaultApiListBotIssueEventsRequest, DefaultApiGetWorkspaceBillingDetailsRequest, DefaultApiSetWorkspacePaymentMethodRequest, DefaultApiListWorkspaceInvoicesRequest, DefaultApiChargeWorkspaceUnpaidInvoicesRequest, DefaultApiCreateWorkspaceRequest, DefaultApiGetWorkspaceRequest, DefaultApiListWorkspaceUsagesRequest, DefaultApiGetWorkspaceQuotaRequest, DefaultApiListWorkspaceQuotasRequest, DefaultApiUpdateWorkspaceRequest, DefaultApiListWorkspacesRequest, DefaultApiChangeWorkspacePlanRequest, DefaultApiDeleteWorkspaceRequest, DefaultApiGetAuditRecordsRequest, DefaultApiListWorkspaceMembersRequest, DefaultApiDeleteWorkspaceMemberRequest, DefaultApiCreateWorkspaceMemberRequest, DefaultApiUpdateWorkspaceMemberRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationLogsRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest, DefaultApiGetUsageRequest, DefaultApiListUsageHistoryRequest, DefaultApiIntrospectRequest, DefaultApiCreateFileRequest, DefaultApiGetFileRequest, DefaultApiDownloadFileRequest, DefaultApiDeleteFileRequest, DefaultApiListFilesRequest } from '.';
|
|
3
|
+
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiListParticipantsRequest, DefaultApiAddParticipantRequest, DefaultApiGetParticipantRequest, DefaultApiRemoveParticipantRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiCreatePersonalAccessTokenRequest, DefaultApiDeletePersonalAccessTokenRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiListBotIssuesRequest, DefaultApiDeleteBotIssueRequest, DefaultApiListBotIssueEventsRequest, DefaultApiGetWorkspaceBillingDetailsRequest, DefaultApiSetWorkspacePaymentMethodRequest, DefaultApiListWorkspaceInvoicesRequest, DefaultApiChargeWorkspaceUnpaidInvoicesRequest, DefaultApiCreateWorkspaceRequest, DefaultApiGetWorkspaceRequest, DefaultApiListWorkspaceUsagesRequest, DefaultApiGetWorkspaceQuotaRequest, DefaultApiListWorkspaceQuotasRequest, DefaultApiUpdateWorkspaceRequest, DefaultApiListWorkspacesRequest, DefaultApiChangeWorkspacePlanRequest, DefaultApiDeleteWorkspaceRequest, DefaultApiGetAuditRecordsRequest, DefaultApiListWorkspaceMembersRequest, DefaultApiDeleteWorkspaceMemberRequest, DefaultApiCreateWorkspaceMemberRequest, DefaultApiUpdateWorkspaceMemberRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationLogsRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest, DefaultApiGetUsageRequest, DefaultApiListUsageHistoryRequest, DefaultApiChangeAISpendQuotaRequest, DefaultApiIntrospectRequest, DefaultApiCreateFileRequest, DefaultApiGetFileRequest, DefaultApiDownloadFileRequest, DefaultApiDeleteFileRequest, DefaultApiListFilesRequest } from '.';
|
|
4
4
|
export declare class ApiClient {
|
|
5
5
|
private _innerClient;
|
|
6
6
|
constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance);
|
|
@@ -80,6 +80,7 @@ export declare class ApiClient {
|
|
|
80
80
|
deleteIntegration: (props: DeleteIntegrationProps) => Promise<object>;
|
|
81
81
|
getUsage: (props: GetUsageProps) => Promise<import("./api").GetUsageResponse>;
|
|
82
82
|
listUsageHistory: (props: ListUsageHistoryProps) => Promise<import("./api").ListUsageHistoryResponse>;
|
|
83
|
+
changeAISpendQuota: (changeAISpendQuotaBody: ChangeAISpendQuotaProps) => Promise<object>;
|
|
83
84
|
introspect: (introspectBody: IntrospectProps) => Promise<import("./api").IntrospectResponse>;
|
|
84
85
|
createFile: (createFileBody: CreateFileProps) => Promise<import("./api").CreateFileResponse>;
|
|
85
86
|
getFile: (props: GetFileProps) => Promise<import("./api").GetFileResponse>;
|
|
@@ -161,6 +162,7 @@ export type GetIntegrationByNameProps = Merge<DefaultApiGetIntegrationByNameRequ
|
|
|
161
162
|
export type DeleteIntegrationProps = Merge<DefaultApiDeleteIntegrationRequest, {}>;
|
|
162
163
|
export type GetUsageProps = Merge<DefaultApiGetUsageRequest, {}>;
|
|
163
164
|
export type ListUsageHistoryProps = Merge<DefaultApiListUsageHistoryRequest, {}>;
|
|
165
|
+
export type ChangeAISpendQuotaProps = Merge<Except<DefaultApiChangeAISpendQuotaRequest, 'changeAISpendQuotaBody'>, NonNullable<DefaultApiChangeAISpendQuotaRequest['changeAISpendQuotaBody']>>;
|
|
164
166
|
export type IntrospectProps = Merge<Except<DefaultApiIntrospectRequest, 'introspectBody'>, NonNullable<DefaultApiIntrospectRequest['introspectBody']>>;
|
|
165
167
|
export type CreateFileProps = Merge<Except<DefaultApiCreateFileRequest, 'createFileBody'>, NonNullable<DefaultApiCreateFileRequest['createFileBody']>>;
|
|
166
168
|
export type GetFileProps = Merge<DefaultApiGetFileRequest, {}>;
|
package/dist/gen/common.d.ts
CHANGED
package/dist/gen/index.d.ts
CHANGED