@gscdump/contracts 1.4.2 → 1.4.4

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.
@@ -1,20 +1,20 @@
1
- declare const GSCDUMP_ONBOARDING_CONTRACT_VERSION: '2026-05-11';
2
- declare const GSCDUMP_REQUIRED_ANALYTICS_SCOPE: 'https://www.googleapis.com/auth/webmasters.readonly';
3
- declare const GSCDUMP_WRITE_ANALYTICS_SCOPE: 'https://www.googleapis.com/auth/webmasters';
4
- declare const GSCDUMP_OPTIONAL_INDEXING_SCOPE: 'https://www.googleapis.com/auth/indexing';
1
+ declare const GSCDUMP_ONBOARDING_CONTRACT_VERSION: "2026-05-11";
2
+ declare const GSCDUMP_REQUIRED_ANALYTICS_SCOPE: "https://www.googleapis.com/auth/webmasters.readonly";
3
+ declare const GSCDUMP_WRITE_ANALYTICS_SCOPE: "https://www.googleapis.com/auth/webmasters";
4
+ declare const GSCDUMP_OPTIONAL_INDEXING_SCOPE: "https://www.googleapis.com/auth/indexing";
5
5
  type GoogleScopesInput = string | readonly string[] | null | undefined;
6
- declare const accountStatuses: readonly ['disconnected', 'oauth_received', 'scope_missing', 'refresh_missing', 'db_provisioning', 'ready', 'reauth_required'];
7
- declare const accountNextActions: readonly ['connect_google', 'reconnect_google', 'wait_for_provisioning', 'none'];
8
- declare const propertyStatuses: readonly ['no_local_site', 'no_gsc_property', 'unverified_property', 'verified_candidate', 'registered', 'linked'];
9
- declare const propertyNextActions: readonly ['create_site', 'verify_gsc_property', 'choose_property', 'register_site', 'none'];
10
- declare const analyticsStatuses: readonly ['not_registered', 'queued', 'preparing', 'syncing', 'queryable_live', 'queryable_partial', 'ready', 'failed'];
11
- declare const analyticsNextActions: readonly ['wait_for_sync', 'retry_sync', 'none'];
12
- declare const querySourceModes: readonly ['none', 'live', 'd1', 'r2', 'mixed'];
13
- declare const sitemapStatuses: readonly ['unknown', 'discovering', 'none_found', 'auto_submitted', 'syncing', 'ready', 'failed'];
14
- declare const sitemapNextActions: readonly ['submit_sitemap', 'wait_for_sitemaps', 'retry_sitemaps', 'none'];
15
- declare const indexingStatuses: readonly ['not_requested', 'missing_scope', 'insufficient_permission', 'waiting_for_sitemaps', 'discovering', 'checking', 'ready', 'budget_exhausted', 'no_urls', 'failed'];
16
- declare const indexingNextActions: readonly ['reconnect_google', 'fix_gsc_permission', 'wait_for_sitemaps', 'wait_for_indexing', 'retry_indexing', 'none'];
17
- declare const lifecycleErrorCodes: readonly ['missing_refresh_token', 'missing_analytics_scope', 'missing_indexing_scope', 'token_refresh_failed', 'permission_lost', 'insufficient_gsc_permission', 'gsc_property_not_found', 'gsc_property_unverified', 'user_database_not_provisioned', 'sync_failed', 'sitemap_sync_failed', 'indexing_failed'];
6
+ declare const accountStatuses: readonly ["disconnected", "oauth_received", "scope_missing", "refresh_missing", "db_provisioning", "ready", "reauth_required"];
7
+ declare const accountNextActions: readonly ["connect_google", "reconnect_google", "wait_for_provisioning", "none"];
8
+ declare const propertyStatuses: readonly ["no_local_site", "no_gsc_property", "unverified_property", "verified_candidate", "registered", "linked"];
9
+ declare const propertyNextActions: readonly ["create_site", "verify_gsc_property", "choose_property", "register_site", "none"];
10
+ declare const analyticsStatuses: readonly ["not_registered", "queued", "preparing", "syncing", "queryable_live", "queryable_partial", "ready", "failed"];
11
+ declare const analyticsNextActions: readonly ["wait_for_sync", "retry_sync", "none"];
12
+ declare const querySourceModes: readonly ["none", "live", "d1", "r2", "mixed"];
13
+ declare const sitemapStatuses: readonly ["unknown", "discovering", "none_found", "auto_submitted", "syncing", "ready", "failed"];
14
+ declare const sitemapNextActions: readonly ["submit_sitemap", "wait_for_sitemaps", "retry_sitemaps", "none"];
15
+ declare const indexingStatuses: readonly ["not_requested", "missing_scope", "insufficient_permission", "waiting_for_sitemaps", "discovering", "checking", "ready", "budget_exhausted", "no_urls", "failed"];
16
+ declare const indexingNextActions: readonly ["reconnect_google", "fix_gsc_permission", "wait_for_sitemaps", "wait_for_indexing", "retry_indexing", "none"];
17
+ declare const lifecycleErrorCodes: readonly ["missing_refresh_token", "missing_analytics_scope", "missing_indexing_scope", "token_refresh_failed", "permission_lost", "insufficient_gsc_permission", "gsc_property_not_found", "gsc_property_unverified", "user_database_not_provisioned", "sync_failed", "sitemap_sync_failed", "indexing_failed"];
18
18
  type AccountStatus = typeof accountStatuses[number];
