@nuxtseo/protocol 0.1.3 → 0.1.5

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.
@@ -435,6 +435,462 @@ export declare const accountUsageOperation: {
435
435
  }];
436
436
  };
437
437
  };
438
+ export declare const accountTokenCredentialSchema: z.ZodEnum<{
439
+ api_token: "api_token";
440
+ session: "session";
441
+ }>;
442
+ export declare const accountTokenDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
443
+ readonly credential: z.ZodEnum<{
444
+ api_token: "api_token";
445
+ session: "session";
446
+ }>;
447
+ readonly role: z.ZodEnum<{
448
+ admin: "admin";
449
+ member: "member";
450
+ owner: "owner";
451
+ viewer: "viewer";
452
+ }>;
453
+ readonly scopes: z.ZodArray<z.ZodEnum<{
454
+ "account:read": "account:read";
455
+ "actions:read": "actions:read";
456
+ "actions:write": "actions:write";
457
+ "analytics:read": "analytics:read";
458
+ "audit:read": "audit:read";
459
+ "content:read": "content:read";
460
+ "content:write": "content:write";
461
+ "page:read": "page:read";
462
+ "page:write": "page:write";
463
+ "research:read": "research:read";
464
+ "research:write": "research:write";
465
+ "sites:read": "sites:read";
466
+ "sites:write": "sites:write";
467
+ "timeline:read": "timeline:read";
468
+ }>>;
469
+ readonly team: z.ZodObject<{
470
+ id: z.ZodString;
471
+ name: z.ZodNullable<z.ZodString>;
472
+ plan: z.ZodEnum<{
473
+ free: "free";
474
+ lifetime: "lifetime";
475
+ pro: "pro";
476
+ }>;
477
+ }, z.core.$strict>;
478
+ readonly token: z.ZodNullable<z.ZodObject<{
479
+ id: z.ZodString;
480
+ label: z.ZodNullable<z.ZodString>;
481
+ client: z.ZodNullable<z.ZodString>;
482
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
483
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
484
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
485
+ }, z.core.$strict>>;
486
+ readonly user: z.ZodObject<{
487
+ id: z.ZodString;
488
+ email: z.ZodNullable<z.ZodString>;
489
+ }, z.core.$strict>;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ readonly credential: z.ZodEnum<{
492
+ api_token: "api_token";
493
+ session: "session";
494
+ }>;
495
+ readonly role: z.ZodEnum<{
496
+ admin: "admin";
497
+ member: "member";
498
+ owner: "owner";
499
+ viewer: "viewer";
500
+ }>;
501
+ readonly scopes: z.ZodArray<z.ZodEnum<{
502
+ "account:read": "account:read";
503
+ "actions:read": "actions:read";
504
+ "actions:write": "actions:write";
505
+ "analytics:read": "analytics:read";
506
+ "audit:read": "audit:read";
507
+ "content:read": "content:read";
508
+ "content:write": "content:write";
509
+ "page:read": "page:read";
510
+ "page:write": "page:write";
511
+ "research:read": "research:read";
512
+ "research:write": "research:write";
513
+ "sites:read": "sites:read";
514
+ "sites:write": "sites:write";
515
+ "timeline:read": "timeline:read";
516
+ }>>;
517
+ readonly team: z.ZodObject<{
518
+ id: z.ZodString;
519
+ name: z.ZodNullable<z.ZodString>;
520
+ plan: z.ZodEnum<{
521
+ free: "free";
522
+ lifetime: "lifetime";
523
+ pro: "pro";
524
+ }>;
525
+ }, z.core.$loose>;
526
+ readonly token: z.ZodNullable<z.ZodObject<{
527
+ id: z.ZodString;
528
+ label: z.ZodNullable<z.ZodString>;
529
+ client: z.ZodNullable<z.ZodString>;
530
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
531
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
532
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
533
+ }, z.core.$loose>>;
534
+ readonly user: z.ZodObject<{
535
+ id: z.ZodString;
536
+ email: z.ZodNullable<z.ZodString>;
537
+ }, z.core.$loose>;
538
+ }, z.core.$strip>>;
539
+ export declare const accountTokenResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
540
+ data: z.ZodObject<{
541
+ readonly credential: z.ZodEnum<{
542
+ api_token: "api_token";
543
+ session: "session";
544
+ }>;
545
+ readonly role: z.ZodEnum<{
546
+ admin: "admin";
547
+ member: "member";
548
+ owner: "owner";
549
+ viewer: "viewer";
550
+ }>;
551
+ readonly scopes: z.ZodArray<z.ZodEnum<{
552
+ "account:read": "account:read";
553
+ "actions:read": "actions:read";
554
+ "actions:write": "actions:write";
555
+ "analytics:read": "analytics:read";
556
+ "audit:read": "audit:read";
557
+ "content:read": "content:read";
558
+ "content:write": "content:write";
559
+ "page:read": "page:read";
560
+ "page:write": "page:write";
561
+ "research:read": "research:read";
562
+ "research:write": "research:write";
563
+ "sites:read": "sites:read";
564
+ "sites:write": "sites:write";
565
+ "timeline:read": "timeline:read";
566
+ }>>;
567
+ readonly team: z.ZodObject<{
568
+ id: z.ZodString;
569
+ name: z.ZodNullable<z.ZodString>;
570
+ plan: z.ZodEnum<{
571
+ free: "free";
572
+ lifetime: "lifetime";
573
+ pro: "pro";
574
+ }>;
575
+ }, z.core.$strict>;
576
+ readonly token: z.ZodNullable<z.ZodObject<{
577
+ id: z.ZodString;
578
+ label: z.ZodNullable<z.ZodString>;
579
+ client: z.ZodNullable<z.ZodString>;
580
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
581
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
582
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
583
+ }, z.core.$strict>>;
584
+ readonly user: z.ZodObject<{
585
+ id: z.ZodString;
586
+ email: z.ZodNullable<z.ZodString>;
587
+ }, z.core.$strict>;
588
+ }, z.core.$strip>;
589
+ meta: z.ZodObject<{
590
+ requestId: z.ZodString;
591
+ version: z.ZodLiteral<"1.0">;
592
+ }, z.core.$strict>;
593
+ }, z.core.$strip>, z.ZodObject<{
594
+ data: z.ZodObject<{
595
+ readonly credential: z.ZodEnum<{
596
+ api_token: "api_token";
597
+ session: "session";
598
+ }>;
599
+ readonly role: z.ZodEnum<{
600
+ admin: "admin";
601
+ member: "member";
602
+ owner: "owner";
603
+ viewer: "viewer";
604
+ }>;
605
+ readonly scopes: z.ZodArray<z.ZodEnum<{
606
+ "account:read": "account:read";
607
+ "actions:read": "actions:read";
608
+ "actions:write": "actions:write";
609
+ "analytics:read": "analytics:read";
610
+ "audit:read": "audit:read";
611
+ "content:read": "content:read";
612
+ "content:write": "content:write";
613
+ "page:read": "page:read";
614
+ "page:write": "page:write";
615
+ "research:read": "research:read";
616
+ "research:write": "research:write";
617
+ "sites:read": "sites:read";
618
+ "sites:write": "sites:write";
619
+ "timeline:read": "timeline:read";
620
+ }>>;
621
+ readonly team: z.ZodObject<{
622
+ id: z.ZodString;
623
+ name: z.ZodNullable<z.ZodString>;
624
+ plan: z.ZodEnum<{
625
+ free: "free";
626
+ lifetime: "lifetime";
627
+ pro: "pro";
628
+ }>;
629
+ }, z.core.$loose>;
630
+ readonly token: z.ZodNullable<z.ZodObject<{
631
+ id: z.ZodString;
632
+ label: z.ZodNullable<z.ZodString>;
633
+ client: z.ZodNullable<z.ZodString>;
634
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
635
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
636
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
637
+ }, z.core.$loose>>;
638
+ readonly user: z.ZodObject<{
639
+ id: z.ZodString;
640
+ email: z.ZodNullable<z.ZodString>;
641
+ }, z.core.$loose>;
642
+ }, z.core.$strip>;
643
+ meta: z.ZodObject<{
644
+ requestId: z.ZodString;
645
+ version: z.ZodLiteral<"1.0">;
646
+ }, z.core.$loose>;
647
+ }, z.core.$strip>>;
648
+ export type AccountTokenData = z.output<typeof accountTokenDataSchema.client>;
649
+ export type AccountTokenResponse = z.output<typeof accountTokenResponseSchema.client>;
650
+ export declare const accountTokenOperation: {
651
+ readonly id: 'account.token';
652
+ readonly method: 'GET';
653
+ readonly path: '/api/v1/account/token';
654
+ readonly visibility: 'public';
655
+ readonly semantics: {
656
+ readonly kind: 'query';
657
+ readonly sideEffects: 'none';
658
+ readonly retry: 'idempotent';
659
+ readonly readConsistency: 'primary';
660
+ };
661
+ readonly auth: {
662
+ readonly credentials: readonly ["session", "api_token"];
663
+ readonly scopes: readonly ["account:read"];
664
+ readonly minimumRole: 'viewer';
665
+ readonly ownership: 'team';
666
+ };
667
+ readonly request: {
668
+ readonly params: null;
669
+ readonly query: null;
670
+ readonly headers: null;
671
+ readonly body: null;
672
+ };
673
+ readonly responses: {
674
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
675
+ data: z.ZodObject<{
676
+ readonly credential: z.ZodEnum<{
677
+ api_token: "api_token";
678
+ session: "session";
679
+ }>;
680
+ readonly role: z.ZodEnum<{
681
+ admin: "admin";
682
+ member: "member";
683
+ owner: "owner";
684
+ viewer: "viewer";
685
+ }>;
686
+ readonly scopes: z.ZodArray<z.ZodEnum<{
687
+ "account:read": "account:read";
688
+ "actions:read": "actions:read";
689
+ "actions:write": "actions:write";
690
+ "analytics:read": "analytics:read";
691
+ "audit:read": "audit:read";
692
+ "content:read": "content:read";
693
+ "content:write": "content:write";
694
+ "page:read": "page:read";
695
+ "page:write": "page:write";
696
+ "research:read": "research:read";
697
+ "research:write": "research:write";
698
+ "sites:read": "sites:read";
699
+ "sites:write": "sites:write";
700
+ "timeline:read": "timeline:read";
701
+ }>>;
702
+ readonly team: z.ZodObject<{
703
+ id: z.ZodString;
704
+ name: z.ZodNullable<z.ZodString>;
705
+ plan: z.ZodEnum<{
706
+ free: "free";
707
+ lifetime: "lifetime";
708
+ pro: "pro";
709
+ }>;
710
+ }, z.core.$strict>;
711
+ readonly token: z.ZodNullable<z.ZodObject<{
712
+ id: z.ZodString;
713
+ label: z.ZodNullable<z.ZodString>;
714
+ client: z.ZodNullable<z.ZodString>;
715
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
716
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
717
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
718
+ }, z.core.$strict>>;
719
+ readonly user: z.ZodObject<{
720
+ id: z.ZodString;
721
+ email: z.ZodNullable<z.ZodString>;
722
+ }, z.core.$strict>;
723
+ }, z.core.$strip>;
724
+ meta: z.ZodObject<{
725
+ requestId: z.ZodString;
726
+ version: z.ZodLiteral<"1.0">;
727
+ }, z.core.$strict>;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ data: z.ZodObject<{
730
+ readonly credential: z.ZodEnum<{
731
+ api_token: "api_token";
732
+ session: "session";
733
+ }>;
734
+ readonly role: z.ZodEnum<{
735
+ admin: "admin";
736
+ member: "member";
737
+ owner: "owner";
738
+ viewer: "viewer";
739
+ }>;
740
+ readonly scopes: z.ZodArray<z.ZodEnum<{
741
+ "account:read": "account:read";
742
+ "actions:read": "actions:read";
743
+ "actions:write": "actions:write";
744
+ "analytics:read": "analytics:read";
745
+ "audit:read": "audit:read";
746
+ "content:read": "content:read";
747
+ "content:write": "content:write";
748
+ "page:read": "page:read";
749
+ "page:write": "page:write";
750
+ "research:read": "research:read";
751
+ "research:write": "research:write";
752
+ "sites:read": "sites:read";
753
+ "sites:write": "sites:write";
754
+ "timeline:read": "timeline:read";
755
+ }>>;
756
+ readonly team: z.ZodObject<{
757
+ id: z.ZodString;
758
+ name: z.ZodNullable<z.ZodString>;
759
+ plan: z.ZodEnum<{
760
+ free: "free";
761
+ lifetime: "lifetime";
762
+ pro: "pro";
763
+ }>;
764
+ }, z.core.$loose>;
765
+ readonly token: z.ZodNullable<z.ZodObject<{
766
+ id: z.ZodString;
767
+ label: z.ZodNullable<z.ZodString>;
768
+ client: z.ZodNullable<z.ZodString>;
769
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
770
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
771
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
772
+ }, z.core.$loose>>;
773
+ readonly user: z.ZodObject<{
774
+ id: z.ZodString;
775
+ email: z.ZodNullable<z.ZodString>;
776
+ }, z.core.$loose>;
777
+ }, z.core.$strip>;
778
+ meta: z.ZodObject<{
779
+ requestId: z.ZodString;
780
+ version: z.ZodLiteral<"1.0">;
781
+ }, z.core.$loose>;
782
+ }, z.core.$strip>>;
783
+ };
784
+ readonly errors: readonly ["unauthorized", "auth_expired", "forbidden", "rate_limited", "contract_violation", "internal_error"];
785
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
786
+ readonly error: z.ZodObject<{
787
+ code: z.ZodEnum<{
788
+ auth_expired: "auth_expired";
789
+ conflict: "conflict";
790
+ contract_violation: "contract_violation";
791
+ entitlement_required: "entitlement_required";
792
+ forbidden: "forbidden";
793
+ internal_error: "internal_error";
794
+ invalid_request: "invalid_request";
795
+ not_found: "not_found";
796
+ provider_unavailable: "provider_unavailable";
797
+ quota_exhausted: "quota_exhausted";
798
+ rate_limited: "rate_limited";
799
+ site_ambiguous: "site_ambiguous";
800
+ stale_evidence: "stale_evidence";
801
+ unauthorized: "unauthorized";
802
+ }>;
803
+ message: z.ZodString;
804
+ requestId: z.ZodString;
805
+ retryable: z.ZodBoolean;
806
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
807
+ }, z.core.$strict>;
808
+ }, z.core.$strip>, z.ZodObject<{
809
+ readonly error: z.ZodObject<{
810
+ code: z.ZodEnum<{
811
+ auth_expired: "auth_expired";
812
+ conflict: "conflict";
813
+ contract_violation: "contract_violation";
814
+ entitlement_required: "entitlement_required";
815
+ forbidden: "forbidden";
816
+ internal_error: "internal_error";
817
+ invalid_request: "invalid_request";
818
+ not_found: "not_found";
819
+ provider_unavailable: "provider_unavailable";
820
+ quota_exhausted: "quota_exhausted";
821
+ rate_limited: "rate_limited";
822
+ site_ambiguous: "site_ambiguous";
823
+ stale_evidence: "stale_evidence";
824
+ unauthorized: "unauthorized";
825
+ }>;
826
+ message: z.ZodString;
827
+ requestId: z.ZodString;
828
+ retryable: z.ZodBoolean;
829
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
830
+ }, z.core.$loose>;
831
+ }, z.core.$strip>>;
832
+ readonly resources: {
833
+ readonly reads: readonly [{
834
+ readonly type: 'account.usage';
835
+ readonly idFrom: 'team.id';
836
+ }];
837
+ readonly changes: readonly [];
838
+ };
839
+ readonly policy: {
840
+ readonly rate: {
841
+ readonly name: 'public-v1-fixed-window';
842
+ readonly limit: 50;
843
+ readonly windowSeconds: 60;
844
+ };
845
+ readonly idempotency: {
846
+ readonly _tag: 'none';
847
+ };
848
+ readonly entitlement: null;
849
+ readonly meter: null;
850
+ };
851
+ readonly lifecycle: {
852
+ readonly introduced: '1.0.0';
853
+ };
854
+ readonly docs: {
855
+ readonly summary: 'Describe the presented credential';
856
+ readonly description: 'Returns the Team, role, granted scopes, and expiry of the credential on this request. It spends no quota and reads no Site.';
857
+ readonly tags: readonly ["Account"];
858
+ readonly examples: readonly [{
859
+ readonly request: {};
860
+ readonly response: {
861
+ readonly status: 200;
862
+ readonly body: {
863
+ readonly data: {
864
+ readonly credential: 'api_token';
865
+ readonly role: 'admin';
866
+ readonly scopes: readonly ["account:read", "sites:read"];
867
+ readonly team: {
868
+ readonly id: 'team_01JXYZ';
869
+ readonly name: 'Example';
870
+ readonly plan: 'pro';
871
+ };
872
+ readonly token: {
873
+ readonly id: 'token_01JXYZ';
874
+ readonly label: 'CLI on laptop';
875
+ readonly client: null;
876
+ readonly createdAt: '2026-08-01T00:00:00.000Z';
877
+ readonly lastUsedAt: '2026-08-20T00:00:00.000Z';
878
+ readonly expiresAt: null;
879
+ };
880
+ readonly user: {
881
+ readonly id: 'user_01JXYZ';
882
+ readonly email: 'agent@example.com';
883
+ };
884
+ };
885
+ readonly meta: {
886
+ readonly requestId: 'req_01JXYZ';
887
+ readonly version: '1.0';
888
+ };
889
+ };
890
+ };
891
+ }];
892
+ };
893
+ };
438
894
  export declare const accountV1Registry: import("./core.js").PublicV1Registry<{
439
895
  readonly usage: {
440
896
  readonly id: 'account.usage';
@@ -652,4 +1108,248 @@ export declare const accountV1Registry: import("./core.js").PublicV1Registry<{
652
1108
  }];
653
1109
  };
