@botpress/client
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.3 | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
@@ -8,0 +8,0 @@ * |
import { AxiosInstance } from 'axios'; | ||
import type { Merge, Except } from 'type-fest'; | ||
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiGetWorkspaceRequest, DefaultApiUpdateWorkspaceRequest, DefaultApiListWorkspacesRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationLogsRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest, DefaultApiListWorkspaceMembersRequest, DefaultApiDeleteWorkspaceMemberRequest, DefaultApiCreateWorkspaceMemberRequest, DefaultApiUpdateWorkspaceMemberRequest, DefaultApiIntrospectRequest, DefaultApiCreateFileRequest, DefaultApiGetFileRequest, DefaultApiDownloadFileRequest, DefaultApiDeleteFileRequest, DefaultApiListFilesRequest } from '.'; | ||
import { Configuration, DefaultApiCreateConversationRequest, DefaultApiGetConversationRequest, DefaultApiListConversationsRequest, DefaultApiGetOrCreateConversationRequest, DefaultApiUpdateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest, DefaultApiListEventsRequest, DefaultApiCreateMessageRequest, DefaultApiGetOrCreateMessageRequest, DefaultApiGetMessageRequest, DefaultApiUpdateMessageRequest, DefaultApiListMessagesRequest, DefaultApiDeleteMessageRequest, DefaultApiCreateUserRequest, DefaultApiGetUserRequest, DefaultApiListUsersRequest, DefaultApiGetOrCreateUserRequest, DefaultApiUpdateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetStateRequest, DefaultApiSetStateRequest, DefaultApiPatchStateRequest, DefaultApiCallActionRequest, DefaultApiConfigureIntegrationRequest, DefaultApiListPublicIntegrationsRequest, DefaultApiGetPublicIntegrationByIdRequest, DefaultApiGetPublicIntegrationRequest, DefaultApiCreateBotRequest, DefaultApiUpdateBotRequest, DefaultApiTransferBotRequest, DefaultApiListBotsRequest, DefaultApiGetBotRequest, DefaultApiDeleteBotRequest, DefaultApiGetBotLogsRequest, DefaultApiGetBotWebchatRequest, DefaultApiGetBotAnalyticsRequest, DefaultApiCreateWorkspaceRequest, DefaultApiGetWorkspaceRequest, DefaultApiUpdateWorkspaceRequest, DefaultApiListWorkspacesRequest, DefaultApiChangeWorkspacePlanRequest, DefaultApiDeleteWorkspaceRequest, DefaultApiCreateIntegrationRequest, DefaultApiUpdateIntegrationRequest, DefaultApiListIntegrationsRequest, DefaultApiGetIntegrationRequest, DefaultApiGetIntegrationLogsRequest, DefaultApiGetIntegrationByNameRequest, DefaultApiDeleteIntegrationRequest, DefaultApiListWorkspaceMembersRequest, DefaultApiDeleteWorkspaceMemberRequest, DefaultApiCreateWorkspaceMemberRequest, DefaultApiUpdateWorkspaceMemberRequest, DefaultApiIntrospectRequest, DefaultApiCreateFileRequest, DefaultApiGetFileRequest, DefaultApiDownloadFileRequest, DefaultApiDeleteFileRequest, DefaultApiListFilesRequest } from '.'; | ||
export declare class ApiClient { | ||
@@ -45,5 +45,8 @@ private _innerClient; | ||
getBotAnalytics: (props: GetBotAnalyticsProps) => Promise<import("./api").GetBotAnalyticsResponse>; | ||
createWorkspace: (createWorkspaceBody: CreateWorkspaceProps) => Promise<import("./api").CreateWorkspaceResponse>; | ||
getWorkspace: (props: GetWorkspaceProps) => Promise<import("./api").GetWorkspaceResponse>; | ||
updateWorkspace: ({ id, ...updateWorkspaceBody }: UpdateWorkspaceProps) => Promise<import("./api").UpdateWorkspaceResponse>; | ||
updateWorkspace: ({ id, ...updateWorkspaceBody }: UpdateWorkspaceProps) => Promise<import("./api").UpdateWorkspaceResponse1>; | ||
listWorkspaces: (props: ListWorkspacesProps) => Promise<import("./api").ListWorkspacesResponse>; | ||
changeWorkspacePlan: ({ id, ...changeWorkspacePlanBody }: ChangeWorkspacePlanProps) => Promise<import("./api").ChangeWorkspacePlanResponse>; | ||
deleteWorkspace: (props: DeleteWorkspaceProps) => Promise<object>; | ||
createIntegration: (createIntegrationBody: CreateIntegrationProps) => Promise<import("./api").CreateIntegrationResponse>; | ||
@@ -105,5 +108,8 @@ updateIntegration: ({ id, ...updateIntegrationBody }: UpdateIntegrationProps) => Promise<import("./api").UpdateIntegrationResponse>; | ||
export type GetBotAnalyticsProps = Merge<DefaultApiGetBotAnalyticsRequest, {}>; | ||
export type CreateWorkspaceProps = Merge<Except<DefaultApiCreateWorkspaceRequest, 'createWorkspaceBody'>, NonNullable<DefaultApiCreateWorkspaceRequest['createWorkspaceBody']>>; | ||
export type GetWorkspaceProps = Merge<DefaultApiGetWorkspaceRequest, {}>; | ||
export type UpdateWorkspaceProps = Merge<Except<DefaultApiUpdateWorkspaceRequest, 'updateWorkspaceBody'>, NonNullable<DefaultApiUpdateWorkspaceRequest['updateWorkspaceBody']>>; | ||
export type ListWorkspacesProps = Merge<DefaultApiListWorkspacesRequest, {}>; | ||
export type ChangeWorkspacePlanProps = Merge<Except<DefaultApiChangeWorkspacePlanRequest, 'changeWorkspacePlanBody'>, NonNullable<DefaultApiChangeWorkspacePlanRequest['changeWorkspacePlanBody']>>; | ||
export type DeleteWorkspaceProps = Merge<DefaultApiDeleteWorkspaceRequest, {}>; | ||
export type CreateIntegrationProps = Merge<Except<DefaultApiCreateIntegrationRequest, 'createIntegrationBody'>, NonNullable<DefaultApiCreateIntegrationRequest['createIntegrationBody']>>; | ||
@@ -110,0 +116,0 @@ export type UpdateIntegrationProps = Merge<Except<DefaultApiUpdateIntegrationRequest, 'updateIntegrationBody'>, NonNullable<DefaultApiUpdateIntegrationRequest['updateIntegrationBody']>>; |
@@ -6,3 +6,3 @@ /// <reference types="node" /> | ||
* | ||
* The version of the OpenAPI document: 0.3.3 | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
@@ -9,0 +9,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.3 | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
@@ -8,0 +8,0 @@ * |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* The version of the OpenAPI document: 0.3.3 | ||
* The version of the OpenAPI document: 0.4.0 | ||
* | ||
@@ -8,0 +8,0 @@ * |
{ | ||
"name": "@botpress/client", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Botpress Client", | ||
@@ -24,5 +24,5 @@ "main": "./dist/index.cjs", | ||
"devDependencies": { | ||
"@botpress/api": "0.3.3", | ||
"@botpress/api": "0.4.0", | ||
"esbuild": "^0.16.12" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2139881
8579