@gscdump/contracts 1.4.11 → 1.5.1

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/README.md CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  Shared protocol contracts for gscdump.com integrations.
4
4
 
5
- > The executable 18-operation public-v1 registry is exported from
5
+ > The executable 51-operation public-v1 registry is exported from
6
6
  > `@gscdump/contracts/v1`. Existing root route/endpoint exports still describe
7
7
  > the legacy host during the release and cutover overlap. See the
8
- > [v1 contract](../../docs/hosted-api-v1.md) and
8
+ > [integration guide](../../docs/guides/hosted-v1.md),
9
+ > [v1 contract](../../docs/hosted-api-v1.md), and
9
10
  > [producer inventory](../../docs/hosted-api-inventory.md).
10
11
 
11
12
  This package contains types, route metadata, Zod schemas, shared storage/query
@@ -35,6 +36,35 @@ strict against the documented current schema, and enum values remain closed.
35
36
  Every `user_key` query declares primary read consistency with no caller
36
37
  override.
37
38
 
39
+ Framework adapters use the registry mechanics exported from
40
+ `@gscdump/contracts/v1/http`:
41
+
42
+ - `listHttpOperations(protocol)` produces the canonical surface/operation
43
+ entries used by SDK indexes and producer parity checks.
44
+ - `resolveHttpOperation(entries, request)` matches an exact method, surface,
45
+ and surface-relative path; it decodes and parses path parameters through the
46
+ descriptor, rejects unsafe segments, and returns the canonical path.
47
+
48
+ Consumer authorization stays app-owned. A browser proxy selects its explicit
49
+ operation-ID allowlist, then passes only those entries to the resolver.
50
+
51
+ Generated contract files:
52
+
53
+ - [Partner OpenAPI](./generated/openapi.partner.v1.json)
54
+ - [Analytics OpenAPI](./generated/openapi.analytics.v1.json)
55
+ - [Realtime HTTP OpenAPI](./generated/openapi.realtime.v1.json)
56
+ - [Realtime AsyncAPI](./generated/asyncapi.realtime.v1.json)
57
+
58
+ Focused guides:
59
+
60
+ - [Quickstart](../../docs/guides/hosted-v1.md#quickstart)
61
+ - [Authentication](../../docs/guides/hosted-v1.md#authentication)
62
+ - [Errors](../../docs/guides/hosted-v1.md#errors)
63
+ - [Rate limits](../../docs/guides/hosted-v1.md#rate-limits)
64
+ - [Idempotency and retries](../../docs/guides/hosted-v1.md#idempotency-and-retries)
65
+ - [Realtime](../../docs/guides/hosted-v1.md#realtime)
66
+ - [Upgrade guide](../../docs/v1-migration.md)
67
+
38
68
  Realtime contracts cover credential-inferred streams, tickets, frame bounds,
39
69
  replay, cumulative ACKs, and resync. A semantic event owns one cursor and a
40
70
  `changes[]` list, so one terminal transition can invalidate analytics and
@@ -1457,8 +1457,12 @@ declare const partnerEndpoints: {
1457
1457
  }, import("zod/v4/core").$loose>>>;
1458
1458
  meta: import("zod").ZodObject<{
1459
1459
  siteUrl: import("zod").ZodString;
1460
- gscPropertyUrl: import("zod").ZodString;
1460
+ gscPropertyUrl: import("zod").ZodOptional<import("zod").ZodString>;
1461
1461
  syncStatus: import("zod").ZodNullable<import("zod").ZodString>;
1462
+ sitemapScope: import("zod").ZodObject<{
1463
+ excludedCount: import("zod").ZodNumber;
1464
+ duplicateCount: import("zod").ZodNumber;
1465
+ }, import("zod/v4/core").$strip>;
1462
1466
  }, import("zod/v4/core").$loose>;
1463
1467
  }, import("zod/v4/core").$loose>;
1464
1468
  };
@@ -1544,6 +1548,7 @@ declare const partnerEndpoints: {
1544
1548
  available: import("zod").ZodBoolean;
1545
1549
  reason: import("zod").ZodNullable<import("zod").ZodEnum<{
1546
1550
  empty: "empty";
1551
+ endpoint_unavailable: "endpoint_unavailable";
1547
1552
  site_url_cap_exceeded: "site_url_cap_exceeded";
1548
1553
  stale_sitemaps: "stale_sitemaps";
1549
1554
  }>>;
package/dist/routes.d.mts CHANGED
@@ -55,10 +55,6 @@ declare const partnerRoutes: {
55
55
  readonly members: (teamId: string) => string;
56
56
  readonly member: (teamId: string, userId: string) => string;
57
57
  };
58
- readonly realtime: {
59
- readonly partner: "/ws/partner";
60
- readonly user: "/ws/user";
61
- };
62
58
  };
63
59
  declare const analyticsRoutes: {
64
60
  readonly whoami: "/api/__gsc/whoami";
package/dist/routes.mjs CHANGED
@@ -52,10 +52,6 @@ const partnerRoutes = {
52
52
  catalog: (teamId) => `/partner/teams/${encodeURIComponent(teamId)}/catalog`,
53
53
  members: (teamId) => `/partner/teams/${encodeURIComponent(teamId)}/members`,
54
54
  member: (teamId, userId) => `/partner/teams/${encodeURIComponent(teamId)}/members/${encodeURIComponent(userId)}`
55
- },
56
- realtime: {
57
- partner: "/ws/partner",
58
- user: "/ws/user"
59
55
  }
60
56
  };
61
57
  const analyticsRoutes = {
@@ -1567,8 +1567,12 @@ declare const gscdumpSitemapsResponseSchema: z.ZodObject<{
1567
1567
  }, z.core.$loose>>>;
1568
1568
  meta: z.ZodObject<{
1569
1569
  siteUrl: z.ZodString;
1570
- gscPropertyUrl: z.ZodString;
1570
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
1571
1571
  syncStatus: z.ZodNullable<z.ZodString>;
1572
+ sitemapScope: z.ZodObject<{
1573
+ excludedCount: z.ZodNumber;
1574
+ duplicateCount: z.ZodNumber;
1575
+ }, z.core.$strip>;
1572
1576
  }, z.core.$loose>;
1573
1577
  }, z.core.$loose>;
1574
1578
  declare const gscdumpSitemapChangesResponseSchema: z.ZodObject<{
@@ -3148,6 +3152,7 @@ declare const gscdumpSitemapMembershipResponseSchema: z.ZodObject<{
3148
3152
  available: z.ZodBoolean;
3149
3153
  reason: z.ZodNullable<z.ZodEnum<{
3150
3154
  empty: "empty";
3155
+ endpoint_unavailable: "endpoint_unavailable";
3151
3156
  site_url_cap_exceeded: "site_url_cap_exceeded";
3152
3157
  stale_sitemaps: "stale_sitemaps";
3153
3158
  }>>;
@@ -4107,8 +4112,12 @@ declare const partnerControlEndpointSchemas: {
4107
4112
  }, z.core.$loose>>>;
4108
4113
  meta: z.ZodObject<{
4109
4114
  siteUrl: z.ZodString;
4110
- gscPropertyUrl: z.ZodString;
4115
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
4111
4116
  syncStatus: z.ZodNullable<z.ZodString>;
4117
+ sitemapScope: z.ZodObject<{
4118
+ excludedCount: z.ZodNumber;
4119
+ duplicateCount: z.ZodNumber;
4120
+ }, z.core.$strip>;
4112
4121
  }, z.core.$loose>;
4113
4122
  }, z.core.$loose>;
4114
4123
  };
@@ -4185,6 +4194,7 @@ declare const partnerControlEndpointSchemas: {
4185
4194
  available: z.ZodBoolean;
4186
4195
  reason: z.ZodNullable<z.ZodEnum<{
4187
4196
  empty: "empty";
4197
+ endpoint_unavailable: "endpoint_unavailable";
4188
4198
  site_url_cap_exceeded: "site_url_cap_exceeded";
4189
4199
  stale_sitemaps: "stale_sitemaps";
4190
4200
  }>>;
@@ -5923,8 +5933,12 @@ declare const partnerEndpointSchemas: {
5923
5933
  }, z.core.$loose>>>;
5924
5934
  meta: z.ZodObject<{
5925
5935
  siteUrl: z.ZodString;
5926
- gscPropertyUrl: z.ZodString;
5936
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
5927
5937
  syncStatus: z.ZodNullable<z.ZodString>;
5938
+ sitemapScope: z.ZodObject<{
5939
+ excludedCount: z.ZodNumber;
5940
+ duplicateCount: z.ZodNumber;
5941
+ }, z.core.$strip>;
5928
5942
  }, z.core.$loose>;
5929
5943
  }, z.core.$loose>;
5930
5944
  };
@@ -6001,6 +6015,7 @@ declare const partnerEndpointSchemas: {
6001
6015
  available: z.ZodBoolean;
6002
6016
  reason: z.ZodNullable<z.ZodEnum<{
6003
6017
  empty: "empty";
6018
+ endpoint_unavailable: "endpoint_unavailable";
6004
6019
  site_url_cap_exceeded: "site_url_cap_exceeded";
6005
6020
  stale_sitemaps: "stale_sitemaps";
6006
6021
  }>>;
package/dist/schemas.mjs CHANGED
@@ -712,8 +712,12 @@ const gscdumpSitemapsResponseSchema = z.object({
712
712
  }).loose())),
713
713
  meta: z.object({
714
714
  siteUrl: z.string(),
715
- gscPropertyUrl: z.string(),
716
- syncStatus: z.string().nullable()
715
+ gscPropertyUrl: z.string().optional(),
716
+ syncStatus: z.string().nullable(),
717
+ sitemapScope: z.object({
718
+ excludedCount: z.number().int().nonnegative(),
719
+ duplicateCount: z.number().int().nonnegative()
720
+ })
717
721
  }).loose()
718
722
  }).loose();
