@botpress/client 0.22.0 → 0.23.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.
@@ -94,6 +94,12 @@ import * as getIntegration from './operations/getIntegration';
94
94
  import * as getIntegrationLogs from './operations/getIntegrationLogs';
95
95
  import * as getIntegrationByName from './operations/getIntegrationByName';
96
96
  import * as deleteIntegration from './operations/deleteIntegration';
97
+ import * as createInterface from './operations/createInterface';
98
+ import * as getInterface from './operations/getInterface';
99
+ import * as getInterfaceByName from './operations/getInterfaceByName';
100
+ import * as updateInterface from './operations/updateInterface';
101
+ import * as deleteInterface from './operations/deleteInterface';
102
+ import * as listInterfaces from './operations/listInterfaces';
97
103
  import * as getUsage from './operations/getUsage';
98
104
  import * as getMultipleUsages from './operations/getMultipleUsages';
99
105
  import * as listUsageHistory from './operations/listUsageHistory';
@@ -215,6 +221,12 @@ export * as getIntegration from './operations/getIntegration';
215
221
  export * as getIntegrationLogs from './operations/getIntegrationLogs';
216
222
  export * as getIntegrationByName from './operations/getIntegrationByName';
217
223
  export * as deleteIntegration from './operations/deleteIntegration';
224
+ export * as createInterface from './operations/createInterface';
225
+ export * as getInterface from './operations/getInterface';
226
+ export * as getInterfaceByName from './operations/getInterfaceByName';
227
+ export * as updateInterface from './operations/updateInterface';
228
+ export * as deleteInterface from './operations/deleteInterface';
229
+ export * as listInterfaces from './operations/listInterfaces';
218
230
  export * as getUsage from './operations/getUsage';
219
231
  export * as getMultipleUsages from './operations/getMultipleUsages';
220
232
  export * as listUsageHistory from './operations/listUsageHistory';
