@botpress/api 0.18.5 → 0.19.1
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 +539 -169
- package/dist/src/gen/state.d.ts +437 -103
- package/dist/src/index.d.ts +2 -2
- package/package.json +4 -4
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +513 -155
package/src/gen/state.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/* prettier-ignore */
|
|
4
4
|
import * as opapi from '@bpinternal/opapi'
|
|
5
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | '
|
|
5
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'file' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
6
6
|
export const state = {
|
|
7
7
|
"operations": {
|
|
8
8
|
"createConversation": {
|
|
@@ -7103,54 +7103,130 @@ export const state = {
|
|
|
7103
7103
|
},
|
|
7104
7104
|
"createFile": {
|
|
7105
7105
|
"name": "createFile",
|
|
7106
|
-
"
|
|
7106
|
+
"path": "/v1/files",
|
|
7107
|
+
"description": "Creates a file.",
|
|
7107
7108
|
"method": "post",
|
|
7108
|
-
"path": "/v1/storage/files",
|
|
7109
|
-
"section": "file",
|
|
7110
7109
|
"requestBody": {
|
|
7111
|
-
"description": "
|
|
7110
|
+
"description": "The file to upload.",
|
|
7112
7111
|
"schema": {
|
|
7113
7112
|
"type": "object",
|
|
7114
7113
|
"properties": {
|
|
7115
|
-
"
|
|
7116
|
-
"
|
|
7117
|
-
"format": "uuid",
|
|
7118
|
-
"description": "ID of the bot the file will be used for"
|
|
7119
|
-
},
|
|
7120
|
-
"contents": {
|
|
7121
|
-
"type": "string",
|
|
7122
|
-
"description": "Base64-encoded file contents"
|
|
7123
|
-
},
|
|
7124
|
-
"name": {
|
|
7125
|
-
"type": "string",
|
|
7126
|
-
"description": "Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only."
|
|
7127
|
-
},
|
|
7128
|
-
"accessType": {
|
|
7129
|
-
"type": "string",
|
|
7130
|
-
"enum": [
|
|
7131
|
-
"private",
|
|
7132
|
-
"public"
|
|
7133
|
-
],
|
|
7134
|
-
"description": "Accepted values: private, public"
|
|
7114
|
+
"data": {
|
|
7115
|
+
"nullable": true
|
|
7135
7116
|
}
|
|
7136
7117
|
},
|
|
7137
|
-
"required": [
|
|
7138
|
-
"botId",
|
|
7139
|
-
"contents",
|
|
7140
|
-
"name",
|
|
7141
|
-
"accessType"
|
|
7142
|
-
],
|
|
7143
7118
|
"title": "createFileBody",
|
|
7119
|
+
"format": "binary",
|
|
7144
7120
|
"additionalProperties": false
|
|
7145
7121
|
}
|
|
7146
7122
|
},
|
|
7123
|
+
"parameters": {
|
|
7124
|
+
"x-filename": {
|
|
7125
|
+
"type": "string",
|
|
7126
|
+
"description": "File name",
|
|
7127
|
+
"in": "header",
|
|
7128
|
+
"required": true
|
|
7129
|
+
},
|
|
7130
|
+
"x-tags": {
|
|
7131
|
+
"type": "string",
|
|
7132
|
+
"description": "File tags as URL-encoded JSON string representing an object of key-value pairs.",
|
|
7133
|
+
"in": "header"
|
|
7134
|
+
},
|
|
7135
|
+
"x-access-policies": {
|
|
7136
|
+
"type": "string",
|
|
7137
|
+
"description": "File access policies",
|
|
7138
|
+
"in": "header"
|
|
7139
|
+
},
|
|
7140
|
+
"Content-Type": {
|
|
7141
|
+
"type": "string",
|
|
7142
|
+
"description": "File content type",
|
|
7143
|
+
"in": "header"
|
|
7144
|
+
},
|
|
7145
|
+
"Content-Length": {
|
|
7146
|
+
"type": "string",
|
|
7147
|
+
"description": "File content length",
|
|
7148
|
+
"in": "header"
|
|
7149
|
+
},
|
|
7150
|
+
"x-bot-id": {
|
|
7151
|
+
"in": "header",
|
|
7152
|
+
"description": "Bot id",
|
|
7153
|
+
"type": "string",
|
|
7154
|
+
"required": true
|
|
7155
|
+
},
|
|
7156
|
+
"x-integration-id": {
|
|
7157
|
+
"in": "header",
|
|
7158
|
+
"description": "Integration id",
|
|
7159
|
+
"type": "string",
|
|
7160
|
+
"required": false
|
|
7161
|
+
},
|
|
7162
|
+
"x-user-id": {
|
|
7163
|
+
"in": "header",
|
|
7164
|
+
"description": "User id",
|
|
7165
|
+
"type": "string",
|
|
7166
|
+
"required": false
|
|
7167
|
+
},
|
|
7168
|
+
"x-user-role": {
|
|
7169
|
+
"in": "header",
|
|
7170
|
+
"description": "User role",
|
|
7171
|
+
"type": "string",
|
|
7172
|
+
"required": false
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"contentType": "*/*",
|
|
7176
|
+
"section": "files",
|
|
7147
7177
|
"response": {
|
|
7148
|
-
"description": "
|
|
7178
|
+
"description": "The file metadata.",
|
|
7149
7179
|
"schema": {
|
|
7150
7180
|
"type": "object",
|
|
7151
7181
|
"properties": {
|
|
7152
7182
|
"file": {
|
|
7153
|
-
"
|
|
7183
|
+
"type": "object",
|
|
7184
|
+
"properties": {
|
|
7185
|
+
"id": {
|
|
7186
|
+
"type": "string"
|
|
7187
|
+
},
|
|
7188
|
+
"botId": {
|
|
7189
|
+
"type": "string"
|
|
7190
|
+
},
|
|
7191
|
+
"filename": {
|
|
7192
|
+
"type": "string"
|
|
7193
|
+
},
|
|
7194
|
+
"bytes": {
|
|
7195
|
+
"type": "number",
|
|
7196
|
+
"nullable": true
|
|
7197
|
+
},
|
|
7198
|
+
"tags": {
|
|
7199
|
+
"type": "object",
|
|
7200
|
+
"additionalProperties": {
|
|
7201
|
+
"type": "string",
|
|
7202
|
+
"maxLength": 1000
|
|
7203
|
+
},
|
|
7204
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
7205
|
+
},
|
|
7206
|
+
"createdAt": {
|
|
7207
|
+
"type": "string"
|
|
7208
|
+
},
|
|
7209
|
+
"updatedAt": {
|
|
7210
|
+
"type": "string"
|
|
7211
|
+
},
|
|
7212
|
+
"accessPolicies": {
|
|
7213
|
+
"type": "array",
|
|
7214
|
+
"items": {
|
|
7215
|
+
"type": "string"
|
|
7216
|
+
}
|
|
7217
|
+
}
|
|
7218
|
+
},
|
|
7219
|
+
"required": [
|
|
7220
|
+
"id",
|
|
7221
|
+
"botId",
|
|
7222
|
+
"filename",
|
|
7223
|
+
"bytes",
|
|
7224
|
+
"tags",
|
|
7225
|
+
"createdAt",
|
|
7226
|
+
"updatedAt",
|
|
7227
|
+
"accessPolicies"
|
|
7228
|
+
],
|
|
7229
|
+
"additionalProperties": false
|
|
7154
7230
|
}
|
|
7155
7231
|
},
|
|
7156
7232
|
"required": [
|
|
@@ -7159,128 +7235,399 @@ export const state = {
|
|
|
7159
7235
|
"title": "createFileResponse",
|
|
7160
7236
|
"additionalProperties": false
|
|
7161
7237
|
}
|
|
7162
|
-
}
|
|
7163
|
-
"parameters": {}
|
|
7238
|
+
}
|
|
7164
7239
|
},
|
|
7165
|
-
"
|
|
7166
|
-
"name": "
|
|
7167
|
-
"
|
|
7168
|
-
"
|
|
7169
|
-
"
|
|
7170
|
-
"section": "
|
|
7240
|
+
"deleteFile": {
|
|
7241
|
+
"name": "deleteFile",
|
|
7242
|
+
"path": "/v1/files/{id}",
|
|
7243
|
+
"description": "Deletes a file.",
|
|
7244
|
+
"method": "delete",
|
|
7245
|
+
"section": "files",
|
|
7171
7246
|
"parameters": {
|
|
7172
7247
|
"id": {
|
|
7173
7248
|
"type": "string",
|
|
7174
7249
|
"description": "File ID",
|
|
7175
7250
|
"in": "path"
|
|
7251
|
+
},
|
|
7252
|
+
"x-bot-id": {
|
|
7253
|
+
"in": "header",
|
|
7254
|
+
"description": "Bot id",
|
|
7255
|
+
"type": "string",
|
|
7256
|
+
"required": true
|
|
7257
|
+
},
|
|
7258
|
+
"x-integration-id": {
|
|
7259
|
+
"in": "header",
|
|
7260
|
+
"description": "Integration id",
|
|
7261
|
+
"type": "string",
|
|
7262
|
+
"required": false
|
|
7263
|
+
},
|
|
7264
|
+
"x-user-id": {
|
|
7265
|
+
"in": "header",
|
|
7266
|
+
"description": "User id",
|
|
7267
|
+
"type": "string",
|
|
7268
|
+
"required": false
|
|
7269
|
+
},
|
|
7270
|
+
"x-user-role": {
|
|
7271
|
+
"in": "header",
|
|
7272
|
+
"description": "User role",
|
|
7273
|
+
"type": "string",
|
|
7274
|
+
"required": false
|
|
7176
7275
|
}
|
|
7177
7276
|
},
|
|
7178
7277
|
"response": {
|
|
7179
|
-
"description": "
|
|
7278
|
+
"description": "Empty response.",
|
|
7279
|
+
"schema": {
|
|
7280
|
+
"type": "object",
|
|
7281
|
+
"title": "deleteFileResponse",
|
|
7282
|
+
"additionalProperties": false
|
|
7283
|
+
}
|
|
7284
|
+
}
|
|
7285
|
+
},
|
|
7286
|
+
"listFiles": {
|
|
7287
|
+
"name": "listFiles",
|
|
7288
|
+
"path": "/v1/files/bot/{botId}",
|
|
7289
|
+
"description": "List files for bot",
|
|
7290
|
+
"method": "get",
|
|
7291
|
+
"section": "files",
|
|
7292
|
+
"parameters": {
|
|
7293
|
+
"nextToken": {
|
|
7294
|
+
"in": "query",
|
|
7295
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
7296
|
+
"type": "string"
|
|
7297
|
+
},
|
|
7298
|
+
"x-bot-id": {
|
|
7299
|
+
"in": "header",
|
|
7300
|
+
"description": "Bot id",
|
|
7301
|
+
"type": "string",
|
|
7302
|
+
"required": true
|
|
7303
|
+
},
|
|
7304
|
+
"x-integration-id": {
|
|
7305
|
+
"in": "header",
|
|
7306
|
+
"description": "Integration id",
|
|
7307
|
+
"type": "string",
|
|
7308
|
+
"required": false
|
|
7309
|
+
},
|
|
7310
|
+
"x-user-id": {
|
|
7311
|
+
"in": "header",
|
|
7312
|
+
"description": "User id",
|
|
7313
|
+
"type": "string",
|
|
7314
|
+
"required": false
|
|
7315
|
+
},
|
|
7316
|
+
"x-user-role": {
|
|
7317
|
+
"in": "header",
|
|
7318
|
+
"description": "User role",
|
|
7319
|
+
"type": "string",
|
|
7320
|
+
"required": false
|
|
7321
|
+
},
|
|
7322
|
+
"botId": {
|
|
7323
|
+
"type": "string",
|
|
7324
|
+
"description": "Bot ID",
|
|
7325
|
+
"in": "path"
|
|
7326
|
+
},
|
|
7327
|
+
"tags": {
|
|
7328
|
+
"in": "query",
|
|
7329
|
+
"type": "string",
|
|
7330
|
+
"description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
|
|
7331
|
+
}
|
|
7332
|
+
},
|
|
7333
|
+
"response": {
|
|
7334
|
+
"description": "Returns the list of files related to the bot.",
|
|
7180
7335
|
"schema": {
|
|
7181
7336
|
"type": "object",
|
|
7182
7337
|
"properties": {
|
|
7183
|
-
"
|
|
7184
|
-
"
|
|
7338
|
+
"files": {
|
|
7339
|
+
"type": "array",
|
|
7340
|
+
"items": {
|
|
7341
|
+
"type": "object",
|
|
7342
|
+
"properties": {
|
|
7343
|
+
"id": {
|
|
7344
|
+
"type": "string"
|
|
7345
|
+
},
|
|
7346
|
+
"botId": {
|
|
7347
|
+
"type": "string"
|
|
7348
|
+
},
|
|
7349
|
+
"filename": {
|
|
7350
|
+
"type": "string"
|
|
7351
|
+
},
|
|
7352
|
+
"bytes": {
|
|
7353
|
+
"type": "number",
|
|
7354
|
+
"nullable": true
|
|
7355
|
+
},
|
|
7356
|
+
"createdAt": {
|
|
7357
|
+
"type": "string"
|
|
7358
|
+
},
|
|
7359
|
+
"updatedAt": {
|
|
7360
|
+
"type": "string"
|
|
7361
|
+
},
|
|
7362
|
+
"accessPolicies": {
|
|
7363
|
+
"type": "array",
|
|
7364
|
+
"items": {
|
|
7365
|
+
"type": "string"
|
|
7366
|
+
}
|
|
7367
|
+
}
|
|
7368
|
+
},
|
|
7369
|
+
"required": [
|
|
7370
|
+
"id",
|
|
7371
|
+
"botId",
|
|
7372
|
+
"filename",
|
|
7373
|
+
"bytes",
|
|
7374
|
+
"createdAt",
|
|
7375
|
+
"updatedAt",
|
|
7376
|
+
"accessPolicies"
|
|
7377
|
+
]
|
|
7378
|
+
}
|
|
7379
|
+
},
|
|
7380
|
+
"meta": {
|
|
7381
|
+
"type": "object",
|
|
7382
|
+
"properties": {
|
|
7383
|
+
"nextToken": {
|
|
7384
|
+
"type": "string",
|
|
7385
|
+
"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."
|
|
7386
|
+
}
|
|
7387
|
+
},
|
|
7388
|
+
"additionalProperties": false
|
|
7185
7389
|
}
|
|
7186
7390
|
},
|
|
7187
7391
|
"required": [
|
|
7188
|
-
"
|
|
7392
|
+
"files",
|
|
7393
|
+
"meta"
|
|
7189
7394
|
],
|
|
7190
|
-
"title": "
|
|
7395
|
+
"title": "listFilesResponse",
|
|
7191
7396
|
"additionalProperties": false
|
|
7192
7397
|
}
|
|
7193
7398
|
}
|
|
7194
7399
|
},
|
|
7195
|
-
"
|
|
7196
|
-
"name": "
|
|
7197
|
-
"
|
|
7400
|
+
"getFileMetadata": {
|
|
7401
|
+
"name": "getFileMetadata",
|
|
7402
|
+
"path": "/v1/files/{id}/metadata",
|
|
7403
|
+
"description": "Get file metadata",
|
|
7198
7404
|
"method": "get",
|
|
7199
|
-
"
|
|
7200
|
-
"section": "file",
|
|
7405
|
+
"section": "files",
|
|
7201
7406
|
"parameters": {
|
|
7202
7407
|
"id": {
|
|
7203
7408
|
"type": "string",
|
|
7204
7409
|
"description": "File ID",
|
|
7205
7410
|
"in": "path"
|
|
7411
|
+
},
|
|
7412
|
+
"x-bot-id": {
|
|
7413
|
+
"in": "header",
|
|
7414
|
+
"description": "Bot id",
|
|
7415
|
+
"type": "string",
|
|
7416
|
+
"required": true
|
|
7417
|
+
},
|
|
7418
|
+
"x-integration-id": {
|
|
7419
|
+
"in": "header",
|
|
7420
|
+
"description": "Integration id",
|
|
7421
|
+
"type": "string",
|
|
7422
|
+
"required": false
|
|
7423
|
+
},
|
|
7424
|
+
"x-user-id": {
|
|
7425
|
+
"in": "header",
|
|
7426
|
+
"description": "User id",
|
|
7427
|
+
"type": "string",
|
|
7428
|
+
"required": false
|
|
7429
|
+
},
|
|
7430
|
+
"x-user-role": {
|
|
7431
|
+
"in": "header",
|
|
7432
|
+
"description": "User role",
|
|
7433
|
+
"type": "string",
|
|
7434
|
+
"required": false
|
|
7206
7435
|
}
|
|
7207
7436
|
},
|
|
7208
7437
|
"response": {
|
|
7209
|
-
"description": "
|
|
7438
|
+
"description": "The metadata of the file.",
|
|
7210
7439
|
"schema": {
|
|
7211
|
-
"
|
|
7212
|
-
"
|
|
7440
|
+
"type": "object",
|
|
7441
|
+
"properties": {
|
|
7442
|
+
"file": {
|
|
7443
|
+
"type": "object",
|
|
7444
|
+
"properties": {
|
|
7445
|
+
"id": {
|
|
7446
|
+
"type": "string"
|
|
7447
|
+
},
|
|
7448
|
+
"botId": {
|
|
7449
|
+
"type": "string"
|
|
7450
|
+
},
|
|
7451
|
+
"filename": {
|
|
7452
|
+
"type": "string"
|
|
7453
|
+
},
|
|
7454
|
+
"bytes": {
|
|
7455
|
+
"type": "number",
|
|
7456
|
+
"nullable": true
|
|
7457
|
+
},
|
|
7458
|
+
"tags": {
|
|
7459
|
+
"type": "object",
|
|
7460
|
+
"additionalProperties": {
|
|
7461
|
+
"type": "string",
|
|
7462
|
+
"maxLength": 1000
|
|
7463
|
+
},
|
|
7464
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
7465
|
+
},
|
|
7466
|
+
"createdAt": {
|
|
7467
|
+
"type": "string"
|
|
7468
|
+
},
|
|
7469
|
+
"updatedAt": {
|
|
7470
|
+
"type": "string"
|
|
7471
|
+
},
|
|
7472
|
+
"accessPolicies": {
|
|
7473
|
+
"type": "array",
|
|
7474
|
+
"items": {
|
|
7475
|
+
"type": "string"
|
|
7476
|
+
}
|
|
7477
|
+
}
|
|
7478
|
+
},
|
|
7479
|
+
"required": [
|
|
7480
|
+
"id",
|
|
7481
|
+
"botId",
|
|
7482
|
+
"filename",
|
|
7483
|
+
"bytes",
|
|
7484
|
+
"tags",
|
|
7485
|
+
"createdAt",
|
|
7486
|
+
"updatedAt",
|
|
7487
|
+
"accessPolicies"
|
|
7488
|
+
],
|
|
7489
|
+
"additionalProperties": false
|
|
7490
|
+
}
|
|
7491
|
+
},
|
|
7492
|
+
"required": [
|
|
7493
|
+
"file"
|
|
7494
|
+
],
|
|
7495
|
+
"title": "getFileMetadataResponse",
|
|
7496
|
+
"additionalProperties": false
|
|
7213
7497
|
}
|
|
7214
7498
|
}
|
|
7215
7499
|
},
|
|
7216
|
-
"
|
|
7217
|
-
"name": "
|
|
7218
|
-
"
|
|
7219
|
-
"
|
|
7220
|
-
"
|
|
7221
|
-
"section": "
|
|
7500
|
+
"getFileContent": {
|
|
7501
|
+
"name": "getFileContent",
|
|
7502
|
+
"path": "/v1/files/{id}/content",
|
|
7503
|
+
"description": "Returns a presigned URL to download the file content.",
|
|
7504
|
+
"method": "get",
|
|
7505
|
+
"section": "files",
|
|
7222
7506
|
"parameters": {
|
|
7223
7507
|
"id": {
|
|
7224
7508
|
"type": "string",
|
|
7225
7509
|
"description": "File ID",
|
|
7226
7510
|
"in": "path"
|
|
7511
|
+
},
|
|
7512
|
+
"x-bot-id": {
|
|
7513
|
+
"in": "header",
|
|
7514
|
+
"description": "Bot id",
|
|
7515
|
+
"type": "string",
|
|
7516
|
+
"required": true
|
|
7517
|
+
},
|
|
7518
|
+
"x-integration-id": {
|
|
7519
|
+
"in": "header",
|
|
7520
|
+
"description": "Integration id",
|
|
7521
|
+
"type": "string",
|
|
7522
|
+
"required": false
|
|
7523
|
+
},
|
|
7524
|
+
"x-user-id": {
|
|
7525
|
+
"in": "header",
|
|
7526
|
+
"description": "User id",
|
|
7527
|
+
"type": "string",
|
|
7528
|
+
"required": false
|
|
7529
|
+
},
|
|
7530
|
+
"x-user-role": {
|
|
7531
|
+
"in": "header",
|
|
7532
|
+
"description": "User role",
|
|
7533
|
+
"type": "string",
|
|
7534
|
+
"required": false
|
|
7227
7535
|
}
|
|
7228
7536
|
},
|
|
7229
7537
|
"response": {
|
|
7230
|
-
"description": "
|
|
7538
|
+
"description": "Returns a temporary pre-signed URL to download the file content.",
|
|
7231
7539
|
"schema": {
|
|
7232
7540
|
"type": "object",
|
|
7233
|
-
"
|
|
7541
|
+
"properties": {
|
|
7542
|
+
"url": {
|
|
7543
|
+
"type": "string",
|
|
7544
|
+
"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."
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
"required": [
|
|
7548
|
+
"url"
|
|
7549
|
+
],
|
|
7550
|
+
"title": "getFileContentResponse",
|
|
7234
7551
|
"additionalProperties": false
|
|
7235
7552
|
}
|
|
7236
7553
|
}
|
|
7237
7554
|
},
|
|
7238
|
-
"
|
|
7239
|
-
"name": "
|
|
7240
|
-
"
|
|
7241
|
-
"
|
|
7242
|
-
"
|
|
7243
|
-
"section": "
|
|
7555
|
+
"updateFileMetadata": {
|
|
7556
|
+
"name": "updateFileMetadata",
|
|
7557
|
+
"path": "/v1/files/{id}/metadata",
|
|
7558
|
+
"description": "Update file metadata",
|
|
7559
|
+
"method": "put",
|
|
7560
|
+
"section": "files",
|
|
7244
7561
|
"parameters": {
|
|
7245
|
-
"
|
|
7246
|
-
"
|
|
7247
|
-
"description": "
|
|
7248
|
-
"
|
|
7562
|
+
"id": {
|
|
7563
|
+
"type": "string",
|
|
7564
|
+
"description": "File ID",
|
|
7565
|
+
"in": "path"
|
|
7249
7566
|
},
|
|
7250
|
-
"
|
|
7251
|
-
"in": "
|
|
7567
|
+
"x-bot-id": {
|
|
7568
|
+
"in": "header",
|
|
7569
|
+
"description": "Bot id",
|
|
7252
7570
|
"type": "string",
|
|
7253
|
-
"description": "Bot ID",
|
|
7254
7571
|
"required": true
|
|
7572
|
+
},
|
|
7573
|
+
"x-integration-id": {
|
|
7574
|
+
"in": "header",
|
|
7575
|
+
"description": "Integration id",
|
|
7576
|
+
"type": "string",
|
|
7577
|
+
"required": false
|
|
7578
|
+
},
|
|
7579
|
+
"x-user-id": {
|
|
7580
|
+
"in": "header",
|
|
7581
|
+
"description": "User id",
|
|
7582
|
+
"type": "string",
|
|
7583
|
+
"required": false
|
|
7584
|
+
},
|
|
7585
|
+
"x-user-role": {
|
|
7586
|
+
"in": "header",
|
|
7587
|
+
"description": "User role",
|
|
7588
|
+
"type": "string",
|
|
7589
|
+
"required": false
|
|
7590
|
+
}
|
|
7591
|
+
},
|
|
7592
|
+
"requestBody": {
|
|
7593
|
+
"description": "File metadata to update.",
|
|
7594
|
+
"schema": {
|
|
7595
|
+
"type": "object",
|
|
7596
|
+
"properties": {
|
|
7597
|
+
"tags": {
|
|
7598
|
+
"type": "object",
|
|
7599
|
+
"additionalProperties": {
|
|
7600
|
+
"type": "string",
|
|
7601
|
+
"maxLength": 1000
|
|
7602
|
+
},
|
|
7603
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
7604
|
+
}
|
|
7605
|
+
},
|
|
7606
|
+
"required": [
|
|
7607
|
+
"tags"
|
|
7608
|
+
],
|
|
7609
|
+
"title": "updateFileMetadataBody",
|
|
7610
|
+
"additionalProperties": false
|
|
7255
7611
|
}
|
|
7256
7612
|
},
|
|
7257
7613
|
"response": {
|
|
7258
|
-
"description": "
|
|
7614
|
+
"description": "An object containing the updated metadata of the file.",
|
|
7259
7615
|
"schema": {
|
|
7260
7616
|
"type": "object",
|
|
7261
7617
|
"properties": {
|
|
7262
|
-
"
|
|
7263
|
-
"type": "array",
|
|
7264
|
-
"items": {
|
|
7265
|
-
"$ref": "#/components/schemas/File"
|
|
7266
|
-
}
|
|
7267
|
-
},
|
|
7268
|
-
"meta": {
|
|
7618
|
+
"tags": {
|
|
7269
7619
|
"type": "object",
|
|
7270
|
-
"
|
|
7271
|
-
"
|
|
7272
|
-
|
|
7273
|
-
"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."
|
|
7274
|
-
}
|
|
7620
|
+
"additionalProperties": {
|
|
7621
|
+
"type": "string",
|
|
7622
|
+
"maxLength": 1000
|
|
7275
7623
|
},
|
|
7276
|
-
"
|
|
7624
|
+
"description": "The tags to update as an object of key/value pairs. A tag key can be set to a null value to delete it."
|
|
7277
7625
|
}
|
|
7278
7626
|
},
|
|
7279
7627
|
"required": [
|
|
7280
|
-
"
|
|
7281
|
-
"meta"
|
|
7628
|
+
"tags"
|
|
7282
7629
|
],
|
|
7283
|
-
"title": "
|
|
7630
|
+
"title": "updateFileMetadataResponse",
|
|
7284
7631
|
"additionalProperties": false
|
|
7285
7632
|
}
|
|
7286
7633
|
}
|
|
@@ -7993,7 +8340,7 @@ export const state = {
|
|
|
7993
8340
|
"title": "Botpress API",
|
|
7994
8341
|
"description": "API for Botpress Cloud",
|
|
7995
8342
|
"server": "https://api.botpress.cloud",
|
|
7996
|
-
"version": "0.
|
|
8343
|
+
"version": "0.19.1",
|
|
7997
8344
|
"prefix": "v1"
|
|
7998
8345
|
},
|
|
7999
8346
|
"errors": [
|
|
@@ -8149,6 +8496,7 @@ export const state = {
|
|
|
8149
8496
|
"changeAISpendQuotaBody": true,
|
|
8150
8497
|
"introspectBody": true,
|
|
8151
8498
|
"createFileBody": true,
|
|
8499
|
+
"updateFileMetadataBody": true,
|
|
8152
8500
|
"createTableBody": true,
|
|
8153
8501
|
"updateTableBody": true,
|
|
8154
8502
|
"renameTableColumnBody": true,
|
|
@@ -8254,10 +8602,11 @@ export const state = {
|
|
|
8254
8602
|
"listActivitiesResponse": true,
|
|
8255
8603
|
"introspectResponse": true,
|
|
8256
8604
|
"createFileResponse": true,
|
|
8257
|
-
"getFileResponse": true,
|
|
8258
|
-
"downloadFileResponse": true,
|
|
8259
8605
|
"deleteFileResponse": true,
|
|
8260
8606
|
"listFilesResponse": true,
|
|
8607
|
+
"getFileMetadataResponse": true,
|
|
8608
|
+
"getFileContentResponse": true,
|
|
8609
|
+
"updateFileMetadataResponse": true,
|
|
8261
8610
|
"listTablesResponse": true,
|
|
8262
8611
|
"getTableResponse": true,
|
|
8263
8612
|
"createTableResponse": true,
|
|
@@ -8287,10 +8636,10 @@ export const state = {
|
|
|
8287
8636
|
"Message": true,
|
|
8288
8637
|
"State": true,
|
|
8289
8638
|
"Task": true,
|
|
8290
|
-
"File": true,
|
|
8291
8639
|
"Table": true,
|
|
8292
8640
|
"Column": true,
|
|
8293
|
-
"Row": true
|
|
8641
|
+
"Row": true,
|
|
8642
|
+
"File": true
|
|
8294
8643
|
}
|
|
8295
8644
|
},
|
|
8296
8645
|
"schemas": {
|
|
@@ -10049,56 +10398,6 @@ export const state = {
|
|
|
10049
10398
|
"additionalProperties": false
|
|
10050
10399
|
}
|
|
10051
10400
|
},
|
|
10052
|
-
"File": {
|
|
10053
|
-
"section": "file",
|
|
10054
|
-
"schema": {
|
|
10055
|
-
"type": "object",
|
|
10056
|
-
"properties": {
|
|
10057
|
-
"botId": {
|
|
10058
|
-
"type": "string",
|
|
10059
|
-
"format": "uuid",
|
|
10060
|
-
"description": "ID of the bot the file will be used for"
|
|
10061
|
-
},
|
|
10062
|
-
"name": {
|
|
10063
|
-
"type": "string",
|
|
10064
|
-
"description": "Optional arbitrary file name (e.g. my-image.jpg), will be used for display purposes only."
|
|
10065
|
-
},
|
|
10066
|
-
"accessType": {
|
|
10067
|
-
"type": "string",
|
|
10068
|
-
"enum": [
|
|
10069
|
-
"private",
|
|
10070
|
-
"public"
|
|
10071
|
-
],
|
|
10072
|
-
"description": "Accepted values: private, public"
|
|
10073
|
-
},
|
|
10074
|
-
"id": {
|
|
10075
|
-
"type": "string",
|
|
10076
|
-
"description": "ID of the [File](#schema_file)"
|
|
10077
|
-
},
|
|
10078
|
-
"createdAt": {
|
|
10079
|
-
"type": "string",
|
|
10080
|
-
"description": "Creation date of the [File](#schema_file) in ISO 8601 format"
|
|
10081
|
-
},
|
|
10082
|
-
"size": {
|
|
10083
|
-
"type": "number",
|
|
10084
|
-
"description": "Size of the file in bytes"
|
|
10085
|
-
},
|
|
10086
|
-
"publicUrl": {
|
|
10087
|
-
"type": "string",
|
|
10088
|
-
"description": "Public URL to the file contents, available only if the access type is public. If the file is private, use the Download endpoint to retrieve the file contents."
|
|
10089
|
-
}
|
|
10090
|
-
},
|
|
10091
|
-
"required": [
|
|
10092
|
-
"botId",
|
|
10093
|
-
"name",
|
|
10094
|
-
"accessType",
|
|
10095
|
-
"id",
|
|
10096
|
-
"createdAt",
|
|
10097
|
-
"size"
|
|
10098
|
-
],
|
|
10099
|
-
"additionalProperties": false
|
|
10100
|
-
}
|
|
10101
|
-
},
|
|
10102
10401
|
"Table": {
|
|
10103
10402
|
"section": "tables",
|
|
10104
10403
|
"schema": {
|
|
@@ -10321,6 +10620,58 @@ export const state = {
|
|
|
10321
10620
|
],
|
|
10322
10621
|
"additionalProperties": true
|
|
10323
10622
|
}
|
|
10623
|
+
},
|
|
10624
|
+
"File": {
|
|
10625
|
+
"section": "files",
|
|
10626
|
+
"schema": {
|
|
10627
|
+
"type": "object",
|
|
10628
|
+
"properties": {
|
|
10629
|
+
"id": {
|
|
10630
|
+
"type": "string"
|
|
10631
|
+
},
|
|
10632
|
+
"botId": {
|
|
10633
|
+
"type": "string"
|
|
10634
|
+
},
|
|
10635
|
+
"filename": {
|
|
10636
|
+
"type": "string"
|
|
10637
|
+
},
|
|
10638
|
+
"bytes": {
|
|
10639
|
+
"type": "number",
|
|
10640
|
+
"nullable": true
|
|
10641
|
+
},
|
|
10642
|
+
"tags": {
|
|
10643
|
+
"type": "object",
|
|
10644
|
+
"additionalProperties": {
|
|
10645
|
+
"type": "string",
|
|
10646
|
+
"maxLength": 1000
|
|
10647
|
+
},
|
|
10648
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
10649
|
+
},
|
|
10650
|
+
"createdAt": {
|
|
10651
|
+
"type": "string"
|
|
10652
|
+
},
|
|
10653
|
+
"updatedAt": {
|
|
10654
|
+
"type": "string"
|
|
10655
|
+
},
|
|
10656
|
+
"accessPolicies": {
|
|
10657
|
+
"type": "array",
|
|
10658
|
+
"items": {
|
|
10659
|
+
"type": "string"
|
|
10660
|
+
}
|
|
10661
|
+
}
|
|
10662
|
+
},
|
|
10663
|
+
"required": [
|
|
10664
|
+
"id",
|
|
10665
|
+
"botId",
|
|
10666
|
+
"filename",
|
|
10667
|
+
"bytes",
|
|
10668
|
+
"tags",
|
|
10669
|
+
"createdAt",
|
|
10670
|
+
"updatedAt",
|
|
10671
|
+
"accessPolicies"
|
|
10672
|
+
],
|
|
10673
|
+
"additionalProperties": false
|
|
10674
|
+
}
|
|
10324
10675
|
}
|
|
10325
10676
|
},
|
|
10326
10677
|
"sections": [
|
|
@@ -10385,14 +10736,7 @@ export const state = {
|
|
|
10385
10736
|
"description": "",
|
|
10386
10737
|
"title": "File",
|
|
10387
10738
|
"name": "file",
|
|
10388
|
-
"operations": [
|
|
10389
|
-
"createFile",
|
|
10390
|
-
"getFile",
|
|
10391
|
-
"downloadFile",
|
|
10392
|
-
"deleteFile",
|
|
10393
|
-
"listFiles"
|
|
10394
|
-
],
|
|
10395
|
-
"schema": "File"
|
|
10739
|
+
"operations": []
|
|
10396
10740
|
},
|
|
10397
10741
|
{
|
|
10398
10742
|
"description": "",
|
|
@@ -10579,6 +10923,20 @@ export const state = {
|
|
|
10579
10923
|
"upsertTableRows"
|
|
10580
10924
|
],
|
|
10581
10925
|
"schema": "Table"
|
|
10926
|
+
},
|
|
10927
|
+
{
|
|
10928
|
+
"title": "Files",
|
|
10929
|
+
"description": "Operations related to file management.",
|
|
10930
|
+
"name": "files",
|
|
10931
|
+
"operations": [
|
|
10932
|
+
"createFile",
|
|
10933
|
+
"deleteFile",
|
|
10934
|
+
"listFiles",
|
|
10935
|
+
"getFileMetadata",
|
|
10936
|
+
"getFileContent",
|
|
10937
|
+
"updateFileMetadata"
|
|
10938
|
+
],
|
|
10939
|
+
"schema": "File"
|
|
10582
10940
|
}
|
|
10583
10941
|
],
|
|
10584
10942
|
"options": {
|