@sixb/server 0.1.6 → 0.1.7

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 (74) hide show
  1. package/dist/auth/public-routes.d.ts.map +1 -1
  2. package/dist/auth/scope.d.ts +6 -2
  3. package/dist/auth/scope.d.ts.map +1 -1
  4. package/dist/files/content.d.ts +8 -0
  5. package/dist/files/content.d.ts.map +1 -1
  6. package/dist/index.js +2492 -1575
  7. package/dist/index.js.map +22 -20
  8. package/dist/models/display.d.ts +22 -0
  9. package/dist/models/display.d.ts.map +1 -0
  10. package/dist/routes/action-runs.d.ts +2 -0
  11. package/dist/routes/action-runs.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +1 -0
  13. package/dist/routes/actions.d.ts.map +1 -1
  14. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  15. package/dist/routes/agents.d.ts +99 -89
  16. package/dist/routes/agents.d.ts.map +1 -1
  17. package/dist/routes/ai-accounting.d.ts.map +1 -1
  18. package/dist/routes/auth.d.ts +134 -15
  19. package/dist/routes/auth.d.ts.map +1 -1
  20. package/dist/routes/events.d.ts +3 -3
  21. package/dist/routes/files.d.ts +1 -0
  22. package/dist/routes/files.d.ts.map +1 -1
  23. package/dist/routes/models.d.ts +18 -1
  24. package/dist/routes/models.d.ts.map +1 -1
  25. package/dist/routes/objects.d.ts +3 -1
  26. package/dist/routes/objects.d.ts.map +1 -1
  27. package/dist/routes/pipelines.d.ts +2 -1
  28. package/dist/routes/pipelines.d.ts.map +1 -1
  29. package/dist/routes/rules.d.ts +1 -1
  30. package/dist/routes/syncs.d.ts +1 -0
  31. package/dist/routes/syncs.d.ts.map +1 -1
  32. package/dist/routes/workflows.d.ts +57 -54
  33. package/dist/routes/workflows.d.ts.map +1 -1
  34. package/dist/routes/ws/logs.d.ts +4 -4
  35. package/dist/schemas/agents.d.ts +378 -215
  36. package/dist/schemas/agents.d.ts.map +1 -1
  37. package/dist/schemas/ai-accounting.d.ts +1847 -295
  38. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  39. package/dist/schemas/ai-limits.d.ts +2210 -0
  40. package/dist/schemas/ai-limits.d.ts.map +1 -0
  41. package/dist/schemas/auth.d.ts +155 -72
  42. package/dist/schemas/auth.d.ts.map +1 -1
  43. package/dist/schemas/events.d.ts +6 -6
  44. package/dist/schemas/files.d.ts +3 -0
  45. package/dist/schemas/files.d.ts.map +1 -1
  46. package/dist/schemas/models.d.ts +214 -14
  47. package/dist/schemas/models.d.ts.map +1 -1
  48. package/dist/schemas/objects.d.ts +4 -4
  49. package/dist/schemas/pipelines.d.ts +6 -6
  50. package/dist/schemas/rules.d.ts +6 -6
  51. package/dist/schemas/workflows.d.ts +196 -206
  52. package/dist/schemas/workflows.d.ts.map +1 -1
  53. package/dist/utils/http.d.ts +8 -4
  54. package/dist/utils/http.d.ts.map +1 -1
  55. package/package.json +4 -4
  56. package/src/auth/public-routes.ts +18 -0
  57. package/src/auth/scope.ts +3 -2
  58. package/src/files/content.ts +39 -6
  59. package/src/models/display.ts +91 -0
  60. package/src/routes/agent-api-gateway.ts +137 -38
  61. package/src/routes/agents.ts +58 -83
  62. package/src/routes/ai-accounting.ts +414 -23
  63. package/src/routes/auth.ts +280 -1
  64. package/src/routes/models.ts +12 -4
  65. package/src/routes/workflows.ts +3 -5
  66. package/src/routes/ws/agents.ts +17 -6
  67. package/src/schemas/agents.ts +40 -49
  68. package/src/schemas/ai-accounting.ts +88 -19
  69. package/src/schemas/ai-limits.ts +116 -0
  70. package/src/schemas/auth.ts +32 -0
  71. package/src/schemas/files.ts +1 -0
  72. package/src/schemas/models.ts +33 -5
  73. package/src/schemas/workflows.ts +0 -2
  74. package/src/utils/http.ts +33 -2
