@botpress/api 0.12.3 → 0.12.6
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/gen/state.d.ts +53 -0
- package/dist/index.js +58 -5
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +64 -5
package/dist/gen/state.d.ts
CHANGED
|
@@ -287,6 +287,18 @@ export declare const state: {
|
|
|
287
287
|
description: string;
|
|
288
288
|
additionalProperties: false;
|
|
289
289
|
};
|
|
290
|
+
conversationId: {
|
|
291
|
+
type: "string";
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
294
|
+
userId: {
|
|
295
|
+
type: "string";
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
messageId: {
|
|
299
|
+
type: "string";
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
290
302
|
};
|
|
291
303
|
required: string[];
|
|
292
304
|
title: string;
|
|
@@ -355,6 +367,21 @@ export declare const state: {
|
|
|
355
367
|
type: "string";
|
|
356
368
|
description: string;
|
|
357
369
|
};
|
|
370
|
+
conversationId: {
|
|
371
|
+
in: "query";
|
|
372
|
+
type: "string";
|
|
373
|
+
description: string;
|
|
374
|
+
};
|
|
375
|
+
userId: {
|
|
376
|
+
in: "query";
|
|
377
|
+
type: "string";
|
|
378
|
+
description: string;
|
|
379
|
+
};
|
|
380
|
+
messageId: {
|
|
381
|
+
in: "query";
|
|
382
|
+
type: "string";
|
|
383
|
+
description: string;
|
|
384
|
+
};
|
|
358
385
|
};
|
|
359
386
|
response: {
|
|
360
387
|
description: string;
|
|
@@ -3813,6 +3840,9 @@ export declare const state: {
|
|
|
3813
3840
|
identifier: {
|
|
3814
3841
|
type: "object";
|
|
3815
3842
|
properties: {
|
|
3843
|
+
fallbackHandlerScript: {
|
|
3844
|
+
type: "string";
|
|
3845
|
+
};
|
|
3816
3846
|
extractScript: {
|
|
3817
3847
|
type: "string";
|
|
3818
3848
|
};
|
|
@@ -4181,6 +4211,10 @@ export declare const state: {
|
|
|
4181
4211
|
type: "string";
|
|
4182
4212
|
nullable: true;
|
|
4183
4213
|
};
|
|
4214
|
+
fallbackHandlerScript: {
|
|
4215
|
+
type: "string";
|
|
4216
|
+
nullable: true;
|
|
4217
|
+
};
|
|
4184
4218
|
};
|
|
4185
4219
|
additionalProperties: false;
|
|
4186
4220
|
};
|
|
@@ -5128,6 +5162,9 @@ export declare const state: {
|
|
|
5128
5162
|
webhookId: {
|
|
5129
5163
|
type: "string";
|
|
5130
5164
|
};
|
|
5165
|
+
identifier: {
|
|
5166
|
+
type: "string";
|
|
5167
|
+
};
|
|
5131
5168
|
configuration: {
|
|
5132
5169
|
type: "object";
|
|
5133
5170
|
additionalProperties: true;
|
|
@@ -5419,6 +5456,10 @@ export declare const state: {
|
|
|
5419
5456
|
identifier: {
|
|
5420
5457
|
type: "object";
|
|
5421
5458
|
properties: {
|
|
5459
|
+
fallbackHandlerScript: {
|
|
5460
|
+
type: "string";
|
|
5461
|
+
description: string;
|
|
5462
|
+
};
|
|
5422
5463
|
extractScript: {
|
|
5423
5464
|
type: "string";
|
|
5424
5465
|
description: string;
|
|
@@ -6048,6 +6089,18 @@ export declare const state: {
|
|
|
6048
6089
|
additionalProperties: true;
|
|
6049
6090
|
description: string;
|
|
6050
6091
|
};
|
|
6092
|
+
conversationId: {
|
|
6093
|
+
type: "string";
|
|
6094
|
+
description: string;
|
|
6095
|
+
};
|
|
6096
|
+
userId: {
|
|
6097
|
+
type: "string";
|
|
6098
|
+
description: string;
|
|
6099
|
+
};
|
|
6100
|
+
messageId: {
|
|
6101
|
+
type: "string";
|
|
6102
|
+
description: string;
|
|
6103
|
+
};
|
|
6051
6104
|
};
|
|
6052
6105
|
required: string[];
|
|
6053
6106
|
description: string;
|
package/dist/index.js
CHANGED
|
@@ -426170,6 +426170,18 @@ var state = {
|
|
|
426170
426170
|
},
|
|
426171
426171
|
description: "Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.",
|
|
426172
426172
|
additionalProperties: false
|
|
426173
|
+
},
|
|
426174
|
+
conversationId: {
|
|
426175
|
+
type: "string",
|
|
426176
|
+
description: "ID of the [Conversation](#schema_conversation) to link the event to."
|
|
426177
|
+
},
|
|
426178
|
+
userId: {
|
|
426179
|
+
type: "string",
|
|
426180
|
+
description: "ID of the [User](#schema_user) to link the event to."
|
|
426181
|
+
},
|
|
426182
|
+
messageId: {
|
|
426183
|
+
type: "string",
|
|
426184
|
+
description: "ID of the [Message](#schema_message) to link the event to."
|
|
426173
426185
|
}
|
|
426174
426186
|
},
|
|
426175
426187
|
required: ["type", "payload"],
|
|
@@ -426238,6 +426250,21 @@ var state = {
|
|
|
426238
426250
|
in: "query",
|
|
426239
426251
|
type: "string",
|
|
426240
426252
|
description: "Filter by event type"
|
|
426253
|
+
},
|
|
426254
|
+
conversationId: {
|
|
426255
|
+
in: "query",
|
|
426256
|
+
type: "string",
|
|
426257
|
+
description: "Filter by conversation id"
|
|
426258
|
+
},
|
|
426259
|
+
userId: {
|
|
426260
|
+
in: "query",
|
|
426261
|
+
type: "string",
|
|
426262
|
+
description: "Filter by user id"
|
|
426263
|
+
},
|
|
426264
|
+
messageId: {
|
|
426265
|
+
in: "query",
|
|
426266
|
+
type: "string",
|
|
426267
|
+
description: "Filter by message id"
|
|
426241
426268
|
}
|
|
426242
426269
|
},
|
|
426243
426270
|
response: {
|
|
@@ -427271,7 +427298,7 @@ var state = {
|
|
|
427271
427298
|
properties: {
|
|
427272
427299
|
id: {
|
|
427273
427300
|
type: "string",
|
|
427274
|
-
description: "
|
|
427301
|
+
description: "ID of the [Integration](#schema_integration)"
|
|
427275
427302
|
},
|
|
427276
427303
|
name: {
|
|
427277
427304
|
type: "string",
|
|
@@ -429915,6 +429942,9 @@ var state = {
|
|
|
429915
429942
|
identifier: {
|
|
429916
429943
|
type: "object",
|
|
429917
429944
|
properties: {
|
|
429945
|
+
fallbackHandlerScript: {
|
|
429946
|
+
type: "string"
|
|
429947
|
+
},
|
|
429918
429948
|
extractScript: {
|
|
429919
429949
|
type: "string"
|
|
429920
429950
|
}
|
|
@@ -430282,6 +430312,10 @@ var state = {
|
|
|
430282
430312
|
extractScript: {
|
|
430283
430313
|
type: "string",
|
|
430284
430314
|
nullable: true
|
|
430315
|
+
},
|
|
430316
|
+
fallbackHandlerScript: {
|
|
430317
|
+
type: "string",
|
|
430318
|
+
nullable: true
|
|
430285
430319
|
}
|
|
430286
430320
|
},
|
|
430287
430321
|
additionalProperties: false
|
|
@@ -430506,7 +430540,7 @@ var state = {
|
|
|
430506
430540
|
properties: {
|
|
430507
430541
|
id: {
|
|
430508
430542
|
type: "string",
|
|
430509
|
-
description: "
|
|
430543
|
+
description: "ID of the [Integration](#schema_integration)"
|
|
430510
430544
|
},
|
|
430511
430545
|
name: {
|
|
430512
430546
|
type: "string",
|
|
@@ -431038,7 +431072,7 @@ var state = {
|
|
|
431038
431072
|
title: "Botpress API",
|
|
431039
431073
|
description: "API for Botpress Cloud",
|
|
431040
431074
|
server: "https://api.botpress.cloud",
|
|
431041
|
-
version: "0.12.
|
|
431075
|
+
version: "0.12.6",
|
|
431042
431076
|
prefix: "v1"
|
|
431043
431077
|
},
|
|
431044
431078
|
errors: [
|
|
@@ -431325,6 +431359,9 @@ var state = {
|
|
|
431325
431359
|
webhookId: {
|
|
431326
431360
|
type: "string"
|
|
431327
431361
|
},
|
|
431362
|
+
identifier: {
|
|
431363
|
+
type: "string"
|
|
431364
|
+
},
|
|
431328
431365
|
configuration: {
|
|
431329
431366
|
type: "object",
|
|
431330
431367
|
additionalProperties: true
|
|
@@ -431346,7 +431383,7 @@ var state = {
|
|
|
431346
431383
|
},
|
|
431347
431384
|
id: {
|
|
431348
431385
|
type: "string",
|
|
431349
|
-
description: "
|
|
431386
|
+
description: "ID of the [Integration](#schema_integration)"
|
|
431350
431387
|
},
|
|
431351
431388
|
createdAt: {
|
|
431352
431389
|
type: "string",
|
|
@@ -431639,7 +431676,7 @@ var state = {
|
|
|
431639
431676
|
properties: {
|
|
431640
431677
|
id: {
|
|
431641
431678
|
type: "string",
|
|
431642
|
-
description: "
|
|
431679
|
+
description: "ID of the [Integration](#schema_integration)"
|
|
431643
431680
|
},
|
|
431644
431681
|
createdAt: {
|
|
431645
431682
|
type: "string",
|
|
@@ -431654,6 +431691,10 @@ var state = {
|
|
|
431654
431691
|
identifier: {
|
|
431655
431692
|
type: "object",
|
|
431656
431693
|
properties: {
|
|
431694
|
+
fallbackHandlerScript: {
|
|
431695
|
+
type: "string",
|
|
431696
|
+
description: "VRL Script of the [Integration](#schema_integration) to handle incoming requests for a request that doesn't have an identifier"
|
|
431697
|
+
},
|
|
431657
431698
|
extractScript: {
|
|
431658
431699
|
type: "string",
|
|
431659
431700
|
description: "VRL Script of the [Integration](#schema_integration) to extract the identifier from an incoming webhook often use for OAuth"
|
|
@@ -432348,6 +432389,18 @@ var state = {
|
|
|
432348
432389
|
type: "object",
|
|
432349
432390
|
additionalProperties: true,
|
|
432350
432391
|
description: "Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api."
|
|
432392
|
+
},
|
|
432393
|
+
conversationId: {
|
|
432394
|
+
type: "string",
|
|
432395
|
+
description: "ID of the [Conversation](#schema_conversation) to link the event to."
|
|
432396
|
+
},
|
|
432397
|
+
userId: {
|
|
432398
|
+
type: "string",
|
|
432399
|
+
description: "ID of the [User](#schema_user) to link the event to."
|
|
432400
|
+
},
|
|
432401
|
+
messageId: {
|
|
432402
|
+
type: "string",
|
|
432403
|
+
description: "ID of the [Message](#schema_message) to link the event to."
|
|
432351
432404
|
}
|
|
432352
432405
|
},
|
|
432353
432406
|
required: ["id", "createdAt", "type", "payload"],
|