@botpress/api 0.27.0 → 0.27.2

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 CHANGED
@@ -280794,7 +280794,7 @@ var state = {
280794
280794
  "contentType": "application/json",
280795
280795
  "section": "files",
280796
280796
  "response": {
280797
- "description": "The file metadata.",
280797
+ "description": "The created file",
280798
280798
  "schema": {
280799
280799
  "type": "object",
280800
280800
  "properties": {
@@ -281059,10 +281059,10 @@ var state = {
281059
281059
  }
281060
281060
  }
281061
281061
  },
281062
- "getFileMetadata": {
281063
- "name": "getFileMetadata",
281064
- "path": "/v1/files/{id}/metadata",
281065
- "description": "Get file metadata",
281062
+ "getFile": {
281063
+ "name": "getFile",
281064
+ "path": "/v1/files/{id}",
281065
+ "description": "Get file",
281066
281066
  "method": "get",
281067
281067
  "section": "files",
281068
281068
  "parameters": {
@@ -281073,7 +281073,7 @@ var state = {
281073
281073
  }
281074
281074
  },
281075
281075
  "response": {
281076
- "description": "The metadata of the file.",
281076
+ "description": "An object containing the file metadata and URL",
281077
281077
  "schema": {
281078
281078
  "type": "object",
281079
281079
  "properties": {
@@ -281160,51 +281160,26 @@ var state = {
281160
281160
  "status"
281161
281161
  ],
281162
281162
  "additionalProperties": false
281163
- }
281164
- },
281165
- "required": [
281166
- "file"
281167
- ],
281168
- "title": "getFileMetadataResponse",
281169
- "additionalProperties": false
281170
- }
281171
- }
281172
- },
281173
- "getFileContent": {
281174
- "name": "getFileContent",
281175
- "path": "/v1/files/{id}/content",
281176
- "description": "Returns a presigned URL to download the file content.",
281177
- "method": "get",
281178
- "section": "files",
281179
- "parameters": {
281180
- "id": {
281181
- "type": "string",
281182
- "description": "File ID",
281183
- "in": "path"
281184
- }
281185
- },
281186
- "response": {
281187
- "description": "Returns a temporary pre-signed URL to download the file content.",
281188
- "schema": {
281189
- "type": "object",
281190
- "properties": {
281163
+ },
281191
281164
  "url": {
281192
281165
  "type": "string",
281193
- "description": "Temporary pre-signed URL to download the file, should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe."
281166
+ "description": "If the file is not uploaded yet, this will be set to a `null` value.\n\nIf the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.",
281167
+ "nullable": true
281194
281168
  }
281195
281169
  },
281196
281170
  "required": [
281171
+ "file",
281197
281172
  "url"
281198
281173
  ],
281199
- "title": "getFileContentResponse",
281174
+ "title": "getFileResponse",
281200
281175
  "additionalProperties": false
281201
281176
  }
281202
281177
  }
281203
281178
  },
281204
- "updateFileMetadata": {
281205
- "name": "updateFileMetadata",
281206
- "path": "/v1/files/{id}/metadata",
281207
- "description": "Update file metadata",
281179
+ "updateFile": {
281180
+ "name": "updateFile",
281181
+ "path": "/v1/files/{id}",
281182
+ "description": "Update file",
281208
281183
  "method": "put",
281209
281184
  "section": "files",
281210
281185
  "parameters": {
@@ -281232,28 +281207,104 @@ var state = {
281232
281207
  "required": [
281233
281208
  "tags"
281234
281209
  ],
281235
- "title": "updateFileMetadataBody",
281210
+ "title": "updateFileBody",
281236
281211
  "additionalProperties": false
281237
281212
  }
281238
281213
  },
281239
281214
  "response": {
281240
- "description": "An object containing the updated metadata of the file.",
281215
+ "description": "An object containing the updated file metadata.",
281241
281216
  "schema": {
281242
281217
  "type": "object",
281243
281218
  "properties": {
281244
- "tags": {
281219
+ "file": {
281245
281220
  "type": "object",
281246
- "additionalProperties": {
281247
- "type": "string",
281248
- "maxLength": 1e3
281221
+ "properties": {
281222
+ "id": {
281223
+ "type": "string",
281224
+ "description": "File ID"
281225
+ },
281226
+ "botId": {
281227
+ "type": "string",
281228
+ "description": "The ID of the bot the file belongs to"
281229
+ },
281230
+ "name": {
281231
+ "type": "string",
281232
+ "description": "File name",
281233
+ "nullable": true
281234
+ },
281235
+ "size": {
281236
+ "type": "number",
281237
+ "description": 'File size in bytes. Non-null if file upload status is "COMPLETE".',
281238
+ "nullable": true
281239
+ },
281240
+ "contentType": {
281241
+ "type": "string",
281242
+ "description": "MIME type of the file's content"
281243
+ },
281244
+ "tags": {
281245
+ "type": "object",
281246
+ "additionalProperties": {
281247
+ "type": "string",
281248
+ "maxLength": 1e3
281249
+ },
281250
+ "description": "The tags of the file as an object of key/value pairs"
281251
+ },
281252
+ "createdAt": {
281253
+ "type": "string",
281254
+ "description": "File creation timestamp in ISO 8601 format"
281255
+ },
281256
+ "updatedAt": {
281257
+ "type": "string",
281258
+ "description": "File last update timestamp in ISO 8601 format"
281259
+ },
281260
+ "accessPolicies": {
281261
+ "type": "array",
281262
+ "items": {
281263
+ "type": "string"
281264
+ },
281265
+ "description": "Access policies configured for the file."
281266
+ },
281267
+ "index": {
281268
+ "type": "boolean",
281269
+ "description": "Whether the file was requested to be indexed for search or not."
281270
+ },
281271
+ "status": {
281272
+ "type": "string",
281273
+ "enum": [
281274
+ "UPLOAD_PENDING",
281275
+ "UPLOAD_FAILED",
281276
+ "UPLOAD_COMPLETED",
281277
+ "INDEXING_PENDING",
281278
+ "INDEXING_FAILED",
281279
+ "INDEXING_COMPLETED"
281280
+ ],
281281
+ "description": 'Status of the file. If the status is "UPLOAD_PENDING", the file content has not been uploaded yet. The status will be set to "UPLOAD_COMPLETED" once the file content has been uploaded successfully.\n\nIf the upload failed for any reason (e.g. exceeding the storage quota or the maximum file size limit) the status will be set to "UPLOAD_FAILED" and the reason for the failure will be available in the `failedStatusReason` field of the file.\n\nHowever, if the file has been uploaded and the `index` attribute was set to `true` on the file, the status will immediately transition to the "INDEXING_PENDING" status (the "UPLOAD_COMPLETED" status step will be skipped).\n\nOnce the indexing is completed and the file is ready to be used for searching its status will be set to "INDEXING_COMPLETED". If the indexing failed the status will be set to "INDEXING_FAILED" and the reason for the failure will be available in the `failedStatusReason` field.'
281282
+ },
281283
+ "failedStatusReason": {
281284
+ "type": "string",
281285
+ "description": 'If the file status is "UPLOAD_FAILED" or "INDEXING_FAILED" this will contain the reason of the failure.'
281286
+ }
281249
281287
  },
281250
- "description": "The updated tags of the file."
281288
+ "required": [
281289
+ "id",
281290
+ "botId",
281291
+ "name",
281292
+ "size",
281293
+ "contentType",
281294
+ "tags",
281295
+ "createdAt",
281296
+ "updatedAt",
281297
+ "accessPolicies",
281298
+ "index",
281299
+ "status"
281300
+ ],
281301
+ "additionalProperties": false
281251
281302
  }
281252
281303
  },
281253
281304
  "required": [
281254
- "tags"
281305
+ "file"
281255
281306
  ],
281256
- "title": "updateFileMetadataResponse",
281307
+ "title": "updateFileResponse",
281257
281308
  "additionalProperties": false
281258
281309
  }
281259
281310
  }
@@ -282230,7 +282281,7 @@ var state = {
282230
282281
  "title": "Botpress API",
282231
282282
  "description": "API for Botpress Cloud",
282232
282283
  "server": "https://api.botpress.cloud",
282233
- "version": "0.27.0",
282284
+ "version": "0.27.2",
282234
282285
  "prefix": "v1"
282235
282286
  },
282236
282287
  "errors": [
@@ -282392,7 +282443,7 @@ var state = {
282392
282443
  "changeAISpendQuotaBody": true,
282393
282444
  "introspectBody": true,
282394
282445
  "createFileBody": true,
282395
- "updateFileMetadataBody": true,
282446
+ "updateFileBody": true,
282396
282447
  "getOrCreateTableBody": true,
282397
282448
  "createTableBody": true,
282398
282449
  "duplicateTableBody": true,
@@ -282504,9 +282555,8 @@ var state = {
282504
282555
  "createFileResponse": true,
282505
282556
  "deleteFileResponse": true,
282506
282557
  "listFilesResponse": true,
282507
- "getFileMetadataResponse": true,
282508
- "getFileContentResponse": true,
282509
- "updateFileMetadataResponse": true,
282558
+ "getFileResponse": true,
282559
+ "updateFileResponse": true,
282510
282560
  "searchFilesResponse": true,
282511
282561
  "listTablesResponse": true,
282512
282562
  "getTableResponse": true,
@@ -284891,9 +284941,8 @@ var state = {
284891
284941
  "createFile",
284892
284942
  "deleteFile",
284893
284943
  "listFiles",
284894
- "getFileMetadata",
284895
- "getFileContent",
284896
- "updateFileMetadata",
284944
+ "getFile",
284945
+ "updateFile",
284897
284946
  "searchFiles"
284898
284947
  ],
284899
284948
  "schema": "File"
@@ -7327,7 +7327,7 @@ export declare const state: {
7327
7327
  };
7328
7328
  };
7329
7329
  };
7330
- getFileMetadata: {
7330
+ getFile: {
7331
7331
  name: string;
7332
7332
  path: string;
7333
7333
  description: string;
@@ -7410,34 +7410,10 @@ export declare const state: {
7410
7410
  required: string[];
7411
7411
  additionalProperties: false;
7412
7412
  };
7413
- };
7414
- required: string[];
7415
- title: string;
7416
- additionalProperties: false;
7417
- };
7418
- };
7419
- };
7420
- getFileContent: {
7421
- name: string;
7422
- path: string;
7423
- description: string;
7424
- method: "get";
7425
- section: "files";
7426
- parameters: {
7427
- id: {
7428
- type: "string";
7429
- description: string;
7430
- in: "path";
7431
- };
7432
- };
7433
- response: {
7434
- description: string;
7435
- schema: {
7436
- type: "object";
7437
- properties: {
7438
7413
  url: {
7439
7414
  type: "string";
7440
7415
  description: string;
7416
+ nullable: true;
7441
7417
  };
7442
7418
  };
7443
7419
  required: string[];
@@ -7446,7 +7422,7 @@ export declare const state: {
7446
7422
  };
7447
7423
  };
7448
7424
  };
7449
- updateFileMetadata: {
7425
+ updateFile: {
7450
7426
  name: string;
7451
7427
  path: string;
7452
7428
  description: string;
@@ -7484,13 +7460,70 @@ export declare const state: {
7484
7460
  schema: {
7485
7461
  type: "object";
7486
7462
  properties: {
7487
- tags: {
7463
+ file: {
7488
7464
  type: "object";
7489
- additionalProperties: {
7490
- type: "string";
7491
- maxLength: number;
7465
+ properties: {
7466
+ id: {
7467
+ type: "string";
7468
+ description: string;
7469
+ };
7470
+ botId: {
7471
+ type: "string";
7472
+ description: string;
7473
+ };
7474
+ name: {
7475
+ type: "string";
7476
+ description: string;
7477
+ nullable: true;
7478
+ };
7479
+ size: {
7480
+ type: "number";
7481
+ description: string;
7482
+ nullable: true;
7483
+ };
7484
+ contentType: {
7485
+ type: "string";
7486
+ description: string;
7487
+ };
7488
+ tags: {
7489
+ type: "object";
7490
+ additionalProperties: {
7491
+ type: "string";
7492
+ maxLength: number;
7493
+ };
7494
+ description: string;
7495
+ };
7496
+ createdAt: {
7497
+ type: "string";
7498
+ description: string;
7499
+ };
7500
+ updatedAt: {
7501
+ type: "string";
7502
+ description: string;
7503
+ };
7504
+ accessPolicies: {
7505
+ type: "array";
7506
+ items: {
7507
+ type: "string";
7508
+ };
7509
+ description: string;
7510
+ };
7511
+ index: {
7512
+ type: "boolean";
7513
+ description: string;
7514
+ };
7515
+ status: {
7516
+ type: "string";
7517
+ enum: string[];
7518
+ description: string;
7519
+ };
7520
+ failedStatusReason: {
7521
+ type: "string";
7522
+ description: string;
7523
+ };
7492
7524
  };
7493
- description: string;
7525
+ required: string[];
7526
+ additionalProperties: false;
7494
7527
  };
7495
7528
  };
7496
7529
  required: string[];
@@ -8494,7 +8527,7 @@ export declare const state: {
8494
8527
  changeAISpendQuotaBody: true;
8495
8528
  introspectBody: true;
8496
8529
  createFileBody: true;
8497
- updateFileMetadataBody: true;
8530
+ updateFileBody: true;
8498
8531
  getOrCreateTableBody: true;
8499
8532
  createTableBody: true;
8500
8533
  duplicateTableBody: true;
@@ -8606,9 +8639,8 @@ export declare const state: {
8606
8639
  createFileResponse: true;
8607
8640
  deleteFileResponse: true;
8608
8641
  listFilesResponse: true;
8609
- getFileMetadataResponse: true;
8610
- getFileContentResponse: true;
8611
- updateFileMetadataResponse: true;
8642
+ getFileResponse: true;
8643
+ updateFileResponse: true;
8612
8644
  searchFilesResponse: true;
8613
8645
  listTablesResponse: true;
8614
8646
  getTableResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.27.0",
3
+ "version": "0.27.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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","listParticipants","addParticipant","getParticipant","removeParticipant"],"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":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFileMetadata","getFileContent","updateFileMetadata","searchFiles"],"schema":"File"}],"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 related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"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."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
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","listParticipants","addParticipant","getParticipant","removeParticipant"],"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":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"Operations related to file management.","name":"files","operations":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"schema":"File"}],"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 related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"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."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}