@botpress/client 0.23.1 → 0.23.2

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.
@@ -61,6 +61,10 @@ import * as getBotIssue from './operations/getBotIssue';
61
61
  import * as listBotIssues from './operations/listBotIssues';
62
62
  import * as deleteBotIssue from './operations/deleteBotIssue';
63
63
  import * as listBotIssueEvents from './operations/listBotIssueEvents';
64
+ import * as listBotVersions from './operations/listBotVersions';
65
+ import * as getBotVersion from './operations/getBotVersion';
66
+ import * as createBotVersion from './operations/createBotVersion';
67
+ import * as deployBotVersion from './operations/deployBotVersion';
64
68
  import * as setWorkspacePaymentMethod from './operations/setWorkspacePaymentMethod';
65
69
  import * as listWorkspaceInvoices from './operations/listWorkspaceInvoices';
66
70
  import * as getUpcomingInvoice from './operations/getUpcomingInvoice';
@@ -188,6 +192,10 @@ export * as getBotIssue from './operations/getBotIssue';
188
192
  export * as listBotIssues from './operations/listBotIssues';
189
193
  export * as deleteBotIssue from './operations/deleteBotIssue';
190
194
  export * as listBotIssueEvents from './operations/listBotIssueEvents';
195
+ export * as listBotVersions from './operations/listBotVersions';
196
+ export * as getBotVersion from './operations/getBotVersion';
197
+ export * as createBotVersion from './operations/createBotVersion';
198
+ export * as deployBotVersion from './operations/deployBotVersion';
191
199
  export * as setWorkspacePaymentMethod from './operations/setWorkspacePaymentMethod';
192
200
  export * as listWorkspaceInvoices from './operations/listWorkspaceInvoices';
193
201
  export * as getUpcomingInvoice from './operations/getUpcomingInvoice';