719
723
  const gscdumpSitemapChangesResponseSchema = z.object({
@@ -1506,6 +1510,7 @@ const gscdumpSitemapMembershipResponseSchema = z.object({
1506
1510
  available: z.boolean(),
1507
1511
  reason: z.enum([
1508
1512
  "empty",
1513
+ "endpoint_unavailable",
1509
1514
  "site_url_cap_exceeded",
1510
1515
  "stale_sitemaps"
1511
1516
  ]).nullable(),
package/dist/types.d.mts CHANGED
@@ -626,6 +626,10 @@ interface GscdumpSitemapsResponse {
626
626
  siteUrl: string;
627
627
  gscPropertyUrl?: string;
628
628
  syncStatus: string | null;
629
+ sitemapScope: {
630
+ excludedCount: number;
631
+ duplicateCount: number;
632
+ };
629
633
  };
630
634
  }
631
635
  interface GscdumpSitemapChangesResponse {
@@ -675,7 +679,7 @@ interface GscdumpSitemapMembershipParams {
675
679
  urls: string[];
676
680
  maxAgeDays?: number;
677
681
  }
678
- type GscdumpSitemapMembershipUnavailableReason = 'empty' | 'site_url_cap_exceeded' | 'stale_sitemaps';
682
+ type GscdumpSitemapMembershipUnavailableReason = 'empty' | 'endpoint_unavailable' | 'site_url_cap_exceeded' | 'stale_sitemaps';
679
683
  interface GscdumpSitemapMembershipUrl {
680
684
  url: string;
681
685
  normalized: string;
@@ -81,8 +81,30 @@ interface HttpV1Surface<TOperations extends Readonly<Record<string, HttpV1Operat
81
81
  version: '1.0';
82
82
  operations: TOperations;
83
83
  }
84
+ interface HttpV1ProtocolLike {
85
+ surfaces: Readonly<Record<string, HttpV1Surface>>;
86
+ }
87
+ type HttpV1ProtocolSurface<TProtocol extends HttpV1ProtocolLike> = TProtocol['surfaces'][keyof TProtocol['surfaces']];
88
+ type HttpV1SurfaceOperation<TSurface> = TSurface extends HttpV1Surface<infer TOperations> ? TOperations[keyof TOperations] : never;
89
+ type HttpV1ProtocolOperation<TProtocol extends HttpV1ProtocolLike> = HttpV1SurfaceOperation<HttpV1ProtocolSurface<TProtocol>>;
90
+ type HttpV1OperationEntry<TProtocol extends HttpV1ProtocolLike = HttpV1ProtocolLike> = HttpV1ProtocolSurface<TProtocol> extends (infer TSurface) ? TSurface extends HttpV1Surface ? {
91
+ surface: TSurface;
92
+ operation: HttpV1SurfaceOperation<TSurface>;
93
+ } : never : never;
94
+ interface HttpV1OperationRequest {
95
+ method: string;
96
+ surface: string;
97
+ /** Surface-relative path without a leading slash or query string. */
98
+ path: string;
99
+ }
100
+ type ResolvedHttpV1Operation<TEntry extends HttpV1OperationEntry = HttpV1OperationEntry> = TEntry & {
101
+ params: Record<string, unknown>;
102
+ /** Canonical surface-relative path. */
103
+ path: string;
104
+ };
84
105
  declare function defineHttpOperation<const TOperation extends HttpV1OperationDefinition>(operation: TOperation): TOperation;
85
106
  declare function defineHttpSurface<const TOperations extends Readonly<Record<string, HttpV1OperationDefinition>>>(surface: HttpV1Surface<TOperations>): HttpV1Surface<TOperations>;
107
+ declare function listHttpOperations<const TProtocol extends HttpV1ProtocolLike>(protocol: TProtocol): HttpV1OperationEntry<TProtocol>[];
86
108
  declare function defineResponseObject<const TProducerShape extends ZodRawShape, const TClientShape extends ZodRawShape = TProducerShape>(producerShape: TProducerShape, clientShape?: TClientShape): CompatibleResponseSchema<z.ZodObject<TProducerShape>, z.ZodObject<TClientShape>>;
87
109
  declare function defineSuccessResponse<const TDataProducer extends ZodTypeAny, const TDataClient extends ZodTypeAny, const TMetaProducer extends ZodTypeAny, const TMetaClient extends ZodTypeAny>(data: CompatibleResponseSchema<TDataProducer, TDataClient>, meta: CompatibleResponseSchema<TMetaProducer, TMetaClient>): CompatibleResponseSchema<z.ZodObject<{
88
110
  data: TDataProducer;
@@ -92,4 +114,5 @@ declare function defineSuccessResponse<const TDataProducer extends ZodTypeAny, c
92
114
  meta: TMetaClient;
93
115
  }>>;
94
116
  declare function buildHttpOperationPath(surface: HttpV1Surface, operation: HttpV1OperationDefinition, params?: unknown): string;
95
- export { CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };
117
+ declare function resolveHttpOperation<const TEntries extends readonly HttpV1OperationEntry[]>(entries: TEntries, request: HttpV1OperationRequest): ResolvedHttpV1Operation<TEntries[number]> | null;
118
+ export { CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OperationEntry, HttpV1OperationRequest, HttpV1OwnershipRule, HttpV1ProtocolLike, HttpV1ProtocolOperation, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, ResolvedHttpV1Operation, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation };
@@ -50,6 +50,34 @@ const HTTP_V1_ERROR_CODES = [
50
50
  function pathParameterNames(path) {
51
51
  return [...path.matchAll(/\{([^{}]+)\}/g)].map((match) => match[1]);
52
52
  }
53
+ function matchHttpOperationPathParameters(operation, path) {
54
+ const templateSegments = operation.path.slice(1).split("/");
55
+ const pathSegments = path.split("/");
56
+ if (templateSegments.length !== pathSegments.length) return null;
57
+ const params = {};
58
+ for (let index = 0; index < templateSegments.length; index++) {
59
+ const templateSegment = templateSegments[index];
60
+ const pathSegment = pathSegments[index];
61
+ const parameter = /^\{([^{}]+)\}$/.exec(templateSegment)?.[1];
62
+ if (!parameter) {
63
+ if (templateSegment !== pathSegment) return null;
64
+ continue;
65
+ }
66
+ const decoded = (() => {
67
+ try {
68
+ return decodeURIComponent(pathSegment);
69
+ } catch {
70
+ return null;
71
+ }
72
+ })();
73
+ if (decoded === null || decoded.length === 0 || decoded === "." || decoded === ".." || decoded.includes("/") || decoded.includes("\\")) return null;
74
+ params[parameter] = decoded;
75
+ }
76
+ if (operation.request.params === null) return Object.keys(params).length === 0 ? {} : null;
77
+ const parsed = operation.request.params.safeParse(params);
78
+ if (!parsed.success || parsed.data === null || typeof parsed.data !== "object" || Array.isArray(parsed.data)) return null;
79
+ return parsed.data;
80
+ }
53
81
  function isSafePathTemplate(path) {
54
82
  return /^\/(?:[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?|\{[a-z][A-Za-z0-9]*\})(?:\/(?:[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?|\{[a-z][A-Za-z0-9]*\}))*$/.test(path);
55
83
  }
@@ -128,6 +156,14 @@ function defineHttpSurface(surface) {
128
156
  }
129
157
  return surface;
130
158
  }
159
+ function listHttpOperations(protocol) {
160
+ const entries = [];
161
+ for (const surface of Object.values(protocol.surfaces)) for (const operation of Object.values(surface.operations)) entries.push({
162
+ surface,
163
+ operation
164
+ });
165
+ return entries;
166
+ }
131
167
  function defineResponseObject(producerShape, clientShape) {
132
168
  return {
133
169
  producer: z.strictObject(producerShape),
@@ -160,4 +196,19 @@ function buildHttpOperationPath(surface, operation, params) {
160
196
  });
161
197
  return `${surface.prefix}${relativePath}`;
162
198
  }
163
- export { GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };
199
+ function resolveHttpOperation(entries, request) {
200
+ for (const entry of entries) {
201
+ const { operation, surface } = entry;
202
+ if (operation.method !== request.method || surface.name !== request.surface) continue;
203
+ const params = matchHttpOperationPathParameters(operation, request.path);
204
+ if (!params) continue;
205
+ const fullPath = buildHttpOperationPath(surface, operation, params);
206
+ return {
207
+ ...entry,
208
+ params,
209
+ path: fullPath.slice(surface.prefix.length + 1)
210
+ };
211
+ }
212
+ return null;
213
+ }
214
+ export { GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation };
@@ -1,4 +1,4 @@
1
1
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
3
- import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol } from "./operations.mjs";
4
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, buildHttpOperationPath, createGscdumpV1Protocol, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };
2
+ import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OperationEntry, HttpV1OperationRequest, HttpV1OwnershipRule, HttpV1ProtocolLike, HttpV1ProtocolOperation, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, ResolvedHttpV1Operation, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
3
+ import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol } from "./operations.mjs";
4
+ export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OperationEntry, HttpV1OperationRequest, HttpV1OwnershipRule, HttpV1ProtocolLike, HttpV1ProtocolOperation, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, ResolvedHttpV1Operation, buildHttpOperationPath, createGscdumpV1Protocol, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation };
package/dist/v1/http.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
2
+ import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
3
3
  import { createGscdumpV1Protocol } from "./operations.mjs";
4
- export { GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, createGscdumpV1Protocol, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };
4
+ export { GSCDUMP_HTTP_V1_VERSION, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, createGscdumpV1Protocol, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation };
@@ -1,7 +1,7 @@
1
1
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
2
+ import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OperationEntry, HttpV1OperationRequest, HttpV1OwnershipRule, HttpV1ProtocolLike, HttpV1ProtocolOperation, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, ResolvedHttpV1Operation, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
3
3
  import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, createRealtimeV1Schemas } from "./realtime.mjs";
4
- import { ContractDocument, createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
5
- import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol } from "./operations.mjs";
4
+ import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol } from "./operations.mjs";
6
5
  import "./http.mjs";
