@anuragpal02/zcl-contracts 0.15.0 → 0.17.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.
- package/dist/admin.d.ts +390 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +165 -0
- package/dist/assets.d.ts +8 -8
- package/dist/client.d.ts +31 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +89 -0
- package/dist/generation.d.ts +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/projects.d.ts +3 -3
- package/package.json +1 -1
package/dist/admin.d.ts
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const creditLedgerTypeSchema: z.ZodEnum<{
|
|
3
|
+
grant: "grant";
|
|
4
|
+
reserve: "reserve";
|
|
5
|
+
capture: "capture";
|
|
6
|
+
release: "release";
|
|
7
|
+
refund: "refund";
|
|
8
|
+
adjustment: "adjustment";
|
|
9
|
+
}>;
|
|
10
|
+
export declare const adminMeResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
userId: z.ZodString;
|
|
13
|
+
email: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
isPlatformAdmin: z.ZodLiteral<true>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const adminUserSummarySchema: z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
email: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
disabledAt: z.ZodNullable<z.ZodString>;
|
|
23
|
+
createdAt: z.ZodString;
|
|
24
|
+
workspaceCount: z.ZodNumber;
|
|
25
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const listAdminUsersResponseSchema: z.ZodObject<{
|
|
28
|
+
data: z.ZodObject<{
|
|
29
|
+
users: z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
email: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
disabledAt: z.ZodNullable<z.ZodString>;
|
|
34
|
+
createdAt: z.ZodString;
|
|
35
|
+
workspaceCount: z.ZodNumber;
|
|
36
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export declare const adminWorkspaceCreditSchema: z.ZodObject<{
|
|
41
|
+
workspaceId: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
role: z.ZodEnum<{
|
|
44
|
+
owner: "owner";
|
|
45
|
+
admin: "admin";
|
|
46
|
+
artist: "artist";
|
|
47
|
+
viewer: "viewer";
|
|
48
|
+
}>;
|
|
49
|
+
balance: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const adminUserDetailResponseSchema: z.ZodObject<{
|
|
52
|
+
data: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
email: z.ZodString;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
disabledAt: z.ZodNullable<z.ZodString>;
|
|
57
|
+
createdAt: z.ZodString;
|
|
58
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
59
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
60
|
+
workspaceId: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
role: z.ZodEnum<{
|
|
63
|
+
owner: "owner";
|
|
64
|
+
admin: "admin";
|
|
65
|
+
artist: "artist";
|
|
66
|
+
viewer: "viewer";
|
|
67
|
+
}>;
|
|
68
|
+
balance: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const adminLedgerEntrySchema: z.ZodObject<{
|
|
73
|
+
type: z.ZodEnum<{
|
|
74
|
+
grant: "grant";
|
|
75
|
+
reserve: "reserve";
|
|
76
|
+
capture: "capture";
|
|
77
|
+
release: "release";
|
|
78
|
+
refund: "refund";
|
|
79
|
+
adjustment: "adjustment";
|
|
80
|
+
}>;
|
|
81
|
+
amount: z.ZodNumber;
|
|
82
|
+
balanceAfter: z.ZodNumber;
|
|
83
|
+
createdAt: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const adminWorkspaceDetailResponseSchema: z.ZodObject<{
|
|
86
|
+
data: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
type: z.ZodEnum<{
|
|
90
|
+
personal: "personal";
|
|
91
|
+
organization: "organization";
|
|
92
|
+
}>;
|
|
93
|
+
balance: z.ZodNumber;
|
|
94
|
+
members: z.ZodArray<z.ZodObject<{
|
|
95
|
+
userId: z.ZodString;
|
|
96
|
+
email: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
role: z.ZodEnum<{
|
|
99
|
+
owner: "owner";
|
|
100
|
+
admin: "admin";
|
|
101
|
+
artist: "artist";
|
|
102
|
+
viewer: "viewer";
|
|
103
|
+
}>;
|
|
104
|
+
status: z.ZodEnum<{
|
|
105
|
+
active: "active";
|
|
106
|
+
invited: "invited";
|
|
107
|
+
disabled: "disabled";
|
|
108
|
+
}>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
recentLedger: z.ZodArray<z.ZodObject<{
|
|
111
|
+
type: z.ZodEnum<{
|
|
112
|
+
grant: "grant";
|
|
113
|
+
reserve: "reserve";
|
|
114
|
+
capture: "capture";
|
|
115
|
+
release: "release";
|
|
116
|
+
refund: "refund";
|
|
117
|
+
adjustment: "adjustment";
|
|
118
|
+
}>;
|
|
119
|
+
amount: z.ZodNumber;
|
|
120
|
+
balanceAfter: z.ZodNumber;
|
|
121
|
+
createdAt: z.ZodString;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const adminAdjustCreditsRequestSchema: z.ZodObject<{
|
|
126
|
+
amount: z.ZodNumber;
|
|
127
|
+
reason: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export declare const adminAdjustCreditsResponseSchema: z.ZodObject<{
|
|
130
|
+
data: z.ZodObject<{
|
|
131
|
+
balance: z.ZodNumber;
|
|
132
|
+
ledgerEntry: z.ZodObject<{
|
|
133
|
+
type: z.ZodEnum<{
|
|
134
|
+
grant: "grant";
|
|
135
|
+
reserve: "reserve";
|
|
136
|
+
capture: "capture";
|
|
137
|
+
release: "release";
|
|
138
|
+
refund: "refund";
|
|
139
|
+
adjustment: "adjustment";
|
|
140
|
+
}>;
|
|
141
|
+
amount: z.ZodNumber;
|
|
142
|
+
balanceAfter: z.ZodNumber;
|
|
143
|
+
createdAt: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export declare const setPlatformAdminRequestSchema: z.ZodObject<{
|
|
148
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export declare const setPlatformAdminResponseSchema: z.ZodObject<{
|
|
151
|
+
data: z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
email: z.ZodString;
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
disabledAt: z.ZodNullable<z.ZodString>;
|
|
156
|
+
createdAt: z.ZodString;
|
|
157
|
+
workspaceCount: z.ZodNumber;
|
|
158
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export declare const setUserDisabledRequestSchema: z.ZodObject<{
|
|
162
|
+
disabled: z.ZodBoolean;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export declare const setUserDisabledResponseSchema: z.ZodObject<{
|
|
165
|
+
data: z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
email: z.ZodString;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
disabledAt: z.ZodNullable<z.ZodString>;
|
|
170
|
+
createdAt: z.ZodString;
|
|
171
|
+
workspaceCount: z.ZodNumber;
|
|
172
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export declare const adminAuditEntrySchema: z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
actorUserId: z.ZodString;
|
|
178
|
+
actorEmail: z.ZodNullable<z.ZodString>;
|
|
179
|
+
action: z.ZodString;
|
|
180
|
+
targetType: z.ZodString;
|
|
181
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
182
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
183
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
184
|
+
createdAt: z.ZodString;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export declare const listAdminAuditResponseSchema: z.ZodObject<{
|
|
187
|
+
data: z.ZodObject<{
|
|
188
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
actorUserId: z.ZodString;
|
|
191
|
+
actorEmail: z.ZodNullable<z.ZodString>;
|
|
192
|
+
action: z.ZodString;
|
|
193
|
+
targetType: z.ZodString;
|
|
194
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
195
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
197
|
+
createdAt: z.ZodString;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const adminJobStatusSchema: z.ZodEnum<{
|
|
202
|
+
queued: "queued";
|
|
203
|
+
running: "running";
|
|
204
|
+
succeeded: "succeeded";
|
|
205
|
+
failed: "failed";
|
|
206
|
+
canceled: "canceled";
|
|
207
|
+
}>;
|
|
208
|
+
export declare const adminJobSummarySchema: z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
workspaceId: z.ZodString;
|
|
211
|
+
projectId: z.ZodString;
|
|
212
|
+
type: z.ZodEnum<{
|
|
213
|
+
"image.generate": "image.generate";
|
|
214
|
+
"prompt.enhance": "prompt.enhance";
|
|
215
|
+
"image.edit": "image.edit";
|
|
216
|
+
"image.mask": "image.mask";
|
|
217
|
+
"image.export": "image.export";
|
|
218
|
+
"image.panel": "image.panel";
|
|
219
|
+
"video.loop": "video.loop";
|
|
220
|
+
"video.upscale": "video.upscale";
|
|
221
|
+
}>;
|
|
222
|
+
status: z.ZodEnum<{
|
|
223
|
+
queued: "queued";
|
|
224
|
+
running: "running";
|
|
225
|
+
succeeded: "succeeded";
|
|
226
|
+
failed: "failed";
|
|
227
|
+
canceled: "canceled";
|
|
228
|
+
}>;
|
|
229
|
+
provider: z.ZodString;
|
|
230
|
+
reservedCredits: z.ZodNumber;
|
|
231
|
+
createdByUserId: z.ZodString;
|
|
232
|
+
createdAt: z.ZodString;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
export declare const listAdminJobsResponseSchema: z.ZodObject<{
|
|
235
|
+
data: z.ZodObject<{
|
|
236
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
237
|
+
id: z.ZodString;
|
|
238
|
+
workspaceId: z.ZodString;
|
|
239
|
+
projectId: z.ZodString;
|
|
240
|
+
type: z.ZodEnum<{
|
|
241
|
+
"image.generate": "image.generate";
|
|
242
|
+
"prompt.enhance": "prompt.enhance";
|
|
243
|
+
"image.edit": "image.edit";
|
|
244
|
+
"image.mask": "image.mask";
|
|
245
|
+
"image.export": "image.export";
|
|
246
|
+
"image.panel": "image.panel";
|
|
247
|
+
"video.loop": "video.loop";
|
|
248
|
+
"video.upscale": "video.upscale";
|
|
249
|
+
}>;
|
|
250
|
+
status: z.ZodEnum<{
|
|
251
|
+
queued: "queued";
|
|
252
|
+
running: "running";
|
|
253
|
+
succeeded: "succeeded";
|
|
254
|
+
failed: "failed";
|
|
255
|
+
canceled: "canceled";
|
|
256
|
+
}>;
|
|
257
|
+
provider: z.ZodString;
|
|
258
|
+
reservedCredits: z.ZodNumber;
|
|
259
|
+
createdByUserId: z.ZodString;
|
|
260
|
+
createdAt: z.ZodString;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export declare const adminJobStepSchema: z.ZodObject<{
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
status: z.ZodString;
|
|
267
|
+
attempt: z.ZodNumber;
|
|
268
|
+
providerRequestId: z.ZodNullable<z.ZodString>;
|
|
269
|
+
providerJobId: z.ZodNullable<z.ZodString>;
|
|
270
|
+
error: z.ZodNullable<z.ZodString>;
|
|
271
|
+
createdAt: z.ZodString;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
export declare const adminJobEventSchema: z.ZodObject<{
|
|
274
|
+
source: z.ZodString;
|
|
275
|
+
visibility: z.ZodString;
|
|
276
|
+
type: z.ZodString;
|
|
277
|
+
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
278
|
+
createdAt: z.ZodString;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
export declare const adminJobDetailResponseSchema: z.ZodObject<{
|
|
281
|
+
data: z.ZodObject<{
|
|
282
|
+
job: z.ZodObject<{
|
|
283
|
+
id: z.ZodString;
|
|
284
|
+
workspaceId: z.ZodString;
|
|
285
|
+
projectId: z.ZodString;
|
|
286
|
+
type: z.ZodEnum<{
|
|
287
|
+
"image.generate": "image.generate";
|
|
288
|
+
"prompt.enhance": "prompt.enhance";
|
|
289
|
+
"image.edit": "image.edit";
|
|
290
|
+
"image.mask": "image.mask";
|
|
291
|
+
"image.export": "image.export";
|
|
292
|
+
"image.panel": "image.panel";
|
|
293
|
+
"video.loop": "video.loop";
|
|
294
|
+
"video.upscale": "video.upscale";
|
|
295
|
+
}>;
|
|
296
|
+
status: z.ZodEnum<{
|
|
297
|
+
queued: "queued";
|
|
298
|
+
running: "running";
|
|
299
|
+
succeeded: "succeeded";
|
|
300
|
+
failed: "failed";
|
|
301
|
+
canceled: "canceled";
|
|
302
|
+
}>;
|
|
303
|
+
provider: z.ZodString;
|
|
304
|
+
reservedCredits: z.ZodNumber;
|
|
305
|
+
createdByUserId: z.ZodString;
|
|
306
|
+
createdAt: z.ZodString;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
309
|
+
name: z.ZodString;
|
|
310
|
+
status: z.ZodString;
|
|
311
|
+
attempt: z.ZodNumber;
|
|
312
|
+
providerRequestId: z.ZodNullable<z.ZodString>;
|
|
313
|
+
providerJobId: z.ZodNullable<z.ZodString>;
|
|
314
|
+
error: z.ZodNullable<z.ZodString>;
|
|
315
|
+
createdAt: z.ZodString;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
events: z.ZodArray<z.ZodObject<{
|
|
318
|
+
source: z.ZodString;
|
|
319
|
+
visibility: z.ZodString;
|
|
320
|
+
type: z.ZodString;
|
|
321
|
+
data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
322
|
+
createdAt: z.ZodString;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
export declare const adminUsageResponseSchema: z.ZodObject<{
|
|
327
|
+
data: z.ZodObject<{
|
|
328
|
+
periodDays: z.ZodNumber;
|
|
329
|
+
ledgerTotals: z.ZodObject<{
|
|
330
|
+
grant: z.ZodNumber;
|
|
331
|
+
reserve: z.ZodNumber;
|
|
332
|
+
capture: z.ZodNumber;
|
|
333
|
+
release: z.ZodNumber;
|
|
334
|
+
refund: z.ZodNumber;
|
|
335
|
+
adjustment: z.ZodNumber;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
jobsByType: z.ZodArray<z.ZodObject<{
|
|
338
|
+
type: z.ZodEnum<{
|
|
339
|
+
"image.generate": "image.generate";
|
|
340
|
+
"prompt.enhance": "prompt.enhance";
|
|
341
|
+
"image.edit": "image.edit";
|
|
342
|
+
"image.mask": "image.mask";
|
|
343
|
+
"image.export": "image.export";
|
|
344
|
+
"image.panel": "image.panel";
|
|
345
|
+
"video.loop": "video.loop";
|
|
346
|
+
"video.upscale": "video.upscale";
|
|
347
|
+
}>;
|
|
348
|
+
count: z.ZodNumber;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
jobsByStatus: z.ZodArray<z.ZodObject<{
|
|
351
|
+
status: z.ZodEnum<{
|
|
352
|
+
queued: "queued";
|
|
353
|
+
running: "running";
|
|
354
|
+
succeeded: "succeeded";
|
|
355
|
+
failed: "failed";
|
|
356
|
+
canceled: "canceled";
|
|
357
|
+
}>;
|
|
358
|
+
count: z.ZodNumber;
|
|
359
|
+
}, z.core.$strip>>;
|
|
360
|
+
topWorkspacesBySpend: z.ZodArray<z.ZodObject<{
|
|
361
|
+
workspaceId: z.ZodString;
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
capturedCredits: z.ZodNumber;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export type CreditLedgerType = z.infer<typeof creditLedgerTypeSchema>;
|
|
368
|
+
export type AdminMeResponse = z.infer<typeof adminMeResponseSchema>;
|
|
369
|
+
export type AdminUserSummary = z.infer<typeof adminUserSummarySchema>;
|
|
370
|
+
export type ListAdminUsersResponse = z.infer<typeof listAdminUsersResponseSchema>;
|
|
371
|
+
export type AdminWorkspaceCredit = z.infer<typeof adminWorkspaceCreditSchema>;
|
|
372
|
+
export type AdminUserDetailResponse = z.infer<typeof adminUserDetailResponseSchema>;
|
|
373
|
+
export type AdminLedgerEntry = z.infer<typeof adminLedgerEntrySchema>;
|
|
374
|
+
export type AdminWorkspaceDetailResponse = z.infer<typeof adminWorkspaceDetailResponseSchema>;
|
|
375
|
+
export type AdminAdjustCreditsRequest = z.input<typeof adminAdjustCreditsRequestSchema>;
|
|
376
|
+
export type AdminAdjustCreditsResponse = z.infer<typeof adminAdjustCreditsResponseSchema>;
|
|
377
|
+
export type SetPlatformAdminRequest = z.input<typeof setPlatformAdminRequestSchema>;
|
|
378
|
+
export type SetPlatformAdminResponse = z.infer<typeof setPlatformAdminResponseSchema>;
|
|
379
|
+
export type SetUserDisabledRequest = z.input<typeof setUserDisabledRequestSchema>;
|
|
380
|
+
export type SetUserDisabledResponse = z.infer<typeof setUserDisabledResponseSchema>;
|
|
381
|
+
export type AdminAuditEntry = z.infer<typeof adminAuditEntrySchema>;
|
|
382
|
+
export type ListAdminAuditResponse = z.infer<typeof listAdminAuditResponseSchema>;
|
|
383
|
+
export type AdminJobStatus = z.infer<typeof adminJobStatusSchema>;
|
|
384
|
+
export type AdminJobSummary = z.infer<typeof adminJobSummarySchema>;
|
|
385
|
+
export type ListAdminJobsResponse = z.infer<typeof listAdminJobsResponseSchema>;
|
|
386
|
+
export type AdminJobStep = z.infer<typeof adminJobStepSchema>;
|
|
387
|
+
export type AdminJobEvent = z.infer<typeof adminJobEventSchema>;
|
|
388
|
+
export type AdminJobDetailResponse = z.infer<typeof adminJobDetailResponseSchema>;
|
|
389
|
+
export type AdminUsageResponse = z.infer<typeof adminUsageResponseSchema>;
|
|
390
|
+
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAA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CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACnE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACjF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACnE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
package/dist/admin.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { apiSuccessSchema, idSchema, isoDateSchema } from './common.js';
|
|
3
|
+
import { generationJobTypeSchema } from './generation.js';
|
|
4
|
+
import { workspaceMembershipStatusSchema, workspaceRoleSchema, workspaceTypeSchema } from './workspaces.js';
|
|
5
|
+
// The credit-ledger entry kinds: lifecycle of a workspace's credits.
|
|
6
|
+
// `adjustment` is the type recorded by an admin manual grant/deduct.
|
|
7
|
+
export const creditLedgerTypeSchema = z.enum([
|
|
8
|
+
'grant',
|
|
9
|
+
'reserve',
|
|
10
|
+
'capture',
|
|
11
|
+
'release',
|
|
12
|
+
'refund',
|
|
13
|
+
'adjustment'
|
|
14
|
+
]);
|
|
15
|
+
// `/admin/me` — confirms the caller is a platform admin (literal `true`, never `false`).
|
|
16
|
+
export const adminMeResponseSchema = apiSuccessSchema(z.object({
|
|
17
|
+
userId: idSchema,
|
|
18
|
+
email: z.string().email(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
isPlatformAdmin: z.literal(true)
|
|
21
|
+
}));
|
|
22
|
+
export const adminUserSummarySchema = z.object({
|
|
23
|
+
id: idSchema,
|
|
24
|
+
email: z.string().email(),
|
|
25
|
+
name: z.string(),
|
|
26
|
+
disabledAt: isoDateSchema.nullable(),
|
|
27
|
+
createdAt: isoDateSchema,
|
|
28
|
+
workspaceCount: z.number().int(),
|
|
29
|
+
isPlatformAdmin: z.boolean()
|
|
30
|
+
});
|
|
31
|
+
export const listAdminUsersResponseSchema = apiSuccessSchema(z.object({
|
|
32
|
+
users: z.array(adminUserSummarySchema)
|
|
33
|
+
}));
|
|
34
|
+
// A workspace the user belongs to, enriched with their role + the workspace's balance.
|
|
35
|
+
export const adminWorkspaceCreditSchema = z.object({
|
|
36
|
+
workspaceId: idSchema,
|
|
37
|
+
name: z.string(),
|
|
38
|
+
role: workspaceRoleSchema,
|
|
39
|
+
balance: z.number().int()
|
|
40
|
+
});
|
|
41
|
+
export const adminUserDetailResponseSchema = apiSuccessSchema(z.object({
|
|
42
|
+
id: idSchema,
|
|
43
|
+
email: z.string().email(),
|
|
44
|
+
name: z.string(),
|
|
45
|
+
disabledAt: isoDateSchema.nullable(),
|
|
46
|
+
createdAt: isoDateSchema,
|
|
47
|
+
isPlatformAdmin: z.boolean(),
|
|
48
|
+
workspaces: z.array(adminWorkspaceCreditSchema)
|
|
49
|
+
}));
|
|
50
|
+
export const adminLedgerEntrySchema = z.object({
|
|
51
|
+
type: creditLedgerTypeSchema,
|
|
52
|
+
amount: z.number().int(),
|
|
53
|
+
balanceAfter: z.number().int(),
|
|
54
|
+
createdAt: isoDateSchema
|
|
55
|
+
});
|
|
56
|
+
export const adminWorkspaceDetailResponseSchema = apiSuccessSchema(z.object({
|
|
57
|
+
id: idSchema,
|
|
58
|
+
name: z.string(),
|
|
59
|
+
type: workspaceTypeSchema,
|
|
60
|
+
balance: z.number().int(),
|
|
61
|
+
members: z.array(z.object({
|
|
62
|
+
userId: idSchema,
|
|
63
|
+
email: z.string().email(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
role: workspaceRoleSchema,
|
|
66
|
+
status: workspaceMembershipStatusSchema
|
|
67
|
+
})),
|
|
68
|
+
recentLedger: z.array(adminLedgerEntrySchema)
|
|
69
|
+
}));
|
|
70
|
+
// Manual credit adjustment: positive = grant, negative = deduct; never zero.
|
|
71
|
+
export const adminAdjustCreditsRequestSchema = z.object({
|
|
72
|
+
amount: z.number().int().refine((n) => n !== 0, 'amount must be non-zero'),
|
|
73
|
+
reason: z.string().min(1).max(500)
|
|
74
|
+
});
|
|
75
|
+
export const adminAdjustCreditsResponseSchema = apiSuccessSchema(z.object({
|
|
76
|
+
balance: z.number().int(),
|
|
77
|
+
ledgerEntry: adminLedgerEntrySchema
|
|
78
|
+
}));
|
|
79
|
+
export const setPlatformAdminRequestSchema = z.object({
|
|
80
|
+
isPlatformAdmin: z.boolean()
|
|
81
|
+
});
|
|
82
|
+
export const setPlatformAdminResponseSchema = apiSuccessSchema(adminUserSummarySchema);
|
|
83
|
+
// Disable / re-enable a user (soft lock). Echoes back the updated summary so the panel
|
|
84
|
+
// can re-render the row without a refetch.
|
|
85
|
+
export const setUserDisabledRequestSchema = z.object({
|
|
86
|
+
disabled: z.boolean()
|
|
87
|
+
});
|
|
88
|
+
export const setUserDisabledResponseSchema = apiSuccessSchema(adminUserSummarySchema);
|
|
89
|
+
// One row of the platform-admin audit trail. `metadata` is the free-form action payload
|
|
90
|
+
// (e.g. the credit delta + reason); all the optional context columns are nullable.
|
|
91
|
+
export const adminAuditEntrySchema = z.object({
|
|
92
|
+
id: idSchema,
|
|
93
|
+
actorUserId: idSchema,
|
|
94
|
+
actorEmail: z.string().nullable(),
|
|
95
|
+
action: z.string(),
|
|
96
|
+
targetType: z.string(),
|
|
97
|
+
targetId: z.string().nullable(),
|
|
98
|
+
metadata: z.record(z.string(), z.unknown()).nullable(),
|
|
99
|
+
requestId: z.string().nullable(),
|
|
100
|
+
createdAt: isoDateSchema
|
|
101
|
+
});
|
|
102
|
+
export const listAdminAuditResponseSchema = apiSuccessSchema(z.object({
|
|
103
|
+
entries: z.array(adminAuditEntrySchema)
|
|
104
|
+
}));
|
|
105
|
+
export const adminJobStatusSchema = z.enum(['queued', 'running', 'succeeded', 'failed', 'canceled']);
|
|
106
|
+
// `projectId` is NON-nullable — generation_jobs.project_id is NOT NULL.
|
|
107
|
+
export const adminJobSummarySchema = z.object({
|
|
108
|
+
id: idSchema,
|
|
109
|
+
workspaceId: idSchema,
|
|
110
|
+
projectId: idSchema,
|
|
111
|
+
type: generationJobTypeSchema,
|
|
112
|
+
status: adminJobStatusSchema,
|
|
113
|
+
provider: z.string(),
|
|
114
|
+
reservedCredits: z.number().int(),
|
|
115
|
+
createdByUserId: idSchema,
|
|
116
|
+
createdAt: isoDateSchema
|
|
117
|
+
});
|
|
118
|
+
export const listAdminJobsResponseSchema = apiSuccessSchema(z.object({
|
|
119
|
+
jobs: z.array(adminJobSummarySchema)
|
|
120
|
+
}));
|
|
121
|
+
export const adminJobStepSchema = z.object({
|
|
122
|
+
name: z.string(),
|
|
123
|
+
status: z.string(),
|
|
124
|
+
attempt: z.number().int(),
|
|
125
|
+
providerRequestId: z.string().nullable(),
|
|
126
|
+
providerJobId: z.string().nullable(),
|
|
127
|
+
error: z.string().nullable(),
|
|
128
|
+
createdAt: isoDateSchema
|
|
129
|
+
});
|
|
130
|
+
export const adminJobEventSchema = z.object({
|
|
131
|
+
source: z.string(),
|
|
132
|
+
visibility: z.string(),
|
|
133
|
+
type: z.string(),
|
|
134
|
+
data: z.record(z.string(), z.unknown()).nullable(),
|
|
135
|
+
createdAt: isoDateSchema
|
|
136
|
+
});
|
|
137
|
+
export const adminJobDetailResponseSchema = apiSuccessSchema(z.object({
|
|
138
|
+
job: adminJobSummarySchema,
|
|
139
|
+
steps: z.array(adminJobStepSchema),
|
|
140
|
+
events: z.array(adminJobEventSchema)
|
|
141
|
+
}));
|
|
142
|
+
export const adminUsageResponseSchema = apiSuccessSchema(z.object({
|
|
143
|
+
periodDays: z.number().int(),
|
|
144
|
+
ledgerTotals: z.object({
|
|
145
|
+
grant: z.number().int(),
|
|
146
|
+
reserve: z.number().int(),
|
|
147
|
+
capture: z.number().int(),
|
|
148
|
+
release: z.number().int(),
|
|
149
|
+
refund: z.number().int(),
|
|
150
|
+
adjustment: z.number().int()
|
|
151
|
+
}),
|
|
152
|
+
jobsByType: z.array(z.object({
|
|
153
|
+
type: generationJobTypeSchema,
|
|
154
|
+
count: z.number().int()
|
|
155
|
+
})),
|
|
156
|
+
jobsByStatus: z.array(z.object({
|
|
157
|
+
status: adminJobStatusSchema,
|
|
158
|
+
count: z.number().int()
|
|
159
|
+
})),
|
|
160
|
+
topWorkspacesBySpend: z.array(z.object({
|
|
161
|
+
workspaceId: idSchema,
|
|
162
|
+
name: z.string(),
|
|
163
|
+
capturedCredits: z.number().int()
|
|
164
|
+
}))
|
|
165
|
+
}));
|
package/dist/assets.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export declare const assetKindSchema: z.ZodEnum<{
|
|
|
9
9
|
export: "export";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const assetStatusSchema: z.ZodEnum<{
|
|
12
|
+
deleted: "deleted";
|
|
13
|
+
failed: "failed";
|
|
12
14
|
pending_upload: "pending_upload";
|
|
13
15
|
available: "available";
|
|
14
|
-
failed: "failed";
|
|
15
|
-
deleted: "deleted";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const uploadableAssetKindSchema: z.ZodEnum<{
|
|
18
18
|
reference: "reference";
|
|
@@ -38,10 +38,10 @@ export declare const assetSchema: z.ZodObject<{
|
|
|
38
38
|
export: "export";
|
|
39
39
|
}>;
|
|
40
40
|
status: z.ZodEnum<{
|
|
41
|
+
deleted: "deleted";
|
|
42
|
+
failed: "failed";
|
|
41
43
|
pending_upload: "pending_upload";
|
|
42
44
|
available: "available";
|
|
43
|
-
failed: "failed";
|
|
44
|
-
deleted: "deleted";
|
|
45
45
|
}>;
|
|
46
46
|
contentType: z.ZodEnum<{
|
|
47
47
|
"image/png": "image/png";
|
|
@@ -91,10 +91,10 @@ export declare const createAssetUploadResponseSchema: z.ZodObject<{
|
|
|
91
91
|
export: "export";
|
|
92
92
|
}>;
|
|
93
93
|
status: z.ZodEnum<{
|
|
94
|
+
deleted: "deleted";
|
|
95
|
+
failed: "failed";
|
|
94
96
|
pending_upload: "pending_upload";
|
|
95
97
|
available: "available";
|
|
96
|
-
failed: "failed";
|
|
97
|
-
deleted: "deleted";
|
|
98
98
|
}>;
|
|
99
99
|
contentType: z.ZodEnum<{
|
|
100
100
|
"image/png": "image/png";
|
|
@@ -136,10 +136,10 @@ export declare const listAssetsResponseSchema: z.ZodObject<{
|
|
|
136
136
|
export: "export";
|
|
137
137
|
}>;
|
|
138
138
|
status: z.ZodEnum<{
|
|
139
|
+
deleted: "deleted";
|
|
140
|
+
failed: "failed";
|
|
139
141
|
pending_upload: "pending_upload";
|
|
140
142
|
available: "available";
|
|
141
|
-
failed: "failed";
|
|
142
|
-
deleted: "deleted";
|
|
143
143
|
}>;
|
|
144
144
|
contentType: z.ZodEnum<{
|
|
145
145
|
"image/png": "image/png";
|
package/dist/client.d.ts
CHANGED
|
@@ -5,8 +5,9 @@ import { type CreditBalanceResponse } from './credits.js';
|
|
|
5
5
|
import { workspaceMemberSchema, type CreateWorkspaceRequest, type InviteMemberRequest, type InviteMemberResponse, type ListMembersResponse, type UpdateMemberRoleRequest, type UpdateWorkspaceRequest, type Workspace, type WorkspaceMembership } from './workspaces.js';
|
|
6
6
|
import { type Asset, type AssetUpload, type CreateAssetUploadRequest, type CreateAssetUploadResponse, type FinalizeAssetUploadRequest, type ListAssetsResponse } from './assets.js';
|
|
7
7
|
import { type CreateProjectRequest, type LedMapResponse, type Project, type UpdateLedMapRequest, type UpdateProjectRequest } from './projects.js';
|
|
8
|
-
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateVideoLoopRequest, type CreateVideoUpscaleRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type ListGenerationJobsResponse } from './generation.js';
|
|
8
|
+
import { type CreateGenerationJobRequest, type CreatePanelSetRequest, type CreatePanelSetResponse, type CreateVideoLoopRequest, type CreateVideoUpscaleRequest, type EditGenerationJobRequest, type GenerationJobResponse, type GenerationJobStatus, type GenerationJobType, type ListGenerationJobsResponse } from './generation.js';
|
|
9
9
|
import { type DescribeImageRequest, type DescribeImageResponse } from './assistant.js';
|
|
10
|
+
import { type AdminAdjustCreditsRequest, type AdminAdjustCreditsResponse, type AdminJobDetailResponse, type AdminJobStatus, type AdminMeResponse, type AdminUsageResponse, type AdminUserDetailResponse, type AdminWorkspaceDetailResponse, type ListAdminAuditResponse, type ListAdminJobsResponse, type ListAdminUsersResponse, type SetPlatformAdminRequest, type SetPlatformAdminResponse, type SetUserDisabledRequest, type SetUserDisabledResponse } from './admin.js';
|
|
10
11
|
type FetchLike = (request: Request) => Promise<Response>;
|
|
11
12
|
export type ZclApiClientOptions = {
|
|
12
13
|
baseUrl: string;
|
|
@@ -106,6 +107,35 @@ export declare function createZclApiClient(options: ZclApiClientOptions): {
|
|
|
106
107
|
assistant: {
|
|
107
108
|
describeImage(workspaceId: string, projectId: string, input: DescribeImageRequest): Promise<DescribeImageResponse>;
|
|
108
109
|
};
|
|
110
|
+
admin: {
|
|
111
|
+
me(): Promise<AdminMeResponse>;
|
|
112
|
+
listUsers(options?: {
|
|
113
|
+
q?: string;
|
|
114
|
+
limit?: number;
|
|
115
|
+
}): Promise<ListAdminUsersResponse>;
|
|
116
|
+
getUser(userId: string): Promise<AdminUserDetailResponse>;
|
|
117
|
+
getWorkspace(workspaceId: string): Promise<AdminWorkspaceDetailResponse>;
|
|
118
|
+
adjustCredits(workspaceId: string, input: AdminAdjustCreditsRequest): Promise<AdminAdjustCreditsResponse>;
|
|
119
|
+
setPlatformAdmin(userId: string, input: SetPlatformAdminRequest): Promise<SetPlatformAdminResponse>;
|
|
120
|
+
setUserDisabled(userId: string, input: SetUserDisabledRequest): Promise<SetUserDisabledResponse>;
|
|
121
|
+
listAuditLog(options?: {
|
|
122
|
+
action?: string;
|
|
123
|
+
actorId?: string;
|
|
124
|
+
targetId?: string;
|
|
125
|
+
limit?: number;
|
|
126
|
+
}): Promise<ListAdminAuditResponse>;
|
|
127
|
+
listJobs(options?: {
|
|
128
|
+
workspaceId?: string;
|
|
129
|
+
status?: AdminJobStatus;
|
|
130
|
+
type?: GenerationJobType;
|
|
131
|
+
userId?: string;
|
|
132
|
+
limit?: number;
|
|
133
|
+
}): Promise<ListAdminJobsResponse>;
|
|
134
|
+
getJob(jobId: string): Promise<AdminJobDetailResponse>;
|
|
135
|
+
getUsage(options?: {
|
|
136
|
+
periodDays?: number;
|
|
137
|
+
}): Promise<AdminUsageResponse>;
|
|
138
|
+
};
|
|
109
139
|
};
|
|
110
140
|
export type ZclApiClient = ReturnType<typeof createZclApiClient>;
|
|
111
141
|
export {};
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EASL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAA;AAClB,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AACxF,OAAO,EAA+B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sBAAsB,GAC5B,OAAO,CAAC,uBAAuB,CAAC;+BAOxB;YAAE,MAAM,CAAC,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,GAChF,OAAO,CAAC,sBAAsB,CAAC;2BAkBvB;YACP,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,MAAM,CAAC,EAAE,cAAc,CAAA;YACvB,IAAI,CAAC,EAAE,iBAAiB,CAAA;YACxB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;SACf,GACA,OAAO,CAAC,qBAAqB,CAAC;sBAoBnB,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;2BAGpC;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,GAAQ,OAAO,CAAC,kBAAkB,CAAC;;EAUjF;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|
package/dist/client.js
CHANGED
|
@@ -7,6 +7,7 @@ import { assetSchema, createAssetUploadRequestSchema, createAssetUploadResponseS
|
|
|
7
7
|
import { createProjectRequestSchema, ledMapResponseSchema, projectSchema, updateLedMapRequestSchema, updateProjectRequestSchema } from './projects.js';
|
|
8
8
|
import { createGenerationJobRequestSchema, createPanelSetRequestSchema, createPanelSetResponseSchema, createVideoLoopRequestSchema, createVideoUpscaleRequestSchema, editGenerationJobRequestSchema, generationJobResponseSchema, listGenerationJobsResponseSchema } from './generation.js';
|
|
9
9
|
import { describeImageRequestSchema, describeImageResponseSchema } from './assistant.js';
|
|
10
|
+
import { adminAdjustCreditsRequestSchema, adminAdjustCreditsResponseSchema, adminJobDetailResponseSchema, adminMeResponseSchema, adminUsageResponseSchema, adminUserDetailResponseSchema, adminWorkspaceDetailResponseSchema, listAdminAuditResponseSchema, listAdminJobsResponseSchema, listAdminUsersResponseSchema, setPlatformAdminRequestSchema, setPlatformAdminResponseSchema, setUserDisabledRequestSchema, setUserDisabledResponseSchema } from './admin.js';
|
|
10
11
|
const workspaceListResponseSchema = listResponseSchema(workspaceSchema.extend({
|
|
11
12
|
membership: workspaceMembershipSchema
|
|
12
13
|
}));
|
|
@@ -272,6 +273,94 @@ export function createZclApiClient(options) {
|
|
|
272
273
|
body: describeImageRequestSchema.parse(input)
|
|
273
274
|
});
|
|
274
275
|
}
|
|
276
|
+
},
|
|
277
|
+
admin: {
|
|
278
|
+
me() {
|
|
279
|
+
return request('/admin/me', adminMeResponseSchema);
|
|
280
|
+
},
|
|
281
|
+
listUsers(options = {}) {
|
|
282
|
+
const params = new URLSearchParams();
|
|
283
|
+
if (options.q !== undefined) {
|
|
284
|
+
params.set('q', options.q);
|
|
285
|
+
}
|
|
286
|
+
if (options.limit !== undefined) {
|
|
287
|
+
params.set('limit', String(options.limit));
|
|
288
|
+
}
|
|
289
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
290
|
+
return request(`/admin/users${query}`, listAdminUsersResponseSchema);
|
|
291
|
+
},
|
|
292
|
+
getUser(userId) {
|
|
293
|
+
return request(`/admin/users/${userId}`, adminUserDetailResponseSchema);
|
|
294
|
+
},
|
|
295
|
+
getWorkspace(workspaceId) {
|
|
296
|
+
return request(`/admin/workspaces/${workspaceId}`, adminWorkspaceDetailResponseSchema);
|
|
297
|
+
},
|
|
298
|
+
adjustCredits(workspaceId, input) {
|
|
299
|
+
return request(`/admin/workspaces/${workspaceId}/credits`, adminAdjustCreditsResponseSchema, {
|
|
300
|
+
method: 'POST',
|
|
301
|
+
body: adminAdjustCreditsRequestSchema.parse(input)
|
|
302
|
+
});
|
|
303
|
+
},
|
|
304
|
+
setPlatformAdmin(userId, input) {
|
|
305
|
+
return request(`/admin/users/${userId}/platform-admin`, setPlatformAdminResponseSchema, {
|
|
306
|
+
method: 'POST',
|
|
307
|
+
body: setPlatformAdminRequestSchema.parse(input)
|
|
308
|
+
});
|
|
309
|
+
},
|
|
310
|
+
setUserDisabled(userId, input) {
|
|
311
|
+
return request(`/admin/users/${userId}/disable`, setUserDisabledResponseSchema, {
|
|
312
|
+
method: 'POST',
|
|
313
|
+
body: setUserDisabledRequestSchema.parse(input)
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
listAuditLog(options = {}) {
|
|
317
|
+
const params = new URLSearchParams();
|
|
318
|
+
if (options.action !== undefined) {
|
|
319
|
+
params.set('action', options.action);
|
|
320
|
+
}
|
|
321
|
+
if (options.actorId !== undefined) {
|
|
322
|
+
params.set('actorId', options.actorId);
|
|
323
|
+
}
|
|
324
|
+
if (options.targetId !== undefined) {
|
|
325
|
+
params.set('targetId', options.targetId);
|
|
326
|
+
}
|
|
327
|
+
if (options.limit !== undefined) {
|
|
328
|
+
params.set('limit', String(options.limit));
|
|
329
|
+
}
|
|
330
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
331
|
+
return request(`/admin/audit-log${query}`, listAdminAuditResponseSchema);
|
|
332
|
+
},
|
|
333
|
+
listJobs(options = {}) {
|
|
334
|
+
const params = new URLSearchParams();
|
|
335
|
+
if (options.workspaceId !== undefined) {
|
|
336
|
+
params.set('workspaceId', options.workspaceId);
|
|
337
|
+
}
|
|
338
|
+
if (options.status !== undefined) {
|
|
339
|
+
params.set('status', options.status);
|
|
340
|
+
}
|
|
341
|
+
if (options.type !== undefined) {
|
|
342
|
+
params.set('type', options.type);
|
|
343
|
+
}
|
|
344
|
+
if (options.userId !== undefined) {
|
|
345
|
+
params.set('userId', options.userId);
|
|
346
|
+
}
|
|
347
|
+
if (options.limit !== undefined) {
|
|
348
|
+
params.set('limit', String(options.limit));
|
|
349
|
+
}
|
|
350
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
351
|
+
return request(`/admin/jobs${query}`, listAdminJobsResponseSchema);
|
|
352
|
+
},
|
|
353
|
+
getJob(jobId) {
|
|
354
|
+
return request(`/admin/jobs/${jobId}`, adminJobDetailResponseSchema);
|
|
355
|
+
},
|
|
356
|
+
getUsage(options = {}) {
|
|
357
|
+
const params = new URLSearchParams();
|
|
358
|
+
if (options.periodDays !== undefined) {
|
|
359
|
+
params.set('periodDays', String(options.periodDays));
|
|
360
|
+
}
|
|
361
|
+
const query = params.toString() ? `?${params.toString()}` : '';
|
|
362
|
+
return request(`/admin/usage${query}`, adminUsageResponseSchema);
|
|
363
|
+
}
|
|
275
364
|
}
|
|
276
365
|
};
|
|
277
366
|
}
|
package/dist/generation.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const generationJobStatusSchema: z.ZodEnum<{
|
|
3
|
-
failed: "failed";
|
|
4
3
|
queued: "queued";
|
|
5
4
|
running: "running";
|
|
6
5
|
succeeded: "succeeded";
|
|
6
|
+
failed: "failed";
|
|
7
7
|
canceled: "canceled";
|
|
8
8
|
}>;
|
|
9
9
|
export declare const generationJobTypeSchema: z.ZodEnum<{
|
|
@@ -79,10 +79,10 @@ export declare const generationJobSchema: z.ZodObject<{
|
|
|
79
79
|
"video.upscale": "video.upscale";
|
|
80
80
|
}>;
|
|
81
81
|
status: z.ZodEnum<{
|
|
82
|
-
failed: "failed";
|
|
83
82
|
queued: "queued";
|
|
84
83
|
running: "running";
|
|
85
84
|
succeeded: "succeeded";
|
|
85
|
+
failed: "failed";
|
|
86
86
|
canceled: "canceled";
|
|
87
87
|
}>;
|
|
88
88
|
provider: z.ZodString;
|
|
@@ -125,10 +125,10 @@ export declare const generationJobResponseSchema: z.ZodObject<{
|
|
|
125
125
|
"video.upscale": "video.upscale";
|
|
126
126
|
}>;
|
|
127
127
|
status: z.ZodEnum<{
|
|
128
|
-
failed: "failed";
|
|
129
128
|
queued: "queued";
|
|
130
129
|
running: "running";
|
|
131
130
|
succeeded: "succeeded";
|
|
131
|
+
failed: "failed";
|
|
132
132
|
canceled: "canceled";
|
|
133
133
|
}>;
|
|
134
134
|
provider: z.ZodString;
|
|
@@ -185,10 +185,10 @@ export declare const createPanelSetResponseSchema: z.ZodObject<{
|
|
|
185
185
|
"video.upscale": "video.upscale";
|
|
186
186
|
}>;
|
|
187
187
|
status: z.ZodEnum<{
|
|
188
|
-
failed: "failed";
|
|
189
188
|
queued: "queued";
|
|
190
189
|
running: "running";
|
|
191
190
|
succeeded: "succeeded";
|
|
191
|
+
failed: "failed";
|
|
192
192
|
canceled: "canceled";
|
|
193
193
|
}>;
|
|
194
194
|
provider: z.ZodString;
|
|
@@ -231,10 +231,10 @@ export declare const createPanelSetResponseSchema: z.ZodObject<{
|
|
|
231
231
|
}, z.core.$strip>;
|
|
232
232
|
export declare const listGenerationJobsQuerySchema: z.ZodObject<{
|
|
233
233
|
status: z.ZodOptional<z.ZodEnum<{
|
|
234
|
-
failed: "failed";
|
|
235
234
|
queued: "queued";
|
|
236
235
|
running: "running";
|
|
237
236
|
succeeded: "succeeded";
|
|
237
|
+
failed: "failed";
|
|
238
238
|
canceled: "canceled";
|
|
239
239
|
}>>;
|
|
240
240
|
variantGroupId: z.ZodOptional<z.ZodString>;
|
|
@@ -255,10 +255,10 @@ export declare const listGenerationJobsResponseSchema: z.ZodObject<{
|
|
|
255
255
|
"video.upscale": "video.upscale";
|
|
256
256
|
}>;
|
|
257
257
|
status: z.ZodEnum<{
|
|
258
|
-
failed: "failed";
|
|
259
258
|
queued: "queued";
|
|
260
259
|
running: "running";
|
|
261
260
|
succeeded: "succeeded";
|
|
261
|
+
failed: "failed";
|
|
262
262
|
canceled: "canceled";
|
|
263
263
|
}>;
|
|
264
264
|
provider: z.ZodString;
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/projects.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export declare const projectVisibilitySchema: z.ZodEnum<{
|
|
|
4
4
|
workspace: "workspace";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const projectStatusSchema: z.ZodEnum<{
|
|
7
|
-
deleted: "deleted";
|
|
8
7
|
active: "active";
|
|
9
8
|
archived: "archived";
|
|
9
|
+
deleted: "deleted";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const ledPanelIdSchema: z.ZodString;
|
|
12
12
|
export declare const ledPanelSchema: z.ZodObject<{
|
|
@@ -113,9 +113,9 @@ export declare const projectSchema: z.ZodObject<{
|
|
|
113
113
|
workspace: "workspace";
|
|
114
114
|
}>;
|
|
115
115
|
status: z.ZodEnum<{
|
|
116
|
-
deleted: "deleted";
|
|
117
116
|
active: "active";
|
|
118
117
|
archived: "archived";
|
|
118
|
+
deleted: "deleted";
|
|
119
119
|
}>;
|
|
120
120
|
createdAt: z.ZodString;
|
|
121
121
|
updatedAt: z.ZodString;
|
|
@@ -134,9 +134,9 @@ export declare const updateProjectRequestSchema: z.ZodObject<{
|
|
|
134
134
|
workspace: "workspace";
|
|
135
135
|
}>>;
|
|
136
136
|
status: z.ZodOptional<z.ZodEnum<{
|
|
137
|
-
deleted: "deleted";
|
|
138
137
|
active: "active";
|
|
139
138
|
archived: "archived";
|
|
139
|
+
deleted: "deleted";
|
|
140
140
|
}>>;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
export type CreateProjectRequest = z.input<typeof createProjectRequestSchema>;
|