@botpress/api 0.39.0 → 0.40.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 +189 -7
- package/dist/src/gen/state.d.ts +157 -0
- package/package.json +2 -2
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +173 -1
package/dist/index.js
CHANGED
|
@@ -268809,7 +268809,7 @@ __export(src_exports, {
|
|
|
268809
268809
|
});
|
|
268810
268810
|
module.exports = __toCommonJS(src_exports);
|
|
268811
268811
|
|
|
268812
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.
|
|
268812
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.22_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
268813
268813
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
268814
268814
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
268815
268815
|
var import_path = __toESM(require("path"), 1);
|
|
@@ -268855,7 +268855,7 @@ var title = (str2) => {
|
|
|
268855
268855
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s2) => s2.trim()).filter((s2) => !!s2).map((s2) => capitalize(s2.toLowerCase())).join(" ");
|
|
268856
268856
|
};
|
|
268857
268857
|
|
|
268858
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.
|
|
268858
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.22_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
268859
268859
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
268860
268860
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
268861
268861
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
@@ -272048,7 +272048,7 @@ var {
|
|
|
272048
272048
|
mergeConfig: mergeConfig2
|
|
272049
272049
|
} = axios_default;
|
|
272050
272050
|
|
|
272051
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.
|
|
272051
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.22_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
272052
272052
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
272053
272053
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
272054
272054
|
var import_path3 = __toESM(require("path"), 1);
|
|
@@ -276384,7 +276384,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
276384
276384
|
}
|
|
276385
276385
|
var dist_default = openapiTS;
|
|
276386
276386
|
|
|
276387
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.
|
|
276387
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.22_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
276388
276388
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
276389
276389
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
276390
276390
|
var import_verror3 = __toESM(require_verror(), 1);
|
|
@@ -280025,7 +280025,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
280025
280025
|
ZodError
|
|
280026
280026
|
});
|
|
280027
280027
|
|
|
280028
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.
|
|
280028
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.10.22_openapi-types@12.1.3/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
280029
280029
|
var import_openapi_parser = __toESM(require_lib9(), 1);
|
|
280030
280030
|
var import_json_schema_to_typescript2 = __toESM(require_src3(), 1);
|
|
280031
280031
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -282304,6 +282304,7 @@ var exportJsonSchemas = (schemas) => async (outDir, opts = {}) => {
|
|
|
282304
282304
|
await import_promises4.default.writeFile(indexPath, indexCode);
|
|
282305
282305
|
};
|
|
282306
282306
|
var CONTENT2 = `import qs from 'qs'
|
|
282307
|
+
import { isAxiosError } from 'axios'
|
|
282307
282308
|
import { isApiError } from './errors'
|
|
282308
282309
|
import * as types from './typings'
|
|
282309
282310
|
|
|
@@ -282404,7 +282405,16 @@ export class Router {
|
|
|
282404
282405
|
}
|
|
282405
282406
|
|
|
282406
282407
|
const getErrorBody = (thrown: unknown) => {
|
|
282407
|
-
if (thrown
|
|
282408
|
+
if (isAxiosError(thrown)) {
|
|
282409
|
+
const data = thrown.response?.data
|
|
282410
|
+
const statusCode = thrown.response?.status
|
|
282411
|
+
|
|
282412
|
+
if (!data) {
|
|
282413
|
+
return \`\${thrown.message} (no response data) (Status Code: \${statusCode})\`
|
|
282414
|
+
}
|
|
282415
|
+
|
|
282416
|
+
return \`\${data.message || data.error?.message || data.error || data.body || thrown.message} (Status Code: \${statusCode})\`
|
|
282417
|
+
} else if (thrown instanceof Error) {
|
|
282408
282418
|
return thrown.message
|
|
282409
282419
|
}
|
|
282410
282420
|
try {
|
|
@@ -285293,6 +285303,41 @@ var state = {
|
|
|
285293
285303
|
"description": "Configuration definition",
|
|
285294
285304
|
"additionalProperties": false
|
|
285295
285305
|
},
|
|
285306
|
+
"configurations": {
|
|
285307
|
+
"type": "object",
|
|
285308
|
+
"additionalProperties": {
|
|
285309
|
+
"type": "object",
|
|
285310
|
+
"properties": {
|
|
285311
|
+
"identifier": {
|
|
285312
|
+
"type": "object",
|
|
285313
|
+
"properties": {
|
|
285314
|
+
"linkTemplateScript": {
|
|
285315
|
+
"type": "string",
|
|
285316
|
+
"maxLength": 2e3
|
|
285317
|
+
},
|
|
285318
|
+
"required": {
|
|
285319
|
+
"type": "boolean"
|
|
285320
|
+
}
|
|
285321
|
+
},
|
|
285322
|
+
"required": [
|
|
285323
|
+
"required"
|
|
285324
|
+
],
|
|
285325
|
+
"description": "Identifier configuration of the [Integration](#schema_integration)",
|
|
285326
|
+
"additionalProperties": false
|
|
285327
|
+
},
|
|
285328
|
+
"schema": {
|
|
285329
|
+
"type": "object",
|
|
285330
|
+
"additionalProperties": true,
|
|
285331
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
285332
|
+
}
|
|
285333
|
+
},
|
|
285334
|
+
"required": [
|
|
285335
|
+
"identifier"
|
|
285336
|
+
],
|
|
285337
|
+
"description": "Configuration definition",
|
|
285338
|
+
"additionalProperties": false
|
|
285339
|
+
}
|
|
285340
|
+
},
|
|
285296
285341
|
"channels": {
|
|
285297
285342
|
"type": "object",
|
|
285298
285343
|
"additionalProperties": {
|
|
@@ -285679,6 +285724,7 @@ var state = {
|
|
|
285679
285724
|
"version",
|
|
285680
285725
|
"interfaces",
|
|
285681
285726
|
"configuration",
|
|
285727
|
+
"configurations",
|
|
285682
285728
|
"channels",
|
|
285683
285729
|
"states",
|
|
285684
285730
|
"events",
|
|
@@ -285883,6 +285929,41 @@ var state = {
|
|
|
285883
285929
|
"description": "Configuration definition",
|
|
285884
285930
|
"additionalProperties": false
|
|
285885
285931
|
},
|
|
285932
|
+
"configurations": {
|
|
285933
|
+
"type": "object",
|
|
285934
|
+
"additionalProperties": {
|
|
285935
|
+
"type": "object",
|
|
285936
|
+
"properties": {
|
|
285937
|
+
"identifier": {
|
|
285938
|
+
"type": "object",
|
|
285939
|
+
"properties": {
|
|
285940
|
+
"linkTemplateScript": {
|
|
285941
|
+
"type": "string",
|
|
285942
|
+
"maxLength": 2e3
|
|
285943
|
+
},
|
|
285944
|
+
"required": {
|
|
285945
|
+
"type": "boolean"
|
|
285946
|
+
}
|
|
285947
|
+
},
|
|
285948
|
+
"required": [
|
|
285949
|
+
"required"
|
|
285950
|
+
],
|
|
285951
|
+
"description": "Identifier configuration of the [Integration](#schema_integration)",
|
|
285952
|
+
"additionalProperties": false
|
|
285953
|
+
},
|
|
285954
|
+
"schema": {
|
|
285955
|
+
"type": "object",
|
|
285956
|
+
"additionalProperties": true,
|
|
285957
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
285958
|
+
}
|
|
285959
|
+
},
|
|
285960
|
+
"required": [
|
|
285961
|
+
"identifier"
|
|
285962
|
+
],
|
|
285963
|
+
"description": "Configuration definition",
|
|
285964
|
+
"additionalProperties": false
|
|
285965
|
+
}
|
|
285966
|
+
},
|
|
285886
285967
|
"channels": {
|
|
285887
285968
|
"type": "object",
|
|
285888
285969
|
"additionalProperties": {
|
|
@@ -286269,6 +286350,7 @@ var state = {
|
|
|
286269
286350
|
"version",
|
|
286270
286351
|
"interfaces",
|
|
286271
286352
|
"configuration",
|
|
286353
|
+
"configurations",
|
|
286272
286354
|
"channels",
|
|
286273
286355
|
"states",
|
|
286274
286356
|
"events",
|
|
@@ -286917,6 +286999,10 @@ var state = {
|
|
|
286917
286999
|
"enabled": {
|
|
286918
287000
|
"type": "boolean"
|
|
286919
287001
|
},
|
|
287002
|
+
"configurationType": {
|
|
287003
|
+
"type": "string",
|
|
287004
|
+
"description": "Integration's configuration type. Default if not provided"
|
|
287005
|
+
},
|
|
286920
287006
|
"configuration": {
|
|
286921
287007
|
"type": "object",
|
|
286922
287008
|
"additionalProperties": true
|
|
@@ -290048,8 +290134,37 @@ var state = {
|
|
|
290048
290134
|
"additionalProperties": false
|
|
290049
290135
|
}
|
|
290050
290136
|
},
|
|
290137
|
+
"description": "Default configuration definition of the integration",
|
|
290051
290138
|
"additionalProperties": false
|
|
290052
290139
|
},
|
|
290140
|
+
"configurations": {
|
|
290141
|
+
"type": "object",
|
|
290142
|
+
"additionalProperties": {
|
|
290143
|
+
"type": "object",
|
|
290144
|
+
"properties": {
|
|
290145
|
+
"schema": {
|
|
290146
|
+
"type": "object",
|
|
290147
|
+
"additionalProperties": true,
|
|
290148
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
290149
|
+
},
|
|
290150
|
+
"identifier": {
|
|
290151
|
+
"type": "object",
|
|
290152
|
+
"properties": {
|
|
290153
|
+
"required": {
|
|
290154
|
+
"type": "boolean"
|
|
290155
|
+
},
|
|
290156
|
+
"linkTemplateScript": {
|
|
290157
|
+
"type": "string",
|
|
290158
|
+
"maxLength": 2e3
|
|
290159
|
+
}
|
|
290160
|
+
},
|
|
290161
|
+
"additionalProperties": false
|
|
290162
|
+
}
|
|
290163
|
+
},
|
|
290164
|
+
"additionalProperties": false
|
|
290165
|
+
},
|
|
290166
|
+
"description": "Additional configuration definitions of the integration"
|
|
290167
|
+
},
|
|
290053
290168
|
"states": {
|
|
290054
290169
|
"type": "object",
|
|
290055
290170
|
"additionalProperties": {
|
|
@@ -290467,8 +290582,39 @@ var state = {
|
|
|
290467
290582
|
"additionalProperties": false
|
|
290468
290583
|
}
|
|
290469
290584
|
},
|
|
290585
|
+
"description": "Default configuration definition of the integration",
|
|
290470
290586
|
"additionalProperties": false
|
|
290471
290587
|
},
|
|
290588
|
+
"configurations": {
|
|
290589
|
+
"type": "object",
|
|
290590
|
+
"additionalProperties": {
|
|
290591
|
+
"type": "object",
|
|
290592
|
+
"properties": {
|
|
290593
|
+
"schema": {
|
|
290594
|
+
"type": "object",
|
|
290595
|
+
"additionalProperties": true,
|
|
290596
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
290597
|
+
},
|
|
290598
|
+
"identifier": {
|
|
290599
|
+
"type": "object",
|
|
290600
|
+
"properties": {
|
|
290601
|
+
"linkTemplateScript": {
|
|
290602
|
+
"type": "string",
|
|
290603
|
+
"maxLength": 2e3,
|
|
290604
|
+
"nullable": true
|
|
290605
|
+
},
|
|
290606
|
+
"required": {
|
|
290607
|
+
"type": "boolean"
|
|
290608
|
+
}
|
|
290609
|
+
},
|
|
290610
|
+
"additionalProperties": false
|
|
290611
|
+
}
|
|
290612
|
+
},
|
|
290613
|
+
"nullable": true,
|
|
290614
|
+
"additionalProperties": false
|
|
290615
|
+
},
|
|
290616
|
+
"description": "Additional configuration definitions of the integration"
|
|
290617
|
+
},
|
|
290472
290618
|
"channels": {
|
|
290473
290619
|
"type": "object",
|
|
290474
290620
|
"additionalProperties": {
|
|
@@ -293785,7 +293931,7 @@ var state = {
|
|
|
293785
293931
|
"title": "Botpress API",
|
|
293786
293932
|
"description": "API for Botpress Cloud",
|
|
293787
293933
|
"server": "https://api.botpress.cloud",
|
|
293788
|
-
"version": "0.
|
|
293934
|
+
"version": "0.40.0",
|
|
293789
293935
|
"prefix": "v1"
|
|
293790
293936
|
},
|
|
293791
293937
|
"errors": [
|
|
@@ -294791,6 +294937,41 @@ var state = {
|
|
|
294791
294937
|
"description": "Configuration definition",
|
|
294792
294938
|
"additionalProperties": false
|
|
294793
294939
|
},
|
|
294940
|
+
"configurations": {
|
|
294941
|
+
"type": "object",
|
|
294942
|
+
"additionalProperties": {
|
|
294943
|
+
"type": "object",
|
|
294944
|
+
"properties": {
|
|
294945
|
+
"identifier": {
|
|
294946
|
+
"type": "object",
|
|
294947
|
+
"properties": {
|
|
294948
|
+
"linkTemplateScript": {
|
|
294949
|
+
"type": "string",
|
|
294950
|
+
"maxLength": 2e3
|
|
294951
|
+
},
|
|
294952
|
+
"required": {
|
|
294953
|
+
"type": "boolean"
|
|
294954
|
+
}
|
|
294955
|
+
},
|
|
294956
|
+
"required": [
|
|
294957
|
+
"required"
|
|
294958
|
+
],
|
|
294959
|
+
"description": "Identifier configuration of the [Integration](#schema_integration)",
|
|
294960
|
+
"additionalProperties": false
|
|
294961
|
+
},
|
|
294962
|
+
"schema": {
|
|
294963
|
+
"type": "object",
|
|
294964
|
+
"additionalProperties": true,
|
|
294965
|
+
"description": "Schema of the configuration in the `JSON schema` format. The configuration data is validated against this `JSON schema`."
|
|
294966
|
+
}
|
|
294967
|
+
},
|
|
294968
|
+
"required": [
|
|
294969
|
+
"identifier"
|
|
294970
|
+
],
|
|
294971
|
+
"description": "Configuration definition",
|
|
294972
|
+
"additionalProperties": false
|
|
294973
|
+
}
|
|
294974
|
+
},
|
|
294794
294975
|
"channels": {
|
|
294795
294976
|
"type": "object",
|
|
294796
294977
|
"additionalProperties": {
|
|
@@ -295156,6 +295337,7 @@ var state = {
|
|
|
295156
295337
|
"version",
|
|
295157
295338
|
"interfaces",
|
|
295158
295339
|
"configuration",
|
|
295340
|
+
"configurations",
|
|
295159
295341
|
"channels",
|
|
295160
295342
|
"states",
|
|
295161
295343
|
"events",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -2468,6 +2468,37 @@ export declare const state: {
|
|
|
2468
2468
|
description: string;
|
|
2469
2469
|
additionalProperties: false;
|
|
2470
2470
|
};
|
|
2471
|
+
configurations: {
|
|
2472
|
+
type: "object";
|
|
2473
|
+
additionalProperties: {
|
|
2474
|
+
type: "object";
|
|
2475
|
+
properties: {
|
|
2476
|
+
identifier: {
|
|
2477
|
+
type: "object";
|
|
2478
|
+
properties: {
|
|
2479
|
+
linkTemplateScript: {
|
|
2480
|
+
type: "string";
|
|
2481
|
+
maxLength: number;
|
|
2482
|
+
};
|
|
2483
|
+
required: {
|
|
2484
|
+
type: "boolean";
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
required: string[];
|
|
2488
|
+
description: string;
|
|
2489
|
+
additionalProperties: false;
|
|
2490
|
+
};
|
|
2491
|
+
schema: {
|
|
2492
|
+
type: "object";
|
|
2493
|
+
additionalProperties: true;
|
|
2494
|
+
description: string;
|
|
2495
|
+
};
|
|
2496
|
+
};
|
|
2497
|
+
required: string[];
|
|
2498
|
+
description: string;
|
|
2499
|
+
additionalProperties: false;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2471
2502
|
channels: {
|
|
2472
2503
|
type: "object";
|
|
2473
2504
|
additionalProperties: {
|
|
@@ -2969,6 +3000,37 @@ export declare const state: {
|
|
|
2969
3000
|
description: string;
|
|
2970
3001
|
additionalProperties: false;
|
|
2971
3002
|
};
|
|
3003
|
+
configurations: {
|
|
3004
|
+
type: "object";
|
|
3005
|
+
additionalProperties: {
|
|
3006
|
+
type: "object";
|
|
3007
|
+
properties: {
|
|
3008
|
+
identifier: {
|
|
3009
|
+
type: "object";
|
|
3010
|
+
properties: {
|
|
3011
|
+
linkTemplateScript: {
|
|
3012
|
+
type: "string";
|
|
3013
|
+
maxLength: number;
|
|
3014
|
+
};
|
|
3015
|
+
required: {
|
|
3016
|
+
type: "boolean";
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
required: string[];
|
|
3020
|
+
description: string;
|
|
3021
|
+
additionalProperties: false;
|
|
3022
|
+
};
|
|
3023
|
+
schema: {
|
|
3024
|
+
type: "object";
|
|
3025
|
+
additionalProperties: true;
|
|
3026
|
+
description: string;
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
required: string[];
|
|
3030
|
+
description: string;
|
|
3031
|
+
additionalProperties: false;
|
|
3032
|
+
};
|
|
3033
|
+
};
|
|
2972
3034
|
channels: {
|
|
2973
3035
|
type: "object";
|
|
2974
3036
|
additionalProperties: {
|
|
@@ -3874,6 +3936,10 @@ export declare const state: {
|
|
|
3874
3936
|
enabled: {
|
|
3875
3937
|
type: "boolean";
|
|
3876
3938
|
};
|
|
3939
|
+
configurationType: {
|
|
3940
|
+
type: "string";
|
|
3941
|
+
description: string;
|
|
3942
|
+
};
|
|
3877
3943
|
configuration: {
|
|
3878
3944
|
type: "object";
|
|
3879
3945
|
additionalProperties: true;
|
|
@@ -6514,8 +6580,37 @@ export declare const state: {
|
|
|
6514
6580
|
additionalProperties: false;
|
|
6515
6581
|
};
|
|
6516
6582
|
};
|
|
6583
|
+
description: string;
|
|
6517
6584
|
additionalProperties: false;
|
|
6518
6585
|
};
|
|
6586
|
+
configurations: {
|
|
6587
|
+
type: "object";
|
|
6588
|
+
additionalProperties: {
|
|
6589
|
+
type: "object";
|
|
6590
|
+
properties: {
|
|
6591
|
+
schema: {
|
|
6592
|
+
type: "object";
|
|
6593
|
+
additionalProperties: true;
|
|
6594
|
+
description: string;
|
|
6595
|
+
};
|
|
6596
|
+
identifier: {
|
|
6597
|
+
type: "object";
|
|
6598
|
+
properties: {
|
|
6599
|
+
required: {
|
|
6600
|
+
type: "boolean";
|
|
6601
|
+
};
|
|
6602
|
+
linkTemplateScript: {
|
|
6603
|
+
type: "string";
|
|
6604
|
+
maxLength: number;
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6607
|
+
additionalProperties: false;
|
|
6608
|
+
};
|
|
6609
|
+
};
|
|
6610
|
+
additionalProperties: false;
|
|
6611
|
+
};
|
|
6612
|
+
description: string;
|
|
6613
|
+
};
|
|
6519
6614
|
states: {
|
|
6520
6615
|
type: "object";
|
|
6521
6616
|
additionalProperties: {
|
|
@@ -6900,8 +6995,39 @@ export declare const state: {
|
|
|
6900
6995
|
additionalProperties: false;
|
|
6901
6996
|
};
|
|
6902
6997
|
};
|
|
6998
|
+
description: string;
|
|
6903
6999
|
additionalProperties: false;
|
|
6904
7000
|
};
|
|
7001
|
+
configurations: {
|
|
7002
|
+
type: "object";
|
|
7003
|
+
additionalProperties: {
|
|
7004
|
+
type: "object";
|
|
7005
|
+
properties: {
|
|
7006
|
+
schema: {
|
|
7007
|
+
type: "object";
|
|
7008
|
+
additionalProperties: true;
|
|
7009
|
+
description: string;
|
|
7010
|
+
};
|
|
7011
|
+
identifier: {
|
|
7012
|
+
type: "object";
|
|
7013
|
+
properties: {
|
|
7014
|
+
linkTemplateScript: {
|
|
7015
|
+
type: "string";
|
|
7016
|
+
maxLength: number;
|
|
7017
|
+
nullable: true;
|
|
7018
|
+
};
|
|
7019
|
+
required: {
|
|
7020
|
+
type: "boolean";
|
|
7021
|
+
};
|
|
7022
|
+
};
|
|
7023
|
+
additionalProperties: false;
|
|
7024
|
+
};
|
|
7025
|
+
};
|
|
7026
|
+
nullable: true;
|
|
7027
|
+
additionalProperties: false;
|
|
7028
|
+
};
|
|
7029
|
+
description: string;
|
|
7030
|
+
};
|
|
6905
7031
|
channels: {
|
|
6906
7032
|
type: "object";
|
|
6907
7033
|
additionalProperties: {
|
|
@@ -10672,6 +10798,37 @@ export declare const state: {
|
|
|
10672
10798
|
description: string;
|
|
10673
10799
|
additionalProperties: false;
|
|
10674
10800
|
};
|
|
10801
|
+
configurations: {
|
|
10802
|
+
type: "object";
|
|
10803
|
+
additionalProperties: {
|
|
10804
|
+
type: "object";
|
|
10805
|
+
properties: {
|
|
10806
|
+
identifier: {
|
|
10807
|
+
type: "object";
|
|
10808
|
+
properties: {
|
|
10809
|
+
linkTemplateScript: {
|
|
10810
|
+
type: "string";
|
|
10811
|
+
maxLength: number;
|
|
10812
|
+
};
|
|
10813
|
+
required: {
|
|
10814
|
+
type: "boolean";
|
|
10815
|
+
};
|
|
10816
|
+
};
|
|
10817
|
+
required: string[];
|
|
10818
|
+
description: string;
|
|
10819
|
+
additionalProperties: false;
|
|
10820
|
+
};
|
|
10821
|
+
schema: {
|
|
10822
|
+
type: "object";
|
|
10823
|
+
additionalProperties: true;
|
|
10824
|
+
description: string;
|
|
10825
|
+
};
|
|
10826
|
+
};
|
|
10827
|
+
required: string[];
|
|
10828
|
+
description: string;
|
|
10829
|
+
additionalProperties: false;
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10675
10832
|
channels: {
|
|
10676
10833
|
type: "object";
|
|
10677
10834
|
additionalProperties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"zod": "^3.22.4"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@bpinternal/opapi": "0.10.
|
|
26
|
+
"@bpinternal/opapi": "0.10.22"
|
|
27
27
|
}
|
|
28
28
|
}
|