7
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, CompatibleResponseSchema, ContractDocument, GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, serializeContractDocument };
6
+ import { ContractDocument, createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
7
+ export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, CompatibleResponseSchema, ContractDocument, GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OperationEntry, HttpV1OperationRequest, HttpV1OwnershipRule, HttpV1ProtocolLike, HttpV1ProtocolOperation, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, ResolvedHttpV1Operation, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation, serializeContractDocument };
package/dist/v1/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
2
+ import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
3
3
  import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, createRealtimeV1Schemas } from "./realtime.mjs";
4
4
  import { createGscdumpV1Protocol } from "./operations.mjs";
5
5
  import { createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
6
6
  import "./http.mjs";
7
- export { GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, serializeContractDocument };
7
+ export { GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation, serializeContractDocument };
@@ -1,4 +1,4 @@
1
- import { CompatibleResponseSchema, HttpV1Surface } from "./http-core.mjs";
1
+ import { CompatibleResponseSchema, HttpV1ProtocolOperation, HttpV1Surface } from "./http-core.mjs";
2
2
  import { NormalizedFilterV1 } from "./browser.mjs";
3
3
  import { z } from "zod";
4
4
  declare function createGscdumpV1Protocol(): {
@@ -2262,8 +2262,12 @@ declare function createGscdumpV1Protocol(): {
2262
2262
  }, z.core.$loose>>>;
2263
2263
  meta: z.ZodObject<{
2264
2264
  siteUrl: z.ZodString;
2265
- gscPropertyUrl: z.ZodString;
2265
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
2266
2266
  syncStatus: z.ZodNullable<z.ZodString>;
2267
+ sitemapScope: z.ZodObject<{
2268
+ excludedCount: z.ZodNumber;
2269
+ duplicateCount: z.ZodNumber;
2270
+ }, z.core.$strip>;
2267
2271
  }, z.core.$loose>;
2268
2272
  }, z.core.$strip>;
2269
2273
  meta: z.ZodObject<{
@@ -2300,8 +2304,12 @@ declare function createGscdumpV1Protocol(): {
2300
2304
  }, z.core.$loose>>>;
2301
2305
  meta: z.ZodObject<{
2302
2306
  siteUrl: z.ZodString;
2303
- gscPropertyUrl: z.ZodString;
2307
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
2304
2308
  syncStatus: z.ZodNullable<z.ZodString>;
2309
+ sitemapScope: z.ZodObject<{
2310
+ excludedCount: z.ZodNumber;
2311
+ duplicateCount: z.ZodNumber;
2312
+ }, z.core.$strip>;
2305
2313
  }, z.core.$loose>;
2306
2314
  }, z.core.$strip>;
2307
2315
  meta: z.ZodObject<{
@@ -5212,8 +5220,12 @@ declare function createGscdumpV1Protocol(): {
5212
5220
  }, z.core.$loose>>>;
5213
5221
  meta: z.ZodObject<{
5214
5222
  siteUrl: z.ZodString;
5215
- gscPropertyUrl: z.ZodString;
5223
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
5216
5224
  syncStatus: z.ZodNullable<z.ZodString>;
5225
+ sitemapScope: z.ZodObject<{
5226
+ excludedCount: z.ZodNumber;
5227
+ duplicateCount: z.ZodNumber;
5228
+ }, z.core.$strip>;
5217
5229
  }, z.core.$loose>;
5218
5230
  }, z.core.$strip>;
5219
5231
  meta: z.ZodObject<{
@@ -5250,8 +5262,12 @@ declare function createGscdumpV1Protocol(): {
5250
5262
  }, z.core.$loose>>>;
5251
5263
  meta: z.ZodObject<{
5252
5264
  siteUrl: z.ZodString;
5253
- gscPropertyUrl: z.ZodString;
5265
+ gscPropertyUrl: z.ZodOptional<z.ZodString>;
5254
5266
  syncStatus: z.ZodNullable<z.ZodString>;
5267
+ sitemapScope: z.ZodObject<{
5268
+ excludedCount: z.ZodNumber;
5269
+ duplicateCount: z.ZodNumber;
5270
+ }, z.core.$strip>;
5255
5271
  }, z.core.$loose>;
5256
5272
  }, z.core.$strip>;
5257
5273
  meta: z.ZodObject<{
@@ -5324,6 +5340,10 @@ declare function createGscdumpV1Protocol(): {
5324
5340
  readonly siteUrl: "sc-domain:example.com";
5325
5341
  readonly gscPropertyUrl: "sc-domain:example.com";
5326
5342
  readonly syncStatus: "synced";
5343
+ readonly sitemapScope: {
5344
+ readonly excludedCount: 0;
5345
+ readonly duplicateCount: 0;
5346
+ };
5327
5347
  };
5328
5348
  };
5329
5349
  readonly meta: {
@@ -8713,6 +8733,7 @@ declare function createGscdumpV1Protocol(): {
8713
8733
  available: z.ZodBoolean;
8714
8734
  reason: z.ZodNullable<z.ZodEnum<{
8715
8735
  empty: "empty";
8736
+ endpoint_unavailable: "endpoint_unavailable";
8716
8737
  site_url_cap_exceeded: "site_url_cap_exceeded";
8717
8738
  stale_sitemaps: "stale_sitemaps";
8718
8739
  }>>;
@@ -8742,6 +8763,7 @@ declare function createGscdumpV1Protocol(): {
8742
8763
  available: z.ZodBoolean;
8743
8764
  reason: z.ZodNullable<z.ZodEnum<{
8744
8765
  empty: "empty";
8766
+ endpoint_unavailable: "endpoint_unavailable";
8745
8767
  site_url_cap_exceeded: "site_url_cap_exceeded";
8746
8768
  stale_sitemaps: "stale_sitemaps";
8747
8769
  }>>;
@@ -12100,6 +12122,8 @@ declare function createGscdumpV1Protocol(): {
12100
12122
  };
12101
12123
  };
12102
12124
  type GscdumpV1Protocol = ReturnType<typeof createGscdumpV1Protocol>;
12125
+ type GscdumpV1Operation = HttpV1ProtocolOperation<GscdumpV1Protocol>;
12126
+ type GscdumpV1OperationId = GscdumpV1Operation['id'];
12103
12127
  type GscdumpV1ErrorEnvelope = z.infer<GscdumpV1Protocol['schemas']['errorEnvelope']['client']>;
12104
12128
  type GscdumpV1RequestMetadata = z.infer<GscdumpV1Protocol['schemas']['requestMetadata']>;
12105
12129
  type AnalyticsRowsV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsRequest']>;
@@ -12120,4 +12144,4 @@ type PartnerSitemapChangesV1Response = z.infer<GscdumpV1Protocol['schemas']['sit
12120
12144
  type PartnerSiteRegistrationV1Response = z.infer<GscdumpV1Protocol['schemas']['siteRegistrationResponse']['client']>;
12121
12145
  type PartnerSiteDeletionV1Response = z.infer<GscdumpV1Protocol['schemas']['siteDeletionResponse']['client']>;
12122
12146
  type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;
12123
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol };
12147
+ export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol };
@@ -1322,7 +1322,11 @@ function createGscdumpV1Protocol() {
1322
1322
  meta: {
1323
1323
  siteUrl: "sc-domain:example.com",
1324
1324
  gscPropertyUrl: "sc-domain:example.com",
1325
- syncStatus: "synced"
1325
+ syncStatus: "synced",
1326
+ sitemapScope: {
1327
+ excludedCount: 0,
1328
+ duplicateCount: 0
1329
+ }
1326
1330
  }
1327
1331
  },
1328
1332
  meta: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "1.4.11",
4
+ "version": "1.5.1",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -51,11 +51,6 @@
51
51
  "import": "./dist/v1/browser.mjs",
52
52
  "default": "./dist/v1/browser.mjs"
53
53
  },
54
- "./v1/documents": {
55
- "types": "./dist/v1/documents.d.mts",
56
- "import": "./dist/v1/documents.mjs",
57
- "default": "./dist/v1/documents.mjs"
58
- },
59
54
  "./v1/http": {
60
55
  "types": "./dist/v1/http.d.mts",
61
56
  "import": "./dist/v1/http.mjs",
@@ -65,11 +60,6 @@
65
60
  "types": "./dist/v1/realtime.d.mts",
66
61
  "import": "./dist/v1/realtime.mjs",
67
62
  "default": "./dist/v1/realtime.mjs"
68
- },
69
- "./v1/server": {
70
- "types": "./dist/v1/server.d.mts",
71
- "import": "./dist/v1/server.mjs",
72
- "default": "./dist/v1/server.mjs"
73
63
  }
74
64
  },