@@ -0,0 +1,2210 @@
1
+ import { z } from "zod";
2
+ export declare const AiLimitSubjectSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"project">;
4
+ }, "strip", z.ZodTypeAny, {
5
+ type: "project";
6
+ }, {
7
+ type: "project";
8
+ }>, z.ZodObject<{
9
+ type: z.ZodLiteral<"group">;
10
+ id: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ type: "group";
14
+ }, {
15
+ id: string;
16
+ type: "group";
17
+ }>, z.ZodObject<{
18
+ type: z.ZodLiteral<"user">;
19
+ id: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ id: string;
22
+ type: "user";
23
+ }, {
24
+ id: string;
25
+ type: "user";
26
+ }>, z.ZodObject<{
27
+ type: z.ZodLiteral<"serviceAccount">;
28
+ id: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id: string;
31
+ type: "serviceAccount";
32
+ }, {
33
+ id: string;
34
+ type: "serviceAccount";
35
+ }>]>;
36
+ export declare const AiLimitQuantitySchema: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
37
+ meter: z.ZodLiteral<"tokens.total">;
38
+ amount: z.ZodNumber;
39
+ }, "strip", z.ZodTypeAny, {
40
+ meter: "tokens.total";
41
+ amount: number;
42
+ }, {
43
+ meter: "tokens.total";
44
+ amount: number;
45
+ }>, z.ZodObject<{
46
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
47
+ amount: z.ZodObject<{
48
+ amountNanos: z.ZodString;
49
+ } & {
50
+ currency: z.ZodLiteral<"USD">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ currency: "USD";
53
+ amountNanos: string;
54
+ }, {
55
+ currency: "USD";
56
+ amountNanos: string;
57
+ }>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ meter: "cost.catalogEstimated";
60
+ amount: {
61
+ currency: "USD";
62
+ amountNanos: string;
63
+ };
64
+ }, {
65
+ meter: "cost.catalogEstimated";
66
+ amount: {
67
+ currency: "USD";
68
+ amountNanos: string;
69
+ };
70
+ }>]>;
71
+ export declare const AiLimitPolicySchema: z.ZodObject<{
72
+ id: z.ZodString;
73
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
74
+ type: z.ZodLiteral<"project">;
75
+ }, "strip", z.ZodTypeAny, {
76
+ type: "project";
77
+ }, {
78
+ type: "project";
79
+ }>, z.ZodObject<{
80
+ type: z.ZodLiteral<"group">;
81
+ id: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ id: string;
84
+ type: "group";
85
+ }, {
86
+ id: string;
87
+ type: "group";
88
+ }>, z.ZodObject<{
89
+ type: z.ZodLiteral<"user">;
90
+ id: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ id: string;
93
+ type: "user";
94
+ }, {
95
+ id: string;
96
+ type: "user";
97
+ }>, z.ZodObject<{
98
+ type: z.ZodLiteral<"serviceAccount">;
99
+ id: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ type: "serviceAccount";
103
+ }, {
104
+ id: string;
105
+ type: "serviceAccount";
106
+ }>]>;
107
+ limit: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
108
+ meter: z.ZodLiteral<"tokens.total">;
109
+ amount: z.ZodNumber;
110
+ }, "strip", z.ZodTypeAny, {
111
+ meter: "tokens.total";
112
+ amount: number;
113
+ }, {
114
+ meter: "tokens.total";
115
+ amount: number;
116
+ }>, z.ZodObject<{
117
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
118
+ amount: z.ZodObject<{
119
+ amountNanos: z.ZodString;
120
+ } & {
121
+ currency: z.ZodLiteral<"USD">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ currency: "USD";
124
+ amountNanos: string;
125
+ }, {
126
+ currency: "USD";
127
+ amountNanos: string;
128
+ }>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ meter: "cost.catalogEstimated";
131
+ amount: {
132
+ currency: "USD";
133
+ amountNanos: string;
134
+ };
135
+ }, {
136
+ meter: "cost.catalogEstimated";
137
+ amount: {
138
+ currency: "USD";
139
+ amountNanos: string;
140
+ };
141
+ }>]>;
142
+ period: z.ZodLiteral<"calendarMonth">;
143
+ enabled: z.ZodBoolean;
144
+ createdAt: z.ZodString;
145
+ updatedAt: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ subject: {
149
+ type: "project";
150
+ } | {
151
+ id: string;
152
+ type: "group";
153
+ } | {
154
+ id: string;
155
+ type: "user";
156
+ } | {
157
+ id: string;
158
+ type: "serviceAccount";
159
+ };
160
+ limit: {
161
+ meter: "tokens.total";
162
+ amount: number;
163
+ } | {
164
+ meter: "cost.catalogEstimated";
165
+ amount: {
166
+ currency: "USD";
167
+ amountNanos: string;
168
+ };
169
+ };
170
+ createdAt: string;
171
+ updatedAt: string;
172
+ period: "calendarMonth";
173
+ enabled: boolean;
174
+ }, {
175
+ id: string;
176
+ subject: {
177
+ type: "project";
178
+ } | {
179
+ id: string;
180
+ type: "group";
181
+ } | {
182
+ id: string;
183
+ type: "user";
184
+ } | {
185
+ id: string;
186
+ type: "serviceAccount";
187
+ };
188
+ limit: {
189
+ meter: "tokens.total";
190
+ amount: number;
191
+ } | {
192
+ meter: "cost.catalogEstimated";
193
+ amount: {
194
+ currency: "USD";
195
+ amountNanos: string;
196
+ };
197
+ };
198
+ createdAt: string;
199
+ updatedAt: string;
200
+ period: "calendarMonth";
201
+ enabled: boolean;
202
+ }>;
203
+ export declare const AiLimitConsumptionSchema: z.ZodObject<{
204
+ actual: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
205
+ meter: z.ZodLiteral<"tokens.total">;
206
+ amount: z.ZodNumber;
207
+ }, "strip", z.ZodTypeAny, {
208
+ meter: "tokens.total";
209
+ amount: number;
210
+ }, {
211
+ meter: "tokens.total";
212
+ amount: number;
213
+ }>, z.ZodObject<{
214
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
215
+ amount: z.ZodObject<{
216
+ amountNanos: z.ZodString;
217
+ } & {
218
+ currency: z.ZodLiteral<"USD">;
219
+ }, "strip", z.ZodTypeAny, {
220
+ currency: "USD";
221
+ amountNanos: string;
222
+ }, {
223
+ currency: "USD";
224
+ amountNanos: string;
225
+ }>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ meter: "cost.catalogEstimated";
228
+ amount: {
229
+ currency: "USD";
230
+ amountNanos: string;
231
+ };
232
+ }, {
233
+ meter: "cost.catalogEstimated";
234
+ amount: {
235
+ currency: "USD";
236
+ amountNanos: string;
237
+ };
238
+ }>]>;
239
+ reserved: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
240
+ meter: z.ZodLiteral<"tokens.total">;
241
+ amount: z.ZodNumber;
242
+ }, "strip", z.ZodTypeAny, {
243
+ meter: "tokens.total";
244
+ amount: number;
245
+ }, {
246
+ meter: "tokens.total";
247
+ amount: number;
248
+ }>, z.ZodObject<{
249
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
250
+ amount: z.ZodObject<{
251
+ amountNanos: z.ZodString;
252
+ } & {
253
+ currency: z.ZodLiteral<"USD">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ currency: "USD";
256
+ amountNanos: string;
257
+ }, {
258
+ currency: "USD";
259
+ amountNanos: string;
260
+ }>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ meter: "cost.catalogEstimated";
263
+ amount: {
264
+ currency: "USD";
265
+ amountNanos: string;
266
+ };
267
+ }, {
268
+ meter: "cost.catalogEstimated";
269
+ amount: {
270
+ currency: "USD";
271
+ amountNanos: string;
272
+ };
273
+ }>]>;
274
+ unknown: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
275
+ meter: z.ZodLiteral<"tokens.total">;
276
+ amount: z.ZodNumber;
277
+ }, "strip", z.ZodTypeAny, {
278
+ meter: "tokens.total";
279
+ amount: number;
280
+ }, {
281
+ meter: "tokens.total";
282
+ amount: number;
283
+ }>, z.ZodObject<{
284
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
285
+ amount: z.ZodObject<{
286
+ amountNanos: z.ZodString;
287
+ } & {
288
+ currency: z.ZodLiteral<"USD">;
289
+ }, "strip", z.ZodTypeAny, {
290
+ currency: "USD";
291
+ amountNanos: string;
292
+ }, {
293
+ currency: "USD";
294
+ amountNanos: string;
295
+ }>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ meter: "cost.catalogEstimated";
298
+ amount: {
299
+ currency: "USD";
300
+ amountNanos: string;
301
+ };
302
+ }, {
303
+ meter: "cost.catalogEstimated";
304
+ amount: {
305
+ currency: "USD";
306
+ amountNanos: string;
307
+ };
308
+ }>]>;
309
+ remaining: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
310
+ meter: z.ZodLiteral<"tokens.total">;
311
+ amount: z.ZodNumber;
312
+ }, "strip", z.ZodTypeAny, {
313
+ meter: "tokens.total";
314
+ amount: number;
315
+ }, {
316
+ meter: "tokens.total";
317
+ amount: number;
318
+ }>, z.ZodObject<{
319
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
320
+ amount: z.ZodObject<{
321
+ amountNanos: z.ZodString;
322
+ } & {
323
+ currency: z.ZodLiteral<"USD">;
324
+ }, "strip", z.ZodTypeAny, {
325
+ currency: "USD";
326
+ amountNanos: string;
327
+ }, {
328
+ currency: "USD";
329
+ amountNanos: string;
330
+ }>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ meter: "cost.catalogEstimated";
333
+ amount: {
334
+ currency: "USD";
335
+ amountNanos: string;
336
+ };
337
+ }, {
338
+ meter: "cost.catalogEstimated";
339
+ amount: {
340
+ currency: "USD";
341
+ amountNanos: string;
342
+ };
343
+ }>]>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ unknown: {
346
+ meter: "tokens.total";
347
+ amount: number;
348
+ } | {
349
+ meter: "cost.catalogEstimated";
350
+ amount: {
351
+ currency: "USD";
352
+ amountNanos: string;
353
+ };
354
+ };
355
+ actual: {
356
+ meter: "tokens.total";
357
+ amount: number;
358
+ } | {
359
+ meter: "cost.catalogEstimated";
360
+ amount: {
361
+ currency: "USD";
362
+ amountNanos: string;
363
+ };
364
+ };
365
+ reserved: {
366
+ meter: "tokens.total";
367
+ amount: number;
368
+ } | {
369
+ meter: "cost.catalogEstimated";
370
+ amount: {
371
+ currency: "USD";
372
+ amountNanos: string;
373
+ };
374
+ };
375
+ remaining: {
376
+ meter: "tokens.total";
377
+ amount: number;
378
+ } | {
379
+ meter: "cost.catalogEstimated";
380
+ amount: {
381
+ currency: "USD";
382
+ amountNanos: string;
383
+ };
384
+ };
385
+ }, {
386
+ unknown: {
387
+ meter: "tokens.total";
388
+ amount: number;
389
+ } | {
390
+ meter: "cost.catalogEstimated";
391
+ amount: {
392
+ currency: "USD";
393
+ amountNanos: string;
394
+ };
395
+ };
396
+ actual: {
397
+ meter: "tokens.total";
398
+ amount: number;
399
+ } | {
400
+ meter: "cost.catalogEstimated";
401
+ amount: {
402
+ currency: "USD";
403
+ amountNanos: string;
404
+ };
405
+ };
406
+ reserved: {
407
+ meter: "tokens.total";
408
+ amount: number;
409
+ } | {
410
+ meter: "cost.catalogEstimated";
411
+ amount: {
412
+ currency: "USD";
413
+ amountNanos: string;
414
+ };
415
+ };
416
+ remaining: {
417
+ meter: "tokens.total";
418
+ amount: number;
419
+ } | {
420
+ meter: "cost.catalogEstimated";
421
+ amount: {
422
+ currency: "USD";
423
+ amountNanos: string;
424
+ };
425
+ };
426
+ }>;
427
+ export declare const AiLimitPolicyStatusSchema: z.ZodObject<{
428
+ policy: z.ZodObject<{
429
+ id: z.ZodString;
430
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
431
+ type: z.ZodLiteral<"project">;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: "project";
434
+ }, {
435
+ type: "project";
436
+ }>, z.ZodObject<{
437
+ type: z.ZodLiteral<"group">;
438
+ id: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ id: string;
441
+ type: "group";
442
+ }, {
443
+ id: string;
444
+ type: "group";
445
+ }>, z.ZodObject<{
446
+ type: z.ZodLiteral<"user">;
447
+ id: z.ZodString;
448
+ }, "strip", z.ZodTypeAny, {
449
+ id: string;
450
+ type: "user";
451
+ }, {
452
+ id: string;
453
+ type: "user";
454
+ }>, z.ZodObject<{
455
+ type: z.ZodLiteral<"serviceAccount">;
456
+ id: z.ZodString;
457
+ }, "strip", z.ZodTypeAny, {
458
+ id: string;
459
+ type: "serviceAccount";
460
+ }, {
461
+ id: string;
462
+ type: "serviceAccount";
463
+ }>]>;
464
+ limit: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
465
+ meter: z.ZodLiteral<"tokens.total">;
466
+ amount: z.ZodNumber;
467
+ }, "strip", z.ZodTypeAny, {
468
+ meter: "tokens.total";
469
+ amount: number;
470
+ }, {
471
+ meter: "tokens.total";
472
+ amount: number;
473
+ }>, z.ZodObject<{
474
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
475
+ amount: z.ZodObject<{
476
+ amountNanos: z.ZodString;
477
+ } & {
478
+ currency: z.ZodLiteral<"USD">;
479
+ }, "strip", z.ZodTypeAny, {
480
+ currency: "USD";
481
+ amountNanos: string;
482
+ }, {
483
+ currency: "USD";
484
+ amountNanos: string;
485
+ }>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ meter: "cost.catalogEstimated";
488
+ amount: {
489
+ currency: "USD";
490
+ amountNanos: string;
491
+ };
492
+ }, {
493
+ meter: "cost.catalogEstimated";
494
+ amount: {
495
+ currency: "USD";
496
+ amountNanos: string;
497
+ };
498
+ }>]>;
499
+ period: z.ZodLiteral<"calendarMonth">;
500
+ enabled: z.ZodBoolean;
501
+ createdAt: z.ZodString;
502
+ updatedAt: z.ZodString;
503
+ }, "strip", z.ZodTypeAny, {
504
+ id: string;
505
+ subject: {
506
+ type: "project";
507
+ } | {
508
+ id: string;
509
+ type: "group";
510
+ } | {
511
+ id: string;
512
+ type: "user";
513
+ } | {
514
+ id: string;
515
+ type: "serviceAccount";
516
+ };
517
+ limit: {
518
+ meter: "tokens.total";
519
+ amount: number;
520
+ } | {
521
+ meter: "cost.catalogEstimated";
522
+ amount: {
523
+ currency: "USD";
524
+ amountNanos: string;
525
+ };
526
+ };
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ period: "calendarMonth";
530
+ enabled: boolean;
531
+ }, {
532
+ id: string;
533
+ subject: {
534
+ type: "project";
535
+ } | {
536
+ id: string;
537
+ type: "group";
538
+ } | {
539
+ id: string;
540
+ type: "user";
541
+ } | {
542
+ id: string;
543
+ type: "serviceAccount";
544
+ };
545
+ limit: {
546
+ meter: "tokens.total";
547
+ amount: number;
548
+ } | {
549
+ meter: "cost.catalogEstimated";
550
+ amount: {
551
+ currency: "USD";
552
+ amountNanos: string;
553
+ };
554
+ };
555
+ createdAt: string;
556
+ updatedAt: string;
557
+ period: "calendarMonth";
558
+ enabled: boolean;
559
+ }>;
560
+ period: z.ZodObject<{
561
+ kind: z.ZodLiteral<"calendarMonth">;
562
+ start: z.ZodString;
563
+ end: z.ZodString;
564
+ resetAt: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ kind: "calendarMonth";
567
+ start: string;
568
+ resetAt: string;
569
+ end: string;
570
+ }, {
571
+ kind: "calendarMonth";
572
+ start: string;
573
+ resetAt: string;
574
+ end: string;
575
+ }>;
576
+ consumption: z.ZodObject<{
577
+ actual: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
578
+ meter: z.ZodLiteral<"tokens.total">;
579
+ amount: z.ZodNumber;
580
+ }, "strip", z.ZodTypeAny, {
581
+ meter: "tokens.total";
582
+ amount: number;
583
+ }, {
584
+ meter: "tokens.total";
585
+ amount: number;
586
+ }>, z.ZodObject<{
587
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
588
+ amount: z.ZodObject<{
589
+ amountNanos: z.ZodString;
590
+ } & {
591
+ currency: z.ZodLiteral<"USD">;
592
+ }, "strip", z.ZodTypeAny, {
593
+ currency: "USD";
594
+ amountNanos: string;
595
+ }, {
596
+ currency: "USD";
597
+ amountNanos: string;
598
+ }>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ meter: "cost.catalogEstimated";
601
+ amount: {
602
+ currency: "USD";
603
+ amountNanos: string;
604
+ };
605
+ }, {
606
+ meter: "cost.catalogEstimated";
607
+ amount: {
608
+ currency: "USD";
609
+ amountNanos: string;
610
+ };
611
+ }>]>;
612
+ reserved: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
613
+ meter: z.ZodLiteral<"tokens.total">;
614
+ amount: z.ZodNumber;
615
+ }, "strip", z.ZodTypeAny, {
616
+ meter: "tokens.total";
617
+ amount: number;
618
+ }, {
619
+ meter: "tokens.total";
620
+ amount: number;
621
+ }>, z.ZodObject<{
622
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
623
+ amount: z.ZodObject<{
624
+ amountNanos: z.ZodString;
625
+ } & {
626
+ currency: z.ZodLiteral<"USD">;
627
+ }, "strip", z.ZodTypeAny, {
628
+ currency: "USD";
629
+ amountNanos: string;
630
+ }, {
631
+ currency: "USD";
632
+ amountNanos: string;
633
+ }>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ meter: "cost.catalogEstimated";
636
+ amount: {
637
+ currency: "USD";
638
+ amountNanos: string;
639
+ };
640
+ }, {
641
+ meter: "cost.catalogEstimated";
642
+ amount: {
643
+ currency: "USD";
644
+ amountNanos: string;
645
+ };
646
+ }>]>;
647
+ unknown: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
648
+ meter: z.ZodLiteral<"tokens.total">;
649
+ amount: z.ZodNumber;
650
+ }, "strip", z.ZodTypeAny, {
651
+ meter: "tokens.total";
652
+ amount: number;
653
+ }, {
654
+ meter: "tokens.total";
655
+ amount: number;
656
+ }>, z.ZodObject<{
657
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
658
+ amount: z.ZodObject<{
659
+ amountNanos: z.ZodString;
660
+ } & {
661
+ currency: z.ZodLiteral<"USD">;
662
+ }, "strip", z.ZodTypeAny, {
663
+ currency: "USD";
664
+ amountNanos: string;
665
+ }, {
666
+ currency: "USD";
667
+ amountNanos: string;
668
+ }>;
669
+ }, "strip", z.ZodTypeAny, {
670
+ meter: "cost.catalogEstimated";
671
+ amount: {
672
+ currency: "USD";
673
+ amountNanos: string;
674
+ };
675
+ }, {
676
+ meter: "cost.catalogEstimated";
677
+ amount: {
678
+ currency: "USD";
679
+ amountNanos: string;
680
+ };
681
+ }>]>;
682
+ remaining: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
683
+ meter: z.ZodLiteral<"tokens.total">;
684
+ amount: z.ZodNumber;
685
+ }, "strip", z.ZodTypeAny, {
686
+ meter: "tokens.total";
687
+ amount: number;
688
+ }, {
689
+ meter: "tokens.total";
690
+ amount: number;
691
+ }>, z.ZodObject<{
692
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
693
+ amount: z.ZodObject<{
694
+ amountNanos: z.ZodString;
695
+ } & {
696
+ currency: z.ZodLiteral<"USD">;
697
+ }, "strip", z.ZodTypeAny, {
698
+ currency: "USD";
699
+ amountNanos: string;
700
+ }, {
701
+ currency: "USD";
702
+ amountNanos: string;
703
+ }>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ meter: "cost.catalogEstimated";
706
+ amount: {
707
+ currency: "USD";
708
+ amountNanos: string;
709
+ };
710
+ }, {
711
+ meter: "cost.catalogEstimated";
712
+ amount: {
713
+ currency: "USD";
714
+ amountNanos: string;
715
+ };
716
+ }>]>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ unknown: {
719
+ meter: "tokens.total";
720
+ amount: number;
721
+ } | {
722
+ meter: "cost.catalogEstimated";
723
+ amount: {
724
+ currency: "USD";
725
+ amountNanos: string;
726
+ };
727
+ };
728
+ actual: {
729
+ meter: "tokens.total";
730
+ amount: number;
731
+ } | {
732
+ meter: "cost.catalogEstimated";
733
+ amount: {
734
+ currency: "USD";
735
+ amountNanos: string;
736
+ };
737
+ };
738
+ reserved: {
739
+ meter: "tokens.total";
740
+ amount: number;
741
+ } | {
742
+ meter: "cost.catalogEstimated";
743
+ amount: {
744
+ currency: "USD";
745
+ amountNanos: string;
746
+ };
747
+ };
748
+ remaining: {
749
+ meter: "tokens.total";
750
+ amount: number;
751
+ } | {
752
+ meter: "cost.catalogEstimated";
753
+ amount: {
754
+ currency: "USD";
755
+ amountNanos: string;
756
+ };
757
+ };
758
+ }, {
759
+ unknown: {
760
+ meter: "tokens.total";
761
+ amount: number;
762
+ } | {
763
+ meter: "cost.catalogEstimated";
764
+ amount: {
765
+ currency: "USD";
766
+ amountNanos: string;
767
+ };
768
+ };
769
+ actual: {
770
+ meter: "tokens.total";
771
+ amount: number;
772
+ } | {
773
+ meter: "cost.catalogEstimated";
774
+ amount: {
775
+ currency: "USD";
776
+ amountNanos: string;
777
+ };
778
+ };
779
+ reserved: {
780
+ meter: "tokens.total";
781
+ amount: number;
782
+ } | {
783
+ meter: "cost.catalogEstimated";
784
+ amount: {
785
+ currency: "USD";
786
+ amountNanos: string;
787
+ };
788
+ };
789
+ remaining: {
790
+ meter: "tokens.total";
791
+ amount: number;
792
+ } | {
793
+ meter: "cost.catalogEstimated";
794
+ amount: {
795
+ currency: "USD";
796
+ amountNanos: string;
797
+ };
798
+ };
799
+ }>;
800
+ accountingStatus: z.ZodEnum<["complete", "unavailable"]>;
801
+ exhausted: z.ZodBoolean;
802
+ orphaned: z.ZodBoolean;
803
+ }, "strip", z.ZodTypeAny, {
804
+ period: {
805
+ kind: "calendarMonth";
806
+ start: string;
807
+ resetAt: string;
808
+ end: string;
809
+ };
810
+ policy: {
811
+ id: string;
812
+ subject: {
813
+ type: "project";
814
+ } | {
815
+ id: string;
816
+ type: "group";
817
+ } | {
818
+ id: string;
819
+ type: "user";
820
+ } | {
821
+ id: string;
822
+ type: "serviceAccount";
823
+ };
824
+ limit: {
825
+ meter: "tokens.total";
826
+ amount: number;
827
+ } | {
828
+ meter: "cost.catalogEstimated";
829
+ amount: {
830
+ currency: "USD";
831
+ amountNanos: string;
832
+ };
833
+ };
834
+ createdAt: string;
835
+ updatedAt: string;
836
+ period: "calendarMonth";
837
+ enabled: boolean;
838
+ };
839
+ consumption: {
840
+ unknown: {
841
+ meter: "tokens.total";
842
+ amount: number;
843
+ } | {
844
+ meter: "cost.catalogEstimated";
845
+ amount: {
846
+ currency: "USD";
847
+ amountNanos: string;
848
+ };
849
+ };
850
+ actual: {
851
+ meter: "tokens.total";
852
+ amount: number;
853
+ } | {
854
+ meter: "cost.catalogEstimated";
855
+ amount: {
856
+ currency: "USD";
857
+ amountNanos: string;
858
+ };
859
+ };
860
+ reserved: {
861
+ meter: "tokens.total";
862
+ amount: number;
863
+ } | {
864
+ meter: "cost.catalogEstimated";
865
+ amount: {
866
+ currency: "USD";
867
+ amountNanos: string;
868
+ };
869
+ };
870
+ remaining: {
871
+ meter: "tokens.total";
872
+ amount: number;
873
+ } | {
874
+ meter: "cost.catalogEstimated";
875
+ amount: {
876
+ currency: "USD";
877
+ amountNanos: string;
878
+ };
879
+ };
880
+ };
881
+ accountingStatus: "complete" | "unavailable";
882
+ exhausted: boolean;
883
+ orphaned: boolean;
884
+ }, {
885
+ period: {
886
+ kind: "calendarMonth";
887
+ start: string;
888
+ resetAt: string;
889
+ end: string;
890
+ };
891
+ policy: {
892
+ id: string;
893
+ subject: {
894
+ type: "project";
895
+ } | {
896
+ id: string;
897
+ type: "group";
898
+ } | {
899
+ id: string;
900
+ type: "user";
901
+ } | {
902
+ id: string;
903
+ type: "serviceAccount";
904
+ };
905
+ limit: {
906
+ meter: "tokens.total";
907
+ amount: number;
908
+ } | {
909
+ meter: "cost.catalogEstimated";
910
+ amount: {
911
+ currency: "USD";
912
+ amountNanos: string;
913
+ };
914
+ };
915
+ createdAt: string;
916
+ updatedAt: string;
917
+ period: "calendarMonth";
918
+ enabled: boolean;
919
+ };
920
+ consumption: {
921
+ unknown: {
922
+ meter: "tokens.total";
923
+ amount: number;
924
+ } | {
925
+ meter: "cost.catalogEstimated";
926
+ amount: {
927
+ currency: "USD";
928
+ amountNanos: string;
929
+ };
930
+ };
931
+ actual: {
932
+ meter: "tokens.total";
933
+ amount: number;
934
+ } | {
935
+ meter: "cost.catalogEstimated";
936
+ amount: {
937
+ currency: "USD";
938
+ amountNanos: string;
939
+ };
940
+ };
941
+ reserved: {
942
+ meter: "tokens.total";
943
+ amount: number;
944
+ } | {
945
+ meter: "cost.catalogEstimated";
946
+ amount: {
947
+ currency: "USD";
948
+ amountNanos: string;
949
+ };
950
+ };
951
+ remaining: {
952
+ meter: "tokens.total";
953
+ amount: number;
954
+ } | {
955
+ meter: "cost.catalogEstimated";
956
+ amount: {
957
+ currency: "USD";
958
+ amountNanos: string;
959
+ };
960
+ };
961
+ };
962
+ accountingStatus: "complete" | "unavailable";
963
+ exhausted: boolean;
964
+ orphaned: boolean;
965
+ }>;
966
+ export declare const AiLimitCapabilitiesSchema: z.ZodObject<{
967
+ manage: z.ZodBoolean;
968
+ }, "strip", z.ZodTypeAny, {
969
+ manage: boolean;
970
+ }, {
971
+ manage: boolean;
972
+ }>;
973
+ export declare const AiLimitSubjectOptionsResponseSchema: z.ZodObject<{
974
+ groups: z.ZodArray<z.ZodObject<{
975
+ id: z.ZodString;
976
+ label: z.ZodOptional<z.ZodString>;
977
+ description: z.ZodOptional<z.ZodString>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ id: string;
980
+ description?: string | undefined;
981
+ label?: string | undefined;
982
+ }, {
983
+ id: string;
984
+ description?: string | undefined;
985
+ label?: string | undefined;
986
+ }>, "many">;
987
+ users: z.ZodArray<z.ZodObject<{
988
+ id: z.ZodString;
989
+ email: z.ZodString;
990
+ displayName: z.ZodOptional<z.ZodString>;
991
+ status: z.ZodEnum<["active", "suspended"]>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ status: "active" | "suspended";
994
+ id: string;
995
+ email: string;
996
+ displayName?: string | undefined;
997
+ }, {
998
+ status: "active" | "suspended";
999
+ id: string;
1000
+ email: string;
1001
+ displayName?: string | undefined;
1002
+ }>, "many">;
1003
+ serviceAccounts: z.ZodArray<z.ZodObject<{
1004
+ id: z.ZodString;
1005
+ name: z.ZodString;
1006
+ description: z.ZodOptional<z.ZodString>;
1007
+ status: z.ZodEnum<["active", "suspended"]>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ status: "active" | "suspended";
1010
+ id: string;
1011
+ name: string;
1012
+ description?: string | undefined;
1013
+ }, {
1014
+ status: "active" | "suspended";
1015
+ id: string;
1016
+ name: string;
1017
+ description?: string | undefined;
1018
+ }>, "many">;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ groups: {
1021
+ id: string;
1022
+ description?: string | undefined;
1023
+ label?: string | undefined;
1024
+ }[];
1025
+ users: {
1026
+ status: "active" | "suspended";
1027
+ id: string;
1028
+ email: string;
1029
+ displayName?: string | undefined;
1030
+ }[];
1031
+ serviceAccounts: {
1032
+ status: "active" | "suspended";
1033
+ id: string;
1034
+ name: string;
1035
+ description?: string | undefined;
1036
+ }[];
1037
+ }, {
1038
+ groups: {
1039
+ id: string;
1040
+ description?: string | undefined;
1041
+ label?: string | undefined;
1042
+ }[];
1043
+ users: {
1044
+ status: "active" | "suspended";
1045
+ id: string;
1046
+ email: string;
1047
+ displayName?: string | undefined;
1048
+ }[];
1049
+ serviceAccounts: {
1050
+ status: "active" | "suspended";
1051
+ id: string;
1052
+ name: string;
1053
+ description?: string | undefined;
1054
+ }[];
1055
+ }>;
1056
+ export declare const AiLimitListQuerySchema: z.ZodObject<{
1057
+ includeDisabled: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ includeDisabled?: "true" | "false" | undefined;
1060
+ }, {
1061
+ includeDisabled?: "true" | "false" | undefined;
1062
+ }>;
1063
+ export declare const AiLimitStatusQuerySchema: z.ZodObject<{
1064
+ includeDisabled: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ includeDisabled?: "true" | "false" | undefined;
1067
+ }, {
1068
+ includeDisabled?: "true" | "false" | undefined;
1069
+ }>;
1070
+ export declare const AiLimitPolicyListResponseSchema: z.ZodObject<{
1071
+ items: z.ZodArray<z.ZodObject<{
1072
+ id: z.ZodString;
1073
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1074
+ type: z.ZodLiteral<"project">;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ type: "project";
1077
+ }, {
1078
+ type: "project";
1079
+ }>, z.ZodObject<{
1080
+ type: z.ZodLiteral<"group">;
1081
+ id: z.ZodString;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ id: string;
1084
+ type: "group";
1085
+ }, {
1086
+ id: string;
1087
+ type: "group";
1088
+ }>, z.ZodObject<{
1089
+ type: z.ZodLiteral<"user">;
1090
+ id: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ id: string;
1093
+ type: "user";
1094
+ }, {
1095
+ id: string;
1096
+ type: "user";
1097
+ }>, z.ZodObject<{
1098
+ type: z.ZodLiteral<"serviceAccount">;
1099
+ id: z.ZodString;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ id: string;
1102
+ type: "serviceAccount";
1103
+ }, {
1104
+ id: string;
1105
+ type: "serviceAccount";
1106
+ }>]>;
1107
+ limit: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1108
+ meter: z.ZodLiteral<"tokens.total">;
1109
+ amount: z.ZodNumber;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ meter: "tokens.total";
1112
+ amount: number;
1113
+ }, {
1114
+ meter: "tokens.total";
1115
+ amount: number;
1116
+ }>, z.ZodObject<{
1117
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1118
+ amount: z.ZodObject<{
1119
+ amountNanos: z.ZodString;
1120
+ } & {
1121
+ currency: z.ZodLiteral<"USD">;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ currency: "USD";
1124
+ amountNanos: string;
1125
+ }, {
1126
+ currency: "USD";
1127
+ amountNanos: string;
1128
+ }>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ meter: "cost.catalogEstimated";
1131
+ amount: {
1132
+ currency: "USD";
1133
+ amountNanos: string;
1134
+ };
1135
+ }, {
1136
+ meter: "cost.catalogEstimated";
1137
+ amount: {
1138
+ currency: "USD";
1139
+ amountNanos: string;
1140
+ };
1141
+ }>]>;
1142
+ period: z.ZodLiteral<"calendarMonth">;
1143
+ enabled: z.ZodBoolean;
1144
+ createdAt: z.ZodString;
1145
+ updatedAt: z.ZodString;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ id: string;
1148
+ subject: {
1149
+ type: "project";
1150
+ } | {
1151
+ id: string;
1152
+ type: "group";
1153
+ } | {
1154
+ id: string;
1155
+ type: "user";
1156
+ } | {
1157
+ id: string;
1158
+ type: "serviceAccount";
1159
+ };
1160
+ limit: {
1161
+ meter: "tokens.total";
1162
+ amount: number;
1163
+ } | {
1164
+ meter: "cost.catalogEstimated";
1165
+ amount: {
1166
+ currency: "USD";
1167
+ amountNanos: string;
1168
+ };
1169
+ };
1170
+ createdAt: string;
1171
+ updatedAt: string;
1172
+ period: "calendarMonth";
1173
+ enabled: boolean;
1174
+ }, {
1175
+ id: string;
1176
+ subject: {
1177
+ type: "project";
1178
+ } | {
1179
+ id: string;
1180
+ type: "group";
1181
+ } | {
1182
+ id: string;
1183
+ type: "user";
1184
+ } | {
1185
+ id: string;
1186
+ type: "serviceAccount";
1187
+ };
1188
+ limit: {
1189
+ meter: "tokens.total";
1190
+ amount: number;
1191
+ } | {
1192
+ meter: "cost.catalogEstimated";
1193
+ amount: {
1194
+ currency: "USD";
1195
+ amountNanos: string;
1196
+ };
1197
+ };
1198
+ createdAt: string;
1199
+ updatedAt: string;
1200
+ period: "calendarMonth";
1201
+ enabled: boolean;
1202
+ }>, "many">;
1203
+ capabilities: z.ZodObject<{
1204
+ manage: z.ZodBoolean;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ manage: boolean;
1207
+ }, {
1208
+ manage: boolean;
1209
+ }>;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ items: {
1212
+ id: string;
1213
+ subject: {
1214
+ type: "project";
1215
+ } | {
1216
+ id: string;
1217
+ type: "group";
1218
+ } | {
1219
+ id: string;
1220
+ type: "user";
1221
+ } | {
1222
+ id: string;
1223
+ type: "serviceAccount";
1224
+ };
1225
+ limit: {
1226
+ meter: "tokens.total";
1227
+ amount: number;
1228
+ } | {
1229
+ meter: "cost.catalogEstimated";
1230
+ amount: {
1231
+ currency: "USD";
1232
+ amountNanos: string;
1233
+ };
1234
+ };
1235
+ createdAt: string;
1236
+ updatedAt: string;
1237
+ period: "calendarMonth";
1238
+ enabled: boolean;
1239
+ }[];
1240
+ capabilities: {
1241
+ manage: boolean;
1242
+ };
1243
+ }, {
1244
+ items: {
1245
+ id: string;
1246
+ subject: {
1247
+ type: "project";
1248
+ } | {
1249
+ id: string;
1250
+ type: "group";
1251
+ } | {
1252
+ id: string;
1253
+ type: "user";
1254
+ } | {
1255
+ id: string;
1256
+ type: "serviceAccount";
1257
+ };
1258
+ limit: {
1259
+ meter: "tokens.total";
1260
+ amount: number;
1261
+ } | {
1262
+ meter: "cost.catalogEstimated";
1263
+ amount: {
1264
+ currency: "USD";
1265
+ amountNanos: string;
1266
+ };
1267
+ };
1268
+ createdAt: string;
1269
+ updatedAt: string;
1270
+ period: "calendarMonth";
1271
+ enabled: boolean;
1272
+ }[];
1273
+ capabilities: {
1274
+ manage: boolean;
1275
+ };
1276
+ }>;
1277
+ export declare const AiLimitPolicyStatusListResponseSchema: z.ZodObject<{
1278
+ items: z.ZodArray<z.ZodObject<{
1279
+ policy: z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1282
+ type: z.ZodLiteral<"project">;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ type: "project";
1285
+ }, {
1286
+ type: "project";
1287
+ }>, z.ZodObject<{
1288
+ type: z.ZodLiteral<"group">;
1289
+ id: z.ZodString;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ id: string;
1292
+ type: "group";
1293
+ }, {
1294
+ id: string;
1295
+ type: "group";
1296
+ }>, z.ZodObject<{
1297
+ type: z.ZodLiteral<"user">;
1298
+ id: z.ZodString;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ id: string;
1301
+ type: "user";
1302
+ }, {
1303
+ id: string;
1304
+ type: "user";
1305
+ }>, z.ZodObject<{
1306
+ type: z.ZodLiteral<"serviceAccount">;
1307
+ id: z.ZodString;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ id: string;
1310
+ type: "serviceAccount";
1311
+ }, {
1312
+ id: string;
1313
+ type: "serviceAccount";
1314
+ }>]>;
1315
+ limit: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1316
+ meter: z.ZodLiteral<"tokens.total">;
1317
+ amount: z.ZodNumber;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ meter: "tokens.total";
1320
+ amount: number;
1321
+ }, {
1322
+ meter: "tokens.total";
1323
+ amount: number;
1324
+ }>, z.ZodObject<{
1325
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1326
+ amount: z.ZodObject<{
1327
+ amountNanos: z.ZodString;
1328
+ } & {
1329
+ currency: z.ZodLiteral<"USD">;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ currency: "USD";
1332
+ amountNanos: string;
1333
+ }, {
1334
+ currency: "USD";
1335
+ amountNanos: string;
1336
+ }>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ meter: "cost.catalogEstimated";
1339
+ amount: {
1340
+ currency: "USD";
1341
+ amountNanos: string;
1342
+ };
1343
+ }, {
1344
+ meter: "cost.catalogEstimated";
1345
+ amount: {
1346
+ currency: "USD";
1347
+ amountNanos: string;
1348
+ };
1349
+ }>]>;
1350
+ period: z.ZodLiteral<"calendarMonth">;
1351
+ enabled: z.ZodBoolean;
1352
+ createdAt: z.ZodString;
1353
+ updatedAt: z.ZodString;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ id: string;
1356
+ subject: {
1357
+ type: "project";
1358
+ } | {
1359
+ id: string;
1360
+ type: "group";
1361
+ } | {
1362
+ id: string;
1363
+ type: "user";
1364
+ } | {
1365
+ id: string;
1366
+ type: "serviceAccount";
1367
+ };
1368
+ limit: {
1369
+ meter: "tokens.total";
1370
+ amount: number;
1371
+ } | {
1372
+ meter: "cost.catalogEstimated";
1373
+ amount: {
1374
+ currency: "USD";
1375
+ amountNanos: string;
1376
+ };
1377
+ };
1378
+ createdAt: string;
1379
+ updatedAt: string;
1380
+ period: "calendarMonth";
1381
+ enabled: boolean;
1382
+ }, {
1383
+ id: string;
1384
+ subject: {
1385
+ type: "project";
1386
+ } | {
1387
+ id: string;
1388
+ type: "group";
1389
+ } | {
1390
+ id: string;
1391
+ type: "user";
1392
+ } | {
1393
+ id: string;
1394
+ type: "serviceAccount";
1395
+ };
1396
+ limit: {
1397
+ meter: "tokens.total";
1398
+ amount: number;
1399
+ } | {
1400
+ meter: "cost.catalogEstimated";
1401
+ amount: {
1402
+ currency: "USD";
1403
+ amountNanos: string;
1404
+ };
1405
+ };
1406
+ createdAt: string;
1407
+ updatedAt: string;
1408
+ period: "calendarMonth";
1409
+ enabled: boolean;
1410
+ }>;
1411
+ period: z.ZodObject<{
1412
+ kind: z.ZodLiteral<"calendarMonth">;
1413
+ start: z.ZodString;
1414
+ end: z.ZodString;
1415
+ resetAt: z.ZodString;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ kind: "calendarMonth";
1418
+ start: string;
1419
+ resetAt: string;
1420
+ end: string;
1421
+ }, {
1422
+ kind: "calendarMonth";
1423
+ start: string;
1424
+ resetAt: string;
1425
+ end: string;
1426
+ }>;
1427
+ consumption: z.ZodObject<{
1428
+ actual: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1429
+ meter: z.ZodLiteral<"tokens.total">;
1430
+ amount: z.ZodNumber;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ meter: "tokens.total";
1433
+ amount: number;
1434
+ }, {
1435
+ meter: "tokens.total";
1436
+ amount: number;
1437
+ }>, z.ZodObject<{
1438
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1439
+ amount: z.ZodObject<{
1440
+ amountNanos: z.ZodString;
1441
+ } & {
1442
+ currency: z.ZodLiteral<"USD">;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ currency: "USD";
1445
+ amountNanos: string;
1446
+ }, {
1447
+ currency: "USD";
1448
+ amountNanos: string;
1449
+ }>;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ meter: "cost.catalogEstimated";
1452
+ amount: {
1453
+ currency: "USD";
1454
+ amountNanos: string;
1455
+ };
1456
+ }, {
1457
+ meter: "cost.catalogEstimated";
1458
+ amount: {
1459
+ currency: "USD";
1460
+ amountNanos: string;
1461
+ };
1462
+ }>]>;
1463
+ reserved: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1464
+ meter: z.ZodLiteral<"tokens.total">;
1465
+ amount: z.ZodNumber;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ meter: "tokens.total";
1468
+ amount: number;
1469
+ }, {
1470
+ meter: "tokens.total";
1471
+ amount: number;
1472
+ }>, z.ZodObject<{
1473
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1474
+ amount: z.ZodObject<{
1475
+ amountNanos: z.ZodString;
1476
+ } & {
1477
+ currency: z.ZodLiteral<"USD">;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ currency: "USD";
1480
+ amountNanos: string;
1481
+ }, {
1482
+ currency: "USD";
1483
+ amountNanos: string;
1484
+ }>;
1485
+ }, "strip", z.ZodTypeAny, {
1486
+ meter: "cost.catalogEstimated";
1487
+ amount: {
1488
+ currency: "USD";
1489
+ amountNanos: string;
1490
+ };
1491
+ }, {
1492
+ meter: "cost.catalogEstimated";
1493
+ amount: {
1494
+ currency: "USD";
1495
+ amountNanos: string;
1496
+ };
1497
+ }>]>;
1498
+ unknown: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1499
+ meter: z.ZodLiteral<"tokens.total">;
1500
+ amount: z.ZodNumber;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ meter: "tokens.total";
1503
+ amount: number;
1504
+ }, {
1505
+ meter: "tokens.total";
1506
+ amount: number;
1507
+ }>, z.ZodObject<{
1508
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1509
+ amount: z.ZodObject<{
1510
+ amountNanos: z.ZodString;
1511
+ } & {
1512
+ currency: z.ZodLiteral<"USD">;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ currency: "USD";
1515
+ amountNanos: string;
1516
+ }, {
1517
+ currency: "USD";
1518
+ amountNanos: string;
1519
+ }>;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ meter: "cost.catalogEstimated";
1522
+ amount: {
1523
+ currency: "USD";
1524
+ amountNanos: string;
1525
+ };
1526
+ }, {
1527
+ meter: "cost.catalogEstimated";
1528
+ amount: {
1529
+ currency: "USD";
1530
+ amountNanos: string;
1531
+ };
1532
+ }>]>;
1533
+ remaining: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
1534
+ meter: z.ZodLiteral<"tokens.total">;
1535
+ amount: z.ZodNumber;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ meter: "tokens.total";
1538
+ amount: number;
1539
+ }, {
1540
+ meter: "tokens.total";
1541
+ amount: number;
1542
+ }>, z.ZodObject<{
1543
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
1544
+ amount: z.ZodObject<{
1545
+ amountNanos: z.ZodString;
1546
+ } & {
1547
+ currency: z.ZodLiteral<"USD">;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ currency: "USD";
1550
+ amountNanos: string;
1551
+ }, {
1552
+ currency: "USD";
1553
+ amountNanos: string;
1554
+ }>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ meter: "cost.catalogEstimated";
1557
+ amount: {
1558
+ currency: "USD";
1559
+ amountNanos: string;
1560
+ };
1561
+ }, {
1562
+ meter: "cost.catalogEstimated";
1563
+ amount: {
1564
+ currency: "USD";
1565
+ amountNanos: string;
1566
+ };
1567
+ }>]>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ unknown: {
1570
+ meter: "tokens.total";
1571
+ amount: number;
1572
+ } | {
1573
+ meter: "cost.catalogEstimated";
1574
+ amount: {
1575
+ currency: "USD";
1576
+ amountNanos: string;
1577
+ };
1578
+ };
1579
+ actual: {
1580
+ meter: "tokens.total";
1581
+ amount: number;
1582
+ } | {
1583
+ meter: "cost.catalogEstimated";
1584
+ amount: {
1585
+ currency: "USD";
1586
+ amountNanos: string;
1587
+ };
1588
+ };
1589
+ reserved: {
1590
+ meter: "tokens.total";
1591
+ amount: number;
1592
+ } | {
1593
+ meter: "cost.catalogEstimated";
1594
+ amount: {
1595
+ currency: "USD";
1596
+ amountNanos: string;
1597
+ };
1598
+ };
1599
+ remaining: {
1600
+ meter: "tokens.total";
1601
+ amount: number;
1602
+ } | {
1603
+ meter: "cost.catalogEstimated";
1604
+ amount: {
1605
+ currency: "USD";
1606
+ amountNanos: string;
1607
+ };
1608
+ };
1609
+ }, {
1610
+ unknown: {
1611
+ meter: "tokens.total";
1612
+ amount: number;
1613
+ } | {
1614
+ meter: "cost.catalogEstimated";
1615
+ amount: {
1616
+ currency: "USD";
1617
+ amountNanos: string;
1618
+ };
1619
+ };
1620
+ actual: {
1621
+ meter: "tokens.total";
1622
+ amount: number;
1623
+ } | {
1624
+ meter: "cost.catalogEstimated";
1625
+ amount: {
1626
+ currency: "USD";
1627
+ amountNanos: string;
1628
+ };
1629
+ };
1630
+ reserved: {
1631
+ meter: "tokens.total";
1632
+ amount: number;
1633
+ } | {
1634
+ meter: "cost.catalogEstimated";
1635
+ amount: {
1636
+ currency: "USD";
1637
+ amountNanos: string;
1638
+ };
1639
+ };
1640
+ remaining: {
1641
+ meter: "tokens.total";
1642
+ amount: number;
1643
+ } | {
1644
+ meter: "cost.catalogEstimated";
1645
+ amount: {
1646
+ currency: "USD";
1647
+ amountNanos: string;
1648
+ };
1649
+ };
1650
+ }>;
1651
+ accountingStatus: z.ZodEnum<["complete", "unavailable"]>;
1652
+ exhausted: z.ZodBoolean;
1653
+ orphaned: z.ZodBoolean;
1654
+ }, "strip", z.ZodTypeAny, {
1655
+ period: {
1656
+ kind: "calendarMonth";
1657
+ start: string;
1658
+ resetAt: string;
1659
+ end: string;
1660
+ };
1661
+ policy: {
1662
+ id: string;
1663
+ subject: {
1664
+ type: "project";
1665
+ } | {
1666
+ id: string;
1667
+ type: "group";
1668
+ } | {
1669
+ id: string;
1670
+ type: "user";
1671
+ } | {
1672
+ id: string;
1673
+ type: "serviceAccount";
1674
+ };
1675
+ limit: {
1676
+ meter: "tokens.total";
1677
+ amount: number;
1678
+ } | {
1679
+ meter: "cost.catalogEstimated";
1680
+ amount: {
1681
+ currency: "USD";
1682
+ amountNanos: string;
1683
+ };
1684
+ };
1685
+ createdAt: string;
1686
+ updatedAt: string;
1687
+ period: "calendarMonth";
1688
+ enabled: boolean;
1689
+ };
1690
+ consumption: {
1691
+ unknown: {
1692
+ meter: "tokens.total";
1693
+ amount: number;
1694
+ } | {
1695
+ meter: "cost.catalogEstimated";
1696
+ amount: {
1697
+ currency: "USD";
1698
+ amountNanos: string;
1699
+ };
1700
+ };
1701
+ actual: {
1702
+ meter: "tokens.total";
1703
+ amount: number;
1704
+ } | {
1705
+ meter: "cost.catalogEstimated";
1706
+ amount: {
1707
+ currency: "USD";
1708
+ amountNanos: string;
1709
+ };
1710
+ };
1711
+ reserved: {
1712
+ meter: "tokens.total";
1713
+ amount: number;
1714
+ } | {
1715
+ meter: "cost.catalogEstimated";
1716
+ amount: {
1717
+ currency: "USD";
1718
+ amountNanos: string;
1719
+ };
1720
+ };
1721
+ remaining: {
1722
+ meter: "tokens.total";
1723
+ amount: number;
1724
+ } | {
1725
+ meter: "cost.catalogEstimated";
1726
+ amount: {
1727
+ currency: "USD";
1728
+ amountNanos: string;
1729
+ };
1730
+ };
1731
+ };
1732
+ accountingStatus: "complete" | "unavailable";
1733
+ exhausted: boolean;
1734
+ orphaned: boolean;
1735
+ }, {
1736
+ period: {
1737
+ kind: "calendarMonth";
1738
+ start: string;
1739
+ resetAt: string;
1740
+ end: string;
1741
+ };
1742
+ policy: {
1743
+ id: string;
1744
+ subject: {
1745
+ type: "project";
1746
+ } | {
1747
+ id: string;
1748
+ type: "group";
1749
+ } | {
1750
+ id: string;
1751
+ type: "user";
1752
+ } | {
1753
+ id: string;
1754
+ type: "serviceAccount";
1755
+ };
1756
+ limit: {
1757
+ meter: "tokens.total";
1758
+ amount: number;
1759
+ } | {
1760
+ meter: "cost.catalogEstimated";
1761
+ amount: {
1762
+ currency: "USD";
1763
+ amountNanos: string;
1764
+ };
1765
+ };
1766
+ createdAt: string;
1767
+ updatedAt: string;
1768
+ period: "calendarMonth";
1769
+ enabled: boolean;
1770
+ };
1771
+ consumption: {
1772
+ unknown: {
1773
+ meter: "tokens.total";
1774
+ amount: number;
1775
+ } | {
1776
+ meter: "cost.catalogEstimated";
1777
+ amount: {
1778
+ currency: "USD";
1779
+ amountNanos: string;
1780
+ };
1781
+ };
1782
+ actual: {
1783
+ meter: "tokens.total";
1784
+ amount: number;
1785
+ } | {
1786
+ meter: "cost.catalogEstimated";
1787
+ amount: {
1788
+ currency: "USD";
1789
+ amountNanos: string;
1790
+ };
1791
+ };
1792
+ reserved: {
1793
+ meter: "tokens.total";
1794
+ amount: number;
1795
+ } | {
1796
+ meter: "cost.catalogEstimated";
1797
+ amount: {
1798
+ currency: "USD";
1799
+ amountNanos: string;
1800
+ };
1801
+ };
1802
+ remaining: {
1803
+ meter: "tokens.total";
1804
+ amount: number;
1805
+ } | {
1806
+ meter: "cost.catalogEstimated";
1807
+ amount: {
1808
+ currency: "USD";
1809
+ amountNanos: string;
1810
+ };
1811
+ };
1812
+ };
1813
+ accountingStatus: "complete" | "unavailable";
1814
+ exhausted: boolean;
1815
+ orphaned: boolean;
1816
+ }>, "many">;
1817
+ capabilities: z.ZodObject<{
1818
+ manage: z.ZodBoolean;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ manage: boolean;
1821
+ }, {
1822
+ manage: boolean;
1823
+ }>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ items: {
1826
+ period: {
1827
+ kind: "calendarMonth";
1828
+ start: string;
1829
+ resetAt: string;
1830
+ end: string;
1831
+ };
1832
+ policy: {
1833
+ id: string;
1834
+ subject: {
1835
+ type: "project";
1836
+ } | {
1837
+ id: string;
1838
+ type: "group";
1839
+ } | {
1840
+ id: string;
1841
+ type: "user";
1842
+ } | {
1843
+ id: string;
1844
+ type: "serviceAccount";
1845
+ };
1846
+ limit: {
1847
+ meter: "tokens.total";
1848
+ amount: number;
1849
+ } | {
1850
+ meter: "cost.catalogEstimated";
1851
+ amount: {
1852
+ currency: "USD";
1853
+ amountNanos: string;
1854
+ };
1855
+ };
1856
+ createdAt: string;
1857
+ updatedAt: string;
1858
+ period: "calendarMonth";
1859
+ enabled: boolean;
1860
+ };
1861
+ consumption: {
1862
+ unknown: {
1863
+ meter: "tokens.total";
1864
+ amount: number;
1865
+ } | {
1866
+ meter: "cost.catalogEstimated";
1867
+ amount: {
1868
+ currency: "USD";
1869
+ amountNanos: string;
1870
+ };
1871
+ };
1872
+ actual: {
1873
+ meter: "tokens.total";
1874
+ amount: number;
1875
+ } | {
1876
+ meter: "cost.catalogEstimated";
1877
+ amount: {
1878
+ currency: "USD";
1879
+ amountNanos: string;
1880
+ };
1881
+ };
1882
+ reserved: {
1883
+ meter: "tokens.total";
1884
+ amount: number;
1885
+ } | {
1886
+ meter: "cost.catalogEstimated";
1887
+ amount: {
1888
+ currency: "USD";
1889
+ amountNanos: string;
1890
+ };
1891
+ };
1892
+ remaining: {
1893
+ meter: "tokens.total";
1894
+ amount: number;
1895
+ } | {
1896
+ meter: "cost.catalogEstimated";
1897
+ amount: {
1898
+ currency: "USD";
1899
+ amountNanos: string;
1900
+ };
1901
+ };
1902
+ };
1903
+ accountingStatus: "complete" | "unavailable";
1904
+ exhausted: boolean;
1905
+ orphaned: boolean;
1906
+ }[];
1907
+ capabilities: {
1908
+ manage: boolean;
1909
+ };
1910
+ }, {
1911
+ items: {
1912
+ period: {
1913
+ kind: "calendarMonth";
1914
+ start: string;
1915
+ resetAt: string;
1916
+ end: string;
1917
+ };
1918
+ policy: {
1919
+ id: string;
1920
+ subject: {
1921
+ type: "project";
1922
+ } | {
1923
+ id: string;
1924
+ type: "group";
1925
+ } | {
1926
+ id: string;
1927
+ type: "user";
1928
+ } | {
1929
+ id: string;
1930
+ type: "serviceAccount";
1931
+ };
1932
+ limit: {
1933
+ meter: "tokens.total";
1934
+ amount: number;
1935
+ } | {
1936
+ meter: "cost.catalogEstimated";
1937
+ amount: {
1938
+ currency: "USD";
1939
+ amountNanos: string;
1940
+ };
1941
+ };
1942
+ createdAt: string;
1943
+ updatedAt: string;
1944
+ period: "calendarMonth";
1945
+ enabled: boolean;
1946
+ };
1947
+ consumption: {
1948
+ unknown: {
1949
+ meter: "tokens.total";
1950
+ amount: number;
1951
+ } | {
1952
+ meter: "cost.catalogEstimated";
1953
+ amount: {
1954
+ currency: "USD";
1955
+ amountNanos: string;
1956
+ };
1957
+ };
1958
+ actual: {
1959
+ meter: "tokens.total";
1960
+ amount: number;
1961
+ } | {
1962
+ meter: "cost.catalogEstimated";
1963
+ amount: {
1964
+ currency: "USD";
1965
+ amountNanos: string;
1966
+ };
1967
+ };
1968
+ reserved: {
1969
+ meter: "tokens.total";
1970
+ amount: number;
1971
+ } | {
1972
+ meter: "cost.catalogEstimated";
1973
+ amount: {
1974
+ currency: "USD";
1975
+ amountNanos: string;
1976
+ };
1977
+ };
1978
+ remaining: {
1979
+ meter: "tokens.total";
1980
+ amount: number;
1981
+ } | {
1982
+ meter: "cost.catalogEstimated";
1983
+ amount: {
1984
+ currency: "USD";
1985
+ amountNanos: string;
1986
+ };
1987
+ };
1988
+ };
1989
+ accountingStatus: "complete" | "unavailable";
1990
+ exhausted: boolean;
1991
+ orphaned: boolean;
1992
+ }[];
1993
+ capabilities: {
1994
+ manage: boolean;
1995
+ };
1996
+ }>;
1997
+ export declare const CreateAiLimitPolicyBodySchema: z.ZodObject<{
1998
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1999
+ type: z.ZodLiteral<"project">;
2000
+ }, "strip", z.ZodTypeAny, {
2001
+ type: "project";
2002
+ }, {
2003
+ type: "project";
2004
+ }>, z.ZodObject<{
2005
+ type: z.ZodLiteral<"group">;
2006
+ id: z.ZodString;
2007
+ }, "strip", z.ZodTypeAny, {
2008
+ id: string;
2009
+ type: "group";
2010
+ }, {
2011
+ id: string;
2012
+ type: "group";
2013
+ }>, z.ZodObject<{
2014
+ type: z.ZodLiteral<"user">;
2015
+ id: z.ZodString;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ id: string;
2018
+ type: "user";
2019
+ }, {
2020
+ id: string;
2021
+ type: "user";
2022
+ }>, z.ZodObject<{
2023
+ type: z.ZodLiteral<"serviceAccount">;
2024
+ id: z.ZodString;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ id: string;
2027
+ type: "serviceAccount";
2028
+ }, {
2029
+ id: string;
2030
+ type: "serviceAccount";
2031
+ }>]>;
2032
+ limit: z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
2033
+ meter: z.ZodLiteral<"tokens.total">;
2034
+ amount: z.ZodNumber;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ meter: "tokens.total";
2037
+ amount: number;
2038
+ }, {
2039
+ meter: "tokens.total";
2040
+ amount: number;
2041
+ }>, z.ZodObject<{
2042
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
2043
+ amount: z.ZodObject<{
2044
+ amountNanos: z.ZodString;
2045
+ } & {
2046
+ currency: z.ZodLiteral<"USD">;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ currency: "USD";
2049
+ amountNanos: string;
2050
+ }, {
2051
+ currency: "USD";
2052
+ amountNanos: string;
2053
+ }>;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ meter: "cost.catalogEstimated";
2056
+ amount: {
2057
+ currency: "USD";
2058
+ amountNanos: string;
2059
+ };
2060
+ }, {
2061
+ meter: "cost.catalogEstimated";
2062
+ amount: {
2063
+ currency: "USD";
2064
+ amountNanos: string;
2065
+ };
2066
+ }>]>;
2067
+ enabled: z.ZodOptional<z.ZodBoolean>;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ subject: {
2070
+ type: "project";
2071
+ } | {
2072
+ id: string;
2073
+ type: "group";
2074
+ } | {
2075
+ id: string;
2076
+ type: "user";
2077
+ } | {
2078
+ id: string;
2079
+ type: "serviceAccount";
2080
+ };
2081
+ limit: {
2082
+ meter: "tokens.total";
2083
+ amount: number;
2084
+ } | {
2085
+ meter: "cost.catalogEstimated";
2086
+ amount: {
2087
+ currency: "USD";
2088
+ amountNanos: string;
2089
+ };
2090
+ };
2091
+ enabled?: boolean | undefined;
2092
+ }, {
2093
+ subject: {
2094
+ type: "project";
2095
+ } | {
2096
+ id: string;
2097
+ type: "group";
2098
+ } | {
2099
+ id: string;
2100
+ type: "user";
2101
+ } | {
2102
+ id: string;
2103
+ type: "serviceAccount";
2104
+ };
2105
+ limit: {
2106
+ meter: "tokens.total";
2107
+ amount: number;
2108
+ } | {
2109
+ meter: "cost.catalogEstimated";
2110
+ amount: {
2111
+ currency: "USD";
2112
+ amountNanos: string;
2113
+ };
2114
+ };
2115
+ enabled?: boolean | undefined;
2116
+ }>;
2117
+ export declare const UpdateAiLimitPolicyBodySchema: z.ZodEffects<z.ZodObject<{
2118
+ limit: z.ZodOptional<z.ZodDiscriminatedUnion<"meter", [z.ZodObject<{
2119
+ meter: z.ZodLiteral<"tokens.total">;
2120
+ amount: z.ZodNumber;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ meter: "tokens.total";
2123
+ amount: number;
2124
+ }, {
2125
+ meter: "tokens.total";
2126
+ amount: number;
2127
+ }>, z.ZodObject<{
2128
+ meter: z.ZodLiteral<"cost.catalogEstimated">;
2129
+ amount: z.ZodObject<{
2130
+ amountNanos: z.ZodString;
2131
+ } & {
2132
+ currency: z.ZodLiteral<"USD">;
2133
+ }, "strip", z.ZodTypeAny, {
2134
+ currency: "USD";
2135
+ amountNanos: string;
2136
+ }, {
2137
+ currency: "USD";
2138
+ amountNanos: string;
2139
+ }>;
2140
+ }, "strip", z.ZodTypeAny, {
2141
+ meter: "cost.catalogEstimated";
2142
+ amount: {
2143
+ currency: "USD";
2144
+ amountNanos: string;
2145
+ };
2146
+ }, {
2147
+ meter: "cost.catalogEstimated";
2148
+ amount: {
2149
+ currency: "USD";
2150
+ amountNanos: string;
2151
+ };
2152
+ }>]>>;
2153
+ enabled: z.ZodOptional<z.ZodBoolean>;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ limit?: {
2156
+ meter: "tokens.total";
2157
+ amount: number;
2158
+ } | {
2159
+ meter: "cost.catalogEstimated";
2160
+ amount: {
2161
+ currency: "USD";
2162
+ amountNanos: string;
2163
+ };
2164
+ } | undefined;
2165
+ enabled?: boolean | undefined;
2166
+ }, {
2167
+ limit?: {
2168
+ meter: "tokens.total";
2169
+ amount: number;
2170
+ } | {
2171
+ meter: "cost.catalogEstimated";
2172
+ amount: {
2173
+ currency: "USD";
2174
+ amountNanos: string;
2175
+ };
2176
+ } | undefined;
2177
+ enabled?: boolean | undefined;
2178
+ }>, {
2179
+ limit?: {
2180
+ meter: "tokens.total";
2181
+ amount: number;
2182
+ } | {
2183
+ meter: "cost.catalogEstimated";
2184
+ amount: {
2185
+ currency: "USD";
2186
+ amountNanos: string;
2187
+ };
2188
+ } | undefined;
2189
+ enabled?: boolean | undefined;
2190
+ }, {
2191
+ limit?: {
2192
+ meter: "tokens.total";
2193
+ amount: number;
2194
+ } | {
2195
+ meter: "cost.catalogEstimated";
2196
+ amount: {
2197
+ currency: "USD";
2198
+ amountNanos: string;
2199
+ };
2200
+ } | undefined;
2201
+ enabled?: boolean | undefined;
2202
+ }>;
2203
+ export declare const AiLimitPolicyParamsSchema: z.ZodObject<{
2204
+ limitId: z.ZodString;
2205
+ }, "strip", z.ZodTypeAny, {
2206
+ limitId: string;
2207
+ }, {
2208
+ limitId: string;
2209
+ }>;
2210
+ //# sourceMappingURL=ai-limits.d.ts.map