@intutic/shared-types 2.5.0 → 2.6.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.
Files changed (98) hide show
  1. package/README.md +9 -9
  2. package/dist/apiKeyScopes.d.ts +99 -0
  3. package/dist/apiKeyScopes.d.ts.map +1 -0
  4. package/dist/apiKeyScopes.js +140 -0
  5. package/dist/apiKeyScopes.js.map +1 -0
  6. package/dist/attenuation.d.ts +6 -2
  7. package/dist/attenuation.d.ts.map +1 -1
  8. package/dist/attenuation.js +13 -1
  9. package/dist/attenuation.js.map +1 -1
  10. package/dist/auth.d.ts +29 -4
  11. package/dist/auth.d.ts.map +1 -1
  12. package/dist/auth.js +26 -6
  13. package/dist/auth.js.map +1 -1
  14. package/dist/enums.d.ts +9 -26
  15. package/dist/enums.d.ts.map +1 -1
  16. package/dist/enums.js +11 -28
  17. package/dist/enums.js.map +1 -1
  18. package/dist/errors.d.ts +6 -1
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +6 -1
  21. package/dist/errors.js.map +1 -1
  22. package/dist/finops.d.ts +4 -2
  23. package/dist/finops.d.ts.map +1 -1
  24. package/dist/guardrailRender.d.ts +51 -0
  25. package/dist/guardrailRender.d.ts.map +1 -1
  26. package/dist/guardrailRender.js +69 -1
  27. package/dist/guardrailRender.js.map +1 -1
  28. package/dist/identity.d.ts +0 -18
  29. package/dist/identity.d.ts.map +1 -1
  30. package/dist/identity.js +1 -5
  31. package/dist/identity.js.map +1 -1
  32. package/dist/index.d.ts +12 -8
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +42 -10
  35. package/dist/index.js.map +1 -1
  36. package/dist/mcpDaemonPolicyCache.d.ts +32 -0
  37. package/dist/mcpDaemonPolicyCache.d.ts.map +1 -0
  38. package/dist/mcpDaemonPolicyCache.js +43 -0
  39. package/dist/mcpDaemonPolicyCache.js.map +1 -0
  40. package/dist/notifications.d.ts +1 -1
  41. package/dist/notifications.d.ts.map +1 -1
  42. package/dist/notifications.js +12 -0
  43. package/dist/notifications.js.map +1 -1
  44. package/dist/piiDetectors.d.ts +3 -0
  45. package/dist/piiDetectors.d.ts.map +1 -1
  46. package/dist/piiDetectors.js.map +1 -1
  47. package/dist/piiDetectors.json +11 -6
  48. package/dist/posturePresets.d.ts.map +1 -1
  49. package/dist/posturePresets.js +12 -3
  50. package/dist/posturePresets.js.map +1 -1
  51. package/dist/responses/common.d.ts +63 -0
  52. package/dist/responses/common.d.ts.map +1 -0
  53. package/dist/responses/common.js +43 -0
  54. package/dist/responses/common.js.map +1 -0
  55. package/dist/responses/gateways.d.ts +5297 -0
  56. package/dist/responses/gateways.d.ts.map +1 -0
  57. package/dist/responses/gateways.js +473 -0
  58. package/dist/responses/gateways.js.map +1 -0
  59. package/dist/responses/guardrails.d.ts +5200 -0
  60. package/dist/responses/guardrails.d.ts.map +1 -0
  61. package/dist/responses/guardrails.js +374 -0
  62. package/dist/responses/guardrails.js.map +1 -0
  63. package/dist/responses/identity.d.ts +1659 -0
  64. package/dist/responses/identity.d.ts.map +1 -0
  65. package/dist/responses/identity.js +291 -0
  66. package/dist/responses/identity.js.map +1 -0
  67. package/dist/responses/index.d.ts +15 -0
  68. package/dist/responses/index.d.ts.map +1 -0
  69. package/dist/responses/index.js +31 -0
  70. package/dist/responses/index.js.map +1 -0
  71. package/dist/responses/integrations.d.ts +4248 -0
  72. package/dist/responses/integrations.d.ts.map +1 -0
  73. package/dist/responses/integrations.js +436 -0
  74. package/dist/responses/integrations.js.map +1 -0
  75. package/dist/responses/observability.d.ts +3222 -0
  76. package/dist/responses/observability.d.ts.map +1 -0
  77. package/dist/responses/observability.js +598 -0
  78. package/dist/responses/observability.js.map +1 -0
  79. package/dist/responses/orgSops.d.ts +112 -0
  80. package/dist/responses/orgSops.d.ts.map +1 -0
  81. package/dist/responses/orgSops.js +29 -0
  82. package/dist/responses/orgSops.js.map +1 -0
  83. package/dist/responses/rules.d.ts +1904 -0
  84. package/dist/responses/rules.d.ts.map +1 -0
  85. package/dist/responses/rules.js +331 -0
  86. package/dist/responses/rules.js.map +1 -0
  87. package/dist/skillScan.d.ts +31 -0
  88. package/dist/skillScan.d.ts.map +1 -1
  89. package/dist/skillScan.js +25 -1
  90. package/dist/skillScan.js.map +1 -1
  91. package/dist/sop.d.ts +8 -1
  92. package/dist/sop.d.ts.map +1 -1
  93. package/dist/sop.js.map +1 -1
  94. package/dist/workspaceSettings.d.ts +25 -10
  95. package/dist/workspaceSettings.d.ts.map +1 -1
  96. package/dist/workspaceSettings.js +2 -1
  97. package/dist/workspaceSettings.js.map +1 -1
  98. package/package.json +2 -2
