@botpress/client 1.45.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 {
@@ -16062,7 +16100,7 @@ interface CreateCreditGrantRequestBody {
16062
16100
  * Nanodollar value of the credit grant (e.g. 10_000_000_000 = $10.00 USD)
16063
16101
  */
16064
16102
  amount: number;
16065
- feature: "integration_spend";
16103
+ feature: "ai_spend";
16066
16104
  }
16067
16105
  type CreateCreditGrantInput = CreateCreditGrantRequestBody & CreateCreditGrantRequestHeaders & CreateCreditGrantRequestQuery & CreateCreditGrantRequestParams;
16068
16106
  interface CreateCreditGrantResponse {
@@ -16270,6 +16308,8 @@ declare class Client$7 {
16270
16308
  readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
16271
16309
  readonly getBillingAddress: (input: GetBillingAddressInput) => Promise<GetBillingAddressResponse>;
16272
16310
  readonly setBillingAddress: (input: SetBillingAddressInput) => Promise<SetBillingAddressResponse>;
16311
+ readonly getCustomer: (input: GetCustomerInput) => Promise<GetCustomerResponse>;
16312
+ readonly setCustomer: (input: SetCustomerInput) => Promise<SetCustomerResponse>;
16273
16313
  readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse$1>;
16274
16314
  readonly listPlans: (input: ListPlansInput) => Promise<ListPlansResponse>;
16275
16315
  readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse$1>;
@@ -19367,10 +19407,6 @@ interface CreateConversationResponse {
19367
19407
  * Unused. This field will be removed in the future.
19368
19408
  */
19369
19409
  currentTaskId?: string;
19370
- /**
19371
- * Id of the current [Workflow](#schema_workflow)
19372
- */
19373
- currentWorkflowId?: string;
19374
19410
  /**
19375
19411
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19376
19412
  */
@@ -19430,10 +19466,6 @@ interface GetConversationResponse {
19430
19466
  * Unused. This field will be removed in the future.
19431
19467
  */
19432
19468
  currentTaskId?: string;
19433
- /**
19434
- * Id of the current [Workflow](#schema_workflow)
19435
- */
19436
- currentWorkflowId?: string;
19437
19469
  /**
19438
19470
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19439
19471
  */
@@ -19503,10 +19535,6 @@ interface ListConversationsResponse {
19503
19535
  * Unused. This field will be removed in the future.
19504
19536
  */
19505
19537
  currentTaskId?: string;
19506
- /**
19507
- * Id of the current [Workflow](#schema_workflow)
19508
- */
19509
- currentWorkflowId?: string;
19510
19538
  /**
19511
19539
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19512
19540
  */
@@ -19596,10 +19624,6 @@ interface GetOrCreateConversationResponse {
19596
19624
  * Unused. This field will be removed in the future.
19597
19625
  */
19598
19626
  currentTaskId?: string;
19599
- /**
19600
- * Id of the current [Workflow](#schema_workflow)
19601
- */
19602
- currentWorkflowId?: string;
19603
19627
  /**
19604
19628
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19605
19629
  */
@@ -19679,10 +19703,6 @@ interface UpdateConversationResponse {
19679
19703
  * Unused. This field will be removed in the future.
19680
19704
  */
19681
19705
  currentTaskId?: string;
19682
- /**
19683
- * Id of the current [Workflow](#schema_workflow)
19684
- */
19685
- currentWorkflowId?: string;
19686
19706
  /**
19687
19707
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
19688
19708
  */
@@ -20725,10 +20745,6 @@ interface InitializeIncomingMessageResponse {
20725
20745
  * Unused. This field will be removed in the future.
20726
20746
  */
20727
20747
  currentTaskId?: string;
20728
- /**
20729
- * Id of the current [Workflow](#schema_workflow)
20730
- */
20731
- currentWorkflowId?: string;
20732
20748
  /**
20733
20749
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
20734
20750
  */
@@ -38173,10 +38189,6 @@ interface Conversation {
38173
38189
  * Unused. This field will be removed in the future.
38174
38190
  */
38175
38191
  currentTaskId?: string;
38176
- /**
38177
- * Id of the current [Workflow](#schema_workflow)
38178
- */
38179
- currentWorkflowId?: string;
38180
38192
  /**
38181
38193
  * Creation date of the [Conversation](#schema_conversation) in ISO 8601 format
38182
38194
  */
@@ -38960,7 +38972,6 @@ declare class Client extends Client$1 implements IClient {
38960
38972
  }) => AsyncCollection<{
38961
38973
  id: string;
38962
38974
  currentTaskId?: string;
38963
- currentWorkflowId?: string;
38964
38975
  createdAt: string;
38965
38976
  updatedAt: string;
38966
38977
  channel: string;