@gscdump/contracts 4.7.0 → 4.8.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.
@@ -0,0 +1,214 @@
1
+ import { bingCnameVerificationV1Schema } from "./bing.mjs";
2
+ import { defineResponseObject } from "./http-core.mjs";
3
+ import { z } from "zod";
4
+ const isoDateTime = z.iso.datetime();
5
+ const publicSiteId = z.string().regex(/^s_[\w-]+$/);
6
+ const publicTeamId = z.string().regex(/^t_[\w-]+$/);
7
+ const remoteSiteUrl = z.url();
8
+ const count = z.number().int().nonnegative();
9
+ const bingSitesQueryV1Schema = z.strictObject({ teamId: publicTeamId.optional() });
10
+ const bingListedSitemap = defineResponseObject({
11
+ url: z.string().min(1),
12
+ status: z.string(),
13
+ submittedAt: isoDateTime.nullable(),
14
+ lastCrawledAt: isoDateTime.nullable(),
15
+ urlCount: count.nullable()
16
+ });
17
+ const submittedSitemaps = defineResponseObject({
18
+ _tag: z.literal("submitted"),
19
+ checkedAt: isoDateTime,
20
+ sitemapCount: z.number().int().positive(),
21
+ urlCount: count.nullable(),
22
+ lastCrawledAt: isoDateTime.nullable(),
23
+ sitemaps: z.array(bingListedSitemap.producer).min(1)
24
+ }, {
25
+ _tag: z.literal("submitted"),
26
+ checkedAt: isoDateTime,
27
+ sitemapCount: z.number().int().positive(),
28
+ urlCount: count.nullable(),
29
+ lastCrawledAt: isoDateTime.nullable(),
30
+ sitemaps: z.array(bingListedSitemap.client).min(1)
31
+ });
32
+ const missingSitemaps = defineResponseObject({
33
+ _tag: z.literal("missing"),
34
+ checkedAt: isoDateTime,
35
+ lastSubmittedAt: isoDateTime.nullable()
36
+ });
37
+ const awaitingBingSitemaps = defineResponseObject({
38
+ _tag: z.literal("awaiting-bing"),
39
+ checkedAt: isoDateTime.nullable(),
40
+ lastSubmittedAt: isoDateTime
41
+ });
42
+ const unknownSitemaps = defineResponseObject({ _tag: z.literal("unknown") });
43
+ const bingSitemapViewV1Schemas = {
44
+ producer: z.discriminatedUnion("_tag", [
45
+ submittedSitemaps.producer,
46
+ missingSitemaps.producer,
47
+ awaitingBingSitemaps.producer,
48
+ unknownSitemaps.producer
49
+ ]),
50
+ client: z.discriminatedUnion("_tag", [
51
+ submittedSitemaps.client,
52
+ missingSitemaps.client,
53
+ awaitingBingSitemaps.client,
54
+ unknownSitemaps.client
55
+ ])
56
+ };
57
+ const collectingState = defineResponseObject({
58
+ _tag: z.literal("collecting"),
59
+ remoteSiteUrl,
60
+ lastEvidenceAt: isoDateTime.nullable(),
61
+ sitemap: bingSitemapViewV1Schemas.producer
62
+ }, {
63
+ _tag: z.literal("collecting"),
64
+ remoteSiteUrl,
65
+ lastEvidenceAt: isoDateTime.nullable(),
66
+ sitemap: bingSitemapViewV1Schemas.client
67
+ });
68
+ const verificationRequiredState = defineResponseObject({
69
+ _tag: z.literal("verification-required"),
70
+ remoteSiteUrl,
71
+ verification: bingCnameVerificationV1Schema
72
+ });
73
+ const linkableState = defineResponseObject({
74
+ _tag: z.literal("linkable"),
75
+ reason: z.enum([
76
+ "not-linked",
77
+ "binding-stalled",
78
+ "permission-lost"
79
+ ])
80
+ });
81
+ const grantRequiredState = defineResponseObject({
82
+ _tag: z.literal("grant-required"),
83
+ reason: z.enum(["grant-missing", "reauthorization-required"])
84
+ });
85
+ const reauthorizationRequiredState = defineResponseObject({
86
+ _tag: z.literal("reauthorization-required"),
87
+ remoteSiteUrl
88
+ });
89
+ const unavailableState = defineResponseObject({
90
+ _tag: z.literal("unavailable"),
91
+ reason: z.enum(["not-enabled"])
92
+ });
93
+ const bingSiteStateV1Schemas = {
94
+ producer: z.discriminatedUnion("_tag", [
95
+ collectingState.producer,
96
+ verificationRequiredState.producer,
97
+ linkableState.producer,
98
+ grantRequiredState.producer,
99
+ reauthorizationRequiredState.producer,
100
+ unavailableState.producer
101
+ ]),
102
+ client: z.discriminatedUnion("_tag", [
103
+ collectingState.client,
104
+ verificationRequiredState.client,
105
+ linkableState.client,
106
+ grantRequiredState.client,
107
+ reauthorizationRequiredState.client,
108
+ unavailableState.client
109
+ ])
110
+ };
111
+ const bingSiteV1Schemas = defineResponseObject({
112
+ siteId: publicSiteId,
113
+ siteUrl: z.string().min(1),
114
+ teamId: publicTeamId.nullable(),
115
+ callerCanAct: z.boolean(),
116
+ state: bingSiteStateV1Schemas.producer
117
+ }, {
118
+ siteId: publicSiteId,
119
+ siteUrl: z.string().min(1),
120
+ teamId: publicTeamId.nullable(),
121
+ callerCanAct: z.boolean(),
122
+ state: bingSiteStateV1Schemas.client
123
+ });
124
+ const authorizedGrant = defineResponseObject({
125
+ _tag: z.literal("authorized"),
126
+ scopes: z.array(z.string().min(1))
127
+ });
128
+ const reauthorizationRequiredGrant = defineResponseObject({ _tag: z.literal("reauthorization-required") });
129
+ const missingGrant = defineResponseObject({ _tag: z.literal("missing") });
130
+ const bingGrantV1Schemas = {
131
+ producer: z.discriminatedUnion("_tag", [
132
+ authorizedGrant.producer,
133
+ reauthorizationRequiredGrant.producer,
134
+ missingGrant.producer
135
+ ]),
136
+ client: z.discriminatedUnion("_tag", [
137
+ authorizedGrant.client,
138
+ reauthorizationRequiredGrant.client,
139
+ missingGrant.client
140
+ ])
141
+ };
142
+ const bingSitesV1Schemas = defineResponseObject({
143
+ searchEngine: z.literal("bing"),
144
+ grant: bingGrantV1Schemas.producer,
145
+ sites: z.array(bingSiteV1Schemas.producer)
146
+ }, {
147
+ searchEngine: z.literal("bing"),
148
+ grant: bingGrantV1Schemas.client,
149
+ sites: z.array(bingSiteV1Schemas.client)
150
+ });
151
+ const linkedResult = defineResponseObject({
152
+ _tag: z.literal("linked"),
153
+ site: bingSiteV1Schemas.producer
154
+ }, {
155
+ _tag: z.literal("linked"),
156
+ site: bingSiteV1Schemas.client
157
+ });
158
+ const linkGrantRequiredResult = defineResponseObject({
159
+ _tag: z.literal("grant-required"),
160
+ reason: z.enum(["grant-missing", "reauthorization-required"])
161
+ });
162
+ const linkFailedResult = defineResponseObject({
163
+ _tag: z.literal("failed"),
164
+ reason: z.enum([
165
+ "sites-forbidden",
166
+ "sites-throttled",
167
+ "sites-unavailable",
168
+ "oauth-contract"
169
+ ]),
170
+ retryable: z.boolean()
171
+ });
172
+ const bingLinkResultV1Schemas = {
173
+ producer: z.discriminatedUnion("_tag", [
174
+ linkedResult.producer,
175
+ linkGrantRequiredResult.producer,
176
+ linkFailedResult.producer
177
+ ]),
178
+ client: z.discriminatedUnion("_tag", [
179
+ linkedResult.client,
180
+ linkGrantRequiredResult.client,
181
+ linkFailedResult.client
182
+ ])
183
+ };
184
+ const bingAuthorizationRequestV1Schema = z.strictObject({ returnUrl: z.string().min(1).max(2048).optional() });
185
+ const bingAuthorizationV1Schemas = defineResponseObject({
186
+ authorizeUrl: z.url(),
187
+ expiresAt: isoDateTime
188
+ });
189
+ const bingSitemapSubmitRequestV1Schema = z.strictObject({ url: z.url({ protocol: /^https?$/ }).max(2048).optional() });
190
+ const bingSitemapSubmittedResult = defineResponseObject({
191
+ _tag: z.literal("submitted"),
192
+ sitemapUrl: z.url(),
193
+ sitemap: bingSitemapViewV1Schemas.producer
194
+ }, {
195
+ _tag: z.literal("submitted"),
196
+ sitemapUrl: z.url(),
197
+ sitemap: bingSitemapViewV1Schemas.client
198
+ });
199
+ const bingSitemapFailedResult = defineResponseObject({
200
+ _tag: z.literal("failed"),
201
+ reason: z.enum([
202
+ "site-unverified",
203
+ "grant-required",
204
+ "no-sitemap-found",
205
+ "throttled",
206
+ "provider-unavailable"
207
+ ]),
208
+ retryable: z.boolean()
209
+ });
210
+ const bingSitemapSubmitResultV1Schemas = {
211
+ producer: z.discriminatedUnion("_tag", [bingSitemapSubmittedResult.producer, bingSitemapFailedResult.producer]),
212
+ client: z.discriminatedUnion("_tag", [bingSitemapSubmittedResult.client, bingSitemapFailedResult.client])
213
+ };
214
+ export { bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas };
@@ -3,6 +3,8 @@ import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
3
3
  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, HttpV1Registry, HttpV1RegistryOperationEntry, HttpV1RegistryOperationId, HttpV1RegistryPathOptions, HttpV1RegistryPathParams, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, ResolvedHttpV1Operation, buildHttpOperationPath, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