654
1110
  };
1111
+ readonly token: {
1112
+ readonly id: 'account.token';
1113
+ readonly method: 'GET';
1114
+ readonly path: '/api/v1/account/token';
1115
+ readonly visibility: 'public';
1116
+ readonly semantics: {
1117
+ readonly kind: 'query';
1118
+ readonly sideEffects: 'none';
1119
+ readonly retry: 'idempotent';
1120
+ readonly readConsistency: 'primary';
1121
+ };
1122
+ readonly auth: {
1123
+ readonly credentials: readonly ["session", "api_token"];
1124
+ readonly scopes: readonly ["account:read"];
1125
+ readonly minimumRole: 'viewer';
1126
+ readonly ownership: 'team';
1127
+ };
1128
+ readonly request: {
1129
+ readonly params: null;
1130
+ readonly query: null;
1131
+ readonly headers: null;
1132
+ readonly body: null;
1133
+ };
1134
+ readonly responses: {
1135
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1136
+ data: z.ZodObject<{
1137
+ readonly credential: z.ZodEnum<{
1138
+ api_token: "api_token";
1139
+ session: "session";
1140
+ }>;
1141
+ readonly role: z.ZodEnum<{
1142
+ admin: "admin";
1143
+ member: "member";
1144
+ owner: "owner";
1145
+ viewer: "viewer";
1146
+ }>;
1147
+ readonly scopes: z.ZodArray<z.ZodEnum<{
1148
+ "account:read": "account:read";
1149
+ "actions:read": "actions:read";
1150
+ "actions:write": "actions:write";
1151
+ "analytics:read": "analytics:read";
1152
+ "audit:read": "audit:read";
1153
+ "content:read": "content:read";
1154
+ "content:write": "content:write";
1155
+ "page:read": "page:read";
1156
+ "page:write": "page:write";
1157
+ "research:read": "research:read";
1158
+ "research:write": "research:write";
1159
+ "sites:read": "sites:read";
1160
+ "sites:write": "sites:write";
1161
+ "timeline:read": "timeline:read";
1162
+ }>>;
1163
+ readonly team: z.ZodObject<{
1164
+ id: z.ZodString;
1165
+ name: z.ZodNullable<z.ZodString>;
1166
+ plan: z.ZodEnum<{
1167
+ free: "free";
1168
+ lifetime: "lifetime";
1169
+ pro: "pro";
1170
+ }>;
1171
+ }, z.core.$strict>;
1172
+ readonly token: z.ZodNullable<z.ZodObject<{
1173
+ id: z.ZodString;
1174
+ label: z.ZodNullable<z.ZodString>;
1175
+ client: z.ZodNullable<z.ZodString>;
1176
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
1177
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
1178
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1179
+ }, z.core.$strict>>;
1180
+ readonly user: z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ email: z.ZodNullable<z.ZodString>;
1183
+ }, z.core.$strict>;
1184
+ }, z.core.$strip>;
1185
+ meta: z.ZodObject<{
1186
+ requestId: z.ZodString;
1187
+ version: z.ZodLiteral<"1.0">;
1188
+ }, z.core.$strict>;
1189
+ }, z.core.$strip>, z.ZodObject<{
1190
+ data: z.ZodObject<{
1191
+ readonly credential: z.ZodEnum<{
1192
+ api_token: "api_token";
1193
+ session: "session";
1194
+ }>;
1195
+ readonly role: z.ZodEnum<{
1196
+ admin: "admin";
1197
+ member: "member";
1198
+ owner: "owner";
1199
+ viewer: "viewer";
1200
+ }>;
1201
+ readonly scopes: z.ZodArray<z.ZodEnum<{
1202
+ "account:read": "account:read";
1203
+ "actions:read": "actions:read";
1204
+ "actions:write": "actions:write";
1205
+ "analytics:read": "analytics:read";
1206
+ "audit:read": "audit:read";
1207
+ "content:read": "content:read";
1208
+ "content:write": "content:write";
1209
+ "page:read": "page:read";
1210
+ "page:write": "page:write";
1211
+ "research:read": "research:read";
1212
+ "research:write": "research:write";
1213
+ "sites:read": "sites:read";
1214
+ "sites:write": "sites:write";
1215
+ "timeline:read": "timeline:read";
1216
+ }>>;
1217
+ readonly team: z.ZodObject<{
1218
+ id: z.ZodString;
1219
+ name: z.ZodNullable<z.ZodString>;
1220
+ plan: z.ZodEnum<{
1221
+ free: "free";
1222
+ lifetime: "lifetime";
1223
+ pro: "pro";
1224
+ }>;
1225
+ }, z.core.$loose>;
1226
+ readonly token: z.ZodNullable<z.ZodObject<{
1227
+ id: z.ZodString;
1228
+ label: z.ZodNullable<z.ZodString>;
1229
+ client: z.ZodNullable<z.ZodString>;
1230
+ createdAt: z.ZodNullable<z.ZodISODateTime>;
1231
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
1232
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1233
+ }, z.core.$loose>>;
1234
+ readonly user: z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ email: z.ZodNullable<z.ZodString>;
1237
+ }, z.core.$loose>;
1238
+ }, z.core.$strip>;
1239
+ meta: z.ZodObject<{
1240
+ requestId: z.ZodString;
1241
+ version: z.ZodLiteral<"1.0">;
1242
+ }, z.core.$loose>;
1243
+ }, z.core.$strip>>;
1244
+ };
1245
+ readonly errors: readonly ["unauthorized", "auth_expired", "forbidden", "rate_limited", "contract_violation", "internal_error"];
1246
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1247
+ readonly error: z.ZodObject<{
1248
+ code: z.ZodEnum<{
1249
+ auth_expired: "auth_expired";
1250
+ conflict: "conflict";
1251
+ contract_violation: "contract_violation";
1252
+ entitlement_required: "entitlement_required";
1253
+ forbidden: "forbidden";
1254
+ internal_error: "internal_error";
1255
+ invalid_request: "invalid_request";
1256
+ not_found: "not_found";
1257
+ provider_unavailable: "provider_unavailable";
1258
+ quota_exhausted: "quota_exhausted";
1259
+ rate_limited: "rate_limited";
1260
+ site_ambiguous: "site_ambiguous";
1261
+ stale_evidence: "stale_evidence";
1262
+ unauthorized: "unauthorized";
1263
+ }>;
1264
+ message: z.ZodString;
1265
+ requestId: z.ZodString;
1266
+ retryable: z.ZodBoolean;
1267
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1268
+ }, z.core.$strict>;
1269
+ }, z.core.$strip>, z.ZodObject<{
1270
+ readonly error: z.ZodObject<{
1271
+ code: z.ZodEnum<{
1272
+ auth_expired: "auth_expired";
1273
+ conflict: "conflict";
1274
+ contract_violation: "contract_violation";
1275
+ entitlement_required: "entitlement_required";
1276
+ forbidden: "forbidden";
1277
+ internal_error: "internal_error";
1278
+ invalid_request: "invalid_request";
1279
+ not_found: "not_found";
1280
+ provider_unavailable: "provider_unavailable";
1281
+ quota_exhausted: "quota_exhausted";
1282
+ rate_limited: "rate_limited";
1283
+ site_ambiguous: "site_ambiguous";
1284
+ stale_evidence: "stale_evidence";
1285
+ unauthorized: "unauthorized";
1286
+ }>;
1287
+ message: z.ZodString;
1288
+ requestId: z.ZodString;
1289
+ retryable: z.ZodBoolean;
1290
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1291
+ }, z.core.$loose>;
1292
+ }, z.core.$strip>>;
1293
+ readonly resources: {
1294
+ readonly reads: readonly [{
1295
+ readonly type: 'account.usage';
1296
+ readonly idFrom: 'team.id';
1297
+ }];
1298
+ readonly changes: readonly [];
1299
+ };
1300
+ readonly policy: {
1301
+ readonly rate: {
1302
+ readonly name: 'public-v1-fixed-window';
1303
+ readonly limit: 50;
1304
+ readonly windowSeconds: 60;
1305
+ };
1306
+ readonly idempotency: {
1307
+ readonly _tag: 'none';
1308
+ };
1309
+ readonly entitlement: null;
1310
+ readonly meter: null;
1311
+ };
1312
+ readonly lifecycle: {
1313
+ readonly introduced: '1.0.0';
1314
+ };
1315
+ readonly docs: {
1316
+ readonly summary: 'Describe the presented credential';
1317
+ readonly description: 'Returns the Team, role, granted scopes, and expiry of the credential on this request. It spends no quota and reads no Site.';
1318
+ readonly tags: readonly ["Account"];
1319
+ readonly examples: readonly [{
1320
+ readonly request: {};
1321
+ readonly response: {
1322
+ readonly status: 200;
1323
+ readonly body: {
1324
+ readonly data: {
1325
+ readonly credential: 'api_token';
1326
+ readonly role: 'admin';
1327
+ readonly scopes: readonly ["account:read", "sites:read"];
1328
+ readonly team: {
1329
+ readonly id: 'team_01JXYZ';
1330
+ readonly name: 'Example';
1331
+ readonly plan: 'pro';
1332
+ };
1333
+ readonly token: {
1334
+ readonly id: 'token_01JXYZ';
1335
+ readonly label: 'CLI on laptop';
1336
+ readonly client: null;
1337
+ readonly createdAt: '2026-08-01T00:00:00.000Z';
1338
+ readonly lastUsedAt: '2026-08-20T00:00:00.000Z';
1339
+ readonly expiresAt: null;
1340
+ };
1341
+ readonly user: {
1342
+ readonly id: 'user_01JXYZ';
1343
+ readonly email: 'agent@example.com';
1344
+ };
1345
+ };
1346
+ readonly meta: {
1347
+ readonly requestId: 'req_01JXYZ';
1348
+ readonly version: '1.0';
1349
+ };
1350
+ };
1351
+ };
1352
+ }];
1353
+ };
1354
+ };
655
1355
  }>;