@botpress/api 0.18.5 → 0.19.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 +537 -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 +511 -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,397 @@ 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": "Gets a 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": "Redirects to a presigned URL to download the file content.",
|
|
7539
|
+
"status": 302,
|
|
7231
7540
|
"schema": {
|
|
7232
7541
|
"type": "object",
|
|
7233
|
-
"
|
|
7542
|
+
"properties": {
|
|
7543
|
+
"data": {
|
|
7544
|
+
"nullable": true
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
"title": "getFileContentResponse",
|
|
7548
|
+
"format": "binary",
|
|
7234
7549
|
"additionalProperties": false
|
|
7235
7550
|
}
|
|
7236
7551
|
}
|
|
7237
7552
|
},
|
|
7238
|
-
"
|
|
7239
|
-
"name": "
|
|
7240
|
-
"
|
|
7241
|
-
"
|
|
7242
|
-
"
|
|
7243
|
-
"section": "
|
|
7553
|
+
"updateFileMetadata": {
|
|
7554
|
+
"name": "updateFileMetadata",
|
|
7555
|
+
"path": "/v1/files/{id}/metadata",
|
|
7556
|
+
"description": "Update file metadata",
|
|
7557
|
+
"method": "put",
|
|
7558
|
+
"section": "files",
|
|
7244
7559
|
"parameters": {
|
|
7245
|
-
"
|
|
7246
|
-
"
|
|
7247
|
-
"description": "
|
|
7248
|
-
"
|
|
7560
|
+
"id": {
|
|
7561
|
+
"type": "string",
|
|
7562
|
+
"description": "File ID",
|
|
7563
|
+
"in": "path"
|
|
7249
7564
|
},
|
|
7250
|
-
"
|
|
7251
|
-
"in": "
|
|
7565
|
+
"x-bot-id": {
|
|
7566
|
+
"in": "header",
|
|
7567
|
+
"description": "Bot id",
|
|
7252
7568
|
"type": "string",
|
|
7253
|
-
"description": "Bot ID",
|
|
7254
7569
|
"required": true
|
|
7570
|
+
},
|
|
7571
|
+
"x-integration-id": {
|
|
7572
|
+
"in": "header",
|
|
7573
|
+
"description": "Integration id",
|
|
7574
|
+
"type": "string",
|
|
7575
|
+
"required": false
|
|
7576
|
+
},
|
|
7577
|
+
"x-user-id": {
|
|
7578
|
+
"in": "header",
|
|
7579
|
+
"description": "User id",
|
|
7580
|
+
"type": "string",
|
|
7581
|
+
"required": false
|
|
7582
|
+
},
|
|
7583
|
+
"x-user-role": {
|
|
7584
|
+
"in": "header",
|
|
7585
|
+
"description": "User role",
|
|
7586
|
+
"type": "string",
|
|
7587
|
+
"required": false
|
|
7588
|
+
}
|
|
7589
|
+
},
|
|
7590
|
+
"requestBody": {
|
|
7591
|
+
"description": "File metadata to update.",
|
|
7592
|
+
"schema": {
|
|
7593
|
+
"type": "object",
|
|
7594
|
+
"properties": {
|
|
7595
|
+
"tags": {
|
|
7596
|
+
"type": "object",
|
|
7597
|
+
"additionalProperties": {
|
|
7598
|
+
"type": "string",
|
|
7599
|
+
"maxLength": 1000
|
|
7600
|
+
},
|
|
7601
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
7602
|
+
}
|
|
7603
|
+
},
|
|
7604
|
+
"required": [
|
|
7605
|
+
"tags"
|
|
7606
|
+
],
|
|
7607
|
+
"title": "updateFileMetadataBody",
|
|
7608
|
+
"additionalProperties": false
|
|
7255
7609
|
}
|
|
7256
7610
|
},
|
|
7257
7611
|
"response": {
|
|
7258
|
-
"description": "
|
|
7612
|
+
"description": "An object containing the updated metadata of the file.",
|
|
7259
7613
|
"schema": {
|
|
7260
7614
|
"type": "object",
|
|
7261
7615
|
"properties": {
|
|
7262
|
-
"
|
|
7263
|
-
"type": "array",
|
|
7264
|
-
"items": {
|
|
7265
|
-
"$ref": "#/components/schemas/File"
|
|
7266
|
-
}
|
|
7267
|
-
},
|
|
7268
|
-
"meta": {
|
|
7616
|
+
"tags": {
|
|
7269
7617
|
"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
|
-
}
|
|
7618
|
+
"additionalProperties": {
|
|
7619
|
+
"type": "string",
|
|
7620
|
+
"maxLength": 1000
|
|
7275
7621
|
},
|
|
7276
|
-
"
|
|
7622
|
+
"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
7623
|
}
|
|
7278
7624
|
},
|
|
7279
7625
|
"required": [
|
|
7280
|
-
"
|
|
7281
|
-
"meta"
|
|
7626
|
+
"tags"
|
|
7282
7627
|
],
|
|
7283
|
-
"title": "
|
|
7628
|
+
"title": "updateFileMetadataResponse",
|
|
7284
7629
|
"additionalProperties": false
|
|
7285
7630
|
}
|
|
7286
7631
|
}
|
|
@@ -7993,7 +8338,7 @@ export const state = {
|
|
|
7993
8338
|
"title": "Botpress API",
|
|
7994
8339
|
"description": "API for Botpress Cloud",
|
|
7995
8340
|
"server": "https://api.botpress.cloud",
|
|
7996
|
-
"version": "0.
|
|
8341
|
+
"version": "0.19.0",
|
|
7997
8342
|
"prefix": "v1"
|
|
7998
8343
|
},
|
|
7999
8344
|
"errors": [
|
|
@@ -8149,6 +8494,7 @@ export const state = {
|
|
|
8149
8494
|
"changeAISpendQuotaBody": true,
|
|
8150
8495
|
"introspectBody": true,
|
|
8151
8496
|
"createFileBody": true,
|
|
8497
|
+
"updateFileMetadataBody": true,
|
|
8152
8498
|
"createTableBody": true,
|
|
8153
8499
|
"updateTableBody": true,
|
|
8154
8500
|
"renameTableColumnBody": true,
|
|
@@ -8254,10 +8600,11 @@ export const state = {
|
|
|
8254
8600
|
"listActivitiesResponse": true,
|
|
8255
8601
|
"introspectResponse": true,
|
|
8256
8602
|
"createFileResponse": true,
|
|
8257
|
-
"getFileResponse": true,
|
|
8258
|
-
"downloadFileResponse": true,
|
|
8259
8603
|
"deleteFileResponse": true,
|
|
8260
8604
|
"listFilesResponse": true,
|
|
8605
|
+
"getFileMetadataResponse": true,
|
|
8606
|
+
"getFileContentResponse": true,
|
|
8607
|
+
"updateFileMetadataResponse": true,
|
|
8261
8608
|
"listTablesResponse": true,
|
|
8262
8609
|
"getTableResponse": true,
|
|
8263
8610
|
"createTableResponse": true,
|
|
@@ -8287,10 +8634,10 @@ export const state = {
|
|
|
8287
8634
|
"Message": true,
|
|
8288
8635
|
"State": true,
|
|
8289
8636
|
"Task": true,
|
|
8290
|
-
"File": true,
|
|
8291
8637
|
"Table": true,
|
|
8292
8638
|
"Column": true,
|
|
8293
|
-
"Row": true
|
|
8639
|
+
"Row": true,
|
|
8640
|
+
"File": true
|
|
8294
8641
|
}
|
|
8295
8642
|
},
|
|
8296
8643
|
"schemas": {
|
|
@@ -10049,56 +10396,6 @@ export const state = {
|
|
|
10049
10396
|
"additionalProperties": false
|
|
10050
10397
|
}
|
|
10051
10398
|
},
|
|
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
10399
|
"Table": {
|
|
10103
10400
|
"section": "tables",
|
|
10104
10401
|
"schema": {
|
|
@@ -10321,6 +10618,58 @@ export const state = {
|
|
|
10321
10618
|
],
|
|
10322
10619
|
"additionalProperties": true
|
|
10323
10620
|
}
|
|
10621
|
+
},
|
|
10622
|
+
"File": {
|
|
10623
|
+
"section": "files",
|
|
10624
|
+
"schema": {
|
|
10625
|
+
"type": "object",
|
|
10626
|
+
"properties": {
|
|
10627
|
+
"id": {
|
|
10628
|
+
"type": "string"
|
|
10629
|
+
},
|
|
10630
|
+
"botId": {
|
|
10631
|
+
"type": "string"
|
|
10632
|
+
},
|
|
10633
|
+
"filename": {
|
|
10634
|
+
"type": "string"
|
|
10635
|
+
},
|
|
10636
|
+
"bytes": {
|
|
10637
|
+
"type": "number",
|
|
10638
|
+
"nullable": true
|
|
10639
|
+
},
|
|
10640
|
+
"tags": {
|
|
10641
|
+
"type": "object",
|
|
10642
|
+
"additionalProperties": {
|
|
10643
|
+
"type": "string",
|
|
10644
|
+
"maxLength": 1000
|
|
10645
|
+
},
|
|
10646
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
10647
|
+
},
|
|
10648
|
+
"createdAt": {
|
|
10649
|
+
"type": "string"
|
|
10650
|
+
},
|
|
10651
|
+
"updatedAt": {
|
|
10652
|
+
"type": "string"
|
|
10653
|
+
},
|
|
10654
|
+
"accessPolicies": {
|
|
10655
|
+
"type": "array",
|
|
10656
|
+
"items": {
|
|
10657
|
+
"type": "string"
|
|
10658
|
+
}
|
|
10659
|
+
}
|
|
10660
|
+
},
|
|
10661
|
+
"required": [
|
|
10662
|
+
"id",
|
|
10663
|
+
"botId",
|
|
10664
|
+
"filename",
|
|
10665
|
+
"bytes",
|
|
10666
|
+
"tags",
|
|
10667
|
+
"createdAt",
|
|
10668
|
+
"updatedAt",
|
|
10669
|
+
"accessPolicies"
|
|
10670
|
+
],
|
|
10671
|
+
"additionalProperties": false
|
|
10672
|
+
}
|
|
10324
10673
|
}
|
|
10325
10674
|
},
|
|
10326
10675
|
"sections": [
|
|
@@ -10385,14 +10734,7 @@ export const state = {
|
|
|
10385
10734
|
"description": "",
|
|
10386
10735
|
"title": "File",
|
|
10387
10736
|
"name": "file",
|
|
10388
|
-
"operations": [
|
|
10389
|
-
"createFile",
|
|
10390
|
-
"getFile",
|
|
10391
|
-
"downloadFile",
|
|
10392
|
-
"deleteFile",
|
|
10393
|
-
"listFiles"
|
|
10394
|
-
],
|
|
10395
|
-
"schema": "File"
|
|
10737
|
+
"operations": []
|
|
10396
10738
|
},
|
|
10397
10739
|
{
|
|
10398
10740
|
"description": "",
|
|
@@ -10579,6 +10921,20 @@ export const state = {
|
|
|
10579
10921
|
"upsertTableRows"
|
|
10580
10922
|
],
|
|
10581
10923
|
"schema": "Table"
|
|
10924
|
+
},
|
|
10925
|
+
{
|
|
10926
|
+
"title": "Files",
|
|
10927
|
+
"description": "Operations related to file management.",
|
|
10928
|
+
"name": "files",
|
|
10929
|
+
"operations": [
|
|
10930
|
+
"createFile",
|
|
10931
|
+
"deleteFile",
|
|
10932
|
+
"listFiles",
|
|
10933
|
+
"getFileMetadata",
|
|
10934
|
+
"getFileContent",
|
|
10935
|
+
"updateFileMetadata"
|
|
10936
|
+
],
|
|
10937
|
+
"schema": "File"
|
|
10582
10938
|
}
|
|
10583
10939
|
],
|
|
10584
10940
|
"options": {
|