@botpress/client 1.44.0 → 1.46.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/index.d.ts CHANGED
@@ -118,10 +118,6 @@ interface CreateConversationResponse$1 {
118
118
  * Unused. This field will be removed in the future.
119
119
  */
120
120
  currentTaskId?: string;
121
- /**
122
- * Id of the current [Workflow](#schema_workflow)
123
- */
124
- currentWorkflowId?: string;
125
121
  /**
126
122
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
127
123
  */
@@ -181,10 +177,6 @@ interface GetConversationResponse$1 {
181
177
  * Unused. This field will be removed in the future.
182
178
  */
183
179
  currentTaskId?: string;
184
- /**
185
- * Id of the current [Workflow](#schema_workflow)
186
- */
187
- currentWorkflowId?: string;
188
180
  /**
189
181
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
190
182
  */
@@ -254,10 +246,6 @@ interface ListConversationsResponse$1 {
254
246
  * Unused. This field will be removed in the future.
255
247
  */
256
248
  currentTaskId?: string;
257
- /**
258
- * Id of the current [Workflow](#schema_workflow)
259
- */
260
- currentWorkflowId?: string;
261
249
  /**
262
250
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
263
251
  */
@@ -347,10 +335,6 @@ interface GetOrCreateConversationResponse$1 {
347
335
  * Unused. This field will be removed in the future.
348
336
  */
349
337
  currentTaskId?: string;
350
- /**
351
- * Id of the current [Workflow](#schema_workflow)
352
- */
353
- currentWorkflowId?: string;
354
338
  /**
355
339
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
356
340
  */
@@ -430,10 +414,6 @@ interface UpdateConversationResponse$1 {
430
414
  * Unused. This field will be removed in the future.
431
415
  */
432
416
  currentTaskId?: string;
433
- /**
434
- * Id of the current [Workflow](#schema_workflow)
435
- */
436
- currentWorkflowId?: string;
437
417
  /**
438
418
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
439
419
  */
@@ -1476,10 +1456,6 @@ interface InitializeIncomingMessageResponse$1 {
1476
1456
  * Unused. This field will be removed in the future.
1477
1457
  */
1478
1458
  currentTaskId?: string;
1479
- /**
1480
- * Id of the current [Workflow](#schema_workflow)
1481
- */
1482
- currentWorkflowId?: string;
1483
1459
  /**
1484
1460
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
1485
1461
  */
@@ -3201,7 +3177,6 @@ declare class Client$a extends Client$b {
3201
3177
  }) => AsyncCollection<{
3202
3178
  id: string;
3203
3179
  currentTaskId?: string;
3204
- currentWorkflowId?: string;
3205
3180
  createdAt: string;
3206
3181
  updatedAt: string;
3207
3182
  channel: string;
@@ -15422,6 +15397,69 @@ type SetBillingAddressInput = SetBillingAddressRequestBody & SetBillingAddressRe
15422
15397
  interface SetBillingAddressResponse {
15423
15398
  }
15424
15399
 
15400
+ interface GetCustomerRequestHeaders {
15401
+ }
15402
+ interface GetCustomerRequestQuery {
15403
+ }
15404
+ interface GetCustomerRequestParams {
15405
+ }
15406
+ interface GetCustomerRequestBody {
15407
+ }
15408
+ type GetCustomerInput = GetCustomerRequestBody & GetCustomerRequestHeaders & GetCustomerRequestQuery & GetCustomerRequestParams;
15409
+ interface GetCustomerResponse {
15410
+ address: {
15411
+ lineOne: string;
15412
+ lineTwo?: string;
15413
+ city: string;
15414
+ state?: string;
15415
+ postalCode: string;
15416
+ country: string;
15417
+ } | null;
15418
+ name: string | null;
15419
+ taxIds: {
15420
+ type: "ad_nrt" | "ae_trn" | "al_tin" | "am_tin" | "ao_tin" | "ar_cuit" | "au_abn" | "au_arn" | "aw_tin" | "az_tin" | "ba_tin" | "bb_tin" | "bd_bin" | "bf_ifu" | "bg_uic" | "bh_vat" | "bj_ifu" | "bo_tin" | "br_cnpj" | "br_cpf" | "bs_tin" | "by_tin" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "cd_nif" | "ch_uid" | "ch_vat" | "cl_tin" | "cm_niu" | "cn_tin" | "co_nit" | "cr_tin" | "cv_nif" | "de_stn" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "et_tin" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "gn_nif" | "hk_br" | "hr_oib" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kg_tin" | "kh_tin" | "kr_brn" | "kz_bin" | "la_tin" | "li_uid" | "li_vat" | "ma_vat" | "md_vat" | "me_pib" | "mk_vat" | "mr_nif" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "ng_tin" | "no_vat" | "no_voec" | "np_pan" | "nz_gst" | "om_vat" | "pe_ruc" | "ph_tin" | "ro_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sn_ninea" | "sr_fin" | "sv_nit" | "th_vat" | "tj_tin" | "tr_tin" | "tw_vat" | "tz_vat" | "ua_vat" | "ug_tin" | "us_ein" | "uy_ruc" | "uz_tin" | "uz_vat" | "ve_rif" | "vn_tin" | "za_vat" | "zm_tin" | "zw_tin";
15421
+ value: string;
15422
+ }[];
15423
+ }
15424
+
15425
+ interface SetCustomerRequestHeaders {
15426
+ }
15427
+ interface SetCustomerRequestQuery {
15428
+ }
15429
+ interface SetCustomerRequestParams {
15430
+ }
15431
+ interface SetCustomerRequestBody {
15432
+ address?: {
15433
+ lineOne: string;
15434
+ lineTwo?: string;
15435
+ city: string;
15436
+ state?: string;
15437
+ postalCode: string;
15438
+ country: string;
15439
+ };
15440
+ name?: string;
15441
+ taxIds?: {
15442
+ type: "ad_nrt" | "ae_trn" | "al_tin" | "am_tin" | "ao_tin" | "ar_cuit" | "au_abn" | "au_arn" | "aw_tin" | "az_tin" | "ba_tin" | "bb_tin" | "bd_bin" | "bf_ifu" | "bg_uic" | "bh_vat" | "bj_ifu" | "bo_tin" | "br_cnpj" | "br_cpf" | "bs_tin" | "by_tin" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "cd_nif" | "ch_uid" | "ch_vat" | "cl_tin" | "cm_niu" | "cn_tin" | "co_nit" | "cr_tin" | "cv_nif" | "de_stn" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "et_tin" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "gn_nif" | "hk_br" | "hr_oib" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kg_tin" | "kh_tin" | "kr_brn" | "kz_bin" | "la_tin" | "li_uid" | "li_vat" | "ma_vat" | "md_vat" | "me_pib" | "mk_vat" | "mr_nif" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "ng_tin" | "no_vat" | "no_voec" | "np_pan" | "nz_gst" | "om_vat" | "pe_ruc" | "ph_tin" | "ro_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sn_ninea" | "sr_fin" | "sv_nit" | "th_vat" | "tj_tin" | "tr_tin" | "tw_vat" | "tz_vat" | "ua_vat" | "ug_tin" | "us_ein" | "uy_ruc" | "uz_tin" | "uz_vat" | "ve_rif" | "vn_tin" | "za_vat" | "zm_tin" | "zw_tin";
15443
+ value: string;
15444
+ }[];
15445
+ }
15446
+ type SetCustomerInput = SetCustomerRequestBody & SetCustomerRequestHeaders & SetCustomerRequestQuery & SetCustomerRequestParams;
15447
+ interface SetCustomerResponse {
15448
+ address: {
15449
+ lineOne: string;
15450
+ lineTwo?: string;
15451
+ city: string;
15452
+ state?: string;
15453
+ postalCode: string;
15454
+ country: string;
15455
+ } | null;
15456
+ name: string | null;
15457
+ taxIds: {
15458
+ type: "ad_nrt" | "ae_trn" | "al_tin" | "am_tin" | "ao_tin" | "ar_cuit" | "au_abn" | "au_arn" | "aw_tin" | "az_tin" | "ba_tin" | "bb_tin" | "bd_bin" | "bf_ifu" | "bg_uic" | "bh_vat" | "bj_ifu" | "bo_tin" | "br_cnpj" | "br_cpf" | "bs_tin" | "by_tin" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "cd_nif" | "ch_uid" | "ch_vat" | "cl_tin" | "cm_niu" | "cn_tin" | "co_nit" | "cr_tin" | "cv_nif" | "de_stn" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "et_tin" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "gn_nif" | "hk_br" | "hr_oib" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kg_tin" | "kh_tin" | "kr_brn" | "kz_bin" | "la_tin" | "li_uid" | "li_vat" | "ma_vat" | "md_vat" | "me_pib" | "mk_vat" | "mr_nif" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "ng_tin" | "no_vat" | "no_voec" | "np_pan" | "nz_gst" | "om_vat" | "pe_ruc" | "ph_tin" | "ro_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sn_ninea" | "sr_fin" | "sv_nit" | "th_vat" | "tj_tin" | "tr_tin" | "tw_vat" | "tz_vat" | "ua_vat" | "ug_tin" | "us_ein" | "uy_ruc" | "uz_tin" | "uz_vat" | "ve_rif" | "vn_tin" | "za_vat" | "zm_tin" | "zw_tin";
15459
+ value: string;
15460
+ }[];
15461
+ }
15462
+
15425
15463
  interface GetPlanRequestHeaders {
15426
15464
  }
15427
15465
  interface GetPlanRequestQuery {
@@ -15512,10 +15550,16 @@ interface GetAddonResponse$1 {
15512
15550
  id: string;
15513
15551
  name: string;
15514
15552
  description: string;
15515
- /**
15516
- * Addon unit price in dollars per month
15517
- */
15518
- price: number;
15553
+ prices: {
15554
+ [k: string]: {
15555
+ /**
15556
+ * Price in dollars
15557
+ */
15558
+ amount: number;
15559
+ currency: string;
15560
+ interval: "month" | "year";
15561
+ };
15562
+ };
15519
15563
  increments: {
15520
15564
  [k: string]: number;
15521
15565
  };
@@ -15538,10 +15582,16 @@ interface GetAddonResponse {
15538
15582
  id: string;
15539
15583
  name: string;
15540
15584
  description: string;
15541
- /**
15542
- * Addon unit price in dollars per month
15543
- */
15544
- price: number;
15585
+ prices: {
15586
+ [k: string]: {
15587
+ /**
15588
+ * Price in dollars
15589
+ */
15590
+ amount: number;
15591
+ currency: string;
15592
+ interval: "month" | "year";
15593
+ };
15594
+ };
15545
15595
  increments: {
15546
15596
  [k: string]: number;
15547
15597
  };
@@ -16050,7 +16100,7 @@ interface CreateCreditGrantRequestBody {
16050
16100
  * Nanodollar value of the credit grant (e.g. 10_000_000_000 = $10.00 USD)
16051
16101
  */
16052
16102
  amount: number;
16053
- feature: "integration_spend";
16103
+ feature: "ai_spend";
16054
16104
  }
16055
16105
  type CreateCreditGrantInput = CreateCreditGrantRequestBody & CreateCreditGrantRequestHeaders & CreateCreditGrantRequestQuery & CreateCreditGrantRequestParams;
16056
16106
  interface CreateCreditGrantResponse {
@@ -16061,7 +16111,7 @@ interface CreateCreditGrantResponse {
16061
16111
  * Dollar value of the credit grant (e.g. 10 = $10.00 USD)
16062
16112
  */
16063
16113
  amount: number;
16064
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
16114
+ feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions" | "ai_spend";
16065
16115
  /**
16066
16116
  * Start of the period (inclusive)
16067
16117
  */
@@ -16209,7 +16259,7 @@ interface GetQuotasResponse {
16209
16259
  interface GetWorkspaceUsageRequestHeaders {
16210
16260
  }
16211
16261
  interface GetWorkspaceUsageRequestQuery {
16212
- feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions";
16262
+ feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions" | "ai_spend";
16213
16263
  /**
16214
16264
  * Any datetime within the desired billing month, ISO 8601. The month is inferred from this value.
16215
16265
  */
@@ -16258,6 +16308,8 @@ declare class Client$7 {
16258
16308
  readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
16259
16309
  readonly getBillingAddress: (input: GetBillingAddressInput) => Promise<GetBillingAddressResponse>;
16260
16310
  readonly setBillingAddress: (input: SetBillingAddressInput) => Promise<SetBillingAddressResponse>;
16311
+ readonly getCustomer: (input: GetCustomerInput) => Promise<GetCustomerResponse>;
16312
+ readonly setCustomer: (input: SetCustomerInput) => Promise<SetCustomerResponse>;
16261
16313
  readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse$1>;
16262
16314
  readonly listPlans: (input: ListPlansInput) => Promise<ListPlansResponse>;
16263
16315
  readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse$1>;
@@ -19355,10 +19407,6 @@ interface CreateConversationResponse {
19355
19407
  * Unused. This field will be removed in the future.
19356
19408
  */
19357
19409
  currentTaskId?: string;
19358
- /**
19359
- * Id of the current [Workflow](#schema_workflow)
19360
- */
19361
- currentWorkflowId?: string;
19362
19410
  /**
19363
19411
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19364
19412
  */
@@ -19418,10 +19466,6 @@ interface GetConversationResponse {
19418
19466
  * Unused. This field will be removed in the future.
19419
19467
  */
19420
19468
  currentTaskId?: string;
19421
- /**
19422
- * Id of the current [Workflow](#schema_workflow)
19423
- */
19424
- currentWorkflowId?: string;
19425
19469
  /**
19426
19470
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19427
19471
  */
@@ -19491,10 +19535,6 @@ interface ListConversationsResponse {
19491
19535
  * Unused. This field will be removed in the future.
19492
19536
  */
19493
19537
  currentTaskId?: string;
19494
- /**
19495
- * Id of the current [Workflow](#schema_workflow)
19496
- */
19497
- currentWorkflowId?: string;
19498
19538
  /**
19499
19539
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19500
19540
  */
@@ -19584,10 +19624,6 @@ interface GetOrCreateConversationResponse {
19584
19624
  * Unused. This field will be removed in the future.
19585
19625
  */
19586
19626
  currentTaskId?: string;
19587
- /**
19588
- * Id of the current [Workflow](#schema_workflow)
19589
- */
19590
- currentWorkflowId?: string;
19591
19627
  /**
19592
19628
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19593
19629
  */
@@ -19667,10 +19703,6 @@ interface UpdateConversationResponse {
19667
19703
  * Unused. This field will be removed in the future.
19668
19704
  */
19669
19705
  currentTaskId?: string;
19670
- /**
19671
- * Id of the current [Workflow](#schema_workflow)
19672
- */
19673
- currentWorkflowId?: string;
19674
19706
  /**
19675
19707
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19676
19708
  */
@@ -20713,10 +20745,6 @@ interface InitializeIncomingMessageResponse {
20713
20745
  * Unused. This field will be removed in the future.
20714
20746
  */
20715
20747
  currentTaskId?: string;
20716
- /**
20717
- * Id of the current [Workflow](#schema_workflow)
20718
- */
20719
- currentWorkflowId?: string;
20720
20748
  /**
20721
20749
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
20722
20750
  */
@@ -38161,10 +38189,6 @@ interface Conversation {
38161
38189
  * Unused. This field will be removed in the future.
38162
38190
  */
38163
38191
  currentTaskId?: string;
38164
- /**
38165
- * Id of the current [Workflow](#schema_workflow)
38166
- */
38167
- currentWorkflowId?: string;
38168
38192
  /**
38169
38193
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
38170
38194
  */
@@ -38948,7 +38972,6 @@ declare class Client extends Client$1 implements IClient {
38948
38972
  }) => AsyncCollection<{
38949
38973
  id: string;
38950
38974
  currentTaskId?: string;
38951
- currentWorkflowId?: string;
38952
38975
  createdAt: string;
38953
38976
  updatedAt: string;
38954
38977
  channel: string;