@@ -0,0 +1,1659 @@
1
+ /**
2
+ * Responses of the control plane routes in auth.ts, domainVerification.ts, orgs.ts, teams.ts, members.ts, trial.ts, keys.ts, budget.ts, and the signing key set in app.ts.
3
+ *
4
+ * @module
5
+ */
6
+ import { z } from 'zod';
7
+ /** `GET /.well-known/intutic-trace-signing.json`: the active key and any retired ones still verifying old roots; empty when none is configured. */
8
+ export declare const TraceSigningJwksResponse: z.ZodObject<{
9
+ keys: z.ZodArray<z.ZodObject<{
10
+ kty: z.ZodString;
11
+ crv: z.ZodString;
12
+ x: z.ZodString;
13
+ use: z.ZodLiteral<"sig">;
14
+ alg: z.ZodLiteral<"EdDSA">;
15
+ kid: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ x: string;
18
+ kid: string;
19
+ kty: string;
20
+ crv: string;
21
+ use: "sig";
22
+ alg: "EdDSA";
23
+ }, {
24
+ x: string;
25
+ kid: string;
26
+ kty: string;
27
+ crv: string;
28
+ use: "sig";
29
+ alg: "EdDSA";
30
+ }>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ keys: {
33
+ x: string;
34
+ kid: string;
35
+ kty: string;
36
+ crv: string;
37
+ use: "sig";
38
+ alg: "EdDSA";
39
+ }[];
40
+ }, {
41
+ keys: {
42
+ x: string;
43
+ kid: string;
44
+ kty: string;
45
+ crv: string;
46
+ use: "sig";
47
+ alg: "EdDSA";
48
+ }[];
49
+ }>;
50
+ export type TraceSigningJwksResponse = z.infer<typeof TraceSigningJwksResponse>;
51
+ /** A workspace member without credentials (`toMemberInfo` in `authService.ts` / `memberService.ts`). */
52
+ export declare const MemberInfoResponse: z.ZodObject<{
53
+ memberId: z.ZodString;
54
+ workspaceId: z.ZodString;
55
+ email: z.ZodString;
56
+ displayName: z.ZodString;
57
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
58
+ isActive: z.ZodBoolean;
59
+ lastLoginAt: z.ZodNullable<z.ZodString>;
60
+ createdAt: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ workspaceId: string;
63
+ email: string;
64
+ displayName: string;
65
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
66
+ memberId: string;
67
+ isActive: boolean;
68
+ createdAt: string;
69
+ lastLoginAt: string | null;
70
+ }, {
71
+ workspaceId: string;
72
+ email: string;
73
+ displayName: string;
74
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
75
+ memberId: string;
76
+ isActive: boolean;
77
+ createdAt: string;
78
+ lastLoginAt: string | null;
79
+ }>;
80
+ export type MemberInfoResponse = z.infer<typeof MemberInfoResponse>;
81
+ /** `GET /api/v1/auth/me`: the caller's member row and its workspace's org. */
82
+ export declare const AuthMeResponse: z.ZodObject<{
83
+ memberId: z.ZodString;
84
+ workspaceId: z.ZodString;
85
+ email: z.ZodString;
86
+ displayName: z.ZodString;
87
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
88
+ isActive: z.ZodBoolean;
89
+ lastLoginAt: z.ZodNullable<z.ZodString>;
90
+ createdAt: z.ZodString;
91
+ } & {
92
+ orgId: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ workspaceId: string;
95
+ email: string;
96
+ displayName: string;
97
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
98
+ memberId: string;
99
+ orgId: string;
100
+ isActive: boolean;
101
+ createdAt: string;
102
+ lastLoginAt: string | null;
103
+ }, {
104
+ workspaceId: string;
105
+ email: string;
106
+ displayName: string;
107
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
108
+ memberId: string;
109
+ orgId: string;
110
+ isActive: boolean;
111
+ createdAt: string;
112
+ lastLoginAt: string | null;
113
+ }>;
114
+ export type AuthMeResponse = z.infer<typeof AuthMeResponse>;
115
+ /**
116
+ * A session as a client that reads tokens from the body receives it. A
117
+ * cookie client (one sending `X-Intutic-CSRF`) gets the same body without
118
+ * `refreshToken`, which travels in the HttpOnly refresh cookie instead.
119
+ */
120
+ export declare const LoginTokensResponse: z.ZodObject<{
121
+ accessToken: z.ZodString;
122
+ refreshToken: z.ZodString;
123
+ expiresIn: z.ZodNumber;
124
+ member: z.ZodObject<{
125
+ memberId: z.ZodString;
126
+ workspaceId: z.ZodString;
127
+ email: z.ZodString;
128
+ displayName: z.ZodString;
129
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
130
+ isActive: z.ZodBoolean;
131
+ lastLoginAt: z.ZodNullable<z.ZodString>;
132
+ createdAt: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ workspaceId: string;
135
+ email: string;
136
+ displayName: string;
137
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
138
+ memberId: string;
139
+ isActive: boolean;
140
+ createdAt: string;
141
+ lastLoginAt: string | null;
142
+ }, {
143
+ workspaceId: string;
144
+ email: string;
145
+ displayName: string;
146
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
147
+ memberId: string;
148
+ isActive: boolean;
149
+ createdAt: string;
150
+ lastLoginAt: string | null;
151
+ }>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ member: {
154
+ workspaceId: string;
155
+ email: string;
156
+ displayName: string;
157
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
158
+ memberId: string;
159
+ isActive: boolean;
160
+ createdAt: string;
161
+ lastLoginAt: string | null;
162
+ };
163
+ refreshToken: string;
164
+ accessToken: string;
165
+ expiresIn: number;
166
+ }, {
167
+ member: {
168
+ workspaceId: string;
169
+ email: string;
170
+ displayName: string;
171
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
172
+ memberId: string;
173
+ isActive: boolean;
174
+ createdAt: string;
175
+ lastLoginAt: string | null;
176
+ };
177
+ refreshToken: string;
178
+ accessToken: string;
179
+ expiresIn: number;
180
+ }>;
181
+ export type LoginTokensResponse = z.infer<typeof LoginTokensResponse>;
182
+ /** `POST /api/v1/auth/login`: `LoginTokensResponse`, without `refreshToken` for a cookie client. */
183
+ export declare const LoginResponse: z.ZodUnion<[z.ZodObject<{
184
+ accessToken: z.ZodString;
185
+ refreshToken: z.ZodString;
186
+ expiresIn: z.ZodNumber;
187
+ member: z.ZodObject<{
188
+ memberId: z.ZodString;
189
+ workspaceId: z.ZodString;
190
+ email: z.ZodString;
191
+ displayName: z.ZodString;
192
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
193
+ isActive: z.ZodBoolean;
194
+ lastLoginAt: z.ZodNullable<z.ZodString>;
195
+ createdAt: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ workspaceId: string;
198
+ email: string;
199
+ displayName: string;
200
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
201
+ memberId: string;
202
+ isActive: boolean;
203
+ createdAt: string;
204
+ lastLoginAt: string | null;
205
+ }, {
206
+ workspaceId: string;
207
+ email: string;
208
+ displayName: string;
209
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
210
+ memberId: string;
211
+ isActive: boolean;
212
+ createdAt: string;
213
+ lastLoginAt: string | null;
214
+ }>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ member: {
217
+ workspaceId: string;
218
+ email: string;
219
+ displayName: string;
220
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
221
+ memberId: string;
222
+ isActive: boolean;
223
+ createdAt: string;
224
+ lastLoginAt: string | null;
225
+ };
226
+ refreshToken: string;
227
+ accessToken: string;
228
+ expiresIn: number;
229
+ }, {
230
+ member: {
231
+ workspaceId: string;
232
+ email: string;
233
+ displayName: string;
234
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
235
+ memberId: string;
236
+ isActive: boolean;
237
+ createdAt: string;
238
+ lastLoginAt: string | null;
239
+ };
240
+ refreshToken: string;
241
+ accessToken: string;
242
+ expiresIn: number;
243
+ }>, z.ZodObject<Omit<{
244
+ accessToken: z.ZodString;
245
+ refreshToken: z.ZodString;
246
+ expiresIn: z.ZodNumber;
247
+ member: z.ZodObject<{
248
+ memberId: z.ZodString;
249
+ workspaceId: z.ZodString;
250
+ email: z.ZodString;
251
+ displayName: z.ZodString;
252
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
253
+ isActive: z.ZodBoolean;
254
+ lastLoginAt: z.ZodNullable<z.ZodString>;
255
+ createdAt: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ workspaceId: string;
258
+ email: string;
259
+ displayName: string;
260
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
261
+ memberId: string;
262
+ isActive: boolean;
263
+ createdAt: string;
264
+ lastLoginAt: string | null;
265
+ }, {
266
+ workspaceId: string;
267
+ email: string;
268
+ displayName: string;
269
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
270
+ memberId: string;
271
+ isActive: boolean;
272
+ createdAt: string;
273
+ lastLoginAt: string | null;
274
+ }>;
275
+ }, "refreshToken">, "strip", z.ZodTypeAny, {
276
+ member: {
277
+ workspaceId: string;
278
+ email: string;
279
+ displayName: string;
280
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
281
+ memberId: string;
282
+ isActive: boolean;
283
+ createdAt: string;
284
+ lastLoginAt: string | null;
285
+ };
286
+ accessToken: string;
287
+ expiresIn: number;
288
+ }, {
289
+ member: {
290
+ workspaceId: string;
291
+ email: string;
292
+ displayName: string;
293
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
294
+ memberId: string;
295
+ isActive: boolean;
296
+ createdAt: string;
297
+ lastLoginAt: string | null;
298
+ };
299
+ accessToken: string;
300
+ expiresIn: number;
301
+ }>]>;
302
+ export type LoginResponse = z.infer<typeof LoginResponse>;
303
+ /** A rotated token pair, as a client that reads tokens from the body receives it. */
304
+ export declare const RefreshTokensResponse: z.ZodObject<{
305
+ accessToken: z.ZodString;
306
+ refreshToken: z.ZodString;
307
+ expiresIn: z.ZodNumber;
308
+ }, "strip", z.ZodTypeAny, {
309
+ refreshToken: string;
310
+ accessToken: string;
311
+ expiresIn: number;
312
+ }, {
313
+ refreshToken: string;
314
+ accessToken: string;
315
+ expiresIn: number;
316
+ }>;
317
+ export type RefreshTokensResponse = z.infer<typeof RefreshTokensResponse>;
318
+ /** `POST /api/v1/auth/refresh`: `RefreshTokensResponse`, without `refreshToken` for a cookie client. */
319
+ export declare const RefreshResponse: z.ZodUnion<[z.ZodObject<{
320
+ accessToken: z.ZodString;
321
+ refreshToken: z.ZodString;
322
+ expiresIn: z.ZodNumber;
323
+ }, "strip", z.ZodTypeAny, {
324
+ refreshToken: string;
325
+ accessToken: string;
326
+ expiresIn: number;
327
+ }, {
328
+ refreshToken: string;
329
+ accessToken: string;
330
+ expiresIn: number;
331
+ }>, z.ZodObject<Omit<{
332
+ accessToken: z.ZodString;
333
+ refreshToken: z.ZodString;
334
+ expiresIn: z.ZodNumber;
335
+ }, "refreshToken">, "strip", z.ZodTypeAny, {
336
+ accessToken: string;
337
+ expiresIn: number;
338
+ }, {
339
+ accessToken: string;
340
+ expiresIn: number;
341
+ }>]>;
342
+ export type RefreshResponse = z.infer<typeof RefreshResponse>;
343
+ /** An org signup as a client that reads tokens from the body receives it (`signupService.ts` `signupOrg`). */
344
+ export declare const OrgSignupTokensResponse: z.ZodObject<{
345
+ user: z.ZodObject<{
346
+ id: z.ZodString;
347
+ email: z.ZodString;
348
+ name: z.ZodString;
349
+ emailVerified: z.ZodBoolean;
350
+ }, "strip", z.ZodTypeAny, {
351
+ email: string;
352
+ name: string;
353
+ id: string;
354
+ emailVerified: boolean;
355
+ }, {
356
+ email: string;
357
+ name: string;
358
+ id: string;
359
+ emailVerified: boolean;
360
+ }>;
361
+ org: z.ZodObject<{
362
+ id: z.ZodString;
363
+ name: z.ZodString;
364
+ planTier: z.ZodString;
365
+ trialExpiresAt: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ name: string;
368
+ id: string;
369
+ planTier: string;
370
+ trialExpiresAt: string;
371
+ }, {
372
+ name: string;
373
+ id: string;
374
+ planTier: string;
375
+ trialExpiresAt: string;
376
+ }>;
377
+ workspace: z.ZodObject<{
378
+ id: z.ZodString;
379
+ name: z.ZodString;
380
+ planTier: z.ZodString;
381
+ trialExpiresAt: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ name: string;
384
+ id: string;
385
+ planTier: string;
386
+ trialExpiresAt: string;
387
+ }, {
388
+ name: string;
389
+ id: string;
390
+ planTier: string;
391
+ trialExpiresAt: string;
392
+ }>;
393
+ accessToken: z.ZodString;
394
+ refreshToken: z.ZodString;
395
+ cliInstall: z.ZodString;
396
+ isNewUser: z.ZodBoolean;
397
+ }, "strip", z.ZodTypeAny, {
398
+ workspace: {
399
+ name: string;
400
+ id: string;
401
+ planTier: string;
402
+ trialExpiresAt: string;
403
+ };
404
+ refreshToken: string;
405
+ user: {
406
+ email: string;
407
+ name: string;
408
+ id: string;
409
+ emailVerified: boolean;
410
+ };
411
+ accessToken: string;
412
+ org: {
413
+ name: string;
414
+ id: string;
415
+ planTier: string;
416
+ trialExpiresAt: string;
417
+ };
418
+ cliInstall: string;
419
+ isNewUser: boolean;
420
+ }, {
421
+ workspace: {
422
+ name: string;
423
+ id: string;
424
+ planTier: string;
425
+ trialExpiresAt: string;
426
+ };
427
+ refreshToken: string;
428
+ user: {
429
+ email: string;
430
+ name: string;
431
+ id: string;
432
+ emailVerified: boolean;
433
+ };
434
+ accessToken: string;
435
+ org: {
436
+ name: string;
437
+ id: string;
438
+ planTier: string;
439
+ trialExpiresAt: string;
440
+ };
441
+ cliInstall: string;
442
+ isNewUser: boolean;
443
+ }>;
444
+ export type OrgSignupTokensResponse = z.infer<typeof OrgSignupTokensResponse>;
445
+ /** `POST /api/v1/auth/signup/org`: `OrgSignupTokensResponse`, without `refreshToken` for a cookie client. */
446
+ export declare const OrgSignupResponse: z.ZodUnion<[z.ZodObject<{
447
+ user: z.ZodObject<{
448
+ id: z.ZodString;
449
+ email: z.ZodString;
450
+ name: z.ZodString;
451
+ emailVerified: z.ZodBoolean;
452
+ }, "strip", z.ZodTypeAny, {
453
+ email: string;
454
+ name: string;
455
+ id: string;
456
+ emailVerified: boolean;
457
+ }, {
458
+ email: string;
459
+ name: string;
460
+ id: string;
461
+ emailVerified: boolean;
462
+ }>;
463
+ org: z.ZodObject<{
464
+ id: z.ZodString;
465
+ name: z.ZodString;
466
+ planTier: z.ZodString;
467
+ trialExpiresAt: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ name: string;
470
+ id: string;
471
+ planTier: string;
472
+ trialExpiresAt: string;
473
+ }, {
474
+ name: string;
475
+ id: string;
476
+ planTier: string;
477
+ trialExpiresAt: string;
478
+ }>;
479
+ workspace: z.ZodObject<{
480
+ id: z.ZodString;
481
+ name: z.ZodString;
482
+ planTier: z.ZodString;
483
+ trialExpiresAt: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ name: string;
486
+ id: string;
487
+ planTier: string;
488
+ trialExpiresAt: string;
489
+ }, {
490
+ name: string;
491
+ id: string;
492
+ planTier: string;
493
+ trialExpiresAt: string;
494
+ }>;
495
+ accessToken: z.ZodString;
496
+ refreshToken: z.ZodString;
497
+ cliInstall: z.ZodString;
498
+ isNewUser: z.ZodBoolean;
499
+ }, "strip", z.ZodTypeAny, {
500
+ workspace: {
501
+ name: string;
502
+ id: string;
503
+ planTier: string;
504
+ trialExpiresAt: string;
505
+ };
506
+ refreshToken: string;
507
+ user: {
508
+ email: string;
509
+ name: string;
510
+ id: string;
511
+ emailVerified: boolean;
512
+ };
513
+ accessToken: string;
514
+ org: {
515
+ name: string;
516
+ id: string;
517
+ planTier: string;
518
+ trialExpiresAt: string;
519
+ };
520
+ cliInstall: string;
521
+ isNewUser: boolean;
522
+ }, {
523
+ workspace: {
524
+ name: string;
525
+ id: string;
526
+ planTier: string;
527
+ trialExpiresAt: string;
528
+ };
529
+ refreshToken: string;
530
+ user: {
531
+ email: string;
532
+ name: string;
533
+ id: string;
534
+ emailVerified: boolean;
535
+ };
536
+ accessToken: string;
537
+ org: {
538
+ name: string;
539
+ id: string;
540
+ planTier: string;
541
+ trialExpiresAt: string;
542
+ };
543
+ cliInstall: string;
544
+ isNewUser: boolean;
545
+ }>, z.ZodObject<Omit<{
546
+ user: z.ZodObject<{
547
+ id: z.ZodString;
548
+ email: z.ZodString;
549
+ name: z.ZodString;
550
+ emailVerified: z.ZodBoolean;
551
+ }, "strip", z.ZodTypeAny, {
552
+ email: string;
553
+ name: string;
554
+ id: string;
555
+ emailVerified: boolean;
556
+ }, {
557
+ email: string;
558
+ name: string;
559
+ id: string;
560
+ emailVerified: boolean;
561
+ }>;
562
+ org: z.ZodObject<{
563
+ id: z.ZodString;
564
+ name: z.ZodString;
565
+ planTier: z.ZodString;
566
+ trialExpiresAt: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ name: string;
569
+ id: string;
570
+ planTier: string;
571
+ trialExpiresAt: string;
572
+ }, {
573
+ name: string;
574
+ id: string;
575
+ planTier: string;
576
+ trialExpiresAt: string;
577
+ }>;
578
+ workspace: z.ZodObject<{
579
+ id: z.ZodString;
580
+ name: z.ZodString;
581
+ planTier: z.ZodString;
582
+ trialExpiresAt: z.ZodString;
583
+ }, "strip", z.ZodTypeAny, {
584
+ name: string;
585
+ id: string;
586
+ planTier: string;
587
+ trialExpiresAt: string;
588
+ }, {
589
+ name: string;
590
+ id: string;
591
+ planTier: string;
592
+ trialExpiresAt: string;
593
+ }>;
594
+ accessToken: z.ZodString;
595
+ refreshToken: z.ZodString;
596
+ cliInstall: z.ZodString;
597
+ isNewUser: z.ZodBoolean;
598
+ }, "refreshToken">, "strip", z.ZodTypeAny, {
599
+ workspace: {
600
+ name: string;
601
+ id: string;
602
+ planTier: string;
603
+ trialExpiresAt: string;
604
+ };
605
+ user: {
606
+ email: string;
607
+ name: string;
608
+ id: string;
609
+ emailVerified: boolean;
610
+ };
611
+ accessToken: string;
612
+ org: {
613
+ name: string;
614
+ id: string;
615
+ planTier: string;
616
+ trialExpiresAt: string;
617
+ };
618
+ cliInstall: string;
619
+ isNewUser: boolean;
620
+ }, {
621
+ workspace: {
622
+ name: string;
623
+ id: string;
624
+ planTier: string;
625
+ trialExpiresAt: string;
626
+ };
627
+ user: {
628
+ email: string;
629
+ name: string;
630
+ id: string;
631
+ emailVerified: boolean;
632
+ };
633
+ accessToken: string;
634
+ org: {
635
+ name: string;
636
+ id: string;
637
+ planTier: string;
638
+ trialExpiresAt: string;
639
+ };
640
+ cliInstall: string;
641
+ isNewUser: boolean;
642
+ }>]>;
643
+ export type OrgSignupResponse = z.infer<typeof OrgSignupResponse>;
644
+ /** `GET /api/v1/auth/session`: who the session is, on which workspace. */
645
+ export declare const AuthSessionResponse: z.ZodObject<{
646
+ memberId: z.ZodString;
647
+ workspaceId: z.ZodString;
648
+ email: z.ZodString;
649
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
650
+ refreshToken: z.ZodOptional<z.ZodString>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ workspaceId: string;
653
+ email: string;
654
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
655
+ memberId: string;
656
+ refreshToken?: string | undefined;
657
+ }, {
658
+ workspaceId: string;
659
+ email: string;
660
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
661
+ memberId: string;
662
+ refreshToken?: string | undefined;
663
+ }>;
664
+ export type AuthSessionResponse = z.infer<typeof AuthSessionResponse>;
665
+ /** `POST /api/v1/domain-verification/start`: the TXT record to publish (`domainVerificationService.ts`). */
666
+ export declare const DomainVerificationStartResponse: z.ZodObject<{
667
+ verificationId: z.ZodString;
668
+ domain: z.ZodString;
669
+ txtRecordName: z.ZodString;
670
+ txtRecordValue: z.ZodString;
671
+ expiresAt: z.ZodString;
672
+ }, "strip", z.ZodTypeAny, {
673
+ verificationId: string;
674
+ domain: string;
675
+ txtRecordName: string;
676
+ txtRecordValue: string;
677
+ expiresAt: string;
678
+ }, {
679
+ verificationId: string;
680
+ domain: string;
681
+ txtRecordName: string;
682
+ txtRecordValue: string;
683
+ expiresAt: string;
684
+ }>;
685
+ export type DomainVerificationStartResponse = z.infer<typeof DomainVerificationStartResponse>;
686
+ /** `GET /api/v1/domain-verification/:id`: the verification after a fresh DNS check. */
687
+ export declare const DomainVerificationResponse: z.ZodObject<{
688
+ verificationId: z.ZodString;
689
+ domain: z.ZodString;
690
+ status: z.ZodEnum<["pending", "verified", "consumed", "expired"]>;
691
+ txtRecordName: z.ZodString;
692
+ txtRecordValue: z.ZodString;
693
+ verifiedAt: z.ZodNullable<z.ZodString>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ status: "pending" | "verified" | "consumed" | "expired";
696
+ verificationId: string;
697
+ domain: string;
698
+ txtRecordName: string;
699
+ txtRecordValue: string;
700
+ verifiedAt: string | null;
701
+ }, {
702
+ status: "pending" | "verified" | "consumed" | "expired";
703
+ verificationId: string;
704
+ domain: string;
705
+ txtRecordName: string;
706
+ txtRecordValue: string;
707
+ verifiedAt: string | null;
708
+ }>;
709
+ export type DomainVerificationResponse = z.infer<typeof DomainVerificationResponse>;
710
+ /** `POST /api/v1/orgs`: the org created, with its default team and workspace. */
711
+ export declare const OrgCreateResponse: z.ZodObject<{
712
+ orgId: z.ZodString;
713
+ teamId: z.ZodString;
714
+ workspaceId: z.ZodString;
715
+ name: z.ZodString;
716
+ planTier: z.ZodString;
717
+ region: z.ZodString;
718
+ }, "strip", z.ZodTypeAny, {
719
+ workspaceId: string;
720
+ name: string;
721
+ orgId: string;
722
+ planTier: string;
723
+ teamId: string;
724
+ region: string;
725
+ }, {
726
+ workspaceId: string;
727
+ name: string;
728
+ orgId: string;
729
+ planTier: string;
730
+ teamId: string;
731
+ region: string;
732
+ }>;
733
+ export type OrgCreateResponse = z.infer<typeof OrgCreateResponse>;
734
+ /** `PATCH /api/v1/orgs/:orgId/gateway`: the org's default gateway; `null` when cleared. */
735
+ export declare const OrgGatewayResponse: z.ZodObject<{
736
+ orgId: z.ZodString;
737
+ gatewayId: z.ZodNullable<z.ZodString>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ orgId: string;
740
+ gatewayId: string | null;
741
+ }, {
742
+ orgId: string;
743
+ gatewayId: string | null;
744
+ }>;
745
+ export type OrgGatewayResponse = z.infer<typeof OrgGatewayResponse>;
746
+ /** `GET /api/v1/orgs/:orgId/teams`: the org's teams, oldest first. */
747
+ export declare const TeamListResponse: z.ZodObject<{
748
+ data: z.ZodArray<z.ZodObject<{
749
+ teamId: z.ZodString;
750
+ orgId: z.ZodString;
751
+ name: z.ZodString;
752
+ slug: z.ZodString;
753
+ createdAt: z.ZodString;
754
+ updatedAt: z.ZodString;
755
+ }, "strip", z.ZodTypeAny, {
756
+ name: string;
757
+ orgId: string;
758
+ createdAt: string;
759
+ updatedAt: string;
760
+ teamId: string;
761
+ slug: string;
762
+ }, {
763
+ name: string;
764
+ orgId: string;
765
+ createdAt: string;
766
+ updatedAt: string;
767
+ teamId: string;
768
+ slug: string;
769
+ }>, "many">;
770
+ }, "strip", z.ZodTypeAny, {
771
+ data: {
772
+ name: string;
773
+ orgId: string;
774
+ createdAt: string;
775
+ updatedAt: string;
776
+ teamId: string;
777
+ slug: string;
778
+ }[];
779
+ }, {
780
+ data: {
781
+ name: string;
782
+ orgId: string;
783
+ createdAt: string;
784
+ updatedAt: string;
785
+ teamId: string;
786
+ slug: string;
787
+ }[];
788
+ }>;
789
+ export type TeamListResponse = z.infer<typeof TeamListResponse>;
790
+ /** `POST /api/v1/orgs/:orgId/teams`: the team created. */
791
+ export declare const TeamCreateResponse: z.ZodObject<{
792
+ teamId: z.ZodString;
793
+ orgId: z.ZodString;
794
+ name: z.ZodString;
795
+ }, "strip", z.ZodTypeAny, {
796
+ name: string;
797
+ orgId: string;
798
+ teamId: string;
799
+ }, {
800
+ name: string;
801
+ orgId: string;
802
+ teamId: string;
803
+ }>;
804
+ export type TeamCreateResponse = z.infer<typeof TeamCreateResponse>;
805
+ /** `GET /api/v1/teams/:teamId/workspaces`: the team's workspaces, oldest first. */
806
+ export declare const TeamWorkspaceListResponse: z.ZodObject<{
807
+ data: z.ZodArray<z.ZodObject<{
808
+ workspaceId: z.ZodString;
809
+ name: z.ZodString;
810
+ slug: z.ZodString;
811
+ planTier: z.ZodString;
812
+ createdAt: z.ZodString;
813
+ }, "strip", z.ZodTypeAny, {
814
+ workspaceId: string;
815
+ name: string;
816
+ createdAt: string;
817
+ planTier: string;
818
+ slug: string;
819
+ }, {
820
+ workspaceId: string;
821
+ name: string;
822
+ createdAt: string;
823
+ planTier: string;
824
+ slug: string;
825
+ }>, "many">;
826
+ }, "strip", z.ZodTypeAny, {
827
+ data: {
828
+ workspaceId: string;
829
+ name: string;
830
+ createdAt: string;
831
+ planTier: string;
832
+ slug: string;
833
+ }[];
834
+ }, {
835
+ data: {
836
+ workspaceId: string;
837
+ name: string;
838
+ createdAt: string;
839
+ planTier: string;
840
+ slug: string;
841
+ }[];
842
+ }>;
843
+ export type TeamWorkspaceListResponse = z.infer<typeof TeamWorkspaceListResponse>;
844
+ /** `POST /api/v1/teams/:teamId/workspaces`: the workspace created; the caller is its OWNER. */
845
+ export declare const TeamWorkspaceCreateResponse: z.ZodObject<{
846
+ workspaceId: z.ZodString;
847
+ teamId: z.ZodString;
848
+ orgId: z.ZodString;
849
+ name: z.ZodString;
850
+ }, "strip", z.ZodTypeAny, {
851
+ workspaceId: string;
852
+ name: string;
853
+ orgId: string;
854
+ teamId: string;
855
+ }, {
856
+ workspaceId: string;
857
+ name: string;
858
+ orgId: string;
859
+ teamId: string;
860
+ }>;
861
+ export type TeamWorkspaceCreateResponse = z.infer<typeof TeamWorkspaceCreateResponse>;
862
+ /** `GET /api/v1/members`: every member of the workspace, deactivated ones included. */
863
+ export declare const MemberListResponse: z.ZodObject<{
864
+ listProperty: z.ZodLiteral<"data">;
865
+ rowCase: z.ZodLiteral<"camel">;
866
+ } & {
867
+ data: z.ZodArray<z.ZodObject<{
868
+ memberId: z.ZodString;
869
+ workspaceId: z.ZodString;
870
+ email: z.ZodString;
871
+ displayName: z.ZodString;
872
+ role: z.ZodEnum<["OWNER", "ADMIN", "EM", "DEVELOPER", "VIEWER"]>;
873
+ isActive: z.ZodBoolean;
874
+ lastLoginAt: z.ZodNullable<z.ZodString>;
875
+ createdAt: z.ZodString;
876
+ }, "strip", z.ZodTypeAny, {
877
+ workspaceId: string;
878
+ email: string;
879
+ displayName: string;
880
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
881
+ memberId: string;
882
+ isActive: boolean;
883
+ createdAt: string;
884
+ lastLoginAt: string | null;
885
+ }, {
886
+ workspaceId: string;
887
+ email: string;
888
+ displayName: string;
889
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
890
+ memberId: string;
891
+ isActive: boolean;
892
+ createdAt: string;
893
+ lastLoginAt: string | null;
894
+ }>, "many">;
895
+ }, "strip", z.ZodTypeAny, {
896
+ data: {
897
+ workspaceId: string;
898
+ email: string;
899
+ displayName: string;
900
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
901
+ memberId: string;
902
+ isActive: boolean;
903
+ createdAt: string;
904
+ lastLoginAt: string | null;
905
+ }[];
906
+ listProperty: "data";
907
+ rowCase: "camel";
908
+ }, {
909
+ data: {
910
+ workspaceId: string;
911
+ email: string;
912
+ displayName: string;
913
+ role: "OWNER" | "ADMIN" | "EM" | "DEVELOPER" | "VIEWER";
914
+ memberId: string;
915
+ isActive: boolean;
916
+ createdAt: string;
917
+ lastLoginAt: string | null;
918
+ }[];
919
+ listProperty: "data";
920
+ rowCase: "camel";
921
+ }>;
922
+ export type MemberListResponse = z.infer<typeof MemberListResponse>;
923
+ /** `GET /api/v1/trial/status`: the workspace's plan, trial and billing term. */
924
+ export declare const TrialStatusResponse: z.ZodObject<{
925
+ tier: z.ZodString;
926
+ planName: z.ZodString;
927
+ trialExpiresAt: z.ZodNullable<z.ZodString>;
928
+ daysRemaining: z.ZodNumber;
929
+ isTrialActive: z.ZodBoolean;
930
+ features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
931
+ limits: z.ZodObject<{
932
+ maxTokensPerDay: z.ZodNumber;
933
+ maxSessionsPerDay: z.ZodNumber;
934
+ }, "strip", z.ZodTypeAny, {
935
+ maxTokensPerDay: number;
936
+ maxSessionsPerDay: number;
937
+ }, {
938
+ maxTokensPerDay: number;
939
+ maxSessionsPerDay: number;
940
+ }>;
941
+ billing: z.ZodNullable<z.ZodObject<{
942
+ interval: z.ZodEnum<["month", "year"]>;
943
+ termEndsAt: z.ZodNullable<z.ZodString>;
944
+ bookedChange: z.ZodNullable<z.ZodObject<{
945
+ tier: z.ZodString;
946
+ planName: z.ZodString;
947
+ interval: z.ZodEnum<["month", "year"]>;
948
+ effectiveAt: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ tier: string;
951
+ planName: string;
952
+ interval: "month" | "year";
953
+ effectiveAt: string;
954
+ }, {
955
+ tier: string;
956
+ planName: string;
957
+ interval: "month" | "year";
958
+ effectiveAt: string;
959
+ }>>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ interval: "month" | "year";
962
+ termEndsAt: string | null;
963
+ bookedChange: {
964
+ tier: string;
965
+ planName: string;
966
+ interval: "month" | "year";
967
+ effectiveAt: string;
968
+ } | null;
969
+ }, {
970
+ interval: "month" | "year";
971
+ termEndsAt: string | null;
972
+ bookedChange: {
973
+ tier: string;
974
+ planName: string;
975
+ interval: "month" | "year";
976
+ effectiveAt: string;
977
+ } | null;
978
+ }>>;
979
+ checkoutOpen: z.ZodBoolean;
980
+ }, "strip", z.ZodTypeAny, {
981
+ billing: {
982
+ interval: "month" | "year";
983
+ termEndsAt: string | null;
984
+ bookedChange: {
985
+ tier: string;
986
+ planName: string;
987
+ interval: "month" | "year";
988
+ effectiveAt: string;
989
+ } | null;
990
+ } | null;
991
+ trialExpiresAt: string | null;
992
+ tier: string;
993
+ planName: string;
994
+ daysRemaining: number;
995
+ isTrialActive: boolean;
996
+ features: Record<string, boolean>;
997
+ limits: {
998
+ maxTokensPerDay: number;
999
+ maxSessionsPerDay: number;
1000
+ };
1001
+ checkoutOpen: boolean;
1002
+ }, {
1003
+ billing: {
1004
+ interval: "month" | "year";
1005
+ termEndsAt: string | null;
1006
+ bookedChange: {
1007
+ tier: string;
1008
+ planName: string;
1009
+ interval: "month" | "year";
1010
+ effectiveAt: string;
1011
+ } | null;
1012
+ } | null;
1013
+ trialExpiresAt: string | null;
1014
+ tier: string;
1015
+ planName: string;
1016
+ daysRemaining: number;
1017
+ isTrialActive: boolean;
1018
+ features: Record<string, boolean>;
1019
+ limits: {
1020
+ maxTokensPerDay: number;
1021
+ maxSessionsPerDay: number;
1022
+ };
1023
+ checkoutOpen: boolean;
1024
+ }>;
1025
+ export type TrialStatusResponse = z.infer<typeof TrialStatusResponse>;
1026
+ /** `POST /api/v1/keys`: the key created, with its plaintext — returned once, never again. */
1027
+ export declare const ApiKeyCreateResponse: z.ZodObject<{
1028
+ keyId: z.ZodString;
1029
+ key: z.ZodString;
1030
+ keyPrefix: z.ZodString;
1031
+ label: z.ZodString;
1032
+ scopes: z.ZodArray<z.ZodString, "many">;
1033
+ allowedModels: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1034
+ expiresAt: z.ZodNullable<z.ZodString>;
1035
+ createdAt: z.ZodString;
1036
+ budgets: z.ZodArray<z.ZodObject<{
1037
+ period: z.ZodEnum<["day", "month"]>;
1038
+ limitUsd: z.ZodNumber;
1039
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ period: "day" | "month";
1042
+ limitUsd: number;
1043
+ enforcement: "hard" | "soft";
1044
+ }, {
1045
+ period: "day" | "month";
1046
+ limitUsd: number;
1047
+ enforcement: "hard" | "soft";
1048
+ }>, "many">;
1049
+ rateLimit: z.ZodObject<{
1050
+ rpm: z.ZodNullable<z.ZodNumber>;
1051
+ tpm: z.ZodNullable<z.ZodNumber>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ rpm: number | null;
1054
+ tpm: number | null;
1055
+ }, {
1056
+ rpm: number | null;
1057
+ tpm: number | null;
1058
+ }>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ key: string;
1061
+ label: string;
1062
+ scopes: string[];
1063
+ allowedModels: string[] | null;
1064
+ budgets: {
1065
+ period: "day" | "month";
1066
+ limitUsd: number;
1067
+ enforcement: "hard" | "soft";
1068
+ }[];
1069
+ rateLimit: {
1070
+ rpm: number | null;
1071
+ tpm: number | null;
1072
+ };
1073
+ createdAt: string;
1074
+ expiresAt: string | null;
1075
+ keyId: string;
1076
+ keyPrefix: string;
1077
+ }, {
1078
+ key: string;
1079
+ label: string;
1080
+ scopes: string[];
1081
+ allowedModels: string[] | null;
1082
+ budgets: {
1083
+ period: "day" | "month";
1084
+ limitUsd: number;
1085
+ enforcement: "hard" | "soft";
1086
+ }[];
1087
+ rateLimit: {
1088
+ rpm: number | null;
1089
+ tpm: number | null;
1090
+ };
1091
+ createdAt: string;
1092
+ expiresAt: string | null;
1093
+ keyId: string;
1094
+ keyPrefix: string;
1095
+ }>;
1096
+ export type ApiKeyCreateResponse = z.infer<typeof ApiKeyCreateResponse>;
1097
+ /** An API key without its secret (`apiKeyService.ts` `toApiKeyInfo`). */
1098
+ export declare const ApiKeyResponse: z.ZodObject<{
1099
+ keyId: z.ZodString;
1100
+ keyPrefix: z.ZodString;
1101
+ label: z.ZodString;
1102
+ scopes: z.ZodArray<z.ZodString, "many">;
1103
+ allowedModels: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1104
+ expiresAt: z.ZodNullable<z.ZodString>;
1105
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1106
+ revokedAt: z.ZodNullable<z.ZodString>;
1107
+ createdAt: z.ZodString;
1108
+ isServiceAccount: z.ZodBoolean;
1109
+ budgets: z.ZodArray<z.ZodObject<{
1110
+ period: z.ZodEnum<["day", "month"]>;
1111
+ limitUsd: z.ZodNumber;
1112
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ period: "day" | "month";
1115
+ limitUsd: number;
1116
+ enforcement: "hard" | "soft";
1117
+ }, {
1118
+ period: "day" | "month";
1119
+ limitUsd: number;
1120
+ enforcement: "hard" | "soft";
1121
+ }>, "many">;
1122
+ rateLimit: z.ZodObject<{
1123
+ rpm: z.ZodNullable<z.ZodNumber>;
1124
+ tpm: z.ZodNullable<z.ZodNumber>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ rpm: number | null;
1127
+ tpm: number | null;
1128
+ }, {
1129
+ rpm: number | null;
1130
+ tpm: number | null;
1131
+ }>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ label: string;
1134
+ scopes: string[];
1135
+ allowedModels: string[] | null;
1136
+ isServiceAccount: boolean;
1137
+ budgets: {
1138
+ period: "day" | "month";
1139
+ limitUsd: number;
1140
+ enforcement: "hard" | "soft";
1141
+ }[];
1142
+ rateLimit: {
1143
+ rpm: number | null;
1144
+ tpm: number | null;
1145
+ };
1146
+ createdAt: string;
1147
+ expiresAt: string | null;
1148
+ keyId: string;
1149
+ keyPrefix: string;
1150
+ lastUsedAt: string | null;
1151
+ revokedAt: string | null;
1152
+ }, {
1153
+ label: string;
1154
+ scopes: string[];
1155
+ allowedModels: string[] | null;
1156
+ isServiceAccount: boolean;
1157
+ budgets: {
1158
+ period: "day" | "month";
1159
+ limitUsd: number;
1160
+ enforcement: "hard" | "soft";
1161
+ }[];
1162
+ rateLimit: {
1163
+ rpm: number | null;
1164
+ tpm: number | null;
1165
+ };
1166
+ createdAt: string;
1167
+ expiresAt: string | null;
1168
+ keyId: string;
1169
+ keyPrefix: string;
1170
+ lastUsedAt: string | null;
1171
+ revokedAt: string | null;
1172
+ }>;
1173
+ export type ApiKeyResponse = z.infer<typeof ApiKeyResponse>;
1174
+ /** `GET /api/v1/keys`: the caller's own keys in the workspace, revoked ones included. */
1175
+ export declare const ApiKeyListResponse: z.ZodObject<{
1176
+ listProperty: z.ZodLiteral<"data">;
1177
+ rowCase: z.ZodLiteral<"camel">;
1178
+ } & {
1179
+ data: z.ZodArray<z.ZodObject<{
1180
+ keyId: z.ZodString;
1181
+ keyPrefix: z.ZodString;
1182
+ label: z.ZodString;
1183
+ scopes: z.ZodArray<z.ZodString, "many">;
1184
+ allowedModels: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1185
+ expiresAt: z.ZodNullable<z.ZodString>;
1186
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1187
+ revokedAt: z.ZodNullable<z.ZodString>;
1188
+ createdAt: z.ZodString;
1189
+ isServiceAccount: z.ZodBoolean;
1190
+ budgets: z.ZodArray<z.ZodObject<{
1191
+ period: z.ZodEnum<["day", "month"]>;
1192
+ limitUsd: z.ZodNumber;
1193
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ period: "day" | "month";
1196
+ limitUsd: number;
1197
+ enforcement: "hard" | "soft";
1198
+ }, {
1199
+ period: "day" | "month";
1200
+ limitUsd: number;
1201
+ enforcement: "hard" | "soft";
1202
+ }>, "many">;
1203
+ rateLimit: z.ZodObject<{
1204
+ rpm: z.ZodNullable<z.ZodNumber>;
1205
+ tpm: z.ZodNullable<z.ZodNumber>;
1206
+ }, "strip", z.ZodTypeAny, {
1207
+ rpm: number | null;
1208
+ tpm: number | null;
1209
+ }, {
1210
+ rpm: number | null;
1211
+ tpm: number | null;
1212
+ }>;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ label: string;
1215
+ scopes: string[];
1216
+ allowedModels: string[] | null;
1217
+ isServiceAccount: boolean;
1218
+ budgets: {
1219
+ period: "day" | "month";
1220
+ limitUsd: number;
1221
+ enforcement: "hard" | "soft";
1222
+ }[];
1223
+ rateLimit: {
1224
+ rpm: number | null;
1225
+ tpm: number | null;
1226
+ };
1227
+ createdAt: string;
1228
+ expiresAt: string | null;
1229
+ keyId: string;
1230
+ keyPrefix: string;
1231
+ lastUsedAt: string | null;
1232
+ revokedAt: string | null;
1233
+ }, {
1234
+ label: string;
1235
+ scopes: string[];
1236
+ allowedModels: string[] | null;
1237
+ isServiceAccount: boolean;
1238
+ budgets: {
1239
+ period: "day" | "month";
1240
+ limitUsd: number;
1241
+ enforcement: "hard" | "soft";
1242
+ }[];
1243
+ rateLimit: {
1244
+ rpm: number | null;
1245
+ tpm: number | null;
1246
+ };
1247
+ createdAt: string;
1248
+ expiresAt: string | null;
1249
+ keyId: string;
1250
+ keyPrefix: string;
1251
+ lastUsedAt: string | null;
1252
+ revokedAt: string | null;
1253
+ }>, "many">;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ data: {
1256
+ label: string;
1257
+ scopes: string[];
1258
+ allowedModels: string[] | null;
1259
+ isServiceAccount: boolean;
1260
+ budgets: {
1261
+ period: "day" | "month";
1262
+ limitUsd: number;
1263
+ enforcement: "hard" | "soft";
1264
+ }[];
1265
+ rateLimit: {
1266
+ rpm: number | null;
1267
+ tpm: number | null;
1268
+ };
1269
+ createdAt: string;
1270
+ expiresAt: string | null;
1271
+ keyId: string;
1272
+ keyPrefix: string;
1273
+ lastUsedAt: string | null;
1274
+ revokedAt: string | null;
1275
+ }[];
1276
+ listProperty: "data";
1277
+ rowCase: "camel";
1278
+ }, {
1279
+ data: {
1280
+ label: string;
1281
+ scopes: string[];
1282
+ allowedModels: string[] | null;
1283
+ isServiceAccount: boolean;
1284
+ budgets: {
1285
+ period: "day" | "month";
1286
+ limitUsd: number;
1287
+ enforcement: "hard" | "soft";
1288
+ }[];
1289
+ rateLimit: {
1290
+ rpm: number | null;
1291
+ tpm: number | null;
1292
+ };
1293
+ createdAt: string;
1294
+ expiresAt: string | null;
1295
+ keyId: string;
1296
+ keyPrefix: string;
1297
+ lastUsedAt: string | null;
1298
+ revokedAt: string | null;
1299
+ }[];
1300
+ listProperty: "data";
1301
+ rowCase: "camel";
1302
+ }>;
1303
+ export type ApiKeyListResponse = z.infer<typeof ApiKeyListResponse>;
1304
+ /** `DELETE /api/v1/keys/:id`: always `{ revoked: true }`, also when the caller had no such live key. */
1305
+ export declare const ApiKeyRevokeResponse: z.ZodObject<{
1306
+ revoked: z.ZodLiteral<true>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ revoked: true;
1309
+ }, {
1310
+ revoked: true;
1311
+ }>;
1312
+ export type ApiKeyRevokeResponse = z.infer<typeof ApiKeyRevokeResponse>;
1313
+ /** `GET /api/v1/budget`: the workspace's caps and its spend against them. */
1314
+ export declare const BudgetStatusResponse: z.ZodObject<{
1315
+ workspace_id: z.ZodString;
1316
+ monthly_budget_usd: z.ZodNumber;
1317
+ monthly_spend_usd: z.ZodNumber;
1318
+ daily_budget_usd: z.ZodNumber;
1319
+ daily_budget_is_default: z.ZodBoolean;
1320
+ daily_spend_usd: z.ZodNumber;
1321
+ pct_monthly_used: z.ZodNumber;
1322
+ pct_daily_used: z.ZodNumber;
1323
+ alert_threshold_pct: z.ZodNumber;
1324
+ daily_enforcement: z.ZodEnum<["hard", "soft"]>;
1325
+ monthly_enforcement: z.ZodEnum<["hard", "soft"]>;
1326
+ alert_triggered: z.ZodBoolean;
1327
+ budget_remaining_usd: z.ZodNumber;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ budget_remaining_usd: number;
1330
+ workspace_id: string;
1331
+ monthly_budget_usd: number;
1332
+ monthly_spend_usd: number;
1333
+ daily_budget_usd: number;
1334
+ daily_budget_is_default: boolean;
1335
+ daily_spend_usd: number;
1336
+ pct_monthly_used: number;
1337
+ pct_daily_used: number;
1338
+ alert_threshold_pct: number;
1339
+ daily_enforcement: "hard" | "soft";
1340
+ monthly_enforcement: "hard" | "soft";
1341
+ alert_triggered: boolean;
1342
+ }, {
1343
+ budget_remaining_usd: number;
1344
+ workspace_id: string;
1345
+ monthly_budget_usd: number;
1346
+ monthly_spend_usd: number;
1347
+ daily_budget_usd: number;
1348
+ daily_budget_is_default: boolean;
1349
+ daily_spend_usd: number;
1350
+ pct_monthly_used: number;
1351
+ pct_daily_used: number;
1352
+ alert_threshold_pct: number;
1353
+ daily_enforcement: "hard" | "soft";
1354
+ monthly_enforcement: "hard" | "soft";
1355
+ alert_triggered: boolean;
1356
+ }>;
1357
+ export type BudgetStatusResponse = z.infer<typeof BudgetStatusResponse>;
1358
+ /** `PUT /api/v1/budget`. */
1359
+ export declare const BudgetUpdateResponse: z.ZodObject<{
1360
+ updated: z.ZodLiteral<true>;
1361
+ workspace_id: z.ZodString;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ workspace_id: string;
1364
+ updated: true;
1365
+ }, {
1366
+ workspace_id: string;
1367
+ updated: true;
1368
+ }>;
1369
+ export type BudgetUpdateResponse = z.infer<typeof BudgetUpdateResponse>;
1370
+ /** `GET /api/v1/budget/keys`: each live key's budgets, rate limit and spend. */
1371
+ export declare const BudgetKeysResponse: z.ZodObject<{
1372
+ listProperty: z.ZodLiteral<"keys">;
1373
+ rowCase: z.ZodLiteral<"camel">;
1374
+ } & {
1375
+ keys: z.ZodArray<z.ZodObject<{
1376
+ keyId: z.ZodString;
1377
+ keyPrefix: z.ZodString;
1378
+ label: z.ZodString;
1379
+ memberId: z.ZodString;
1380
+ memberEmail: z.ZodString;
1381
+ budgets: z.ZodArray<z.ZodObject<{
1382
+ period: z.ZodEnum<["day", "month"]>;
1383
+ limitUsd: z.ZodNumber;
1384
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ period: "day" | "month";
1387
+ limitUsd: number;
1388
+ enforcement: "hard" | "soft";
1389
+ }, {
1390
+ period: "day" | "month";
1391
+ limitUsd: number;
1392
+ enforcement: "hard" | "soft";
1393
+ }>, "many">;
1394
+ rateLimit: z.ZodObject<{
1395
+ rpm: z.ZodNullable<z.ZodNumber>;
1396
+ tpm: z.ZodNullable<z.ZodNumber>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ rpm: number | null;
1399
+ tpm: number | null;
1400
+ }, {
1401
+ rpm: number | null;
1402
+ tpm: number | null;
1403
+ }>;
1404
+ spendTodayUsd: z.ZodNumber;
1405
+ spendThisMonthUsd: z.ZodNumber;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ label: string;
1408
+ budgets: {
1409
+ period: "day" | "month";
1410
+ limitUsd: number;
1411
+ enforcement: "hard" | "soft";
1412
+ }[];
1413
+ rateLimit: {
1414
+ rpm: number | null;
1415
+ tpm: number | null;
1416
+ };
1417
+ memberId: string;
1418
+ keyId: string;
1419
+ keyPrefix: string;
1420
+ memberEmail: string;
1421
+ spendTodayUsd: number;
1422
+ spendThisMonthUsd: number;
1423
+ }, {
1424
+ label: string;
1425
+ budgets: {
1426
+ period: "day" | "month";
1427
+ limitUsd: number;
1428
+ enforcement: "hard" | "soft";
1429
+ }[];
1430
+ rateLimit: {
1431
+ rpm: number | null;
1432
+ tpm: number | null;
1433
+ };
1434
+ memberId: string;
1435
+ keyId: string;
1436
+ keyPrefix: string;
1437
+ memberEmail: string;
1438
+ spendTodayUsd: number;
1439
+ spendThisMonthUsd: number;
1440
+ }>, "many">;
1441
+ dayResetsAt: z.ZodString;
1442
+ monthResetsAt: z.ZodString;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ keys: {
1445
+ label: string;
1446
+ budgets: {
1447
+ period: "day" | "month";
1448
+ limitUsd: number;
1449
+ enforcement: "hard" | "soft";
1450
+ }[];
1451
+ rateLimit: {
1452
+ rpm: number | null;
1453
+ tpm: number | null;
1454
+ };
1455
+ memberId: string;
1456
+ keyId: string;
1457
+ keyPrefix: string;
1458
+ memberEmail: string;
1459
+ spendTodayUsd: number;
1460
+ spendThisMonthUsd: number;
1461
+ }[];
1462
+ listProperty: "keys";
1463
+ rowCase: "camel";
1464
+ dayResetsAt: string;
1465
+ monthResetsAt: string;
1466
+ }, {
1467
+ keys: {
1468
+ label: string;
1469
+ budgets: {
1470
+ period: "day" | "month";
1471
+ limitUsd: number;
1472
+ enforcement: "hard" | "soft";
1473
+ }[];
1474
+ rateLimit: {
1475
+ rpm: number | null;
1476
+ tpm: number | null;
1477
+ };
1478
+ memberId: string;
1479
+ keyId: string;
1480
+ keyPrefix: string;
1481
+ memberEmail: string;
1482
+ spendTodayUsd: number;
1483
+ spendThisMonthUsd: number;
1484
+ }[];
1485
+ listProperty: "keys";
1486
+ rowCase: "camel";
1487
+ dayResetsAt: string;
1488
+ monthResetsAt: string;
1489
+ }>;
1490
+ export type BudgetKeysResponse = z.infer<typeof BudgetKeysResponse>;
1491
+ /** `GET /api/v1/budget/members`: the default member budget and each active member's budgets and spend. */
1492
+ export declare const BudgetMembersResponse: z.ZodObject<{
1493
+ listProperty: z.ZodLiteral<"members">;
1494
+ rowCase: z.ZodLiteral<"camel">;
1495
+ } & {
1496
+ defaultBudgets: z.ZodArray<z.ZodObject<{
1497
+ period: z.ZodEnum<["day", "month"]>;
1498
+ limitUsd: z.ZodNumber;
1499
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ period: "day" | "month";
1502
+ limitUsd: number;
1503
+ enforcement: "hard" | "soft";
1504
+ }, {
1505
+ period: "day" | "month";
1506
+ limitUsd: number;
1507
+ enforcement: "hard" | "soft";
1508
+ }>, "many">;
1509
+ members: z.ZodArray<z.ZodObject<{
1510
+ memberId: z.ZodString;
1511
+ email: z.ZodString;
1512
+ budgets: z.ZodArray<z.ZodObject<{
1513
+ period: z.ZodEnum<["day", "month"]>;
1514
+ limitUsd: z.ZodNumber;
1515
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ period: "day" | "month";
1518
+ limitUsd: number;
1519
+ enforcement: "hard" | "soft";
1520
+ }, {
1521
+ period: "day" | "month";
1522
+ limitUsd: number;
1523
+ enforcement: "hard" | "soft";
1524
+ }>, "many">;
1525
+ effectiveBudgets: z.ZodArray<z.ZodObject<{
1526
+ period: z.ZodEnum<["day", "month"]>;
1527
+ limitUsd: z.ZodNumber;
1528
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ period: "day" | "month";
1531
+ limitUsd: number;
1532
+ enforcement: "hard" | "soft";
1533
+ }, {
1534
+ period: "day" | "month";
1535
+ limitUsd: number;
1536
+ enforcement: "hard" | "soft";
1537
+ }>, "many">;
1538
+ spendTodayUsd: z.ZodNumber;
1539
+ spendThisMonthUsd: z.ZodNumber;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ email: string;
1542
+ budgets: {
1543
+ period: "day" | "month";
1544
+ limitUsd: number;
1545
+ enforcement: "hard" | "soft";
1546
+ }[];
1547
+ memberId: string;
1548
+ spendTodayUsd: number;
1549
+ spendThisMonthUsd: number;
1550
+ effectiveBudgets: {
1551
+ period: "day" | "month";
1552
+ limitUsd: number;
1553
+ enforcement: "hard" | "soft";
1554
+ }[];
1555
+ }, {
1556
+ email: string;
1557
+ budgets: {
1558
+ period: "day" | "month";
1559
+ limitUsd: number;
1560
+ enforcement: "hard" | "soft";
1561
+ }[];
1562
+ memberId: string;
1563
+ spendTodayUsd: number;
1564
+ spendThisMonthUsd: number;
1565
+ effectiveBudgets: {
1566
+ period: "day" | "month";
1567
+ limitUsd: number;
1568
+ enforcement: "hard" | "soft";
1569
+ }[];
1570
+ }>, "many">;
1571
+ dayResetsAt: z.ZodString;
1572
+ monthResetsAt: z.ZodString;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ members: {
1575
+ email: string;
1576
+ budgets: {
1577
+ period: "day" | "month";
1578
+ limitUsd: number;
1579
+ enforcement: "hard" | "soft";
1580
+ }[];
1581
+ memberId: string;
1582
+ spendTodayUsd: number;
1583
+ spendThisMonthUsd: number;
1584
+ effectiveBudgets: {
1585
+ period: "day" | "month";
1586
+ limitUsd: number;
1587
+ enforcement: "hard" | "soft";
1588
+ }[];
1589
+ }[];
1590
+ listProperty: "members";
1591
+ rowCase: "camel";
1592
+ dayResetsAt: string;
1593
+ monthResetsAt: string;
1594
+ defaultBudgets: {
1595
+ period: "day" | "month";
1596
+ limitUsd: number;
1597
+ enforcement: "hard" | "soft";
1598
+ }[];
1599
+ }, {
1600
+ members: {
1601
+ email: string;
1602
+ budgets: {
1603
+ period: "day" | "month";
1604
+ limitUsd: number;
1605
+ enforcement: "hard" | "soft";
1606
+ }[];
1607
+ memberId: string;
1608
+ spendTodayUsd: number;
1609
+ spendThisMonthUsd: number;
1610
+ effectiveBudgets: {
1611
+ period: "day" | "month";
1612
+ limitUsd: number;
1613
+ enforcement: "hard" | "soft";
1614
+ }[];
1615
+ }[];
1616
+ listProperty: "members";
1617
+ rowCase: "camel";
1618
+ dayResetsAt: string;
1619
+ monthResetsAt: string;
1620
+ defaultBudgets: {
1621
+ period: "day" | "month";
1622
+ limitUsd: number;
1623
+ enforcement: "hard" | "soft";
1624
+ }[];
1625
+ }>;
1626
+ export type BudgetMembersResponse = z.infer<typeof BudgetMembersResponse>;
1627
+ /** `PUT` and `DELETE /api/v1/budget/members/:memberId`: the member's (or `default`'s) budgets now; empty after a delete. */
1628
+ export declare const MemberBudgetsResponse: z.ZodObject<{
1629
+ memberId: z.ZodString;
1630
+ budgets: z.ZodArray<z.ZodObject<{
1631
+ period: z.ZodEnum<["day", "month"]>;
1632
+ limitUsd: z.ZodNumber;
1633
+ enforcement: z.ZodEnum<["hard", "soft"]>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ period: "day" | "month";
1636
+ limitUsd: number;
1637
+ enforcement: "hard" | "soft";
1638
+ }, {
1639
+ period: "day" | "month";
1640
+ limitUsd: number;
1641
+ enforcement: "hard" | "soft";
1642
+ }>, "many">;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ budgets: {
1645
+ period: "day" | "month";
1646
+ limitUsd: number;
1647
+ enforcement: "hard" | "soft";
1648
+ }[];
1649
+ memberId: string;
1650
+ }, {
1651
+ budgets: {
1652
+ period: "day" | "month";
1653
+ limitUsd: number;
1654
+ enforcement: "hard" | "soft";
1655
+ }[];
1656
+ memberId: string;
1657
+ }>;
1658
+ export type MemberBudgetsResponse = z.infer<typeof MemberBudgetsResponse>;
1659
+ //# sourceMappingURL=identity.d.ts.map