@botpress/client 1.19.0 → 1.20.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 +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +120 -8
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2683,6 +2683,10 @@ interface GetOrCreateWorkflowRequestBody$1 {
|
|
|
2683
2683
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
2684
2684
|
*/
|
|
2685
2685
|
eventId?: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow 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.
|
|
2688
|
+
*/
|
|
2689
|
+
discriminateByTags?: string[];
|
|
2686
2690
|
}
|
|
2687
2691
|
type GetOrCreateWorkflowInput$1 = GetOrCreateWorkflowRequestBody$1 & GetOrCreateWorkflowRequestHeaders$1 & GetOrCreateWorkflowRequestQuery$1 & GetOrCreateWorkflowRequestParams$1;
|
|
2688
2692
|
interface GetOrCreateWorkflowResponse$1 {
|
|
@@ -7366,6 +7370,49 @@ type DeleteBotApiKeyInput$1 = DeleteBotApiKeyRequestBody$1 & DeleteBotApiKeyRequ
|
|
|
7366
7370
|
interface DeleteBotApiKeyResponse$1 {
|
|
7367
7371
|
}
|
|
7368
7372
|
|
|
7373
|
+
interface GetBotAllowlistRequestHeaders$1 {
|
|
7374
|
+
}
|
|
7375
|
+
interface GetBotAllowlistRequestQuery$1 {
|
|
7376
|
+
}
|
|
7377
|
+
interface GetBotAllowlistRequestParams$1 {
|
|
7378
|
+
botId: string;
|
|
7379
|
+
}
|
|
7380
|
+
interface GetBotAllowlistRequestBody$1 {
|
|
7381
|
+
}
|
|
7382
|
+
type GetBotAllowlistInput$1 = GetBotAllowlistRequestBody$1 & GetBotAllowlistRequestHeaders$1 & GetBotAllowlistRequestQuery$1 & GetBotAllowlistRequestParams$1;
|
|
7383
|
+
interface GetBotAllowlistResponse$1 {
|
|
7384
|
+
/**
|
|
7385
|
+
* Allowlist setting of the bot
|
|
7386
|
+
*/
|
|
7387
|
+
setting: "ALL_WORKSPACE_USERS" | "SELECTED_USERS";
|
|
7388
|
+
users: {
|
|
7389
|
+
id: string;
|
|
7390
|
+
}[];
|
|
7391
|
+
}
|
|
7392
|
+
|
|
7393
|
+
interface UpdateBotAllowlistRequestHeaders$1 {
|
|
7394
|
+
}
|
|
7395
|
+
interface UpdateBotAllowlistRequestQuery$1 {
|
|
7396
|
+
}
|
|
7397
|
+
interface UpdateBotAllowlistRequestParams$1 {
|
|
7398
|
+
botId: string;
|
|
7399
|
+
}
|
|
7400
|
+
interface UpdateBotAllowlistRequestBody$1 {
|
|
7401
|
+
/**
|
|
7402
|
+
* Allowlist setting of the bot
|
|
7403
|
+
*/
|
|
7404
|
+
setting?: "ALL_WORKSPACE_USERS" | "SELECTED_USERS";
|
|
7405
|
+
users?: {
|
|
7406
|
+
/**
|
|
7407
|
+
* If `true`, the user should be added to the allowlist. If `false`, the user should be removed from the allowlist. This performs a partial update, so any existing users not included here will be kept in the allowlist
|
|
7408
|
+
*/
|
|
7409
|
+
[k: string]: boolean;
|
|
7410
|
+
};
|
|
7411
|
+
}
|
|
7412
|
+
type UpdateBotAllowlistInput$1 = UpdateBotAllowlistRequestBody$1 & UpdateBotAllowlistRequestHeaders$1 & UpdateBotAllowlistRequestQuery$1 & UpdateBotAllowlistRequestParams$1;
|
|
7413
|
+
interface UpdateBotAllowlistResponse$1 {
|
|
7414
|
+
}
|
|
7415
|
+
|
|
7369
7416
|
interface ListWorkspaceInvoicesRequestHeaders$1 {
|
|
7370
7417
|
}
|
|
7371
7418
|
interface ListWorkspaceInvoicesRequestQuery$1 {
|
|
@@ -13942,6 +13989,8 @@ declare class Client$7 {
|
|
|
13942
13989
|
readonly listBotApiKeys: (input: ListBotApiKeysInput$1) => Promise<ListBotApiKeysResponse$1>;
|
|
13943
13990
|
readonly createBotApiKey: (input: CreateBotApiKeyInput$1) => Promise<CreateBotApiKeyResponse$1>;
|
|
13944
13991
|
readonly deleteBotApiKey: (input: DeleteBotApiKeyInput$1) => Promise<DeleteBotApiKeyResponse$1>;
|
|
13992
|
+
readonly getBotAllowlist: (input: GetBotAllowlistInput$1) => Promise<GetBotAllowlistResponse$1>;
|
|
13993
|
+
readonly updateBotAllowlist: (input: UpdateBotAllowlistInput$1) => Promise<UpdateBotAllowlistResponse$1>;
|
|
13945
13994
|
readonly listWorkspaceInvoices: (input: ListWorkspaceInvoicesInput$1) => Promise<ListWorkspaceInvoicesResponse$1>;
|
|
13946
13995
|
readonly getUpcomingInvoice: (input: GetUpcomingInvoiceInput$1) => Promise<GetUpcomingInvoiceResponse$1>;
|
|
13947
13996
|
readonly chargeWorkspaceUnpaidInvoices: (input: ChargeWorkspaceUnpaidInvoicesInput$1) => Promise<ChargeWorkspaceUnpaidInvoicesResponse$1>;
|
|
@@ -14311,9 +14360,9 @@ interface UpsertFileRequestBody$1 {
|
|
|
14311
14360
|
generateMasterSummary?: boolean;
|
|
14312
14361
|
};
|
|
14313
14362
|
/**
|
|
14314
|
-
*
|
|
14363
|
+
* If not set, the default indexing stack will be used.
|
|
14315
14364
|
*/
|
|
14316
|
-
stack?: "realtime-v1";
|
|
14365
|
+
stack?: "legacy" | "realtime-v1";
|
|
14317
14366
|
vision?: {
|
|
14318
14367
|
/**
|
|
14319
14368
|
* (Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.
|
|
@@ -14926,6 +14975,7 @@ interface SearchFilesRequestQuery$1 {
|
|
|
14926
14975
|
limit?: number;
|
|
14927
14976
|
consolidate?: boolean;
|
|
14928
14977
|
includeBreadcrumb?: boolean;
|
|
14978
|
+
withContext?: boolean;
|
|
14929
14979
|
}
|
|
14930
14980
|
interface SearchFilesRequestParams$1 {
|
|
14931
14981
|
}
|
|
@@ -14995,8 +15045,14 @@ interface SearchFilesResponse$1 {
|
|
|
14995
15045
|
*/
|
|
14996
15046
|
updatedAt: string;
|
|
14997
15047
|
};
|
|
15048
|
+
/**
|
|
15049
|
+
* Surrounding passages including the current passage, based on the requested `contextDepth`. Only returned if the `withContext` parameter is set to `true`. Not supported when using the `consolidate` option.
|
|
15050
|
+
*/
|
|
14998
15051
|
context?: {
|
|
14999
|
-
|
|
15052
|
+
/**
|
|
15053
|
+
* The ID of the vector that the context passage belongs to. Omitted for breadcrumbs.
|
|
15054
|
+
*/
|
|
15055
|
+
id?: string;
|
|
15000
15056
|
text: string;
|
|
15001
15057
|
/**
|
|
15002
15058
|
* Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
|
|
@@ -15005,7 +15061,7 @@ interface SearchFilesResponse$1 {
|
|
|
15005
15061
|
/**
|
|
15006
15062
|
* The type of context passage
|
|
15007
15063
|
*/
|
|
15008
|
-
type: "preceding" | "subsequent" | "breadcrumb";
|
|
15064
|
+
type: "preceding" | "subsequent" | "current" | "breadcrumb";
|
|
15009
15065
|
}[];
|
|
15010
15066
|
}[];
|
|
15011
15067
|
}
|
|
@@ -19651,6 +19707,10 @@ interface GetOrCreateWorkflowRequestBody {
|
|
|
19651
19707
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
19652
19708
|
*/
|
|
19653
19709
|
eventId?: string;
|
|
19710
|
+
/**
|
|
19711
|
+
* Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow 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.
|
|
19712
|
+
*/
|
|
19713
|
+
discriminateByTags?: string[];
|
|
19654
19714
|
}
|
|
19655
19715
|
type GetOrCreateWorkflowInput = GetOrCreateWorkflowRequestBody & GetOrCreateWorkflowRequestHeaders & GetOrCreateWorkflowRequestQuery & GetOrCreateWorkflowRequestParams;
|
|
19656
19716
|
interface GetOrCreateWorkflowResponse {
|
|
@@ -24126,6 +24186,49 @@ type DeleteBotApiKeyInput = DeleteBotApiKeyRequestBody & DeleteBotApiKeyRequestH
|
|
|
24126
24186
|
interface DeleteBotApiKeyResponse {
|
|
24127
24187
|
}
|
|
24128
24188
|
|
|
24189
|
+
interface GetBotAllowlistRequestHeaders {
|
|
24190
|
+
}
|
|
24191
|
+
interface GetBotAllowlistRequestQuery {
|
|
24192
|
+
}
|
|
24193
|
+
interface GetBotAllowlistRequestParams {
|
|
24194
|
+
botId: string;
|
|
24195
|
+
}
|
|
24196
|
+
interface GetBotAllowlistRequestBody {
|
|
24197
|
+
}
|
|
24198
|
+
type GetBotAllowlistInput = GetBotAllowlistRequestBody & GetBotAllowlistRequestHeaders & GetBotAllowlistRequestQuery & GetBotAllowlistRequestParams;
|
|
24199
|
+
interface GetBotAllowlistResponse {
|
|
24200
|
+
/**
|
|
24201
|
+
* Allowlist setting of the bot
|
|
24202
|
+
*/
|
|
24203
|
+
setting: "ALL_WORKSPACE_USERS" | "SELECTED_USERS";
|
|
24204
|
+
users: {
|
|
24205
|
+
id: string;
|
|
24206
|
+
}[];
|
|
24207
|
+
}
|
|
24208
|
+
|
|
24209
|
+
interface UpdateBotAllowlistRequestHeaders {
|
|
24210
|
+
}
|
|
24211
|
+
interface UpdateBotAllowlistRequestQuery {
|
|
24212
|
+
}
|
|
24213
|
+
interface UpdateBotAllowlistRequestParams {
|
|
24214
|
+
botId: string;
|
|
24215
|
+
}
|
|
24216
|
+
interface UpdateBotAllowlistRequestBody {
|
|
24217
|
+
/**
|
|
24218
|
+
* Allowlist setting of the bot
|
|
24219
|
+
*/
|
|
24220
|
+
setting?: "ALL_WORKSPACE_USERS" | "SELECTED_USERS";
|
|
24221
|
+
users?: {
|
|
24222
|
+
/**
|
|
24223
|
+
* If `true`, the user should be added to the allowlist. If `false`, the user should be removed from the allowlist. This performs a partial update, so any existing users not included here will be kept in the allowlist
|
|
24224
|
+
*/
|
|
24225
|
+
[k: string]: boolean;
|
|
24226
|
+
};
|
|
24227
|
+
}
|
|
24228
|
+
type UpdateBotAllowlistInput = UpdateBotAllowlistRequestBody & UpdateBotAllowlistRequestHeaders & UpdateBotAllowlistRequestQuery & UpdateBotAllowlistRequestParams;
|
|
24229
|
+
interface UpdateBotAllowlistResponse {
|
|
24230
|
+
}
|
|
24231
|
+
|
|
24129
24232
|
interface ListWorkspaceInvoicesRequestHeaders {
|
|
24130
24233
|
}
|
|
24131
24234
|
interface ListWorkspaceInvoicesRequestQuery {
|
|
@@ -30735,9 +30838,9 @@ interface UpsertFileRequestBody {
|
|
|
30735
30838
|
generateMasterSummary?: boolean;
|
|
30736
30839
|
};
|
|
30737
30840
|
/**
|
|
30738
|
-
*
|
|
30841
|
+
* If not set, the default indexing stack will be used.
|
|
30739
30842
|
*/
|
|
30740
|
-
stack?: "realtime-v1";
|
|
30843
|
+
stack?: "legacy" | "realtime-v1";
|
|
30741
30844
|
vision?: {
|
|
30742
30845
|
/**
|
|
30743
30846
|
* (Team/Enterprise plan only, charged as AI Spend) For PDF files, set this option to `true` or pass an array with specific page numbers to use a vision-enabled LLM to transcribe each page of the PDF as standalone vectors and index them.
|
|
@@ -31350,6 +31453,7 @@ interface SearchFilesRequestQuery {
|
|
|
31350
31453
|
limit?: number;
|
|
31351
31454
|
consolidate?: boolean;
|
|
31352
31455
|
includeBreadcrumb?: boolean;
|
|
31456
|
+
withContext?: boolean;
|
|
31353
31457
|
}
|
|
31354
31458
|
interface SearchFilesRequestParams {
|
|
31355
31459
|
}
|
|
@@ -31419,8 +31523,14 @@ interface SearchFilesResponse {
|
|
|
31419
31523
|
*/
|
|
31420
31524
|
updatedAt: string;
|
|
31421
31525
|
};
|
|
31526
|
+
/**
|
|
31527
|
+
* Surrounding passages including the current passage, based on the requested `contextDepth`. Only returned if the `withContext` parameter is set to `true`. Not supported when using the `consolidate` option.
|
|
31528
|
+
*/
|
|
31422
31529
|
context?: {
|
|
31423
|
-
|
|
31530
|
+
/**
|
|
31531
|
+
* The ID of the vector that the context passage belongs to. Omitted for breadcrumbs.
|
|
31532
|
+
*/
|
|
31533
|
+
id?: string;
|
|
31424
31534
|
text: string;
|
|
31425
31535
|
/**
|
|
31426
31536
|
* Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
|
|
@@ -31429,7 +31539,7 @@ interface SearchFilesResponse {
|
|
|
31429
31539
|
/**
|
|
31430
31540
|
* The type of context passage
|
|
31431
31541
|
*/
|
|
31432
|
-
type: "preceding" | "subsequent" | "breadcrumb";
|
|
31542
|
+
type: "preceding" | "subsequent" | "current" | "breadcrumb";
|
|
31433
31543
|
}[];
|
|
31434
31544
|
}[];
|
|
31435
31545
|
}
|
|
@@ -35232,6 +35342,8 @@ declare class Client$1 {
|
|
|
35232
35342
|
readonly listBotApiKeys: (input: ListBotApiKeysInput) => Promise<ListBotApiKeysResponse>;
|
|
35233
35343
|
readonly createBotApiKey: (input: CreateBotApiKeyInput) => Promise<CreateBotApiKeyResponse>;
|
|
35234
35344
|
readonly deleteBotApiKey: (input: DeleteBotApiKeyInput) => Promise<DeleteBotApiKeyResponse>;
|
|
35345
|
+
readonly getBotAllowlist: (input: GetBotAllowlistInput) => Promise<GetBotAllowlistResponse>;
|
|
35346
|
+
readonly updateBotAllowlist: (input: UpdateBotAllowlistInput) => Promise<UpdateBotAllowlistResponse>;
|
|
35235
35347
|
readonly listWorkspaceInvoices: (input: ListWorkspaceInvoicesInput) => Promise<ListWorkspaceInvoicesResponse>;
|
|
35236
35348
|
readonly getUpcomingInvoice: (input: GetUpcomingInvoiceInput) => Promise<GetUpcomingInvoiceResponse>;
|
|
35237
35349
|
readonly chargeWorkspaceUnpaidInvoices: (input: ChargeWorkspaceUnpaidInvoicesInput) => Promise<ChargeWorkspaceUnpaidInvoicesResponse>;
|