75
65
  "main": "./dist/index.mjs",
@@ -1,6 +0,0 @@
1
- import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
3
- import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, createRealtimeV1Schemas } from "./realtime.mjs";
4
- import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol } from "./operations.mjs";
5
- import "./http.mjs";
6
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, GscdumpV1ErrorEnvelope, GscdumpV1Protocol, GscdumpV1RequestMetadata, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, HttpV1Credential, HttpV1ErrorCode, HttpV1Method, HttpV1OperationDefinition, HttpV1OwnershipRule, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, buildHttpOperationPath, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };
@@ -1,6 +0,0 @@
1
- import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
2
- import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse } from "./http-core.mjs";
3
- import { GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, createRealtimeV1Schemas } from "./realtime.mjs";
4
- import { createGscdumpV1Protocol } from "./operations.mjs";
5
- import "./http.mjs";
6
- export { GSCDUMP_HTTP_V1_VERSION, GSCDUMP_REALTIME_ACK_POLICY, GSCDUMP_REALTIME_CLOSE_CODES, GSCDUMP_REALTIME_CONNECTION_POLICY, GSCDUMP_REALTIME_LIMITS, GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS, GSCDUMP_REALTIME_PING, GSCDUMP_REALTIME_PONG, GSCDUMP_REALTIME_PROTOCOL_VERSION, GSCDUMP_REALTIME_REPLAY_POLICY, GSCDUMP_REALTIME_SUBPROTOCOL, GSCDUMP_REALTIME_TICKET_AUDIENCE, GSCDUMP_REALTIME_TICKET_ISSUER, GSCDUMP_REALTIME_TICKET_POLICY, GSCDUMP_REALTIME_TICKET_PREFIX, GSCDUMP_REALTIME_TICKET_TTL_SECONDS, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, buildHttpOperationPath, createGscdumpV1Protocol, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse };