@botpress/client 1.47.0 → 1.49.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
@@ -2438,6 +2438,40 @@ interface CallActionResponse$1 {
2438
2438
  };
2439
2439
  }
2440
2440
 
2441
+ interface UnlinkIntegrationIdentifierRequestHeaders$1 {
2442
+ }
2443
+ interface UnlinkIntegrationIdentifierRequestQuery$1 {
2444
+ value: string;
2445
+ }
2446
+ interface UnlinkIntegrationIdentifierRequestParams$1 {
2447
+ }
2448
+ interface UnlinkIntegrationIdentifierRequestBody$1 {
2449
+ }
2450
+ type UnlinkIntegrationIdentifierInput$1 = UnlinkIntegrationIdentifierRequestBody$1 & UnlinkIntegrationIdentifierRequestHeaders$1 & UnlinkIntegrationIdentifierRequestQuery$1 & UnlinkIntegrationIdentifierRequestParams$1;
2451
+ interface UnlinkIntegrationIdentifierResponse$1 {
2452
+ /**
2453
+ * Number of integration instances that had the identifier removed
2454
+ */
2455
+ count: number;
2456
+ }
2457
+
2458
+ interface GetIntegrationIdentifierAvailabilityRequestHeaders$1 {
2459
+ }
2460
+ interface GetIntegrationIdentifierAvailabilityRequestQuery$1 {
2461
+ value: string;
2462
+ }
2463
+ interface GetIntegrationIdentifierAvailabilityRequestParams$1 {
2464
+ }
2465
+ interface GetIntegrationIdentifierAvailabilityRequestBody$1 {
2466
+ }
2467
+ type GetIntegrationIdentifierAvailabilityInput$1 = GetIntegrationIdentifierAvailabilityRequestBody$1 & GetIntegrationIdentifierAvailabilityRequestHeaders$1 & GetIntegrationIdentifierAvailabilityRequestQuery$1 & GetIntegrationIdentifierAvailabilityRequestParams$1;
2468
+ interface GetIntegrationIdentifierAvailabilityResponse$1 {
2469
+ /**
2470
+ * `available` means no integration instance uses this identifier. `shareable` means it is already in use, but it can be shared. `unavailable` means it is already in use and cannot be shared.
2471
+ */
2472
+ status: "available" | "shareable" | "unavailable";
2473
+ }
2474
+
2441
2475
  interface ConfigureIntegrationRequestHeaders$1 {
2442
2476
  }
2443
2477
  interface ConfigureIntegrationRequestQuery$1 {
@@ -3133,6 +3167,8 @@ declare class Client$b {
3133
3167
  readonly getOrSetState: (input: GetOrSetStateInput$1) => Promise<GetOrSetStateResponse$1>;
3134
3168
  readonly patchState: (input: PatchStateInput$1) => Promise<PatchStateResponse$1>;
3135
3169
  readonly callAction: (input: CallActionInput$1) => Promise<CallActionResponse$1>;
3170
+ readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput$1) => Promise<UnlinkIntegrationIdentifierResponse$1>;
3171
+ readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput$1) => Promise<GetIntegrationIdentifierAvailabilityResponse$1>;
3136
3172
  readonly configureIntegration: (input: ConfigureIntegrationInput$1) => Promise<ConfigureIntegrationResponse$1>;
3137
3173
  readonly createWorkflow: (input: CreateWorkflowInput$1) => Promise<CreateWorkflowResponse$1>;
3138
3174
  readonly getWorkflow: (input: GetWorkflowInput$1) => Promise<GetWorkflowResponse$1>;
@@ -5896,6 +5932,10 @@ interface CreateBotRequestBody$1 {
5896
5932
  */
5897
5933
  dev?: boolean;
5898
5934
  type?: "studio" | "adk";
5935
+ /**
5936
+ * JavaScript module format of the bot code. Defaults to CommonJS.
5937
+ */
5938
+ moduleFormat?: "cjs" | "esm";
5899
5939
  }
5900
5940
  type CreateBotInput$1 = CreateBotRequestBody$1 & CreateBotRequestHeaders$1 & CreateBotRequestQuery$1 & CreateBotRequestParams$1;
5901
5941
  interface CreateBotResponse$1 {
@@ -6663,6 +6703,10 @@ interface UpdateBotRequestBody$1 {
6663
6703
  };
6664
6704
  layers?: string[];
6665
6705
  type?: "studio" | "adk";
6706
+ /**
6707
+ * JavaScript module format of the bot code. Defaults to CommonJS.
6708
+ */
6709
+ moduleFormat?: "cjs" | "esm";
6666
6710
  }
