@botpress/api 0.14.2 → 0.15.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/gen/state.d.ts +57 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +80 -16
- package/package.json +2 -2
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +65 -10
package/dist/gen/state.d.ts
CHANGED
|
@@ -2286,6 +2286,12 @@ export declare const state: {
|
|
|
2286
2286
|
method: "get";
|
|
2287
2287
|
path: string;
|
|
2288
2288
|
parameters: {
|
|
2289
|
+
dev: {
|
|
2290
|
+
in: "query";
|
|
2291
|
+
description: string;
|
|
2292
|
+
type: "boolean";
|
|
2293
|
+
required: false;
|
|
2294
|
+
};
|
|
2289
2295
|
nextToken: {
|
|
2290
2296
|
in: "query";
|
|
2291
2297
|
description: string;
|
|
@@ -4638,6 +4644,12 @@ export declare const state: {
|
|
|
4638
4644
|
description: string;
|
|
4639
4645
|
in: "query";
|
|
4640
4646
|
};
|
|
4647
|
+
dev: {
|
|
4648
|
+
in: "query";
|
|
4649
|
+
description: string;
|
|
4650
|
+
type: "boolean";
|
|
4651
|
+
required: false;
|
|
4652
|
+
};
|
|
4641
4653
|
};
|
|
4642
4654
|
response: {
|
|
4643
4655
|
description: string;
|
|
@@ -4936,6 +4948,36 @@ export declare const state: {
|
|
|
4936
4948
|
};
|
|
4937
4949
|
};
|
|
4938
4950
|
};
|
|
4951
|
+
changeAISpendQuota: {
|
|
4952
|
+
name: string;
|
|
4953
|
+
path: string;
|
|
4954
|
+
description: string;
|
|
4955
|
+
method: "put";
|
|
4956
|
+
section: "quotas";
|
|
4957
|
+
requestBody: {
|
|
4958
|
+
description: string;
|
|
4959
|
+
schema: {
|
|
4960
|
+
type: "object";
|
|
4961
|
+
properties: {
|
|
4962
|
+
monthlySpendingLimit: {
|
|
4963
|
+
type: "number";
|
|
4964
|
+
};
|
|
4965
|
+
};
|
|
4966
|
+
required: string[];
|
|
4967
|
+
title: string;
|
|
4968
|
+
additionalProperties: false;
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4971
|
+
response: {
|
|
4972
|
+
description: string;
|
|
4973
|
+
schema: {
|
|
4974
|
+
type: "object";
|
|
4975
|
+
title: string;
|
|
4976
|
+
additionalProperties: false;
|
|
4977
|
+
};
|
|
4978
|
+
};
|
|
4979
|
+
parameters: {};
|
|
4980
|
+
};
|
|
4939
4981
|
introspect: {
|
|
4940
4982
|
name: string;
|
|
4941
4983
|
description: string;
|
|
@@ -5233,6 +5275,7 @@ export declare const state: {
|
|
|
5233
5275
|
updateWorkspaceMemberBody: true;
|
|
5234
5276
|
createIntegrationBody: true;
|
|
5235
5277
|
updateIntegrationBody: true;
|
|
5278
|
+
changeAISpendQuotaBody: true;
|
|
5236
5279
|
introspectBody: true;
|
|
5237
5280
|
createFileBody: true;
|
|
5238
5281
|
};
|
|
@@ -5313,6 +5356,7 @@ export declare const state: {
|
|
|
5313
5356
|
deleteIntegrationResponse: true;
|
|
5314
5357
|
getUsageResponse: true;
|
|
5315
5358
|
listUsageHistoryResponse: true;
|
|
5359
|
+
changeAISpendQuotaResponse: true;
|
|
5316
5360
|
introspectResponse: true;
|
|
5317
5361
|
createFileResponse: true;
|
|
5318
5362
|
getFileResponse: true;
|
|
@@ -6564,8 +6608,8 @@ export declare const state: {
|
|
|
6564
6608
|
operations: string[];
|
|
6565
6609
|
schema: string;
|
|
6566
6610
|
} | {
|
|
6567
|
-
description: string;
|
|
6568
6611
|
title: string;
|
|
6612
|
+
description: string;
|
|
6569
6613
|
name: "hub";
|
|
6570
6614
|
operations: string[];
|
|
6571
6615
|
schema?: undefined;
|
|
@@ -6576,41 +6620,47 @@ export declare const state: {
|
|
|
6576
6620
|
operations: string[];
|
|
6577
6621
|
schema?: undefined;
|
|
6578
6622
|
} | {
|
|
6579
|
-
description: string;
|
|
6580
6623
|
title: string;
|
|
6624
|
+
description: string;
|
|
6581
6625
|
name: "bot";
|
|
6582
6626
|
operations: string[];
|
|
6583
6627
|
schema: string;
|
|
6584
6628
|
} | {
|
|
6585
|
-
description: string;
|
|
6586
6629
|
title: string;
|
|
6630
|
+
description: string;
|
|
6587
6631
|
name: "integration";
|
|
6588
6632
|
operations: string[];
|
|
6589
6633
|
schema: string;
|
|
6590
6634
|
} | {
|
|
6591
|
-
description: string;
|
|
6592
6635
|
title: string;
|
|
6636
|
+
description: string;
|
|
6593
6637
|
name: "workspace";
|
|
6594
6638
|
operations: string[];
|
|
6595
6639
|
schema: string;
|
|
6596
6640
|
} | {
|
|
6597
|
-
description: string;
|
|
6598
6641
|
title: string;
|
|
6642
|
+
description: string;
|
|
6599
6643
|
name: "workspaceMember";
|
|
6600
6644
|
operations: string[];
|
|
6601
6645
|
schema: string;
|
|
6602
6646
|
} | {
|
|
6603
|
-
description: string;
|
|
6604
6647
|
title: string;
|
|
6648
|
+
description: string;
|
|
6605
6649
|
name: "account";
|
|
6606
6650
|
operations: string[];
|
|
6607
6651
|
schema: string;
|
|
6608
6652
|
} | {
|
|
6609
|
-
description: string;
|
|
6610
6653
|
title: string;
|
|
6654
|
+
description: string;
|
|
6611
6655
|
name: "usage";
|
|
6612
6656
|
operations: string[];
|
|
6613
6657
|
schema: string;
|
|
6658
|
+
} | {
|
|
6659
|
+
title: string;
|
|
6660
|
+
description: string;
|
|
6661
|
+
name: "quotas";
|
|
6662
|
+
operations: string[];
|
|
6663
|
+
schema?: undefined;
|
|
6614
6664
|
})[];
|
|
6615
6665
|
options: {
|
|
6616
6666
|
allowUnions: false;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const api: {
|
|
2
|
-
getState: () => import("@bpinternal/opapi").State<"Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "User" | "Conversation" | "Event" | "Message" | "State" | "File", "x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage">;
|
|
2
|
+
getState: () => import("@bpinternal/opapi").State<"Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "User" | "Conversation" | "Event" | "Message" | "State" | "File", "x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas">;
|
|
3
3
|
getModelRef: (name: "Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "User" | "Conversation" | "Event" | "Message" | "State" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage", Path, "zod-schema">) => void;
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas", Path, "zod-schema">) => void;
|
|
5
5
|
exportClient: (dir: string | undefined, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined) => Promise<void>;
|
|
6
6
|
exportTypesBySection: (dir?: string | undefined) => Promise<void>;
|
|
7
7
|
exportServer: (dir: string | undefined, useExpressTypes: boolean) => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -259676,7 +259676,7 @@ __export(src_exports, {
|
|
|
259676
259676
|
});
|
|
259677
259677
|
module.exports = __toCommonJS(src_exports);
|
|
259678
259678
|
|
|
259679
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.
|
|
259679
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.2_openapi-types@12.1.0/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259680
259680
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
259681
259681
|
var import_zod_openapi2 = __toESM(require_src(), 1);
|
|
259682
259682
|
var import_chalk = __toESM(require_source(), 1);
|
|
@@ -259720,7 +259720,7 @@ var title = (str2) => {
|
|
|
259720
259720
|
return str2.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => capitalize(s.toLowerCase())).join(" ");
|
|
259721
259721
|
};
|
|
259722
259722
|
|
|
259723
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.
|
|
259723
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.2_openapi-types@12.1.0/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
259724
259724
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
259725
259725
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
259726
259726
|
var import_promises = __toESM(require("fs/promises"), 1);
|
|
@@ -266709,7 +266709,7 @@ async function openapiTS(schema3, options = {}) {
|
|
|
266709
266709
|
}
|
|
266710
266710
|
var dist_default = openapiTS;
|
|
266711
266711
|
|
|
266712
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.
|
|
266712
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.2_openapi-types@12.1.0/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
266713
266713
|
var import_zod_openapi3 = __toESM(require_src(), 1);
|
|
266714
266714
|
var import_openapi3_ts = __toESM(require_dist3(), 1);
|
|
266715
266715
|
var import_verror2 = __toESM(require_verror(), 1);
|
|
@@ -270304,7 +270304,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
270304
270304
|
ZodError
|
|
270305
270305
|
});
|
|
270306
270306
|
|
|
270307
|
-
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.
|
|
270307
|
+
// ../../node_modules/.pnpm/@bpinternal+opapi@0.6.2_openapi-types@12.1.0/node_modules/@bpinternal/opapi/dist/index.mjs
|
|
270308
270308
|
var import_openapi_parser = __toESM(require_lib11(), 1);
|
|
270309
270309
|
var import_json_schema_to_typescript = __toESM(require_src3(), 1);
|
|
270310
270310
|
var import_zod_openapi4 = __toESM(require_src(), 1);
|
|
@@ -425457,6 +425457,9 @@ var generateTypeAnnotation = (parameter, required) => {
|
|
|
425457
425457
|
case "object":
|
|
425458
425458
|
typeAnnotation += " any";
|
|
425459
425459
|
break;
|
|
425460
|
+
case "boolean":
|
|
425461
|
+
typeAnnotation += " boolean";
|
|
425462
|
+
break;
|
|
425460
425463
|
default:
|
|
425461
425464
|
throw new Error(`Unsupported parameter type: ${parameterType}`);
|
|
425462
425465
|
}
|
|
@@ -425780,7 +425783,7 @@ abstract class BaseApiError<Code extends ErrorCode, Type extends string, Descrip
|
|
|
425780
425783
|
|
|
425781
425784
|
static generateId() {
|
|
425782
425785
|
const prefix = this.getPrefix();
|
|
425783
|
-
const timestamp = new Date().toISOString().replace(/[
|
|
425786
|
+
const timestamp = new Date().toISOString().replace(/[\\-:TZ]/g, "").split(".")[0] // UTC time in YYMMDDHHMMSS format
|
|
425784
425787
|
|
|
425785
425788
|
const randomSuffixByteLength = 4
|
|
425786
425789
|
const randomHexSuffix = Array.from(cryptoLib.getRandomValues(new Uint8Array(randomSuffixByteLength)))
|
|
@@ -426119,7 +426122,7 @@ var createOpenapi = (state2) => {
|
|
|
426119
426122
|
}
|
|
426120
426123
|
if (operationObject.parameters) {
|
|
426121
426124
|
objects.entries(operationObject.parameters).forEach(([parameterName, parameter]) => {
|
|
426122
|
-
var _a, _b, _c;
|
|
426125
|
+
var _a, _b, _c, _d;
|
|
426123
426126
|
const parameterType = parameter.type;
|
|
426124
426127
|
switch (parameterType) {
|
|
426125
426128
|
case "string":
|
|
@@ -426158,6 +426161,17 @@ var createOpenapi = (state2) => {
|
|
|
426158
426161
|
schema: parameter.schema
|
|
426159
426162
|
});
|
|
426160
426163
|
break;
|
|
426164
|
+
case "boolean":
|
|
426165
|
+
(_d = operation.parameters) == null ? void 0 : _d.push({
|
|
426166
|
+
name: parameterName,
|
|
426167
|
+
in: parameter.in,
|
|
426168
|
+
description: parameter.description,
|
|
426169
|
+
required: parameter.required,
|
|
426170
|
+
schema: {
|
|
426171
|
+
type: "boolean"
|
|
426172
|
+
}
|
|
426173
|
+
});
|
|
426174
|
+
break;
|
|
426161
426175
|
default:
|
|
426162
426176
|
throw new import_verror2.default(`Parameter type ${parameterType} is not supported`);
|
|
426163
426177
|
}
|
|
@@ -428995,6 +429009,12 @@ var state = {
|
|
|
428995
429009
|
method: "get",
|
|
428996
429010
|
path: "/v1/admin/bots",
|
|
428997
429011
|
parameters: {
|
|
429012
|
+
dev: {
|
|
429013
|
+
in: "query",
|
|
429014
|
+
description: "If true, only dev bots are returned. Otherwise, only production bots are returned.",
|
|
429015
|
+
type: "boolean",
|
|
429016
|
+
required: false
|
|
429017
|
+
},
|
|
428998
429018
|
nextToken: {
|
|
428999
429019
|
in: "query",
|
|
429000
429020
|
description: "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
@@ -431559,6 +431579,12 @@ var state = {
|
|
|
431559
431579
|
type: "string",
|
|
431560
431580
|
description: 'Integration version. Either a semver version or tag "latest"',
|
|
431561
431581
|
in: "query"
|
|
431582
|
+
},
|
|
431583
|
+
dev: {
|
|
431584
|
+
in: "query",
|
|
431585
|
+
description: "If true, only dev integrations are returned. Otherwise, only production integrations are returned.",
|
|
431586
|
+
type: "boolean",
|
|
431587
|
+
required: false
|
|
431562
431588
|
}
|
|
431563
431589
|
},
|
|
431564
431590
|
response: {
|
|
@@ -431824,7 +431850,7 @@ var state = {
|
|
|
431824
431850
|
},
|
|
431825
431851
|
id: {
|
|
431826
431852
|
type: "string",
|
|
431827
|
-
description:
|
|
431853
|
+
description: 'ID of a bot or a workspace, depending on the "type" parameter',
|
|
431828
431854
|
in: "path"
|
|
431829
431855
|
}
|
|
431830
431856
|
},
|
|
@@ -431871,7 +431897,7 @@ var state = {
|
|
|
431871
431897
|
},
|
|
431872
431898
|
id: {
|
|
431873
431899
|
type: "string",
|
|
431874
|
-
description:
|
|
431900
|
+
description: 'ID of a bot or a workspace, depending on the "type" parameter',
|
|
431875
431901
|
in: "path"
|
|
431876
431902
|
}
|
|
431877
431903
|
},
|
|
@@ -431893,6 +431919,36 @@ var state = {
|
|
|
431893
431919
|
}
|
|
431894
431920
|
}
|
|
431895
431921
|
},
|
|
431922
|
+
changeAISpendQuota: {
|
|
431923
|
+
name: "changeAISpendQuota",
|
|
431924
|
+
path: "/v1/admin/quotas/ai-spend",
|
|
431925
|
+
description: "Change AI Spend quota",
|
|
431926
|
+
method: "put",
|
|
431927
|
+
section: "quotas",
|
|
431928
|
+
requestBody: {
|
|
431929
|
+
description: "New AI Spend quota",
|
|
431930
|
+
schema: {
|
|
431931
|
+
type: "object",
|
|
431932
|
+
properties: {
|
|
431933
|
+
monthlySpendingLimit: {
|
|
431934
|
+
type: "number"
|
|
431935
|
+
}
|
|
431936
|
+
},
|
|
431937
|
+
required: ["monthlySpendingLimit"],
|
|
431938
|
+
title: "changeAISpendQuotaBody",
|
|
431939
|
+
additionalProperties: false
|
|
431940
|
+
}
|
|
431941
|
+
},
|
|
431942
|
+
response: {
|
|
431943
|
+
description: "Success",
|
|
431944
|
+
schema: {
|
|
431945
|
+
type: "object",
|
|
431946
|
+
title: "changeAISpendQuotaResponse",
|
|
431947
|
+
additionalProperties: false
|
|
431948
|
+
}
|
|
431949
|
+
},
|
|
431950
|
+
parameters: {}
|
|
431951
|
+
},
|
|
431896
431952
|
introspect: {
|
|
431897
431953
|
name: "introspect",
|
|
431898
431954
|
description: "Introspect the API",
|
|
@@ -432111,7 +432167,7 @@ var state = {
|
|
|
432111
432167
|
title: "Botpress API",
|
|
432112
432168
|
description: "API for Botpress Cloud",
|
|
432113
432169
|
server: "https://api.botpress.cloud",
|
|
432114
|
-
version: "0.
|
|
432170
|
+
version: "0.15.1",
|
|
432115
432171
|
prefix: "v1"
|
|
432116
432172
|
},
|
|
432117
432173
|
errors: [
|
|
@@ -432252,6 +432308,7 @@ var state = {
|
|
|
432252
432308
|
updateWorkspaceMemberBody: true,
|
|
432253
432309
|
createIntegrationBody: true,
|
|
432254
432310
|
updateIntegrationBody: true,
|
|
432311
|
+
changeAISpendQuotaBody: true,
|
|
432255
432312
|
introspectBody: true,
|
|
432256
432313
|
createFileBody: true
|
|
432257
432314
|
},
|
|
@@ -432332,6 +432389,7 @@ var state = {
|
|
|
432332
432389
|
deleteIntegrationResponse: true,
|
|
432333
432390
|
getUsageResponse: true,
|
|
432334
432391
|
listUsageHistoryResponse: true,
|
|
432392
|
+
changeAISpendQuotaResponse: true,
|
|
432335
432393
|
introspectResponse: true,
|
|
432336
432394
|
createFileResponse: true,
|
|
432337
432395
|
getFileResponse: true,
|
|
@@ -433743,8 +433801,8 @@ var state = {
|
|
|
433743
433801
|
schema: "State"
|
|
433744
433802
|
},
|
|
433745
433803
|
{
|
|
433746
|
-
description: "",
|
|
433747
433804
|
title: "Hub",
|
|
433805
|
+
description: "",
|
|
433748
433806
|
name: "hub",
|
|
433749
433807
|
operations: [
|
|
433750
433808
|
"listPublicIntegrations",
|
|
@@ -433759,8 +433817,8 @@ var state = {
|
|
|
433759
433817
|
operations: ["callAction"]
|
|
433760
433818
|
},
|
|
433761
433819
|
{
|
|
433762
|
-
description: "",
|
|
433763
433820
|
title: "Bot",
|
|
433821
|
+
description: "",
|
|
433764
433822
|
name: "bot",
|
|
433765
433823
|
operations: [
|
|
433766
433824
|
"createBot",
|
|
@@ -433779,8 +433837,8 @@ var state = {
|
|
|
433779
433837
|
schema: "Bot"
|
|
433780
433838
|
},
|
|
433781
433839
|
{
|
|
433782
|
-
description: "",
|
|
433783
433840
|
title: "Integration",
|
|
433841
|
+
description: "",
|
|
433784
433842
|
name: "integration",
|
|
433785
433843
|
operations: [
|
|
433786
433844
|
"createIntegration",
|
|
@@ -433794,8 +433852,8 @@ var state = {
|
|
|
433794
433852
|
schema: "Integration"
|
|
433795
433853
|
},
|
|
433796
433854
|
{
|
|
433797
|
-
description: "",
|
|
433798
433855
|
title: "Workspace",
|
|
433856
|
+
description: "",
|
|
433799
433857
|
name: "workspace",
|
|
433800
433858
|
operations: [
|
|
433801
433859
|
"getWorkspaceBillingDetails",
|
|
@@ -433816,8 +433874,8 @@ var state = {
|
|
|
433816
433874
|
schema: "Workspace"
|
|
433817
433875
|
},
|
|
433818
433876
|
{
|
|
433819
|
-
description: "",
|
|
433820
433877
|
title: "Workspace Member",
|
|
433878
|
+
description: "",
|
|
433821
433879
|
name: "workspaceMember",
|
|
433822
433880
|
operations: [
|
|
433823
433881
|
"listWorkspaceMembers",
|
|
@@ -433828,8 +433886,8 @@ var state = {
|
|
|
433828
433886
|
schema: "WorkspaceMember"
|
|
433829
433887
|
},
|
|
433830
433888
|
{
|
|
433831
|
-
description: "",
|
|
433832
433889
|
title: "Account",
|
|
433890
|
+
description: "",
|
|
433833
433891
|
name: "account",
|
|
433834
433892
|
operations: [
|
|
433835
433893
|
"getAccount",
|
|
@@ -433840,11 +433898,17 @@ var state = {
|
|
|
433840
433898
|
schema: "Account"
|
|
433841
433899
|
},
|
|
433842
433900
|
{
|
|
433843
|
-
description: "",
|
|
433844
433901
|
title: "Usage",
|
|
433902
|
+
description: "",
|
|
433845
433903
|
name: "usage",
|
|
433846
433904
|
operations: ["getUsage"],
|
|
433847
433905
|
schema: "Usage"
|
|
433906
|
+
},
|
|
433907
|
+
{
|
|
433908
|
+
title: "Quotas",
|
|
433909
|
+
description: "",
|
|
433910
|
+
name: "quotas",
|
|
433911
|
+
operations: ["changeAISpendQuota"]
|
|
433848
433912
|
}
|
|
433849
433913
|
],
|
|
433850
433914
|
options: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"zod": "^3.20.6"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@bpinternal/opapi": "^0.6.
|
|
25
|
+
"@bpinternal/opapi": "^0.6.2"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","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":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"
|
|
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":["createFile","getFile","downloadFile","deleteFile","listFiles"],"schema":"File"},{"description":"","title":"State","name":"state","operations":["getState","setState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"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":["createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["getWorkspaceBillingDetails","setWorkspacePaymentMethod","listWorkspaceInvoices","chargeWorkspaceUnpaidInvoices","createWorkspace","getWorkspace","listWorkspaceUsages","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","listWorkspaces","changeWorkspacePlan","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is not related with another resource. This is usually caused when providing two resources that aren't linked together."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"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."}]}
|