19
19
  type AccountNextAction = typeof accountNextActions[number];
20
20
  type PropertyStatus = typeof propertyStatuses[number];
package/dist/routes.d.mts CHANGED
@@ -7,14 +7,14 @@ declare const partnerRoutes: {
7
7
  readonly siteIntIdCrosswalk: (userId: string) => string;
8
8
  };
9
9
  readonly sites: {
10
- readonly register: '/partner/sites/register';
11
- readonly bulkRegister: '/partner/sites/bulk-register';
12
- readonly verificationToken: '/partner/sites/verification-token';
13
- readonly addAndVerify: '/partner/sites/add-and-verify';
10
+ readonly register: "/partner/sites/register";
11
+ readonly bulkRegister: "/partner/sites/bulk-register";
12
+ readonly verificationToken: "/partner/sites/verification-token";
13
+ readonly addAndVerify: "/partner/sites/add-and-verify";
14
14
  };
15
15
  };
16
16
  readonly users: {
17
- readonly register: '/users/register';
17
+ readonly register: "/users/register";
18
18
  readonly tokens: (userId: string) => string;
19
19
  readonly status: (userId: string) => string;
20
20
  readonly lifecycle: (userId: string) => string;
@@ -23,8 +23,8 @@ declare const partnerRoutes: {
23
23
  readonly siteTeam: (userId: string, siteId: string) => string;
24
24
  };
25
25
  readonly sites: {
26
- readonly register: '/sites/register';
27
- readonly bulkRegister: '/sites/bulk-register';
26
+ readonly register: "/sites/register";
27
+ readonly bulkRegister: "/sites/bulk-register";
28
28
  readonly byId: (siteId: string) => string;
29
29
  readonly analysisSources: (siteId: string) => string;
30
30
  readonly syncStatus: (siteId: string) => string;
@@ -46,24 +46,24 @@ declare const partnerRoutes: {
46
46
  readonly indexPercent: (siteId: string) => string;
47
47
  };
48
48
  readonly settings: {
49
- readonly user: '/user/settings';
49
+ readonly user: "/user/settings";
50
50
  };
51
51
  readonly teams: {
52
- readonly create: '/partner/teams';
52
+ readonly create: "/partner/teams";
53
53
  readonly byId: (teamId: string) => string;
54
54
  readonly catalog: (teamId: string) => string;
55
55
  readonly members: (teamId: string) => string;
56
56
  readonly member: (teamId: string, userId: string) => string;
57
57
  };
58
58
  readonly realtime: {
59
- readonly partner: '/ws/partner';
60
- readonly user: '/ws/user';
59
+ readonly partner: "/ws/partner";
60
+ readonly user: "/ws/user";
61
61
  };
62
62
  };
63
63
  declare const analyticsRoutes: {
64
- readonly whoami: '/api/__gsc/whoami';
65
- readonly sites: '/api/__gsc/sites';
66
- readonly bulkSources: '/api/__gsc/bulk-sources';
64
+ readonly whoami: "/api/__gsc/whoami";
65
+ readonly sites: "/api/__gsc/sites";
66
+ readonly bulkSources: "/api/__gsc/bulk-sources";
67
67
  readonly site: {
68
68
  readonly sourceInfo: (siteId: string) => string;
69
69
  readonly analysisSources: (siteId: string) => string;
@@ -83,6 +83,6 @@ declare const analyticsRoutes: {
83
83
  readonly searchAppearance: (siteId: string) => string;
84
84
  readonly topAssociation: (siteId: string) => string;
85
85
  };
86
- readonly syncProgress: '/api/sync-progress';
86
+ readonly syncProgress: "/api/sync-progress";
87
87
  };
88
88
  export { analyticsRoutes, partnerRoutes };