@botpress/api 0.3.3 → 0.5.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/gen/state.d.ts +284 -4
- package/dist/index.js +345 -10
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +347 -5
package/dist/index.js
CHANGED
|
@@ -227597,6 +227597,79 @@ var state = {
|
|
|
227597
227597
|
}
|
|
227598
227598
|
}
|
|
227599
227599
|
},
|
|
227600
|
+
createWorkspace: {
|
|
227601
|
+
name: "createWorkspace",
|
|
227602
|
+
description: "Create workspace",
|
|
227603
|
+
method: "post",
|
|
227604
|
+
path: "/v1/admin/workspaces",
|
|
227605
|
+
disableDefaultParameters: {
|
|
227606
|
+
"x-workspace-id": true
|
|
227607
|
+
},
|
|
227608
|
+
requestBody: {
|
|
227609
|
+
description: "Workspace metadata",
|
|
227610
|
+
schema: {
|
|
227611
|
+
type: "object",
|
|
227612
|
+
properties: {
|
|
227613
|
+
name: {
|
|
227614
|
+
type: "string"
|
|
227615
|
+
}
|
|
227616
|
+
},
|
|
227617
|
+
required: ["name"],
|
|
227618
|
+
title: "createWorkspaceBody",
|
|
227619
|
+
additionalProperties: false
|
|
227620
|
+
}
|
|
227621
|
+
},
|
|
227622
|
+
response: {
|
|
227623
|
+
description: "Success",
|
|
227624
|
+
schema: {
|
|
227625
|
+
type: "object",
|
|
227626
|
+
properties: {
|
|
227627
|
+
id: {
|
|
227628
|
+
type: "string"
|
|
227629
|
+
},
|
|
227630
|
+
name: {
|
|
227631
|
+
type: "string"
|
|
227632
|
+
},
|
|
227633
|
+
ownerId: {
|
|
227634
|
+
type: "string"
|
|
227635
|
+
},
|
|
227636
|
+
createdAt: {
|
|
227637
|
+
type: "string"
|
|
227638
|
+
},
|
|
227639
|
+
updatedAt: {
|
|
227640
|
+
type: "string"
|
|
227641
|
+
},
|
|
227642
|
+
botCount: {
|
|
227643
|
+
type: "number"
|
|
227644
|
+
},
|
|
227645
|
+
accountType: {
|
|
227646
|
+
type: "string",
|
|
227647
|
+
enum: ["free", "premium"]
|
|
227648
|
+
},
|
|
227649
|
+
blocked: {
|
|
227650
|
+
type: "boolean"
|
|
227651
|
+
},
|
|
227652
|
+
spendingLimit: {
|
|
227653
|
+
type: "number"
|
|
227654
|
+
}
|
|
227655
|
+
},
|
|
227656
|
+
required: [
|
|
227657
|
+
"id",
|
|
227658
|
+
"name",
|
|
227659
|
+
"ownerId",
|
|
227660
|
+
"createdAt",
|
|
227661
|
+
"updatedAt",
|
|
227662
|
+
"botCount",
|
|
227663
|
+
"accountType",
|
|
227664
|
+
"blocked",
|
|
227665
|
+
"spendingLimit"
|
|
227666
|
+
],
|
|
227667
|
+
title: "createWorkspaceResponse",
|
|
227668
|
+
additionalProperties: false
|
|
227669
|
+
}
|
|
227670
|
+
},
|
|
227671
|
+
parameters: {}
|
|
227672
|
+
},
|
|
227600
227673
|
getWorkspace: {
|
|
227601
227674
|
name: "getWorkspace",
|
|
227602
227675
|
description: "Get workspace details",
|
|
@@ -227667,6 +227740,9 @@ var state = {
|
|
|
227667
227740
|
description: "Update workspace",
|
|
227668
227741
|
method: "put",
|
|
227669
227742
|
path: "/v1/admin/workspaces/{id}",
|
|
227743
|
+
disableDefaultParameters: {
|
|
227744
|
+
"x-workspace-id": true
|
|
227745
|
+
},
|
|
227670
227746
|
parameters: {
|
|
227671
227747
|
id: {
|
|
227672
227748
|
type: "string",
|
|
@@ -227684,10 +227760,6 @@ var state = {
|
|
|
227684
227760
|
minLength: 1,
|
|
227685
227761
|
maxLength: 64
|
|
227686
227762
|
},
|
|
227687
|
-
accountType: {
|
|
227688
|
-
type: "string",
|
|
227689
|
-
enum: ["free", "premium"]
|
|
227690
|
-
},
|
|
227691
227763
|
spendingLimit: {
|
|
227692
227764
|
type: "number",
|
|
227693
227765
|
minimum: 5,
|
|
@@ -227794,6 +227866,12 @@ var state = {
|
|
|
227794
227866
|
accountType: {
|
|
227795
227867
|
type: "string",
|
|
227796
227868
|
enum: ["free", "premium"]
|
|
227869
|
+
},
|
|
227870
|
+
blocked: {
|
|
227871
|
+
type: "boolean"
|
|
227872
|
+
},
|
|
227873
|
+
spendingLimit: {
|
|
227874
|
+
type: "number"
|
|
227797
227875
|
}
|
|
227798
227876
|
},
|
|
227799
227877
|
required: [
|
|
@@ -227803,8 +227881,11 @@ var state = {
|
|
|
227803
227881
|
"createdAt",
|
|
227804
227882
|
"updatedAt",
|
|
227805
227883
|
"botCount",
|
|
227806
|
-
"accountType"
|
|
227807
|
-
|
|
227884
|
+
"accountType",
|
|
227885
|
+
"blocked",
|
|
227886
|
+
"spendingLimit"
|
|
227887
|
+
],
|
|
227888
|
+
title: "updateWorkspaceResponse"
|
|
227808
227889
|
}
|
|
227809
227890
|
},
|
|
227810
227891
|
meta: {
|
|
@@ -227824,6 +227905,212 @@ var state = {
|
|
|
227824
227905
|
}
|
|
227825
227906
|
}
|
|
227826
227907
|
},
|
|
227908
|
+
changeWorkspacePlan: {
|
|
227909
|
+
name: "changeWorkspacePlan",
|
|
227910
|
+
description: "Change workspace billing plan",
|
|
227911
|
+
method: "put",
|
|
227912
|
+
path: "/v1/admin/workspaces/{id}/change-plan",
|
|
227913
|
+
disableDefaultParameters: {
|
|
227914
|
+
"x-workspace-id": true
|
|
227915
|
+
},
|
|
227916
|
+
parameters: {
|
|
227917
|
+
id: {
|
|
227918
|
+
type: "string",
|
|
227919
|
+
description: "Workspace ID",
|
|
227920
|
+
in: "path"
|
|
227921
|
+
}
|
|
227922
|
+
},
|
|
227923
|
+
requestBody: {
|
|
227924
|
+
description: "Billing plan to change the workspace to",
|
|
227925
|
+
schema: {
|
|
227926
|
+
type: "object",
|
|
227927
|
+
properties: {
|
|
227928
|
+
plan: {
|
|
227929
|
+
type: "string",
|
|
227930
|
+
enum: ["free", "premium"]
|
|
227931
|
+
}
|
|
227932
|
+
},
|
|
227933
|
+
required: ["plan"],
|
|
227934
|
+
title: "changeWorkspacePlanBody",
|
|
227935
|
+
additionalProperties: false
|
|
227936
|
+
}
|
|
227937
|
+
},
|
|
227938
|
+
response: {
|
|
227939
|
+
description: "Success",
|
|
227940
|
+
schema: {
|
|
227941
|
+
type: "object",
|
|
227942
|
+
properties: {
|
|
227943
|
+
id: {
|
|
227944
|
+
type: "string"
|
|
227945
|
+
},
|
|
227946
|
+
name: {
|
|
227947
|
+
type: "string"
|
|
227948
|
+
},
|
|
227949
|
+
ownerId: {
|
|
227950
|
+
type: "string"
|
|
227951
|
+
},
|
|
227952
|
+
createdAt: {
|
|
227953
|
+
type: "string"
|
|
227954
|
+
},
|
|
227955
|
+
updatedAt: {
|
|
227956
|
+
type: "string"
|
|
227957
|
+
},
|
|
227958
|
+
botCount: {
|
|
227959
|
+
type: "number"
|
|
227960
|
+
},
|
|
227961
|
+
accountType: {
|
|
227962
|
+
type: "string",
|
|
227963
|
+
enum: ["free", "premium"]
|
|
227964
|
+
},
|
|
227965
|
+
blocked: {
|
|
227966
|
+
type: "boolean"
|
|
227967
|
+
},
|
|
227968
|
+
spendingLimit: {
|
|
227969
|
+
type: "number"
|
|
227970
|
+
}
|
|
227971
|
+
},
|
|
227972
|
+
required: [
|
|
227973
|
+
"id",
|
|
227974
|
+
"name",
|
|
227975
|
+
"ownerId",
|
|
227976
|
+
"createdAt",
|
|
227977
|
+
"updatedAt",
|
|
227978
|
+
"botCount",
|
|
227979
|
+
"accountType",
|
|
227980
|
+
"blocked",
|
|
227981
|
+
"spendingLimit"
|
|
227982
|
+
],
|
|
227983
|
+
title: "changeWorkspacePlanResponse",
|
|
227984
|
+
additionalProperties: false
|
|
227985
|
+
}
|
|
227986
|
+
}
|
|
227987
|
+
},
|
|
227988
|
+
deleteWorkspace: {
|
|
227989
|
+
name: "deleteWorkspace",
|
|
227990
|
+
description: "Delete workspace",
|
|
227991
|
+
method: "delete",
|
|
227992
|
+
path: "/v1/admin/workspaces/{id}",
|
|
227993
|
+
disableDefaultParameters: {
|
|
227994
|
+
"x-workspace-id": true
|
|
227995
|
+
},
|
|
227996
|
+
parameters: {
|
|
227997
|
+
id: {
|
|
227998
|
+
type: "string",
|
|
227999
|
+
description: "Workspace ID",
|
|
228000
|
+
in: "path"
|
|
228001
|
+
}
|
|
228002
|
+
},
|
|
228003
|
+
response: {
|
|
228004
|
+
description: "Success",
|
|
228005
|
+
schema: {
|
|
228006
|
+
type: "object",
|
|
228007
|
+
title: "deleteWorkspaceResponse",
|
|
228008
|
+
additionalProperties: false
|
|
228009
|
+
}
|
|
228010
|
+
}
|
|
228011
|
+
},
|
|
228012
|
+
getAuditRecords: {
|
|
228013
|
+
name: "getAuditRecords",
|
|
228014
|
+
description: "Get the audit records of a workspace",
|
|
228015
|
+
method: "get",
|
|
228016
|
+
path: "/v1/admin/workspaces/{id}/audit-records",
|
|
228017
|
+
parameters: {
|
|
228018
|
+
id: {
|
|
228019
|
+
type: "string",
|
|
228020
|
+
description: "Workspace ID",
|
|
228021
|
+
in: "path"
|
|
228022
|
+
}
|
|
228023
|
+
},
|
|
228024
|
+
disableDefaultParameters: {
|
|
228025
|
+
"x-workspace-id": true
|
|
228026
|
+
},
|
|
228027
|
+
response: {
|
|
228028
|
+
description: "List of audit records",
|
|
228029
|
+
schema: {
|
|
228030
|
+
type: "object",
|
|
228031
|
+
properties: {
|
|
228032
|
+
records: {
|
|
228033
|
+
type: "array",
|
|
228034
|
+
items: {
|
|
228035
|
+
type: "object",
|
|
228036
|
+
properties: {
|
|
228037
|
+
id: {
|
|
228038
|
+
type: "string",
|
|
228039
|
+
format: "uuid"
|
|
228040
|
+
},
|
|
228041
|
+
recordedAt: {
|
|
228042
|
+
type: "string",
|
|
228043
|
+
format: "date-time"
|
|
228044
|
+
},
|
|
228045
|
+
userId: {
|
|
228046
|
+
type: "string",
|
|
228047
|
+
format: "uuid",
|
|
228048
|
+
nullable: true
|
|
228049
|
+
},
|
|
228050
|
+
userEmail: {
|
|
228051
|
+
type: "string",
|
|
228052
|
+
nullable: true
|
|
228053
|
+
},
|
|
228054
|
+
resourceId: {
|
|
228055
|
+
type: "string",
|
|
228056
|
+
format: "uuid",
|
|
228057
|
+
nullable: true
|
|
228058
|
+
},
|
|
228059
|
+
resourceName: {
|
|
228060
|
+
type: "string",
|
|
228061
|
+
nullable: true
|
|
228062
|
+
},
|
|
228063
|
+
action: {
|
|
228064
|
+
type: "string",
|
|
228065
|
+
enum: [
|
|
228066
|
+
"UNKNOWN",
|
|
228067
|
+
"ADD_COLLABORATOR",
|
|
228068
|
+
"REMOVE_COLLABORATOR",
|
|
228069
|
+
"UPDATE_WORKSPACE_MEMBER",
|
|
228070
|
+
"CLOSE_WORKSPACE",
|
|
228071
|
+
"CREATE_BOT",
|
|
228072
|
+
"CREATE_WORKSPACE",
|
|
228073
|
+
"DELETE_BOT",
|
|
228074
|
+
"DEPLOY_BOT",
|
|
228075
|
+
"TRANSFER_BOT",
|
|
228076
|
+
"DOWNGRADE_WORKSPACE_PLAN",
|
|
228077
|
+
"DOWNLOAD_BOT_ARCHIVE",
|
|
228078
|
+
"UPDATE_BOT",
|
|
228079
|
+
"UPDATE_BOT_CHANNEL",
|
|
228080
|
+
"UPDATE_BOT_CONFIG",
|
|
228081
|
+
"UPDATE_PAYMENT_METHOD",
|
|
228082
|
+
"UPDATE_WORKSPACE",
|
|
228083
|
+
"UPGRADE_WORKSPACE_PLAN",
|
|
228084
|
+
"SET_SPENDING_LIMIT"
|
|
228085
|
+
]
|
|
228086
|
+
}
|
|
228087
|
+
},
|
|
228088
|
+
required: [
|
|
228089
|
+
"id",
|
|
228090
|
+
"recordedAt",
|
|
228091
|
+
"userId",
|
|
228092
|
+
"resourceId",
|
|
228093
|
+
"action"
|
|
228094
|
+
]
|
|
228095
|
+
}
|
|
228096
|
+
},
|
|
228097
|
+
meta: {
|
|
228098
|
+
type: "object",
|
|
228099
|
+
properties: {
|
|
228100
|
+
nextToken: {
|
|
228101
|
+
type: "string",
|
|
228102
|
+
description: "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
228103
|
+
}
|
|
228104
|
+
},
|
|
228105
|
+
additionalProperties: false
|
|
228106
|
+
}
|
|
228107
|
+
},
|
|
228108
|
+
required: ["records", "meta"],
|
|
228109
|
+
title: "getAuditRecordsResponse",
|
|
228110
|
+
additionalProperties: false
|
|
228111
|
+
}
|
|
228112
|
+
}
|
|
228113
|
+
},
|
|
227827
228114
|
createIntegration: {
|
|
227828
228115
|
name: "createIntegration",
|
|
227829
228116
|
description: "Create integration",
|
|
@@ -229134,7 +229421,7 @@ var state = {
|
|
|
229134
229421
|
title: "Botpress API",
|
|
229135
229422
|
description: "API for Botpress Cloud",
|
|
229136
229423
|
server: "https://api.botpress.cloud",
|
|
229137
|
-
version: "0.
|
|
229424
|
+
version: "0.5.0",
|
|
229138
229425
|
prefix: "v1"
|
|
229139
229426
|
},
|
|
229140
229427
|
errors: [
|
|
@@ -229227,6 +229514,11 @@ var state = {
|
|
|
229227
229514
|
status: 429,
|
|
229228
229515
|
type: "RateLimited",
|
|
229229
229516
|
description: "The request has been rate limited."
|
|
229517
|
+
},
|
|
229518
|
+
{
|
|
229519
|
+
status: 402,
|
|
229520
|
+
type: "PaymentRequired",
|
|
229521
|
+
description: "A payment is required to perform this request."
|
|
229230
229522
|
}
|
|
229231
229523
|
],
|
|
229232
229524
|
refs: {
|
|
@@ -229249,7 +229541,9 @@ var state = {
|
|
|
229249
229541
|
createBotBody: true,
|
|
229250
229542
|
updateBotBody: true,
|
|
229251
229543
|
transferBotBody: true,
|
|
229544
|
+
createWorkspaceBody: true,
|
|
229252
229545
|
updateWorkspaceBody: true,
|
|
229546
|
+
changeWorkspacePlanBody: true,
|
|
229253
229547
|
createIntegrationBody: true,
|
|
229254
229548
|
updateIntegrationBody: true,
|
|
229255
229549
|
createWorkspaceMemberBody: true,
|
|
@@ -229296,9 +229590,13 @@ var state = {
|
|
|
229296
229590
|
getBotLogsResponse: true,
|
|
229297
229591
|
getBotWebchatResponse: true,
|
|
229298
229592
|
getBotAnalyticsResponse: true,
|
|
229593
|
+
createWorkspaceResponse: true,
|
|
229299
229594
|
getWorkspaceResponse: true,
|
|
229300
229595
|
updateWorkspaceResponse: true,
|
|
229301
229596
|
listWorkspacesResponse: true,
|
|
229597
|
+
changeWorkspacePlanResponse: true,
|
|
229598
|
+
deleteWorkspaceResponse: true,
|
|
229599
|
+
getAuditRecordsResponse: true,
|
|
229302
229600
|
createIntegrationResponse: true,
|
|
229303
229601
|
updateIntegrationResponse: true,
|
|
229304
229602
|
listIntegrationsResponse: true,
|
|
@@ -229363,10 +229661,12 @@ var state = {
|
|
|
229363
229661
|
type: "boolean"
|
|
229364
229662
|
},
|
|
229365
229663
|
name: {
|
|
229366
|
-
type: "string"
|
|
229664
|
+
type: "string",
|
|
229665
|
+
description: "Name of the [Integration](#schema_integration)"
|
|
229367
229666
|
},
|
|
229368
229667
|
version: {
|
|
229369
|
-
type: "string"
|
|
229668
|
+
type: "string",
|
|
229669
|
+
description: "Version of the [Integration](#schema_integration)"
|
|
229370
229670
|
},
|
|
229371
229671
|
webhookUrl: {
|
|
229372
229672
|
type: "string"
|
|
@@ -229389,6 +229689,35 @@ var state = {
|
|
|
229389
229689
|
statusReason: {
|
|
229390
229690
|
type: "string",
|
|
229391
229691
|
nullable: true
|
|
229692
|
+
},
|
|
229693
|
+
id: {
|
|
229694
|
+
type: "string",
|
|
229695
|
+
description: "Id of the [Integration](#schema_integration)"
|
|
229696
|
+
},
|
|
229697
|
+
createdAt: {
|
|
229698
|
+
type: "string",
|
|
229699
|
+
format: "date-time",
|
|
229700
|
+
description: "Creation date of the [Integration](#schema_integration) in the ISO 8601 format"
|
|
229701
|
+
},
|
|
229702
|
+
updatedAt: {
|
|
229703
|
+
type: "string",
|
|
229704
|
+
format: "date-time",
|
|
229705
|
+
description: "Updating date of the [Integration](#schema_integration) in the ISO 8601 format"
|
|
229706
|
+
},
|
|
229707
|
+
title: {
|
|
229708
|
+
type: "string",
|
|
229709
|
+
minLength: 1,
|
|
229710
|
+
maxLength: 64,
|
|
229711
|
+
description: "Title of the integration. This is the name that will be displayed in the UI"
|
|
229712
|
+
},
|
|
229713
|
+
description: {
|
|
229714
|
+
type: "string",
|
|
229715
|
+
maxLength: 256,
|
|
229716
|
+
description: "Description of the integration. This is the description that will be displayed in the UI"
|
|
229717
|
+
},
|
|
229718
|
+
iconUrl: {
|
|
229719
|
+
type: "string",
|
|
229720
|
+
description: "URL of the icon of the integration. This is the icon that will be displayed in the UI"
|
|
229392
229721
|
}
|
|
229393
229722
|
},
|
|
229394
229723
|
required: [
|
|
@@ -229398,7 +229727,13 @@ var state = {
|
|
|
229398
229727
|
"webhookUrl",
|
|
229399
229728
|
"configuration",
|
|
229400
229729
|
"status",
|
|
229401
|
-
"statusReason"
|
|
229730
|
+
"statusReason",
|
|
229731
|
+
"id",
|
|
229732
|
+
"createdAt",
|
|
229733
|
+
"updatedAt",
|
|
229734
|
+
"title",
|
|
229735
|
+
"description",
|
|
229736
|
+
"iconUrl"
|
|
229402
229737
|
],
|
|
229403
229738
|
additionalProperties: false
|
|
229404
229739
|
},
|
package/package.json
CHANGED
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"description":"","title":"Hub","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Bot","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics"],"schema":"Bot"},{"description":"","title":"Integration","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"description":"","title":"Workspace","name":"workspace","operations":[],"schema":"Workspace"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."}]}
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"description":"","title":"Hub","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Bot","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics"],"schema":"Bot"},{"description":"","title":"Integration","name":"integration","operations":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"description":"","title":"Workspace","name":"workspace","operations":[],"schema":"Workspace"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."}]}
|