@botpress/api 0.30.0 → 0.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -271259,6 +271259,113 @@ var state = {
271259
271259
  }
271260
271260
  }
271261
271261
  },
271262
+ "listPublicWorkspaces": {
271263
+ "name": "listPublicWorkspaces",
271264
+ "description": "List public workspaces",
271265
+ "section": "workspace",
271266
+ "method": "get",
271267
+ "path": "/v1/admin/workspaces/public",
271268
+ "disableDefaultParameters": {
271269
+ "x-workspace-id": true
271270
+ },
271271
+ "parameters": {
271272
+ "nextToken": {
271273
+ "in": "query",
271274
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
271275
+ "type": "string"
271276
+ },
271277
+ "workspaceIds": {
271278
+ "in": "query",
271279
+ "description": "Ids of the workspaces to list",
271280
+ "type": "string[]",
271281
+ "required": false
271282
+ },
271283
+ "search": {
271284
+ "in": "query",
271285
+ "description": "Search query",
271286
+ "type": "string",
271287
+ "required": false
271288
+ }
271289
+ },
271290
+ "response": {
271291
+ "description": "Success",
271292
+ "schema": {
271293
+ "type": "object",
271294
+ "properties": {
271295
+ "workspaces": {
271296
+ "type": "array",
271297
+ "items": {
271298
+ "type": "object",
271299
+ "properties": {
271300
+ "id": {
271301
+ "type": "string"
271302
+ },
271303
+ "name": {
271304
+ "type": "string"
271305
+ },
271306
+ "createdAt": {
271307
+ "type": "string"
271308
+ },
271309
+ "updatedAt": {
271310
+ "type": "string"
271311
+ },
271312
+ "about": {
271313
+ "default": "",
271314
+ "type": "string"
271315
+ },
271316
+ "profilePicture": {
271317
+ "default": "",
271318
+ "type": "string"
271319
+ },
271320
+ "contactEmail": {
271321
+ "default": "",
271322
+ "type": "string"
271323
+ },
271324
+ "website": {
271325
+ "default": "",
271326
+ "type": "string"
271327
+ },
271328
+ "socialAccounts": {
271329
+ "default": [],
271330
+ "type": "array",
271331
+ "items": {
271332
+ "type": "string"
271333
+ }
271334
+ },
271335
+ "handle": {
271336
+ "default": "",
271337
+ "type": "string"
271338
+ }
271339
+ },
271340
+ "required": [
271341
+ "id",
271342
+ "name",
271343
+ "createdAt",
271344
+ "updatedAt"
271345
+ ],
271346
+ "title": "getPublicWorkspaceResponse"
271347
+ }
271348
+ },
271349
+ "meta": {
271350
+ "type": "object",
271351
+ "properties": {
271352
+ "nextToken": {
271353
+ "type": "string",
271354
+ "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."
271355
+ }
271356
+ },
271357
+ "additionalProperties": false
271358
+ }
271359
+ },
271360
+ "required": [
271361
+ "workspaces",
271362
+ "meta"
271363
+ ],
271364
+ "title": "listPublicWorkspacesResponse",
271365
+ "additionalProperties": false
271366
+ }
271367
+ }
271368
+ },
271262
271369
  "deleteWorkspace": {
271263
271370
  "name": "deleteWorkspace",
271264
271371
  "description": "Delete workspace",
@@ -274988,7 +275095,7 @@ var state = {
274988
275095
  "title": "Botpress API",
274989
275096
  "description": "API for Botpress Cloud",
274990
275097
  "server": "https://api.botpress.cloud",
274991
- "version": "0.30.0",
275098
+ "version": "0.30.1",
274992
275099
  "prefix": "v1"
274993
275100
  },
274994
275101
  "errors": [
@@ -275239,6 +275346,7 @@ var state = {
275239
275346
  "updateWorkspaceResponse": true,
275240
275347
  "checkHandleAvailabilityResponse": true,
275241
275348
  "listWorkspacesResponse": true,
275349
+ "listPublicWorkspacesResponse": true,
275242
275350
  "deleteWorkspaceResponse": true,
275243
275351
  "getAuditRecordsResponse": true,
275244
275352
  "listWorkspaceMembersResponse": true,
@@ -277773,6 +277881,7 @@ var state = {
277773
277881
  "updateWorkspace",
277774
277882
  "checkHandleAvailability",
277775
277883
  "listWorkspaces",
277884
+ "listPublicWorkspaces",
277776
277885
  "deleteWorkspace",
277777
277886
  "getAuditRecords"
277778
277887
  ],
@@ -5586,6 +5586,105 @@ export declare const state: {
5586
5586
  };
5587
5587
  };
5588
5588
  };
5589
+ listPublicWorkspaces: {
5590
+ name: string;
5591
+ description: string;
5592
+ section: "workspace";
5593
+ method: "get";
5594
+ path: string;
5595
+ disableDefaultParameters: {
5596
+ "x-workspace-id": boolean;
5597
+ };
5598
+ parameters: {
5599
+ nextToken: {
5600
+ in: "query";
5601
+ description: string;
5602
+ type: "string";
5603
+ };
5604
+ workspaceIds: {
5605
+ in: "query";
5606
+ description: string;
5607
+ type: "string[]";
5608
+ required: false;
5609
+ };
5610
+ search: {
5611
+ in: "query";
5612
+ description: string;
5613
+ type: "string";
5614
+ required: false;
5615
+ };
5616
+ };
5617
+ response: {
5618
+ description: string;
5619
+ schema: {
5620
+ type: "object";
5621
+ properties: {
5622
+ workspaces: {
5623
+ type: "array";
5624
+ items: {
5625
+ type: "object";
5626
+ properties: {
5627
+ id: {
5628
+ type: "string";
5629
+ };
5630
+ name: {
5631
+ type: "string";
5632
+ };
5633
+ createdAt: {
5634
+ type: "string";
5635
+ };
5636
+ updatedAt: {
5637
+ type: "string";
5638
+ };
5639
+ about: {
5640
+ default: string;
5641
+ type: "string";
5642
+ };
5643
+ profilePicture: {
5644
+ default: string;
5645
+ type: "string";
5646
+ };
5647
+ contactEmail: {
5648
+ default: string;
5649
+ type: "string";
5650
+ };
5651
+ website: {
5652
+ default: string;
5653
+ type: "string";
5654
+ };
5655
+ socialAccounts: {
5656
+ default: never[];
5657
+ type: "array";
5658
+ items: {
5659
+ type: "string";
5660
+ };
5661
+ };
5662
+ handle: {
5663
+ default: string;
5664
+ type: "string";
5665
+ };
5666
+ };
5667
+ required: string[];
5668
+ title: string;
5669
+ };
5670
+ };
5671
+ meta: {
5672
+ type: "object";
5673
+ properties: {
5674
+ nextToken: {
5675
+ type: "string";
5676
+ description: string;
5677
+ };
5678
+ };
5679
+ additionalProperties: false;
5680
+ };
5681
+ };
5682
+ required: string[];
5683
+ title: string;
5684
+ additionalProperties: false;
5685
+ };
5686
+ };
5687
+ };
5589
5688
  deleteWorkspace: {
5590
5689
  name: string;
5591
5690
  description: string;
@@ -9056,6 +9155,7 @@ export declare const state: {
9056
9155
  updateWorkspaceResponse: true;
9057
9156
  checkHandleAvailabilityResponse: true;
9058
9157
  listWorkspacesResponse: true;
9158
+ listPublicWorkspacesResponse: true;
9059
9159
  deleteWorkspaceResponse: true;
9060
9160
  getAuditRecordsResponse: true;
9061
9161
  listWorkspaceMembersResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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":[]},{"description":"","title":"State","name":"state","operations":["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"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","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","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 Office, HTML, CSV, 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":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"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":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":"File","name":"file","operations":[]},{"description":"","title":"State","name":"state","operations":["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"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","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","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 Office, HTML, CSV, 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":["createFile","deleteFile","listFiles","getFile","updateFile","searchFiles"],"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":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."}]}