@@ -321,6 +329,10 @@ export declare class Client {
321
329
  readonly listBotIssues: (input: listBotIssues.ListBotIssuesInput) => Promise<listBotIssues.ListBotIssuesResponse>;
322
330
  readonly deleteBotIssue: (input: deleteBotIssue.DeleteBotIssueInput) => Promise<deleteBotIssue.DeleteBotIssueResponse>;
323
331
  readonly listBotIssueEvents: (input: listBotIssueEvents.ListBotIssueEventsInput) => Promise<listBotIssueEvents.ListBotIssueEventsResponse>;
332
+ readonly listBotVersions: (input: listBotVersions.ListBotVersionsInput) => Promise<listBotVersions.ListBotVersionsResponse>;
333
+ readonly getBotVersion: (input: getBotVersion.GetBotVersionInput) => Promise<getBotVersion.GetBotVersionResponse>;
334
+ readonly createBotVersion: (input: createBotVersion.CreateBotVersionInput) => Promise<createBotVersion.CreateBotVersionResponse>;
335
+ readonly deployBotVersion: (input: deployBotVersion.DeployBotVersionInput) => Promise<deployBotVersion.DeployBotVersionResponse>;
324
336
  readonly setWorkspacePaymentMethod: (input: setWorkspacePaymentMethod.SetWorkspacePaymentMethodInput) => Promise<setWorkspacePaymentMethod.SetWorkspacePaymentMethodResponse>;
325
337
  readonly listWorkspaceInvoices: (input: listWorkspaceInvoices.ListWorkspaceInvoicesInput) => Promise<listWorkspaceInvoices.ListWorkspaceInvoicesResponse>;
326
338
  readonly getUpcomingInvoice: (input: getUpcomingInvoice.GetUpcomingInvoiceInput) => Promise<getUpcomingInvoice.GetUpcomingInvoiceResponse>;
@@ -763,6 +763,11 @@ export interface Activity {
763
763
  */
764
764
  createdAt: string;
765
765
  }
766
+ export interface Version {
767
+ id: string;
768
+ name: string;
769
+ description?: string;
770
+ }
766
771
  /**
767
772
  * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
768
773
  */
@@ -0,0 +1,28 @@
1
+ export interface CreateBotVersionRequestHeaders {
2
+ }
3
+ export interface CreateBotVersionRequestQuery {
4
+ }
5
+ export interface CreateBotVersionRequestParams {
6
+ id: string;
7
+ }
8
+ export interface CreateBotVersionRequestBody {
9
+ name: string;
10
+ description?: string;
11
+ }
12
+ export type CreateBotVersionInput = CreateBotVersionRequestBody & CreateBotVersionRequestHeaders & CreateBotVersionRequestQuery & CreateBotVersionRequestParams;
13
+ export type CreateBotVersionRequest = {
14
+ headers: CreateBotVersionRequestHeaders;
15
+ query: CreateBotVersionRequestQuery;
16
+ params: CreateBotVersionRequestParams;
17
+ body: CreateBotVersionRequestBody;
18
+ };
19
+ export declare const parseReq: (input: CreateBotVersionInput) => CreateBotVersionRequest & {
20
+ path: string;
21
+ };
22
+ export interface CreateBotVersionResponse {
23
+ version: {
24
+ id: string;
25
+ name: string;
26
+ description?: string;
27
+ };
28
+ }
@@ -0,0 +1,22 @@
1
+ export interface DeployBotVersionRequestHeaders {
2
+ }
3
+ export interface DeployBotVersionRequestQuery {
4
+ }
5
+ export interface DeployBotVersionRequestParams {
6
+ id: string;
7
+ }
8
+ export interface DeployBotVersionRequestBody {
9
+ versionId: string;
10
+ }
11
+ export type DeployBotVersionInput = DeployBotVersionRequestBody & DeployBotVersionRequestHeaders & DeployBotVersionRequestQuery & DeployBotVersionRequestParams;
12
+ export type DeployBotVersionRequest = {
13
+ headers: DeployBotVersionRequestHeaders;
14
+ query: DeployBotVersionRequestQuery;
15
+ params: DeployBotVersionRequestParams;
16
+ body: DeployBotVersionRequestBody;
17
+ };
18
+ export declare const parseReq: (input: DeployBotVersionInput) => DeployBotVersionRequest & {
19
+ path: string;
20
+ };
21
+ export interface DeployBotVersionResponse {
22
+ }
@@ -0,0 +1,23 @@
1
+ export interface GetBotVersionRequestHeaders {
2
+ }
3
+ export interface GetBotVersionRequestQuery {
4
+ }
5
+ export interface GetBotVersionRequestParams {
6
+ id: string;
7
+ versionId: string;
8
+ }
9
+ export interface GetBotVersionRequestBody {
10
+ }
11
+ export type GetBotVersionInput = GetBotVersionRequestBody & GetBotVersionRequestHeaders & GetBotVersionRequestQuery & GetBotVersionRequestParams;
12
+ export type GetBotVersionRequest = {
13
+ headers: GetBotVersionRequestHeaders;
14
+ query: GetBotVersionRequestQuery;
15
+ params: GetBotVersionRequestParams;
16
+ body: GetBotVersionRequestBody;
17
+ };
18
+ export declare const parseReq: (input: GetBotVersionInput) => GetBotVersionRequest & {
19
+ path: string;
20
+ };
21
+ export interface GetBotVersionResponse {
22
+ url: string;
23
+ }
@@ -0,0 +1,26 @@
1
+ export interface ListBotVersionsRequestHeaders {
2
+ }
3
+ export interface ListBotVersionsRequestQuery {
4
+ }
5
+ export interface ListBotVersionsRequestParams {
6
+ id: string;
7
+ }
8
+ export interface ListBotVersionsRequestBody {
9
+ }
10
+ export type ListBotVersionsInput = ListBotVersionsRequestBody & ListBotVersionsRequestHeaders & ListBotVersionsRequestQuery & ListBotVersionsRequestParams;
11
+ export type ListBotVersionsRequest = {
12
+ headers: ListBotVersionsRequestHeaders;
13
+ query: ListBotVersionsRequestQuery;
14
+ params: ListBotVersionsRequestParams;
15
+ body: ListBotVersionsRequestBody;
16
+ };
17
+ export declare const parseReq: (input: ListBotVersionsInput) => ListBotVersionsRequest & {
18
+ path: string;
19
+ };
20
+ export interface ListBotVersionsResponse {
21
+ versions: {
22
+ id: string;
23
+ name: string;
24
+ description?: string;
25
+ }[];
26
+ }