@botpress/client 1.48.0 → 2.0.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/bundle.cjs +6 -34
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +278 -83
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +4 -4
- package/package.json +4 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -3125,14 +3202,26 @@ type CaptureObservationInput$1 = CaptureObservationRequestBody$1 & CaptureObserv
|
|
|
3125
3202
|
interface CaptureObservationResponse$1 {
|
|
3126
3203
|
}
|
|
3127
3204
|
|
|
3205
|
+
type HttpResponse$5<T> = {
|
|
3206
|
+
data: T;
|
|
3207
|
+
};
|
|
3208
|
+
/**
|
|
3209
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
3210
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
3211
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
3212
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
3213
|
+
*/
|
|
3214
|
+
type HttpClient$5 = {
|
|
3215
|
+
request: <T>(config: RequestConfig$5) => Promise<HttpResponse$5<T>>;
|
|
3216
|
+
};
|
|
3128
3217
|
type ClientProps$b = {
|
|
3129
|
-
|
|
3218
|
+
toRequest: typeof toRequest$5;
|
|
3130
3219
|
toApiError: typeof toApiError$5;
|
|
3131
3220
|
};
|
|
3132
3221
|
declare class Client$b {
|
|
3133
|
-
private
|
|
3222
|
+
private httpClient;
|
|
3134
3223
|
private props;
|
|
3135
|
-
constructor(
|
|
3224
|
+
constructor(httpClient: HttpClient$5, props?: Partial<ClientProps$b>);
|
|
3136
3225
|
readonly createConversation: (input: CreateConversationInput$1) => Promise<CreateConversationResponse$1>;
|
|
3137
3226
|
readonly getConversation: (input: GetConversationInput$1) => Promise<GetConversationResponse$1>;
|
|
3138
3227
|
readonly listConversations: (input: ListConversationsInput$1) => Promise<ListConversationsResponse$1>;
|
|
@@ -3197,14 +3286,14 @@ declare class Client$a extends Client$b {
|
|
|
3197
3286
|
constructor(clientProps: ClientProps$a);
|
|
3198
3287
|
get list(): {
|
|
3199
3288
|
conversations: (props: {
|
|
3200
|
-
|
|
3289
|
+
pageSize?: number | undefined;
|
|
3201
3290
|
tags?: {
|
|
3202
3291
|
[x: string]: string;
|
|
3203
3292
|
} | undefined;
|
|
3204
|
-
integrationName?: string | undefined;
|
|
3205
|
-
pageSize?: number | undefined;
|
|
3206
3293
|
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
3207
3294
|
sortDirection?: "asc" | "desc" | undefined;
|
|
3295
|
+
integrationName?: string | undefined;
|
|
3296
|
+
channel?: string | undefined;
|
|
3208
3297
|
participantIds?: string[] | undefined;
|
|
3209
3298
|
afterDate?: string | undefined;
|
|
3210
3299
|
beforeDate?: string | undefined;
|
|
@@ -3226,8 +3315,8 @@ declare class Client$a extends Client$b {
|
|
|
3226
3315
|
};
|
|
3227
3316
|
}>;
|
|
3228
3317
|
participants: (props: {
|
|
3229
|
-
id: string;
|
|
3230
3318
|
pageSize?: number | undefined;
|
|
3319
|
+
id: string;
|
|
3231
3320
|
}) => AsyncCollection<{
|
|
3232
3321
|
id: string;
|
|
3233
3322
|
createdAt: string;
|
|
@@ -3246,10 +3335,10 @@ declare class Client$a extends Client$b {
|
|
|
3246
3335
|
}>;
|
|
3247
3336
|
events: (props: {
|
|
3248
3337
|
pageSize?: number | undefined;
|
|
3249
|
-
userId?: string | undefined;
|
|
3250
3338
|
type?: string | undefined;
|
|
3251
|
-
|
|
3339
|
+
userId?: string | undefined;
|
|
3252
3340
|
workflowId?: string | undefined;
|
|
3341
|
+
conversationId?: string | undefined;
|
|
3253
3342
|
messageId?: string | undefined;
|
|
3254
3343
|
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
3255
3344
|
}) => AsyncCollection<{
|
|
@@ -3266,13 +3355,13 @@ declare class Client$a extends Client$b {
|
|
|
3266
3355
|
failureReason: string | null;
|
|
3267
3356
|
}>;
|
|
3268
3357
|
messages: (props: {
|
|
3358
|
+
pageSize?: number | undefined;
|
|
3269
3359
|
tags?: {
|
|
3270
3360
|
[x: string]: string;
|
|
3271
3361
|
} | undefined;
|
|
3272
|
-
|
|
3362
|
+
conversationId?: string | undefined;
|
|
3273
3363
|
afterDate?: string | undefined;
|
|
3274
3364
|
beforeDate?: string | undefined;
|
|
3275
|
-
conversationId?: string | undefined;
|
|
3276
3365
|
}) => AsyncCollection<{
|
|
3277
3366
|
id: string;
|
|
3278
3367
|
createdAt: string;
|
|
@@ -3290,15 +3379,15 @@ declare class Client$a extends Client$b {
|
|
|
3290
3379
|
origin?: "synthetic";
|
|
3291
3380
|
}>;
|
|
3292
3381
|
users: (props: {
|
|
3382
|
+
pageSize?: number | undefined;
|
|
3293
3383
|
tags?: {
|
|
3294
3384
|
[x: string]: string;
|
|
3295
3385
|
} | undefined;
|
|
3296
|
-
pageSize?: number | undefined;
|
|
3297
3386
|
sortField?: "updatedAt" | "createdAt" | undefined;
|
|
3298
3387
|
sortDirection?: "asc" | "desc" | undefined;
|
|
3388
|
+
conversationId?: string | undefined;
|
|
3299
3389
|
afterDate?: string | undefined;
|
|
3300
3390
|
beforeDate?: string | undefined;
|
|
3301
|
-
conversationId?: string | undefined;
|
|
3302
3391
|
rangeField?: "updatedAt" | "createdAt" | undefined;
|
|
3303
3392
|
}) => AsyncCollection<{
|
|
3304
3393
|
id: string;
|
|
@@ -3338,7 +3427,13 @@ type ParsedRequest$4 = {
|
|
|
3338
3427
|
headers: AnyHeaderParams$4;
|
|
3339
3428
|
body: AnyBodyParams$4;
|
|
3340
3429
|
};
|
|
3341
|
-
|
|
3430
|
+
type RequestConfig$4 = {
|
|
3431
|
+
method: string;
|
|
3432
|
+
url: string;
|
|
3433
|
+
headers: Record<string, string>;
|
|
3434
|
+
data?: any;
|
|
3435
|
+
};
|
|
3436
|
+
declare const toRequest$4: (req: ParsedRequest$4) => RequestConfig$4;
|
|
3342
3437
|
|
|
3343
3438
|
interface RunVrlRequestHeaders$1 {
|
|
3344
3439
|
}
|
|
@@ -5932,6 +6027,10 @@ interface CreateBotRequestBody$1 {
|
|
|
5932
6027
|
*/
|
|
5933
6028
|
dev?: boolean;
|
|
5934
6029
|
type?: "studio" | "adk";
|
|
6030
|
+
/**
|
|
6031
|
+
* JavaScript module format of the bot code. Defaults to CommonJS.
|
|
6032
|
+
*/
|
|
6033
|
+
moduleFormat?: "cjs" | "esm";
|
|
5935
6034
|
}
|
|
5936
6035
|
type CreateBotInput$1 = CreateBotRequestBody$1 & CreateBotRequestHeaders$1 & CreateBotRequestQuery$1 & CreateBotRequestParams$1;
|
|
5937
6036
|
interface CreateBotResponse$1 {
|
|
@@ -6699,6 +6798,10 @@ interface UpdateBotRequestBody$1 {
|
|
|
6699
6798
|
};
|
|
6700
6799
|
layers?: string[];
|
|
6701
6800
|
type?: "studio" | "adk";
|
|
6801
|
+
/**
|
|
6802
|
+
* JavaScript module format of the bot code. Defaults to CommonJS.
|
|
6803
|
+
*/
|
|
6804
|
+
moduleFormat?: "cjs" | "esm";
|
|
6702
6805
|
}
|
|
6703
6806
|
type UpdateBotInput$1 = UpdateBotRequestBody$1 & UpdateBotRequestHeaders$1 & UpdateBotRequestQuery$1 & UpdateBotRequestParams$1;
|
|
6704
6807
|
interface UpdateBotResponse$1 {
|
|
@@ -15214,14 +15317,26 @@ interface IntrospectResponse$1 {
|
|
|
15214
15317
|
userId: string;
|
|
15215
15318
|
}
|
|
15216
15319
|
|
|
15320
|
+
type HttpResponse$4<T> = {
|
|
15321
|
+
data: T;
|
|
15322
|
+
};
|
|
15323
|
+
/**
|
|
15324
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
15325
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
15326
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
15327
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
15328
|
+
*/
|
|
15329
|
+
type HttpClient$4 = {
|
|
15330
|
+
request: <T>(config: RequestConfig$4) => Promise<HttpResponse$4<T>>;
|
|
15331
|
+
};
|
|
15217
15332
|
type ClientProps$9 = {
|
|
15218
|
-
|
|
15333
|
+
toRequest: typeof toRequest$4;
|
|
15219
15334
|
toApiError: typeof toApiError$4;
|
|
15220
15335
|
};
|
|
15221
15336
|
declare class Client$9 {
|
|
15222
|
-
private
|
|
15337
|
+
private httpClient;
|
|
15223
15338
|
private props;
|
|
15224
|
-
constructor(
|
|
15339
|
+
constructor(httpClient: HttpClient$4, props?: Partial<ClientProps$9>);
|
|
15225
15340
|
readonly runVrl: (input: RunVrlInput$1) => Promise<RunVrlResponse$1>;
|
|
15226
15341
|
readonly getAccount: (input: GetAccountInput$1) => Promise<GetAccountResponse$1>;
|
|
15227
15342
|
readonly updateAccount: (input: UpdateAccountInput$1) => Promise<UpdateAccountResponse$1>;
|
|
@@ -15349,8 +15464,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15349
15464
|
constructor(clientProps: ClientProps$8);
|
|
15350
15465
|
get list(): {
|
|
15351
15466
|
publicIntegrations: (props: {
|
|
15352
|
-
pageSize?: number | undefined;
|
|
15353
15467
|
name?: string | undefined;
|
|
15468
|
+
pageSize?: number | undefined;
|
|
15354
15469
|
limit?: number | undefined;
|
|
15355
15470
|
version?: string | undefined;
|
|
15356
15471
|
interfaceId?: string | undefined;
|
|
@@ -15394,15 +15509,15 @@ declare class Client$8 extends Client$9 {
|
|
|
15394
15509
|
};
|
|
15395
15510
|
}>;
|
|
15396
15511
|
bots: (props: {
|
|
15512
|
+
pageSize?: number | undefined;
|
|
15397
15513
|
tags?: {
|
|
15398
15514
|
[x: string]: string;
|
|
15399
15515
|
} | undefined;
|
|
15400
|
-
pageSize?: number | undefined;
|
|
15401
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
15402
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
15403
15516
|
dev?: boolean | undefined;
|
|
15404
15517
|
integrationNames?: string[] | undefined;
|
|
15405
15518
|
pluginNames?: string[] | undefined;
|
|
15519
|
+
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
15520
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
15406
15521
|
}) => AsyncCollection<{
|
|
15407
15522
|
id: string;
|
|
15408
15523
|
createdAt: string;
|
|
@@ -15415,8 +15530,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15415
15530
|
type: "studio" | "adk" | "desk";
|
|
15416
15531
|
}>;
|
|
15417
15532
|
botIssues: (props: {
|
|
15418
|
-
id: string;
|
|
15419
15533
|
pageSize?: number | undefined;
|
|
15534
|
+
id: string;
|
|
15420
15535
|
}) => AsyncCollection<{
|
|
15421
15536
|
id: string;
|
|
15422
15537
|
code: string;
|
|
@@ -15455,8 +15570,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15455
15570
|
displayName?: string;
|
|
15456
15571
|
}>;
|
|
15457
15572
|
integrations: (props: {
|
|
15458
|
-
pageSize?: number | undefined;
|
|
15459
15573
|
name?: string | undefined;
|
|
15574
|
+
pageSize?: number | undefined;
|
|
15460
15575
|
limit?: number | undefined;
|
|
15461
15576
|
version?: string | undefined;
|
|
15462
15577
|
interfaceId?: string | undefined;
|
|
@@ -15498,8 +15613,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15498
15613
|
};
|
|
15499
15614
|
}>;
|
|
15500
15615
|
interfaces: (props: {
|
|
15501
|
-
pageSize?: number | undefined;
|
|
15502
15616
|
name?: string | undefined;
|
|
15617
|
+
pageSize?: number | undefined;
|
|
15503
15618
|
version?: string | undefined;
|
|
15504
15619
|
}) => AsyncCollection<{
|
|
15505
15620
|
id: string;
|
|
@@ -15528,8 +15643,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15528
15643
|
createdAt: string;
|
|
15529
15644
|
}>;
|
|
15530
15645
|
usageActivity: (props: {
|
|
15531
|
-
id: string;
|
|
15532
15646
|
pageSize?: number | undefined;
|
|
15647
|
+
id: string;
|
|
15533
15648
|
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15534
15649
|
timestampFrom?: string | undefined;
|
|
15535
15650
|
timestampUntil?: string | undefined;
|
|
@@ -15542,8 +15657,8 @@ declare class Client$8 extends Client$9 {
|
|
|
15542
15657
|
};
|
|
15543
15658
|
}>;
|
|
15544
15659
|
usageActivityDaily: (props: {
|
|
15545
|
-
id: string;
|
|
15546
15660
|
pageSize?: number | undefined;
|
|
15661
|
+
id: string;
|
|
15547
15662
|
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
15548
15663
|
dateFrom?: string | undefined;
|
|
15549
15664
|
dateUntil?: string | undefined;
|
|
@@ -15580,7 +15695,13 @@ type ParsedRequest$3 = {
|
|
|
15580
15695
|
headers: AnyHeaderParams$3;
|
|
15581
15696
|
body: AnyBodyParams$3;
|
|
15582
15697
|
};
|
|
15583
|
-
|
|
15698
|
+
type RequestConfig$3 = {
|
|
15699
|
+
method: string;
|
|
15700
|
+
url: string;
|
|
15701
|
+
headers: Record<string, string>;
|
|
15702
|
+
data?: any;
|
|
15703
|
+
};
|
|
15704
|
+
declare const toRequest$3: (req: ParsedRequest$3) => RequestConfig$3;
|
|
15584
15705
|
|
|
15585
15706
|
interface GetBillingReadonlyRequestHeaders {
|
|
15586
15707
|
}
|
|
@@ -16552,14 +16673,26 @@ interface ListFeatureGatesResponse {
|
|
|
16552
16673
|
};
|
|
16553
16674
|
}
|
|
16554
16675
|
|
|
16676
|
+
type HttpResponse$3<T> = {
|
|
16677
|
+
data: T;
|
|
16678
|
+
};
|
|
16679
|
+
/**
|
|
16680
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
16681
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
16682
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
16683
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
16684
|
+
*/
|
|
16685
|
+
type HttpClient$3 = {
|
|
16686
|
+
request: <T>(config: RequestConfig$3) => Promise<HttpResponse$3<T>>;
|
|
16687
|
+
};
|
|
16555
16688
|
type ClientProps$7 = {
|
|
16556
|
-
|
|
16689
|
+
toRequest: typeof toRequest$3;
|
|
16557
16690
|
toApiError: typeof toApiError$3;
|
|
16558
16691
|
};
|
|
16559
16692
|
declare class Client$7 {
|
|
16560
|
-
private
|
|
16693
|
+
private httpClient;
|
|
16561
16694
|
private props;
|
|
16562
|
-
constructor(
|
|
16695
|
+
constructor(httpClient: HttpClient$3, props?: Partial<ClientProps$7>);
|
|
16563
16696
|
readonly getBillingReadonly: (input: GetBillingReadonlyInput) => Promise<GetBillingReadonlyResponse>;
|
|
16564
16697
|
readonly getBillingAddress: (input: GetBillingAddressInput) => Promise<GetBillingAddressResponse>;
|
|
16565
16698
|
readonly setBillingAddress: (input: SetBillingAddressInput) => Promise<SetBillingAddressResponse>;
|
|
@@ -16639,7 +16772,13 @@ type ParsedRequest$2 = {
|
|
|
16639
16772
|
headers: AnyHeaderParams$2;
|
|
16640
16773
|
body: AnyBodyParams$2;
|
|
16641
16774
|
};
|
|
16642
|
-
|
|
16775
|
+
type RequestConfig$2 = {
|
|
16776
|
+
method: string;
|
|
16777
|
+
url: string;
|
|
16778
|
+
headers: Record<string, string>;
|
|
16779
|
+
data?: any;
|
|
16780
|
+
};
|
|
16781
|
+
declare const toRequest$2: (req: ParsedRequest$2) => RequestConfig$2;
|
|
16643
16782
|
|
|
16644
16783
|
interface UpsertFileRequestHeaders$1 {
|
|
16645
16784
|
}
|
|
@@ -17752,14 +17891,26 @@ interface ListKnowledgeBasesResponse$1 {
|
|
|
17752
17891
|
};
|
|
17753
17892
|
}
|
|
17754
17893
|
|
|
17894
|
+
type HttpResponse$2<T> = {
|
|
17895
|
+
data: T;
|
|
17896
|
+
};
|
|
17897
|
+
/**
|
|
17898
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
17899
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
17900
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
17901
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
17902
|
+
*/
|
|
17903
|
+
type HttpClient$2 = {
|
|
17904
|
+
request: <T>(config: RequestConfig$2) => Promise<HttpResponse$2<T>>;
|
|
17905
|
+
};
|
|
17755
17906
|
type ClientProps$5 = {
|
|
17756
|
-
|
|
17907
|
+
toRequest: typeof toRequest$2;
|
|
17757
17908
|
toApiError: typeof toApiError$2;
|
|
17758
17909
|
};
|
|
17759
17910
|
declare class Client$5 {
|
|
17760
|
-
private
|
|
17911
|
+
private httpClient;
|
|
17761
17912
|
private props;
|
|
17762
|
-
constructor(
|
|
17913
|
+
constructor(httpClient: HttpClient$2, props?: Partial<ClientProps$5>);
|
|
17763
17914
|
readonly upsertFile: (input: UpsertFileInput$1) => Promise<UpsertFileResponse$1>;
|
|
17764
17915
|
readonly deleteFile: (input: DeleteFileInput$1) => Promise<DeleteFileResponse$1>;
|
|
17765
17916
|
readonly listFiles: (input: ListFilesInput$1) => Promise<ListFilesResponse$1>;
|
|
@@ -17801,8 +17952,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
17801
17952
|
constructor(clientProps: ClientProps$4);
|
|
17802
17953
|
get list(): {
|
|
17803
17954
|
files: (props: {
|
|
17804
|
-
tags?: any;
|
|
17805
17955
|
pageSize?: number | undefined;
|
|
17956
|
+
tags?: any;
|
|
17806
17957
|
sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
|
|
17807
17958
|
sortDirection?: "asc" | "desc" | undefined;
|
|
17808
17959
|
ids?: string[] | undefined;
|
|
@@ -17836,8 +17987,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
17836
17987
|
indexingStack?: "v1" | "v2";
|
|
17837
17988
|
}>;
|
|
17838
17989
|
filePassages: (props: {
|
|
17839
|
-
id: string;
|
|
17840
17990
|
pageSize?: number | undefined;
|
|
17991
|
+
id: string;
|
|
17841
17992
|
limit?: number | undefined;
|
|
17842
17993
|
}) => AsyncCollection<{
|
|
17843
17994
|
id: string;
|
|
@@ -17858,8 +18009,8 @@ declare class Client$4 extends Client$5 implements IClient$2 {
|
|
|
17858
18009
|
tag: string;
|
|
17859
18010
|
}) => AsyncCollection<string>;
|
|
17860
18011
|
knowledgeBases: (props: {
|
|
17861
|
-
tags?: any;
|
|
17862
18012
|
pageSize?: number | undefined;
|
|
18013
|
+
tags?: any;
|
|
17863
18014
|
}) => AsyncCollection<{
|
|
17864
18015
|
id: string;
|
|
17865
18016
|
name: string;
|
|
@@ -17895,7 +18046,13 @@ type ParsedRequest$1 = {
|
|
|
17895
18046
|
headers: AnyHeaderParams$1;
|
|
17896
18047
|
body: AnyBodyParams$1;
|
|
17897
18048
|
};
|
|
17898
|
-
|
|
18049
|
+
type RequestConfig$1 = {
|
|
18050
|
+
method: string;
|
|
18051
|
+
url: string;
|
|
18052
|
+
headers: Record<string, string>;
|
|
18053
|
+
data?: any;
|
|
18054
|
+
};
|
|
18055
|
+
declare const toRequest$1: (req: ParsedRequest$1) => RequestConfig$1;
|
|
17899
18056
|
|
|
17900
18057
|
interface ListTablesRequestHeaders$1 {
|
|
17901
18058
|
}
|
|
@@ -19579,14 +19736,26 @@ interface UpsertTableRowsResponse$1 {
|
|
|
19579
19736
|
errors?: string[];
|
|
19580
19737
|
}
|
|
19581
19738
|
|
|
19739
|
+
type HttpResponse$1<T> = {
|
|
19740
|
+
data: T;
|
|
19741
|
+
};
|
|
19742
|
+
/**
|
|
19743
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
19744
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
19745
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
19746
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
19747
|
+
*/
|
|
19748
|
+
type HttpClient$1 = {
|
|
19749
|
+
request: <T>(config: RequestConfig$1) => Promise<HttpResponse$1<T>>;
|
|
19750
|
+
};
|
|
19582
19751
|
type ClientProps$3 = {
|
|
19583
|
-
|
|
19752
|
+
toRequest: typeof toRequest$1;
|
|
19584
19753
|
toApiError: typeof toApiError$1;
|
|
19585
19754
|
};
|
|
19586
19755
|
declare class Client$3 {
|
|
19587
|
-
private
|
|
19756
|
+
private httpClient;
|
|
19588
19757
|
private props;
|
|
19589
|
-
constructor(
|
|
19758
|
+
constructor(httpClient: HttpClient$1, props?: Partial<ClientProps$3>);
|
|
19590
19759
|
readonly listTables: (input: ListTablesInput$1) => Promise<ListTablesResponse$1>;
|
|
19591
19760
|
readonly getTable: (input: GetTableInput$1) => Promise<GetTableResponse$1>;
|
|
19592
19761
|
readonly getOrCreateTable: (input: GetOrCreateTableInput$1) => Promise<GetOrCreateTableResponse$1>;
|
|
@@ -19641,7 +19810,13 @@ type ParsedRequest = {
|
|
|
19641
19810
|
headers: AnyHeaderParams;
|
|
19642
19811
|
body: AnyBodyParams;
|
|
19643
19812
|
};
|
|
19644
|
-
|
|
19813
|
+
type RequestConfig = {
|
|
19814
|
+
method: string;
|
|
19815
|
+
url: string;
|
|
19816
|
+
headers: Record<string, string>;
|
|
19817
|
+
data?: any;
|
|
19818
|
+
};
|
|
19819
|
+
declare const toRequest: (req: ParsedRequest) => RequestConfig;
|
|
19645
19820
|
|
|
19646
19821
|
interface CreateConversationRequestHeaders {
|
|
19647
19822
|
}
|
|
@@ -25286,6 +25461,10 @@ interface CreateBotRequestBody {
|
|
|
25286
25461
|
*/
|
|
25287
25462
|
dev?: boolean;
|
|
25288
25463
|
type?: "studio" | "adk";
|
|
25464
|
+
/**
|
|
25465
|
+
* JavaScript module format of the bot code. Defaults to CommonJS.
|
|
25466
|
+
*/
|
|
25467
|
+
moduleFormat?: "cjs" | "esm";
|
|
25289
25468
|
}
|
|
25290
25469
|
type CreateBotInput = CreateBotRequestBody & CreateBotRequestHeaders & CreateBotRequestQuery & CreateBotRequestParams;
|
|
25291
25470
|
interface CreateBotResponse {
|
|
@@ -26053,6 +26232,10 @@ interface UpdateBotRequestBody {
|
|
|
26053
26232
|
};
|
|
26054
26233
|
layers?: string[];
|
|
26055
26234
|
type?: "studio" | "adk";
|
|
26235
|
+
/**
|
|
26236
|
+
* JavaScript module format of the bot code. Defaults to CommonJS.
|
|
26237
|
+
*/
|
|
26238
|
+
moduleFormat?: "cjs" | "esm";
|
|
26056
26239
|
}
|
|
26057
26240
|
type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
|
|
26058
26241
|
interface UpdateBotResponse {
|
|
@@ -39306,14 +39489,26 @@ interface File {
|
|
|
39306
39489
|
indexingStack?: "v1" | "v2";
|
|
39307
39490
|
}
|
|
39308
39491
|
|
|
39492
|
+
type HttpResponse<T> = {
|
|
39493
|
+
data: T;
|
|
39494
|
+
};
|
|
39495
|
+
/**
|
|
39496
|
+
* Minimal http transport the generated client depends on. Implementations
|
|
39497
|
+
* MUST reject (throw) on unsuccessful http statuses — exposing the parsed
|
|
39498
|
+
* error body under `response.data` on the thrown error so it can be mapped
|
|
39499
|
+
* to an api error — and resolve with the parsed response body under `data`.
|
|
39500
|
+
*/
|
|
39501
|
+
type HttpClient = {
|
|
39502
|
+
request: <T>(config: RequestConfig) => Promise<HttpResponse<T>>;
|
|
39503
|
+
};
|
|
39309
39504
|
type ClientProps$1 = {
|
|
39310
|
-
|
|
39505
|
+
toRequest: typeof toRequest;
|
|
39311
39506
|
toApiError: typeof toApiError;
|
|
39312
39507
|
};
|
|
39313
39508
|
declare class Client$1 {
|
|
39314
|
-
private
|
|
39509
|
+
private httpClient;
|
|
39315
39510
|
private props;
|
|
39316
|
-
constructor(
|
|
39511
|
+
constructor(httpClient: HttpClient, props?: Partial<ClientProps$1>);
|
|
39317
39512
|
readonly createConversation: (input: CreateConversationInput) => Promise<CreateConversationResponse>;
|
|
39318
39513
|
readonly getConversation: (input: GetConversationInput) => Promise<GetConversationResponse>;
|
|
39319
39514
|
readonly listConversations: (input: ListConversationsInput) => Promise<ListConversationsResponse>;
|
|
@@ -39524,14 +39719,14 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39524
39719
|
constructor(clientProps?: ClientProps);
|
|
39525
39720
|
get list(): {
|
|
39526
39721
|
conversations: (props: {
|
|
39527
|
-
|
|
39722
|
+
pageSize?: number | undefined;
|
|
39528
39723
|
tags?: {
|
|
39529
39724
|
[x: string]: string;
|
|
39530
39725
|
} | undefined;
|
|
39531
|
-
integrationName?: string | undefined;
|
|
39532
|
-
pageSize?: number | undefined;
|
|
39533
39726
|
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
39534
39727
|
sortDirection?: "asc" | "desc" | undefined;
|
|
39728
|
+
integrationName?: string | undefined;
|
|
39729
|
+
channel?: string | undefined;
|
|
39535
39730
|
participantIds?: string[] | undefined;
|
|
39536
39731
|
afterDate?: string | undefined;
|
|
39537
39732
|
beforeDate?: string | undefined;
|
|
@@ -39553,8 +39748,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39553
39748
|
};
|
|
39554
39749
|
}>;
|
|
39555
39750
|
participants: (props: {
|
|
39556
|
-
id: string;
|
|
39557
39751
|
pageSize?: number | undefined;
|
|
39752
|
+
id: string;
|
|
39558
39753
|
}) => AsyncCollection<{
|
|
39559
39754
|
id: string;
|
|
39560
39755
|
createdAt: string;
|
|
@@ -39573,10 +39768,10 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39573
39768
|
}>;
|
|
39574
39769
|
events: (props: {
|
|
39575
39770
|
pageSize?: number | undefined;
|
|
39576
|
-
userId?: string | undefined;
|
|
39577
39771
|
type?: string | undefined;
|
|
39578
|
-
|
|
39772
|
+
userId?: string | undefined;
|
|
39579
39773
|
workflowId?: string | undefined;
|
|
39774
|
+
conversationId?: string | undefined;
|
|
39580
39775
|
messageId?: string | undefined;
|
|
39581
39776
|
status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
|
|
39582
39777
|
}) => AsyncCollection<{
|
|
@@ -39593,13 +39788,13 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39593
39788
|
failureReason: string | null;
|
|
39594
39789
|
}>;
|
|
39595
39790
|
messages: (props: {
|
|
39791
|
+
pageSize?: number | undefined;
|
|
39596
39792
|
tags?: {
|
|
39597
39793
|
[x: string]: string;
|
|
39598
39794
|
} | undefined;
|
|
39599
|
-
|
|
39795
|
+
conversationId?: string | undefined;
|
|
39600
39796
|
afterDate?: string | undefined;
|
|
39601
39797
|
beforeDate?: string | undefined;
|
|
39602
|
-
conversationId?: string | undefined;
|
|
39603
39798
|
}) => AsyncCollection<{
|
|
39604
39799
|
id: string;
|
|
39605
39800
|
createdAt: string;
|
|
@@ -39617,15 +39812,15 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39617
39812
|
origin?: "synthetic";
|
|
39618
39813
|
}>;
|
|
39619
39814
|
users: (props: {
|
|
39815
|
+
pageSize?: number | undefined;
|
|
39620
39816
|
tags?: {
|
|
39621
39817
|
[x: string]: string;
|
|
39622
39818
|
} | undefined;
|
|
39623
|
-
pageSize?: number | undefined;
|
|
39624
39819
|
sortField?: "updatedAt" | "createdAt" | undefined;
|
|
39625
39820
|
sortDirection?: "asc" | "desc" | undefined;
|
|
39821
|
+
conversationId?: string | undefined;
|
|
39626
39822
|
afterDate?: string | undefined;
|
|
39627
39823
|
beforeDate?: string | undefined;
|
|
39628
|
-
conversationId?: string | undefined;
|
|
39629
39824
|
rangeField?: "updatedAt" | "createdAt" | undefined;
|
|
39630
39825
|
}) => AsyncCollection<{
|
|
39631
39826
|
id: string;
|
|
@@ -39644,8 +39839,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39644
39839
|
};
|
|
39645
39840
|
}>;
|
|
39646
39841
|
publicIntegrations: (props: {
|
|
39647
|
-
pageSize?: number | undefined;
|
|
39648
39842
|
name?: string | undefined;
|
|
39843
|
+
pageSize?: number | undefined;
|
|
39649
39844
|
limit?: number | undefined;
|
|
39650
39845
|
version?: string | undefined;
|
|
39651
39846
|
interfaceId?: string | undefined;
|
|
@@ -39689,15 +39884,15 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39689
39884
|
};
|
|
39690
39885
|
}>;
|
|
39691
39886
|
bots: (props: {
|
|
39887
|
+
pageSize?: number | undefined;
|
|
39692
39888
|
tags?: {
|
|
39693
39889
|
[x: string]: string;
|
|
39694
39890
|
} | undefined;
|
|
39695
|
-
pageSize?: number | undefined;
|
|
39696
|
-
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
39697
|
-
sortDirection?: "asc" | "desc" | undefined;
|
|
39698
39891
|
dev?: boolean | undefined;
|
|
39699
39892
|
integrationNames?: string[] | undefined;
|
|
39700
39893
|
pluginNames?: string[] | undefined;
|
|
39894
|
+
sortField?: "createdAt" | "updatedAt" | undefined;
|
|
39895
|
+
sortDirection?: "asc" | "desc" | undefined;
|
|
39701
39896
|
}) => AsyncCollection<{
|
|
39702
39897
|
id: string;
|
|
39703
39898
|
createdAt: string;
|
|
@@ -39710,8 +39905,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39710
39905
|
type: "studio" | "adk" | "desk";
|
|
39711
39906
|
}>;
|
|
39712
39907
|
botIssues: (props: {
|
|
39713
|
-
id: string;
|
|
39714
39908
|
pageSize?: number | undefined;
|
|
39909
|
+
id: string;
|
|
39715
39910
|
}) => AsyncCollection<{
|
|
39716
39911
|
id: string;
|
|
39717
39912
|
code: string;
|
|
@@ -39742,8 +39937,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39742
39937
|
pageSize?: number | undefined;
|
|
39743
39938
|
}) => AsyncCollection<UpdateWorkspaceMemberResponse$1>;
|
|
39744
39939
|
integrations: (props: {
|
|
39745
|
-
pageSize?: number | undefined;
|
|
39746
39940
|
name?: string | undefined;
|
|
39941
|
+
pageSize?: number | undefined;
|
|
39747
39942
|
limit?: number | undefined;
|
|
39748
39943
|
version?: string | undefined;
|
|
39749
39944
|
interfaceId?: string | undefined;
|
|
@@ -39785,8 +39980,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39785
39980
|
};
|
|
39786
39981
|
}>;
|
|
39787
39982
|
interfaces: (props: {
|
|
39788
|
-
pageSize?: number | undefined;
|
|
39789
39983
|
name?: string | undefined;
|
|
39984
|
+
pageSize?: number | undefined;
|
|
39790
39985
|
version?: string | undefined;
|
|
39791
39986
|
}) => AsyncCollection<{
|
|
39792
39987
|
id: string;
|
|
@@ -39801,8 +39996,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39801
39996
|
public: boolean;
|
|
39802
39997
|
}>;
|
|
39803
39998
|
publicInterfaces: (props: {
|
|
39804
|
-
pageSize?: number | undefined;
|
|
39805
39999
|
name?: string | undefined;
|
|
40000
|
+
pageSize?: number | undefined;
|
|
39806
40001
|
version?: string | undefined;
|
|
39807
40002
|
}) => AsyncCollection<{
|
|
39808
40003
|
id: string;
|
|
@@ -39817,8 +40012,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39817
40012
|
public: boolean;
|
|
39818
40013
|
}>;
|
|
39819
40014
|
plugins: (props: {
|
|
39820
|
-
pageSize?: number | undefined;
|
|
39821
40015
|
name?: string | undefined;
|
|
40016
|
+
pageSize?: number | undefined;
|
|
39822
40017
|
version?: string | undefined;
|
|
39823
40018
|
}) => AsyncCollection<{
|
|
39824
40019
|
id: string;
|
|
@@ -39834,8 +40029,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39834
40029
|
lifecycleStatus: "published" | "deprecated";
|
|
39835
40030
|
}>;
|
|
39836
40031
|
publicPlugins: (props: {
|
|
39837
|
-
pageSize?: number | undefined;
|
|
39838
40032
|
name?: string | undefined;
|
|
40033
|
+
pageSize?: number | undefined;
|
|
39839
40034
|
version?: string | undefined;
|
|
39840
40035
|
}) => AsyncCollection<{
|
|
39841
40036
|
id: string;
|
|
@@ -39865,8 +40060,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39865
40060
|
createdAt: string;
|
|
39866
40061
|
}>;
|
|
39867
40062
|
files: (props: {
|
|
39868
|
-
tags?: any;
|
|
39869
40063
|
pageSize?: number | undefined;
|
|
40064
|
+
tags?: any;
|
|
39870
40065
|
sortField?: "key" | "size" | "createdAt" | "updatedAt" | "status" | undefined;
|
|
39871
40066
|
sortDirection?: "asc" | "desc" | undefined;
|
|
39872
40067
|
ids?: string[] | undefined;
|
|
@@ -39900,8 +40095,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39900
40095
|
indexingStack?: "v1" | "v2";
|
|
39901
40096
|
}>;
|
|
39902
40097
|
filePassages: (props: {
|
|
39903
|
-
id: string;
|
|
39904
40098
|
pageSize?: number | undefined;
|
|
40099
|
+
id: string;
|
|
39905
40100
|
limit?: number | undefined;
|
|
39906
40101
|
}) => AsyncCollection<{
|
|
39907
40102
|
id: string;
|
|
@@ -39922,8 +40117,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39922
40117
|
tag: string;
|
|
39923
40118
|
}) => AsyncCollection<string>;
|
|
39924
40119
|
knowledgeBases: (props: {
|
|
39925
|
-
tags?: any;
|
|
39926
40120
|
pageSize?: number | undefined;
|
|
40121
|
+
tags?: any;
|
|
39927
40122
|
}) => AsyncCollection<{
|
|
39928
40123
|
id: string;
|
|
39929
40124
|
name: string;
|
|
@@ -39934,8 +40129,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39934
40129
|
};
|
|
39935
40130
|
}>;
|
|
39936
40131
|
usageActivity: (props: {
|
|
39937
|
-
id: string;
|
|
39938
40132
|
pageSize?: number | undefined;
|
|
40133
|
+
id: string;
|
|
39939
40134
|
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39940
40135
|
timestampFrom?: string | undefined;
|
|
39941
40136
|
timestampUntil?: string | undefined;
|
|
@@ -39948,8 +40143,8 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39948
40143
|
};
|
|
39949
40144
|
}>;
|
|
39950
40145
|
usageActivityDaily: (props: {
|
|
39951
|
-
id: string;
|
|
39952
40146
|
pageSize?: number | undefined;
|
|
40147
|
+
id: string;
|
|
39953
40148
|
type: "invocation_timeout" | "invocation_calls" | "storage_count" | "bot_count" | "knowledgebase_vector_storage" | "workspace_ratelimit" | "table_row_count" | "workspace_member_count" | "integrations_owned_count" | "ai_spend" | "openai_spend" | "bing_search_spend" | "always_alive" | "indexed_file_count" | "file_max_size_bytes";
|
|
39954
40149
|
dateFrom?: string | undefined;
|
|
39955
40150
|
dateUntil?: string | undefined;
|
|
@@ -39965,13 +40160,13 @@ declare class Client extends Client$1 implements IClient {
|
|
|
39965
40160
|
};
|
|
39966
40161
|
}>;
|
|
39967
40162
|
workflows: (props: {
|
|
40163
|
+
name?: string | undefined;
|
|
40164
|
+
pageSize?: number | undefined;
|
|
39968
40165
|
tags?: {
|
|
39969
40166
|
[x: string]: string;
|
|
39970
40167
|
} | undefined;
|
|
39971
|
-
pageSize?: number | undefined;
|
|
39972
40168
|
userId?: string | undefined;
|
|
39973
40169
|
conversationId?: string | undefined;
|
|
39974
|
-
name?: string | undefined;
|
|
39975
40170
|
parentWorkflowId?: string | undefined;
|
|
39976
40171
|
statuses?: ("pending" | "failed" | "in_progress" | "completed" | "listening" | "paused" | "timedout" | "cancelled")[] | undefined;
|
|
39977
40172
|
}) => AsyncCollection<{
|
|
@@ -40233,10 +40428,10 @@ type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenErro
|
|
|
40233
40428
|
declare const errorFrom: (err: unknown) => ApiError;
|
|
40234
40429
|
|
|
40235
40430
|
declare class UploadFileError extends Error {
|
|
40236
|
-
readonly innerError?:
|
|
40431
|
+
readonly innerError?: Error | undefined;
|
|
40237
40432
|
readonly file?: UpsertFileResponse["file"] | undefined;
|
|
40238
|
-
constructor(message: string, innerError?:
|
|
40433
|
+
constructor(message: string, innerError?: Error | undefined, file?: UpsertFileResponse["file"] | undefined);
|
|
40239
40434
|
}
|
|
40240
40435
|
|
|
40241
|
-
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 };
|
|
40436
|
+
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 };
|
|
40242
40437
|
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 };
|