@botpress/api 1.66.0 → 1.68.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/index.js +429 -28
- package/dist/src/gen/admin/state.d.ts +4 -0
- package/dist/src/gen/billing/state.d.ts +4 -0
- package/dist/src/gen/files/state.d.ts +4 -0
- package/dist/src/gen/runtime/state.d.ts +181 -7
- package/dist/src/gen/state.d.ts +162 -7
- package/dist/src/gen/tables/state.d.ts +4 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -276890,6 +276890,199 @@ var state = {
|
|
|
276890
276890
|
"documented"
|
|
276891
276891
|
]
|
|
276892
276892
|
},
|
|
276893
|
+
"initializeIncomingMessage": {
|
|
276894
|
+
"name": "initializeIncomingMessage",
|
|
276895
|
+
"description": "Initializes a user, conversation and sends a message to the conversation.",
|
|
276896
|
+
"method": "post",
|
|
276897
|
+
"path": "/v1/chat/initialize-incoming-message",
|
|
276898
|
+
"parameters": {
|
|
276899
|
+
"x-bot-id": {
|
|
276900
|
+
"in": "header",
|
|
276901
|
+
"description": "Bot id",
|
|
276902
|
+
"type": "string",
|
|
276903
|
+
"required": true
|
|
276904
|
+
},
|
|
276905
|
+
"x-integration-id": {
|
|
276906
|
+
"in": "header",
|
|
276907
|
+
"description": "Integration id",
|
|
276908
|
+
"type": "string",
|
|
276909
|
+
"required": false
|
|
276910
|
+
},
|
|
276911
|
+
"x-integration-alias": {
|
|
276912
|
+
"in": "header",
|
|
276913
|
+
"description": "Integration alias",
|
|
276914
|
+
"type": "string",
|
|
276915
|
+
"required": false
|
|
276916
|
+
}
|
|
276917
|
+
},
|
|
276918
|
+
"section": "message",
|
|
276919
|
+
"requestBody": {
|
|
276920
|
+
"description": "Message data with related conversation and user",
|
|
276921
|
+
"schema": {
|
|
276922
|
+
"type": "object",
|
|
276923
|
+
"properties": {
|
|
276924
|
+
"userId": {
|
|
276925
|
+
"type": "string"
|
|
276926
|
+
},
|
|
276927
|
+
"user": {
|
|
276928
|
+
"type": "object",
|
|
276929
|
+
"properties": {
|
|
276930
|
+
"tags": {
|
|
276931
|
+
"type": "object",
|
|
276932
|
+
"additionalProperties": {
|
|
276933
|
+
"type": "string",
|
|
276934
|
+
"maxLength": 500
|
|
276935
|
+
},
|
|
276936
|
+
"description": "Tags for the [User](#schema_user)"
|
|
276937
|
+
},
|
|
276938
|
+
"integrationName": {
|
|
276939
|
+
"type": "string",
|
|
276940
|
+
"maxLength": 200,
|
|
276941
|
+
"description": "[DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.",
|
|
276942
|
+
"deprecated": true
|
|
276943
|
+
},
|
|
276944
|
+
"name": {
|
|
276945
|
+
"type": "string",
|
|
276946
|
+
"maxLength": 200,
|
|
276947
|
+
"description": "Name of the user"
|
|
276948
|
+
},
|
|
276949
|
+
"pictureUrl": {
|
|
276950
|
+
"type": "string",
|
|
276951
|
+
"maxLength": 4e4,
|
|
276952
|
+
"description": "URI of the user picture"
|
|
276953
|
+
},
|
|
276954
|
+
"discriminateByTags": {
|
|
276955
|
+
"type": "array",
|
|
276956
|
+
"items": {
|
|
276957
|
+
"type": "string",
|
|
276958
|
+
"maxLength": 500
|
|
276959
|
+
},
|
|
276960
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
276961
|
+
}
|
|
276962
|
+
},
|
|
276963
|
+
"required": [
|
|
276964
|
+
"tags",
|
|
276965
|
+
"discriminateByTags"
|
|
276966
|
+
],
|
|
276967
|
+
"additionalProperties": false
|
|
276968
|
+
},
|
|
276969
|
+
"conversationId": {
|
|
276970
|
+
"type": "string"
|
|
276971
|
+
},
|
|
276972
|
+
"conversation": {
|
|
276973
|
+
"type": "object",
|
|
276974
|
+
"properties": {
|
|
276975
|
+
"channel": {
|
|
276976
|
+
"type": "string",
|
|
276977
|
+
"maxLength": 200,
|
|
276978
|
+
"description": "Channel name"
|
|
276979
|
+
},
|
|
276980
|
+
"tags": {
|
|
276981
|
+
"type": "object",
|
|
276982
|
+
"additionalProperties": {
|
|
276983
|
+
"type": "string",
|
|
276984
|
+
"maxLength": 500
|
|
276985
|
+
},
|
|
276986
|
+
"description": "Tags for the [Conversation](#schema_conversation)"
|
|
276987
|
+
},
|
|
276988
|
+
"integrationName": {
|
|
276989
|
+
"type": "string",
|
|
276990
|
+
"maxLength": 200,
|
|
276991
|
+
"description": "[DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.",
|
|
276992
|
+
"deprecated": true
|
|
276993
|
+
},
|
|
276994
|
+
"discriminateByTags": {
|
|
276995
|
+
"type": "array",
|
|
276996
|
+
"items": {
|
|
276997
|
+
"type": "string",
|
|
276998
|
+
"maxLength": 500
|
|
276999
|
+
},
|
|
277000
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
277001
|
+
}
|
|
277002
|
+
},
|
|
277003
|
+
"required": [
|
|
277004
|
+
"channel",
|
|
277005
|
+
"tags",
|
|
277006
|
+
"discriminateByTags"
|
|
277007
|
+
],
|
|
277008
|
+
"additionalProperties": false
|
|
277009
|
+
},
|
|
277010
|
+
"message": {
|
|
277011
|
+
"type": "object",
|
|
277012
|
+
"properties": {
|
|
277013
|
+
"payload": {
|
|
277014
|
+
"type": "object",
|
|
277015
|
+
"additionalProperties": true,
|
|
277016
|
+
"description": "Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location"
|
|
277017
|
+
},
|
|
277018
|
+
"type": {
|
|
277019
|
+
"type": "string",
|
|
277020
|
+
"maxLength": 200,
|
|
277021
|
+
"description": "Type of the [Message](#schema_message) represents the resource type that the message is related to"
|
|
277022
|
+
},
|
|
277023
|
+
"tags": {
|
|
277024
|
+
"type": "object",
|
|
277025
|
+
"additionalProperties": {
|
|
277026
|
+
"type": "string",
|
|
277027
|
+
"maxLength": 500
|
|
277028
|
+
},
|
|
277029
|
+
"description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
277030
|
+
},
|
|
277031
|
+
"origin": {
|
|
277032
|
+
"type": "string",
|
|
277033
|
+
"enum": [
|
|
277034
|
+
"synthetic"
|
|
277035
|
+
]
|
|
277036
|
+
},
|
|
277037
|
+
"discriminateByTags": {
|
|
277038
|
+
"type": "array",
|
|
277039
|
+
"items": {
|
|
277040
|
+
"type": "string",
|
|
277041
|
+
"maxLength": 500
|
|
277042
|
+
},
|
|
277043
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
277044
|
+
}
|
|
277045
|
+
},
|
|
277046
|
+
"required": [
|
|
277047
|
+
"payload",
|
|
277048
|
+
"type",
|
|
277049
|
+
"tags",
|
|
277050
|
+
"discriminateByTags"
|
|
277051
|
+
],
|
|
277052
|
+
"additionalProperties": false
|
|
277053
|
+
}
|
|
277054
|
+
},
|
|
277055
|
+
"title": "initializeIncomingMessageBody",
|
|
277056
|
+
"additionalProperties": false
|
|
277057
|
+
}
|
|
277058
|
+
},
|
|
277059
|
+
"response": {
|
|
277060
|
+
"description": "Returns an object containing the user, conversation and message (if created)",
|
|
277061
|
+
"schema": {
|
|
277062
|
+
"type": "object",
|
|
277063
|
+
"properties": {
|
|
277064
|
+
"user": {
|
|
277065
|
+
"$ref": "#/components/schemas/User"
|
|
277066
|
+
},
|
|
277067
|
+
"conversation": {
|
|
277068
|
+
"$ref": "#/components/schemas/Conversation"
|
|
277069
|
+
},
|
|
277070
|
+
"message": {
|
|
277071
|
+
"$ref": "#/components/schemas/Message"
|
|
277072
|
+
}
|
|
277073
|
+
},
|
|
277074
|
+
"required": [
|
|
277075
|
+
"user",
|
|
277076
|
+
"conversation"
|
|
277077
|
+
],
|
|
277078
|
+
"title": "initializeIncomingMessageResponse",
|
|
277079
|
+
"additionalProperties": false
|
|
277080
|
+
}
|
|
277081
|
+
},
|
|
277082
|
+
"tags": [
|
|
277083
|
+
"experimental"
|
|
277084
|
+
]
|
|
277085
|
+
},
|
|
276893
277086
|
"importMessages": {
|
|
276894
277087
|
"name": "importMessages",
|
|
276895
277088
|
"description": "Imports messages if no matching messages already exist. Returns the list of messages that were either created or retrieved.",
|
|
@@ -279170,7 +279363,7 @@ var state = {
|
|
|
279170
279363
|
"title": "Botpress Runtime API",
|
|
279171
279364
|
"description": "API for Botpress Runtime",
|
|
279172
279365
|
"server": "https://api.botpress.cloud",
|
|
279173
|
-
"version": "1.
|
|
279366
|
+
"version": "1.68.0",
|
|
279174
279367
|
"prefix": "v1"
|
|
279175
279368
|
},
|
|
279176
279369
|
"defaultParameters": {
|
|
@@ -279318,6 +279511,11 @@ var state = {
|
|
|
279318
279511
|
"status": 400,
|
|
279319
279512
|
"type": "BreakingChanges",
|
|
279320
279513
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
279514
|
+
},
|
|
279515
|
+
{
|
|
279516
|
+
"status": 504,
|
|
279517
|
+
"type": "OperationTimeout",
|
|
279518
|
+
"description": "The operation timed out."
|
|
279321
279519
|
}
|
|
279322
279520
|
],
|
|
279323
279521
|
"refs": {
|
|
@@ -279331,6 +279529,7 @@ var state = {
|
|
|
279331
279529
|
"createMessageBody": true,
|
|
279332
279530
|
"getOrCreateMessageBody": true,
|
|
279333
279531
|
"updateMessageBody": true,
|
|
279532
|
+
"initializeIncomingMessageBody": true,
|
|
279334
279533
|
"importMessagesBody": true,
|
|
279335
279534
|
"createUserBody": true,
|
|
279336
279535
|
"getOrCreateUserBody": true,
|
|
@@ -279369,6 +279568,7 @@ var state = {
|
|
|
279369
279568
|
"updateMessageResponse": true,
|
|
279370
279569
|
"listMessagesResponse": true,
|
|
279371
279570
|
"deleteMessageResponse": true,
|
|
279571
|
+
"initializeIncomingMessageResponse": true,
|
|
279372
279572
|
"importMessagesResponse": true,
|
|
279373
279573
|
"createUserResponse": true,
|
|
279374
279574
|
"getUserResponse": true,
|
|
@@ -280017,6 +280217,7 @@ var state = {
|
|
|
280017
280217
|
"updateMessage",
|
|
280018
280218
|
"listMessages",
|
|
280019
280219
|
"deleteMessage",
|
|
280220
|
+
"initializeIncomingMessage",
|
|
280020
280221
|
"importMessages"
|
|
280021
280222
|
],
|
|
280022
280223
|
"schema": "Message"
|
|
@@ -280082,12 +280283,6 @@ var state = {
|
|
|
280082
280283
|
"operations": [
|
|
280083
280284
|
"listTagValues"
|
|
280084
280285
|
]
|
|
280085
|
-
},
|
|
280086
|
-
{
|
|
280087
|
-
"description": "",
|
|
280088
|
-
"title": "Rate Limit",
|
|
280089
|
-
"name": "ratelimit",
|
|
280090
|
-
"operations": []
|
|
280091
280286
|
}
|
|
280092
280287
|
],
|
|
280093
280288
|
"options": {
|
|
@@ -287888,7 +288083,8 @@ var state2 = {
|
|
|
287888
288083
|
"enum": [
|
|
287889
288084
|
"v1",
|
|
287890
288085
|
"v2",
|
|
287891
|
-
"v3"
|
|
288086
|
+
"v3",
|
|
288087
|
+
"v4"
|
|
287892
288088
|
]
|
|
287893
288089
|
},
|
|
287894
288090
|
"plan": {
|
|
@@ -288100,7 +288296,8 @@ var state2 = {
|
|
|
288100
288296
|
"enum": [
|
|
288101
288297
|
"v1",
|
|
288102
288298
|
"v2",
|
|
288103
|
-
"v3"
|
|
288299
|
+
"v3",
|
|
288300
|
+
"v4"
|
|
288104
288301
|
]
|
|
288105
288302
|
},
|
|
288106
288303
|
"plan": {
|
|
@@ -288672,7 +288869,8 @@ var state2 = {
|
|
|
288672
288869
|
"enum": [
|
|
288673
288870
|
"v1",
|
|
288674
288871
|
"v2",
|
|
288675
|
-
"v3"
|
|
288872
|
+
"v3",
|
|
288873
|
+
"v4"
|
|
288676
288874
|
]
|
|
288677
288875
|
},
|
|
288678
288876
|
"plan": {
|
|
@@ -288869,7 +289067,8 @@ var state2 = {
|
|
|
288869
289067
|
"enum": [
|
|
288870
289068
|
"v1",
|
|
288871
289069
|
"v2",
|
|
288872
|
-
"v3"
|
|
289070
|
+
"v3",
|
|
289071
|
+
"v4"
|
|
288873
289072
|
]
|
|
288874
289073
|
},
|
|
288875
289074
|
"plan": {
|
|
@@ -295578,7 +295777,7 @@ var state2 = {
|
|
|
295578
295777
|
"title": "Botpress Admin API",
|
|
295579
295778
|
"description": "API for Botpress Cloud Manager",
|
|
295580
295779
|
"server": "https://api.botpress.cloud",
|
|
295581
|
-
"version": "1.
|
|
295780
|
+
"version": "1.68.0",
|
|
295582
295781
|
"prefix": "v1"
|
|
295583
295782
|
},
|
|
295584
295783
|
"defaultParameters": {
|
|
@@ -295720,6 +295919,11 @@ var state2 = {
|
|
|
295720
295919
|
"status": 400,
|
|
295721
295920
|
"type": "BreakingChanges",
|
|
295722
295921
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
295922
|
+
},
|
|
295923
|
+
{
|
|
295924
|
+
"status": 504,
|
|
295925
|
+
"type": "OperationTimeout",
|
|
295926
|
+
"description": "The operation timed out."
|
|
295723
295927
|
}
|
|
295724
295928
|
],
|
|
295725
295929
|
"refs": {
|
|
@@ -298000,7 +298204,8 @@ var state2 = {
|
|
|
298000
298204
|
"enum": [
|
|
298001
298205
|
"v1",
|
|
298002
298206
|
"v2",
|
|
298003
|
-
"v3"
|
|
298207
|
+
"v3",
|
|
298208
|
+
"v4"
|
|
298004
298209
|
]
|
|
298005
298210
|
},
|
|
298006
298211
|
"plan": {
|
|
@@ -301081,7 +301286,7 @@ var state3 = {
|
|
|
301081
301286
|
"title": "Botpress Files API",
|
|
301082
301287
|
"description": "API for Botpress Files",
|
|
301083
301288
|
"server": "https://api.botpress.cloud",
|
|
301084
|
-
"version": "1.
|
|
301289
|
+
"version": "1.68.0",
|
|
301085
301290
|
"prefix": "v1"
|
|
301086
301291
|
},
|
|
301087
301292
|
"defaultParameters": {
|
|
@@ -301247,6 +301452,11 @@ var state3 = {
|
|
|
301247
301452
|
"status": 400,
|
|
301248
301453
|
"type": "BreakingChanges",
|
|
301249
301454
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
301455
|
+
},
|
|
301456
|
+
{
|
|
301457
|
+
"status": 504,
|
|
301458
|
+
"type": "OperationTimeout",
|
|
301459
|
+
"description": "The operation timed out."
|
|
301250
301460
|
}
|
|
301251
301461
|
],
|
|
301252
301462
|
"refs": {
|
|
@@ -303372,7 +303582,7 @@ var state4 = {
|
|
|
303372
303582
|
"title": "Botpress Tables API",
|
|
303373
303583
|
"description": "API for Botpress Tables",
|
|
303374
303584
|
"server": "https://api.botpress.cloud",
|
|
303375
|
-
"version": "1.
|
|
303585
|
+
"version": "1.68.0",
|
|
303376
303586
|
"prefix": "v1"
|
|
303377
303587
|
},
|
|
303378
303588
|
"defaultParameters": {
|
|
@@ -303538,6 +303748,11 @@ var state4 = {
|
|
|
303538
303748
|
"status": 400,
|
|
303539
303749
|
"type": "BreakingChanges",
|
|
303540
303750
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
303751
|
+
},
|
|
303752
|
+
{
|
|
303753
|
+
"status": 504,
|
|
303754
|
+
"type": "OperationTimeout",
|
|
303755
|
+
"description": "The operation timed out."
|
|
303541
303756
|
}
|
|
303542
303757
|
],
|
|
303543
303758
|
"refs": {
|
|
@@ -305191,6 +305406,180 @@ var state5 = {
|
|
|
305191
305406
|
"documented"
|
|
305192
305407
|
]
|
|
305193
305408
|
},
|
|
305409
|
+
"initializeIncomingMessage": {
|
|
305410
|
+
"name": "initializeIncomingMessage",
|
|
305411
|
+
"description": "Initializes a user, conversation and sends a message to the conversation.",
|
|
305412
|
+
"method": "post",
|
|
305413
|
+
"path": "/v1/chat/initialize-incoming-message",
|
|
305414
|
+
"parameters": {},
|
|
305415
|
+
"section": "message",
|
|
305416
|
+
"requestBody": {
|
|
305417
|
+
"description": "Message data with related conversation and user",
|
|
305418
|
+
"schema": {
|
|
305419
|
+
"type": "object",
|
|
305420
|
+
"properties": {
|
|
305421
|
+
"userId": {
|
|
305422
|
+
"type": "string"
|
|
305423
|
+
},
|
|
305424
|
+
"user": {
|
|
305425
|
+
"type": "object",
|
|
305426
|
+
"properties": {
|
|
305427
|
+
"tags": {
|
|
305428
|
+
"type": "object",
|
|
305429
|
+
"additionalProperties": {
|
|
305430
|
+
"type": "string",
|
|
305431
|
+
"maxLength": 500
|
|
305432
|
+
},
|
|
305433
|
+
"description": "Tags for the [User](#schema_user)"
|
|
305434
|
+
},
|
|
305435
|
+
"integrationName": {
|
|
305436
|
+
"type": "string",
|
|
305437
|
+
"maxLength": 200,
|
|
305438
|
+
"description": "[DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.",
|
|
305439
|
+
"deprecated": true
|
|
305440
|
+
},
|
|
305441
|
+
"name": {
|
|
305442
|
+
"type": "string",
|
|
305443
|
+
"maxLength": 200,
|
|
305444
|
+
"description": "Name of the user"
|
|
305445
|
+
},
|
|
305446
|
+
"pictureUrl": {
|
|
305447
|
+
"type": "string",
|
|
305448
|
+
"maxLength": 4e4,
|
|
305449
|
+
"description": "URI of the user picture"
|
|
305450
|
+
},
|
|
305451
|
+
"discriminateByTags": {
|
|
305452
|
+
"type": "array",
|
|
305453
|
+
"items": {
|
|
305454
|
+
"type": "string",
|
|
305455
|
+
"maxLength": 500
|
|
305456
|
+
},
|
|
305457
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
305458
|
+
}
|
|
305459
|
+
},
|
|
305460
|
+
"required": [
|
|
305461
|
+
"tags",
|
|
305462
|
+
"discriminateByTags"
|
|
305463
|
+
],
|
|
305464
|
+
"additionalProperties": false
|
|
305465
|
+
},
|
|
305466
|
+
"conversationId": {
|
|
305467
|
+
"type": "string"
|
|
305468
|
+
},
|
|
305469
|
+
"conversation": {
|
|
305470
|
+
"type": "object",
|
|
305471
|
+
"properties": {
|
|
305472
|
+
"channel": {
|
|
305473
|
+
"type": "string",
|
|
305474
|
+
"maxLength": 200,
|
|
305475
|
+
"description": "Channel name"
|
|
305476
|
+
},
|
|
305477
|
+
"tags": {
|
|
305478
|
+
"type": "object",
|
|
305479
|
+
"additionalProperties": {
|
|
305480
|
+
"type": "string",
|
|
305481
|
+
"maxLength": 500
|
|
305482
|
+
},
|
|
305483
|
+
"description": "Tags for the [Conversation](#schema_conversation)"
|
|
305484
|
+
},
|
|
305485
|
+
"integrationName": {
|
|
305486
|
+
"type": "string",
|
|
305487
|
+
"maxLength": 200,
|
|
305488
|
+
"description": "[DEPRECATED] To create a conversation from within a bot, call an action of the integration instead.",
|
|
305489
|
+
"deprecated": true
|
|
305490
|
+
},
|
|
305491
|
+
"discriminateByTags": {
|
|
305492
|
+
"type": "array",
|
|
305493
|
+
"items": {
|
|
305494
|
+
"type": "string",
|
|
305495
|
+
"maxLength": 500
|
|
305496
|
+
},
|
|
305497
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
305498
|
+
}
|
|
305499
|
+
},
|
|
305500
|
+
"required": [
|
|
305501
|
+
"channel",
|
|
305502
|
+
"tags",
|
|
305503
|
+
"discriminateByTags"
|
|
305504
|
+
],
|
|
305505
|
+
"additionalProperties": false
|
|
305506
|
+
},
|
|
305507
|
+
"message": {
|
|
305508
|
+
"type": "object",
|
|
305509
|
+
"properties": {
|
|
305510
|
+
"payload": {
|
|
305511
|
+
"type": "object",
|
|
305512
|
+
"additionalProperties": true,
|
|
305513
|
+
"description": "Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location"
|
|
305514
|
+
},
|
|
305515
|
+
"type": {
|
|
305516
|
+
"type": "string",
|
|
305517
|
+
"maxLength": 200,
|
|
305518
|
+
"description": "Type of the [Message](#schema_message) represents the resource type that the message is related to"
|
|
305519
|
+
},
|
|
305520
|
+
"tags": {
|
|
305521
|
+
"type": "object",
|
|
305522
|
+
"additionalProperties": {
|
|
305523
|
+
"type": "string",
|
|
305524
|
+
"maxLength": 500
|
|
305525
|
+
},
|
|
305526
|
+
"description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
305527
|
+
},
|
|
305528
|
+
"origin": {
|
|
305529
|
+
"type": "string",
|
|
305530
|
+
"enum": [
|
|
305531
|
+
"synthetic"
|
|
305532
|
+
]
|
|
305533
|
+
},
|
|
305534
|
+
"discriminateByTags": {
|
|
305535
|
+
"type": "array",
|
|
305536
|
+
"items": {
|
|
305537
|
+
"type": "string",
|
|
305538
|
+
"maxLength": 500
|
|
305539
|
+
},
|
|
305540
|
+
"description": 'Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message 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.'
|
|
305541
|
+
}
|
|
305542
|
+
},
|
|
305543
|
+
"required": [
|
|
305544
|
+
"payload",
|
|
305545
|
+
"type",
|
|
305546
|
+
"tags",
|
|
305547
|
+
"discriminateByTags"
|
|
305548
|
+
],
|
|
305549
|
+
"additionalProperties": false
|
|
305550
|
+
}
|
|
305551
|
+
},
|
|
305552
|
+
"title": "initializeIncomingMessageBody",
|
|
305553
|
+
"additionalProperties": false
|
|
305554
|
+
}
|
|
305555
|
+
},
|
|
305556
|
+
"response": {
|
|
305557
|
+
"description": "Returns an object containing the user, conversation and message (if created)",
|
|
305558
|
+
"schema": {
|
|
305559
|
+
"type": "object",
|
|
305560
|
+
"properties": {
|
|
305561
|
+
"user": {
|
|
305562
|
+
"$ref": "#/components/schemas/User"
|
|
305563
|
+
},
|
|
305564
|
+
"conversation": {
|
|
305565
|
+
"$ref": "#/components/schemas/Conversation"
|
|
305566
|
+
},
|
|
305567
|
+
"message": {
|
|
305568
|
+
"$ref": "#/components/schemas/Message"
|
|
305569
|
+
}
|
|
305570
|
+
},
|
|
305571
|
+
"required": [
|
|
305572
|
+
"user",
|
|
305573
|
+
"conversation"
|
|
305574
|
+
],
|
|
305575
|
+
"title": "initializeIncomingMessageResponse",
|
|
305576
|
+
"additionalProperties": false
|
|
305577
|
+
}
|
|
305578
|
+
},
|
|
305579
|
+
"tags": [
|
|
305580
|
+
"experimental"
|
|
305581
|
+
]
|
|
305582
|
+
},
|
|
305194
305583
|
"importMessages": {
|
|
305195
305584
|
"name": "importMessages",
|
|
305196
305585
|
"description": "Imports messages if no matching messages already exist. Returns the list of messages that were either created or retrieved.",
|
|
@@ -314254,7 +314643,8 @@ var state5 = {
|
|
|
314254
314643
|
"enum": [
|
|
314255
314644
|
"v1",
|
|
314256
314645
|
"v2",
|
|
314257
|
-
"v3"
|
|
314646
|
+
"v3",
|
|
314647
|
+
"v4"
|
|
314258
314648
|
]
|
|
314259
314649
|
},
|
|
314260
314650
|
"plan": {
|
|
@@ -314447,7 +314837,8 @@ var state5 = {
|
|
|
314447
314837
|
"enum": [
|
|
314448
314838
|
"v1",
|
|
314449
314839
|
"v2",
|
|
314450
|
-
"v3"
|
|
314840
|
+
"v3",
|
|
314841
|
+
"v4"
|
|
314451
314842
|
]
|
|
314452
314843
|
},
|
|
314453
314844
|
"plan": {
|
|
@@ -314982,7 +315373,8 @@ var state5 = {
|
|
|
314982
315373
|
"enum": [
|
|
314983
315374
|
"v1",
|
|
314984
315375
|
"v2",
|
|
314985
|
-
"v3"
|
|
315376
|
+
"v3",
|
|
315377
|
+
"v4"
|
|
314986
315378
|
]
|
|
314987
315379
|
},
|
|
314988
315380
|
"plan": {
|
|
@@ -315166,7 +315558,8 @@ var state5 = {
|
|
|
315166
315558
|
"enum": [
|
|
315167
315559
|
"v1",
|
|
315168
315560
|
"v2",
|
|
315169
|
-
"v3"
|
|
315561
|
+
"v3",
|
|
315562
|
+
"v4"
|
|
315170
315563
|
]
|
|
315171
315564
|
},
|
|
315172
315565
|
"plan": {
|
|
@@ -324590,7 +324983,7 @@ var state5 = {
|
|
|
324590
324983
|
"title": "Botpress API",
|
|
324591
324984
|
"description": "API for Botpress Cloud",
|
|
324592
324985
|
"server": "https://api.botpress.cloud",
|
|
324593
|
-
"version": "1.
|
|
324986
|
+
"version": "1.68.0",
|
|
324594
324987
|
"prefix": "v1"
|
|
324595
324988
|
},
|
|
324596
324989
|
"errors": [
|
|
@@ -324718,6 +325111,11 @@ var state5 = {
|
|
|
324718
325111
|
"status": 400,
|
|
324719
325112
|
"type": "BreakingChanges",
|
|
324720
325113
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
325114
|
+
},
|
|
325115
|
+
{
|
|
325116
|
+
"status": 504,
|
|
325117
|
+
"type": "OperationTimeout",
|
|
325118
|
+
"description": "The operation timed out."
|
|
324721
325119
|
}
|
|
324722
325120
|
],
|
|
324723
325121
|
"refs": {
|
|
@@ -324731,6 +325129,7 @@ var state5 = {
|
|
|
324731
325129
|
"createMessageBody": true,
|
|
324732
325130
|
"getOrCreateMessageBody": true,
|
|
324733
325131
|
"updateMessageBody": true,
|
|
325132
|
+
"initializeIncomingMessageBody": true,
|
|
324734
325133
|
"importMessagesBody": true,
|
|
324735
325134
|
"createUserBody": true,
|
|
324736
325135
|
"getOrCreateUserBody": true,
|
|
@@ -324819,6 +325218,7 @@ var state5 = {
|
|
|
324819
325218
|
"updateMessageResponse": true,
|
|
324820
325219
|
"listMessagesResponse": true,
|
|
324821
325220
|
"deleteMessageResponse": true,
|
|
325221
|
+
"initializeIncomingMessageResponse": true,
|
|
324822
325222
|
"importMessagesResponse": true,
|
|
324823
325223
|
"createUserResponse": true,
|
|
324824
325224
|
"getUserResponse": true,
|
|
@@ -327129,7 +327529,8 @@ var state5 = {
|
|
|
327129
327529
|
"enum": [
|
|
327130
327530
|
"v1",
|
|
327131
327531
|
"v2",
|
|
327132
|
-
"v3"
|
|
327532
|
+
"v3",
|
|
327533
|
+
"v4"
|
|
327133
327534
|
]
|
|
327134
327535
|
},
|
|
327135
327536
|
"plan": {
|
|
@@ -328705,6 +329106,7 @@ var state5 = {
|
|
|
328705
329106
|
"updateMessage",
|
|
328706
329107
|
"listMessages",
|
|
328707
329108
|
"deleteMessage",
|
|
329109
|
+
"initializeIncomingMessage",
|
|
328708
329110
|
"importMessages"
|
|
328709
329111
|
],
|
|
328710
329112
|
"schema": "Message"
|
|
@@ -328783,12 +329185,6 @@ var state5 = {
|
|
|
328783
329185
|
"listTagValues"
|
|
328784
329186
|
]
|
|
328785
329187
|
},
|
|
328786
|
-
{
|
|
328787
|
-
"description": "",
|
|
328788
|
-
"title": "Rate Limit",
|
|
328789
|
-
"name": "ratelimit",
|
|
328790
|
-
"operations": []
|
|
328791
|
-
},
|
|
328792
329188
|
{
|
|
328793
329189
|
"title": "Bot",
|
|
328794
329190
|
"description": "",
|
|
@@ -329835,7 +330231,7 @@ var state6 = {
|
|
|
329835
330231
|
"title": "Botpress Billing Public API",
|
|
329836
330232
|
"description": "API for Botpress Billing",
|
|
329837
330233
|
"server": "https://api.botpress.cloud",
|
|
329838
|
-
"version": "1.
|
|
330234
|
+
"version": "1.68.0",
|
|
329839
330235
|
"prefix": "v2"
|
|
329840
330236
|
},
|
|
329841
330237
|
"defaultParameters": {
|
|
@@ -329971,6 +330367,11 @@ var state6 = {
|
|
|
329971
330367
|
"status": 400,
|
|
329972
330368
|
"type": "BreakingChanges",
|
|
329973
330369
|
"description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
|
|
330370
|
+
},
|
|
330371
|
+
{
|
|
330372
|
+
"status": 504,
|
|
330373
|
+
"type": "OperationTimeout",
|
|
330374
|
+
"description": "The operation timed out."
|
|
329974
330375
|
}
|
|
329975
330376
|
],
|
|
329976
330377
|
"refs": {
|
|
@@ -13702,6 +13702,10 @@ export declare const state: {
|
|
|
13702
13702
|
status: 402;
|
|
13703
13703
|
type: string;
|
|
13704
13704
|
description: string;
|
|
13705
|
+
} | {
|
|
13706
|
+
status: 504;
|
|
13707
|
+
type: string;
|
|
13708
|
+
description: string;
|
|
13705
13709
|
})[];
|
|
13706
13710
|
refs: {
|
|
13707
13711
|
parameters: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as opapi from '@bpinternal/opapi';
|
|
2
|
-
export type State = opapi.State<'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow', 'x-bot-id' | 'x-integration-id' | 'x-integration-alias', 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag'
|
|
2
|
+
export type State = opapi.State<'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow', 'x-bot-id' | 'x-integration-id' | 'x-integration-alias', 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag'>;
|
|
3
3
|
export declare const state: {
|
|
4
4
|
operations: {
|
|
5
5
|
createConversation: {
|
|
@@ -1390,6 +1390,180 @@ export declare const state: {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
tags: string[];
|
|
1392
1392
|
};
|
|
1393
|
+
initializeIncomingMessage: {
|
|
1394
|
+
name: string;
|
|
1395
|
+
description: string;
|
|
1396
|
+
method: "post";
|
|
1397
|
+
path: string;
|
|
1398
|
+
parameters: {
|
|
1399
|
+
"x-bot-id": {
|
|
1400
|
+
in: "header";
|
|
1401
|
+
description: string;
|
|
1402
|
+
type: "string";
|
|
1403
|
+
required: true;
|
|
1404
|
+
};
|
|
1405
|
+
"x-integration-id": {
|
|
1406
|
+
in: "header";
|
|
1407
|
+
description: string;
|
|
1408
|
+
type: "string";
|
|
1409
|
+
required: false;
|
|
1410
|
+
};
|
|
1411
|
+
"x-integration-alias": {
|
|
1412
|
+
in: "header";
|
|
1413
|
+
description: string;
|
|
1414
|
+
type: "string";
|
|
1415
|
+
required: false;
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
section: "message";
|
|
1419
|
+
requestBody: {
|
|
1420
|
+
description: string;
|
|
1421
|
+
schema: {
|
|
1422
|
+
type: "object";
|
|
1423
|
+
properties: {
|
|
1424
|
+
userId: {
|
|
1425
|
+
type: "string";
|
|
1426
|
+
};
|
|
1427
|
+
user: {
|
|
1428
|
+
type: "object";
|
|
1429
|
+
properties: {
|
|
1430
|
+
tags: {
|
|
1431
|
+
type: "object";
|
|
1432
|
+
additionalProperties: {
|
|
1433
|
+
type: "string";
|
|
1434
|
+
maxLength: number;
|
|
1435
|
+
};
|
|
1436
|
+
description: string;
|
|
1437
|
+
};
|
|
1438
|
+
integrationName: {
|
|
1439
|
+
type: "string";
|
|
1440
|
+
maxLength: number;
|
|
1441
|
+
description: string;
|
|
1442
|
+
deprecated: true;
|
|
1443
|
+
};
|
|
1444
|
+
name: {
|
|
1445
|
+
type: "string";
|
|
1446
|
+
maxLength: number;
|
|
1447
|
+
description: string;
|
|
1448
|
+
};
|
|
1449
|
+
pictureUrl: {
|
|
1450
|
+
type: "string";
|
|
1451
|
+
maxLength: number;
|
|
1452
|
+
description: string;
|
|
1453
|
+
};
|
|
1454
|
+
discriminateByTags: {
|
|
1455
|
+
type: "array";
|
|
1456
|
+
items: {
|
|
1457
|
+
type: "string";
|
|
1458
|
+
maxLength: number;
|
|
1459
|
+
};
|
|
1460
|
+
description: string;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
required: string[];
|
|
1464
|
+
additionalProperties: false;
|
|
1465
|
+
};
|
|
1466
|
+
conversationId: {
|
|
1467
|
+
type: "string";
|
|
1468
|
+
};
|
|
1469
|
+
conversation: {
|
|
1470
|
+
type: "object";
|
|
1471
|
+
properties: {
|
|
1472
|
+
channel: {
|
|
1473
|
+
type: "string";
|
|
1474
|
+
maxLength: number;
|
|
1475
|
+
description: string;
|
|
1476
|
+
};
|
|
1477
|
+
tags: {
|
|
1478
|
+
type: "object";
|
|
1479
|
+
additionalProperties: {
|
|
1480
|
+
type: "string";
|
|
1481
|
+
maxLength: number;
|
|
1482
|
+
};
|
|
1483
|
+
description: string;
|
|
1484
|
+
};
|
|
1485
|
+
integrationName: {
|
|
1486
|
+
type: "string";
|
|
1487
|
+
maxLength: number;
|
|
1488
|
+
description: string;
|
|
1489
|
+
deprecated: true;
|
|
1490
|
+
};
|
|
1491
|
+
discriminateByTags: {
|
|
1492
|
+
type: "array";
|
|
1493
|
+
items: {
|
|
1494
|
+
type: "string";
|
|
1495
|
+
maxLength: number;
|
|
1496
|
+
};
|
|
1497
|
+
description: string;
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
required: string[];
|
|
1501
|
+
additionalProperties: false;
|
|
1502
|
+
};
|
|
1503
|
+
message: {
|
|
1504
|
+
type: "object";
|
|
1505
|
+
properties: {
|
|
1506
|
+
payload: {
|
|
1507
|
+
type: "object";
|
|
1508
|
+
additionalProperties: true;
|
|
1509
|
+
description: string;
|
|
1510
|
+
};
|
|
1511
|
+
type: {
|
|
1512
|
+
type: "string";
|
|
1513
|
+
maxLength: number;
|
|
1514
|
+
description: string;
|
|
1515
|
+
};
|
|
1516
|
+
tags: {
|
|
1517
|
+
type: "object";
|
|
1518
|
+
additionalProperties: {
|
|
1519
|
+
type: "string";
|
|
1520
|
+
maxLength: number;
|
|
1521
|
+
};
|
|
1522
|
+
description: string;
|
|
1523
|
+
};
|
|
1524
|
+
origin: {
|
|
1525
|
+
type: "string";
|
|
1526
|
+
enum: string[];
|
|
1527
|
+
};
|
|
1528
|
+
discriminateByTags: {
|
|
1529
|
+
type: "array";
|
|
1530
|
+
items: {
|
|
1531
|
+
type: "string";
|
|
1532
|
+
maxLength: number;
|
|
1533
|
+
};
|
|
1534
|
+
description: string;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
required: string[];
|
|
1538
|
+
additionalProperties: false;
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
title: string;
|
|
1542
|
+
additionalProperties: false;
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
response: {
|
|
1546
|
+
description: string;
|
|
1547
|
+
schema: {
|
|
1548
|
+
type: "object";
|
|
1549
|
+
properties: {
|
|
1550
|
+
user: {
|
|
1551
|
+
$ref: string;
|
|
1552
|
+
};
|
|
1553
|
+
conversation: {
|
|
1554
|
+
$ref: string;
|
|
1555
|
+
};
|
|
1556
|
+
message: {
|
|
1557
|
+
$ref: string;
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
required: string[];
|
|
1561
|
+
title: string;
|
|
1562
|
+
additionalProperties: false;
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
tags: string[];
|
|
1566
|
+
};
|
|
1393
1567
|
importMessages: {
|
|
1394
1568
|
name: string;
|
|
1395
1569
|
description: string;
|
|
@@ -3513,6 +3687,10 @@ export declare const state: {
|
|
|
3513
3687
|
status: 402;
|
|
3514
3688
|
type: string;
|
|
3515
3689
|
description: string;
|
|
3690
|
+
} | {
|
|
3691
|
+
status: 504;
|
|
3692
|
+
type: string;
|
|
3693
|
+
description: string;
|
|
3516
3694
|
})[];
|
|
3517
3695
|
refs: {
|
|
3518
3696
|
parameters: {};
|
|
@@ -3525,6 +3703,7 @@ export declare const state: {
|
|
|
3525
3703
|
createMessageBody: true;
|
|
3526
3704
|
getOrCreateMessageBody: true;
|
|
3527
3705
|
updateMessageBody: true;
|
|
3706
|
+
initializeIncomingMessageBody: true;
|
|
3528
3707
|
importMessagesBody: true;
|
|
3529
3708
|
createUserBody: true;
|
|
3530
3709
|
getOrCreateUserBody: true;
|
|
@@ -3563,6 +3742,7 @@ export declare const state: {
|
|
|
3563
3742
|
updateMessageResponse: true;
|
|
3564
3743
|
listMessagesResponse: true;
|
|
3565
3744
|
deleteMessageResponse: true;
|
|
3745
|
+
initializeIncomingMessageResponse: true;
|
|
3566
3746
|
importMessagesResponse: true;
|
|
3567
3747
|
createUserResponse: true;
|
|
3568
3748
|
getUserResponse: true;
|
|
@@ -4120,12 +4300,6 @@ export declare const state: {
|
|
|
4120
4300
|
name: "tag";
|
|
4121
4301
|
operations: string[];
|
|
4122
4302
|
schema?: undefined;
|
|
4123
|
-
} | {
|
|
4124
|
-
description: string;
|
|
4125
|
-
title: string;
|
|
4126
|
-
name: "ratelimit";
|
|
4127
|
-
operations: never[];
|
|
4128
|
-
schema?: undefined;
|
|
4129
4303
|
})[];
|
|
4130
4304
|
options: {
|
|
4131
4305
|
allowUnions: false;
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as opapi from '@bpinternal/opapi';
|
|
2
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | '
|
|
2
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
|
|
3
3
|
export declare const state: {
|
|
4
4
|
operations: {
|
|
5
5
|
createConversation: {
|
|
@@ -1025,6 +1025,161 @@ export declare const state: {
|
|
|
1025
1025
|
};
|
|
1026
1026
|
tags: string[];
|
|
1027
1027
|
};
|
|
1028
|
+
initializeIncomingMessage: {
|
|
1029
|
+
name: string;
|
|
1030
|
+
description: string;
|
|
1031
|
+
method: "post";
|
|
1032
|
+
path: string;
|
|
1033
|
+
parameters: {};
|
|
1034
|
+
section: "message";
|
|
1035
|
+
requestBody: {
|
|
1036
|
+
description: string;
|
|
1037
|
+
schema: {
|
|
1038
|
+
type: "object";
|
|
1039
|
+
properties: {
|
|
1040
|
+
userId: {
|
|
1041
|
+
type: "string";
|
|
1042
|
+
};
|
|
1043
|
+
user: {
|
|
1044
|
+
type: "object";
|
|
1045
|
+
properties: {
|
|
1046
|
+
tags: {
|
|
1047
|
+
type: "object";
|
|
1048
|
+
additionalProperties: {
|
|
1049
|
+
type: "string";
|
|
1050
|
+
maxLength: number;
|
|
1051
|
+
};
|
|
1052
|
+
description: string;
|
|
1053
|
+
};
|
|
1054
|
+
integrationName: {
|
|
1055
|
+
type: "string";
|
|
1056
|
+
maxLength: number;
|
|
1057
|
+
description: string;
|
|
1058
|
+
deprecated: true;
|
|
1059
|
+
};
|
|
1060
|
+
name: {
|
|
1061
|
+
type: "string";
|
|
1062
|
+
maxLength: number;
|
|
1063
|
+
description: string;
|
|
1064
|
+
};
|
|
1065
|
+
pictureUrl: {
|
|
1066
|
+
type: "string";
|
|
1067
|
+
maxLength: number;
|
|
1068
|
+
description: string;
|
|
1069
|
+
};
|
|
1070
|
+
discriminateByTags: {
|
|
1071
|
+
type: "array";
|
|
1072
|
+
items: {
|
|
1073
|
+
type: "string";
|
|
1074
|
+
maxLength: number;
|
|
1075
|
+
};
|
|
1076
|
+
description: string;
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
required: string[];
|
|
1080
|
+
additionalProperties: false;
|
|
1081
|
+
};
|
|
1082
|
+
conversationId: {
|
|
1083
|
+
type: "string";
|
|
1084
|
+
};
|
|
1085
|
+
conversation: {
|
|
1086
|
+
type: "object";
|
|
1087
|
+
properties: {
|
|
1088
|
+
channel: {
|
|
1089
|
+
type: "string";
|
|
1090
|
+
maxLength: number;
|
|
1091
|
+
description: string;
|
|
1092
|
+
};
|
|
1093
|
+
tags: {
|
|
1094
|
+
type: "object";
|
|
1095
|
+
additionalProperties: {
|
|
1096
|
+
type: "string";
|
|
1097
|
+
maxLength: number;
|
|
1098
|
+
};
|
|
1099
|
+
description: string;
|
|
1100
|
+
};
|
|
1101
|
+
integrationName: {
|
|
1102
|
+
type: "string";
|
|
1103
|
+
maxLength: number;
|
|
1104
|
+
description: string;
|
|
1105
|
+
deprecated: true;
|
|
1106
|
+
};
|
|
1107
|
+
discriminateByTags: {
|
|
1108
|
+
type: "array";
|
|
1109
|
+
items: {
|
|
1110
|
+
type: "string";
|
|
1111
|
+
maxLength: number;
|
|
1112
|
+
};
|
|
1113
|
+
description: string;
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
required: string[];
|
|
1117
|
+
additionalProperties: false;
|
|
1118
|
+
};
|
|
1119
|
+
message: {
|
|
1120
|
+
type: "object";
|
|
1121
|
+
properties: {
|
|
1122
|
+
payload: {
|
|
1123
|
+
type: "object";
|
|
1124
|
+
additionalProperties: true;
|
|
1125
|
+
description: string;
|
|
1126
|
+
};
|
|
1127
|
+
type: {
|
|
1128
|
+
type: "string";
|
|
1129
|
+
maxLength: number;
|
|
1130
|
+
description: string;
|
|
1131
|
+
};
|
|
1132
|
+
tags: {
|
|
1133
|
+
type: "object";
|
|
1134
|
+
additionalProperties: {
|
|
1135
|
+
type: "string";
|
|
1136
|
+
maxLength: number;
|
|
1137
|
+
};
|
|
1138
|
+
description: string;
|
|
1139
|
+
};
|
|
1140
|
+
origin: {
|
|
1141
|
+
type: "string";
|
|
1142
|
+
enum: string[];
|
|
1143
|
+
};
|
|
1144
|
+
discriminateByTags: {
|
|
1145
|
+
type: "array";
|
|
1146
|
+
items: {
|
|
1147
|
+
type: "string";
|
|
1148
|
+
maxLength: number;
|
|
1149
|
+
};
|
|
1150
|
+
description: string;
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
required: string[];
|
|
1154
|
+
additionalProperties: false;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
title: string;
|
|
1158
|
+
additionalProperties: false;
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
response: {
|
|
1162
|
+
description: string;
|
|
1163
|
+
schema: {
|
|
1164
|
+
type: "object";
|
|
1165
|
+
properties: {
|
|
1166
|
+
user: {
|
|
1167
|
+
$ref: string;
|
|
1168
|
+
};
|
|
1169
|
+
conversation: {
|
|
1170
|
+
$ref: string;
|
|
1171
|
+
};
|
|
1172
|
+
message: {
|
|
1173
|
+
$ref: string;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
required: string[];
|
|
1177
|
+
title: string;
|
|
1178
|
+
additionalProperties: false;
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
tags: string[];
|
|
1182
|
+
};
|
|
1028
1183
|
importMessages: {
|
|
1029
1184
|
name: string;
|
|
1030
1185
|
description: string;
|
|
@@ -17915,6 +18070,10 @@ export declare const state: {
|
|
|
17915
18070
|
status: 402;
|
|
17916
18071
|
type: string;
|
|
17917
18072
|
description: string;
|
|
18073
|
+
} | {
|
|
18074
|
+
status: 504;
|
|
18075
|
+
type: string;
|
|
18076
|
+
description: string;
|
|
17918
18077
|
})[];
|
|
17919
18078
|
refs: {
|
|
17920
18079
|
parameters: {};
|
|
@@ -17927,6 +18086,7 @@ export declare const state: {
|
|
|
17927
18086
|
createMessageBody: true;
|
|
17928
18087
|
getOrCreateMessageBody: true;
|
|
17929
18088
|
updateMessageBody: true;
|
|
18089
|
+
initializeIncomingMessageBody: true;
|
|
17930
18090
|
importMessagesBody: true;
|
|
17931
18091
|
createUserBody: true;
|
|
17932
18092
|
getOrCreateUserBody: true;
|
|
@@ -18015,6 +18175,7 @@ export declare const state: {
|
|
|
18015
18175
|
updateMessageResponse: true;
|
|
18016
18176
|
listMessagesResponse: true;
|
|
18017
18177
|
deleteMessageResponse: true;
|
|
18178
|
+
initializeIncomingMessageResponse: true;
|
|
18018
18179
|
importMessagesResponse: true;
|
|
18019
18180
|
createUserResponse: true;
|
|
18020
18181
|
getUserResponse: true;
|
|
@@ -21270,12 +21431,6 @@ export declare const state: {
|
|
|
21270
21431
|
name: "tag";
|
|
21271
21432
|
operations: string[];
|
|
21272
21433
|
schema?: undefined;
|
|
21273
|
-
} | {
|
|
21274
|
-
description: string;
|
|
21275
|
-
title: string;
|
|
21276
|
-
name: "ratelimit";
|
|
21277
|
-
operations: never[];
|
|
21278
|
-
schema?: undefined;
|
|
21279
21434
|
} | {
|
|
21280
21435
|
title: string;
|
|
21281
21436
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"devDependencies": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"@botpress/bridge": "1.8.0",
|
|
12
12
|
"@botpress/cloud-manager": "0.2.0",
|
|
13
13
|
"@botpress/common": "0.5.0",
|
|
14
|
-
"@botpress/files-api": "0.18.0",
|
|
15
14
|
"@bpinternal/const": "0.4.1",
|
|
16
|
-
"@botpress/
|
|
17
|
-
"@bpinternal/tables-api": "0.17.2"
|
|
15
|
+
"@botpress/files-api": "0.18.0",
|
|
16
|
+
"@bpinternal/tables-api": "0.17.2",
|
|
17
|
+
"@botpress/smaug": "1.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@bpinternal/opapi": "1.0.0"
|