@botpress/client 0.22.0 → 0.23.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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-generate.log +1 -1
- package/dist/bundle.cjs +11 -11
- package/dist/bundle.cjs.map +4 -4
- package/dist/errors.d.ts +2 -0
- package/dist/gen/index.d.ts +18 -0
- package/dist/gen/models.d.ts +85 -2
- package/dist/gen/operations/createInterface.d.ts +172 -0
- package/dist/gen/operations/deleteInterface.d.ts +21 -0
- package/dist/gen/operations/getFile.d.ts +2 -2
- package/dist/gen/operations/getInterface.d.ts +104 -0
- package/dist/gen/operations/getInterfaceByName.d.ts +105 -0
- package/dist/gen/operations/listBots.d.ts +2 -0
- package/dist/gen/operations/listFiles.d.ts +2 -2
- package/dist/gen/operations/listInterfaces.d.ts +49 -0
- package/dist/gen/operations/updateFileMetadata.d.ts +2 -2
- package/dist/gen/operations/updateInterface.d.ts +165 -0
- package/dist/gen/operations/upsertFile.d.ts +6 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/dist/types.d.ts +2 -3
- package/package.json +5 -5
- package/tests/manual/file-upload.test.ts +12 -4
package/dist/errors.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class UploadFileError extends Error {
|
|
|
6
6
|
id: string;
|
|
7
7
|
botId: string;
|
|
8
8
|
key: string;
|
|
9
|
+
url: string;
|
|
9
10
|
size: number | null;
|
|
10
11
|
contentType: string;
|
|
11
12
|
tags: {
|
|
@@ -23,6 +24,7 @@ export declare class UploadFileError extends Error {
|
|
|
23
24
|
id: string;
|
|
24
25
|
botId: string;
|
|
25
26
|
key: string;
|
|
27
|
+
url: string;
|
|
26
28
|
size: number | null;
|
|
27
29
|
contentType: string;
|
|
28
30
|
tags: {
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -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>;
|
package/dist/gen/models.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1129,11 +1212,11 @@ export interface File {
|
|
|
1129
1212
|
*/
|
|
1130
1213
|
key: string;
|
|
1131
1214
|
/**
|
|
1132
|
-
*
|
|
1215
|
+
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
1133
1216
|
*
|
|
1134
1217
|
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
1135
1218
|
*/
|
|
1136
|
-
url: string
|
|
1219
|
+
url: string;
|
|
1137
1220
|
/**
|
|
1138
1221
|
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
1139
1222
|
*/
|
|
@@ -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
|
+
}
|
|
@@ -32,11 +32,11 @@ export interface GetFileResponse {
|
|
|
32
32
|
*/
|
|
33
33
|
key: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
36
36
|
*
|
|
37
37
|
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
38
38
|
*/
|
|
39
|
-
url: string
|
|
39
|
+
url: string;
|
|
40
40
|
/**
|
|
41
41
|
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
42
42
|
*/
|
|
@@ -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
|
+
}
|
|
@@ -35,11 +35,11 @@ export interface ListFilesResponse {
|
|
|
35
35
|
*/
|
|
36
36
|
key: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
39
39
|
*
|
|
40
40
|
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
41
41
|
*/
|
|
42
|
-
url: string
|
|
42
|
+
url: string;
|
|
43
43
|
/**
|
|
44
44
|
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
45
45
|
*/
|
|
@@ -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
|
+
}
|
|
@@ -42,11 +42,11 @@ export interface UpdateFileMetadataResponse {
|
|
|
42
42
|
*/
|
|
43
43
|
key: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* URL to retrieve the file content. This URL will be ready to use once the file is uploaded.
|
|
46
46
|
*
|
|
47
47
|
* If the file has a `public_content` policy, this will contain the permanent public URL to retrieve the file, otherwise this will contain a temporary pre-signed URL to download the file which should be used shortly after retrieving and should not be stored long-term as the URL will expire after a short timeframe.
|
|
48
48
|
*/
|
|
49
|
-
url: string
|
|
49
|
+
url: string;
|
|
50
50
|
/**
|
|
51
51
|
* File size in bytes. Non-null if file upload status is "COMPLETE".
|
|
52
52
|
*/
|