@botpress/cognitive 0.1.13 → 0.1.15
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/.turbo/turbo-build.log +5 -5
- package/dist/index.d.ts +118 -21
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cognitive@0.1.
|
|
2
|
+
> @botpress/cognitive@0.1.15 build /home/runner/work/botpress/botpress/packages/cognitive
|
|
3
3
|
> pnpm build:type && pnpm build:neutral && size-limit
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cognitive@0.1.
|
|
6
|
+
> @botpress/cognitive@0.1.15 build:type /home/runner/work/botpress/botpress/packages/cognitive
|
|
7
7
|
> tsup --tsconfig tsconfig.build.json ./src/index.ts --dts-resolve --dts-only --clean
|
|
8
8
|
|
|
9
9
|
CLI Building entry: ./src/index.ts
|
|
10
10
|
CLI Using tsconfig: tsconfig.build.json
|
|
11
11
|
CLI tsup v8.0.2
|
|
12
12
|
DTS Build start
|
|
13
|
-
DTS ⚡️ Build success in
|
|
14
|
-
DTS dist/index.d.ts
|
|
13
|
+
DTS ⚡️ Build success in 10556ms
|
|
14
|
+
DTS dist/index.d.ts 525.26 KB
|
|
15
15
|
|
|
16
|
-
> @botpress/cognitive@0.1.
|
|
16
|
+
> @botpress/cognitive@0.1.15 build:neutral /home/runner/work/botpress/botpress/packages/cognitive
|
|
17
17
|
> ts-node -T ./build.ts --neutral
|
|
18
18
|
|
|
19
19
|
Done
|
package/dist/index.d.ts
CHANGED
|
@@ -1137,6 +1137,10 @@ interface UpsertFileRequestBody$1 {
|
|
|
1137
1137
|
*/
|
|
1138
1138
|
generateMasterSummary?: boolean;
|
|
1139
1139
|
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Internal setting, cannot be set manually.
|
|
1142
|
+
*/
|
|
1143
|
+
stack?: "realtime-v1";
|
|
1140
1144
|
vision?: {
|
|
1141
1145
|
/**
|
|
1142
1146
|
* (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.
|
|
@@ -4184,8 +4188,16 @@ interface ListPublicIntegrationsRequestHeaders {
|
|
|
4184
4188
|
}
|
|
4185
4189
|
interface ListPublicIntegrationsRequestQuery {
|
|
4186
4190
|
nextToken?: string;
|
|
4191
|
+
limit?: number;
|
|
4187
4192
|
name?: string;
|
|
4188
4193
|
version?: string;
|
|
4194
|
+
interfaceId?: string;
|
|
4195
|
+
interfaceName?: string;
|
|
4196
|
+
installedByBotId?: string;
|
|
4197
|
+
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected";
|
|
4198
|
+
search?: string;
|
|
4199
|
+
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount";
|
|
4200
|
+
direction?: "asc" | "desc";
|
|
4189
4201
|
}
|
|
4190
4202
|
interface ListPublicIntegrationsRequestParams {
|
|
4191
4203
|
}
|
|
@@ -4227,7 +4239,7 @@ interface ListPublicIntegrationsResponse {
|
|
|
4227
4239
|
*/
|
|
4228
4240
|
iconUrl: string;
|
|
4229
4241
|
/**
|
|
4230
|
-
*
|
|
4242
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
4231
4243
|
*/
|
|
4232
4244
|
public: boolean;
|
|
4233
4245
|
/**
|
|
@@ -4243,6 +4255,31 @@ interface ListPublicIntegrationsResponse {
|
|
|
4243
4255
|
installs: number;
|
|
4244
4256
|
views: number;
|
|
4245
4257
|
};
|
|
4258
|
+
/**
|
|
4259
|
+
* Metadata about which fields matched the search criteria
|
|
4260
|
+
*/
|
|
4261
|
+
matchedOn?: {
|
|
4262
|
+
/**
|
|
4263
|
+
* Whether the integration name matched the search term
|
|
4264
|
+
*/
|
|
4265
|
+
name?: boolean;
|
|
4266
|
+
/**
|
|
4267
|
+
* Whether the integration title matched the search term
|
|
4268
|
+
*/
|
|
4269
|
+
title?: boolean;
|
|
4270
|
+
/**
|
|
4271
|
+
* Whether the integration description matched the search term
|
|
4272
|
+
*/
|
|
4273
|
+
description?: boolean;
|
|
4274
|
+
/**
|
|
4275
|
+
* Action names that matched the search term
|
|
4276
|
+
*/
|
|
4277
|
+
actions?: string[];
|
|
4278
|
+
/**
|
|
4279
|
+
* Interface names that matched the search term
|
|
4280
|
+
*/
|
|
4281
|
+
interfaces?: string[];
|
|
4282
|
+
};
|
|
4246
4283
|
}[];
|
|
4247
4284
|
meta: {
|
|
4248
4285
|
/**
|
|
@@ -4613,7 +4650,7 @@ interface GetPublicIntegrationByIdResponse {
|
|
|
4613
4650
|
*/
|
|
4614
4651
|
readmeUrl: string;
|
|
4615
4652
|
/**
|
|
4616
|
-
*
|
|
4653
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
4617
4654
|
*/
|
|
4618
4655
|
public: boolean;
|
|
4619
4656
|
/**
|
|
@@ -4998,7 +5035,7 @@ interface GetPublicIntegrationResponse {
|
|
|
4998
5035
|
*/
|
|
4999
5036
|
readmeUrl: string;
|
|
5000
5037
|
/**
|
|
5001
|
-
*
|
|
5038
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
5002
5039
|
*/
|
|
5003
5040
|
public: boolean;
|
|
5004
5041
|
/**
|
|
@@ -5284,7 +5321,7 @@ interface CreateBotResponse {
|
|
|
5284
5321
|
*/
|
|
5285
5322
|
iconUrl: string;
|
|
5286
5323
|
/**
|
|
5287
|
-
*
|
|
5324
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
5288
5325
|
*/
|
|
5289
5326
|
public: boolean;
|
|
5290
5327
|
/**
|
|
@@ -5719,6 +5756,7 @@ interface UpdateBotRequestBody {
|
|
|
5719
5756
|
url: string;
|
|
5720
5757
|
name: string;
|
|
5721
5758
|
}[];
|
|
5759
|
+
layers?: string[];
|
|
5722
5760
|
}
|
|
5723
5761
|
type UpdateBotInput = UpdateBotRequestBody & UpdateBotRequestHeaders & UpdateBotRequestQuery & UpdateBotRequestParams;
|
|
5724
5762
|
interface UpdateBotResponse {
|
|
@@ -5787,7 +5825,7 @@ interface UpdateBotResponse {
|
|
|
5787
5825
|
*/
|
|
5788
5826
|
iconUrl: string;
|
|
5789
5827
|
/**
|
|
5790
|
-
*
|
|
5828
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
5791
5829
|
*/
|
|
5792
5830
|
public: boolean;
|
|
5793
5831
|
/**
|
|
@@ -6164,7 +6202,7 @@ interface GetBotResponse {
|
|
|
6164
6202
|
*/
|
|
6165
6203
|
iconUrl: string;
|
|
6166
6204
|
/**
|
|
6167
|
-
*
|
|
6205
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
6168
6206
|
*/
|
|
6169
6207
|
public: boolean;
|
|
6170
6208
|
/**
|
|
@@ -6418,7 +6456,7 @@ interface GetBotLogsRequestHeaders {
|
|
|
6418
6456
|
}
|
|
6419
6457
|
interface GetBotLogsRequestQuery {
|
|
6420
6458
|
timeStart: string;
|
|
6421
|
-
timeEnd
|
|
6459
|
+
timeEnd?: string;
|
|
6422
6460
|
level?: string;
|
|
6423
6461
|
userId?: string;
|
|
6424
6462
|
workflowId?: string;
|
|
@@ -7738,7 +7776,7 @@ interface CreateIntegrationRequestBody {
|
|
|
7738
7776
|
*/
|
|
7739
7777
|
description?: string;
|
|
7740
7778
|
/**
|
|
7741
|
-
*
|
|
7779
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
7742
7780
|
*/
|
|
7743
7781
|
public?: boolean;
|
|
7744
7782
|
layers?: string[];
|
|
@@ -8095,7 +8133,7 @@ interface CreateIntegrationResponse {
|
|
|
8095
8133
|
*/
|
|
8096
8134
|
readmeUrl: string;
|
|
8097
8135
|
/**
|
|
8098
|
-
*
|
|
8136
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
8099
8137
|
*/
|
|
8100
8138
|
public: boolean;
|
|
8101
8139
|
/**
|
|
@@ -8418,7 +8456,7 @@ interface ValidateIntegrationCreationRequestBody {
|
|
|
8418
8456
|
*/
|
|
8419
8457
|
description?: string;
|
|
8420
8458
|
/**
|
|
8421
|
-
*
|
|
8459
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
8422
8460
|
*/
|
|
8423
8461
|
public?: boolean;
|
|
8424
8462
|
layers?: string[];
|
|
@@ -8729,7 +8767,7 @@ interface UpdateIntegrationRequestBody {
|
|
|
8729
8767
|
*/
|
|
8730
8768
|
url?: string | null;
|
|
8731
8769
|
/**
|
|
8732
|
-
*
|
|
8770
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
8733
8771
|
*/
|
|
8734
8772
|
public?: boolean;
|
|
8735
8773
|
layers?: string[];
|
|
@@ -9086,7 +9124,7 @@ interface UpdateIntegrationResponse {
|
|
|
9086
9124
|
*/
|
|
9087
9125
|
readmeUrl: string;
|
|
9088
9126
|
/**
|
|
9089
|
-
*
|
|
9127
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
9090
9128
|
*/
|
|
9091
9129
|
public: boolean;
|
|
9092
9130
|
/**
|
|
@@ -9402,7 +9440,7 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
9402
9440
|
*/
|
|
9403
9441
|
url?: string | null;
|
|
9404
9442
|
/**
|
|
9405
|
-
*
|
|
9443
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
9406
9444
|
*/
|
|
9407
9445
|
public?: boolean;
|
|
9408
9446
|
layers?: string[];
|
|
@@ -9420,12 +9458,12 @@ interface ListIntegrationsRequestQuery {
|
|
|
9420
9458
|
version?: string;
|
|
9421
9459
|
interfaceId?: string;
|
|
9422
9460
|
interfaceName?: string;
|
|
9423
|
-
visibility?: "public" | "private";
|
|
9424
9461
|
installedByBotId?: string;
|
|
9425
9462
|
verificationStatus?: "unapproved" | "pending" | "approved" | "rejected";
|
|
9426
9463
|
search?: string;
|
|
9427
9464
|
sortBy?: "popularity" | "name" | "createdAt" | "updatedAt" | "installCount";
|
|
9428
9465
|
direction?: "asc" | "desc";
|
|
9466
|
+
visibility?: "public" | "private";
|
|
9429
9467
|
dev?: boolean;
|
|
9430
9468
|
}
|
|
9431
9469
|
interface ListIntegrationsRequestParams {
|
|
@@ -9468,7 +9506,7 @@ interface ListIntegrationsResponse {
|
|
|
9468
9506
|
*/
|
|
9469
9507
|
iconUrl: string;
|
|
9470
9508
|
/**
|
|
9471
|
-
*
|
|
9509
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
9472
9510
|
*/
|
|
9473
9511
|
public: boolean;
|
|
9474
9512
|
/**
|
|
@@ -9875,7 +9913,7 @@ interface GetIntegrationResponse {
|
|
|
9875
9913
|
*/
|
|
9876
9914
|
readmeUrl: string;
|
|
9877
9915
|
/**
|
|
9878
|
-
*
|
|
9916
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
9879
9917
|
*/
|
|
9880
9918
|
public: boolean;
|
|
9881
9919
|
/**
|
|
@@ -9893,7 +9931,7 @@ interface GetIntegrationLogsRequestHeaders {
|
|
|
9893
9931
|
}
|
|
9894
9932
|
interface GetIntegrationLogsRequestQuery {
|
|
9895
9933
|
timeStart: string;
|
|
9896
|
-
timeEnd
|
|
9934
|
+
timeEnd?: string;
|
|
9897
9935
|
level?: string;
|
|
9898
9936
|
userId?: string;
|
|
9899
9937
|
conversationId?: string;
|
|
@@ -10279,7 +10317,7 @@ interface GetIntegrationByNameResponse {
|
|
|
10279
10317
|
*/
|
|
10280
10318
|
readmeUrl: string;
|
|
10281
10319
|
/**
|
|
10282
|
-
*
|
|
10320
|
+
* Indicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version.
|
|
10283
10321
|
*/
|
|
10284
10322
|
public: boolean;
|
|
10285
10323
|
/**
|
|
@@ -11249,6 +11287,10 @@ interface CreatePluginRequestBody {
|
|
|
11249
11287
|
* Description of the plugin. This is the description that will be displayed in the UI
|
|
11250
11288
|
*/
|
|
11251
11289
|
description?: string;
|
|
11290
|
+
/**
|
|
11291
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
11292
|
+
*/
|
|
11293
|
+
public?: boolean;
|
|
11252
11294
|
}
|
|
11253
11295
|
type CreatePluginInput = CreatePluginRequestBody & CreatePluginRequestHeaders & CreatePluginRequestQuery & CreatePluginRequestParams;
|
|
11254
11296
|
interface CreatePluginResponse {
|
|
@@ -11427,6 +11469,10 @@ interface CreatePluginResponse {
|
|
|
11427
11469
|
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
11428
11470
|
*/
|
|
11429
11471
|
readmeUrl: string;
|
|
11472
|
+
/**
|
|
11473
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
11474
|
+
*/
|
|
11475
|
+
public: boolean;
|
|
11430
11476
|
};
|
|
11431
11477
|
}
|
|
11432
11478
|
|
|
@@ -11616,6 +11662,10 @@ interface GetPluginResponse {
|
|
|
11616
11662
|
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
11617
11663
|
*/
|
|
11618
11664
|
readmeUrl: string;
|
|
11665
|
+
/**
|
|
11666
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
11667
|
+
*/
|
|
11668
|
+
public: boolean;
|
|
11619
11669
|
};
|
|
11620
11670
|
}
|
|
11621
11671
|
|
|
@@ -11806,6 +11856,10 @@ interface GetPluginByNameResponse {
|
|
|
11806
11856
|
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
11807
11857
|
*/
|
|
11808
11858
|
readmeUrl: string;
|
|
11859
|
+
/**
|
|
11860
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
11861
|
+
*/
|
|
11862
|
+
public: boolean;
|
|
11809
11863
|
};
|
|
11810
11864
|
}
|
|
11811
11865
|
|
|
@@ -11971,6 +12025,10 @@ interface UpdatePluginRequestBody {
|
|
|
11971
12025
|
* Description of the plugin. This is the description that will be displayed in the UI
|
|
11972
12026
|
*/
|
|
11973
12027
|
description?: string;
|
|
12028
|
+
/**
|
|
12029
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
12030
|
+
*/
|
|
12031
|
+
public?: boolean;
|
|
11974
12032
|
}
|
|
11975
12033
|
type UpdatePluginInput = UpdatePluginRequestBody & UpdatePluginRequestHeaders & UpdatePluginRequestQuery & UpdatePluginRequestParams;
|
|
11976
12034
|
interface UpdatePluginResponse {
|
|
@@ -12149,6 +12207,10 @@ interface UpdatePluginResponse {
|
|
|
12149
12207
|
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
12150
12208
|
*/
|
|
12151
12209
|
readmeUrl: string;
|
|
12210
|
+
/**
|
|
12211
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
12212
|
+
*/
|
|
12213
|
+
public: boolean;
|
|
12152
12214
|
};
|
|
12153
12215
|
}
|
|
12154
12216
|
|
|
@@ -12214,6 +12276,10 @@ interface ListPluginsResponse {
|
|
|
12214
12276
|
* URL of the readme of the plugin. This is the readme that will be displayed in the UI
|
|
12215
12277
|
*/
|
|
12216
12278
|
readmeUrl: string;
|
|
12279
|
+
/**
|
|
12280
|
+
* Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
|
|
12281
|
+
*/
|
|
12282
|
+
public: boolean;
|
|
12217
12283
|
}[];
|
|
12218
12284
|
meta: {
|
|
12219
12285
|
/**
|
|
@@ -12549,6 +12615,10 @@ interface UpsertFileRequestBody {
|
|
|
12549
12615
|
*/
|
|
12550
12616
|
generateMasterSummary?: boolean;
|
|
12551
12617
|
};
|
|
12618
|
+
/**
|
|
12619
|
+
* Internal setting, cannot be set manually.
|
|
12620
|
+
*/
|
|
12621
|
+
stack?: "realtime-v1";
|
|
12552
12622
|
vision?: {
|
|
12553
12623
|
/**
|
|
12554
12624
|
* (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.
|
|
@@ -13175,6 +13245,18 @@ interface SearchFilesResponse {
|
|
|
13175
13245
|
*/
|
|
13176
13246
|
updatedAt: string;
|
|
13177
13247
|
};
|
|
13248
|
+
context?: {
|
|
13249
|
+
id: string;
|
|
13250
|
+
text: string;
|
|
13251
|
+
/**
|
|
13252
|
+
* Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs.
|
|
13253
|
+
*/
|
|
13254
|
+
offset?: number;
|
|
13255
|
+
/**
|
|
13256
|
+
* The type of context passage
|
|
13257
|
+
*/
|
|
13258
|
+
type: "preceding" | "subsequent" | "breadcrumb";
|
|
13259
|
+
}[];
|
|
13178
13260
|
}[];
|
|
13179
13261
|
}
|
|
13180
13262
|
|
|
@@ -15304,8 +15386,16 @@ declare class Client extends Client$1 implements IClient {
|
|
|
15304
15386
|
};
|
|
15305
15387
|
}>;
|
|
15306
15388
|
publicIntegrations: (props: {
|
|
15389
|
+
search?: string | undefined;
|
|
15307
15390
|
name?: string | undefined;
|
|
15391
|
+
limit?: number | undefined;
|
|
15308
15392
|
version?: string | undefined;
|
|
15393
|
+
interfaceId?: string | undefined;
|
|
15394
|
+
interfaceName?: string | undefined;
|
|
15395
|
+
installedByBotId?: string | undefined;
|
|
15396
|
+
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
15397
|
+
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
15398
|
+
direction?: ("asc" | "desc") | undefined;
|
|
15309
15399
|
}) => AsyncCollection<{
|
|
15310
15400
|
id: string;
|
|
15311
15401
|
name: string;
|
|
@@ -15326,6 +15416,13 @@ declare class Client extends Client$1 implements IClient {
|
|
|
15326
15416
|
installs: number;
|
|
15327
15417
|
views: number;
|
|
15328
15418
|
};
|
|
15419
|
+
matchedOn?: {
|
|
15420
|
+
name?: boolean;
|
|
15421
|
+
title?: boolean;
|
|
15422
|
+
description?: boolean;
|
|
15423
|
+
actions?: string[];
|
|
15424
|
+
interfaces?: string[];
|
|
15425
|
+
};
|
|
15329
15426
|
}>;
|
|
15330
15427
|
bots: (props: {
|
|
15331
15428
|
tags?: {
|
|
@@ -15374,16 +15471,16 @@ declare class Client extends Client$1 implements IClient {
|
|
|
15374
15471
|
integrations: (props: {
|
|
15375
15472
|
search?: string | undefined;
|
|
15376
15473
|
name?: string | undefined;
|
|
15377
|
-
version?: string | undefined;
|
|
15378
|
-
dev?: boolean | undefined;
|
|
15379
15474
|
limit?: number | undefined;
|
|
15475
|
+
version?: string | undefined;
|
|
15380
15476
|
interfaceId?: string | undefined;
|
|
15381
15477
|
interfaceName?: string | undefined;
|
|
15382
|
-
visibility?: ("public" | "private") | undefined;
|
|
15383
15478
|
installedByBotId?: string | undefined;
|
|
15384
15479
|
verificationStatus?: ("unapproved" | "pending" | "approved" | "rejected") | undefined;
|
|
15385
15480
|
sortBy?: ("popularity" | "name" | "createdAt" | "updatedAt" | "installCount") | undefined;
|
|
15386
15481
|
direction?: ("asc" | "desc") | undefined;
|
|
15482
|
+
dev?: boolean | undefined;
|
|
15483
|
+
visibility?: ("public" | "private") | undefined;
|
|
15387
15484
|
}) => AsyncCollection<{
|
|
15388
15485
|
id: string;
|
|
15389
15486
|
name: string;
|