@botpress/api 0.60.0 → 0.61.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 +78 -1
- package/dist/src/gen/state.d.ts +67 -1
- package/dist/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +79 -2
package/dist/index.js
CHANGED
|
@@ -283921,6 +283921,74 @@ var state = {
|
|
|
283921
283921
|
},
|
|
283922
283922
|
"parameters": {}
|
|
283923
283923
|
},
|
|
283924
|
+
"listTagValues": {
|
|
283925
|
+
"name": "listTagValues",
|
|
283926
|
+
"description": "Get a bot tag values",
|
|
283927
|
+
"method": "get",
|
|
283928
|
+
"path": "/v1/chat/tags/{key}/values",
|
|
283929
|
+
"section": "tag",
|
|
283930
|
+
"parameters": {
|
|
283931
|
+
"nextToken": {
|
|
283932
|
+
"in": "query",
|
|
283933
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
283934
|
+
"type": "string"
|
|
283935
|
+
},
|
|
283936
|
+
"key": {
|
|
283937
|
+
"in": "path",
|
|
283938
|
+
"type": "string",
|
|
283939
|
+
"description": "Tag key"
|
|
283940
|
+
},
|
|
283941
|
+
"type": {
|
|
283942
|
+
"in": "query",
|
|
283943
|
+
"type": "string",
|
|
283944
|
+
"description": "Tag type",
|
|
283945
|
+
"required": true,
|
|
283946
|
+
"enum": [
|
|
283947
|
+
"user",
|
|
283948
|
+
"conversation",
|
|
283949
|
+
"message"
|
|
283950
|
+
]
|
|
283951
|
+
}
|
|
283952
|
+
},
|
|
283953
|
+
"response": {
|
|
283954
|
+
"description": "Empty response",
|
|
283955
|
+
"schema": {
|
|
283956
|
+
"type": "object",
|
|
283957
|
+
"properties": {
|
|
283958
|
+
"tags": {
|
|
283959
|
+
"type": "array",
|
|
283960
|
+
"items": {
|
|
283961
|
+
"type": "object",
|
|
283962
|
+
"properties": {
|
|
283963
|
+
"value": {
|
|
283964
|
+
"type": "string"
|
|
283965
|
+
}
|
|
283966
|
+
},
|
|
283967
|
+
"required": [
|
|
283968
|
+
"value"
|
|
283969
|
+
]
|
|
283970
|
+
}
|
|
283971
|
+
},
|
|
283972
|
+
"meta": {
|
|
283973
|
+
"type": "object",
|
|
283974
|
+
"properties": {
|
|
283975
|
+
"nextToken": {
|
|
283976
|
+
"type": "string",
|
|
283977
|
+
"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."
|
|
283978
|
+
}
|
|
283979
|
+
},
|
|
283980
|
+
"additionalProperties": false
|
|
283981
|
+
}
|
|
283982
|
+
},
|
|
283983
|
+
"required": [
|
|
283984
|
+
"tags",
|
|
283985
|
+
"meta"
|
|
283986
|
+
],
|
|
283987
|
+
"title": "listTagValuesResponse",
|
|
283988
|
+
"additionalProperties": false
|
|
283989
|
+
}
|
|
283990
|
+
}
|
|
283991
|
+
},
|
|
283924
283992
|
"trackAnalytics": {
|
|
283925
283993
|
"name": "trackAnalytics",
|
|
283926
283994
|
"description": "Add an event to the analytics",
|
|
@@ -295034,7 +295102,7 @@ var state = {
|
|
|
295034
295102
|
"title": "Botpress API",
|
|
295035
295103
|
"description": "API for Botpress Cloud",
|
|
295036
295104
|
"server": "https://api.botpress.cloud",
|
|
295037
|
-
"version": "0.
|
|
295105
|
+
"version": "0.61.0",
|
|
295038
295106
|
"prefix": "v1"
|
|
295039
295107
|
},
|
|
295040
295108
|
"errors": [
|
|
@@ -295268,6 +295336,7 @@ var state = {
|
|
|
295268
295336
|
"deleteWorkflowResponse": true,
|
|
295269
295337
|
"listWorkflowsResponse": true,
|
|
295270
295338
|
"getOrCreateWorkflowResponse": true,
|
|
295339
|
+
"listTagValuesResponse": true,
|
|
295271
295340
|
"trackAnalyticsResponse": true,
|
|
295272
295341
|
"runVrlResponse": true,
|
|
295273
295342
|
"getAccountResponse": true,
|
|
@@ -298662,6 +298731,14 @@ var state = {
|
|
|
298662
298731
|
],
|
|
298663
298732
|
"schema": "Workflow"
|
|
298664
298733
|
},
|
|
298734
|
+
{
|
|
298735
|
+
"description": "",
|
|
298736
|
+
"title": "Tag",
|
|
298737
|
+
"name": "tag",
|
|
298738
|
+
"operations": [
|
|
298739
|
+
"listTagValues"
|
|
298740
|
+
]
|
|
298741
|
+
},
|
|
298665
298742
|
{
|
|
298666
298743
|
"title": "Bot",
|
|
298667
298744
|
"description": "",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as opapi from '@bpinternal/opapi';
|
|
2
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
|
|
2
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Plugin' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'Version' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Workflow' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'state' | 'hub' | 'action' | 'task' | 'workflow' | 'tag' | 'bot' | 'integration' | 'interface' | 'plugin' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>;
|
|
3
3
|
export declare const state: {
|
|
4
4
|
operations: {
|
|
5
5
|
createConversation: {
|
|
@@ -2213,6 +2213,65 @@ export declare const state: {
|
|
|
2213
2213
|
};
|
|
2214
2214
|
parameters: {};
|
|
2215
2215
|
};
|
|
2216
|
+
listTagValues: {
|
|
2217
|
+
name: string;
|
|
2218
|
+
description: string;
|
|
2219
|
+
method: "get";
|
|
2220
|
+
path: string;
|
|
2221
|
+
section: "tag";
|
|
2222
|
+
parameters: {
|
|
2223
|
+
nextToken: {
|
|
2224
|
+
in: "query";
|
|
2225
|
+
description: string;
|
|
2226
|
+
type: "string";
|
|
2227
|
+
};
|
|
2228
|
+
key: {
|
|
2229
|
+
in: "path";
|
|
2230
|
+
type: "string";
|
|
2231
|
+
description: string;
|
|
2232
|
+
};
|
|
2233
|
+
type: {
|
|
2234
|
+
in: "query";
|
|
2235
|
+
type: "string";
|
|
2236
|
+
description: string;
|
|
2237
|
+
required: true;
|
|
2238
|
+
enum: string[];
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
response: {
|
|
2242
|
+
description: string;
|
|
2243
|
+
schema: {
|
|
2244
|
+
type: "object";
|
|
2245
|
+
properties: {
|
|
2246
|
+
tags: {
|
|
2247
|
+
type: "array";
|
|
2248
|
+
items: {
|
|
2249
|
+
type: "object";
|
|
2250
|
+
properties: {
|
|
2251
|
+
value: {
|
|
2252
|
+
type: "string";
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
required: string[];
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
meta: {
|
|
2259
|
+
type: "object";
|
|
2260
|
+
properties: {
|
|
2261
|
+
nextToken: {
|
|
2262
|
+
type: "string";
|
|
2263
|
+
description: string;
|
|
2264
|
+
};
|
|
2265
|
+
};
|
|
2266
|
+
additionalProperties: false;
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
required: string[];
|
|
2270
|
+
title: string;
|
|
2271
|
+
additionalProperties: false;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2216
2275
|
trackAnalytics: {
|
|
2217
2276
|
name: string;
|
|
2218
2277
|
description: string;
|
|
@@ -12059,6 +12118,7 @@ export declare const state: {
|
|
|
12059
12118
|
deleteWorkflowResponse: true;
|
|
12060
12119
|
listWorkflowsResponse: true;
|
|
12061
12120
|
getOrCreateWorkflowResponse: true;
|
|
12121
|
+
listTagValuesResponse: true;
|
|
12062
12122
|
trackAnalyticsResponse: true;
|
|
12063
12123
|
runVrlResponse: true;
|
|
12064
12124
|
getAccountResponse: true;
|
|
@@ -14844,6 +14904,12 @@ export declare const state: {
|
|
|
14844
14904
|
name: "workflow";
|
|
14845
14905
|
operations: string[];
|
|
14846
14906
|
schema: string;
|
|
14907
|
+
} | {
|
|
14908
|
+
description: string;
|
|
14909
|
+
title: string;
|
|
14910
|
+
name: "tag";
|
|
14911
|
+
operations: string[];
|
|
14912
|
+
schema?: undefined;
|
|
14847
14913
|
} | {
|
|
14848
14914
|
title: string;
|
|
14849
14915
|
description: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './gen/state';
|
|
2
2
|
export declare const api: {
|
|
3
3
|
getModelRef: (name: "Bot" | "Integration" | "Interface" | "Plugin" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "Version" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "Workflow" | "Table" | "Column" | "Row" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-integration-id" | "x-workspace-id", "user" | "conversation" | "event" | "message" | "state" | "hub" | "action" | "task" | "workflow" | "tag" | "bot" | "integration" | "interface" | "plugin" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables" | "files", Path, "zod-schema">) => void;
|
|
5
5
|
exportClient: {
|
|
6
6
|
(dir: string, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined): Promise<void>;
|
|
7
7
|
(dir: string, props: import("@bpinternal/opapi").GenerateClientProps): Promise<void>;
|
package/package.json
CHANGED
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":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","exportTable","getTableJobs","importTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"State","name":"state","operations":["setStateExpiry","getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"description":"","title":"Workflow","name":"workflow","operations":["createWorkflow","getWorkflow","updateWorkflow","deleteWorkflow","listWorkflows","getOrCreateWorkflow"],"schema":"Workflow"},{"description":"","title":"Tag","name":"tag","operations":["listTagValues"]},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents","listBotVersions","getBotVersion","createBotVersion","deployBotVersion"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration","requestIntegrationVerification"],"schema":"Integration"},{"title":"Interface","description":"","name":"interface","operations":["createInterface","getInterface","getInterfaceByName","updateInterface","deleteInterface","listInterfaces"],"schema":"Interface"},{"title":"Plugin","description":"","name":"plugin","operations":["createPlugin","getPlugin","getPluginByName","updatePlugin","deletePlugin","listPlugins"],"schema":"Plugin"},{"title":"Workspace","description":"","name":"workspace","operations":["listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","exportTable","getTableJobs","importTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Word, HTML, Markdown, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles","listFilePassages"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|