@greatwait/contracts 0.2.0 → 0.2.2

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 (46) hide show
  1. package/dist/billing.d.ts +339 -0
  2. package/dist/billing.js +131 -1
  3. package/dist/host-correlation.d.ts +4 -0
  4. package/dist/host-correlation.js +18 -0
  5. package/dist/identifiers.d.ts +2 -0
  6. package/dist/identifiers.js +3 -0
  7. package/dist/index.d.ts +2 -1
  8. package/dist/index.js +2 -1
  9. package/dist/operations.d.ts +514 -0
  10. package/dist/operations.js +93 -1
  11. package/dist/protocol.d.ts +2 -0
  12. package/dist/protocol.js +3 -0
  13. package/dist/scheduling-records.d.ts +4 -0
  14. package/dist/scheduling.d.ts +12 -0
  15. package/dist/scheduling.js +13 -0
  16. package/generated/v1/examples/billing.promotions.response.json +26 -0
  17. package/generated/v1/examples/billing.redeem.request.json +4 -0
  18. package/generated/v1/examples/billing.redeem.response.json +43 -0
  19. package/generated/v1/manifest.json +56 -0
  20. package/generated/v1/openapi.json +2749 -89
  21. package/generated/v1/policy-matrix.json +14 -0
  22. package/generated/v1/schemas/billing.change.response.json +64 -0
  23. package/generated/v1/schemas/billing.projects.response.json +64 -0
  24. package/generated/v1/schemas/billing.promotions.response.json +188 -0
  25. package/generated/v1/schemas/billing.quote.response.json +51 -0
  26. package/generated/v1/schemas/billing.reconcile.response.json +324 -0
  27. package/generated/v1/schemas/billing.redeem.request-headers.json +13 -0
  28. package/generated/v1/schemas/billing.redeem.request.json +22 -0
  29. package/generated/v1/schemas/billing.redeem.response-headers.json +10 -0
  30. package/generated/v1/schemas/billing.redeem.response.json +326 -0
  31. package/generated/v1/schemas/billing.summary.response.json +324 -0
  32. package/generated/v1/schemas/executions.list.query.json +12 -0
  33. package/generated/v1/schemas/schedules.archive.response.json +17 -0
  34. package/generated/v1/schemas/schedules.cancel.response.json +17 -0
  35. package/generated/v1/schemas/schedules.create.request.json +17 -0
  36. package/generated/v1/schemas/schedules.create.response.json +17 -0
  37. package/generated/v1/schemas/schedules.list.query.json +12 -0
  38. package/generated/v1/schemas/schedules.list.response.json +17 -0
  39. package/generated/v1/schemas/schedules.pause.response.json +17 -0
  40. package/generated/v1/schemas/schedules.read.response.json +17 -0
  41. package/generated/v1/schemas/schedules.replace.request.json +17 -0
  42. package/generated/v1/schemas/schedules.replace.response.json +17 -0
  43. package/generated/v1/schemas/schedules.resume.response.json +17 -0
  44. package/generated/v1/snippets/billing.promotions.json +6 -0
  45. package/generated/v1/snippets/billing.redeem.json +6 -0
  46. package/package.json +1 -1
@@ -3525,6 +3525,8 @@ export declare const OPERATIONS: readonly [{
3525
3525
  }, import("zod/v4/core").$strict>>;
3526
3526
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
3527
3527
  name: import("zod").ZodOptional<import("zod").ZodString>;
3528
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
3529
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3528
3530
  timeZone: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>>;
3529
3531
  }, import("zod/v4/core").$strict>;
