@pixerate/schemas 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12294,5 +12294,487 @@ declare const CRDTSnapshotSchema: z.ZodObject<{
12294
12294
  state?: Record<string, unknown> | undefined;
12295
12295
  }>;
12296
12296
  type CRDTSnapshot = z.infer<typeof CRDTSnapshotSchema>;
12297
+ declare const AuthUserSchema: z.ZodObject<{
12298
+ id: z.ZodString;
12299
+ email: z.ZodString;
12300
+ displayName: z.ZodOptional<z.ZodString>;
12301
+ photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12302
+ emailVerified: z.ZodDefault<z.ZodBoolean>;
12303
+ provider: z.ZodDefault<z.ZodString>;
12304
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12305
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12306
+ }, "strip", z.ZodTypeAny, {
12307
+ email: string;
12308
+ id: string;
12309
+ metadata: Record<string, unknown>;
12310
+ emailVerified: boolean;
12311
+ provider: string;
12312
+ createdAt?: string | number | Date | undefined;
12313
+ displayName?: string | undefined;
12314
+ photoURL?: string | null | undefined;
12315
+ }, {
12316
+ email: string;
12317
+ id: string;
12318
+ createdAt?: string | number | Date | undefined;
12319
+ metadata?: Record<string, unknown> | undefined;
12320
+ displayName?: string | undefined;
12321
+ photoURL?: string | null | undefined;
12322
+ emailVerified?: boolean | undefined;
12323
+ provider?: string | undefined;
12324
+ }>;
12325
+ type AuthUser = z.infer<typeof AuthUserSchema>;
12326
+ declare const UserPreferencesSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12327
+ type UserPreferences = z.infer<typeof UserPreferencesSchema>;
12328
+ declare const UserProfileSchema: z.ZodObject<{
12329
+ id: z.ZodString;
12330
+ displayName: z.ZodDefault<z.ZodString>;
12331
+ photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12332
+ email: z.ZodOptional<z.ZodString>;
12333
+ defaultOrgId: z.ZodOptional<z.ZodString>;
12334
+ defaultTeamId: z.ZodOptional<z.ZodString>;
12335
+ orgIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12336
+ teamIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12337
+ preferences: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12338
+ onboarding: z.ZodOptional<z.ZodObject<{
12339
+ completed: z.ZodDefault<z.ZodBoolean>;
12340
+ rolePreference: z.ZodOptional<z.ZodString>;
12341
+ milestones: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12342
+ skipped: z.ZodDefault<z.ZodBoolean>;
12343
+ }, "strip", z.ZodTypeAny, {
12344
+ completed: boolean;
12345
+ milestones: string[];
12346
+ skipped: boolean;
12347
+ rolePreference?: string | undefined;
12348
+ }, {
12349
+ completed?: boolean | undefined;
12350
+ rolePreference?: string | undefined;
12351
+ milestones?: string[] | undefined;
12352
+ skipped?: boolean | undefined;
12353
+ }>>;
12354
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12355
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12356
+ }, "strip", z.ZodTypeAny, {
12357
+ id: string;
12358
+ displayName: string;
12359
+ orgIds: string[];
12360
+ teamIds: string[];
12361
+ preferences: Record<string, unknown>;
12362
+ email?: string | undefined;
12363
+ createdAt?: string | number | Date | undefined;
12364
+ updatedAt?: string | number | Date | undefined;
12365
+ photoURL?: string | null | undefined;
12366
+ defaultOrgId?: string | undefined;
12367
+ defaultTeamId?: string | undefined;
12368
+ onboarding?: {
12369
+ completed: boolean;
12370
+ milestones: string[];
12371
+ skipped: boolean;
12372
+ rolePreference?: string | undefined;
12373
+ } | undefined;
12374
+ }, {
12375
+ id: string;
12376
+ email?: string | undefined;
12377
+ createdAt?: string | number | Date | undefined;
12378
+ updatedAt?: string | number | Date | undefined;
12379
+ displayName?: string | undefined;
12380
+ photoURL?: string | null | undefined;
12381
+ defaultOrgId?: string | undefined;
12382
+ defaultTeamId?: string | undefined;
12383
+ orgIds?: string[] | undefined;
12384
+ teamIds?: string[] | undefined;
12385
+ preferences?: Record<string, unknown> | undefined;
12386
+ onboarding?: {
12387
+ completed?: boolean | undefined;
12388
+ rolePreference?: string | undefined;
12389
+ milestones?: string[] | undefined;
12390
+ skipped?: boolean | undefined;
12391
+ } | undefined;
12392
+ }>;
12393
+ type UserProfile = z.infer<typeof UserProfileSchema>;
12394
+ declare const TeamRoleSchema: z.ZodEnum<["owner", "admin", "editor", "viewer", "member"]>;
12395
+ type TeamRole = z.infer<typeof TeamRoleSchema>;
12396
+ declare const OrgMemberSchema: z.ZodObject<{
12397
+ id: z.ZodString;
12398
+ orgId: z.ZodString;
12399
+ userId: z.ZodString;
12400
+ email: z.ZodString;
12401
+ role: z.ZodDefault<z.ZodEnum<["owner", "admin", "editor", "viewer", "member"]>>;
12402
+ status: z.ZodDefault<z.ZodEnum<["active", "invited", "suspended"]>>;
12403
+ teamIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12404
+ joinedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12405
+ invitedBy: z.ZodOptional<z.ZodString>;
12406
+ }, "strip", z.ZodTypeAny, {
12407
+ status: "active" | "invited" | "suspended";
12408
+ email: string;
12409
+ id: string;
12410
+ role: "owner" | "admin" | "editor" | "viewer" | "member";
12411
+ userId: string;
12412
+ teamIds: string[];
12413
+ orgId: string;
12414
+ joinedAt?: string | number | Date | undefined;
12415
+ invitedBy?: string | undefined;
12416
+ }, {
12417
+ email: string;
12418
+ id: string;
12419
+ userId: string;
12420
+ orgId: string;
12421
+ status?: "active" | "invited" | "suspended" | undefined;
12422
+ role?: "owner" | "admin" | "editor" | "viewer" | "member" | undefined;
12423
+ teamIds?: string[] | undefined;
12424
+ joinedAt?: string | number | Date | undefined;
12425
+ invitedBy?: string | undefined;
12426
+ }>;
12427
+ type OrgMember = z.infer<typeof OrgMemberSchema>;
12428
+ declare const OrganizationSchema: z.ZodObject<{
12429
+ id: z.ZodString;
12430
+ name: z.ZodString;
12431
+ slug: z.ZodString;
12432
+ description: z.ZodOptional<z.ZodString>;
12433
+ ownerId: z.ZodString;
12434
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12435
+ planId: z.ZodDefault<z.ZodString>;
12436
+ fuelBalance: z.ZodDefault<z.ZodNumber>;
12437
+ stripeCustomerId: z.ZodOptional<z.ZodString>;
12438
+ stripeSubscriptionId: z.ZodOptional<z.ZodString>;
12439
+ cancelAtPeriodEnd: z.ZodOptional<z.ZodBoolean>;
12440
+ billingPeriodStart: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12441
+ billingPeriodEnd: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12442
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12443
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12444
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12445
+ }, "strip", z.ZodTypeAny, {
12446
+ name: string;
12447
+ id: string;
12448
+ metadata: Record<string, unknown>;
12449
+ slug: string;
12450
+ ownerId: string;
12451
+ memberIds: string[];
12452
+ planId: string;
12453
+ fuelBalance: number;
12454
+ description?: string | undefined;
12455
+ createdAt?: string | number | Date | undefined;
12456
+ updatedAt?: string | number | Date | undefined;
12457
+ stripeCustomerId?: string | undefined;
12458
+ stripeSubscriptionId?: string | undefined;
12459
+ cancelAtPeriodEnd?: boolean | undefined;
12460
+ billingPeriodStart?: string | number | Date | undefined;
12461
+ billingPeriodEnd?: string | number | Date | undefined;
12462
+ }, {
12463
+ name: string;
12464
+ id: string;
12465
+ slug: string;
12466
+ ownerId: string;
12467
+ description?: string | undefined;
12468
+ createdAt?: string | number | Date | undefined;
12469
+ updatedAt?: string | number | Date | undefined;
12470
+ metadata?: Record<string, unknown> | undefined;
12471
+ memberIds?: string[] | undefined;
12472
+ planId?: string | undefined;
12473
+ fuelBalance?: number | undefined;
12474
+ stripeCustomerId?: string | undefined;
12475
+ stripeSubscriptionId?: string | undefined;
12476
+ cancelAtPeriodEnd?: boolean | undefined;
12477
+ billingPeriodStart?: string | number | Date | undefined;
12478
+ billingPeriodEnd?: string | number | Date | undefined;
12479
+ }>;
12480
+ type Organization = z.infer<typeof OrganizationSchema>;
12481
+ declare const TeamMemberDocSchema: z.ZodObject<{
12482
+ role: z.ZodDefault<z.ZodEnum<["owner", "admin", "editor", "viewer", "member"]>>;
12483
+ status: z.ZodDefault<z.ZodEnum<["active", "invited", "suspended"]>>;
12484
+ email: z.ZodOptional<z.ZodString>;
12485
+ joinedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12486
+ invitedBy: z.ZodOptional<z.ZodString>;
12487
+ }, "strip", z.ZodTypeAny, {
12488
+ status: "active" | "invited" | "suspended";
12489
+ role: "owner" | "admin" | "editor" | "viewer" | "member";
12490
+ email?: string | undefined;
12491
+ joinedAt?: string | number | Date | undefined;
12492
+ invitedBy?: string | undefined;
12493
+ }, {
12494
+ status?: "active" | "invited" | "suspended" | undefined;
12495
+ email?: string | undefined;
12496
+ role?: "owner" | "admin" | "editor" | "viewer" | "member" | undefined;
12497
+ joinedAt?: string | number | Date | undefined;
12498
+ invitedBy?: string | undefined;
12499
+ }>;
12500
+ type TeamMemberDoc = z.infer<typeof TeamMemberDocSchema>;
12501
+ declare const TeamMemberSchema: z.ZodObject<{
12502
+ role: z.ZodDefault<z.ZodEnum<["owner", "admin", "editor", "viewer", "member"]>>;
12503
+ status: z.ZodDefault<z.ZodEnum<["active", "invited", "suspended"]>>;
12504
+ email: z.ZodOptional<z.ZodString>;
12505
+ joinedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12506
+ invitedBy: z.ZodOptional<z.ZodString>;
12507
+ } & {
12508
+ id: z.ZodString;
12509
+ userId: z.ZodString;
12510
+ teamId: z.ZodString;
12511
+ displayName: z.ZodOptional<z.ZodString>;
12512
+ photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12513
+ }, "strip", z.ZodTypeAny, {
12514
+ status: "active" | "invited" | "suspended";
12515
+ id: string;
12516
+ role: "owner" | "admin" | "editor" | "viewer" | "member";
12517
+ userId: string;
12518
+ teamId: string;
12519
+ email?: string | undefined;
12520
+ displayName?: string | undefined;
12521
+ photoURL?: string | null | undefined;
12522
+ joinedAt?: string | number | Date | undefined;
12523
+ invitedBy?: string | undefined;
12524
+ }, {
12525
+ id: string;
12526
+ userId: string;
12527
+ teamId: string;
12528
+ status?: "active" | "invited" | "suspended" | undefined;
12529
+ email?: string | undefined;
12530
+ role?: "owner" | "admin" | "editor" | "viewer" | "member" | undefined;
12531
+ displayName?: string | undefined;
12532
+ photoURL?: string | null | undefined;
12533
+ joinedAt?: string | number | Date | undefined;
12534
+ invitedBy?: string | undefined;
12535
+ }>;
12536
+ type TeamMember = z.infer<typeof TeamMemberSchema>;
12537
+ declare const TeamSchema: z.ZodObject<{
12538
+ id: z.ZodString;
12539
+ orgId: z.ZodOptional<z.ZodString>;
12540
+ name: z.ZodString;
12541
+ slug: z.ZodOptional<z.ZodString>;
12542
+ description: z.ZodOptional<z.ZodString>;
12543
+ ownerId: z.ZodString;
12544
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12545
+ planId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12546
+ fuelBalance: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12547
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12548
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12549
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12550
+ }, "strip", z.ZodTypeAny, {
12551
+ name: string;
12552
+ id: string;
12553
+ metadata: Record<string, unknown>;
12554
+ ownerId: string;
12555
+ memberIds: string[];
12556
+ planId: string;
12557
+ fuelBalance: number;
12558
+ description?: string | undefined;
12559
+ createdAt?: string | number | Date | undefined;
12560
+ updatedAt?: string | number | Date | undefined;
12561
+ orgId?: string | undefined;
12562
+ slug?: string | undefined;
12563
+ }, {
12564
+ name: string;
12565
+ id: string;
12566
+ ownerId: string;
12567
+ description?: string | undefined;
12568
+ createdAt?: string | number | Date | undefined;
12569
+ updatedAt?: string | number | Date | undefined;
12570
+ metadata?: Record<string, unknown> | undefined;
12571
+ orgId?: string | undefined;
12572
+ slug?: string | undefined;
12573
+ memberIds?: string[] | undefined;
12574
+ planId?: string | undefined;
12575
+ fuelBalance?: number | undefined;
12576
+ }>;
12577
+ type Team = z.infer<typeof TeamSchema>;
12578
+ declare const InviteTargetTypeSchema: z.ZodEnum<["organization", "team"]>;
12579
+ type InviteTargetType = z.infer<typeof InviteTargetTypeSchema>;
12580
+ declare const InviteStatusSchema: z.ZodEnum<["pending", "accepted", "revoked", "expired"]>;
12581
+ type InviteStatus = z.infer<typeof InviteStatusSchema>;
12582
+ declare const InviteSchema: z.ZodObject<{
12583
+ id: z.ZodString;
12584
+ token: z.ZodString;
12585
+ targetType: z.ZodEnum<["organization", "team"]>;
12586
+ targetId: z.ZodString;
12587
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12588
+ role: z.ZodDefault<z.ZodEnum<["owner", "admin", "editor", "viewer", "member"]>>;
12589
+ invitedBy: z.ZodString;
12590
+ status: z.ZodDefault<z.ZodEnum<["pending", "accepted", "revoked", "expired"]>>;
12591
+ maxUses: z.ZodDefault<z.ZodNumber>;
12592
+ useCount: z.ZodDefault<z.ZodNumber>;
12593
+ acceptedBy: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12594
+ expiresAt: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>;
12595
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12596
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12597
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12598
+ }, "strip", z.ZodTypeAny, {
12599
+ status: "expired" | "pending" | "accepted" | "revoked";
12600
+ id: string;
12601
+ metadata: Record<string, unknown>;
12602
+ role: "owner" | "admin" | "editor" | "viewer" | "member";
12603
+ expiresAt: string | number | Date;
12604
+ invitedBy: string;
12605
+ token: string;
12606
+ targetType: "organization" | "team";
12607
+ targetId: string;
12608
+ maxUses: number;
12609
+ useCount: number;
12610
+ acceptedBy: string[];
12611
+ email?: string | null | undefined;
12612
+ createdAt?: string | number | Date | undefined;
12613
+ updatedAt?: string | number | Date | undefined;
12614
+ }, {
12615
+ id: string;
12616
+ expiresAt: string | number | Date;
12617
+ invitedBy: string;
12618
+ token: string;
12619
+ targetType: "organization" | "team";
12620
+ targetId: string;
12621
+ status?: "expired" | "pending" | "accepted" | "revoked" | undefined;
12622
+ email?: string | null | undefined;
12623
+ createdAt?: string | number | Date | undefined;
12624
+ updatedAt?: string | number | Date | undefined;
12625
+ metadata?: Record<string, unknown> | undefined;
12626
+ role?: "owner" | "admin" | "editor" | "viewer" | "member" | undefined;
12627
+ maxUses?: number | undefined;
12628
+ useCount?: number | undefined;
12629
+ acceptedBy?: string[] | undefined;
12630
+ }>;
12631
+ type Invite = z.infer<typeof InviteSchema>;
12632
+ declare const WaitlistStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "onboarded"]>;
12633
+ type WaitlistStatus = z.infer<typeof WaitlistStatusSchema>;
12634
+ declare const WaitlistEntrySchema: z.ZodObject<{
12635
+ id: z.ZodString;
12636
+ email: z.ZodString;
12637
+ name: z.ZodOptional<z.ZodString>;
12638
+ status: z.ZodDefault<z.ZodEnum<["pending", "approved", "rejected", "onboarded"]>>;
12639
+ referralCode: z.ZodOptional<z.ZodString>;
12640
+ referredBy: z.ZodOptional<z.ZodString>;
12641
+ referralCount: z.ZodDefault<z.ZodNumber>;
12642
+ position: z.ZodOptional<z.ZodNumber>;
12643
+ priorityScore: z.ZodDefault<z.ZodNumber>;
12644
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12645
+ approvedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12646
+ onboardedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12647
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12648
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12649
+ }, "strip", z.ZodTypeAny, {
12650
+ status: "pending" | "approved" | "rejected" | "onboarded";
12651
+ email: string;
12652
+ id: string;
12653
+ metadata: Record<string, unknown>;
12654
+ referralCount: number;
12655
+ priorityScore: number;
12656
+ position?: number | undefined;
12657
+ name?: string | undefined;
12658
+ createdAt?: string | number | Date | undefined;
12659
+ updatedAt?: string | number | Date | undefined;
12660
+ referralCode?: string | undefined;
12661
+ referredBy?: string | undefined;
12662
+ approvedAt?: string | number | Date | undefined;
12663
+ onboardedAt?: string | number | Date | undefined;
12664
+ }, {
12665
+ email: string;
12666
+ id: string;
12667
+ status?: "pending" | "approved" | "rejected" | "onboarded" | undefined;
12668
+ position?: number | undefined;
12669
+ name?: string | undefined;
12670
+ createdAt?: string | number | Date | undefined;
12671
+ updatedAt?: string | number | Date | undefined;
12672
+ metadata?: Record<string, unknown> | undefined;
12673
+ referralCode?: string | undefined;
12674
+ referredBy?: string | undefined;
12675
+ referralCount?: number | undefined;
12676
+ priorityScore?: number | undefined;
12677
+ approvedAt?: string | number | Date | undefined;
12678
+ onboardedAt?: string | number | Date | undefined;
12679
+ }>;
12680
+ type WaitlistEntry = z.infer<typeof WaitlistEntrySchema>;
12681
+ declare const FuelTransactionTypeSchema: z.ZodEnum<["usage", "consumption", "top_up", "topup", "proration", "adjustment", "allocation", "bonus", "refund"]>;
12682
+ type FuelTransactionType = z.infer<typeof FuelTransactionTypeSchema>;
12683
+ declare const FuelTransactionSchema: z.ZodObject<{
12684
+ id: z.ZodString;
12685
+ orgId: z.ZodOptional<z.ZodString>;
12686
+ teamId: z.ZodOptional<z.ZodString>;
12687
+ targetType: z.ZodOptional<z.ZodEnum<["organization", "team", "user"]>>;
12688
+ targetId: z.ZodOptional<z.ZodString>;
12689
+ userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12690
+ amount: z.ZodNumber;
12691
+ balanceAfter: z.ZodOptional<z.ZodNumber>;
12692
+ type: z.ZodEnum<["usage", "consumption", "top_up", "topup", "proration", "adjustment", "allocation", "bonus", "refund"]>;
12693
+ reason: z.ZodOptional<z.ZodString>;
12694
+ description: z.ZodOptional<z.ZodString>;
12695
+ resultType: z.ZodOptional<z.ZodString>;
12696
+ resultId: z.ZodOptional<z.ZodString>;
12697
+ client: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12698
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12699
+ createdAt: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodDate]>>;
12700
+ }, "strip", z.ZodTypeAny, {
12701
+ type: "usage" | "consumption" | "top_up" | "topup" | "proration" | "adjustment" | "allocation" | "bonus" | "refund";
12702
+ id: string;
12703
+ createdAt: string | number | Date;
12704
+ metadata: Record<string, unknown>;
12705
+ client: string;
12706
+ amount: number;
12707
+ description?: string | undefined;
12708
+ userId?: string | null | undefined;
12709
+ orgId?: string | undefined;
12710
+ teamId?: string | undefined;
12711
+ targetType?: "user" | "organization" | "team" | undefined;
12712
+ targetId?: string | undefined;
12713
+ balanceAfter?: number | undefined;
12714
+ reason?: string | undefined;
12715
+ resultType?: string | undefined;
12716
+ resultId?: string | undefined;
12717
+ }, {
12718
+ type: "usage" | "consumption" | "top_up" | "topup" | "proration" | "adjustment" | "allocation" | "bonus" | "refund";
12719
+ id: string;
12720
+ amount: number;
12721
+ description?: string | undefined;
12722
+ createdAt?: string | number | Date | undefined;
12723
+ metadata?: Record<string, unknown> | undefined;
12724
+ client?: string | undefined;
12725
+ userId?: string | null | undefined;
12726
+ orgId?: string | undefined;
12727
+ teamId?: string | undefined;
12728
+ targetType?: "user" | "organization" | "team" | undefined;
12729
+ targetId?: string | undefined;
12730
+ balanceAfter?: number | undefined;
12731
+ reason?: string | undefined;
12732
+ resultType?: string | undefined;
12733
+ resultId?: string | undefined;
12734
+ }>;
12735
+ type FuelTransaction = z.infer<typeof FuelTransactionSchema>;
12736
+ declare const FuelPlanSchema: z.ZodObject<{
12737
+ id: z.ZodString;
12738
+ name: z.ZodString;
12739
+ monthlyAllocation: z.ZodOptional<z.ZodNumber>;
12740
+ monthlyFuel: z.ZodOptional<z.ZodNumber>;
12741
+ allowRollover: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12742
+ rolloverFuel: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12743
+ maxRolloverFuel: z.ZodOptional<z.ZodNumber>;
12744
+ maxTeamMembers: z.ZodOptional<z.ZodNumber>;
12745
+ priceMonthlyCents: z.ZodOptional<z.ZodNumber>;
12746
+ features: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12747
+ stripePriceId: z.ZodOptional<z.ZodString>;
12748
+ rateLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
12749
+ }, "strip", z.ZodTypeAny, {
12750
+ name: string;
12751
+ id: string;
12752
+ allowRollover: boolean;
12753
+ rolloverFuel: boolean;
12754
+ features: string[];
12755
+ monthlyAllocation?: number | undefined;
12756
+ monthlyFuel?: number | undefined;
12757
+ maxRolloverFuel?: number | undefined;
12758
+ maxTeamMembers?: number | undefined;
12759
+ priceMonthlyCents?: number | undefined;
12760
+ stripePriceId?: string | undefined;
12761
+ rateLimits?: Record<string, number> | undefined;
12762
+ }, {
12763
+ name: string;
12764
+ id: string;
12765
+ monthlyAllocation?: number | undefined;
12766
+ monthlyFuel?: number | undefined;
12767
+ allowRollover?: boolean | undefined;
12768
+ rolloverFuel?: boolean | undefined;
12769
+ maxRolloverFuel?: number | undefined;
12770
+ maxTeamMembers?: number | undefined;
12771
+ priceMonthlyCents?: number | undefined;
12772
+ features?: string[] | undefined;
12773
+ stripePriceId?: string | undefined;
12774
+ rateLimits?: Record<string, number> | undefined;
12775
+ }>;
12776
+ type FuelPlan = z.infer<typeof FuelPlanSchema>;
12777
+ declare const FuelCostMapSchema: z.ZodRecord<z.ZodString, z.ZodNumber>;
12778
+ type FuelCostMap = z.infer<typeof FuelCostMapSchema>;
12297
12779
 
