@botpress/client 1.49.0 → 2.1.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
@@ -1,12 +1,83 @@
1
- import { AxiosRequestConfig, AxiosInstance, AxiosError } from 'axios';
2
- import * as axios from 'axios';
3
- export { axios };
4
- import { IAxiosRetryConfig } from 'axios-retry';
5
- import * as axiosRetry from 'axios-retry';
6
- export { axiosRetry };
1
+ type HttpHeaders = Record<string, string | string[] | undefined>;
2
+ type HttpResponseHeaders = Record<string, string>;
3
+ type HttpRequestConfig<D = any> = {
4
+ url?: string;
5
+ method?: string;
6
+ baseURL?: string;
7
+ headers?: HttpHeaders;
8
+ data?: D;
9
+ timeout?: number;
10
+ signal?: AbortSignal;
11
+ responseType?: 'json' | 'text' | 'arraybuffer' | 'stream';
12
+ withCredentials?: boolean;
13
+ };
14
+ type HttpResponse$6<T = any> = {
15
+ data: T;
16
+ status: number;
17
+ statusText: string;
18
+ headers: HttpResponseHeaders;
19
+ config: HttpRequestConfig;
20
+ };
21
+ declare class HttpError<T = any> extends Error {
22
+ readonly config: HttpRequestConfig;
23
+ readonly code?: string | undefined;
24
+ readonly response?: HttpResponse$6<T> | undefined;
25
+ readonly isHttpError = true;
26
+ constructor(message: string, config: HttpRequestConfig, code?: string | undefined, response?: HttpResponse$6<T> | undefined, cause?: unknown);
27
+ }
28
+ declare const isHttpError: (err: unknown) => err is HttpError;
29
+ declare const isNetworkError: (error: unknown) => boolean;
30
+ declare const isNetworkOrIdempotentRequestError: (error: unknown) => boolean;
31
+ type RetryConfig = {
32
+ retries?: number;
33
+ retryCondition?: (error: HttpError) => boolean | Promise<boolean>;
34
+ retryDelay?: (retryCount: number, error: HttpError) => number;
35
+ };
36
+ type HttpClientDefaults = {
37
+ baseURL?: string;
38
+ headers: HttpHeaders;
39
+ timeout?: number;
40
+ withCredentials?: boolean;
41
+ signal?: AbortSignal;
42
+ debug?: boolean;
43
+ };
44
+ type HttpClientConfig = {
45
+ apiUrl: string;
46
+ headers: HttpHeaders;
47
+ withCredentials: boolean;
48
+ timeout: number;
49
+ debug: boolean;
50
+ };
51
+ declare const createHttpClient: (config: HttpClientConfig) => HttpClient$6;
52
+ declare class HttpClient$6 {
53
+ defaults: HttpClientDefaults;
54
+ retry?: RetryConfig;
55
+ constructor(defaults?: Partial<HttpClientDefaults>);
56
+ request<T = any, D = any>(config: HttpRequestConfig<D>): Promise<HttpResponse$6<T>>;
57
+ get<T = any>(url: string, config?: HttpRequestConfig): Promise<HttpResponse$6<T>>;
58
+ delete<T = any>(url: string, config?: HttpRequestConfig): Promise<HttpResponse$6<T>>;
59
+ post<T = any, D = any>(url: string, data?: D, config?: HttpRequestConfig<D>): Promise<HttpResponse$6<T>>;
60
+ put<T = any, D = any>(url: string, data?: D, config?: HttpRequestConfig<D>): Promise<HttpResponse$6<T>>;
61
+ private _requestOnce;
62
+ }
63
+
64
+ type http_HttpClientDefaults = HttpClientDefaults;
65
+ type http_HttpError<T = any> = HttpError<T>;
66
+ declare const http_HttpError: typeof HttpError;
67
+ type http_HttpHeaders = HttpHeaders;
68
+ type http_HttpRequestConfig<D = any> = HttpRequestConfig<D>;
69
+ type http_HttpResponseHeaders = HttpResponseHeaders;
70
+ type http_RetryConfig = RetryConfig;
71
+ declare const http_createHttpClient: typeof createHttpClient;
72
+ declare const http_isHttpError: typeof isHttpError;
73
+ declare const http_isNetworkError: typeof isNetworkError;
74
+ declare const http_isNetworkOrIdempotentRequestError: typeof isNetworkOrIdempotentRequestError;
75
+ declare namespace http {
76
+ export { HttpClient$6 as HttpClient, http_HttpError as HttpError, http_createHttpClient as createHttpClient, http_isHttpError as isHttpError, http_isNetworkError as isNetworkError, http_isNetworkOrIdempotentRequestError as isNetworkOrIdempotentRequestError };
77
+ export type { http_HttpClientDefaults as HttpClientDefaults, http_HttpHeaders as HttpHeaders, http_HttpRequestConfig as HttpRequestConfig, HttpResponse$6 as HttpResponse, http_HttpResponseHeaders as HttpResponseHeaders, http_RetryConfig as RetryConfig };
78
+ }
7
79
 