@@ -342,6 +354,12 @@ export declare class Client {
342
354
  readonly getIntegrationLogs: (input: getIntegrationLogs.GetIntegrationLogsInput) => Promise<getIntegrationLogs.GetIntegrationLogsResponse>;
343
355
  readonly getIntegrationByName: (input: getIntegrationByName.GetIntegrationByNameInput) => Promise<getIntegrationByName.GetIntegrationByNameResponse>;
344
356
  readonly deleteIntegration: (input: deleteIntegration.DeleteIntegrationInput) => Promise<deleteIntegration.DeleteIntegrationResponse>;
357
+ readonly createInterface: (input: createInterface.CreateInterfaceInput) => Promise<createInterface.CreateInterfaceResponse>;
358
+ readonly getInterface: (input: getInterface.GetInterfaceInput) => Promise<getInterface.GetInterfaceResponse>;
359
+ readonly getInterfaceByName: (input: getInterfaceByName.GetInterfaceByNameInput) => Promise<getInterfaceByName.GetInterfaceByNameResponse>;
360
+ readonly updateInterface: (input: updateInterface.UpdateInterfaceInput) => Promise<updateInterface.UpdateInterfaceResponse>;
361
+ readonly deleteInterface: (input: deleteInterface.DeleteInterfaceInput) => Promise<deleteInterface.DeleteInterfaceResponse>;
362
+ readonly listInterfaces: (input: listInterfaces.ListInterfacesInput) => Promise<listInterfaces.ListInterfacesResponse>;
345
363
  readonly getUsage: (input: getUsage.GetUsageInput) => Promise<getUsage.GetUsageResponse>;
346
364
  readonly getMultipleUsages: (input: getMultipleUsages.GetMultipleUsagesInput) => Promise<getMultipleUsages.GetMultipleUsagesResponse>;
347
365
  readonly listUsageHistory: (input: listUsageHistory.ListUsageHistoryInput) => Promise<listUsageHistory.ListUsageHistoryResponse>;
@@ -579,6 +579,89 @@ export interface Integration {
579
579
  */
580
580
  secrets: string[];
581
581
  }
582
+ export interface Interface {
583
+ /**
584
+ * ID of the [Interface](#schema_interface)
585
+ */
586
+ id: string;
587
+ /**
588
+ * Creation date of the [Interface](#schema_interface) in ISO 8601 format
589
+ */
590
+ createdAt: string;
591
+ /**
592
+ * Updating date of the [Interface](#schema_interface) in ISO 8601 format
593
+ */
594
+ updatedAt: string;
595
+ /**
596
+ * Name of the [Interface](#schema_interface)
597
+ */
598
+ name: string;
599
+ /**
600
+ * Version of the [Interface](#schema_interface)
601
+ */
602
+ version: string;
603
+ events: {
604
+ /**
605
+ * Event Definition
606
+ */
607
+ [k: string]: {
608
+ /**
609
+ * Title of the event
610
+ */
611
+ title?: string;
612
+ /**
613
+ * Description of the event
614
+ */
615
+ description?: string;
616
+ schema: {
617
+ [k: string]: any;
618
+ };
619
+ };
620
+ };
621
+ actions: {
622
+ /**
623
+ * Action definition
624
+ */
625
+ [k: string]: {
626
+ /**
627
+ * Title of the action
628
+ */
629
+ title?: string;
630
+ /**
631
+ * Description of the action
632
+ */
633
+ description?: string;
634
+ input: {
635
+ schema: {
636
+ [k: string]: any;
637
+ };
638
+ };
639
+ output: {
640
+ schema: {
641
+ [k: string]: any;
642
+ };
643
+ };
644
+ };
645
+ };
646
+ entities: {
647
+ /**
648
+ * Entity definition
649
+ */
650
+ [k: string]: {
651
+ /**
652
+ * Title of the entity
653
+ */
654
+ title?: string;
655
+ /**
656
+ * Description of the entity
657
+ */
658
+ description?: string;
659
+ schema: {
660
+ [k: string]: any;
661
+ };
662
+ };
663
+ };
664
+ }
582
665
  export interface Workspace {
583
666
  id: string;
584
667
  name: string;
@@ -0,0 +1,172 @@
1
+ export interface CreateInterfaceRequestHeaders {
2
+ }
3
+ export interface CreateInterfaceRequestQuery {
4
+ }
5
+ export interface CreateInterfaceRequestParams {
6
+ }
7
+ export interface CreateInterfaceRequestBody {
8
+ /**
9
+ * Name of the [Interface](#schema_interface)
10
+ */
11
+ name: string;
12
+ /**
13
+ * Version of the [Interface](#schema_interface)
14
+ */
15
+ version: string;
16
+ events: {
17
+ /**
18
+ * Event Definition
19
+ */
20
+ [k: string]: {
21
+ /**
22
+ * Title of the event
23
+ */
24
+ title?: string;
25
+ /**
26
+ * Description of the event
27
+ */
28
+ description?: string;
29
+ schema: {
30
+ [k: string]: any;
31
+ };
32
+ };
33
+ };
34
+ actions: {
35
+ /**
36
+ * Action definition
37
+ */
38
+ [k: string]: {
39
+ /**
40
+ * Title of the action
41
+ */
42
+ title?: string;
43
+ /**
44
+ * Description of the action
45
+ */
46
+ description?: string;
47
+ input: {
48
+ schema: {
49
+ [k: string]: any;
50
+ };
51
+ };
52
+ output: {
53
+ schema: {
54
+ [k: string]: any;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ entities: {
60
+ /**
61
+ * Entity definition
62
+ */
63
+ [k: string]: {
64
+ /**
65
+ * Title of the entity
66
+ */
67
+ title?: string;
68
+ /**
69
+ * Description of the entity
70
+ */
71
+ description?: string;
72
+ schema: {
73
+ [k: string]: any;
74
+ };
75
+ };
76
+ };
77
+ }
78
+ export type CreateInterfaceInput = CreateInterfaceRequestBody & CreateInterfaceRequestHeaders & CreateInterfaceRequestQuery & CreateInterfaceRequestParams;
79
+ export type CreateInterfaceRequest = {
80
+ headers: CreateInterfaceRequestHeaders;
81
+ query: CreateInterfaceRequestQuery;
82
+ params: CreateInterfaceRequestParams;
83
+ body: CreateInterfaceRequestBody;
84
+ };
85
+ export declare const parseReq: (input: CreateInterfaceInput) => CreateInterfaceRequest & {
86
+ path: string;
87
+ };
88
+ export interface CreateInterfaceResponse {
89
+ interface: {
90
+ /**
91
+ * ID of the [Interface](#schema_interface)
92
+ */
93
+ id: string;
94
+ /**
95
+ * Creation date of the [Interface](#schema_interface) in ISO 8601 format
96
+ */
97
+ createdAt: string;
98
+ /**
99
+ * Updating date of the [Interface](#schema_interface) in ISO 8601 format
100
+ */
101
+ updatedAt: string;
102
+ /**
103
+ * Name of the [Interface](#schema_interface)
104
+ */
105
+ name: string;
106
+ /**
107
+ * Version of the [Interface](#schema_interface)
108
+ */
109
+ version: string;
110
+ events: {
111
+ /**
112
+ * Event Definition
113
+ */
114
+ [k: string]: {
115
+ /**
116
+ * Title of the event
117
+ */
118
+ title?: string;
119
+ /**
120
+ * Description of the event
121
+ */
122
+ description?: string;
123
+ schema: {
124
+ [k: string]: any;
125
+ };
126
+ };
127
+ };
128
+ actions: {
129
+ /**
130
+ * Action definition
131
+ */
132
+ [k: string]: {
133
+ /**
134
+ * Title of the action
135
+ */
136
+ title?: string;
137
+ /**
138
+ * Description of the action
139
+ */
140
+ description?: string;
141
+ input: {
142
+ schema: {
143
+ [k: string]: any;
144
+ };
145
+ };
146
+ output: {
147
+ schema: {
148
+ [k: string]: any;
149
+ };
150
+ };
151
+ };
152
+ };
153
+ entities: {
154
+ /**
155
+ * Entity definition
156
+ */
157
+ [k: string]: {
158
+ /**
159
+ * Title of the entity
160
+ */
161
+ title?: string;
162
+ /**
163
+ * Description of the entity
164
+ */
165
+ description?: string;
166
+ schema: {
167
+ [k: string]: any;
168
+ };
169
+ };
170
+ };
171
+ };
172
+ }
@@ -0,0 +1,21 @@
1
+ export interface DeleteInterfaceRequestHeaders {
2
+ }
3
+ export interface DeleteInterfaceRequestQuery {
4
+ }
5
+ export interface DeleteInterfaceRequestParams {
6
+ id: string;
7
+ }
8
+ export interface DeleteInterfaceRequestBody {
9
+ }
10
+ export type DeleteInterfaceInput = DeleteInterfaceRequestBody & DeleteInterfaceRequestHeaders & DeleteInterfaceRequestQuery & DeleteInterfaceRequestParams;
11
+ export type DeleteInterfaceRequest = {
12
+ headers: DeleteInterfaceRequestHeaders;
13
+ query: DeleteInterfaceRequestQuery;
14
+ params: DeleteInterfaceRequestParams;
15
+ body: DeleteInterfaceRequestBody;
16
+ };
17
+ export declare const parseReq: (input: DeleteInterfaceInput) => DeleteInterfaceRequest & {
18
+ path: string;
19
+ };
20
+ export interface DeleteInterfaceResponse {
21
+ }
@@ -0,0 +1,104 @@
1
+ export interface GetInterfaceRequestHeaders {
2
+ }
3
+ export interface GetInterfaceRequestQuery {
4
+ }
5
+ export interface GetInterfaceRequestParams {
6
+ id: string;
7
+ }
8
+ export interface GetInterfaceRequestBody {
9
+ }
10
+ export type GetInterfaceInput = GetInterfaceRequestBody & GetInterfaceRequestHeaders & GetInterfaceRequestQuery & GetInterfaceRequestParams;
11
+ export type GetInterfaceRequest = {
12
+ headers: GetInterfaceRequestHeaders;
13
+ query: GetInterfaceRequestQuery;
14
+ params: GetInterfaceRequestParams;
15
+ body: GetInterfaceRequestBody;
16
+ };
17
+ export declare const parseReq: (input: GetInterfaceInput) => GetInterfaceRequest & {
18
+ path: string;
19
+ };
20
+ export interface GetInterfaceResponse {
21
+ interface: {
22
+ /**
23
+ * ID of the [Interface](#schema_interface)
24
+ */
25
+ id: string;
26
+ /**
27
+ * Creation date of the [Interface](#schema_interface) in ISO 8601 format
28
+ */
29
+ createdAt: string;
30
+ /**
31
+ * Updating date of the [Interface](#schema_interface) in ISO 8601 format
32
+ */
33
+ updatedAt: string;
34
+ /**
35
+ * Name of the [Interface](#schema_interface)
36
+ */
37
+ name: string;
38
+ /**
39
+ * Version of the [Interface](#schema_interface)
40
+ */
41
+ version: string;
42
+ events: {
43
+ /**
44
+ * Event Definition
45
+ */
46
+ [k: string]: {
47
+ /**
48
+ * Title of the event
49
+ */
50
+ title?: string;
51
+ /**
52
+ * Description of the event
53
+ */
54
+ description?: string;
55
+ schema: {
56
+ [k: string]: any;
57
+ };
58
+ };
59
+ };
60
+ actions: {
61
+ /**
62
+ * Action definition
63
+ */
64
+ [k: string]: {
65
+ /**
66
+ * Title of the action
67
+ */
68
+ title?: string;
69
+ /**
70
+ * Description of the action
71
+ */
72
+ description?: string;
73
+ input: {
74
+ schema: {
75
+ [k: string]: any;
76
+ };
77
+ };
78
+ output: {
79
+ schema: {
80
+ [k: string]: any;
81
+ };
82
+ };
83
+ };
84
+ };
85
+ entities: {
86
+ /**
87
+ * Entity definition
88
+ */
89
+ [k: string]: {
90
+ /**
91
+ * Title of the entity
92
+ */
93
+ title?: string;
94
+ /**
95
+ * Description of the entity
96
+ */
97
+ description?: string;
98
+ schema: {
99
+ [k: string]: any;
100
+ };
101
+ };
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,105 @@
1
+ export interface GetInterfaceByNameRequestHeaders {
2
+ }
3
+ export interface GetInterfaceByNameRequestQuery {
4
+ }
5
+ export interface GetInterfaceByNameRequestParams {
6
+ name: string;
7
+ version: string;
8
+ }
9
+ export interface GetInterfaceByNameRequestBody {
10
+ }
11
+ export type GetInterfaceByNameInput = GetInterfaceByNameRequestBody & GetInterfaceByNameRequestHeaders & GetInterfaceByNameRequestQuery & GetInterfaceByNameRequestParams;
12
+ export type GetInterfaceByNameRequest = {
13
+ headers: GetInterfaceByNameRequestHeaders;
14
+ query: GetInterfaceByNameRequestQuery;
15
+ params: GetInterfaceByNameRequestParams;
16
+ body: GetInterfaceByNameRequestBody;
17
+ };
18
+ export declare const parseReq: (input: GetInterfaceByNameInput) => GetInterfaceByNameRequest & {
19
+ path: string;
20
+ };
21
+ export interface GetInterfaceByNameResponse {
22
+ interface: {
23
+ /**
24
+ * ID of the [Interface](#schema_interface)
25
+ */
26
+ id: string;
27
+ /**
28
+ * Creation date of the [Interface](#schema_interface) in ISO 8601 format
29
+ */
30
+ createdAt: string;
31
+ /**
32
+ * Updating date of the [Interface](#schema_interface) in ISO 8601 format
33
+ */
34
+ updatedAt: string;
35
+ /**
36
+ * Name of the [Interface](#schema_interface)
37
+ */
38
+ name: string;
39
+ /**
40
+ * Version of the [Interface](#schema_interface)
41
+ */
42
+ version: string;
43
+ events: {
44
+ /**
45
+ * Event Definition
46
+ */
47
+ [k: string]: {
48
+ /**
49
+ * Title of the event
50
+ */
51
+ title?: string;
52
+ /**
53
+ * Description of the event
54
+ */
55
+ description?: string;
56
+ schema: {
57
+ [k: string]: any;
58
+ };
59
+ };
60
+ };
61
+ actions: {
62
+ /**
63
+ * Action definition
64
+ */
65
+ [k: string]: {
66
+ /**
67
+ * Title of the action
68
+ */
69
+ title?: string;
70
+ /**
71
+ * Description of the action
72
+ */
73
+ description?: string;
74
+ input: {
75
+ schema: {
76
+ [k: string]: any;
77
+ };
78
+ };
79
+ output: {
80
+ schema: {
81
+ [k: string]: any;
82
+ };
83
+ };
84
+ };
85
+ };
86
+ entities: {
87
+ /**
88
+ * Entity definition
89
+ */
90
+ [k: string]: {
91
+ /**
92
+ * Title of the entity
93
+ */
94
+ title?: string;
95
+ /**
96
+ * Description of the entity
97
+ */
98
+ description?: string;
99
+ schema: {
100
+ [k: string]: any;
101
+ };
102
+ };
103
+ };
104
+ };
105
+ }
@@ -3,6 +3,8 @@ export interface ListBotsRequestHeaders {
3
3
  export interface ListBotsRequestQuery {
4
4
  dev?: boolean;
5
5
  nextToken?: string;
6
+ sortField?: "createdAt" | "updatedAt";
7
+ sortDirection?: "asc" | "desc";
6
8
  }
7
9
  export interface ListBotsRequestParams {
8
10
  }
@@ -0,0 +1,49 @@
1
+ export interface ListInterfacesRequestHeaders {
2
+ }
3
+ export interface ListInterfacesRequestQuery {
4
+ nextToken?: string;
5
+ }
6
+ export interface ListInterfacesRequestParams {
7
+ }
8
+ export interface ListInterfacesRequestBody {
9
+ }
10
+ export type ListInterfacesInput = ListInterfacesRequestBody & ListInterfacesRequestHeaders & ListInterfacesRequestQuery & ListInterfacesRequestParams;
11
+ export type ListInterfacesRequest = {
12
+ headers: ListInterfacesRequestHeaders;
13
+ query: ListInterfacesRequestQuery;
14
+ params: ListInterfacesRequestParams;
15
+ body: ListInterfacesRequestBody;
16
+ };
17
+ export declare const parseReq: (input: ListInterfacesInput) => ListInterfacesRequest & {
18
+ path: string;
19
+ };
20
+ export interface ListInterfacesResponse {
21
+ interfaces: {
22
+ /**
23
+ * ID of the [Interface](#schema_interface)
24
+ */
25
+ id: string;
26
+ /**
27
+ * Creation date of the [Interface](#schema_interface) in ISO 8601 format
28
+ */
29
+ createdAt: string;
30
+ /**
31
+ * Updating date of the [Interface](#schema_interface) in ISO 8601 format
32
+ */
33
+ updatedAt: string;
34
+ /**
35
+ * Name of the [Interface](#schema_interface)
36
+ */
37
+ name: string;
38
+ /**
39
+ * Version of the [Interface](#schema_interface)
40
+ */
41
+ version: string;
42
+ }[];
43
+ meta: {
44
+ /**
45
+ * 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.
46
+ */
47
+ nextToken?: string;
48
+ };
49
+ }