3530
3532
  readonly requestExample: {
@@ -3647,6 +3649,8 @@ export declare const OPERATIONS: readonly [{
3647
3649
  }>;
3648
3650
  }, import("zod/v4/core").$strict>;
3649
3651
  name: import("zod").ZodOptional<import("zod").ZodString>;
3652
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
3653
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3650
3654
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
3651
3655
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
3652
3656
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -3827,6 +3831,8 @@ export declare const OPERATIONS: readonly [{
3827
3831
  }>;
3828
3832
  }, import("zod/v4/core").$strict>;
3829
3833
  name: import("zod").ZodOptional<import("zod").ZodString>;
3834
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
3835
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3830
3836
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
3831
3837
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
3832
3838
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -3895,6 +3901,8 @@ export declare const OPERATIONS: readonly [{
3895
3901
  readonly query: import("zod").ZodObject<{
3896
3902
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
3897
3903
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
3904
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
3905
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
3898
3906
  dueBefore: import("zod").ZodOptional<import("zod").ZodString>;
3899
3907
  endpoint: import("zod").ZodOptional<import("zod").ZodString>;
3900
3908
  order: import("zod").ZodDefault<import("zod").ZodEnum<{
@@ -3970,6 +3978,8 @@ export declare const OPERATIONS: readonly [{
3970
3978
  }>;
3971
3979
  }, import("zod/v4/core").$strict>;
3972
3980
  name: import("zod").ZodOptional<import("zod").ZodString>;
3981
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
3982
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
3973
3983
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
3974
3984
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
3975
3985
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -4200,6 +4210,92 @@ export declare const OPERATIONS: readonly [{
4200
4210
  microdollars: import("zod").ZodString;
4201
4211
  scale: import("zod").ZodLiteral<6>;
4202
4212
  }, import("zod/v4/core").$strip>;
4213
+ byKind: import("zod").ZodOptional<import("zod").ZodObject<{
4214
+ purchased: import("zod").ZodObject<{
4215
+ available: import("zod").ZodObject<{
4216
+ currency: import("zod").ZodLiteral<"USD">;
4217
+ microdollars: import("zod").ZodString;
4218
+ scale: import("zod").ZodLiteral<6>;
4219
+ }, import("zod/v4/core").$strip>;
4220
+ reserved: import("zod").ZodObject<{
4221
+ currency: import("zod").ZodLiteral<"USD">;
4222
+ microdollars: import("zod").ZodString;
4223
+ scale: import("zod").ZodLiteral<6>;
4224
+ }, import("zod/v4/core").$strip>;
4225
+ consumed: import("zod").ZodObject<{
4226
+ currency: import("zod").ZodLiteral<"USD">;
4227
+ microdollars: import("zod").ZodString;
4228
+ scale: import("zod").ZodLiteral<6>;
4229
+ }, import("zod/v4/core").$strip>;
4230
+ forfeited: import("zod").ZodObject<{
4231
+ currency: import("zod").ZodLiteral<"USD">;
4232
+ microdollars: import("zod").ZodString;
4233
+ scale: import("zod").ZodLiteral<6>;
4234
+ }, import("zod/v4/core").$strip>;
4235
+ granted: import("zod").ZodObject<{
4236
+ currency: import("zod").ZodLiteral<"USD">;
4237
+ microdollars: import("zod").ZodString;
4238
+ scale: import("zod").ZodLiteral<6>;
4239
+ }, import("zod/v4/core").$strip>;
4240
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
4241
+ }, import("zod/v4/core").$strip>;
4242
+ trial: import("zod").ZodObject<{
4243
+ available: import("zod").ZodObject<{
4244
+ currency: import("zod").ZodLiteral<"USD">;
4245
+ microdollars: import("zod").ZodString;
4246
+ scale: import("zod").ZodLiteral<6>;
4247
+ }, import("zod/v4/core").$strip>;
4248
+ reserved: import("zod").ZodObject<{
4249
+ currency: import("zod").ZodLiteral<"USD">;
4250
+ microdollars: import("zod").ZodString;
4251
+ scale: import("zod").ZodLiteral<6>;
4252
+ }, import("zod/v4/core").$strip>;
4253
+ consumed: import("zod").ZodObject<{
4254
+ currency: import("zod").ZodLiteral<"USD">;
4255
+ microdollars: import("zod").ZodString;
4256
+ scale: import("zod").ZodLiteral<6>;
4257
+ }, import("zod/v4/core").$strip>;
4258
+ forfeited: import("zod").ZodObject<{
4259
+ currency: import("zod").ZodLiteral<"USD">;
4260
+ microdollars: import("zod").ZodString;
4261
+ scale: import("zod").ZodLiteral<6>;
4262
+ }, import("zod/v4/core").$strip>;
4263
+ granted: import("zod").ZodObject<{
4264
+ currency: import("zod").ZodLiteral<"USD">;
4265
+ microdollars: import("zod").ZodString;
4266
+ scale: import("zod").ZodLiteral<6>;
4267
+ }, import("zod/v4/core").$strip>;
4268
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
4269
+ }, import("zod/v4/core").$strip>;
4270
+ promotional: import("zod").ZodObject<{
4271
+ available: import("zod").ZodObject<{
4272
+ currency: import("zod").ZodLiteral<"USD">;
4273
+ microdollars: import("zod").ZodString;
4274
+ scale: import("zod").ZodLiteral<6>;
4275
+ }, import("zod/v4/core").$strip>;
4276
+ reserved: import("zod").ZodObject<{
4277
+ currency: import("zod").ZodLiteral<"USD">;
4278
+ microdollars: import("zod").ZodString;
4279
+ scale: import("zod").ZodLiteral<6>;
4280
+ }, import("zod/v4/core").$strip>;
4281
+ consumed: import("zod").ZodObject<{
4282
+ currency: import("zod").ZodLiteral<"USD">;
4283
+ microdollars: import("zod").ZodString;
4284
+ scale: import("zod").ZodLiteral<6>;
4285
+ }, import("zod/v4/core").$strip>;
4286
+ forfeited: import("zod").ZodObject<{
4287
+ currency: import("zod").ZodLiteral<"USD">;
4288
+ microdollars: import("zod").ZodString;
4289
+ scale: import("zod").ZodLiteral<6>;
4290
+ }, import("zod/v4/core").$strip>;
4291
+ granted: import("zod").ZodObject<{
4292
+ currency: import("zod").ZodLiteral<"USD">;
4293
+ microdollars: import("zod").ZodString;
4294
+ scale: import("zod").ZodLiteral<6>;
4295
+ }, import("zod/v4/core").$strip>;
4296
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
4297
+ }, import("zod/v4/core").$strip>;
4298
+ }, import("zod/v4/core").$strip>>;
4203
4299
  }, import("zod/v4/core").$strip>;
4204
4300
  desiredRevision: import("zod").ZodNumber;
4205
4301
  effectiveRevision: import("zod").ZodNumber;
@@ -4283,6 +4379,261 @@ export declare const OPERATIONS: readonly [{
4283
4379
  readonly sessionAuthority: "headers";
4284
4380
  readonly summary: "" | "Read exact execution-credit state";
4285
4381
  readonly surfaces: readonly ["api", "mock"];
4382
+ }, {
4383
+ readonly creates: false;
4384
+ readonly description: "" | "Lists the verified organization's launch promotions: each promotional credit grant, complimentary project slot, perk and project-subscription discount, whether it came from an operator or a redeemed code, and when it ends or was revoked. Also reports effective project capacity by source and any restriction that applies. Promotional credit balances by kind are on billing.summary. Promotional value has no cash value, is never refunded and cannot move to another organization or product.";
4385
+ readonly example: {};
4386
+ readonly environments: readonly ["live"];
4387
+ readonly id: "billing.promotions";
4388
+ readonly idempotent: true;
4389
+ readonly mcp: {
4390
+ readonly destructive: false;
4391
+ readonly kind: "tool";
4392
+ readonly openWorld: false;
4393
+ };
4394
+ readonly method: "GET";
4395
+ readonly mutates: false;
4396
+ readonly path: "/v1/billing/promotions";
4397
+ readonly principals: readonly ["api-credential", "oauth", "session"];
4398
+ readonly problems: readonly ["service_unavailable", "test_to_live_escalation"];
4399
+ readonly response: import("zod").ZodNever | import("zod").ZodObject<{
4400
+ grants: import("zod").ZodArray<import("zod").ZodObject<{
4401
+ id: import("zod").ZodString;
4402
+ source: import("zod").ZodEnum<{
4403
+ code: "code";
4404
+ operator: "operator";
4405
+ }>;
4406
+ benefit: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
4407
+ kind: import("zod").ZodLiteral<"credit">;
4408
+ amount: import("zod").ZodObject<{
4409
+ currency: import("zod").ZodLiteral<"USD">;
4410
+ microdollars: import("zod").ZodString;
4411
+ scale: import("zod").ZodLiteral<6>;
4412
+ }, import("zod/v4/core").$strip>;
4413
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4414
+ kind: import("zod").ZodLiteral<"project-slot">;
4415
+ project: import("zod").ZodString;
4416
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4417
+ kind: import("zod").ZodLiteral<"perk">;
4418
+ perk: import("zod").ZodString;
4419
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4420
+ kind: import("zod").ZodLiteral<"discount">;
4421
+ percentOff: import("zod").ZodOptional<import("zod").ZodNumber>;
4422
+ amountOff: import("zod").ZodOptional<import("zod").ZodObject<{
4423
+ currency: import("zod").ZodLiteral<"USD">;
4424
+ microdollars: import("zod").ZodString;
4425
+ scale: import("zod").ZodLiteral<6>;
4426
+ }, import("zod/v4/core").$strip>>;
4427
+ duration: import("zod").ZodEnum<{
4428
+ once: "once";
4429
+ repeating: "repeating";
4430
+ }>;
4431
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
4432
+ }, import("zod/v4/core").$strip>], "kind">;
4433
+ state: import("zod").ZodEnum<{
4434
+ expired: "expired";
4435
+ active: "active";
4436
+ revoked: "revoked";
4437
+ }>;
4438
+ startsAt: import("zod").ZodString;
4439
+ endsAt: import("zod").ZodOptional<import("zod").ZodString>;
4440
+ revokedAt: import("zod").ZodOptional<import("zod").ZodString>;
4441
+ }, import("zod/v4/core").$strip>>;
4442
+ projectCapacity: import("zod").ZodObject<{
4443
+ included: import("zod").ZodNumber;
4444
+ paid: import("zod").ZodNumber;
4445
+ complimentary: import("zod").ZodNumber;
4446
+ }, import("zod/v4/core").$strip>;
4447
+ perks: import("zod").ZodArray<import("zod").ZodObject<{
4448
+ perk: import("zod").ZodString;
4449
+ endsAt: import("zod").ZodString;
4450
+ }, import("zod/v4/core").$strip>>;
4451
+ restrictions: import("zod").ZodArray<import("zod").ZodString>;
4452
+ }, import("zod/v4/core").$strip>;
4453
+ readonly scopes: readonly ["usage:read"];
4454
+ readonly sessionAuthority: "headers";
4455
+ readonly summary: "" | "List promotions and complimentary grants";
4456
+ readonly surfaces: readonly ["api", "mock"];
4457
+ }, {
4458
+ readonly example: {
4459
+ grant?: never;
4460
+ promotions?: never;
4461
+ } | {
4462
+ grant: {
4463
+ readonly benefit: {
4464
+ readonly amount: {
4465
+ readonly currency: "USD";
4466
+ readonly microdollars: "10000000";
4467
+ readonly scale: 6;
4468
+ };
4469
+ readonly kind: "credit";
4470
+ };
4471
+ readonly endsAt: "2026-12-08T12:00:00.000Z";
4472
+ readonly id: "grn_01hzy3v8k2m9q4r6t7w8x9y0za";
4473
+ readonly source: "code";
4474
+ readonly startsAt: "2026-09-09T12:00:00.000Z";
4475
+ readonly state: "active";
4476
+ };
4477
+ promotions: {
4478
+ readonly grants: readonly [{
4479
+ readonly benefit: {
4480
+ readonly amount: {
4481
+ readonly currency: "USD";
4482
+ readonly microdollars: "10000000";
4483
+ readonly scale: 6;
4484
+ };
4485
+ readonly kind: "credit";
4486
+ };
4487
+ readonly endsAt: "2026-12-08T12:00:00.000Z";
4488
+ readonly id: "grn_01hzy3v8k2m9q4r6t7w8x9y0za";
4489
+ readonly source: "code";
4490
+ readonly startsAt: "2026-09-09T12:00:00.000Z";
4491
+ readonly state: "active";
4492
+ }];
4493
+ readonly perks: readonly [];
4494
+ readonly projectCapacity: {
4495
+ readonly complimentary: 0;
4496
+ readonly included: 1;
4497
+ readonly paid: 0;
4498
+ };
4499
+ readonly restrictions: readonly [];
4500
+ };
4501
+ };
4502
+ readonly scopes: readonly ["billing:write"];
4503
+ readonly sessionAuthority: "headers";
4504
+ readonly summary: "" | "Redeem a promotion code";
4505
+ readonly surfaces: readonly ["api", "mock"];
4506
+ readonly responseHeaders?: import("zod").ZodObject<{
4507
+ "Idempotency-Replayed": import("zod").ZodOptional<import("zod").ZodLiteral<"true">>;
4508
+ }, import("zod/v4/core").$strip>;
4509
+ readonly creates: true;
4510
+ readonly description: "" | "Redeems one promotion code for the verified organization, with the billing owner's explicit confirmation. A code carries one benefit: promotional execution credit that expires and is spent before purchased credit, a complimentary slot for a named project that never becomes a paid subscription, a perk, or a discount on the project subscription shown in the next project quote. Every code that cannot be redeemed — unknown, ended, used up, not for this organization, or not combinable with a benefit already held — receives the same not_found answer; repeated refusals are throttled with rate_limited. The Idempotency-Key makes retries return the original grant. Nothing is charged and no payment method is needed.";
4511
+ readonly environments: readonly ["live"];
4512
+ readonly id: "billing.redeem";
4513
+ readonly idempotent: true;
4514
+ readonly mcp: {
4515
+ readonly destructive: false;
4516
+ readonly kind: "tool";
4517
+ readonly openWorld: false;
4518
+ };
4519
+ readonly method: "POST";
4520
+ readonly mutates: true;
4521
+ readonly path: "/v1/billing/promotions/redeem";
4522
+ readonly principals: readonly ["api-credential", "oauth", "session"];
4523
+ readonly problems: readonly ["idempotency_key_reused", "invalid_request", "not_found", "rate_limited", "service_unavailable", "state_conflict", "test_to_live_escalation"];
4524
+ readonly request: import("zod").ZodObject<{
4525
+ code: import("zod").ZodString;
4526
+ project: import("zod").ZodOptional<import("zod").ZodString>;
4527
+ confirmed: import("zod").ZodLiteral<true>;
4528
+ }, import("zod/v4/core").$strict>;
4529
+ readonly requestExample: {
4530
+ code?: never;
4531
+ confirmed?: never;
4532
+ } | {
4533
+ code: string;
4534
+ confirmed: boolean;
4535
+ };
4536
+ readonly requestHeaders: import("zod").ZodObject<{
4537
+ "Idempotency-Key": import("zod").ZodString;
4538
+ }, import("zod/v4/core").$strip>;
4539
+ readonly response: import("zod").ZodNever | import("zod").ZodObject<{
4540
+ grant: import("zod").ZodObject<{
4541
+ id: import("zod").ZodString;
4542
+ source: import("zod").ZodEnum<{
4543
+ code: "code";
4544
+ operator: "operator";
4545
+ }>;
4546
+ benefit: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
4547
+ kind: import("zod").ZodLiteral<"credit">;
4548
+ amount: import("zod").ZodObject<{
4549
+ currency: import("zod").ZodLiteral<"USD">;
4550
+ microdollars: import("zod").ZodString;
4551
+ scale: import("zod").ZodLiteral<6>;
4552
+ }, import("zod/v4/core").$strip>;
4553
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4554
+ kind: import("zod").ZodLiteral<"project-slot">;
4555
+ project: import("zod").ZodString;
4556
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4557
+ kind: import("zod").ZodLiteral<"perk">;
4558
+ perk: import("zod").ZodString;
4559
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4560
+ kind: import("zod").ZodLiteral<"discount">;
4561
+ percentOff: import("zod").ZodOptional<import("zod").ZodNumber>;
4562
+ amountOff: import("zod").ZodOptional<import("zod").ZodObject<{
4563
+ currency: import("zod").ZodLiteral<"USD">;
4564
+ microdollars: import("zod").ZodString;
4565
+ scale: import("zod").ZodLiteral<6>;
4566
+ }, import("zod/v4/core").$strip>>;
4567
+ duration: import("zod").ZodEnum<{
4568
+ once: "once";
4569
+ repeating: "repeating";
4570
+ }>;
4571
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
4572
+ }, import("zod/v4/core").$strip>], "kind">;
4573
+ state: import("zod").ZodEnum<{
4574
+ expired: "expired";
4575
+ active: "active";
4576
+ revoked: "revoked";
4577
+ }>;
4578
+ startsAt: import("zod").ZodString;
4579
+ endsAt: import("zod").ZodOptional<import("zod").ZodString>;
4580
+ revokedAt: import("zod").ZodOptional<import("zod").ZodString>;
4581
+ }, import("zod/v4/core").$strip>;
4582
+ promotions: import("zod").ZodObject<{
4583
+ grants: import("zod").ZodArray<import("zod").ZodObject<{
4584
+ id: import("zod").ZodString;
4585
+ source: import("zod").ZodEnum<{
4586
+ code: "code";
4587
+ operator: "operator";
4588
+ }>;
4589
+ benefit: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
4590
+ kind: import("zod").ZodLiteral<"credit">;
4591
+ amount: import("zod").ZodObject<{
4592
+ currency: import("zod").ZodLiteral<"USD">;
4593
+ microdollars: import("zod").ZodString;
4594
+ scale: import("zod").ZodLiteral<6>;
4595
+ }, import("zod/v4/core").$strip>;
4596
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4597
+ kind: import("zod").ZodLiteral<"project-slot">;
4598
+ project: import("zod").ZodString;
4599
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4600
+ kind: import("zod").ZodLiteral<"perk">;
4601
+ perk: import("zod").ZodString;
4602
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4603
+ kind: import("zod").ZodLiteral<"discount">;
4604
+ percentOff: import("zod").ZodOptional<import("zod").ZodNumber>;
4605
+ amountOff: import("zod").ZodOptional<import("zod").ZodObject<{
4606
+ currency: import("zod").ZodLiteral<"USD">;
4607
+ microdollars: import("zod").ZodString;
4608
+ scale: import("zod").ZodLiteral<6>;
4609
+ }, import("zod/v4/core").$strip>>;
4610
+ duration: import("zod").ZodEnum<{
4611
+ once: "once";
4612
+ repeating: "repeating";
4613
+ }>;
4614
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
4615
+ }, import("zod/v4/core").$strip>], "kind">;
4616
+ state: import("zod").ZodEnum<{
4617
+ expired: "expired";
4618
+ active: "active";
4619
+ revoked: "revoked";
4620
+ }>;
4621
+ startsAt: import("zod").ZodString;
4622
+ endsAt: import("zod").ZodOptional<import("zod").ZodString>;
4623
+ revokedAt: import("zod").ZodOptional<import("zod").ZodString>;
4624
+ }, import("zod/v4/core").$strip>>;
4625
+ projectCapacity: import("zod").ZodObject<{
4626
+ included: import("zod").ZodNumber;
4627
+ paid: import("zod").ZodNumber;
4628
+ complimentary: import("zod").ZodNumber;
4629
+ }, import("zod/v4/core").$strip>;
4630
+ perks: import("zod").ZodArray<import("zod").ZodObject<{
4631
+ perk: import("zod").ZodString;
4632
+ endsAt: import("zod").ZodString;
4633
+ }, import("zod/v4/core").$strip>>;
4634
+ restrictions: import("zod").ZodArray<import("zod").ZodString>;
4635
+ }, import("zod/v4/core").$strip>;
4636
+ }, import("zod/v4/core").$strip>;
4286
4637
  }, NamedOperation<"billing.notices">, NamedOperation<"billing.notificationsettings">, NamedOperation<"billing.notificationsettingsupdate">, {
4287
4638
  readonly creates: false;
4288
4639
  readonly description: "" | "Reads the verified principal's authoritative execution-funding position, including available and reserved credit, amount owed, recurring project fees, the current UTC month's automatic-charge ceiling and its settled, pending and remaining gross authority, and bounded payment history. Manual purchases and project subscriptions are separately authorized and never consume the automatic ceiling. Pending gross charges include applicable tax; refunds never restore monthly automatic purchasing authority. Receipt and payment links are limited to supported provider-hosted HTTPS URLs.";
@@ -4626,6 +4977,29 @@ export declare const OPERATIONS: readonly [{
4626
4977
  renewalGraceUntil: import("zod").ZodOptional<import("zod").ZodString>;
4627
4978
  cancellationAt: import("zod").ZodOptional<import("zod").ZodString>;
4628
4979
  deleted: import("zod").ZodBoolean;
4980
+ complimentary: import("zod").ZodOptional<import("zod").ZodObject<{
4981
+ grant: import("zod").ZodString;
4982
+ endsAt: import("zod").ZodString;
4983
+ }, import("zod/v4/core").$strip>>;
4984
+ }, import("zod/v4/core").$strip>>;
4985
+ discount: import("zod").ZodOptional<import("zod").ZodObject<{
4986
+ grant: import("zod").ZodString;
4987
+ duration: import("zod").ZodEnum<{
4988
+ once: "once";
4989
+ repeating: "repeating";
4990
+ }>;
4991
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
4992
+ percentOff: import("zod").ZodOptional<import("zod").ZodNumber>;
4993
+ amountOff: import("zod").ZodOptional<import("zod").ZodObject<{
4994
+ currency: import("zod").ZodLiteral<"USD">;
4995
+ microdollars: import("zod").ZodString;
4996
+ scale: import("zod").ZodLiteral<6>;
4997
+ }, import("zod/v4/core").$strip>>;
4998
+ state: import("zod").ZodEnum<{
4999
+ pending: "pending";
5000
+ applied: "applied";
5001
+ }>;
5002
+ appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
4629
5003
  }, import("zod/v4/core").$strip>>;
4630
5004
  pendingOperations: import("zod").ZodArray<import("zod").ZodObject<{
4631
5005
  id: import("zod").ZodString;
@@ -4686,6 +5060,23 @@ export declare const OPERATIONS: readonly [{
4686
5060
  }, import("zod/v4/core").$strip>;
4687
5061
  effectiveAt: import("zod").ZodString;
4688
5062
  formerIncludedWillBlock: import("zod").ZodBoolean;
5063
+ discount: import("zod").ZodOptional<import("zod").ZodObject<{
5064
+ gross: import("zod").ZodObject<{
5065
+ currency: import("zod").ZodLiteral<"USD">;
5066
+ microdollars: import("zod").ZodString;
5067
+ scale: import("zod").ZodLiteral<6>;
5068
+ }, import("zod/v4/core").$strip>;
5069
+ amount: import("zod").ZodObject<{
5070
+ currency: import("zod").ZodLiteral<"USD">;
5071
+ microdollars: import("zod").ZodString;
5072
+ scale: import("zod").ZodLiteral<6>;
5073
+ }, import("zod/v4/core").$strip>;
5074
+ duration: import("zod").ZodEnum<{
5075
+ once: "once";
5076
+ repeating: "repeating";
5077
+ }>;
5078
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
5079
+ }, import("zod/v4/core").$strip>>;
4689
5080
  }, import("zod/v4/core").$strict>;
4690
5081
  readonly example: {};
4691
5082
  readonly summary: "" | "Preview a named project billing change";
@@ -4746,6 +5137,29 @@ export declare const OPERATIONS: readonly [{
4746
5137
  renewalGraceUntil: import("zod").ZodOptional<import("zod").ZodString>;
4747
5138
  cancellationAt: import("zod").ZodOptional<import("zod").ZodString>;
4748
5139
  deleted: import("zod").ZodBoolean;
5140
+ complimentary: import("zod").ZodOptional<import("zod").ZodObject<{
5141
+ grant: import("zod").ZodString;
5142
+ endsAt: import("zod").ZodString;
5143
+ }, import("zod/v4/core").$strip>>;
5144
+ }, import("zod/v4/core").$strip>>;
5145
+ discount: import("zod").ZodOptional<import("zod").ZodObject<{
5146
+ grant: import("zod").ZodString;
5147
+ duration: import("zod").ZodEnum<{
5148
+ once: "once";
5149
+ repeating: "repeating";
5150
+ }>;
5151
+ durationInMonths: import("zod").ZodOptional<import("zod").ZodNumber>;
5152
+ percentOff: import("zod").ZodOptional<import("zod").ZodNumber>;
5153
+ amountOff: import("zod").ZodOptional<import("zod").ZodObject<{
5154
+ currency: import("zod").ZodLiteral<"USD">;
5155
+ microdollars: import("zod").ZodString;
5156
+ scale: import("zod").ZodLiteral<6>;
5157
+ }, import("zod/v4/core").$strip>>;
5158
+ state: import("zod").ZodEnum<{
5159
+ pending: "pending";
5160
+ applied: "applied";
5161
+ }>;
5162
+ appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
4749
5163
  }, import("zod/v4/core").$strip>>;
4750
5164
  pendingOperations: import("zod").ZodArray<import("zod").ZodObject<{
4751
5165
  id: import("zod").ZodString;
@@ -5153,6 +5567,92 @@ export declare const OPERATIONS: readonly [{
5153
5567
  microdollars: import("zod").ZodString;
5154
5568
  scale: import("zod").ZodLiteral<6>;
5155
5569
  }, import("zod/v4/core").$strip>;
5570
+ byKind: import("zod").ZodOptional<import("zod").ZodObject<{
5571
+ purchased: import("zod").ZodObject<{
5572
+ available: import("zod").ZodObject<{
5573
+ currency: import("zod").ZodLiteral<"USD">;
5574
+ microdollars: import("zod").ZodString;
5575
+ scale: import("zod").ZodLiteral<6>;
5576
+ }, import("zod/v4/core").$strip>;
5577
+ reserved: import("zod").ZodObject<{
5578
+ currency: import("zod").ZodLiteral<"USD">;
5579
+ microdollars: import("zod").ZodString;
5580
+ scale: import("zod").ZodLiteral<6>;
5581
+ }, import("zod/v4/core").$strip>;
5582
+ consumed: import("zod").ZodObject<{
5583
+ currency: import("zod").ZodLiteral<"USD">;
5584
+ microdollars: import("zod").ZodString;
5585
+ scale: import("zod").ZodLiteral<6>;
5586
+ }, import("zod/v4/core").$strip>;
5587
+ forfeited: import("zod").ZodObject<{
5588
+ currency: import("zod").ZodLiteral<"USD">;
5589
+ microdollars: import("zod").ZodString;
5590
+ scale: import("zod").ZodLiteral<6>;
5591
+ }, import("zod/v4/core").$strip>;
5592
+ granted: import("zod").ZodObject<{
5593
+ currency: import("zod").ZodLiteral<"USD">;
5594
+ microdollars: import("zod").ZodString;
5595
+ scale: import("zod").ZodLiteral<6>;
5596
+ }, import("zod/v4/core").$strip>;
5597
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
5598
+ }, import("zod/v4/core").$strip>;
5599
+ trial: import("zod").ZodObject<{
5600
+ available: import("zod").ZodObject<{
5601
+ currency: import("zod").ZodLiteral<"USD">;
5602
+ microdollars: import("zod").ZodString;
5603
+ scale: import("zod").ZodLiteral<6>;
5604
+ }, import("zod/v4/core").$strip>;
5605
+ reserved: import("zod").ZodObject<{
5606
+ currency: import("zod").ZodLiteral<"USD">;
5607
+ microdollars: import("zod").ZodString;
5608
+ scale: import("zod").ZodLiteral<6>;
5609
+ }, import("zod/v4/core").$strip>;
5610
+ consumed: import("zod").ZodObject<{
5611
+ currency: import("zod").ZodLiteral<"USD">;
5612
+ microdollars: import("zod").ZodString;
5613
+ scale: import("zod").ZodLiteral<6>;
5614
+ }, import("zod/v4/core").$strip>;
5615
+ forfeited: import("zod").ZodObject<{
5616
+ currency: import("zod").ZodLiteral<"USD">;
5617
+ microdollars: import("zod").ZodString;
5618
+ scale: import("zod").ZodLiteral<6>;
5619
+ }, import("zod/v4/core").$strip>;
5620
+ granted: import("zod").ZodObject<{
5621
+ currency: import("zod").ZodLiteral<"USD">;
5622
+ microdollars: import("zod").ZodString;
5623
+ scale: import("zod").ZodLiteral<6>;
5624
+ }, import("zod/v4/core").$strip>;
5625
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
5626
+ }, import("zod/v4/core").$strip>;
5627
+ promotional: import("zod").ZodObject<{
5628
+ available: import("zod").ZodObject<{
5629
+ currency: import("zod").ZodLiteral<"USD">;
5630
+ microdollars: import("zod").ZodString;
5631
+ scale: import("zod").ZodLiteral<6>;
5632
+ }, import("zod/v4/core").$strip>;
5633
+ reserved: import("zod").ZodObject<{
5634
+ currency: import("zod").ZodLiteral<"USD">;
5635
+ microdollars: import("zod").ZodString;
5636
+ scale: import("zod").ZodLiteral<6>;
5637
+ }, import("zod/v4/core").$strip>;
5638
+ consumed: import("zod").ZodObject<{
5639
+ currency: import("zod").ZodLiteral<"USD">;
5640
+ microdollars: import("zod").ZodString;
5641
+ scale: import("zod").ZodLiteral<6>;
5642
+ }, import("zod/v4/core").$strip>;
5643
+ forfeited: import("zod").ZodObject<{
5644
+ currency: import("zod").ZodLiteral<"USD">;
5645
+ microdollars: import("zod").ZodString;
5646
+ scale: import("zod").ZodLiteral<6>;
5647
+ }, import("zod/v4/core").$strip>;
5648
+ granted: import("zod").ZodObject<{
5649
+ currency: import("zod").ZodLiteral<"USD">;
5650
+ microdollars: import("zod").ZodString;
5651
+ scale: import("zod").ZodLiteral<6>;
5652
+ }, import("zod/v4/core").$strip>;
5653
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
5654
+ }, import("zod/v4/core").$strip>;
5655
+ }, import("zod/v4/core").$strip>>;
5156
5656
  }, import("zod/v4/core").$strip>;
5157
5657
  desiredRevision: import("zod").ZodNumber;
5158
5658
  effectiveRevision: import("zod").ZodNumber;
@@ -5889,6 +6389,8 @@ export declare const OPERATIONS: readonly [{
5889
6389
  cursor: import("zod").ZodOptional<import("zod").ZodString>;
5890
6390
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
5891
6391
  endpoint: import("zod").ZodOptional<import("zod").ZodString>;
6392
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
6393
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
5892
6394
  from: import("zod").ZodOptional<import("zod").ZodString>;
5893
6395
  outcome: import("zod").ZodOptional<import("zod").ZodEnum<{
5894
6396
  succeeded: "succeeded";
@@ -6632,6 +7134,8 @@ export declare const OPERATIONS: readonly [{
6632
7134
  }, import("zod/v4/core").$strict>>;
6633
7135
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
6634
7136
  name: import("zod").ZodOptional<import("zod").ZodString>;
7137
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7138
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
6635
7139
  timeZone: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<string, string>>>;
6636
7140
  }, import("zod/v4/core").$strict>;
6637
7141
  readonly requestExample: {
@@ -6752,6 +7256,8 @@ export declare const OPERATIONS: readonly [{
6752
7256
  }>;
6753
7257
  }, import("zod/v4/core").$strict>;
6754
7258
  name: import("zod").ZodOptional<import("zod").ZodString>;
7259
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7260
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
6755
7261
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
6756
7262
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
6757
7263
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -6930,6 +7436,8 @@ export declare const OPERATIONS: readonly [{
6930
7436
  }>;
6931
7437
  }, import("zod/v4/core").$strict>;
6932
7438
  name: import("zod").ZodOptional<import("zod").ZodString>;
7439
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7440
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
6933
7441
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
6934
7442
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
6935
7443
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -7103,6 +7611,8 @@ export declare const OPERATIONS: readonly [{
7103
7611
  }>;
7104
7612
  }, import("zod/v4/core").$strict>;
7105
7613
  name: import("zod").ZodOptional<import("zod").ZodString>;
7614
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7615
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
7106
7616
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
7107
7617
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
7108
7618
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -7277,6 +7787,8 @@ export declare const OPERATIONS: readonly [{
7277
7787
  }>;
7278
7788
  }, import("zod/v4/core").$strict>;
7279
7789
  name: import("zod").ZodOptional<import("zod").ZodString>;
7790
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7791
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
7280
7792
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
7281
7793
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
7282
7794
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
@@ -7452,6 +7964,8 @@ export declare const OPERATIONS: readonly [{
7452
7964
  }>;
7453
7965
  }, import("zod/v4/core").$strict>;
7454
7966
  name: import("zod").ZodOptional<import("zod").ZodString>;
7967
+ external_identifier: import("zod").ZodOptional<import("zod").ZodString>;
7968
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
7455
7969
  partitionKey: import("zod").ZodOptional<import("zod").ZodString>;
7456
7970
  nextDueAt: import("zod").ZodOptional<import("zod").ZodString>;
7457
7971
  recurrence: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{