@botpress/client 1.34.0 → 1.35.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
@@ -438,6 +438,12 @@ interface ListParticipantsResponse$1 {
438
438
  * Picture URL of the [User](#schema_user)
439
439
  */
440
440
  pictureUrl?: string;
441
+ /**
442
+ * Optional attributes
443
+ */
444
+ attributes?: {
445
+ [k: string]: string;
446
+ };
441
447
  }[];
442
448
  meta: {
443
449
  /**
@@ -492,6 +498,12 @@ interface AddParticipantResponse$1 {
492
498
  * Picture URL of the [User](#schema_user)
493
499
  */
494
500
  pictureUrl?: string;
501
+ /**
502
+ * Optional attributes
503
+ */
504
+ attributes?: {
505
+ [k: string]: string;
506
+ };
495
507
  };
496
508
  }
497
509
 
@@ -537,6 +549,12 @@ interface GetParticipantResponse$1 {
537
549
  * Picture URL of the [User](#schema_user)
538
550
  */
539
551
  pictureUrl?: string;
552
+ /**
553
+ * Optional attributes
554
+ */
555
+ attributes?: {
556
+ [k: string]: string;
557
+ };
540
558
  };
541
559
  }
542
560
 
@@ -1223,6 +1241,12 @@ interface InitializeIncomingMessageRequestBody$1 {
1223
1241
  * URI of the user picture
1224
1242
  */
1225
1243
  pictureUrl?: string;
1244
+ /**
1245
+ * Optional attributes
1246
+ */
1247
+ attributes?: {
1248
+ [k: string]: string;
1249
+ };
1226
1250
  /**
1227
1251
  * Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
1228
1252
  */
@@ -1306,6 +1330,12 @@ interface InitializeIncomingMessageResponse$1 {
1306
1330
  * Picture URL of the [User](#schema_user)
1307
1331
  */
1308
1332
  pictureUrl?: string;
1333
+ /**
1334
+ * Optional attributes
1335
+ */
1336
+ attributes?: {
1337
+ [k: string]: string;
1338
+ };
1309
1339
  };
1310
1340
  /**
1311
1341
  * The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
@@ -1518,6 +1548,12 @@ interface CreateUserRequestBody$1 {
1518
1548
  * URI of the user picture
1519
1549
  */
1520
1550
  pictureUrl?: string;
1551
+ /**
1552
+ * Optional attributes
1553
+ */
1554
+ attributes?: {
1555
+ [k: string]: string;
1556
+ };
1521
1557
  }
1522
1558
  type CreateUserInput$1 = CreateUserRequestBody$1 & CreateUserRequestHeaders$1 & CreateUserRequestQuery$1 & CreateUserRequestParams$1;
1523
1559
  interface CreateUserResponse$1 {
@@ -1551,6 +1587,12 @@ interface CreateUserResponse$1 {
1551
1587
  * Picture URL of the [User](#schema_user)
1552
1588
  */
1553
1589
  pictureUrl?: string;
1590
+ /**
1591
+ * Optional attributes
1592
+ */
1593
+ attributes?: {
1594
+ [k: string]: string;
1595
+ };
1554
1596
  };
1555
1597
  }
1556
1598
 
@@ -1595,6 +1637,12 @@ interface GetUserResponse$1 {
1595
1637
  * Picture URL of the [User](#schema_user)
1596
1638
  */
1597
1639
  pictureUrl?: string;
1640
+ /**
1641
+ * Optional attributes
1642
+ */
1643
+ attributes?: {
1644
+ [k: string]: string;
1645
+ };
1598
1646
  };
1599
1647
  }
1600
1648
 
@@ -1645,6 +1693,12 @@ interface ListUsersResponse$1 {
1645
1693
  * Picture URL of the [User](#schema_user)
1646
1694
  */
1647
1695
  pictureUrl?: string;
1696
+ /**
1697
+ * Optional attributes
1698
+ */
1699
+ attributes?: {
1700
+ [k: string]: string;
1701
+ };
1648
1702
  }[];
1649
1703
  meta: {
1650
1704
  /**
@@ -1680,6 +1734,12 @@ interface GetOrCreateUserRequestBody$1 {
1680
1734
  * URI of the user picture
1681
1735
  */
1682
1736
  pictureUrl?: string;
1737
+ /**
1738
+ * Optional attributes
1739
+ */
1740
+ attributes?: {
1741
+ [k: string]: string;
1742
+ };
1683
1743
  /**
1684
1744
  * Optional list of tag names to use for strict matching when looking up existing users. If provided, all specified tags must match exactly for a user to be considered a match. For example, with an existing user whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
1685
1745
  */
@@ -1717,6 +1777,12 @@ interface GetOrCreateUserResponse$1 {
1717
1777
  * Picture URL of the [User](#schema_user)
1718
1778
  */
1719
1779
  pictureUrl?: string;
1780
+ /**
1781
+ * Optional attributes
1782
+ */
1783
+ attributes?: {
1784
+ [k: string]: string;
1785
+ };
1720
1786
  };
1721
1787
  }
1722
1788
 
@@ -1742,6 +1808,12 @@ interface UpdateUserRequestBody$1 {
1742
1808
  * URI of the user picture
1743
1809
  */
1744
1810
  pictureUrl?: string | null;
1811
+ /**
1812
+ * Optional attributes. Set attributes to null to remove them
1813
+ */
1814
+ attributes?: {
1815
+ [k: string]: string | null;
1816
+ };
1745
1817
  }
1746
1818
  type UpdateUserInput$1 = UpdateUserRequestBody$1 & UpdateUserRequestHeaders$1 & UpdateUserRequestQuery$1 & UpdateUserRequestParams$1;
1747
1819
  interface UpdateUserResponse$1 {
@@ -1775,6 +1847,12 @@ interface UpdateUserResponse$1 {
1775
1847
  * Picture URL of the [User](#schema_user)
1776
1848
  */
1777
1849
  pictureUrl?: string;
1850
+ /**
1851
+ * Optional attributes
1852
+ */
1853
+ attributes?: {
1854
+ [k: string]: string;
1855
+ };
1778
1856
  };
1779
1857
  }
1780
1858
 
@@ -3303,6 +3381,9 @@ declare class Client$a extends Client$b {
3303
3381
  };
3304
3382
  name?: string;
3305
3383
  pictureUrl?: string;
3384
+ attributes?: {
3385
+ [k: string]: string;
3386
+ };
3306
3387
  }>;
3307
3388
  events: (props: {
3308
3389
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
@@ -3366,6 +3447,9 @@ declare class Client$a extends Client$b {
3366
3447
  };
3367
3448
  name?: string;
3368
3449
  pictureUrl?: string;
3450
+ attributes?: {
3451
+ [k: string]: string;
3452
+ };
3369
3453
  }>;
3370
3454
  tasks: (props: {
3371
3455
  status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;
@@ -8571,7 +8655,7 @@ interface GetAuditRecordsResponse$1 {
8571
8655
  resourceId: string | null;
8572
8656
  resourceName?: string | null;
8573
8657
  value?: string | null;
8574
- action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
8658
+ action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "UPDATE_WORKSPACE_PLAN_READONLY" | "UPDATE_WORKSPACE_ADDONS_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
8575
8659
  }[];
8576
8660
  meta: {
8577
8661
  /**
@@ -15160,7 +15244,46 @@ interface GetBillingReadonlyRequestBody {
15160
15244
  }
15161
15245
  type GetBillingReadonlyInput = GetBillingReadonlyRequestBody & GetBillingReadonlyRequestHeaders & GetBillingReadonlyRequestQuery & GetBillingReadonlyRequestParams;
15162
15246
  interface GetBillingReadonlyResponse {
15163
- billingReadonly: boolean;
15247
+ planReadonly: boolean;
15248
+ addonsReadonly: boolean;
15249
+ }
15250
+
15251
+ interface GetBillingAddressRequestHeaders {
15252
+ }
15253
+ interface GetBillingAddressRequestQuery {
15254
+ }
15255
+ interface GetBillingAddressRequestParams {
15256
+ }
15257
+ interface GetBillingAddressRequestBody {
15258
+ }
15259
+ type GetBillingAddressInput = GetBillingAddressRequestBody & GetBillingAddressRequestHeaders & GetBillingAddressRequestQuery & GetBillingAddressRequestParams;
15260
+ interface GetBillingAddressResponse {
15261
+ address: {
15262
+ lineOne?: string;
15263
+ lineTwo?: string;
15264
+ city?: string;
15265
+ state?: string;
15266
+ postalCode?: string;
15267
+ country?: string;
15268
+ } | null;
15269
+ }
15270
+
15271
+ interface SetBillingAddressRequestHeaders {
15272
+ }
15273
+ interface SetBillingAddressRequestQuery {
15274
+ }
15275
+ interface SetBillingAddressRequestParams {
15276
+ }
15277
+ interface SetBillingAddressRequestBody {
15278
+ lineOne?: string;
15279
+ lineTwo?: string;
15280
+ city?: string;
15281
+ state?: string;
15282
+ postalCode?: string;
15283
+ country?: string;
15284
+ }
15285
+ type SetBillingAddressInput = SetBillingAddressRequestBody & SetBillingAddressRequestHeaders & SetBillingAddressRequestQuery & SetBillingAddressRequestParams;
15286
+ interface SetBillingAddressResponse {
15164
15287
  }
15165
15288
 
15166
15289
  interface GetPlanRequestHeaders {
@@ -15271,59 +15394,16 @@ interface GetAddonResponse {
15271
15394
  };
15272
15395
  }
15273
15396
 
15274
- interface GetCurrentSubscriptionRequestHeaders {
15397
+ interface GetSubscriptionRequestHeaders {
15275
15398
  }
15276
- interface GetCurrentSubscriptionRequestQuery {
15399
+ interface GetSubscriptionRequestQuery {
15277
15400
  }
15278
- interface GetCurrentSubscriptionRequestParams {
15401
+ interface GetSubscriptionRequestParams {
15279
15402
  }
15280
- interface GetCurrentSubscriptionRequestBody {
15403
+ interface GetSubscriptionRequestBody {
15281
15404
  }
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: {
15302
- [k: string]: {
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 {
15405
+ type GetSubscriptionInput = GetSubscriptionRequestBody & GetSubscriptionRequestHeaders & GetSubscriptionRequestQuery & GetSubscriptionRequestParams;
15406
+ interface GetSubscriptionResponse {
15327
15407
  plan: {
15328
15408
  current: {
15329
15409
  status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
@@ -15548,6 +15628,205 @@ interface SetAddonsResponse {
15548
15628
  };
15549
15629
  }
15550
15630
 
15631
+ interface SetCancelAtPeriodEndRequestHeaders {
15632
+ }
15633
+ interface SetCancelAtPeriodEndRequestQuery {
15634
+ }
15635
+ interface SetCancelAtPeriodEndRequestParams {
15636
+ }
15637
+ interface SetCancelAtPeriodEndRequestBody {
15638
+ cancelAtPeriodEnd: boolean;
15639
+ }
15640
+ type SetCancelAtPeriodEndInput = SetCancelAtPeriodEndRequestBody & SetCancelAtPeriodEndRequestHeaders & SetCancelAtPeriodEndRequestQuery & SetCancelAtPeriodEndRequestParams;
15641
+ /**
15642
+ * Subscription details including current plan, addons, and costs
15643
+ */
15644
+ interface SetCancelAtPeriodEndResponse {
15645
+ plan: {
15646
+ current: {
15647
+ status: "active" | "canceled" | "past_due" | "action_required" | "grace_period";
15648
+ planId: string;
15649
+ interval: "month" | "year";
15650
+ price: number;
15651
+ proratedPrice?: number;
15652
+ cancelAtPeriodEnd: boolean;
15653
+ periodEnd: string;
15654
+ };
15655
+ next: {
15656
+ planId: string;
15657
+ interval: "month" | "year";
15658
+ price: number | null;
15659
+ effectiveDate: string;
15660
+ } | null;
15661
+ };
15662
+ addons: {
15663
+ [k: string]: {
15664
+ current: {
15665
+ quantity: number;
15666
+ price: number;
15667
+ proratedPrice?: number;
15668
+ };
15669
+ next: {
15670
+ quantity: number;
15671
+ price: number;
15672
+ effectiveDate: string;
15673
+ } | null;
15674
+ };
15675
+ };
15676
+ }
15677
+
15678
+ interface GetAutoRechargeSettingsRequestHeaders {
15679
+ }
15680
+ interface GetAutoRechargeSettingsRequestQuery {
15681
+ }
15682
+ interface GetAutoRechargeSettingsRequestParams {
15683
+ }
15684
+ interface GetAutoRechargeSettingsRequestBody {
15685
+ }
15686
+ type GetAutoRechargeSettingsInput = GetAutoRechargeSettingsRequestBody & GetAutoRechargeSettingsRequestHeaders & GetAutoRechargeSettingsRequestQuery & GetAutoRechargeSettingsRequestParams;
15687
+ interface GetAutoRechargeSettingsResponse {
15688
+ settings: {
15689
+ table_row_count: {
15690
+ enabled: boolean;
15691
+ threshold?: number;
15692
+ limit?: number;
15693
+ disabledReason?: string;
15694
+ };
15695
+ invocation_calls: {
15696
+ enabled: boolean;
15697
+ threshold?: number;
15698
+ limit?: number;
15699
+ disabledReason?: string;
15700
+ };
15701
+ knowledgebase_vector_storage: {
15702
+ enabled: boolean;
15703
+ threshold?: number;
15704
+ limit?: number;
15705
+ disabledReason?: string;
15706
+ };
15707
+ storage_count: {
15708
+ enabled: boolean;
15709
+ threshold?: number;
15710
+ limit?: number;
15711
+ disabledReason?: string;
15712
+ };
15713
+ };
15714
+ }
15715
+
15716
+ interface SetAutoRechargeSettingsRequestHeaders {
15717
+ }
15718
+ interface SetAutoRechargeSettingsRequestQuery {
15719
+ }
15720
+ interface SetAutoRechargeSettingsRequestParams {
15721
+ }
15722
+ interface SetAutoRechargeSettingsRequestBody {
15723
+ settings: {
15724
+ table_row_count?: {
15725
+ enabled: boolean;
15726
+ threshold?: number;
15727
+ limit?: number;
15728
+ disabledReason?: string;
15729
+ };
15730
+ invocation_calls?: {
15731
+ enabled: boolean;
15732
+ threshold?: number;
15733
+ limit?: number;
15734
+ disabledReason?: string;
15735
+ };
15736
+ knowledgebase_vector_storage?: {
15737
+ enabled: boolean;
15738
+ threshold?: number;
15739
+ limit?: number;
15740
+ disabledReason?: string;
15741
+ };
15742
+ storage_count?: {
15743
+ enabled: boolean;
15744
+ threshold?: number;
15745
+ limit?: number;
15746
+ disabledReason?: string;
15747
+ };
15748
+ };
15749
+ }
15750
+ type SetAutoRechargeSettingsInput = SetAutoRechargeSettingsRequestBody & SetAutoRechargeSettingsRequestHeaders & SetAutoRechargeSettingsRequestQuery & SetAutoRechargeSettingsRequestParams;
15751
+ interface SetAutoRechargeSettingsResponse {
15752
+ settings: {
15753
+ table_row_count: {
15754
+ enabled: boolean;
15755
+ threshold?: number;
15756
+ limit?: number;
15757
+ disabledReason?: string;
15758
+ };
15759
+ invocation_calls: {
15760
+ enabled: boolean;
15761
+ threshold?: number;
15762
+ limit?: number;
15763
+ disabledReason?: string;
15764
+ };
15765
+ knowledgebase_vector_storage: {
15766
+ enabled: boolean;
15767
+ threshold?: number;
15768
+ limit?: number;
15769
+ disabledReason?: string;
15770
+ };
15771
+ storage_count: {
15772
+ enabled: boolean;
15773
+ threshold?: number;
15774
+ limit?: number;
15775
+ disabledReason?: string;
15776
+ };
15777
+ };
15778
+ }
15779
+
15780
+ interface GetTrialsRequestHeaders {
15781
+ }
15782
+ interface GetTrialsRequestQuery {
15783
+ }
15784
+ interface GetTrialsRequestParams {
15785
+ }
15786
+ interface GetTrialsRequestBody {
15787
+ }
15788
+ type GetTrialsInput = GetTrialsRequestBody & GetTrialsRequestHeaders & GetTrialsRequestQuery & GetTrialsRequestParams;
15789
+ interface GetTrialsResponse {
15790
+ trials: {
15791
+ id: string;
15792
+ trialPlan: string;
15793
+ fromPlan: string;
15794
+ endsAt: string;
15795
+ isActive: boolean;
15796
+ }[];
15797
+ }
15798
+
15799
+ interface CreateTrialRequestHeaders {
15800
+ }
15801
+ interface CreateTrialRequestQuery {
15802
+ }
15803
+ interface CreateTrialRequestParams {
15804
+ }
15805
+ interface CreateTrialRequestBody {
15806
+ lengthInDays: number;
15807
+ plan: string;
15808
+ }
15809
+ type CreateTrialInput = CreateTrialRequestBody & CreateTrialRequestHeaders & CreateTrialRequestQuery & CreateTrialRequestParams;
15810
+ interface CreateTrialResponse {
15811
+ id: string;
15812
+ trialPlan: string;
15813
+ fromPlan: string;
15814
+ endsAt: string;
15815
+ isActive: boolean;
15816
+ }
15817
+
15818
+ interface RemoveTrialRequestHeaders {
15819
+ }
15820
+ interface RemoveTrialRequestQuery {
15821
+ }
15822
+ interface RemoveTrialRequestParams {
15823
+ }
15824
+ interface RemoveTrialRequestBody {
15825
+ }
15826
+ type RemoveTrialInput = RemoveTrialRequestBody & RemoveTrialRequestHeaders & RemoveTrialRequestQuery & RemoveTrialRequestParams;
15827
+ interface RemoveTrialResponse {
15828
+ }
15829
+
15551
15830
  interface ListInvoicesRequestHeaders {
15552
15831
  }
15553
15832
  interface ListInvoicesRequestQuery {
@@ -15682,15 +15961,22 @@ declare class Client$7 {
15682
15961
  private props;
15683
15962
  constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$7>);
15684
15963
  readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
15964
+ readonly getBillingAddress: (input: GetBillingAddressInput) => Promise<GetBillingAddressResponse>;
15965
+ readonly setBillingAddress: (input: SetBillingAddressInput) => Promise<SetBillingAddressResponse>;
15685
15966
  readonly getPlan: (input: GetPlanInput) => Promise<GetPlanResponse$1>;
15686
15967
  readonly listPlans: (input: ListPlansInput) => Promise<ListPlansResponse>;
15687
15968
  readonly getAddon: (input: GetAddonInput) => Promise<GetAddonResponse$1>;
15688
15969
  readonly listAddons: (input: ListAddonsInput) => Promise<ListAddonsResponse>;
15689
- readonly getCurrentSubscription: (input: GetCurrentSubscriptionInput) => Promise<GetCurrentSubscriptionResponse>;
15690
- readonly getNextSubscription: (input: GetNextSubscriptionInput) => Promise<GetNextSubscriptionResponse>;
15970
+ readonly getSubscription: (input: GetSubscriptionInput) => Promise<GetSubscriptionResponse>;
15691
15971
  readonly previewSubscriptionUpdate: (input: PreviewSubscriptionUpdateInput) => Promise<PreviewSubscriptionUpdateResponse>;
15692
15972
  readonly setPlan: (input: SetPlanInput) => Promise<SetPlanResponse>;
15693
15973
  readonly setAddons: (input: SetAddonsInput) => Promise<SetAddonsResponse>;
15974
+ readonly setCancelAtPeriodEnd: (input: SetCancelAtPeriodEndInput) => Promise<SetCancelAtPeriodEndResponse>;
15975
+ readonly getAutoRechargeSettings: (input: GetAutoRechargeSettingsInput) => Promise<GetAutoRechargeSettingsResponse>;
15976
+ readonly setAutoRechargeSettings: (input: SetAutoRechargeSettingsInput) => Promise<SetAutoRechargeSettingsResponse>;
15977
+ readonly getTrials: (input: GetTrialsInput) => Promise<GetTrialsResponse>;
15978
+ readonly createTrial: (input: CreateTrialInput) => Promise<CreateTrialResponse>;
15979
+ readonly removeTrial: (input: RemoveTrialInput) => Promise<RemoveTrialResponse>;
15694
15980
  readonly listInvoices: (input: ListInvoicesInput) => Promise<ListInvoicesResponse>;
15695
15981
  readonly payInvoice: (input: PayInvoiceInput) => Promise<PayInvoiceResponse>;
15696
15982
  readonly getPaymentMethod: (input: GetPaymentMethodInput) => Promise<GetPaymentMethodResponse>;
@@ -19070,6 +19356,12 @@ interface ListParticipantsResponse {
19070
19356
  * Picture URL of the [User](#schema_user)
19071
19357
  */
19072
19358
  pictureUrl?: string;
19359
+ /**
19360
+ * Optional attributes
19361
+ */
19362
+ attributes?: {
19363
+ [k: string]: string;
19364
+ };
19073
19365
  }[];
19074
19366
  meta: {
19075
19367
  /**
@@ -19124,6 +19416,12 @@ interface AddParticipantResponse {
19124
19416
  * Picture URL of the [User](#schema_user)
19125
19417
  */
19126
19418
  pictureUrl?: string;
19419
+ /**
19420
+ * Optional attributes
19421
+ */
19422
+ attributes?: {
19423
+ [k: string]: string;
19424
+ };
19127
19425
  };
19128
19426
  }
19129
19427
 
@@ -19169,6 +19467,12 @@ interface GetParticipantResponse {
19169
19467
  * Picture URL of the [User](#schema_user)
19170
19468
  */
19171
19469
  pictureUrl?: string;
19470
+ /**
19471
+ * Optional attributes
19472
+ */
19473
+ attributes?: {
19474
+ [k: string]: string;
19475
+ };
19172
19476
  };
19173
19477
  }
19174
19478
 
@@ -19855,6 +20159,12 @@ interface InitializeIncomingMessageRequestBody {
19855
20159
  * URI of the user picture
19856
20160
  */
19857
20161
  pictureUrl?: string;
20162
+ /**
20163
+ * Optional attributes
20164
+ */
20165
+ attributes?: {
20166
+ [k: string]: string;
20167
+ };
19858
20168
  /**
19859
20169
  * Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
19860
20170
  */
@@ -19938,6 +20248,12 @@ interface InitializeIncomingMessageResponse {
19938
20248
  * Picture URL of the [User](#schema_user)
19939
20249
  */
19940
20250
  pictureUrl?: string;
20251
+ /**
20252
+ * Optional attributes
20253
+ */
20254
+ attributes?: {
20255
+ [k: string]: string;
20256
+ };
19941
20257
  };
19942
20258
  /**
19943
20259
  * The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
@@ -20150,6 +20466,12 @@ interface CreateUserRequestBody {
20150
20466
  * URI of the user picture
20151
20467
  */
20152
20468
  pictureUrl?: string;
20469
+ /**
20470
+ * Optional attributes
20471
+ */
20472
+ attributes?: {
20473
+ [k: string]: string;
20474
+ };
20153
20475
  }
20154
20476
  type CreateUserInput = CreateUserRequestBody & CreateUserRequestHeaders & CreateUserRequestQuery & CreateUserRequestParams;
20155
20477
  interface CreateUserResponse {
@@ -20183,6 +20505,12 @@ interface CreateUserResponse {
20183
20505
  * Picture URL of the [User](#schema_user)
20184
20506
  */
20185
20507
  pictureUrl?: string;
20508
+ /**
20509
+ * Optional attributes
20510
+ */
20511
+ attributes?: {
20512
+ [k: string]: string;
20513
+ };
20186
20514
  };
20187
20515
  }
20188
20516
 
@@ -20227,6 +20555,12 @@ interface GetUserResponse {
20227
20555
  * Picture URL of the [User](#schema_user)
20228
20556
  */
20229
20557
  pictureUrl?: string;
20558
+ /**
20559
+ * Optional attributes
20560
+ */
20561
+ attributes?: {
20562
+ [k: string]: string;
20563
+ };
20230
20564
  };
20231
20565
  }
20232
20566
 
@@ -20277,6 +20611,12 @@ interface ListUsersResponse {
20277
20611
  * Picture URL of the [User](#schema_user)
20278
20612
  */
20279
20613
  pictureUrl?: string;
20614
+ /**
20615
+ * Optional attributes
20616
+ */
20617
+ attributes?: {
20618
+ [k: string]: string;
20619
+ };
20280
20620
  }[];
20281
20621
  meta: {
20282
20622
  /**
@@ -20312,6 +20652,12 @@ interface GetOrCreateUserRequestBody {
20312
20652
  * URI of the user picture
20313
20653
  */
20314
20654
  pictureUrl?: string;
20655
+ /**
20656
+ * Optional attributes
20657
+ */
20658
+ attributes?: {
20659
+ [k: string]: string;
20660
+ };
20315
20661
  /**
20316
20662
  * Optional list of tag names to use for strict matching when looking up existing users. If provided, all specified tags must match exactly for a user to be considered a match. For example, with an existing user whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
20317
20663
  */
@@ -20349,6 +20695,12 @@ interface GetOrCreateUserResponse {
20349
20695
  * Picture URL of the [User](#schema_user)
20350
20696
  */
20351
20697
  pictureUrl?: string;
20698
+ /**
20699
+ * Optional attributes
20700
+ */
20701
+ attributes?: {
20702
+ [k: string]: string;
20703
+ };
20352
20704
  };
20353
20705
  }
20354
20706
 
@@ -20374,6 +20726,12 @@ interface UpdateUserRequestBody {
20374
20726
  * URI of the user picture
20375
20727
  */
20376
20728
  pictureUrl?: string | null;
20729
+ /**
20730
+ * Optional attributes. Set attributes to null to remove them
20731
+ */
20732
+ attributes?: {
20733
+ [k: string]: string | null;
20734
+ };
20377
20735
  }
20378
20736
  type UpdateUserInput = UpdateUserRequestBody & UpdateUserRequestHeaders & UpdateUserRequestQuery & UpdateUserRequestParams;
20379
20737
  interface UpdateUserResponse {
@@ -20407,6 +20765,12 @@ interface UpdateUserResponse {
20407
20765
  * Picture URL of the [User](#schema_user)
20408
20766
  */
20409
20767
  pictureUrl?: string;
20768
+ /**
20769
+ * Optional attributes
20770
+ */
20771
+ attributes?: {
20772
+ [k: string]: string;
20773
+ };
20410
20774
  };
20411
20775
  }
20412
20776
 
@@ -26979,7 +27343,7 @@ interface GetAuditRecordsResponse {
26979
27343
  resourceId: string | null;
26980
27344
  resourceName?: string | null;
26981
27345
  value?: string | null;
26982
- action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
27346
+ action: "UNKNOWN" | "ADD_WORKSPACE_MEMBER" | "REMOVE_WORKSPACE_MEMBER" | "UPDATE_WORKSPACE_MEMBER" | "CLOSE_WORKSPACE" | "CREATE_BOT" | "CREATE_WORKSPACE" | "DELETE_BOT" | "DEPLOY_BOT" | "TRANSFER_BOT" | "DOWNLOAD_BOT_ARCHIVE" | "UPDATE_BOT" | "UPDATE_BOT_CHANNEL" | "UPDATE_BOT_CONFIG" | "UPDATE_PAYMENT_METHOD" | "UPDATE_WORKSPACE" | "SET_SPENDING_LIMIT" | "SET_AI_SPENDING_LIMIT" | "UPDATE_WORKSPACE_BILLING_READONLY" | "UPDATE_WORKSPACE_PLAN_READONLY" | "UPDATE_WORKSPACE_ADDONS_READONLY" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED";
26983
27347
  }[];
26984
27348
  meta: {
26985
27349
  /**
@@ -37280,6 +37644,12 @@ interface User {
37280
37644
  * Picture URL of the [User](#schema_user)
37281
37645
  */
37282
37646
  pictureUrl?: string;
37647
+ /**
37648
+ * Optional attributes
37649
+ */
37650
+ attributes?: {
37651
+ [k: string]: string;
37652
+ };
37283
37653
  }
37284
37654
  /**
37285
37655
  * The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.
@@ -38148,6 +38518,9 @@ declare class Client extends Client$1 implements IClient {
38148
38518
  };
38149
38519
  name?: string;
38150
38520
  pictureUrl?: string;
38521
+ attributes?: {
38522
+ [k: string]: string;
38523
+ };
38151
38524
  }>;
38152
38525
  events: (props: {
38153
38526
  status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
@@ -38211,6 +38584,9 @@ declare class Client extends Client$1 implements IClient {
38211
38584
  };
38212
38585
  name?: string;
38213
38586
  pictureUrl?: string;
38587
+ attributes?: {
38588
+ [k: string]: string;
38589
+ };
38214
38590
  }>;
38215
38591
  tasks: (props: {
38216
38592
  status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;