@botpress/client 1.18.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 +127 -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 {
|
|
@@ -5509,6 +5513,7 @@ interface CreateBotResponse$1 {
|
|
|
5509
5513
|
interfaces?: {
|
|
5510
5514
|
[k: string]: {
|
|
5511
5515
|
integrationId: string;
|
|
5516
|
+
interfaceId: string;
|
|
5512
5517
|
};
|
|
5513
5518
|
};
|
|
5514
5519
|
/**
|
|
@@ -6134,6 +6139,7 @@ interface UpdateBotResponse$1 {
|
|
|
6134
6139
|
interfaces?: {
|
|
6135
6140
|
[k: string]: {
|
|
6136
6141
|
integrationId: string;
|
|
6142
|
+
interfaceId: string;
|
|
6137
6143
|
};
|
|
6138
6144
|
};
|
|
6139
6145
|
/**
|
|
@@ -6591,6 +6597,7 @@ interface GetBotResponse$1 {
|
|
|
6591
6597
|
interfaces?: {
|
|
6592
6598
|
[k: string]: {
|
|
6593
6599
|
integrationId: string;
|
|
6600
|
+
interfaceId: string;
|
|
6594
6601
|
};
|
|
6595
6602
|
};
|
|
6596
6603
|
/**
|
|
@@ -7363,6 +7370,49 @@ type DeleteBotApiKeyInput$1 = DeleteBotApiKeyRequestBody$1 & DeleteBotApiKeyRequ
|
|
|
7363
7370
|
interface DeleteBotApiKeyResponse$1 {
|
|
7364
7371
|
}
|
|
7365
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
|
+
|
|
7366
7416
|
interface ListWorkspaceInvoicesRequestHeaders$1 {
|
|
7367
7417
|
}
|
|
7368
7418
|
interface ListWorkspaceInvoicesRequestQuery$1 {
|
|
@@ -13939,6 +13989,8 @@ declare class Client$7 {
|
|
|
13939
13989
|
readonly listBotApiKeys: (input: ListBotApiKeysInput$1) => Promise<ListBotApiKeysResponse$1>;
|
|
13940
13990
|
readonly createBotApiKey: (input: CreateBotApiKeyInput$1) => Promise<CreateBotApiKeyResponse$1>;
|
|
13941
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>;
|
|
13942
13994
|
readonly listWorkspaceInvoices: (input: ListWorkspaceInvoicesInput$1) => Promise<ListWorkspaceInvoicesResponse$1>;
|
|
13943
13995
|
readonly getUpcomingInvoice: (input: GetUpcomingInvoiceInput$1) => Promise<GetUpcomingInvoiceResponse$1>;
|
|
13944
13996
|
readonly chargeWorkspaceUnpaidInvoices: (input: ChargeWorkspaceUnpaidInvoicesInput$1) => Promise<ChargeWorkspaceUnpaidInvoicesResponse$1>;
|
|
@@ -14308,9 +14360,9 @@ interface UpsertFileRequestBody$1 {
|
|
|
14308
14360
|
generateMasterSummary?: boolean;
|
|
14309
14361
|
};
|
|
14310
14362
|
/**
|
|
14311
|
-
*
|
|
14363
|
+
* If not set, the default indexing stack will be used.
|
|
14312
14364
|
*/
|
|
14313
|
-
stack?: "realtime-v1";
|
|
14365
|
+
stack?: "legacy" | "realtime-v1";
|
|
14314
14366
|
vision?: {
|
|
14315
14367
|
/**
|
|
14316
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.
|
|
@@ -14923,6 +14975,7 @@ interface SearchFilesRequestQuery$1 {
|
|
|
14923
14975
|
limit?: number;
|
|
14924
14976
|
consolidate?: boolean;
|
|
14925
14977
|
includeBreadcrumb?: boolean;
|
|
14978
|
+
withContext?: boolean;
|
|
14926
14979
|
}
|
|
14927
14980
|
interface SearchFilesRequestParams$1 {
|
|
14928
14981
|
}
|
|
@@ -14992,8 +15045,14 @@ interface SearchFilesResponse$1 {
|
|
|
14992
15045
|
*/
|
|
14993
15046
|
updatedAt: string;
|
|
14994
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
|
+
*/
|
|
14995
15051
|
context?: {
|
|
14996
|
-
|
|
15052
|
+
/**
|
|
15053
|
+
* The ID of the vector that the context passage belongs to. Omitted for breadcrumbs.
|
|
15054
|
+
*/
|
|
15055
|
+
id?: string;
|
|
14997
15056
|
text: string;
|
|
14998
15057
|
/**
|
|
14999
15058
|
* Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
|
|
@@ -15002,7 +15061,7 @@ interface SearchFilesResponse$1 {
|
|
|
15002
15061
|
/**
|
|
15003
15062
|
* The type of context passage
|
|
15004
15063
|
*/
|
|
15005
|
-
type: "preceding" | "subsequent" | "breadcrumb";
|
|
15064
|
+
type: "preceding" | "subsequent" | "current" | "breadcrumb";
|
|
15006
15065
|
}[];
|
|
15007
15066
|
}[];
|
|
15008
15067
|
}
|
|
@@ -19648,6 +19707,10 @@ interface GetOrCreateWorkflowRequestBody {
|
|
|
19648
19707
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
19649
19708
|
*/
|
|
19650
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[];
|
|
19651
19714
|
}
|
|
19652
19715
|
type GetOrCreateWorkflowInput = GetOrCreateWorkflowRequestBody & GetOrCreateWorkflowRequestHeaders & GetOrCreateWorkflowRequestQuery & GetOrCreateWorkflowRequestParams;
|
|
19653
19716
|
interface GetOrCreateWorkflowResponse {
|
|
@@ -22266,6 +22329,7 @@ interface CreateBotResponse {
|
|
|
22266
22329
|
interfaces?: {
|
|
22267
22330
|
[k: string]: {
|
|
22268
22331
|
integrationId: string;
|
|
22332
|
+
interfaceId: string;
|
|
22269
22333
|
};
|
|
22270
22334
|
};
|
|
22271
22335
|
/**
|
|
@@ -22891,6 +22955,7 @@ interface UpdateBotResponse {
|
|
|
22891
22955
|
interfaces?: {
|
|
22892
22956
|
[k: string]: {
|
|
22893
22957
|
integrationId: string;
|
|
22958
|
+
interfaceId: string;
|
|
22894
22959
|
};
|
|
22895
22960
|
};
|
|
22896
22961
|
/**
|
|
@@ -23348,6 +23413,7 @@ interface GetBotResponse {
|
|
|
23348
23413
|
interfaces?: {
|
|
23349
23414
|
[k: string]: {
|
|
23350
23415
|
integrationId: string;
|
|
23416
|
+
interfaceId: string;
|
|
23351
23417
|
};
|
|
23352
23418
|
};
|
|
23353
23419
|
/**
|
|
@@ -24120,6 +24186,49 @@ type DeleteBotApiKeyInput = DeleteBotApiKeyRequestBody & DeleteBotApiKeyRequestH
|
|
|
24120
24186
|
interface DeleteBotApiKeyResponse {
|
|
24121
24187
|
}
|
|
24122
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
|
+
|
|
24123
24232
|
interface ListWorkspaceInvoicesRequestHeaders {
|
|
24124
24233
|
}
|
|
24125
24234
|
interface ListWorkspaceInvoicesRequestQuery {
|
|
@@ -30729,9 +30838,9 @@ interface UpsertFileRequestBody {
|
|
|
30729
30838
|
generateMasterSummary?: boolean;
|
|
30730
30839
|
};
|
|
30731
30840
|
/**
|
|
30732
|
-
*
|
|
30841
|
+
* If not set, the default indexing stack will be used.
|
|
30733
30842
|
*/
|
|
30734
|
-
stack?: "realtime-v1";
|
|
30843
|
+
stack?: "legacy" | "realtime-v1";
|
|
30735
30844
|
vision?: {
|
|
30736
30845
|
/**
|
|
30737
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.
|
|
@@ -31344,6 +31453,7 @@ interface SearchFilesRequestQuery {
|
|
|
31344
31453
|
limit?: number;
|
|
31345
31454
|
consolidate?: boolean;
|
|
31346
31455
|
includeBreadcrumb?: boolean;
|
|
31456
|
+
withContext?: boolean;
|
|
31347
31457
|
}
|
|
31348
31458
|
interface SearchFilesRequestParams {
|
|
31349
31459
|
}
|
|
@@ -31413,8 +31523,14 @@ interface SearchFilesResponse {
|
|
|
31413
31523
|
*/
|
|
31414
31524
|
updatedAt: string;
|
|
31415
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
|
+
*/
|
|
31416
31529
|
context?: {
|
|
31417
|
-
|
|
31530
|
+
/**
|
|
31531
|
+
* The ID of the vector that the context passage belongs to. Omitted for breadcrumbs.
|
|
31532
|
+
*/
|
|
31533
|
+
id?: string;
|
|
31418
31534
|
text: string;
|
|
31419
31535
|
/**
|
|
31420
31536
|
* Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
|
|
@@ -31423,7 +31539,7 @@ interface SearchFilesResponse {
|
|
|
31423
31539
|
/**
|
|
31424
31540
|
* The type of context passage
|
|
31425
31541
|
*/
|
|
31426
|
-
type: "preceding" | "subsequent" | "breadcrumb";
|
|
31542
|
+
type: "preceding" | "subsequent" | "current" | "breadcrumb";
|
|
31427
31543
|
}[];
|
|
31428
31544
|
}[];
|
|
31429
31545
|
}
|
|
@@ -33378,6 +33494,7 @@ interface Bot {
|
|
|
33378
33494
|
interfaces?: {
|
|
33379
33495
|
[k: string]: {
|
|
33380
33496
|
integrationId: string;
|
|
33497
|
+
interfaceId: string;
|
|
33381
33498
|
};
|
|
33382
33499
|
};
|
|
33383
33500
|
/**
|
|
@@ -35225,6 +35342,8 @@ declare class Client$1 {
|
|
|
35225
35342
|
readonly listBotApiKeys: (input: ListBotApiKeysInput) => Promise<ListBotApiKeysResponse>;
|
|
35226
35343
|
readonly createBotApiKey: (input: CreateBotApiKeyInput) => Promise<CreateBotApiKeyResponse>;
|
|
35227
35344
|
readonly deleteBotApiKey: (input: DeleteBotApiKeyInput) => Promise<DeleteBotApiKeyResponse>;
|
|
35345
|
+
readonly getBotAllowlist: (input: GetBotAllowlistInput) => Promise<GetBotAllowlistResponse>;
|
|
35346
|
+
readonly updateBotAllowlist: (input: UpdateBotAllowlistInput) => Promise<UpdateBotAllowlistResponse>;
|
|
35228
35347
|
readonly listWorkspaceInvoices: (input: ListWorkspaceInvoicesInput) => Promise<ListWorkspaceInvoicesResponse>;
|
|
35229
35348
|
readonly getUpcomingInvoice: (input: GetUpcomingInvoiceInput) => Promise<GetUpcomingInvoiceResponse>;
|
|
35230
35349
|
readonly chargeWorkspaceUnpaidInvoices: (input: ChargeWorkspaceUnpaidInvoicesInput) => Promise<ChargeWorkspaceUnpaidInvoicesResponse>;
|