6667
6711
  type UpdateBotInput$1 = UpdateBotRequestBody$1 & UpdateBotRequestHeaders$1 & UpdateBotRequestQuery$1 & UpdateBotRequestParams$1;
6668
6712
  interface UpdateBotResponse$1 {
@@ -15571,9 +15615,9 @@ interface GetBillingAddressRequestBody {
15571
15615
  type GetBillingAddressInput = GetBillingAddressRequestBody & GetBillingAddressRequestHeaders & GetBillingAddressRequestQuery & GetBillingAddressRequestParams;
15572
15616
  interface GetBillingAddressResponse {
15573
15617
  address: {
15574
- lineOne: string;
15618
+ lineOne?: string;
15575
15619
  lineTwo?: string;
15576
- city: string;
15620
+ city?: string;
15577
15621
  state?: string;
15578
15622
  postalCode?: string;
15579
15623
  country: string;
@@ -15587,9 +15631,9 @@ interface SetBillingAddressRequestQuery {
15587
15631
  interface SetBillingAddressRequestParams {
15588
15632
  }
15589
15633
  interface SetBillingAddressRequestBody {
15590
- lineOne: string;
15634
+ lineOne?: string;
15591
15635
  lineTwo?: string;
15592
- city: string;
15636
+ city?: string;
15593
15637
  state?: string;
15594
15638
  postalCode?: string;
15595
15639
  country: string;
@@ -15609,9 +15653,9 @@ interface GetCustomerRequestBody {
15609
15653
  type GetCustomerInput = GetCustomerRequestBody & GetCustomerRequestHeaders & GetCustomerRequestQuery & GetCustomerRequestParams;
15610
15654
  interface GetCustomerResponse {
15611
15655
  address: {
15612
- lineOne: string;
15656
+ lineOne?: string;
15613
15657
  lineTwo?: string;
15614
- city: string;
15658
+ city?: string;
15615
15659
  state?: string;
15616
15660
  postalCode?: string;
15617
15661
  country: string;
@@ -15631,9 +15675,9 @@ interface SetCustomerRequestParams {
15631
15675
  }
15632
15676
  interface SetCustomerRequestBody {
15633
15677
  address?: {
15634
- lineOne: string;
15678
+ lineOne?: string;
15635
15679
  lineTwo?: string;
15636
- city: string;
15680
+ city?: string;
15637
15681
  state?: string;
15638
15682
  postalCode?: string;
15639
15683
  country: string;
@@ -15647,9 +15691,9 @@ interface SetCustomerRequestBody {
15647
15691
  type SetCustomerInput = SetCustomerRequestBody & SetCustomerRequestHeaders & SetCustomerRequestQuery & SetCustomerRequestParams;
15648
15692
  interface SetCustomerResponse {
15649
15693
  address: {
15650
- lineOne: string;
15694
+ lineOne?: string;
15651
15695
  lineTwo?: string;
15652
- city: string;
15696
+ city?: string;
15653
15697
  state?: string;
15654
15698
  postalCode?: string;
15655
15699
  country: string;
@@ -16498,6 +16542,24 @@ interface GetWorkspaceUsagesResponse {
16498
16542
  };
16499
16543
  }
16500
16544
 
16545
+ interface ListFeatureGatesRequestHeaders {
16546
+ }
16547
+ interface ListFeatureGatesRequestQuery {
16548
+ }
16549
+ interface ListFeatureGatesRequestParams {
16550
+ }
16551
+ interface ListFeatureGatesRequestBody {
16552
+ }
16553
+ type ListFeatureGatesInput = ListFeatureGatesRequestBody & ListFeatureGatesRequestHeaders & ListFeatureGatesRequestQuery & ListFeatureGatesRequestParams;
16554
+ interface ListFeatureGatesResponse {
16555
+ featureGates: {
16556
+ [k: string]: {
16557
+ enabled: boolean;
16558
+ overridden: boolean;
16559
+ };
16560
+ };
16561
+ }
16562
+
16501
16563
  type ClientProps$7 = {
16502
16564
  toAxiosRequest: typeof toAxiosRequest$3;
16503
16565
  toApiError: typeof toApiError$3;
@@ -16534,6 +16596,7 @@ declare class Client$7 {
16534
16596
  readonly getQuotas: (input: GetQuotasInput) => Promise<GetQuotasResponse>;
16535
16597
  readonly getWorkspaceUsage: (input: GetWorkspaceUsageInput) => Promise<GetWorkspaceUsageResponse>;
16536
16598
  readonly getWorkspaceUsages: (input: GetWorkspaceUsagesInput) => Promise<GetWorkspaceUsagesResponse>;
16599
+ readonly listFeatureGates: (input: ListFeatureGatesInput) => Promise<ListFeatureGatesResponse>;
16537
16600
  }
16538
16601
  declare function toApiError$3(err: unknown): Error;
16539
16602
 
@@ -21952,6 +22015,40 @@ interface CallActionResponse {
21952
22015
  };
21953
22016
  }
21954
22017
 
22018
+ interface UnlinkIntegrationIdentifierRequestHeaders {
22019
+ }
22020
+ interface UnlinkIntegrationIdentifierRequestQuery {
22021
+ value: string;
22022
+ }
22023
+ interface UnlinkIntegrationIdentifierRequestParams {
22024
+ }
22025
+ interface UnlinkIntegrationIdentifierRequestBody {
22026
+ }
22027
+ type UnlinkIntegrationIdentifierInput = UnlinkIntegrationIdentifierRequestBody & UnlinkIntegrationIdentifierRequestHeaders & UnlinkIntegrationIdentifierRequestQuery & UnlinkIntegrationIdentifierRequestParams;
22028
+ interface UnlinkIntegrationIdentifierResponse {
22029
+ /**
22030
+ * Number of integration instances that had the identifier removed
22031
+ */
22032
+ count: number;
22033
+ }
22034
+
22035
+ interface GetIntegrationIdentifierAvailabilityRequestHeaders {
22036
+ }
22037
+ interface GetIntegrationIdentifierAvailabilityRequestQuery {
22038
+ value: string;
22039
+ }
22040
+ interface GetIntegrationIdentifierAvailabilityRequestParams {
22041
+ }
22042
+ interface GetIntegrationIdentifierAvailabilityRequestBody {
22043
+ }
22044
+ type GetIntegrationIdentifierAvailabilityInput = GetIntegrationIdentifierAvailabilityRequestBody & GetIntegrationIdentifierAvailabilityRequestHeaders & GetIntegrationIdentifierAvailabilityRequestQuery & GetIntegrationIdentifierAvailabilityRequestParams;
22045
+ interface GetIntegrationIdentifierAvailabilityResponse {
22046
+ /**
22047
+ * `available` means no integration instance uses this identifier. `shareable` means it is already in use, but it can be shared. `unavailable` means it is already in use and cannot be shared.
22048
+ */
22049
+ status: "available" | "shareable" | "unavailable";
22050
+ }
22051
+
21955
22052
  interface ConfigureIntegrationRequestHeaders {
21956
22053
  }
21957
22054
  interface ConfigureIntegrationRequestQuery {
@@ -25197,6 +25294,10 @@ interface CreateBotRequestBody {
25197
25294
  */
25198
25295
  dev?: boolean;
25199
25296
  type?: "studio" | "adk";
25297
+ /**
25298
+ * JavaScript module format of the bot code. Defaults to CommonJS.
25299
+ */
25300
+ moduleFormat?: "cjs" | "esm";
25200
25301
  }
25201
25302
  type CreateBotInput = CreateBotRequestBody & CreateBotRequestHeaders & CreateBotRequestQuery & CreateBotRequestParams;
25202
25303
  interface CreateBotResponse {
@@ -25964,6 +26065,10 @@ interface UpdateBotRequestBody {
25964
26065
  };
25965
26066
  layers?: string[];
25966
26067
  type?: "studio" | "adk";
26068
+ /**
26069
+ * JavaScript module format of the bot code. Defaults to CommonJS.
26070
+ */
26071
+ moduleFormat?: "cjs" | "esm";
25967
26072
  }
25968
26073
  type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
25969
26074
  interface UpdateBotResponse {
@@ -39259,6 +39364,8 @@ declare class Client$1 {
39259
39364
  readonly getOrSetState: (input: GetOrSetStateInput) => Promise<GetOrSetStateResponse>;
39260
39365
  readonly patchState: (input: PatchStateInput) => Promise<PatchStateResponse>;
39261
39366
  readonly callAction: (input: CallActionInput) => Promise<CallActionResponse>;
39367
+ readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput) => Promise<UnlinkIntegrationIdentifierResponse>;
39368
+ readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput) => Promise<GetIntegrationIdentifierAvailabilityResponse>;
39262
39369
  readonly configureIntegration: (input: ConfigureIntegrationInput) => Promise<ConfigureIntegrationResponse>;
39263
39370
  readonly createWorkflow: (input: CreateWorkflowInput) => Promise<CreateWorkflowResponse>;
39264
39371
  readonly getWorkflow: (input: GetWorkflowInput) => Promise<GetWorkflowResponse>;