@botpress/client 1.32.0 → 1.34.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
@@ -3752,6 +3752,10 @@ interface GetPublicIntegrationByIdResponse$1 {
3752
3752
  * URL of the [Integration](#schema_integration)
3753
3753
  */
3754
3754
  url: string;
3755
+ /**
3756
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
3757
+ */
3758
+ signingSecret: string;
3755
3759
  /**
3756
3760
  * Name of the [Integration](#schema_integration)
3757
3761
  */
@@ -4168,6 +4172,10 @@ interface GetPublicIntegrationResponse$1 {
4168
4172
  * URL of the [Integration](#schema_integration)
4169
4173
  */
4170
4174
  url: string;
4175
+ /**
4176
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
4177
+ */
4178
+ signingSecret: string;
4171
4179
  /**
4172
4180
  * Name of the [Integration](#schema_integration)
4173
4181
  */
@@ -5907,7 +5915,7 @@ interface CreateBotResponse$1 {
5907
5915
  */
5908
5916
  updatedAt: string;
5909
5917
  /**
5910
- * Signing secret of the [Bot](#schema_bot)
5918
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
5911
5919
  */
5912
5920
  signingSecret: string;
5913
5921
  /**
@@ -6321,9 +6329,9 @@ interface UpdateBotRequestBody$1 {
6321
6329
  */
6322
6330
  url?: string | null;
6323
6331
  /**
6324
- * Type of the [Bot](#schema_bot) authentication (`iam`)
6332
+ * Type of the [Bot](#schema_bot) authentication (`iam` or `hmac-sha256`)
6325
6333
  */
6326
- authentication?: "iam";
6334
+ authentication?: "iam" | "hmac-sha256";
6327
6335
  configuration?: {
6328
6336
  /**
6329
6337
  * Configuration data
@@ -6587,7 +6595,7 @@ interface UpdateBotResponse$1 {
6587
6595
  */
6588
6596
  updatedAt: string;
6589
6597
  /**
6590
- * Signing secret of the [Bot](#schema_bot)
6598
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
6591
6599
  */
6592
6600
  signingSecret: string;
6593
6601
  /**
@@ -6988,6 +6996,23 @@ interface UpdateBotResponse$1 {
6988
6996
  };
6989
6997
  }
6990
6998
 
6999
+ interface RotateBotSigningSecretsRequestHeaders$1 {
7000
+ }
7001
+ interface RotateBotSigningSecretsRequestQuery$1 {
7002
+ }
7003
+ interface RotateBotSigningSecretsRequestParams$1 {
7004
+ id: string;
7005
+ }
7006
+ interface RotateBotSigningSecretsRequestBody$1 {
7007
+ }
7008
+ type RotateBotSigningSecretsInput$1 = RotateBotSigningSecretsRequestBody$1 & RotateBotSigningSecretsRequestHeaders$1 & RotateBotSigningSecretsRequestQuery$1 & RotateBotSigningSecretsRequestParams$1;
7009
+ interface RotateBotSigningSecretsResponse$1 {
7010
+ /**
7011
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
7012
+ */
7013
+ newSigningSecret: string;
7014
+ }
7015
+
6991
7016
  interface TransferBotRequestHeaders$1 {
6992
7017
  }
6993
7018
  interface TransferBotRequestQuery$1 {
@@ -7078,7 +7103,7 @@ interface GetBotResponse$1 {
7078
7103
  */
7079
7104
  updatedAt: string;
7080
7105
  /**
7081
- * Signing secret of the [Bot](#schema_bot)
7106
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
7082
7107
  */
7083
7108
  signingSecret: string;
7084
7109
  /**
@@ -9130,6 +9155,10 @@ interface CreateIntegrationResponse$1 {
9130
9155
  * URL of the [Integration](#schema_integration)
9131
9156
  */
9132
9157
  url: string;
9158
+ /**
9159
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
9160
+ */
9161
+ signingSecret: string;
9133
9162
  /**
9134
9163
  * Name of the [Integration](#schema_integration)
9135
9164
  */
@@ -10210,6 +10239,10 @@ interface UpdateIntegrationResponse$1 {
10210
10239
  * URL of the [Integration](#schema_integration)
10211
10240
  */
10212
10241
  url: string;
10242
+ /**
10243
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
10244
+ */
10245
+ signingSecret: string;
10213
10246
  /**
10214
10247
  * Name of the [Integration](#schema_integration)
10215
10248
  */
@@ -10561,6 +10594,23 @@ interface UpdateIntegrationResponse$1 {
10561
10594
  };
10562
10595
  }
10563
10596
 
10597
+ interface RotateIntegrationSigningSecretsRequestHeaders$1 {
10598
+ }
10599
+ interface RotateIntegrationSigningSecretsRequestQuery$1 {
10600
+ }
10601
+ interface RotateIntegrationSigningSecretsRequestParams$1 {
10602
+ id: string;
10603
+ }
10604
+ interface RotateIntegrationSigningSecretsRequestBody$1 {
10605
+ }
10606
+ type RotateIntegrationSigningSecretsInput$1 = RotateIntegrationSigningSecretsRequestBody$1 & RotateIntegrationSigningSecretsRequestHeaders$1 & RotateIntegrationSigningSecretsRequestQuery$1 & RotateIntegrationSigningSecretsRequestParams$1;
10607
+ interface RotateIntegrationSigningSecretsResponse$1 {
10608
+ /**
10609
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
10610
+ */
10611
+ newSigningSecret: string;
10612
+ }
10613
+
10564
10614
  interface ValidateIntegrationUpdateRequestHeaders$1 {
10565
10615
  }
10566
10616
  interface ValidateIntegrationUpdateRequestQuery$1 {
@@ -11065,6 +11115,10 @@ interface GetIntegrationResponse$1 {
11065
11115
  * URL of the [Integration](#schema_integration)
11066
11116
  */
11067
11117
  url: string;
11118
+ /**
11119
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
11120
+ */
11121
+ signingSecret: string;
11068
11122
  /**
11069
11123
  * Name of the [Integration](#schema_integration)
11070
11124
  */
@@ -11501,6 +11555,10 @@ interface GetIntegrationByNameResponse$1 {
11501
11555
  * URL of the [Integration](#schema_integration)
11502
11556
  */
11503
11557
  url: string;
11558
+ /**
11559
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
11560
+ */
11561
+ signingSecret: string;
11504
11562
  /**
11505
11563
  * Name of the [Integration](#schema_integration)
11506
11564
  */
@@ -14777,6 +14835,7 @@ declare class Client$9 {
14777
14835
  readonly getPublicInterface: (input: GetPublicInterfaceInput$1) => Promise<GetPublicInterfaceResponse$1>;
14778
14836
  readonly createBot: (input: CreateBotInput$1) => Promise<CreateBotResponse$1>;
14779
14837
  readonly updateBot: (input: UpdateBotInput$1) => Promise<UpdateBotResponse$1>;
14838
+ readonly rotateBotSigningSecrets: (input: RotateBotSigningSecretsInput$1) => Promise<RotateBotSigningSecretsResponse$1>;
14780
14839
  readonly transferBot: (input: TransferBotInput$1) => Promise<TransferBotResponse$1>;
14781
14840
  readonly listBots: (input: ListBotsInput$1) => Promise<ListBotsResponse$1>;
14782
14841
  readonly getBot: (input: GetBotInput$1) => Promise<GetBotResponse$1>;
@@ -14834,6 +14893,7 @@ declare class Client$9 {
14834
14893
  readonly createIntegration: (input: CreateIntegrationInput$1) => Promise<CreateIntegrationResponse$1>;
14835
14894
  readonly validateIntegrationCreation: (input: ValidateIntegrationCreationInput$1) => Promise<ValidateIntegrationCreationResponse$1>;
14836
14895
  readonly updateIntegration: (input: UpdateIntegrationInput$1) => Promise<UpdateIntegrationResponse$1>;
14896
+ readonly rotateIntegrationSigningSecrets: (input: RotateIntegrationSigningSecretsInput$1) => Promise<RotateIntegrationSigningSecretsResponse$1>;
14837
14897
  readonly validateIntegrationUpdate: (input: ValidateIntegrationUpdateInput$1) => Promise<ValidateIntegrationUpdateResponse$1>;
14838
14898
  readonly listIntegrations: (input: ListIntegrationsInput$1) => Promise<ListIntegrationsResponse$1>;
14839
14899
  readonly getIntegration: (input: GetIntegrationInput$1) => Promise<GetIntegrationResponse$1>;
@@ -15113,24 +15173,22 @@ interface GetPlanRequestParams {
15113
15173
  interface GetPlanRequestBody {
15114
15174
  }
15115
15175
  type GetPlanInput = GetPlanRequestBody & GetPlanRequestHeaders & GetPlanRequestQuery & GetPlanRequestParams;
15116
- interface GetPlanResponse {
15176
+ interface GetPlanResponse$1 {
15117
15177
  id: string;
15118
15178
  name: string;
15119
15179
  description: string;
15120
- providerProductId: string;
15121
15180
  prices: {
15122
- [k: string]: {
15123
- providerPriceId: string;
15181
+ month?: {
15124
15182
  amount: number;
15125
- currency: "usd";
15126
- interval: "month" | "year";
15127
- metadata?: {
15128
- [k: string]: string;
15129
- };
15183
+ currency: string;
15184
+ };
15185
+ year?: {
15186
+ amount: number;
15187
+ currency: string;
15130
15188
  };
15131
15189
  };
15132
15190
  features: {
15133
- [k: string]: any;
15191
+ [k: string]: number;
15134
15192
  };
15135
15193
  metadata?: {
15136
15194
  [k: string]: string;
@@ -15146,29 +15204,28 @@ interface ListPlansRequestParams {
15146
15204
  interface ListPlansRequestBody {
15147
15205
  }
15148
15206
  type ListPlansInput = ListPlansRequestBody & ListPlansRequestHeaders & ListPlansRequestQuery & ListPlansRequestParams;
15149
- type ListPlansResponse = {
15207
+ type ListPlansResponse = GetPlanResponse[];
15208
+ interface GetPlanResponse {
15150
15209
  id: string;
15151
15210
  name: string;
15152
15211
  description: string;
15153
- providerProductId: string;
15154
15212
  prices: {
15155
- [k: string]: {
15156
- providerPriceId: string;
15213
+ month?: {
15157
15214
  amount: number;
15158
- currency: "usd";
15159
- interval: "month" | "year";
15160
- metadata?: {
15161
- [k: string]: string;
15162
- };
15215
+ currency: string;
15216
+ };
15217
+ year?: {
15218
+ amount: number;
15219
+ currency: string;
15163
15220
  };
15164
15221
  };
15165
15222
  features: {
15166
- [k: string]: any | null;
15223
+ [k: string]: number;
15167
15224
  };
15168
15225
  metadata?: {
15169
15226
  [k: string]: string;
15170
15227
  };
15171
- }[];
15228
+ }
15172
15229
 
15173
15230
  interface GetAddonRequestHeaders {
15174
15231
  }
@@ -15180,22 +15237,11 @@ interface GetAddonRequestParams {
15180
15237
  interface GetAddonRequestBody {
15181
15238
  }
15182
15239
  type GetAddonInput = GetAddonRequestBody & GetAddonRequestHeaders & GetAddonRequestQuery & GetAddonRequestParams;
15183
- interface GetAddonResponse {
15240
+ interface GetAddonResponse$1 {
15184
15241
  id: string;
15185
15242
  name: string;
15186
15243
  description: string;
15187
- providerProductId: string;
15188
- prices: {
15189
- [k: string]: {
15190
- providerPriceId: string;
15191
- amount: number;
15192
- currency: "usd";
15193
- interval: "month" | "year";
15194
- metadata?: {
15195
- [k: string]: string;
15196
- };
15197
- };
15198
- };
15244
+ price: number;
15199
15245
  feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
15200
15246
  increment: number;
15201
15247
  metadata?: {
@@ -15212,28 +15258,295 @@ interface ListAddonsRequestParams {
15212
15258
  interface ListAddonsRequestBody {
15213
15259
  }
15214
15260
  type ListAddonsInput = ListAddonsRequestBody & ListAddonsRequestHeaders & ListAddonsRequestQuery & ListAddonsRequestParams;
15215
- type ListAddonsResponse = {
15261
+ type ListAddonsResponse = GetAddonResponse[];
15262
+ interface GetAddonResponse {
15216
15263
  id: string;
15217
15264
  name: string;
15218
15265
  description: string;
15219
- providerProductId: string;
15220
- prices: {
15266
+ price: number;
15267
+ feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
15268
+ increment: number;
15269
+ metadata?: {
15270
+ [k: string]: string;
15271
+ };
15272
+ }
15273
+
15274
+ interface GetCurrentSubscriptionRequestHeaders {
15275
+ }
15276
+ interface GetCurrentSubscriptionRequestQuery {
15277
+ }
15278
+ interface GetCurrentSubscriptionRequestParams {
15279
+ }
15280
+ interface GetCurrentSubscriptionRequestBody {
15281
+ }
15282
+ type GetCurrentSubscriptionInput = GetCurrentSubscriptionRequestBody & GetCurrentSubscriptionRequestHeaders & GetCurrentSubscriptionRequestQuery & GetCurrentSubscriptionRequestParams;
15283
+ interface GetCurrentSubscriptionResponse {
15284
+ plan: {
15285
+ current: {
15286
+ status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
15287
+ planId: string;
15288
+ interval: "month" | "year";
15289
+ price: number;
15290
+ proratedPrice?: number;
15291
+ cancelAtPeriodEnd: boolean;
15292
+ periodEnd: string;
15293
+ };
15294
+ next: {
15295
+ planId: string;
15296
+ interval: "month" | "year";
15297
+ price: number | null;
15298
+ effectiveDate: string;
15299
+ } | null;
15300
+ };
15301
+ addons: {
15221
15302
  [k: string]: {
15222
- providerPriceId: string;
15223
- amount: number;
15224
- currency: "usd";
15303
+ current: {
15304
+ quantity: number;
15305
+ price: number;
15306
+ proratedPrice?: number;
15307
+ };
15308
+ next: {
15309
+ quantity: number;
15310
+ price: number;
15311
+ effectiveDate: string;
15312
+ } | null;
15313
+ };
15314
+ };
15315
+ }
15316
+
15317
+ interface GetNextSubscriptionRequestHeaders {
15318
+ }
15319
+ interface GetNextSubscriptionRequestQuery {
15320
+ }
15321
+ interface GetNextSubscriptionRequestParams {
15322
+ }
15323
+ interface GetNextSubscriptionRequestBody {
15324
+ }
15325
+ type GetNextSubscriptionInput = GetNextSubscriptionRequestBody & GetNextSubscriptionRequestHeaders & GetNextSubscriptionRequestQuery & GetNextSubscriptionRequestParams;
15326
+ interface GetNextSubscriptionResponse {
15327
+ plan: {
15328
+ current: {
15329
+ status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
15330
+ planId: string;
15225
15331
  interval: "month" | "year";
15226
- metadata?: {
15227
- [k: string]: string;
15332
+ price: number;
15333
+ proratedPrice?: number;
15334
+ cancelAtPeriodEnd: boolean;
15335
+ periodEnd: string;
15336
+ };
15337
+ next: {
15338
+ planId: string;
15339
+ interval: "month" | "year";
15340
+ price: number | null;
15341
+ effectiveDate: string;
15342
+ } | null;
15343
+ };
15344
+ addons: {
15345
+ [k: string]: {
15346
+ current: {
15347
+ quantity: number;
15348
+ price: number;
15349
+ proratedPrice?: number;
15350
+ };
15351
+ next: {
15352
+ quantity: number;
15353
+ price: number;
15354
+ effectiveDate: string;
15355
+ } | null;
15356
+ };
15357
+ };
15358
+ }
15359
+
15360
+ interface PreviewSubscriptionUpdateRequestHeaders {
15361
+ }
15362
+ interface PreviewSubscriptionUpdateRequestQuery {
15363
+ }
15364
+ interface PreviewSubscriptionUpdateRequestParams {
15365
+ }
15366
+ interface PreviewSubscriptionUpdateRequestBody {
15367
+ plan: {
15368
+ /**
15369
+ * New plan ID (optional)
15370
+ */
15371
+ planId: string;
15372
+ /**
15373
+ * New billing interval (optional)
15374
+ */
15375
+ interval: "month" | "year";
15376
+ };
15377
+ /**
15378
+ * Map of addon IDs to quantities (optional). Set quantity to 0 to remove addon.
15379
+ */
15380
+ addons?: {
15381
+ [k: string]: number;
15382
+ };
15383
+ }
15384
+ type PreviewSubscriptionUpdateInput = PreviewSubscriptionUpdateRequestBody & PreviewSubscriptionUpdateRequestHeaders & PreviewSubscriptionUpdateRequestQuery & PreviewSubscriptionUpdateRequestParams;
15385
+ /**
15386
+ * Preview of subscription update costs
15387
+ */
15388
+ interface PreviewSubscriptionUpdateResponse {
15389
+ subscription: {
15390
+ plan: {
15391
+ planId: string;
15392
+ interval: "month" | "year";
15393
+ effectiveDate: string;
15394
+ };
15395
+ addons: {
15396
+ [k: string]: {
15397
+ quantity: number;
15398
+ effectiveDate: string;
15228
15399
  };
15229
15400
  };
15230
15401
  };
15231
- feature: "human_in_the_loop" | "ratelimit" | "incoming_messages_events" | "integration_spend" | "integration_subscription" | "table_rows" | "bot_count" | "always_alive_count" | "always_alive_concurrency" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions";
15232
- increment: number;
15233
- metadata?: {
15234
- [k: string]: string;
15402
+ changeType: "upgrade" | "downgrade" | "same";
15403
+ costs: {
15404
+ /**
15405
+ * Prorated charges due immediately (0 for downgrades)
15406
+ */
15407
+ immediate: {
15408
+ total: number;
15409
+ lineItems: {
15410
+ type: "plan" | "addon" | "proration_credit";
15411
+ id: string;
15412
+ description: string;
15413
+ amount: number;
15414
+ quantity?: number;
15415
+ }[];
15416
+ };
15417
+ /**
15418
+ * Monthly recurring cost (addons, or plan if monthly interval)
15419
+ */
15420
+ monthly: {
15421
+ total: number;
15422
+ lineItems: {
15423
+ type: "plan" | "addon" | "proration_credit";
15424
+ id: string;
15425
+ description: string;
15426
+ amount: number;
15427
+ quantity?: number;
15428
+ }[];
15429
+ };
15430
+ /**
15431
+ * Yearly recurring cost (plan if yearly interval)
15432
+ */
15433
+ yearly: {
15434
+ total: number;
15435
+ lineItems: {
15436
+ type: "plan" | "addon" | "proration_credit";
15437
+ id: string;
15438
+ description: string;
15439
+ amount: number;
15440
+ quantity?: number;
15441
+ }[];
15442
+ };
15443
+ };
15444
+ currentPeriodEnd: string;
15445
+ }
15446
+
15447
+ interface SetPlanRequestHeaders {
15448
+ }
15449
+ interface SetPlanRequestQuery {
15450
+ }
15451
+ interface SetPlanRequestParams {
15452
+ }
15453
+ /**
15454
+ * Plan update parameters
15455
+ */
15456
+ interface SetPlanRequestBody {
15457
+ planId: string;
15458
+ interval: "month" | "year";
15459
+ testReferenceTime?: number;
15460
+ }
15461
+ type SetPlanInput = SetPlanRequestBody & SetPlanRequestHeaders & SetPlanRequestQuery & SetPlanRequestParams;
15462
+ /**
15463
+ * Subscription details including current plan, addons, and costs
15464
+ */
15465
+ interface SetPlanResponse {
15466
+ plan: {
15467
+ current: {
15468
+ status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
15469
+ planId: string;
15470
+ interval: "month" | "year";
15471
+ price: number;
15472
+ proratedPrice?: number;
15473
+ cancelAtPeriodEnd: boolean;
15474
+ periodEnd: string;
15475
+ };
15476
+ next: {
15477
+ planId: string;
15478
+ interval: "month" | "year";
15479
+ price: number | null;
15480
+ effectiveDate: string;
15481
+ } | null;
15482
+ };
15483
+ addons: {
15484
+ [k: string]: {
15485
+ current: {
15486
+ quantity: number;
15487
+ price: number;
15488
+ proratedPrice?: number;
15489
+ };
15490
+ next: {
15491
+ quantity: number;
15492
+ price: number;
15493
+ effectiveDate: string;
15494
+ } | null;
15495
+ };
15496
+ };
15497
+ }
15498
+
15499
+ interface SetAddonsRequestHeaders {
15500
+ }
15501
+ interface SetAddonsRequestQuery {
15502
+ }
15503
+ interface SetAddonsRequestParams {
15504
+ }
15505
+ /**
15506
+ * Addons update parameters. Set quantity to 0 to remove an addon.
15507
+ */
15508
+ interface SetAddonsRequestBody {
15509
+ addons: {
15510
+ [k: string]: number;
15511
+ };
15512
+ }
15513
+ type SetAddonsInput = SetAddonsRequestBody & SetAddonsRequestHeaders & SetAddonsRequestQuery & SetAddonsRequestParams;
15514
+ /**
15515
+ * Subscription details including current plan, addons, and costs
15516
+ */
15517
+ interface SetAddonsResponse {
15518
+ plan: {
15519
+ current: {
15520
+ status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
15521
+ planId: string;
15522
+ interval: "month" | "year";
15523
+ price: number;
15524
+ proratedPrice?: number;
15525
+ cancelAtPeriodEnd: boolean;
15526
+ periodEnd: string;
15527
+ };
15528
+ next: {
15529
+ planId: string;
15530
+ interval: "month" | "year";
15531
+ price: number | null;
15532
+ effectiveDate: string;
15533
+ } | null;
15235
15534
  };
15236
- }[];
15535
+ addons: {
15536
+ [k: string]: {
15537
+ current: {
15538
+ quantity: number;
15539
+ price: number;
15540
+ proratedPrice?: number;
15541
+ };
15542
+ next: {
15543
+ quantity: number;
15544
+ price: number;
15545
+ effectiveDate: string;
15546
+ } | null;
15547
+ };
15548
+ };
15549
+ }
15237
15550
 
15238
15551
  interface ListInvoicesRequestHeaders {
15239
15552
  }
@@ -15245,9 +15558,6 @@ interface ListInvoicesRequestParams {
15245
15558
  interface ListInvoicesRequestBody {
15246
15559
  }
15247
15560
  type ListInvoicesInput = ListInvoicesRequestBody & ListInvoicesRequestHeaders & ListInvoicesRequestQuery & ListInvoicesRequestParams;
15248
- /**
15249
- * List of invoices with pagination.
15250
- */
15251
15561
  interface ListInvoicesResponse {
15252
15562
  invoices: {
15253
15563
  id: string;
@@ -15350,6 +15660,19 @@ interface CreatePaymentMethodIntentResponse {
15350
15660
  clientSecret: string;
15351
15661
  }
15352
15662
 
15663
+ interface GetQuotasRequestHeaders {
15664
+ }
15665
+ interface GetQuotasRequestQuery {
15666
+ }
15667
+ interface GetQuotasRequestParams {
15668
+ }
15669
+ interface GetQuotasRequestBody {
15670
+ }
15671
+ type GetQuotasInput = GetQuotasRequestBody & GetQuotasRequestHeaders & GetQuotasRequestQuery & GetQuotasRequestParams;
15672
+ interface GetQuotasResponse {
15673
+ [k: string]: number;
15674
+ }
15675
+
15353
15676
  type ClientProps$7 = {
15354
15677
  toAxiosRequest: typeof toAxiosRequest$3;
15355
15678
  toApiError: typeof toApiError$3;
@@ -15359,15 +15682,21 @@ declare class Client$7 {
15359
15682
  private props;
15360
15683
  constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$7>);
15361
15684
  readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
15362
- readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse>;
15685
+ readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse$1>;
15363
15686
  readonly listPlans: (input: ListPlansInput) => Promise<ListPlansResponse>;
15364
- readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse>;
15687
+ readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse$1>;
15365
15688
  readonly listAddons: (input: ListAddonsInput) => Promise<ListAddonsResponse>;
15689
+ readonly getCurrentSubscription: (input: GetCurrentSubscriptionInput) => Promise<GetCurrentSubscriptionResponse>;
15690
+ readonly getNextSubscription: (input: GetNextSubscriptionInput) => Promise<GetNextSubscriptionResponse>;
15691
+ readonly previewSubscriptionUpdate: (input: PreviewSubscriptionUpdateInput) => Promise<PreviewSubscriptionUpdateResponse>;
15692
+ readonly setPlan: (input: SetPlanInput) => Promise<SetPlanResponse>;
15693
+ readonly setAddons: (input: SetAddonsInput) => Promise<SetAddonsResponse>;
15366
15694
  readonly listInvoices: (input: ListInvoicesInput) => Promise<ListInvoicesResponse>;
15367
15695
  readonly payInvoice: (input: PayInvoiceInput) => Promise<PayInvoiceResponse>;
15368
15696
  readonly getPaymentMethod: (input: GetPaymentMethodInput) => Promise<GetPaymentMethodResponse>;
15369
15697
  readonly setPaymentMethod: (input: SetPaymentMethodInput) => Promise<SetPaymentMethodResponse>;
15370
15698
  readonly createPaymentMethodIntent: (input: CreatePaymentMethodIntentInput) => Promise<CreatePaymentMethodIntentResponse>;
15699
+ readonly getQuotas: (input: GetQuotasInput) => Promise<GetQuotasResponse>;
15371
15700
  }
15372
15701
  declare function toApiError$3(err: unknown): Error;
15373
15702
 
@@ -21831,6 +22160,10 @@ interface GetPublicIntegrationByIdResponse {
21831
22160
  * URL of the [Integration](#schema_integration)
21832
22161
  */
21833
22162
  url: string;
22163
+ /**
22164
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
22165
+ */
22166
+ signingSecret: string;
21834
22167
  /**
21835
22168
  * Name of the [Integration](#schema_integration)
21836
22169
  */
@@ -22247,6 +22580,10 @@ interface GetPublicIntegrationResponse {
22247
22580
  * URL of the [Integration](#schema_integration)
22248
22581
  */
22249
22582
  url: string;
22583
+ /**
22584
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
22585
+ */
22586
+ signingSecret: string;
22250
22587
  /**
22251
22588
  * Name of the [Integration](#schema_integration)
22252
22589
  */
@@ -23986,7 +24323,7 @@ interface CreateBotResponse {
23986
24323
  */
23987
24324
  updatedAt: string;
23988
24325
  /**
23989
- * Signing secret of the [Bot](#schema_bot)
24326
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
23990
24327
  */
23991
24328
  signingSecret: string;
23992
24329
  /**
@@ -24400,9 +24737,9 @@ interface UpdateBotRequestBody {
24400
24737
  */
24401
24738
  url?: string | null;
24402
24739
  /**
24403
- * Type of the [Bot](#schema_bot) authentication (`iam`)
24740
+ * Type of the [Bot](#schema_bot) authentication (`iam` or `hmac-sha256`)
24404
24741
  */
24405
- authentication?: "iam";
24742
+ authentication?: "iam" | "hmac-sha256";
24406
24743
  configuration?: {
24407
24744
  /**
24408
24745
  * Configuration data
@@ -24666,7 +25003,7 @@ interface UpdateBotResponse {
24666
25003
  */
24667
25004
  updatedAt: string;
24668
25005
  /**
24669
- * Signing secret of the [Bot](#schema_bot)
25006
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
24670
25007
  */
24671
25008
  signingSecret: string;
24672
25009
  /**
@@ -25067,6 +25404,23 @@ interface UpdateBotResponse {
25067
25404
  };
25068
25405
  }
25069
25406
 
25407
+ interface RotateBotSigningSecretsRequestHeaders {
25408
+ }
25409
+ interface RotateBotSigningSecretsRequestQuery {
25410
+ }
25411
+ interface RotateBotSigningSecretsRequestParams {
25412
+ id: string;
25413
+ }
25414
+ interface RotateBotSigningSecretsRequestBody {
25415
+ }
25416
+ type RotateBotSigningSecretsInput = RotateBotSigningSecretsRequestBody & RotateBotSigningSecretsRequestHeaders & RotateBotSigningSecretsRequestQuery & RotateBotSigningSecretsRequestParams;
25417
+ interface RotateBotSigningSecretsResponse {
25418
+ /**
25419
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
25420
+ */
25421
+ newSigningSecret: string;
25422
+ }
25423
+
25070
25424
  interface TransferBotRequestHeaders {
25071
25425
  }
25072
25426
  interface TransferBotRequestQuery {
@@ -25157,7 +25511,7 @@ interface GetBotResponse {
25157
25511
  */
25158
25512
  updatedAt: string;
25159
25513
  /**
25160
- * Signing secret of the [Bot](#schema_bot)
25514
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
25161
25515
  */
25162
25516
  signingSecret: string;
25163
25517
  /**
@@ -27210,6 +27564,10 @@ interface CreateIntegrationResponse {
27210
27564
  * URL of the [Integration](#schema_integration)
27211
27565
  */
27212
27566
  url: string;
27567
+ /**
27568
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
27569
+ */
27570
+ signingSecret: string;
27213
27571
  /**
27214
27572
  * Name of the [Integration](#schema_integration)
27215
27573
  */
@@ -28290,6 +28648,10 @@ interface UpdateIntegrationResponse {
28290
28648
  * URL of the [Integration](#schema_integration)
28291
28649
  */
28292
28650
  url: string;
28651
+ /**
28652
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
28653
+ */
28654
+ signingSecret: string;
28293
28655
  /**
28294
28656
  * Name of the [Integration](#schema_integration)
28295
28657
  */
@@ -28641,6 +29003,23 @@ interface UpdateIntegrationResponse {
28641
29003
  };
28642
29004
  }
28643
29005
 
29006
+ interface RotateIntegrationSigningSecretsRequestHeaders {
29007
+ }
29008
+ interface RotateIntegrationSigningSecretsRequestQuery {
29009
+ }
29010
+ interface RotateIntegrationSigningSecretsRequestParams {
29011
+ id: string;
29012
+ }
29013
+ interface RotateIntegrationSigningSecretsRequestBody {
29014
+ }
29015
+ type RotateIntegrationSigningSecretsInput = RotateIntegrationSigningSecretsRequestBody & RotateIntegrationSigningSecretsRequestHeaders & RotateIntegrationSigningSecretsRequestQuery & RotateIntegrationSigningSecretsRequestParams;
29016
+ interface RotateIntegrationSigningSecretsResponse {
29017
+ /**
29018
+ * The new signing secret that can be used immediately. The old signing secret(s) will continue to work for 24 hours after this operation to allow for a smooth transition.
29019
+ */
29020
+ newSigningSecret: string;
29021
+ }
29022
+
28644
29023
  interface ValidateIntegrationUpdateRequestHeaders {
28645
29024
  }
28646
29025
  interface ValidateIntegrationUpdateRequestQuery {
@@ -29145,6 +29524,10 @@ interface GetIntegrationResponse {
29145
29524
  * URL of the [Integration](#schema_integration)
29146
29525
  */
29147
29526
  url: string;
29527
+ /**
29528
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
29529
+ */
29530
+ signingSecret: string;
29148
29531
  /**
29149
29532
  * Name of the [Integration](#schema_integration)
29150
29533
  */
@@ -29581,6 +29964,10 @@ interface GetIntegrationByNameResponse {
29581
29964
  * URL of the [Integration](#schema_integration)
29582
29965
  */
29583
29966
  url: string;
29967
+ /**
29968
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
29969
+ */
29970
+ signingSecret: string;
29584
29971
  /**
29585
29972
  * Name of the [Integration](#schema_integration)
29586
29973
  */
@@ -35601,7 +35988,7 @@ interface Bot {
35601
35988
  */
35602
35989
  updatedAt: string;
35603
35990
  /**
35604
- * Signing secret of the [Bot](#schema_bot)
35991
+ * Signing secret of the [Bot](#schema_bot). This field is only visible when creating a new bot or when rotating the signing secret of an existing bot.
35605
35992
  */
35606
35993
  signingSecret: string;
35607
35994
  /**
@@ -36044,6 +36431,10 @@ interface Integration {
36044
36431
  * URL of the [Integration](#schema_integration)
36045
36432
  */
36046
36433
  url: string;
36434
+ /**
36435
+ * Signing secret of the [Integration](#schema_integration). This field is only visible when creating a new integration or when rotating the signing secret of an existing integration.
36436
+ */
36437
+ signingSecret: string;
36047
36438
  /**
36048
36439
  * Name of the [Integration](#schema_integration)
36049
36440
  */
@@ -37583,6 +37974,7 @@ declare class Client$1 {
37583
37974
  readonly getPublicInterface: (input: GetPublicInterfaceInput) => Promise<GetPublicInterfaceResponse>;
37584
37975
  readonly createBot: (input: CreateBotInput) => Promise<CreateBotResponse>;
37585
37976
  readonly updateBot: (input: UpdateBotInput) => Promise<UpdateBotResponse>;
37977
+ readonly rotateBotSigningSecrets: (input: RotateBotSigningSecretsInput) => Promise<RotateBotSigningSecretsResponse>;
37586
37978
  readonly transferBot: (input: TransferBotInput) => Promise<TransferBotResponse>;
37587
37979
  readonly listBots: (input: ListBotsInput) => Promise<ListBotsResponse>;
37588
37980
  readonly getBot: (input: GetBotInput) => Promise<GetBotResponse>;
@@ -37640,6 +38032,7 @@ declare class Client$1 {
37640
38032
  readonly createIntegration: (input: CreateIntegrationInput) => Promise<CreateIntegrationResponse>;
37641
38033
  readonly validateIntegrationCreation: (input: ValidateIntegrationCreationInput) => Promise<ValidateIntegrationCreationResponse>;
37642
38034
  readonly updateIntegration: (input: UpdateIntegrationInput) => Promise<UpdateIntegrationResponse>;
38035
+ readonly rotateIntegrationSigningSecrets: (input: RotateIntegrationSigningSecretsInput) => Promise<RotateIntegrationSigningSecretsResponse>;
37643
38036
  readonly validateIntegrationUpdate: (input: ValidateIntegrationUpdateInput) => Promise<ValidateIntegrationUpdateResponse>;
37644
38037
  readonly listIntegrations: (input: ListIntegrationsInput) => Promise<ListIntegrationsResponse>;
37645
38038
  readonly getIntegration: (input: GetIntegrationInput) => Promise<GetIntegrationResponse>;