4
4
  import { BingCnameVerificationV1, BingConnectionV1, bingCnameVerificationV1Schema, bingConnectionV1Schema } from "./bing.mjs";
5
5
  import { BingDataQueryV1, BingDataV1, bingDataQueryV1Schema, bingDataV1Schemas } from "./bing-data.mjs";
6
+ import { BingAuthorizationRequestV1, BingAuthorizationV1, BingGrantV1, BingLinkResultV1, BingSiteStateV1, BingSiteV1, BingSitemapSubmitRequestV1, BingSitemapSubmitResultV1, BingSitemapViewV1, BingSitesQueryV1, BingSitesV1, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas } from "./bing-sites.mjs";
6
7
  import { IndexNowConnectionV1, IndexNowSubmissionReceiptV1, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema } from "./indexnow.mjs";
7
8
  import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, createGscdumpV1Protocol } from "./operations.mjs";
8
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, type BingCnameVerificationV1, type BingConnectionV1, type BingDataQueryV1, type BingDataV1, 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, HttpV1Registry, HttpV1RegistryOperationEntry, HttpV1RegistryOperationId, HttpV1RegistryPathOptions, HttpV1RegistryPathParams, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, IndexNowConnectionV1, IndexNowSubmissionReceiptV1, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, ResolvedHttpV1Operation, type UnknownHttpV1OperationError, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, buildHttpOperationPath, createGscdumpV1Protocol, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation };
9
+ import { GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, SitemapGrantHolderV1, SitemapSubmissionStateV1, SitemapSubmissionV1, SitemapSubmitResultV1, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas } from "./sitemap-submission.mjs";
10
+ export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, BingAuthorizationRequestV1, BingAuthorizationV1, type BingCnameVerificationV1, type BingConnectionV1, type BingDataQueryV1, type BingDataV1, BingGrantV1, BingLinkResultV1, BingSiteStateV1, BingSiteV1, BingSitemapSubmitRequestV1, BingSitemapSubmitResultV1, BingSitemapViewV1, BingSitesQueryV1, BingSitesV1, CompatibleResponseSchema, GSCDUMP_HTTP_V1_VERSION, GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, 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, HttpV1Registry, HttpV1RegistryOperationEntry, HttpV1RegistryOperationId, HttpV1RegistryPathOptions, HttpV1RegistryPathParams, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, IndexNowConnectionV1, IndexNowSubmissionReceiptV1, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, ResolvedHttpV1Operation, SitemapGrantHolderV1, SitemapSubmissionStateV1, SitemapSubmissionV1, SitemapSubmitResultV1, type UnknownHttpV1OperationError, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas, buildHttpOperationPath, createGscdumpV1Protocol, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas };
package/dist/v1/http.mjs CHANGED
@@ -3,6 +3,8 @@ import { isUnknownHttpV1OperationError } from "./http-operation-error.mjs";
3
3
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
4
4
  import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
5
5
  import { bingDataQueryV1Schema, bingDataV1Schemas } from "./bing-data.mjs";
6
+ import { bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas } from "./bing-sites.mjs";
6
7
  import { indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema } from "./indexnow.mjs";
8
+ import { GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas } from "./sitemap-submission.mjs";
7
9
  import { createGscdumpV1Protocol } from "./operations.mjs";
8
- 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, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, buildHttpOperationPath, createGscdumpV1Protocol, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation };
10
+ export { GSCDUMP_HTTP_V1_VERSION, GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas, buildHttpOperationPath, createGscdumpV1Protocol, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas };
@@ -4,8 +4,10 @@ import { CompatibleResponseSchema, HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPE
4
4
  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";
5
5
  import { BingCnameVerificationV1, BingConnectionV1, bingCnameVerificationV1Schema, bingConnectionV1Schema } from "./bing.mjs";
6
6
  import { BingDataQueryV1, BingDataV1, bingDataQueryV1Schema, bingDataV1Schemas } from "./bing-data.mjs";
7
+ import { BingAuthorizationRequestV1, BingAuthorizationV1, BingGrantV1, BingLinkResultV1, BingSiteStateV1, BingSiteV1, BingSitemapSubmitRequestV1, BingSitemapSubmitResultV1, BingSitemapViewV1, BingSitesQueryV1, BingSitesV1, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas } from "./bing-sites.mjs";
7
8
  import { IndexNowConnectionV1, IndexNowSubmissionReceiptV1, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema } from "./indexnow.mjs";
8
9
  import { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, createGscdumpV1Protocol } from "./operations.mjs";
10
+ import { GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, SitemapGrantHolderV1, SitemapSubmissionStateV1, SitemapSubmissionV1, SitemapSubmitResultV1, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas } from "./sitemap-submission.mjs";
9
11
  import "./http.mjs";
10
12
  import { ContractDocument, createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
11
- export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, type BingCnameVerificationV1, type BingConnectionV1, type BingDataQueryV1, type BingDataV1, 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, HttpV1Registry, HttpV1RegistryOperationEntry, HttpV1RegistryOperationId, HttpV1RegistryPathOptions, HttpV1RegistryPathParams, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, IndexNowConnectionV1, IndexNowSubmissionReceiptV1, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, ResolvedHttpV1Operation, type UnknownHttpV1OperationError, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument };
13
+ export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, BingAuthorizationRequestV1, BingAuthorizationV1, type BingCnameVerificationV1, type BingConnectionV1, type BingDataQueryV1, type BingDataV1, BingGrantV1, BingLinkResultV1, BingSiteStateV1, BingSiteV1, BingSitemapSubmitRequestV1, BingSitemapSubmitResultV1, BingSitemapViewV1, BingSitesQueryV1, BingSitesV1, 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, GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, 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, HttpV1Registry, HttpV1RegistryOperationEntry, HttpV1RegistryOperationId, HttpV1RegistryPathOptions, HttpV1RegistryPathParams, HttpV1RequestSchemas, HttpV1ResourceReference, HttpV1ResourceType, HttpV1Scope, HttpV1Semantics, HttpV1Surface, HttpV1SurfaceName, HttpV1Visibility, IndexNowConnectionV1, IndexNowSubmissionReceiptV1, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingConnectionV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserEntitlementsV1, PartnerUserEntitlementsV1Response, PartnerUserLifecycleV1Response, PartnerWatchedUrlsChangeV1Response, PartnerWatchedUrlsV1Response, REALTIME_V1_EVENT_NAMES, REALTIME_V1_EVENT_SEMANTICS, REALTIME_V1_RESOURCE_TYPES, RealtimeTicketV1Response, RealtimeV1ClientFrame, RealtimeV1Cursor, RealtimeV1Event, RealtimeV1ResourceChange, RealtimeV1Schemas, RealtimeV1ServerFrame, RealtimeV1StreamHead, RealtimeV1StreamId, RealtimeV1TicketClaims, RealtimeV1TicketRequest, ResolvedHttpV1Operation, SitemapGrantHolderV1, SitemapSubmissionStateV1, SitemapSubmissionV1, SitemapSubmitResultV1, type UnknownHttpV1OperationError, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas };
package/dist/v1/index.mjs CHANGED
@@ -3,9 +3,11 @@ import { isUnknownHttpV1OperationError } from "./http-operation-error.mjs";
3
3
  import { GSCDUMP_HTTP_V1_VERSION } from "./version.mjs";