12298
- export { type ActivityAction, ActivityActionSchema, type ActivityActionType, ActivityActionTypeSchema, type ActivityActor, ActivityActorSchema, type ActivityEvent, ActivityEventSchema, type ActivityLog, ActivityLogSchema, type ActivityStreamFilter, ActivityStreamFilterSchema, type ActivitySubscriptionOptions, type ActorType, ActorTypeSchema, type Aesthetic, AestheticSchema, type AgentActorMetadata, AgentActorMetadataSchema, type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AnimatedGifComposite, AnimatedGifCompositeSchema, type ArcDistort, ArcDistortSchema, type AspectRatio, AspectRatioSchema, type AudioDuckingOptions, AudioDuckingOptionsSchema, type AudioMixOptions, AudioMixOptionsSchema, type AudioMixTrack, AudioMixTrackSchema, type AudioNormalizationOptions, AudioNormalizationOptionsSchema, type AudioSilenceTrimOptions, AudioSilenceTrimOptionsSchema, type AudioVisualizerOptions, AudioVisualizerOptionsSchema, type AudioVisualizerType, AudioVisualizerTypeSchema, type AutoFitCaption, AutoFitCaptionSchema, type CRDTSnapshot, CRDTSnapshotSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentDependency, ComponentDependencySchema, type ComponentDocs, ComponentDocsSchema, type ComponentPackage, ComponentPackageSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentPropDoc, ComponentPropDocSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type ComponentTransformationResult, ComponentTransformationResultSchema, type ComponentVariant, ComponentVariantSchema, type ComponentVersion, ComponentVersionSchema, type Condition, type ConditionOperator, ConditionOperatorSchema, ConditionSchema, type ControlValidation, ControlValidationSchema, type CursorPosition, CursorPositionSchema, type CursorUpdateEvent, type DecisionGate, type DecisionGateKind, DecisionGateKindSchema, DecisionGateSchema, type DimensionScore, DimensionScoreSchema, type DisplacementMap, DisplacementMapSchema, type DocumentGenerationOptions, DocumentGenerationOptionsSchema, type DropShadow, DropShadowSchema, type ExternalPackageDependency, ExternalPackageDependencySchema, FORM_SCHEMA_JSON_SCHEMA, type Fidelity, FidelitySchema, type FieldPresence, FieldPresenceSchema, type FormControl, FormControlSchema, type FormControlType, FormControlTypeSchema, type FormHandoffAction, FormHandoffActionSchema, type FormOption, FormOptionSchema, type FormReviewMeta, FormReviewMetaSchema, type FormSection, FormSectionSchema, type FormStage, FormStageSchema, type FormSubmissionPayload, FormSubmissionPayloadSchema, type FormValidator, FormValidatorSchema, type GenerateHarnessOptions, GenerateHarnessOptionsSchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageOverlayOptions, ImageOverlayOptionsSchema, type ImagePipeline, ImagePipelineSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type IngestionInput, IngestionInputSchema, type InternalComponentDependency, InternalComponentDependencySchema, type JsonGenerationPayload, JsonGenerationSchema, type KenBurnsOptions, KenBurnsOptionsSchema, type LockClaimRequest, LockClaimRequestSchema, type LockHeartbeatRequest, LockHeartbeatRequestSchema, type LockReleaseRequest, LockReleaseRequestSchema, type LockStatus, LockStatusSchema, type MediaProbeResult, MediaProbeResultSchema, type OTJsonOp, OTJsonOpSchema, type OTJsonOpType, OTJsonOpTypeSchema, type OTOperation, OTOperationSchema, type OTRevision, OTRevisionSchema, type OTTextOp, OTTextOpSchema, type OTTextOpType, OTTextOpTypeSchema, type PerceptualHashAlgorithm, PerceptualHashAlgorithmSchema, type PerceptualHashOptions, PerceptualHashOptionsSchema, type PerspectiveQuad, PerspectiveQuadSchema, type PerspectiveWarp, PerspectiveWarpSchema, type PlatformLanguage, PlatformLanguageSchema, type Point2D, Point2DSchema, type PresenceColor, PresenceColorSchema, type PresenceHeartbeat, type PresenceJoinEvent, type PresenceLeaveEvent, type PresenceState, PresenceStateSchema, type PresenceStatus, PresenceStatusSchema, type PresenceUser, PresenceUserSchema, type PreviewHarness, PreviewHarnessSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type RecordLock, type RecordLockInfo, RecordLockInfoSchema, RecordLockSchema, type ReferenceDataSource, ReferenceDataSourceSchema, type ScoreBand, ScoreBandSchema, type ScoringConfig, ScoringConfigSchema, type ScoringDimension, ScoringDimensionSchema, type ScoringRule, ScoringRuleSchema, type SemanticReviewIssue, SemanticReviewIssueSchema, type SemanticReviewResult, SemanticReviewResultSchema, type SemanticReviewStatus, SemanticReviewStatusSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type SubmissionScore, SubmissionScoreSchema, type SubtitleBurnOptions, SubtitleBurnOptionsSchema, type SubtitleFormat, SubtitleFormatSchema, TechnicalFormSchema, type TechnicalSchema, type TextAlignment, TextAlignmentSchema, type TextOverlay, type TextOverlayPosition, TextOverlayPositionSchema, TextOverlaySchema, type TextOverlayStyle, TextOverlayStyleSchema, type Theme, type ThemeColors, ThemeColorsSchema, type ThemeIngestionInput, ThemeIngestionInputSchema, ThemeSchema, type ThemeSupport, ThemeSupportSchema, type ThemeTokens, ThemeTokensSchema, type ThemeTypographyTokens, ThemeTypographyTokensSchema, type TypingIndicator, TypingIndicatorSchema, type UIComponentType, UIComponentTypeSchema, type UIExtractionResult, UIExtractionResultSchema, type UIGenerationOptionsPayload, UIGenerationOptionsSchema, type UIGenerationResult, UIGenerationResultSchema, type UIValidationResult, UIValidationResultSchema, type VectorTraceOptions, VectorTraceOptionsSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoAttachment, VideoAttachmentSchema, type VideoCompositingPayload, VideoCompositingSchema, type VideoCompressionPayload, VideoCompressionSchema, type VideoFrameImage, VideoFrameImageSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoModificationPayload, VideoModificationSchema, type VideoOverlayOptions, VideoOverlayOptionsSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoPipeline, VideoPipelineSchema, type VideoResolution, VideoResolutionSchema, type VideoScaleAndPad, VideoScaleAndPadSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoTranscodePayload, VideoTranscodeSchema, type VideoUpscalePayload, VideoUpscaleSchema, type VideoWatermark, VideoWatermarkSchema, type ViewingIndicator, ViewingIndicatorSchema, type ViewportTransform, ViewportTransformSchema, type Watermark, type WatermarkPosition, WatermarkPositionSchema, WatermarkSchema };
12780
+ export { type ActivityAction, ActivityActionSchema, type ActivityActionType, ActivityActionTypeSchema, type ActivityActor, ActivityActorSchema, type ActivityEvent, ActivityEventSchema, type ActivityLog, ActivityLogSchema, type ActivityStreamFilter, ActivityStreamFilterSchema, type ActivitySubscriptionOptions, type ActorType, ActorTypeSchema, type Aesthetic, AestheticSchema, type AgentActorMetadata, AgentActorMetadataSchema, type AgentConfig, AgentConfigSchema, type AgentDocumentAttachment, AgentDocumentAttachmentSchema, type AgentEnvironment, AgentEnvironmentSchema, type AgentInteractionRequest, AgentInteractionRequestSchema, type AgentInteractionResult, AgentInteractionResultSchema, type AgentInteractionStatus, AgentInteractionStatusSchema, type AgentNetworkAllowlistRule, AgentNetworkAllowlistRuleSchema, type AgentNetworkTransformRule, AgentNetworkTransformRuleSchema, type AgentTool, AgentToolSchema, type AgentToolType, AgentToolTypeSchema, type AnimatedGifComposite, AnimatedGifCompositeSchema, type ArcDistort, ArcDistortSchema, type AspectRatio, AspectRatioSchema, type AudioDuckingOptions, AudioDuckingOptionsSchema, type AudioMixOptions, AudioMixOptionsSchema, type AudioMixTrack, AudioMixTrackSchema, type AudioNormalizationOptions, AudioNormalizationOptionsSchema, type AudioSilenceTrimOptions, AudioSilenceTrimOptionsSchema, type AudioVisualizerOptions, AudioVisualizerOptionsSchema, type AudioVisualizerType, AudioVisualizerTypeSchema, type AuthUser, AuthUserSchema, type AutoFitCaption, AutoFitCaptionSchema, type CRDTSnapshot, CRDTSnapshotSchema, type CodeGenerationPayload, CodeGenerationSchema, type ComponentDependency, ComponentDependencySchema, type ComponentDocs, ComponentDocsSchema, type ComponentPackage, ComponentPackageSchema, type ComponentPropDefinition, ComponentPropDefinitionSchema, type ComponentPropDoc, ComponentPropDocSchema, type ComponentSynthesisPayload, ComponentSynthesisSchema, type ComponentTransformationResult, ComponentTransformationResultSchema, type ComponentVariant, ComponentVariantSchema, type ComponentVersion, ComponentVersionSchema, type Condition, type ConditionOperator, ConditionOperatorSchema, ConditionSchema, type ControlValidation, ControlValidationSchema, type CursorPosition, CursorPositionSchema, type CursorUpdateEvent, type DecisionGate, type DecisionGateKind, DecisionGateKindSchema, DecisionGateSchema, type DimensionScore, DimensionScoreSchema, type DisplacementMap, DisplacementMapSchema, type DocumentGenerationOptions, DocumentGenerationOptionsSchema, type DropShadow, DropShadowSchema, type ExternalPackageDependency, ExternalPackageDependencySchema, FORM_SCHEMA_JSON_SCHEMA, type Fidelity, FidelitySchema, type FieldPresence, FieldPresenceSchema, type FormControl, FormControlSchema, type FormControlType, FormControlTypeSchema, type FormHandoffAction, FormHandoffActionSchema, type FormOption, FormOptionSchema, type FormReviewMeta, FormReviewMetaSchema, type FormSection, FormSectionSchema, type FormStage, FormStageSchema, type FormSubmissionPayload, FormSubmissionPayloadSchema, type FormValidator, FormValidatorSchema, type FuelCostMap, FuelCostMapSchema, type FuelPlan, FuelPlanSchema, type FuelTransaction, FuelTransactionSchema, type FuelTransactionType, FuelTransactionTypeSchema, type GenerateHarnessOptions, GenerateHarnessOptionsSchema, type ImageCompositingPayload, ImageCompositingSchema, type ImageGenerationPayload, ImageGenerationSchema, type ImageOverlayOptions, ImageOverlayOptionsSchema, type ImagePipeline, ImagePipelineSchema, type ImageTextOverlay, ImageTextOverlaySchema, type ImageTransformationPayload, ImageTransformationSchema, type ImageWatermark, ImageWatermarkSchema, type IngestionInput, IngestionInputSchema, type InternalComponentDependency, InternalComponentDependencySchema, type Invite, InviteSchema, type InviteStatus, InviteStatusSchema, type InviteTargetType, InviteTargetTypeSchema, type JsonGenerationPayload, JsonGenerationSchema, type KenBurnsOptions, KenBurnsOptionsSchema, type LockClaimRequest, LockClaimRequestSchema, type LockHeartbeatRequest, LockHeartbeatRequestSchema, type LockReleaseRequest, LockReleaseRequestSchema, type LockStatus, LockStatusSchema, type MediaProbeResult, MediaProbeResultSchema, type OTJsonOp, OTJsonOpSchema, type OTJsonOpType, OTJsonOpTypeSchema, type OTOperation, OTOperationSchema, type OTRevision, OTRevisionSchema, type OTTextOp, OTTextOpSchema, type OTTextOpType, OTTextOpTypeSchema, type OrgMember, OrgMemberSchema, type Organization, OrganizationSchema, type PerceptualHashAlgorithm, PerceptualHashAlgorithmSchema, type PerceptualHashOptions, PerceptualHashOptionsSchema, type PerspectiveQuad, PerspectiveQuadSchema, type PerspectiveWarp, PerspectiveWarpSchema, type PlatformLanguage, PlatformLanguageSchema, type Point2D, Point2DSchema, type PresenceColor, PresenceColorSchema, type PresenceHeartbeat, type PresenceJoinEvent, type PresenceLeaveEvent, type PresenceState, PresenceStateSchema, type PresenceStatus, PresenceStatusSchema, type PresenceUser, PresenceUserSchema, type PreviewHarness, PreviewHarnessSchema, type QueueJob, QueueJobSchema, type QueueJobStatus, QueueJobStatusSchema, type QueueJobType, QueueJobTypeSchema, type RecordLock, type RecordLockInfo, RecordLockInfoSchema, RecordLockSchema, type ReferenceDataSource, ReferenceDataSourceSchema, type ScoreBand, ScoreBandSchema, type ScoringConfig, ScoringConfigSchema, type ScoringDimension, ScoringDimensionSchema, type ScoringRule, ScoringRuleSchema, type SemanticReviewIssue, SemanticReviewIssueSchema, type SemanticReviewResult, SemanticReviewResultSchema, type SemanticReviewStatus, SemanticReviewStatusSchema, type ServiceClient, ServiceClientSchema, type SocialVideoGenerationPayload, SocialVideoGenerationSchema, type SubmissionScore, SubmissionScoreSchema, type SubtitleBurnOptions, SubtitleBurnOptionsSchema, type SubtitleFormat, SubtitleFormatSchema, type Team, type TeamMember, type TeamMemberDoc, TeamMemberDocSchema, TeamMemberSchema, type TeamRole, TeamRoleSchema, TeamSchema, TechnicalFormSchema, type TechnicalSchema, type TextAlignment, TextAlignmentSchema, type TextOverlay, type TextOverlayPosition, TextOverlayPositionSchema, TextOverlaySchema, type TextOverlayStyle, TextOverlayStyleSchema, type Theme, type ThemeColors, ThemeColorsSchema, type ThemeIngestionInput, ThemeIngestionInputSchema, ThemeSchema, type ThemeSupport, ThemeSupportSchema, type ThemeTokens, ThemeTokensSchema, type ThemeTypographyTokens, ThemeTypographyTokensSchema, type TypingIndicator, TypingIndicatorSchema, type UIComponentType, UIComponentTypeSchema, type UIExtractionResult, UIExtractionResultSchema, type UIGenerationOptionsPayload, UIGenerationOptionsSchema, type UIGenerationResult, UIGenerationResultSchema, type UIValidationResult, UIValidationResultSchema, type UserPreferences, UserPreferencesSchema, type UserProfile, UserProfileSchema, type VectorTraceOptions, VectorTraceOptionsSchema, type VideoAnalysisCategory, VideoAnalysisCategorySchema, type VideoAnalysisPayload, VideoAnalysisSchema, type VideoAspectRatio, VideoAspectRatioSchema, type VideoAttachment, VideoAttachmentSchema, type VideoCompositingPayload, VideoCompositingSchema, type VideoCompressionPayload, VideoCompressionSchema, type VideoFrameImage, VideoFrameImageSchema, type VideoGenerationPayload, VideoGenerationSchema, type VideoModificationPayload, VideoModificationSchema, type VideoOverlayOptions, VideoOverlayOptionsSchema, type VideoOverlayStyle, VideoOverlayStyleSchema, type VideoPipeline, VideoPipelineSchema, type VideoResolution, VideoResolutionSchema, type VideoScaleAndPad, VideoScaleAndPadSchema, type VideoTextOverlay, VideoTextOverlaySchema, type VideoTranscodePayload, VideoTranscodeSchema, type VideoUpscalePayload, VideoUpscaleSchema, type VideoWatermark, VideoWatermarkSchema, type ViewingIndicator, ViewingIndicatorSchema, type ViewportTransform, ViewportTransformSchema, type WaitlistEntry, WaitlistEntrySchema, type WaitlistStatus, WaitlistStatusSchema, type Watermark, type WatermarkPosition, WatermarkPositionSchema, WatermarkSchema };