8
80
  type Headers = Record<string, string | string[]>;
9
- type RetryConfig = IAxiosRetryConfig;
10
81
  type ClientConfig = {
11
82
  apiUrl: string;
12
83
  headers: Headers;
@@ -72,7 +143,13 @@ type ParsedRequest$5 = {
72
143
  headers: AnyHeaderParams$5;
73
144
  body: AnyBodyParams$5;
74
145
  };
75
- declare const toAxiosRequest$5: (req: ParsedRequest$5) => AxiosRequestConfig;
146
+ type RequestConfig$5 = {
147
+ method: string;
148
+ url: string;
149
+ headers: Record<string, string>;
150
+ data?: any;
151
+ };
152
+ declare const toRequest$5: (req: ParsedRequest$5) => RequestConfig$5;
76
153
 
77
154
  interface CreateConversationRequestHeaders$1 {
78
155
  }
@@ -2472,6 +2549,29 @@ interface GetIntegrationIdentifierAvailabilityResponse$1 {
2472
2549
  status: "available" | "shareable" | "unavailable";
2473
2550
  }
2474
2551
 
2552
+ interface GetIntegrationInstanceIdentifiersRequestHeaders$1 {
2553
+ }
2554
+ interface GetIntegrationInstanceIdentifiersRequestQuery$1 {
2555
+ }
2556
+ interface GetIntegrationInstanceIdentifiersRequestParams$1 {
2557
+ }
2558
+ interface GetIntegrationInstanceIdentifiersRequestBody$1 {
2559
+ }
2560
+ type GetIntegrationInstanceIdentifiersInput$1 = GetIntegrationInstanceIdentifiersRequestBody$1 & GetIntegrationInstanceIdentifiersRequestHeaders$1 & GetIntegrationInstanceIdentifiersRequestQuery$1 & GetIntegrationInstanceIdentifiersRequestParams$1;
2561
+ interface GetIntegrationInstanceIdentifiersResponse$1 {
2562
+ /**
2563
+ * Identifiers held by the integration instance, keyed by identifier value
2564
+ */
2565
+ identifiers: {
2566
+ [k: string]: {
2567
+ /**
2568
+ * Creation date of the identifier in ISO 8601 format
2569
+ */
2570
+ createdAt: string;
2571
+ };
2572
+ };
2573
+ }
2574
+
2475
2575
  interface ConfigureIntegrationRequestHeaders$1 {
2476
2576
  }
2477
2577
  interface ConfigureIntegrationRequestQuery$1 {
@@ -2480,9 +2580,15 @@ interface ConfigureIntegrationRequestParams$1 {
2480
2580
  }
2481
2581
  interface ConfigureIntegrationRequestBody$1 {
2482
2582
  /**
2483
- * Unique identifier of the integration that was installed on the bot
2583
+ * Unique identifier of the integration that was installed on the bot.
2484
2584
  */
2485
2585
  identifier?: string | null;
2586
+ /**
2587
+ * Identifiers of the integration. Keyed by identifier value: an empty object adds the identifier, `null` removes it, and values not provided are left unchanged. Mutually exclusive with `identifier`.
2588
+ */
2589
+ identifiers?: {
2590
+ [k: string]: {} | null;
2591
+ };
2486
2592
  /**
2487
2593
  * Recurring schedule on which `register()` will be called on the integration
2488
2594
  */
@@ -2494,6 +2600,17 @@ interface ConfigureIntegrationRequestBody$1 {
2494
2600
  }
2495
2601
  type ConfigureIntegrationInput$1 = ConfigureIntegrationRequestBody$1 & ConfigureIntegrationRequestHeaders$1 & ConfigureIntegrationRequestQuery$1 & ConfigureIntegrationRequestParams$1;
2496
2602
  interface ConfigureIntegrationResponse$1 {
2603
+ /**
2604
+ * Identifiers held by the integration instance, keyed by identifier value
2605
+ */
2606
+ identifiers?: {
2607
+ [k: string]: {
2608
+ /**
2609
+ * Creation date of the identifier in ISO 8601 format
2610
+ */
2611
+ createdAt: string;
2612
+ };
2613
+ };
2497
2614
  }
2498
2615
 
2499
2616
  interface CreateWorkflowRequestHeaders$1 {
@@ -3125,14 +3242,26 @@ type CaptureObservationInput$1 = CaptureObservationRequestBody$1 & CaptureObserv
3125
3242
  interface CaptureObservationResponse$1 {
3126
3243
  }
3127
3244
 
3245
+ type HttpResponse$5<T> = {
3246
+ data: T;
3247
+ };
3248
+ /**
3249
+ * Minimal http transport the generated client depends on. Implementations
3250
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
3251
+ * error body under `response.data` on the thrown error so it can be mapped
3252
+ * to an api error — and resolve with the parsed response body under `data`.
3253
+ */
3254
+ type HttpClient$5 = {
3255
+ request: <T>(config: RequestConfig$5) => Promise<HttpResponse$5<T>>;
3256
+ };
3128
3257
  type ClientProps$b = {
3129
- toAxiosRequest: typeof toAxiosRequest$5;
3258
+ toRequest: typeof toRequest$5;
3130
3259
  toApiError: typeof toApiError$5;
3131
3260
  };
3132
3261
  declare class Client$b {
3133
- private axiosInstance;
3262
+ private httpClient;
3134
3263
  private props;
3135
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$b>);
3264
+ constructor(httpClient: HttpClient$5, props?: Partial<ClientProps$b>);
3136
3265
  readonly createConversation: (input: CreateConversationInput$1) => Promise<CreateConversationResponse$1>;
3137
3266
  readonly getConversation: (input: GetConversationInput$1) => Promise<GetConversationResponse$1>;
3138
3267
  readonly listConversations: (input: ListConversationsInput$1) => Promise<ListConversationsResponse$1>;
@@ -3169,6 +3298,7 @@ declare class Client$b {
3169
3298
  readonly callAction: (input: CallActionInput$1) => Promise<CallActionResponse$1>;
3170
3299
  readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput$1) => Promise<UnlinkIntegrationIdentifierResponse$1>;
3171
3300
  readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput$1) => Promise<GetIntegrationIdentifierAvailabilityResponse$1>;
3301
+ readonly getIntegrationInstanceIdentifiers: (input: GetIntegrationInstanceIdentifiersInput$1) => Promise<GetIntegrationInstanceIdentifiersResponse$1>;
3172
3302
  readonly configureIntegration: (input: ConfigureIntegrationInput$1) => Promise<ConfigureIntegrationResponse$1>;
3173
3303
  readonly createWorkflow: (input: CreateWorkflowInput$1) => Promise<CreateWorkflowResponse$1>;
3174
3304
  readonly getWorkflow: (input: GetWorkflowInput$1) => Promise<GetWorkflowResponse$1>;
@@ -3338,7 +3468,13 @@ type ParsedRequest$4 = {
3338
3468
  headers: AnyHeaderParams$4;
3339
3469
  body: AnyBodyParams$4;
3340
3470
  };
3341
- declare const toAxiosRequest$4: (req: ParsedRequest$4) => AxiosRequestConfig;
3471
+ type RequestConfig$4 = {
3472
+ method: string;
3473
+ url: string;
3474
+ headers: Record<string, string>;
3475
+ data?: any;
3476
+ };
3477
+ declare const toRequest$4: (req: ParsedRequest$4) => RequestConfig$4;
3342
3478
 
3343
3479
  interface RunVrlRequestHeaders$1 {
3344
3480
  }
@@ -8841,7 +8977,7 @@ interface GetAuditRecordsResponse$1 {
8841
8977
  resourceId: string | null;
8842
8978
  resourceName?: string | null;
8843
8979
  value?: string | null;
8844
- 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";
8980
+ 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" | "SET_WORKSPACE_QUOTA_BLOCK_INTERNAL" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED" | "SET_WORKSPACE_FEATURE_GATE" | "DELETE_WORKSPACE_FEATURE_GATE";
8845
8981
  }[];
8846
8982
  meta: {
8847
8983
  /**
@@ -15222,14 +15358,26 @@ interface IntrospectResponse$1 {
15222
15358
  userId: string;
15223
15359
  }
15224
15360
 
15361
+ type HttpResponse$4<T> = {
15362
+ data: T;
15363
+ };
15364
+ /**
15365
+ * Minimal http transport the generated client depends on. Implementations
15366
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
15367
+ * error body under `response.data` on the thrown error so it can be mapped
15368
+ * to an api error — and resolve with the parsed response body under `data`.
15369
+ */
15370
+ type HttpClient$4 = {
15371
+ request: <T>(config: RequestConfig$4) => Promise<HttpResponse$4<T>>;
15372
+ };
15225
15373
  type ClientProps$9 = {
15226
- toAxiosRequest: typeof toAxiosRequest$4;
15374
+ toRequest: typeof toRequest$4;
15227
15375
  toApiError: typeof toApiError$4;
15228
15376
  };
15229
15377
  declare class Client$9 {
15230
- private axiosInstance;
15378
+ private httpClient;
15231
15379
  private props;
15232
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$9>);
15380
+ constructor(httpClient: HttpClient$4, props?: Partial<ClientProps$9>);
15233
15381
  readonly runVrl: (input: RunVrlInput$1) => Promise<RunVrlResponse$1>;
15234
15382
  readonly getAccount: (input: GetAccountInput$1) => Promise<GetAccountResponse$1>;
15235
15383
  readonly updateAccount: (input: UpdateAccountInput$1) => Promise<UpdateAccountResponse$1>;
@@ -15588,7 +15736,13 @@ type ParsedRequest$3 = {
15588
15736
  headers: AnyHeaderParams$3;
15589
15737
  body: AnyBodyParams$3;
15590
15738
  };
15591
- declare const toAxiosRequest$3: (req: ParsedRequest$3) => AxiosRequestConfig;
15739
+ type RequestConfig$3 = {
15740
+ method: string;
15741
+ url: string;
15742
+ headers: Record<string, string>;
15743
+ data?: any;
15744
+ };
15745
+ declare const toRequest$3: (req: ParsedRequest$3) => RequestConfig$3;
15592
15746
 
15593
15747
  interface GetBillingReadonlyRequestHeaders {
15594
15748
  }
@@ -16560,14 +16714,26 @@ interface ListFeatureGatesResponse {
16560
16714
  };
16561
16715
  }
16562
16716
 
16717
+ type HttpResponse$3<T> = {
16718
+ data: T;
16719
+ };
16720
+ /**
16721
+ * Minimal http transport the generated client depends on. Implementations
16722
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
16723
+ * error body under `response.data` on the thrown error so it can be mapped
16724
+ * to an api error — and resolve with the parsed response body under `data`.
16725
+ */
16726
+ type HttpClient$3 = {
16727
+ request: <T>(config: RequestConfig$3) => Promise<HttpResponse$3<T>>;
16728
+ };
16563
16729
  type ClientProps$7 = {
16564
- toAxiosRequest: typeof toAxiosRequest$3;
16730
+ toRequest: typeof toRequest$3;
16565
16731
  toApiError: typeof toApiError$3;
16566
16732
  };
16567
16733
  declare class Client$7 {
16568
- private axiosInstance;
16734
+ private httpClient;
16569
16735
  private props;
16570
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$7>);
16736
+ constructor(httpClient: HttpClient$3, props?: Partial<ClientProps$7>);
16571
16737
  readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
16572
16738
  readonly getBillingAddress: (input: GetBillingAddressInput) => Promise<GetBillingAddressResponse>;
16573
16739
  readonly setBillingAddress: (input: SetBillingAddressInput) => Promise<SetBillingAddressResponse>;
@@ -16647,7 +16813,13 @@ type ParsedRequest$2 = {
16647
16813
  headers: AnyHeaderParams$2;
16648
16814
  body: AnyBodyParams$2;
16649
16815
  };
16650
- declare const toAxiosRequest$2: (req: ParsedRequest$2) => AxiosRequestConfig;
16816
+ type RequestConfig$2 = {
16817
+ method: string;
16818
+ url: string;
16819
+ headers: Record<string, string>;
16820
+ data?: any;
16821
+ };
16822
+ declare const toRequest$2: (req: ParsedRequest$2) => RequestConfig$2;
16651
16823
 
16652
16824
  interface UpsertFileRequestHeaders$1 {
16653
16825
  }
@@ -17760,14 +17932,26 @@ interface ListKnowledgeBasesResponse$1 {
17760
17932
  };
17761
17933
  }
17762
17934
 
17935
+ type HttpResponse$2<T> = {
17936
+ data: T;
17937
+ };
17938
+ /**
17939
+ * Minimal http transport the generated client depends on. Implementations
17940
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
17941
+ * error body under `response.data` on the thrown error so it can be mapped
17942
+ * to an api error — and resolve with the parsed response body under `data`.
17943
+ */
17944
+ type HttpClient$2 = {
17945
+ request: <T>(config: RequestConfig$2) => Promise<HttpResponse$2<T>>;
17946
+ };
17763
17947
  type ClientProps$5 = {
17764
- toAxiosRequest: typeof toAxiosRequest$2;
17948
+ toRequest: typeof toRequest$2;
17765
17949
  toApiError: typeof toApiError$2;
17766
17950
  };
17767
17951
  declare class Client$5 {
17768
- private axiosInstance;
17952
+ private httpClient;
17769
17953
  private props;
17770
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$5>);
17954
+ constructor(httpClient: HttpClient$2, props?: Partial<ClientProps$5>);
17771
17955
  readonly upsertFile: (input: UpsertFileInput$1) => Promise<UpsertFileResponse$1>;
17772
17956
  readonly deleteFile: (input: DeleteFileInput$1) => Promise<DeleteFileResponse$1>;
17773
17957
  readonly listFiles: (input: ListFilesInput$1) => Promise<ListFilesResponse$1>;
@@ -17903,7 +18087,13 @@ type ParsedRequest$1 = {
17903
18087
  headers: AnyHeaderParams$1;
17904
18088
  body: AnyBodyParams$1;
17905
18089
  };
17906
- declare const toAxiosRequest$1: (req: ParsedRequest$1) => AxiosRequestConfig;
18090
+ type RequestConfig$1 = {
18091
+ method: string;
18092
+ url: string;
18093
+ headers: Record<string, string>;
18094
+ data?: any;
18095
+ };
18096
+ declare const toRequest$1: (req: ParsedRequest$1) => RequestConfig$1;
17907
18097
 
17908
18098
  interface ListTablesRequestHeaders$1 {
17909
18099
  }
@@ -19587,14 +19777,26 @@ interface UpsertTableRowsResponse$1 {
19587
19777
  errors?: string[];
19588
19778
  }
19589
19779
 
19780
+ type HttpResponse$1<T> = {
19781
+ data: T;
19782
+ };
19783
+ /**
19784
+ * Minimal http transport the generated client depends on. Implementations
19785
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
19786
+ * error body under `response.data` on the thrown error so it can be mapped
19787
+ * to an api error — and resolve with the parsed response body under `data`.
19788
+ */
19789
+ type HttpClient$1 = {
19790
+ request: <T>(config: RequestConfig$1) => Promise<HttpResponse$1<T>>;
19791
+ };
19590
19792
  type ClientProps$3 = {
19591
- toAxiosRequest: typeof toAxiosRequest$1;
19793
+ toRequest: typeof toRequest$1;
19592
19794
  toApiError: typeof toApiError$1;
19593
19795
  };
19594
19796
  declare class Client$3 {
19595
- private axiosInstance;
19797
+ private httpClient;
19596
19798
  private props;
19597
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$3>);
19799
+ constructor(httpClient: HttpClient$1, props?: Partial<ClientProps$3>);
19598
19800
  readonly listTables: (input: ListTablesInput$1) => Promise<ListTablesResponse$1>;
19599
19801
  readonly getTable: (input: GetTableInput$1) => Promise<GetTableResponse$1>;
19600
19802
  readonly getOrCreateTable: (input: GetOrCreateTableInput$1) => Promise<GetOrCreateTableResponse$1>;
@@ -19649,7 +19851,13 @@ type ParsedRequest = {
19649
19851
  headers: AnyHeaderParams;
19650
19852
  body: AnyBodyParams;
19651
19853
  };
19652
- declare const toAxiosRequest: (req: ParsedRequest) => AxiosRequestConfig;
19854
+ type RequestConfig = {
19855
+ method: string;
19856
+ url: string;
19857
+ headers: Record<string, string>;
19858
+ data?: any;
19859
+ };
19860
+ declare const toRequest: (req: ParsedRequest) => RequestConfig;
19653
19861
 
19654
19862
  interface CreateConversationRequestHeaders {
19655
19863
  }
@@ -22049,6 +22257,29 @@ interface GetIntegrationIdentifierAvailabilityResponse {
22049
22257
  status: "available" | "shareable" | "unavailable";
22050
22258
  }
22051
22259
 
22260
+ interface GetIntegrationInstanceIdentifiersRequestHeaders {
22261
+ }
22262
+ interface GetIntegrationInstanceIdentifiersRequestQuery {
22263
+ }
22264
+ interface GetIntegrationInstanceIdentifiersRequestParams {
22265
+ }
22266
+ interface GetIntegrationInstanceIdentifiersRequestBody {
22267
+ }
22268
+ type GetIntegrationInstanceIdentifiersInput = GetIntegrationInstanceIdentifiersRequestBody & GetIntegrationInstanceIdentifiersRequestHeaders & GetIntegrationInstanceIdentifiersRequestQuery & GetIntegrationInstanceIdentifiersRequestParams;
22269
+ interface GetIntegrationInstanceIdentifiersResponse {
22270
+ /**
22271
+ * Identifiers held by the integration instance, keyed by identifier value
22272
+ */
22273
+ identifiers: {
22274
+ [k: string]: {
22275
+ /**
22276
+ * Creation date of the identifier in ISO 8601 format
22277
+ */
22278
+ createdAt: string;
22279
+ };
22280
+ };
22281
+ }
22282
+
22052
22283
  interface ConfigureIntegrationRequestHeaders {
22053
22284
  }
22054
22285
  interface ConfigureIntegrationRequestQuery {
@@ -22057,9 +22288,15 @@ interface ConfigureIntegrationRequestParams {
22057
22288
  }
22058
22289
  interface ConfigureIntegrationRequestBody {
22059
22290
  /**
22060
- * Unique identifier of the integration that was installed on the bot
22291
+ * Unique identifier of the integration that was installed on the bot.
22061
22292
  */
22062
22293
  identifier?: string | null;
22294
+ /**
22295
+ * Identifiers of the integration. Keyed by identifier value: an empty object adds the identifier, `null` removes it, and values not provided are left unchanged. Mutually exclusive with `identifier`.
22296
+ */
22297
+ identifiers?: {
22298
+ [k: string]: {} | null;
22299
+ };
22063
22300
  /**
22064
22301
  * Recurring schedule on which `register()` will be called on the integration
22065
22302
  */
@@ -22071,6 +22308,17 @@ interface ConfigureIntegrationRequestBody {
22071
22308
  }
22072
22309
  type ConfigureIntegrationInput = ConfigureIntegrationRequestBody & ConfigureIntegrationRequestHeaders & ConfigureIntegrationRequestQuery & ConfigureIntegrationRequestParams;
22073
22310
  interface ConfigureIntegrationResponse {
22311
+ /**
22312
+ * Identifiers held by the integration instance, keyed by identifier value
22313
+ */
22314
+ identifiers?: {
22315
+ [k: string]: {
22316
+ /**
22317
+ * Creation date of the identifier in ISO 8601 format
22318
+ */
22319
+ createdAt: string;
22320
+ };
22321
+ };
22074
22322
  }
22075
22323
 
22076
22324
  interface CreateWorkflowRequestHeaders {
@@ -28203,7 +28451,7 @@ interface GetAuditRecordsResponse {
28203
28451
  resourceId: string | null;
28204
28452
  resourceName?: string | null;
28205
28453
  value?: string | null;
28206
- 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";
28454
+ 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" | "SET_WORKSPACE_QUOTA_BLOCK_INTERNAL" | "EXECUTE_AUTO_RECHARGE_SUCCESS" | "EXECUTE_AUTO_RECHARGE_FAILED" | "SET_WORKSPACE_FEATURE_GATE" | "DELETE_WORKSPACE_FEATURE_GATE";
28207
28455
  }[];
28208
28456
  meta: {
28209
28457
  /**
@@ -39322,14 +39570,26 @@ interface File {
39322
39570
  indexingStack?: "v1" | "v2";
39323
39571
  }
39324
39572
 
39573
+ type HttpResponse<T> = {
39574
+ data: T;
39575
+ };
39576
+ /**
39577
+ * Minimal http transport the generated client depends on. Implementations
39578
+ * MUST reject (throw) on unsuccessful http statuses — exposing the parsed
39579
+ * error body under `response.data` on the thrown error so it can be mapped
39580
+ * to an api error — and resolve with the parsed response body under `data`.
39581
+ */
39582
+ type HttpClient = {
39583
+ request: <T>(config: RequestConfig) => Promise<HttpResponse<T>>;
39584
+ };
39325
39585
  type ClientProps$1 = {
39326
- toAxiosRequest: typeof toAxiosRequest;
39586
+ toRequest: typeof toRequest;
39327
39587
  toApiError: typeof toApiError;
39328
39588
  };
39329
39589
  declare class Client$1 {
39330
- private axiosInstance;
39590
+ private httpClient;
39331
39591
  private props;
39332
- constructor(axiosInstance: AxiosInstance, props?: Partial<ClientProps$1>);
39592
+ constructor(httpClient: HttpClient, props?: Partial<ClientProps$1>);
39333
39593
  readonly createConversation: (input: CreateConversationInput) => Promise<CreateConversationResponse>;
39334
39594
  readonly getConversation: (input: GetConversationInput) => Promise<GetConversationResponse>;
39335
39595
  readonly listConversations: (input: ListConversationsInput) => Promise<ListConversationsResponse>;
@@ -39366,6 +39626,7 @@ declare class Client$1 {
39366
39626
  readonly callAction: (input: CallActionInput) => Promise<CallActionResponse>;
39367
39627
  readonly unlinkIntegrationIdentifier: (input: UnlinkIntegrationIdentifierInput) => Promise<UnlinkIntegrationIdentifierResponse>;
39368
39628
  readonly getIntegrationIdentifierAvailability: (input: GetIntegrationIdentifierAvailabilityInput) => Promise<GetIntegrationIdentifierAvailabilityResponse>;
39629
+ readonly getIntegrationInstanceIdentifiers: (input: GetIntegrationInstanceIdentifiersInput) => Promise<GetIntegrationInstanceIdentifiersResponse>;
39369
39630
  readonly configureIntegration: (input: ConfigureIntegrationInput) => Promise<ConfigureIntegrationResponse>;
39370
39631
  readonly createWorkflow: (input: CreateWorkflowInput) => Promise<CreateWorkflowResponse>;
39371
39632
  readonly getWorkflow: (input: GetWorkflowInput) => Promise<GetWorkflowResponse>;
@@ -40249,10 +40510,10 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
40249
40510
  declare const errorFrom: (err: unknown) => ApiError;
40250
40511
 
40251
40512
  declare class UploadFileError extends Error {
40252
- readonly innerError?: AxiosError | undefined;
40513
+ readonly innerError?: Error | undefined;
40253
40514
  readonly file?: UpsertFileResponse["file"] | undefined;
40254
- constructor(message: string, innerError?: AxiosError | undefined, file?: UpsertFileResponse["file"] | undefined);
40515
+ constructor(message: string, innerError?: Error | undefined, file?: UpsertFileResponse["file"] | undefined);
40255
40516
  }
40256
40517
 
40257
- export { AlreadyExistsError, BreakingChangesError, Client, ForbiddenError, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, LimitExceededError, MethodNotFoundError, OperationTimeoutError, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, RuntimeError, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, index$3 as admin, index$2 as billing, errorFrom, index$1 as files, isApiError, index$4 as runtime, index as tables };
40518
+ export { AlreadyExistsError, BreakingChangesError, Client, ForbiddenError, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, LimitExceededError, MethodNotFoundError, OperationTimeoutError, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceGoneError, ResourceLockedConflictError, ResourceNotFoundError, RuntimeError, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, index$3 as admin, index$2 as billing, errorFrom, index$1 as files, http, isApiError, index$4 as runtime, index as tables };
40258
40519
  export type { Account, Activity, ApiError, Bot, ClientConfig, ClientInputs, ClientOutputs, ClientProps, Column, Conversation, ErrorType, Event, File, Headers, Integration, Interface, Issue, IssueEvent, Message, Operation, Plugin, RetryConfig, Row, State, Table, Usage, User, Version, Workflow, Workspace, WorkspaceMember };