4
4
  import { HTTP_V1_CREDENTIALS, HTTP_V1_CREDENTIAL_SCOPES, HTTP_V1_ERROR_CODES, HTTP_V1_METHODS, HTTP_V1_SCOPES, HTTP_V1_SURFACES, buildHttpOperationPath, createHttpV1Registry, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, listHttpOperations, resolveHttpOperation } from "./http-core.mjs";
5
5
  import { bingDataQueryV1Schema, bingDataV1Schemas } from "./bing-data.mjs";
6
+ import { bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas } from "./bing-sites.mjs";
6
7
  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";
7
8
  import { indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema } from "./indexnow.mjs";
9
+ import { GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas } from "./sitemap-submission.mjs";
8
10
  import { createGscdumpV1Protocol } from "./operations.mjs";
9
11
  import { createGscdumpV1Documents, serializeContractDocument } from "./documents.mjs";
10
12
  import "./http.mjs";
11
- 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, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument };
13
+ 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, GSC_SITEMAP_SUBMIT_PERMISSION_LEVELS, GSC_SITEMAP_SUBMIT_SCOPE, 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, bingAuthorizationRequestV1Schema, bingAuthorizationV1Schemas, bingCnameVerificationV1Schema, bingConnectionV1Schema, bingDataQueryV1Schema, bingDataV1Schemas, bingGrantV1Schemas, bingLinkResultV1Schemas, bingSiteStateV1Schemas, bingSiteV1Schemas, bingSitemapSubmitRequestV1Schema, bingSitemapSubmitResultV1Schemas, bingSitemapViewV1Schemas, bingSitesQueryV1Schema, bingSitesV1Schemas, buildHttpOperationPath, createGscdumpV1Documents, createGscdumpV1Protocol, createHttpV1Registry, createRealtimeV1Schemas, defineHttpOperation, defineHttpSurface, defineResponseObject, defineSuccessResponse, indexNowConfigureV1Schema, indexNowConnectionV1Schema, indexNowConnectionV1Schemas, indexNowKeyV1Schema, indexNowSubmissionReceiptV1Schema, indexNowSubmissionReceiptV1Schemas, indexNowSubmitV1Schema, isUnknownHttpV1OperationError, listHttpOperations, resolveHttpOperation, serializeContractDocument, sitemapGrantHolderV1Schemas, sitemapSubmissionStateV1Schemas, sitemapSubmissionV1Schemas, sitemapSubmitResultV1Schemas };