@tailorkit/client-platform 0.1.0-beta.2 → 0.1.0-beta.20
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/LICENSE.md +201 -0
- package/dist/agent.d.ts +31 -0
- package/dist/agent.js +10 -0
- package/dist/{chunk-4K3CQFYO.js → chunk-3CR3KAER.js} +3 -3
- package/dist/chunk-AX5PTMUR.js +23 -0
- package/dist/{chunk-TWOK2M2L.js → chunk-HXX7UM4A.js} +2 -1
- package/dist/chunk-KF2MA65O.js +211 -0
- package/dist/{chunk-BV7KDGT6.js → chunk-P5HWCKOQ.js} +1 -1
- package/dist/chunk-PTDO4GSQ.js +115 -0
- package/dist/{chunk-VS3R5QGP.js → chunk-VUBA7FI4.js} +45 -16
- package/dist/client/client/client.gen.d.ts +1 -2
- package/dist/client/client/client.gen.js +2 -2
- package/dist/client/client/index.d.ts +10 -9
- package/dist/client/client/index.js +5 -5
- package/dist/client/client/types.gen.d.ts +5 -6
- package/dist/client/client/utils.gen.d.ts +3 -4
- package/dist/client/client.gen.d.ts +3 -4
- package/dist/client/client.gen.js +4 -4
- package/dist/client/core/auth.gen.d.ts +7 -1
- package/dist/client/core/bodySerializer.gen.d.ts +1 -2
- package/dist/client/core/params.gen.d.ts +2 -3
- package/dist/client/core/params.gen.js +1 -1
- package/dist/client/core/pathSerializer.gen.d.ts +3 -4
- package/dist/client/core/queryKeySerializer.gen.d.ts +1 -2
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -1
- package/dist/client/core/types.gen.d.ts +7 -3
- package/dist/client/core/utils.gen.d.ts +1 -2
- package/dist/client/index.d.ts +2 -3
- package/dist/client/index.js +23 -7
- package/dist/client/sdk.gen.d.ts +26 -19
- package/dist/client/sdk.gen.js +23 -7
- package/dist/client/types.gen.d.ts +665 -100
- package/dist/client.d.ts +1 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +45 -7
- package/dist/preview.d.ts +109 -0
- package/dist/preview.js +16 -0
- package/package.json +21 -19
- package/LICENSE +0 -674
- package/dist/chunk-GBVROCWH.js +0 -123
- package/dist/client/client/client.gen.d.ts.map +0 -1
- package/dist/client/client/index.d.ts.map +0 -1
- package/dist/client/client/types.gen.d.ts.map +0 -1
- package/dist/client/client/utils.gen.d.ts.map +0 -1
- package/dist/client/client.gen.d.ts.map +0 -1
- package/dist/client/core/auth.gen.d.ts.map +0 -1
- package/dist/client/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/client/core/params.gen.d.ts.map +0 -1
- package/dist/client/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/client/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/client/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/client/core/types.gen.d.ts.map +0 -1
- package/dist/client/core/utils.gen.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/sdk.gen.d.ts.map +0 -1
- package/dist/client/types.gen.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -1,15 +1,92 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: "https://tailorkit.dev/api/platform" | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type
|
|
5
|
-
|
|
4
|
+
export type Schema0 = string | number | boolean | null | Array<Schema0> | {
|
|
5
|
+
[key: string]: Schema0;
|
|
6
|
+
};
|
|
7
|
+
export type AppAgentChatData = {
|
|
8
|
+
body: {
|
|
9
|
+
appId: string;
|
|
10
|
+
messages: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
role: "user" | "assistant";
|
|
13
|
+
parts: Array<{
|
|
14
|
+
type: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}>;
|
|
17
|
+
metadata?: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
deployToken: string;
|
|
20
|
+
};
|
|
6
21
|
path?: never;
|
|
7
|
-
query
|
|
22
|
+
query?: never;
|
|
23
|
+
url: "/app-agent/chat";
|
|
24
|
+
};
|
|
25
|
+
export type AppAgentChatResponses = {
|
|
26
|
+
/**
|
|
27
|
+
* OK
|
|
28
|
+
*/
|
|
29
|
+
200: {
|
|
30
|
+
event: "message";
|
|
31
|
+
/**
|
|
32
|
+
* An AI SDK UIMessageChunk. Fields depend on the chunk type.
|
|
33
|
+
*/
|
|
34
|
+
data: unknown;
|
|
35
|
+
id?: string;
|
|
36
|
+
retry?: number;
|
|
37
|
+
} | {
|
|
38
|
+
event: "close";
|
|
39
|
+
data?: unknown;
|
|
40
|
+
id?: string;
|
|
41
|
+
retry?: number;
|
|
42
|
+
} | {
|
|
43
|
+
event: "error";
|
|
44
|
+
data?: unknown;
|
|
45
|
+
id?: string;
|
|
46
|
+
retry?: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type AppAgentChatResponse = AppAgentChatResponses[keyof AppAgentChatResponses];
|
|
50
|
+
export type AppsRuntimeSessionData = {
|
|
51
|
+
body: {
|
|
52
|
+
scopes: Array<{
|
|
53
|
+
name: string;
|
|
54
|
+
value: {
|
|
55
|
+
[key: string]: Schema0;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
path: {
|
|
60
|
+
appId: string;
|
|
61
|
+
};
|
|
62
|
+
query?: never;
|
|
63
|
+
url: "/apps/{appId}/runtime/session";
|
|
64
|
+
};
|
|
65
|
+
export type AppsRuntimeSessionResponses = {
|
|
66
|
+
/**
|
|
67
|
+
* OK
|
|
68
|
+
*/
|
|
69
|
+
200: {
|
|
70
|
+
token: string;
|
|
71
|
+
expiresAt: number;
|
|
72
|
+
url: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export type AppsRuntimeSessionResponse = AppsRuntimeSessionResponses[keyof AppsRuntimeSessionResponses];
|
|
76
|
+
export type AppsListData = {
|
|
77
|
+
body: {
|
|
8
78
|
page?: number;
|
|
9
79
|
pageSize?: number;
|
|
10
|
-
|
|
80
|
+
scopes: Array<{
|
|
81
|
+
name: string;
|
|
82
|
+
value: {
|
|
83
|
+
[key: string]: Schema0;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
11
86
|
};
|
|
12
|
-
|
|
87
|
+
path?: never;
|
|
88
|
+
query?: never;
|
|
89
|
+
url: "/apps/list";
|
|
13
90
|
};
|
|
14
91
|
export type AppsListResponses = {
|
|
15
92
|
/**
|
|
@@ -20,7 +97,12 @@ export type AppsListResponses = {
|
|
|
20
97
|
id: string;
|
|
21
98
|
publicId: string;
|
|
22
99
|
projectId: string;
|
|
23
|
-
|
|
100
|
+
scope: {
|
|
101
|
+
name: string;
|
|
102
|
+
value: {
|
|
103
|
+
[key: string]: Schema0;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
24
106
|
name: string;
|
|
25
107
|
description: string | null;
|
|
26
108
|
currentDeploymentId: string | null;
|
|
@@ -32,10 +114,30 @@ export type AppsListResponses = {
|
|
|
32
114
|
appId: string;
|
|
33
115
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
34
116
|
clientEntryFileId: string | null;
|
|
117
|
+
logoLightFileId: string | null;
|
|
118
|
+
logoDarkFileId: string | null;
|
|
119
|
+
views: Array<{
|
|
120
|
+
slot: string;
|
|
121
|
+
path: string;
|
|
122
|
+
instances?: true;
|
|
123
|
+
disabled?: true;
|
|
124
|
+
}>;
|
|
125
|
+
logoLightPath: string | null;
|
|
126
|
+
logoDarkPath: string | null;
|
|
35
127
|
createdAt: string;
|
|
36
128
|
updatedAt: string;
|
|
37
129
|
} | null;
|
|
130
|
+
views: Array<{
|
|
131
|
+
slot: string;
|
|
132
|
+
path: string;
|
|
133
|
+
instances?: true;
|
|
134
|
+
disabled?: true;
|
|
135
|
+
}>;
|
|
38
136
|
clientPath?: string;
|
|
137
|
+
logoPaths?: {
|
|
138
|
+
dark?: string;
|
|
139
|
+
light?: string;
|
|
140
|
+
};
|
|
39
141
|
}>;
|
|
40
142
|
pagination: {
|
|
41
143
|
hasMore: boolean;
|
|
@@ -45,17 +147,22 @@ export type AppsListResponses = {
|
|
|
45
147
|
};
|
|
46
148
|
};
|
|
47
149
|
export type AppsListResponse = AppsListResponses[keyof AppsListResponses];
|
|
48
|
-
export type
|
|
150
|
+
export type AppsGetData = {
|
|
49
151
|
body: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
152
|
+
scopes: Array<{
|
|
153
|
+
name: string;
|
|
154
|
+
value: {
|
|
155
|
+
[key: string]: Schema0;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
};
|
|
159
|
+
path: {
|
|
160
|
+
appId: string;
|
|
53
161
|
};
|
|
54
|
-
path?: never;
|
|
55
162
|
query?: never;
|
|
56
|
-
url: "/apps";
|
|
163
|
+
url: "/apps/{appId}/lookup";
|
|
57
164
|
};
|
|
58
|
-
export type
|
|
165
|
+
export type AppsGetResponses = {
|
|
59
166
|
/**
|
|
60
167
|
* OK
|
|
61
168
|
*/
|
|
@@ -63,7 +170,12 @@ export type AppsCreateResponses = {
|
|
|
63
170
|
id: string;
|
|
64
171
|
publicId: string;
|
|
65
172
|
projectId: string;
|
|
66
|
-
|
|
173
|
+
scope: {
|
|
174
|
+
name: string;
|
|
175
|
+
value: {
|
|
176
|
+
[key: string]: Schema0;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
67
179
|
name: string;
|
|
68
180
|
description: string | null;
|
|
69
181
|
currentDeploymentId: string | null;
|
|
@@ -75,43 +187,49 @@ export type AppsCreateResponses = {
|
|
|
75
187
|
appId: string;
|
|
76
188
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
77
189
|
clientEntryFileId: string | null;
|
|
190
|
+
logoLightFileId: string | null;
|
|
191
|
+
logoDarkFileId: string | null;
|
|
192
|
+
views: Array<{
|
|
193
|
+
slot: string;
|
|
194
|
+
path: string;
|
|
195
|
+
instances?: true;
|
|
196
|
+
disabled?: true;
|
|
197
|
+
}>;
|
|
198
|
+
logoLightPath: string | null;
|
|
199
|
+
logoDarkPath: string | null;
|
|
78
200
|
createdAt: string;
|
|
79
201
|
updatedAt: string;
|
|
80
202
|
} | null;
|
|
203
|
+
views: Array<{
|
|
204
|
+
slot: string;
|
|
205
|
+
path: string;
|
|
206
|
+
instances?: true;
|
|
207
|
+
disabled?: true;
|
|
208
|
+
}>;
|
|
81
209
|
clientPath?: string;
|
|
210
|
+
logoPaths?: {
|
|
211
|
+
dark?: string;
|
|
212
|
+
light?: string;
|
|
213
|
+
};
|
|
82
214
|
};
|
|
83
215
|
};
|
|
84
|
-
export type
|
|
85
|
-
export type
|
|
86
|
-
body
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
};
|
|
95
|
-
export type AppsDeleteResponses = {
|
|
96
|
-
/**
|
|
97
|
-
* OK
|
|
98
|
-
*/
|
|
99
|
-
200: {
|
|
100
|
-
id: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
export type AppsDeleteResponse = AppsDeleteResponses[keyof AppsDeleteResponses];
|
|
104
|
-
export type AppsGetData = {
|
|
105
|
-
body?: never;
|
|
106
|
-
path: {
|
|
107
|
-
appId: string;
|
|
108
|
-
};
|
|
109
|
-
query: {
|
|
110
|
-
scopeId: string;
|
|
216
|
+
export type AppsGetResponse = AppsGetResponses[keyof AppsGetResponses];
|
|
217
|
+
export type AppsCreateData = {
|
|
218
|
+
body: {
|
|
219
|
+
name: string;
|
|
220
|
+
description: string | null;
|
|
221
|
+
scope: {
|
|
222
|
+
name: string;
|
|
223
|
+
value: {
|
|
224
|
+
[key: string]: Schema0;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
111
227
|
};
|
|
112
|
-
|
|
228
|
+
path?: never;
|
|
229
|
+
query?: never;
|
|
230
|
+
url: "/apps";
|
|
113
231
|
};
|
|
114
|
-
export type
|
|
232
|
+
export type AppsCreateResponses = {
|
|
115
233
|
/**
|
|
116
234
|
* OK
|
|
117
235
|
*/
|
|
@@ -119,7 +237,12 @@ export type AppsGetResponses = {
|
|
|
119
237
|
id: string;
|
|
120
238
|
publicId: string;
|
|
121
239
|
projectId: string;
|
|
122
|
-
|
|
240
|
+
scope: {
|
|
241
|
+
name: string;
|
|
242
|
+
value: {
|
|
243
|
+
[key: string]: Schema0;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
123
246
|
name: string;
|
|
124
247
|
description: string | null;
|
|
125
248
|
currentDeploymentId: string | null;
|
|
@@ -131,24 +254,72 @@ export type AppsGetResponses = {
|
|
|
131
254
|
appId: string;
|
|
132
255
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
133
256
|
clientEntryFileId: string | null;
|
|
257
|
+
logoLightFileId: string | null;
|
|
258
|
+
logoDarkFileId: string | null;
|
|
259
|
+
views: Array<{
|
|
260
|
+
slot: string;
|
|
261
|
+
path: string;
|
|
262
|
+
instances?: true;
|
|
263
|
+
disabled?: true;
|
|
264
|
+
}>;
|
|
265
|
+
logoLightPath: string | null;
|
|
266
|
+
logoDarkPath: string | null;
|
|
134
267
|
createdAt: string;
|
|
135
268
|
updatedAt: string;
|
|
136
269
|
} | null;
|
|
270
|
+
views: Array<{
|
|
271
|
+
slot: string;
|
|
272
|
+
path: string;
|
|
273
|
+
instances?: true;
|
|
274
|
+
disabled?: true;
|
|
275
|
+
}>;
|
|
137
276
|
clientPath?: string;
|
|
277
|
+
logoPaths?: {
|
|
278
|
+
dark?: string;
|
|
279
|
+
light?: string;
|
|
280
|
+
};
|
|
138
281
|
};
|
|
139
282
|
};
|
|
140
|
-
export type
|
|
283
|
+
export type AppsCreateResponse = AppsCreateResponses[keyof AppsCreateResponses];
|
|
284
|
+
export type AppsDeleteData = {
|
|
285
|
+
body: {
|
|
286
|
+
scope: {
|
|
287
|
+
name: string;
|
|
288
|
+
value: {
|
|
289
|
+
[key: string]: Schema0;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
path: {
|
|
294
|
+
appId: string;
|
|
295
|
+
};
|
|
296
|
+
query?: never;
|
|
297
|
+
url: "/apps/{appId}";
|
|
298
|
+
};
|
|
299
|
+
export type AppsDeleteResponses = {
|
|
300
|
+
/**
|
|
301
|
+
* OK
|
|
302
|
+
*/
|
|
303
|
+
200: {
|
|
304
|
+
id: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
export type AppsDeleteResponse = AppsDeleteResponses[keyof AppsDeleteResponses];
|
|
141
308
|
export type AppsUpdateData = {
|
|
142
309
|
body: {
|
|
143
310
|
name: string;
|
|
144
311
|
description: string | null;
|
|
312
|
+
scope: {
|
|
313
|
+
name: string;
|
|
314
|
+
value: {
|
|
315
|
+
[key: string]: Schema0;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
145
318
|
};
|
|
146
319
|
path: {
|
|
147
320
|
appId: string;
|
|
148
321
|
};
|
|
149
|
-
query
|
|
150
|
-
scopeId: string;
|
|
151
|
-
};
|
|
322
|
+
query?: never;
|
|
152
323
|
url: "/apps/{appId}";
|
|
153
324
|
};
|
|
154
325
|
export type AppsUpdateResponses = {
|
|
@@ -159,7 +330,12 @@ export type AppsUpdateResponses = {
|
|
|
159
330
|
id: string;
|
|
160
331
|
publicId: string;
|
|
161
332
|
projectId: string;
|
|
162
|
-
|
|
333
|
+
scope: {
|
|
334
|
+
name: string;
|
|
335
|
+
value: {
|
|
336
|
+
[key: string]: Schema0;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
163
339
|
name: string;
|
|
164
340
|
description: string | null;
|
|
165
341
|
currentDeploymentId: string | null;
|
|
@@ -171,23 +347,47 @@ export type AppsUpdateResponses = {
|
|
|
171
347
|
appId: string;
|
|
172
348
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
173
349
|
clientEntryFileId: string | null;
|
|
350
|
+
logoLightFileId: string | null;
|
|
351
|
+
logoDarkFileId: string | null;
|
|
352
|
+
views: Array<{
|
|
353
|
+
slot: string;
|
|
354
|
+
path: string;
|
|
355
|
+
instances?: true;
|
|
356
|
+
disabled?: true;
|
|
357
|
+
}>;
|
|
358
|
+
logoLightPath: string | null;
|
|
359
|
+
logoDarkPath: string | null;
|
|
174
360
|
createdAt: string;
|
|
175
361
|
updatedAt: string;
|
|
176
362
|
} | null;
|
|
363
|
+
views: Array<{
|
|
364
|
+
slot: string;
|
|
365
|
+
path: string;
|
|
366
|
+
instances?: true;
|
|
367
|
+
disabled?: true;
|
|
368
|
+
}>;
|
|
177
369
|
clientPath?: string;
|
|
370
|
+
logoPaths?: {
|
|
371
|
+
dark?: string;
|
|
372
|
+
light?: string;
|
|
373
|
+
};
|
|
178
374
|
};
|
|
179
375
|
};
|
|
180
376
|
export type AppsUpdateResponse = AppsUpdateResponses[keyof AppsUpdateResponses];
|
|
181
377
|
export type AppsDeployData = {
|
|
182
378
|
body: {
|
|
183
379
|
deploymentId: string;
|
|
380
|
+
scope: {
|
|
381
|
+
name: string;
|
|
382
|
+
value: {
|
|
383
|
+
[key: string]: Schema0;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
184
386
|
};
|
|
185
387
|
path: {
|
|
186
388
|
appId: string;
|
|
187
389
|
};
|
|
188
|
-
query
|
|
189
|
-
scopeId: string;
|
|
190
|
-
};
|
|
390
|
+
query?: never;
|
|
191
391
|
url: "/apps/{appId}/deploy";
|
|
192
392
|
};
|
|
193
393
|
export type AppsDeployResponses = {
|
|
@@ -198,7 +398,12 @@ export type AppsDeployResponses = {
|
|
|
198
398
|
id: string;
|
|
199
399
|
publicId: string;
|
|
200
400
|
projectId: string;
|
|
201
|
-
|
|
401
|
+
scope: {
|
|
402
|
+
name: string;
|
|
403
|
+
value: {
|
|
404
|
+
[key: string]: Schema0;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
202
407
|
name: string;
|
|
203
408
|
description: string | null;
|
|
204
409
|
currentDeploymentId: string | null;
|
|
@@ -210,16 +415,41 @@ export type AppsDeployResponses = {
|
|
|
210
415
|
appId: string;
|
|
211
416
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
212
417
|
clientEntryFileId: string | null;
|
|
418
|
+
logoLightFileId: string | null;
|
|
419
|
+
logoDarkFileId: string | null;
|
|
420
|
+
views: Array<{
|
|
421
|
+
slot: string;
|
|
422
|
+
path: string;
|
|
423
|
+
instances?: true;
|
|
424
|
+
disabled?: true;
|
|
425
|
+
}>;
|
|
426
|
+
logoLightPath: string | null;
|
|
427
|
+
logoDarkPath: string | null;
|
|
213
428
|
createdAt: string;
|
|
214
429
|
updatedAt: string;
|
|
215
430
|
} | null;
|
|
431
|
+
views: Array<{
|
|
432
|
+
slot: string;
|
|
433
|
+
path: string;
|
|
434
|
+
instances?: true;
|
|
435
|
+
disabled?: true;
|
|
436
|
+
}>;
|
|
216
437
|
clientPath?: string;
|
|
438
|
+
logoPaths?: {
|
|
439
|
+
dark?: string;
|
|
440
|
+
light?: string;
|
|
441
|
+
};
|
|
217
442
|
};
|
|
218
443
|
};
|
|
219
444
|
export type AppsDeployResponse = AppsDeployResponses[keyof AppsDeployResponses];
|
|
220
445
|
export type CliAuthApproveData = {
|
|
221
446
|
body: {
|
|
222
|
-
|
|
447
|
+
scope: {
|
|
448
|
+
name: string;
|
|
449
|
+
value: {
|
|
450
|
+
[key: string]: Schema0;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
223
453
|
userCode: string;
|
|
224
454
|
};
|
|
225
455
|
path?: never;
|
|
@@ -270,7 +500,12 @@ export type CliAuthPollResponses = {
|
|
|
270
500
|
status: "denied";
|
|
271
501
|
} | {
|
|
272
502
|
deployToken: string;
|
|
273
|
-
|
|
503
|
+
scope: {
|
|
504
|
+
name: string;
|
|
505
|
+
value: {
|
|
506
|
+
[key: string]: Schema0;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
274
509
|
status: "approved";
|
|
275
510
|
} | {
|
|
276
511
|
status: "expired";
|
|
@@ -309,20 +544,30 @@ export type CliAuthVerifyTokenResponses = {
|
|
|
309
544
|
* OK
|
|
310
545
|
*/
|
|
311
546
|
200: {
|
|
312
|
-
|
|
547
|
+
scope: {
|
|
548
|
+
name: string;
|
|
549
|
+
value: {
|
|
550
|
+
[key: string]: Schema0;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
313
553
|
};
|
|
314
554
|
};
|
|
315
555
|
export type CliAuthVerifyTokenResponse = CliAuthVerifyTokenResponses[keyof CliAuthVerifyTokenResponses];
|
|
316
556
|
export type DeploymentsListData = {
|
|
317
|
-
body
|
|
318
|
-
path?: never;
|
|
319
|
-
query: {
|
|
557
|
+
body: {
|
|
320
558
|
page?: number;
|
|
321
559
|
pageSize?: number;
|
|
322
560
|
appId: string;
|
|
323
|
-
|
|
561
|
+
scopes: Array<{
|
|
562
|
+
name: string;
|
|
563
|
+
value: {
|
|
564
|
+
[key: string]: Schema0;
|
|
565
|
+
};
|
|
566
|
+
}>;
|
|
324
567
|
};
|
|
325
|
-
|
|
568
|
+
path?: never;
|
|
569
|
+
query?: never;
|
|
570
|
+
url: "/deployments/list";
|
|
326
571
|
};
|
|
327
572
|
export type DeploymentsListResponses = {
|
|
328
573
|
/**
|
|
@@ -335,6 +580,16 @@ export type DeploymentsListResponses = {
|
|
|
335
580
|
appId: string;
|
|
336
581
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
337
582
|
clientEntryFileId: string | null;
|
|
583
|
+
logoLightFileId: string | null;
|
|
584
|
+
logoDarkFileId: string | null;
|
|
585
|
+
views: Array<{
|
|
586
|
+
slot: string;
|
|
587
|
+
path: string;
|
|
588
|
+
instances?: true;
|
|
589
|
+
disabled?: true;
|
|
590
|
+
}>;
|
|
591
|
+
logoLightPath: string | null;
|
|
592
|
+
logoDarkPath: string | null;
|
|
338
593
|
createdAt: string;
|
|
339
594
|
updatedAt: string;
|
|
340
595
|
}>;
|
|
@@ -346,19 +601,89 @@ export type DeploymentsListResponses = {
|
|
|
346
601
|
};
|
|
347
602
|
};
|
|
348
603
|
export type DeploymentsListResponse = DeploymentsListResponses[keyof DeploymentsListResponses];
|
|
604
|
+
export type DeploymentsGetData = {
|
|
605
|
+
body: {
|
|
606
|
+
scopes: Array<{
|
|
607
|
+
name: string;
|
|
608
|
+
value: {
|
|
609
|
+
[key: string]: Schema0;
|
|
610
|
+
};
|
|
611
|
+
}>;
|
|
612
|
+
};
|
|
613
|
+
path: {
|
|
614
|
+
deploymentId: string;
|
|
615
|
+
};
|
|
616
|
+
query?: never;
|
|
617
|
+
url: "/deployments/{deploymentId}/lookup";
|
|
618
|
+
};
|
|
619
|
+
export type DeploymentsGetResponses = {
|
|
620
|
+
/**
|
|
621
|
+
* OK
|
|
622
|
+
*/
|
|
623
|
+
200: {
|
|
624
|
+
id: string;
|
|
625
|
+
publicId: string;
|
|
626
|
+
appId: string;
|
|
627
|
+
status: "uploading" | "deploying" | "verifying" | "published";
|
|
628
|
+
clientEntryFileId: string | null;
|
|
629
|
+
logoLightFileId: string | null;
|
|
630
|
+
logoDarkFileId: string | null;
|
|
631
|
+
views: Array<{
|
|
632
|
+
slot: string;
|
|
633
|
+
path: string;
|
|
634
|
+
instances?: true;
|
|
635
|
+
disabled?: true;
|
|
636
|
+
}>;
|
|
637
|
+
logoLightPath: string | null;
|
|
638
|
+
logoDarkPath: string | null;
|
|
639
|
+
createdAt: string;
|
|
640
|
+
updatedAt: string;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
export type DeploymentsGetResponse = DeploymentsGetResponses[keyof DeploymentsGetResponses];
|
|
349
644
|
export type DeploymentsCreateData = {
|
|
350
645
|
body: {
|
|
351
646
|
appId: string;
|
|
352
647
|
assets: [
|
|
353
648
|
{
|
|
354
|
-
contentType: "application/javascript";
|
|
355
|
-
encoding: "utf-8";
|
|
356
649
|
checksum: string;
|
|
357
650
|
contentLength: number;
|
|
651
|
+
contentType: "application/javascript";
|
|
652
|
+
encoding: "utf-8" | "gzip";
|
|
358
653
|
objectKey: "client.js";
|
|
359
654
|
}
|
|
360
655
|
];
|
|
361
|
-
|
|
656
|
+
server?: {
|
|
657
|
+
checksum: string;
|
|
658
|
+
contentLength: number;
|
|
659
|
+
contentType: "application/javascript";
|
|
660
|
+
encoding: "utf-8" | "gzip";
|
|
661
|
+
objectKey: "server.js";
|
|
662
|
+
};
|
|
663
|
+
logos?: {
|
|
664
|
+
dark?: {
|
|
665
|
+
checksum: string;
|
|
666
|
+
contentLength: number;
|
|
667
|
+
contentType: "image/svg+xml" | "image/png" | "image/webp";
|
|
668
|
+
};
|
|
669
|
+
light?: {
|
|
670
|
+
checksum: string;
|
|
671
|
+
contentLength: number;
|
|
672
|
+
contentType: "image/svg+xml" | "image/png" | "image/webp";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
views?: Array<{
|
|
676
|
+
slot: string;
|
|
677
|
+
path: string;
|
|
678
|
+
instances?: true;
|
|
679
|
+
disabled?: true;
|
|
680
|
+
}>;
|
|
681
|
+
scope: {
|
|
682
|
+
name: string;
|
|
683
|
+
value: {
|
|
684
|
+
[key: string]: Schema0;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
362
687
|
};
|
|
363
688
|
path?: never;
|
|
364
689
|
query?: never;
|
|
@@ -369,14 +694,69 @@ export type DeploymentsCreateResponses = {
|
|
|
369
694
|
* OK
|
|
370
695
|
*/
|
|
371
696
|
200: {
|
|
372
|
-
assets:
|
|
373
|
-
{
|
|
697
|
+
assets: Array<{
|
|
698
|
+
file: {
|
|
699
|
+
id: string;
|
|
700
|
+
appDeploymentId: string;
|
|
701
|
+
objectKey: string;
|
|
702
|
+
contentType: "application/javascript" | "image/svg+xml" | "image/png" | "image/webp";
|
|
703
|
+
encoding: "utf-8" | "gzip" | null;
|
|
704
|
+
contentLength: number;
|
|
705
|
+
checksum: string | null;
|
|
706
|
+
status: "uploading" | "verifying" | "verified" | "failed";
|
|
707
|
+
createdAt: string;
|
|
708
|
+
updatedAt: string;
|
|
709
|
+
};
|
|
710
|
+
headers?: {
|
|
711
|
+
[key: string]: string;
|
|
712
|
+
};
|
|
713
|
+
uploadUrl: string;
|
|
714
|
+
}>;
|
|
715
|
+
server?: {
|
|
716
|
+
file: {
|
|
717
|
+
id: string;
|
|
718
|
+
appDeploymentId: string;
|
|
719
|
+
objectKey: string;
|
|
720
|
+
contentType: "application/javascript" | "image/svg+xml" | "image/png" | "image/webp";
|
|
721
|
+
encoding: "utf-8" | "gzip" | null;
|
|
722
|
+
contentLength: number;
|
|
723
|
+
checksum: string | null;
|
|
724
|
+
status: "uploading" | "verifying" | "verified" | "failed";
|
|
725
|
+
createdAt: string;
|
|
726
|
+
updatedAt: string;
|
|
727
|
+
};
|
|
728
|
+
headers?: {
|
|
729
|
+
[key: string]: string;
|
|
730
|
+
};
|
|
731
|
+
uploadUrl: string;
|
|
732
|
+
};
|
|
733
|
+
deployment: {
|
|
734
|
+
id: string;
|
|
735
|
+
publicId: string;
|
|
736
|
+
appId: string;
|
|
737
|
+
status: "uploading" | "deploying" | "verifying" | "published";
|
|
738
|
+
clientEntryFileId: string | null;
|
|
739
|
+
logoLightFileId: string | null;
|
|
740
|
+
logoDarkFileId: string | null;
|
|
741
|
+
views: Array<{
|
|
742
|
+
slot: string;
|
|
743
|
+
path: string;
|
|
744
|
+
instances?: true;
|
|
745
|
+
disabled?: true;
|
|
746
|
+
}>;
|
|
747
|
+
logoLightPath: string | null;
|
|
748
|
+
logoDarkPath: string | null;
|
|
749
|
+
createdAt: string;
|
|
750
|
+
updatedAt: string;
|
|
751
|
+
};
|
|
752
|
+
logos?: {
|
|
753
|
+
dark?: {
|
|
374
754
|
file: {
|
|
375
755
|
id: string;
|
|
376
756
|
appDeploymentId: string;
|
|
377
757
|
objectKey: string;
|
|
378
|
-
contentType: "
|
|
379
|
-
encoding: "utf-8";
|
|
758
|
+
contentType: "image/svg+xml" | "image/png" | "image/webp";
|
|
759
|
+
encoding: "utf-8" | "gzip" | null;
|
|
380
760
|
contentLength: number;
|
|
381
761
|
checksum: string | null;
|
|
382
762
|
status: "uploading" | "verifying" | "verified" | "failed";
|
|
@@ -386,32 +766,47 @@ export type DeploymentsCreateResponses = {
|
|
|
386
766
|
headers?: {
|
|
387
767
|
[key: string]: string;
|
|
388
768
|
};
|
|
389
|
-
uploadUrl
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
769
|
+
uploadUrl?: string;
|
|
770
|
+
};
|
|
771
|
+
light?: {
|
|
772
|
+
file: {
|
|
773
|
+
id: string;
|
|
774
|
+
appDeploymentId: string;
|
|
775
|
+
objectKey: string;
|
|
776
|
+
contentType: "image/svg+xml" | "image/png" | "image/webp";
|
|
777
|
+
encoding: "utf-8" | "gzip" | null;
|
|
778
|
+
contentLength: number;
|
|
779
|
+
checksum: string | null;
|
|
780
|
+
status: "uploading" | "verifying" | "verified" | "failed";
|
|
781
|
+
createdAt: string;
|
|
782
|
+
updatedAt: string;
|
|
783
|
+
};
|
|
784
|
+
headers?: {
|
|
785
|
+
[key: string]: string;
|
|
786
|
+
};
|
|
787
|
+
uploadUrl?: string;
|
|
788
|
+
};
|
|
400
789
|
};
|
|
401
790
|
};
|
|
402
791
|
};
|
|
403
792
|
export type DeploymentsCreateResponse = DeploymentsCreateResponses[keyof DeploymentsCreateResponses];
|
|
404
|
-
export type
|
|
405
|
-
body
|
|
793
|
+
export type DeploymentsPublishData = {
|
|
794
|
+
body: {
|
|
795
|
+
scope: {
|
|
796
|
+
name: string;
|
|
797
|
+
value: {
|
|
798
|
+
[key: string]: Schema0;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
rollout?: boolean;
|
|
802
|
+
};
|
|
406
803
|
path: {
|
|
407
804
|
deploymentId: string;
|
|
408
805
|
};
|
|
409
|
-
query
|
|
410
|
-
scopeId: string;
|
|
411
|
-
};
|
|
806
|
+
query?: never;
|
|
412
807
|
url: "/deployments/{deploymentId}";
|
|
413
808
|
};
|
|
414
|
-
export type
|
|
809
|
+
export type DeploymentsPublishResponses = {
|
|
415
810
|
/**
|
|
416
811
|
* OK
|
|
417
812
|
*/
|
|
@@ -421,35 +816,205 @@ export type DeploymentsGetResponses = {
|
|
|
421
816
|
appId: string;
|
|
422
817
|
status: "uploading" | "deploying" | "verifying" | "published";
|
|
423
818
|
clientEntryFileId: string | null;
|
|
819
|
+
logoLightFileId: string | null;
|
|
820
|
+
logoDarkFileId: string | null;
|
|
821
|
+
views: Array<{
|
|
822
|
+
slot: string;
|
|
823
|
+
path: string;
|
|
824
|
+
instances?: true;
|
|
825
|
+
disabled?: true;
|
|
826
|
+
}>;
|
|
827
|
+
logoLightPath: string | null;
|
|
828
|
+
logoDarkPath: string | null;
|
|
424
829
|
createdAt: string;
|
|
425
830
|
updatedAt: string;
|
|
426
831
|
};
|
|
427
832
|
};
|
|
428
|
-
export type
|
|
429
|
-
export type
|
|
833
|
+
export type DeploymentsPublishResponse = DeploymentsPublishResponses[keyof DeploymentsPublishResponses];
|
|
834
|
+
export type DeploymentsRuntimeData = {
|
|
430
835
|
body: {
|
|
431
|
-
|
|
432
|
-
rollout?: boolean;
|
|
836
|
+
[key: string]: unknown;
|
|
433
837
|
};
|
|
434
838
|
path: {
|
|
435
|
-
|
|
839
|
+
appId: string;
|
|
436
840
|
};
|
|
437
841
|
query?: never;
|
|
438
|
-
url: "/
|
|
842
|
+
url: "/apps/{appId}/runtime";
|
|
439
843
|
};
|
|
440
|
-
export type
|
|
844
|
+
export type DeploymentsRuntimeResponses = {
|
|
441
845
|
/**
|
|
442
846
|
* OK
|
|
443
847
|
*/
|
|
444
848
|
200: {
|
|
445
|
-
|
|
446
|
-
publicId: string;
|
|
849
|
+
projectId: string;
|
|
447
850
|
appId: string;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
851
|
+
deploymentId: string;
|
|
852
|
+
objectKey: string;
|
|
853
|
+
checksum: string;
|
|
854
|
+
contentLength: number;
|
|
855
|
+
contentEncoding?: "gzip";
|
|
452
856
|
};
|
|
453
857
|
};
|
|
454
|
-
export type
|
|
455
|
-
|
|
858
|
+
export type DeploymentsRuntimeResponse = DeploymentsRuntimeResponses[keyof DeploymentsRuntimeResponses];
|
|
859
|
+
export type PreviewStartData = {
|
|
860
|
+
body: {
|
|
861
|
+
appId: string;
|
|
862
|
+
deployToken: string;
|
|
863
|
+
replaceActive?: boolean;
|
|
864
|
+
};
|
|
865
|
+
path?: never;
|
|
866
|
+
query?: never;
|
|
867
|
+
url: "/preview/start";
|
|
868
|
+
};
|
|
869
|
+
export type PreviewStartResponses = {
|
|
870
|
+
/**
|
|
871
|
+
* OK
|
|
872
|
+
*/
|
|
873
|
+
200: {
|
|
874
|
+
expiresAt: string;
|
|
875
|
+
sessionId: string;
|
|
876
|
+
tunnelToken: string;
|
|
877
|
+
tunnelUrl: string;
|
|
878
|
+
shareId: string;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
export type PreviewStartResponse = PreviewStartResponses[keyof PreviewStartResponses];
|
|
882
|
+
export type PreviewStopData = {
|
|
883
|
+
body: {
|
|
884
|
+
deployToken: string;
|
|
885
|
+
};
|
|
886
|
+
path: {
|
|
887
|
+
sessionId: string;
|
|
888
|
+
};
|
|
889
|
+
query?: never;
|
|
890
|
+
url: "/preview/{sessionId}/stop";
|
|
891
|
+
};
|
|
892
|
+
export type PreviewStopResponses = {
|
|
893
|
+
/**
|
|
894
|
+
* OK
|
|
895
|
+
*/
|
|
896
|
+
200: {
|
|
897
|
+
[key: string]: never;
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
export type PreviewStopResponse = PreviewStopResponses[keyof PreviewStopResponses];
|
|
901
|
+
export type PreviewInvitationData = {
|
|
902
|
+
body?: never;
|
|
903
|
+
path: {
|
|
904
|
+
shareId: string;
|
|
905
|
+
};
|
|
906
|
+
query?: never;
|
|
907
|
+
url: "/preview/shares/{shareId}";
|
|
908
|
+
};
|
|
909
|
+
export type PreviewInvitationResponses = {
|
|
910
|
+
/**
|
|
911
|
+
* OK
|
|
912
|
+
*/
|
|
913
|
+
200: {
|
|
914
|
+
appName: string;
|
|
915
|
+
expiresAt: string;
|
|
916
|
+
sessionId: string;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
export type PreviewInvitationResponse = PreviewInvitationResponses[keyof PreviewInvitationResponses];
|
|
920
|
+
export type PreviewAcceptData = {
|
|
921
|
+
body: {
|
|
922
|
+
scope: {
|
|
923
|
+
name: string;
|
|
924
|
+
value: {
|
|
925
|
+
[key: string]: Schema0;
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
path: {
|
|
930
|
+
shareId: string;
|
|
931
|
+
};
|
|
932
|
+
query?: never;
|
|
933
|
+
url: "/preview/shares/{shareId}/accept";
|
|
934
|
+
};
|
|
935
|
+
export type PreviewAcceptResponses = {
|
|
936
|
+
/**
|
|
937
|
+
* OK
|
|
938
|
+
*/
|
|
939
|
+
200: {
|
|
940
|
+
grantId: string;
|
|
941
|
+
sessionId: string;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
export type PreviewAcceptResponse = PreviewAcceptResponses[keyof PreviewAcceptResponses];
|
|
945
|
+
export type PreviewAcceptedData = {
|
|
946
|
+
body: {
|
|
947
|
+
grantIds: Array<string>;
|
|
948
|
+
scopes: Array<{
|
|
949
|
+
name: string;
|
|
950
|
+
value: {
|
|
951
|
+
[key: string]: Schema0;
|
|
952
|
+
};
|
|
953
|
+
}>;
|
|
954
|
+
};
|
|
955
|
+
path?: never;
|
|
956
|
+
query?: never;
|
|
957
|
+
url: "/preview/grants/resolve";
|
|
958
|
+
};
|
|
959
|
+
export type PreviewAcceptedResponses = {
|
|
960
|
+
/**
|
|
961
|
+
* OK
|
|
962
|
+
*/
|
|
963
|
+
200: {
|
|
964
|
+
items: Array<{
|
|
965
|
+
app: {
|
|
966
|
+
id: string;
|
|
967
|
+
publicId: string;
|
|
968
|
+
projectId: string;
|
|
969
|
+
scope: {
|
|
970
|
+
name: string;
|
|
971
|
+
value: {
|
|
972
|
+
[key: string]: Schema0;
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
name: string;
|
|
976
|
+
description: string | null;
|
|
977
|
+
currentDeploymentId: string | null;
|
|
978
|
+
createdAt: string;
|
|
979
|
+
updatedAt: string;
|
|
980
|
+
currentDeployment: {
|
|
981
|
+
id: string;
|
|
982
|
+
publicId: string;
|
|
983
|
+
appId: string;
|
|
984
|
+
status: "uploading" | "deploying" | "verifying" | "published";
|
|
985
|
+
clientEntryFileId: string | null;
|
|
986
|
+
logoLightFileId: string | null;
|
|
987
|
+
logoDarkFileId: string | null;
|
|
988
|
+
views: Array<{
|
|
989
|
+
slot: string;
|
|
990
|
+
path: string;
|
|
991
|
+
instances?: true;
|
|
992
|
+
disabled?: true;
|
|
993
|
+
}>;
|
|
994
|
+
logoLightPath: string | null;
|
|
995
|
+
logoDarkPath: string | null;
|
|
996
|
+
createdAt: string;
|
|
997
|
+
updatedAt: string;
|
|
998
|
+
} | null;
|
|
999
|
+
views: Array<{
|
|
1000
|
+
slot: string;
|
|
1001
|
+
path: string;
|
|
1002
|
+
instances?: true;
|
|
1003
|
+
disabled?: true;
|
|
1004
|
+
}>;
|
|
1005
|
+
clientPath?: string;
|
|
1006
|
+
logoPaths?: {
|
|
1007
|
+
dark?: string;
|
|
1008
|
+
light?: string;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
preview: {
|
|
1012
|
+
sessionId: string;
|
|
1013
|
+
expiresAt: string;
|
|
1014
|
+
websocketUrl: string;
|
|
1015
|
+
token: string;
|
|
1016
|
+
};
|
|
1017
|
+
}>;
|
|
1018
|
+
};
|
|
1019
|
+
};
|
|
1020
|
+
export type PreviewAcceptedResponse = PreviewAcceptedResponses[keyof PreviewAcceptedResponses];
|