@gscdump/contracts 0.37.7 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/_chunks/endpoints.d.mts +4 -4
- package/dist/_chunks/onboarding.mjs +130 -0
- package/dist/_chunks/schemas.d.mts +11 -11
- package/dist/_chunks/schemas.mjs +2 -130
- package/dist/index.mjs +2 -1
- package/dist/partner.mjs +2 -1
- package/dist/v1/index.d.mts +2825 -0
- package/dist/v1/index.mjs +1440 -0
- package/package.json +8 -2
|
@@ -0,0 +1,2825 @@
|
|
|
1
|
+
import { ZodRawShape, ZodTypeAny, z } from "zod";
|
|
2
|
+
type ContractDocument = Record<string, unknown>;
|
|
3
|
+
declare function serializeContractDocument(document: ContractDocument): string;
|
|
4
|
+
declare function createGscdumpV1Documents(): Record<'openapi.partner.v1.json' | 'openapi.analytics.v1.json' | 'openapi.realtime.v1.json' | 'asyncapi.realtime.v1.json', ContractDocument>;
|
|
5
|
+
declare const HTTP_V1_SURFACES: readonly ["partner", "analytics", "realtime"];
|
|
6
|
+
declare const HTTP_V1_METHODS: readonly ["DELETE", "GET", "PATCH", "POST"];
|
|
7
|
+
declare const HTTP_V1_CREDENTIALS: readonly ["user_key", "partner_key"];
|
|
8
|
+
declare const HTTP_V1_SCOPES: readonly ["users:read", "users:write", "sites:read", "sites:write", "analytics:read", "analytics:execute", "indexing:read", "indexing:write", "sitemaps:read", "sitemaps:write", "settings:read", "settings:write", "realtime:connect", "teams:read", "teams:write"];
|
|
9
|
+
declare const HTTP_V1_CREDENTIAL_SCOPES: {
|
|
10
|
+
readonly user_key: readonly ["users:read", "users:write", "sites:read", "sites:write", "analytics:read", "analytics:execute", "indexing:read", "indexing:write", "sitemaps:read", "sitemaps:write", "settings:read", "settings:write", "realtime:connect"];
|
|
11
|
+
readonly partner_key: readonly ["users:read", "users:write", "sites:read", "sites:write", "analytics:read", "analytics:execute", "indexing:read", "indexing:write", "sitemaps:read", "sitemaps:write", "settings:read", "settings:write", "realtime:connect", "teams:read", "teams:write"];
|
|
12
|
+
};
|
|
13
|
+
declare const HTTP_V1_ERROR_CODES: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "site_not_found", "rate_limited", "realtime_unavailable", "internal_error", "contract_violation"];
|
|
14
|
+
type HttpV1SurfaceName = typeof HTTP_V1_SURFACES[number];
|
|
15
|
+
type HttpV1Method = typeof HTTP_V1_METHODS[number];
|
|
16
|
+
type HttpV1Credential = typeof HTTP_V1_CREDENTIALS[number];
|
|
17
|
+
type HttpV1Scope = typeof HTTP_V1_SCOPES[number];
|
|
18
|
+
type HttpV1ErrorCode = typeof HTTP_V1_ERROR_CODES[number];
|
|
19
|
+
type HttpV1Visibility = 'internal' | 'public';
|
|
20
|
+
type HttpV1OwnershipRule = 'self' | 'linked_user' | 'authorized_site' | 'principal_stream';
|
|
21
|
+
type HttpV1ResourceType = 'partner.user' | 'partner.team' | 'user.sites' | 'site.registration' | 'site.lifecycle' | 'site.analytics' | 'site.sitemaps' | 'site.indexing' | 'site.auth';
|
|
22
|
+
interface CompatibleResponseSchema<TProducer extends ZodTypeAny = ZodTypeAny, TClient extends ZodTypeAny = ZodTypeAny> {
|
|
23
|
+
producer: TProducer;
|
|
24
|
+
client: TClient;
|
|
25
|
+
}
|
|
26
|
+
interface HttpV1RequestSchemas {
|
|
27
|
+
params: ZodTypeAny | null;
|
|
28
|
+
query: ZodTypeAny | null;
|
|
29
|
+
headers: ZodTypeAny | null;
|
|
30
|
+
body: ZodTypeAny | null;
|
|
31
|
+
}
|
|
32
|
+
interface HttpV1Semantics {
|
|
33
|
+
kind: 'mutation' | 'query';
|
|
34
|
+
sideEffects: 'none' | 'state';
|
|
35
|
+
idempotent: boolean;
|
|
36
|
+
retry: 'idempotent' | 'never';
|
|
37
|
+
readConsistency: 'primary' | 'replica-ok' | null;
|
|
38
|
+
}
|
|
39
|
+
interface HttpV1ResourceReference {
|
|
40
|
+
type: HttpV1ResourceType;
|
|
41
|
+
idFrom: `params.${string}` | 'principal.id';
|
|
42
|
+
}
|
|
43
|
+
interface HttpV1OperationDefinition {
|
|
44
|
+
id: string;
|
|
45
|
+
method: HttpV1Method;
|
|
46
|
+
path: `/${string}`;
|
|
47
|
+
visibility: HttpV1Visibility;
|
|
48
|
+
semantics: HttpV1Semantics;
|
|
49
|
+
auth: {
|
|
50
|
+
credentials: readonly HttpV1Credential[];
|
|
51
|
+
scopes: readonly HttpV1Scope[];
|
|
52
|
+
ownership: readonly {
|
|
53
|
+
credential: HttpV1Credential;
|
|
54
|
+
rule: HttpV1OwnershipRule;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
request: HttpV1RequestSchemas;
|
|
58
|
+
responses: Readonly<Record<number, CompatibleResponseSchema>>;
|
|
59
|
+
errors: readonly HttpV1ErrorCode[];
|
|
60
|
+
errorResponse: CompatibleResponseSchema;
|
|
61
|
+
resources: {
|
|
62
|
+
reads: readonly HttpV1ResourceReference[];
|
|
63
|
+
changes: readonly HttpV1ResourceReference[];
|
|
64
|
+
};
|
|
65
|
+
lifecycle: {
|
|
66
|
+
introduced: `${number}.${number}.${number}`;
|
|
67
|
+
deprecated?: `${number}.${number}.${number}`;
|
|
68
|
+
sunset?: string;
|
|
69
|
+
};
|
|
70
|
+
docs: {
|
|
71
|
+
summary: string;
|
|
72
|
+
description: string;
|
|
73
|
+
tags: readonly string[];
|
|
74
|
+
examples: {
|
|
75
|
+
request: unknown;
|
|
76
|
+
response: unknown;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
interface HttpV1Surface<TOperations extends Readonly<Record<string, HttpV1OperationDefinition>> = Readonly<Record<string, HttpV1OperationDefinition>>> {
|
|
81
|
+
name: HttpV1SurfaceName;
|
|
82
|
+
prefix: `/api/${HttpV1SurfaceName}/v1`;
|
|
83
|
+
version: '1.0';
|
|
84
|
+
operations: TOperations;
|
|
85
|
+
}
|
|
86
|
+
declare function defineHttpOperation<const TOperation extends HttpV1OperationDefinition>(operation: TOperation): TOperation;
|
|
87
|
+
declare function defineHttpSurface<const TOperations extends Readonly<Record<string, HttpV1OperationDefinition>>>(surface: HttpV1Surface<TOperations>): HttpV1Surface<TOperations>;
|
|
88
|
+
declare function defineResponseObject<const TProducerShape extends ZodRawShape, const TClientShape extends ZodRawShape = TProducerShape>(producerShape: TProducerShape, clientShape?: TClientShape): CompatibleResponseSchema<z.ZodObject<TProducerShape>, z.ZodObject<TClientShape>>;
|
|
89
|
+
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<{
|
|
90
|
+
data: TDataProducer;
|
|
91
|
+
meta: TMetaProducer;
|
|
92
|
+
}>, z.ZodObject<{
|
|
93
|
+
data: TDataClient;
|
|
94
|
+
meta: TMetaClient;
|
|
95
|
+
}>>;
|
|
96
|
+
declare function buildHttpOperationPath(surface: HttpV1Surface, operation: HttpV1OperationDefinition, params?: unknown): string;
|
|
97
|
+
declare const GSCDUMP_HTTP_V1_VERSION: "1.0";
|
|
98
|
+
interface NormalizedFilterV1 {
|
|
99
|
+
_filters: Array<{
|
|
100
|
+
dimension: string;
|
|
101
|
+
operator: string;
|
|
102
|
+
expression: string;
|
|
103
|
+
expression2?: string;
|
|
104
|
+
}>;
|
|
105
|
+
_nestedGroups?: NormalizedFilterV1[];
|
|
106
|
+
_groupType?: 'and' | 'or';
|
|
107
|
+
}
|
|
108
|
+
declare function createGscdumpV1Protocol(): {
|
|
109
|
+
constants: {
|
|
110
|
+
httpVersion: "1.0";
|
|
111
|
+
realtimeProtocolVersion: 1;
|
|
112
|
+
realtimeSubprotocol: "gscdump.v1";
|
|
113
|
+
realtimeTicketPrefix: "gscdump.ticket.v1";
|
|
114
|
+
realtimeTicketIssuer: "https://gscdump.com";
|
|
115
|
+
realtimeTicketAudience: "https://gscdump.com/ws/v1";
|
|
116
|
+
ping: "ping";
|
|
117
|
+
pong: "pong";
|
|
118
|
+
ticketTtlSeconds: 60;
|
|
119
|
+
maxConnectionSeconds: 900;
|
|
120
|
+
ticketPolicy: {
|
|
121
|
+
readonly algorithm: "HMAC-SHA-256";
|
|
122
|
+
readonly minimumSigningKeyBytes: 32;
|
|
123
|
+
readonly jtiRandomBits: 128;
|
|
124
|
+
readonly maxVerificationKeys: 2;
|
|
125
|
+
readonly futureIssuedAtToleranceMs: 5000;
|
|
126
|
+
readonly expiryToleranceMs: 0;
|
|
127
|
+
readonly rotationOverlapMs: 90000;
|
|
128
|
+
readonly maxBytes: 2048;
|
|
129
|
+
readonly singleUse: true;
|
|
130
|
+
};
|
|
131
|
+
connectionPolicy: {
|
|
132
|
+
readonly helloDeadlineMs: 10000;
|
|
133
|
+
readonly maxLifetimeMs: 900000;
|
|
134
|
+
readonly connectionRefreshBeforeExpiryMs: 30000;
|
|
135
|
+
readonly heartbeatIntervalMs: 25000;
|
|
136
|
+
readonly staleAfterMs: 75000;
|
|
137
|
+
readonly reconnectBaseDelayMs: 1000;
|
|
138
|
+
readonly reconnectMaxDelayMs: 30000;
|
|
139
|
+
readonly reconnectJitter: "equal";
|
|
140
|
+
};
|
|
141
|
+
replayPolicy: {
|
|
142
|
+
readonly maxAgeMs: 86400000;
|
|
143
|
+
readonly maxEventsPerStream: 10000;
|
|
144
|
+
};
|
|
145
|
+
limits: {
|
|
146
|
+
readonly clientFrameMaxBytes: 16384;
|
|
147
|
+
readonly durableEventMaxBytes: 65536;
|
|
148
|
+
readonly ephemeralEventMaxBytes: 16384;
|
|
149
|
+
readonly outboundFrameMaxBytes: 262144;
|
|
150
|
+
readonly batchMaxEvents: 20;
|
|
151
|
+
readonly batchMaxBytes: 262144;
|
|
152
|
+
readonly connectionAttachmentMaxBytes: 2048;
|
|
153
|
+
};
|
|
154
|
+
ackPolicy: {
|
|
155
|
+
readonly softLagEvents: 100;
|
|
156
|
+
readonly softLagBytes: 1048576;
|
|
157
|
+
readonly hardLagEvents: 500;
|
|
158
|
+
readonly hardLagBytes: 4194304;
|
|
159
|
+
readonly hardLagCloseCode: 1013;
|
|
160
|
+
readonly effectRetryBeforeUnsafeResync: 3;
|
|
161
|
+
};
|
|
162
|
+
closeCodes: {
|
|
163
|
+
readonly normal: 1000;
|
|
164
|
+
readonly protocolError: 1002;
|
|
165
|
+
readonly policyViolation: 1008;
|
|
166
|
+
readonly internalError: 1011;
|
|
167
|
+
readonly serviceRestart: 1012;
|
|
168
|
+
readonly overloadedOrAckLag: 1013;
|
|
169
|
+
readonly maximumLifetime: 4001;
|
|
170
|
+
};
|
|
171
|
+
eventSemantics: {
|
|
172
|
+
readonly 'user.lifecycle.changed': {
|
|
173
|
+
readonly delivery: "durable";
|
|
174
|
+
readonly baseChanges: readonly ["partner.user", "user.sites"];
|
|
175
|
+
};
|
|
176
|
+
readonly 'site.lifecycle.changed': {
|
|
177
|
+
readonly delivery: "durable";
|
|
178
|
+
readonly baseChanges: readonly ["site.lifecycle"];
|
|
179
|
+
};
|
|
180
|
+
readonly 'site.lifecycle.progress': {
|
|
181
|
+
readonly delivery: "ephemeral";
|
|
182
|
+
readonly baseChanges: readonly [];
|
|
183
|
+
};
|
|
184
|
+
readonly 'site.analytics.ready': {
|
|
185
|
+
readonly delivery: "durable";
|
|
186
|
+
readonly baseChanges: readonly ["site.analytics", "site.lifecycle"];
|
|
187
|
+
};
|
|
188
|
+
readonly 'site.sitemaps.ready': {
|
|
189
|
+
readonly delivery: "durable";
|
|
190
|
+
readonly baseChanges: readonly ["site.sitemaps", "site.lifecycle"];
|
|
191
|
+
};
|
|
192
|
+
readonly 'site.indexing.ready': {
|
|
193
|
+
readonly delivery: "durable";
|
|
194
|
+
readonly baseChanges: readonly ["site.indexing", "site.lifecycle"];
|
|
195
|
+
};
|
|
196
|
+
readonly 'site.auth.failed': {
|
|
197
|
+
readonly delivery: "durable";
|
|
198
|
+
readonly baseChanges: readonly ["site.auth", "site.lifecycle"];
|
|
199
|
+
};
|
|
200
|
+
readonly 'site.lifecycle.failed': {
|
|
201
|
+
readonly delivery: "durable";
|
|
202
|
+
readonly baseChanges: readonly ["site.lifecycle"];
|
|
203
|
+
};
|
|
204
|
+
readonly 'site.registration.changed': {
|
|
205
|
+
readonly delivery: "durable";
|
|
206
|
+
readonly baseChanges: readonly ["site.registration", "user.sites"];
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
schemas: {
|
|
211
|
+
opaquePublicId: z.ZodString;
|
|
212
|
+
userStreamId: z.ZodString;
|
|
213
|
+
partnerStreamId: z.ZodString;
|
|
214
|
+
publicUserId: z.ZodString;
|
|
215
|
+
publicPartnerId: z.ZodString;
|
|
216
|
+
publicTeamId: z.ZodString;
|
|
217
|
+
publicSiteId: z.ZodString;
|
|
218
|
+
publicPrincipalId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
219
|
+
publicResourceId: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodString]>;
|
|
220
|
+
publicRequestId: z.ZodString;
|
|
221
|
+
publicEventId: z.ZodString;
|
|
222
|
+
sequence: z.ZodString;
|
|
223
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
224
|
+
cursor: z.ZodObject<{
|
|
225
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
226
|
+
sequence: z.ZodString;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
streamHead: z.ZodObject<{
|
|
229
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
230
|
+
sequence: z.ZodString;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
ticketRequest: z.ZodObject<{
|
|
233
|
+
origin: z.ZodOptional<z.ZodURL>;
|
|
234
|
+
}, z.core.$strict>;
|
|
235
|
+
ticketClaims: z.ZodObject<{
|
|
236
|
+
v: z.ZodLiteral<1>;
|
|
237
|
+
iss: z.ZodLiteral<"https://gscdump.com">;
|
|
238
|
+
aud: z.ZodLiteral<"https://gscdump.com/ws/v1">;
|
|
239
|
+
kid: z.ZodString;
|
|
240
|
+
jti: z.ZodString;
|
|
241
|
+
iat: z.ZodNumber;
|
|
242
|
+
exp: z.ZodNumber;
|
|
243
|
+
connectionExpiresAt: z.ZodNumber;
|
|
244
|
+
principalClass: z.ZodEnum<{
|
|
245
|
+
user_key: "user_key";
|
|
246
|
+
partner_key: "partner_key";
|
|
247
|
+
}>;
|
|
248
|
+
principalPublicId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
249
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
250
|
+
origin: z.ZodNullable<z.ZodURL>;
|
|
251
|
+
}, z.core.$strict>;
|
|
252
|
+
knownResourceType: z.ZodEnum<{
|
|
253
|
+
"partner.user": "partner.user";
|
|
254
|
+
"partner.team": "partner.team";
|
|
255
|
+
"user.sites": "user.sites";
|
|
256
|
+
"site.registration": "site.registration";
|
|
257
|
+
"site.lifecycle": "site.lifecycle";
|
|
258
|
+
"site.analytics": "site.analytics";
|
|
259
|
+
"site.sitemaps": "site.sitemaps";
|
|
260
|
+
"site.indexing": "site.indexing";
|
|
261
|
+
"site.auth": "site.auth";
|
|
262
|
+
}>;
|
|
263
|
+
resourceChange: z.ZodObject<{
|
|
264
|
+
type: z.ZodString;
|
|
265
|
+
id: z.ZodString;
|
|
266
|
+
kind: z.ZodEnum<{
|
|
267
|
+
created: "created";
|
|
268
|
+
updated: "updated";
|
|
269
|
+
deleted: "deleted";
|
|
270
|
+
}>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"partner">;
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"team">;
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"user">;
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
282
|
+
type: z.ZodLiteral<"site">;
|
|
283
|
+
id: z.ZodString;
|
|
284
|
+
}, z.core.$strict>], "type">;
|
|
285
|
+
durableEvent: z.ZodObject<{
|
|
286
|
+
cursor: z.ZodObject<{
|
|
287
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
288
|
+
sequence: z.ZodString;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
291
|
+
type: z.ZodString;
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
kind: z.ZodEnum<{
|
|
294
|
+
created: "created";
|
|
295
|
+
updated: "updated";
|
|
296
|
+
deleted: "deleted";
|
|
297
|
+
}>;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
delivery: z.ZodLiteral<"durable">;
|
|
300
|
+
type: z.ZodLiteral<"event">;
|
|
301
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
302
|
+
eventVersion: z.ZodNumber;
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
306
|
+
type: z.ZodLiteral<"partner">;
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
309
|
+
type: z.ZodLiteral<"team">;
|
|
310
|
+
id: z.ZodString;
|
|
311
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
312
|
+
type: z.ZodLiteral<"user">;
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
315
|
+
type: z.ZodLiteral<"site">;
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
}, z.core.$strict>], "type">;
|
|
318
|
+
occurredAt: z.ZodISODateTime;
|
|
319
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
320
|
+
data: z.ZodJSONSchema;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
ephemeralEvent: z.ZodObject<{
|
|
323
|
+
cursor: z.ZodNull;
|
|
324
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
325
|
+
type: z.ZodString;
|
|
326
|
+
id: z.ZodString;
|
|
327
|
+
kind: z.ZodEnum<{
|
|
328
|
+
created: "created";
|
|
329
|
+
updated: "updated";
|
|
330
|
+
deleted: "deleted";
|
|
331
|
+
}>;
|
|
332
|
+
}, z.core.$strict>>;
|
|
333
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
334
|
+
type: z.ZodLiteral<"event">;
|
|
335
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
336
|
+
eventVersion: z.ZodNumber;
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
340
|
+
type: z.ZodLiteral<"partner">;
|
|
341
|
+
id: z.ZodString;
|
|
342
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
343
|
+
type: z.ZodLiteral<"team">;
|
|
344
|
+
id: z.ZodString;
|
|
345
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"user">;
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
349
|
+
type: z.ZodLiteral<"site">;
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
}, z.core.$strict>], "type">;
|
|
352
|
+
occurredAt: z.ZodISODateTime;
|
|
353
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
354
|
+
data: z.ZodJSONSchema;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
event: z.ZodUnion<readonly [z.ZodObject<{
|
|
357
|
+
cursor: z.ZodObject<{
|
|
358
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
359
|
+
sequence: z.ZodString;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
362
|
+
type: z.ZodString;
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
kind: z.ZodEnum<{
|
|
365
|
+
created: "created";
|
|
366
|
+
updated: "updated";
|
|
367
|
+
deleted: "deleted";
|
|
368
|
+
}>;
|
|
369
|
+
}, z.core.$strict>>;
|
|
370
|
+
delivery: z.ZodLiteral<"durable">;
|
|
371
|
+
type: z.ZodLiteral<"event">;
|
|
372
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
373
|
+
eventVersion: z.ZodNumber;
|
|
374
|
+
id: z.ZodString;
|
|
375
|
+
name: z.ZodString;
|
|
376
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
377
|
+
type: z.ZodLiteral<"partner">;
|
|
378
|
+
id: z.ZodString;
|
|
379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
380
|
+
type: z.ZodLiteral<"team">;
|
|
381
|
+
id: z.ZodString;
|
|
382
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"user">;
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
+
type: z.ZodLiteral<"site">;
|
|
387
|
+
id: z.ZodString;
|
|
388
|
+
}, z.core.$strict>], "type">;
|
|
389
|
+
occurredAt: z.ZodISODateTime;
|
|
390
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
391
|
+
data: z.ZodJSONSchema;
|
|
392
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
393
|
+
cursor: z.ZodNull;
|
|
394
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
395
|
+
type: z.ZodString;
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
kind: z.ZodEnum<{
|
|
398
|
+
created: "created";
|
|
399
|
+
updated: "updated";
|
|
400
|
+
deleted: "deleted";
|
|
401
|
+
}>;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
404
|
+
type: z.ZodLiteral<"event">;
|
|
405
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
406
|
+
eventVersion: z.ZodNumber;
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
name: z.ZodString;
|
|
409
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
410
|
+
type: z.ZodLiteral<"partner">;
|
|
411
|
+
id: z.ZodString;
|
|
412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
+
type: z.ZodLiteral<"team">;
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
416
|
+
type: z.ZodLiteral<"user">;
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
419
|
+
type: z.ZodLiteral<"site">;
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
}, z.core.$strict>], "type">;
|
|
422
|
+
occurredAt: z.ZodISODateTime;
|
|
423
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
424
|
+
data: z.ZodJSONSchema;
|
|
425
|
+
}, z.core.$strict>]>;
|
|
426
|
+
helloFrame: z.ZodObject<{
|
|
427
|
+
type: z.ZodLiteral<"hello">;
|
|
428
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
429
|
+
sdkVersion: z.ZodString;
|
|
430
|
+
resume: z.ZodNullable<z.ZodObject<{
|
|
431
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
432
|
+
sequence: z.ZodString;
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
|
+
}, z.core.$strict>;
|
|
435
|
+
ackFrame: z.ZodObject<{
|
|
436
|
+
type: z.ZodLiteral<"ack">;
|
|
437
|
+
cursor: z.ZodObject<{
|
|
438
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
439
|
+
sequence: z.ZodString;
|
|
440
|
+
}, z.core.$strict>;
|
|
441
|
+
}, z.core.$strict>;
|
|
442
|
+
readyFrame: z.ZodObject<{
|
|
443
|
+
type: z.ZodLiteral<"ready">;
|
|
444
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
445
|
+
connectionId: z.ZodString;
|
|
446
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
447
|
+
replayFloor: z.ZodObject<{
|
|
448
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
449
|
+
sequence: z.ZodString;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
head: z.ZodObject<{
|
|
452
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
453
|
+
sequence: z.ZodString;
|
|
454
|
+
}, z.core.$strict>;
|
|
455
|
+
limits: z.ZodObject<{
|
|
456
|
+
maxBatchEvents: z.ZodNumber;
|
|
457
|
+
maxUnackedEvents: z.ZodNumber;
|
|
458
|
+
}, z.core.$strict>;
|
|
459
|
+
heartbeat: z.ZodObject<{
|
|
460
|
+
ping: z.ZodLiteral<"ping">;
|
|
461
|
+
pong: z.ZodLiteral<"pong">;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
expiresAt: z.ZodISODateTime;
|
|
464
|
+
}, z.core.$strict>;
|
|
465
|
+
replayBeginFrame: z.ZodObject<{
|
|
466
|
+
type: z.ZodLiteral<"replay.begin">;
|
|
467
|
+
after: z.ZodNullable<z.ZodObject<{
|
|
468
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
469
|
+
sequence: z.ZodString;
|
|
470
|
+
}, z.core.$strict>>;
|
|
471
|
+
through: z.ZodObject<{
|
|
472
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
473
|
+
sequence: z.ZodString;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
}, z.core.$strict>;
|
|
476
|
+
replayEndFrame: z.ZodObject<{
|
|
477
|
+
type: z.ZodLiteral<"replay.end">;
|
|
478
|
+
through: z.ZodObject<{
|
|
479
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
480
|
+
sequence: z.ZodString;
|
|
481
|
+
}, z.core.$strict>;
|
|
482
|
+
}, z.core.$strict>;
|
|
483
|
+
batchFrame: z.ZodObject<{
|
|
484
|
+
type: z.ZodLiteral<"batch">;
|
|
485
|
+
events: z.ZodArray<z.ZodObject<{
|
|
486
|
+
cursor: z.ZodObject<{
|
|
487
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
488
|
+
sequence: z.ZodString;
|
|
489
|
+
}, z.core.$strict>;
|
|
490
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
491
|
+
type: z.ZodString;
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
kind: z.ZodEnum<{
|
|
494
|
+
created: "created";
|
|
495
|
+
updated: "updated";
|
|
496
|
+
deleted: "deleted";
|
|
497
|
+
}>;
|
|
498
|
+
}, z.core.$strict>>;
|
|
499
|
+
delivery: z.ZodLiteral<"durable">;
|
|
500
|
+
type: z.ZodLiteral<"event">;
|
|
501
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
502
|
+
eventVersion: z.ZodNumber;
|
|
503
|
+
id: z.ZodString;
|
|
504
|
+
name: z.ZodString;
|
|
505
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
506
|
+
type: z.ZodLiteral<"partner">;
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
509
|
+
type: z.ZodLiteral<"team">;
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
512
|
+
type: z.ZodLiteral<"user">;
|
|
513
|
+
id: z.ZodString;
|
|
514
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
515
|
+
type: z.ZodLiteral<"site">;
|
|
516
|
+
id: z.ZodString;
|
|
517
|
+
}, z.core.$strict>], "type">;
|
|
518
|
+
occurredAt: z.ZodISODateTime;
|
|
519
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
520
|
+
data: z.ZodJSONSchema;
|
|
521
|
+
}, z.core.$strict>>;
|
|
522
|
+
}, z.core.$strict>;
|
|
523
|
+
resyncRequiredFrame: z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"resync.required">;
|
|
525
|
+
reason: z.ZodEnum<{
|
|
526
|
+
cursor_expired: "cursor_expired";
|
|
527
|
+
retention_gap: "retention_gap";
|
|
528
|
+
sequence_gap: "sequence_gap";
|
|
529
|
+
stream_mismatch: "stream_mismatch";
|
|
530
|
+
}>;
|
|
531
|
+
scope: z.ZodObject<{
|
|
532
|
+
type: z.ZodLiteral<"stream">;
|
|
533
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
resumeAfter: z.ZodObject<{
|
|
536
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
537
|
+
sequence: z.ZodString;
|
|
538
|
+
}, z.core.$strict>;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
realtimeErrorFrame: z.ZodObject<{
|
|
541
|
+
type: z.ZodLiteral<"error">;
|
|
542
|
+
error: z.ZodObject<{
|
|
543
|
+
code: z.ZodEnum<{
|
|
544
|
+
invalid_frame: "invalid_frame";
|
|
545
|
+
protocol_mismatch: "protocol_mismatch";
|
|
546
|
+
policy_violation: "policy_violation";
|
|
547
|
+
overloaded: "overloaded";
|
|
548
|
+
internal_error: "internal_error";
|
|
549
|
+
}>;
|
|
550
|
+
message: z.ZodString;
|
|
551
|
+
retryable: z.ZodBoolean;
|
|
552
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
}, z.core.$strict>;
|
|
554
|
+
}, z.core.$strict>;
|
|
555
|
+
clientFrame: z.ZodUnion<readonly [z.ZodObject<{
|
|
556
|
+
type: z.ZodLiteral<"hello">;
|
|
557
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
558
|
+
sdkVersion: z.ZodString;
|
|
559
|
+
resume: z.ZodNullable<z.ZodObject<{
|
|
560
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
561
|
+
sequence: z.ZodString;
|
|
562
|
+
}, z.core.$strict>>;
|
|
563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
+
type: z.ZodLiteral<"ack">;
|
|
565
|
+
cursor: z.ZodObject<{
|
|
566
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
567
|
+
sequence: z.ZodString;
|
|
568
|
+
}, z.core.$strict>;
|
|
569
|
+
}, z.core.$strict>]>;
|
|
570
|
+
serverFrame: z.ZodUnion<readonly [z.ZodObject<{
|
|
571
|
+
type: z.ZodLiteral<"ready">;
|
|
572
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
573
|
+
connectionId: z.ZodString;
|
|
574
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
575
|
+
replayFloor: z.ZodObject<{
|
|
576
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
577
|
+
sequence: z.ZodString;
|
|
578
|
+
}, z.core.$strict>;
|
|
579
|
+
head: z.ZodObject<{
|
|
580
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
581
|
+
sequence: z.ZodString;
|
|
582
|
+
}, z.core.$strict>;
|
|
583
|
+
limits: z.ZodObject<{
|
|
584
|
+
maxBatchEvents: z.ZodNumber;
|
|
585
|
+
maxUnackedEvents: z.ZodNumber;
|
|
586
|
+
}, z.core.$strict>;
|
|
587
|
+
heartbeat: z.ZodObject<{
|
|
588
|
+
ping: z.ZodLiteral<"ping">;
|
|
589
|
+
pong: z.ZodLiteral<"pong">;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
expiresAt: z.ZodISODateTime;
|
|
592
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
+
type: z.ZodLiteral<"replay.begin">;
|
|
594
|
+
after: z.ZodNullable<z.ZodObject<{
|
|
595
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
596
|
+
sequence: z.ZodString;
|
|
597
|
+
}, z.core.$strict>>;
|
|
598
|
+
through: z.ZodObject<{
|
|
599
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
600
|
+
sequence: z.ZodString;
|
|
601
|
+
}, z.core.$strict>;
|
|
602
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
603
|
+
type: z.ZodLiteral<"replay.end">;
|
|
604
|
+
through: z.ZodObject<{
|
|
605
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
606
|
+
sequence: z.ZodString;
|
|
607
|
+
}, z.core.$strict>;
|
|
608
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
609
|
+
cursor: z.ZodObject<{
|
|
610
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
611
|
+
sequence: z.ZodString;
|
|
612
|
+
}, z.core.$strict>;
|
|
613
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
614
|
+
type: z.ZodString;
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
kind: z.ZodEnum<{
|
|
617
|
+
created: "created";
|
|
618
|
+
updated: "updated";
|
|
619
|
+
deleted: "deleted";
|
|
620
|
+
}>;
|
|
621
|
+
}, z.core.$strict>>;
|
|
622
|
+
delivery: z.ZodLiteral<"durable">;
|
|
623
|
+
type: z.ZodLiteral<"event">;
|
|
624
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
625
|
+
eventVersion: z.ZodNumber;
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
name: z.ZodString;
|
|
628
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<"partner">;
|
|
630
|
+
id: z.ZodString;
|
|
631
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
632
|
+
type: z.ZodLiteral<"team">;
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
635
|
+
type: z.ZodLiteral<"user">;
|
|
636
|
+
id: z.ZodString;
|
|
637
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
638
|
+
type: z.ZodLiteral<"site">;
|
|
639
|
+
id: z.ZodString;
|
|
640
|
+
}, z.core.$strict>], "type">;
|
|
641
|
+
occurredAt: z.ZodISODateTime;
|
|
642
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
643
|
+
data: z.ZodJSONSchema;
|
|
644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
645
|
+
cursor: z.ZodNull;
|
|
646
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
647
|
+
type: z.ZodString;
|
|
648
|
+
id: z.ZodString;
|
|
649
|
+
kind: z.ZodEnum<{
|
|
650
|
+
created: "created";
|
|
651
|
+
updated: "updated";
|
|
652
|
+
deleted: "deleted";
|
|
653
|
+
}>;
|
|
654
|
+
}, z.core.$strict>>;
|
|
655
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
656
|
+
type: z.ZodLiteral<"event">;
|
|
657
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
658
|
+
eventVersion: z.ZodNumber;
|
|
659
|
+
id: z.ZodString;
|
|
660
|
+
name: z.ZodString;
|
|
661
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
662
|
+
type: z.ZodLiteral<"partner">;
|
|
663
|
+
id: z.ZodString;
|
|
664
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
665
|
+
type: z.ZodLiteral<"team">;
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
668
|
+
type: z.ZodLiteral<"user">;
|
|
669
|
+
id: z.ZodString;
|
|
670
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
671
|
+
type: z.ZodLiteral<"site">;
|
|
672
|
+
id: z.ZodString;
|
|
673
|
+
}, z.core.$strict>], "type">;
|
|
674
|
+
occurredAt: z.ZodISODateTime;
|
|
675
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
676
|
+
data: z.ZodJSONSchema;
|
|
677
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
678
|
+
type: z.ZodLiteral<"batch">;
|
|
679
|
+
events: z.ZodArray<z.ZodObject<{
|
|
680
|
+
cursor: z.ZodObject<{
|
|
681
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
682
|
+
sequence: z.ZodString;
|
|
683
|
+
}, z.core.$strict>;
|
|
684
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
685
|
+
type: z.ZodString;
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
kind: z.ZodEnum<{
|
|
688
|
+
created: "created";
|
|
689
|
+
updated: "updated";
|
|
690
|
+
deleted: "deleted";
|
|
691
|
+
}>;
|
|
692
|
+
}, z.core.$strict>>;
|
|
693
|
+
delivery: z.ZodLiteral<"durable">;
|
|
694
|
+
type: z.ZodLiteral<"event">;
|
|
695
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
696
|
+
eventVersion: z.ZodNumber;
|
|
697
|
+
id: z.ZodString;
|
|
698
|
+
name: z.ZodString;
|
|
699
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
700
|
+
type: z.ZodLiteral<"partner">;
|
|
701
|
+
id: z.ZodString;
|
|
702
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
703
|
+
type: z.ZodLiteral<"team">;
|
|
704
|
+
id: z.ZodString;
|
|
705
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
706
|
+
type: z.ZodLiteral<"user">;
|
|
707
|
+
id: z.ZodString;
|
|
708
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
709
|
+
type: z.ZodLiteral<"site">;
|
|
710
|
+
id: z.ZodString;
|
|
711
|
+
}, z.core.$strict>], "type">;
|
|
712
|
+
occurredAt: z.ZodISODateTime;
|
|
713
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
714
|
+
data: z.ZodJSONSchema;
|
|
715
|
+
}, z.core.$strict>>;
|
|
716
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
717
|
+
type: z.ZodLiteral<"resync.required">;
|
|
718
|
+
reason: z.ZodEnum<{
|
|
719
|
+
cursor_expired: "cursor_expired";
|
|
720
|
+
retention_gap: "retention_gap";
|
|
721
|
+
sequence_gap: "sequence_gap";
|
|
722
|
+
stream_mismatch: "stream_mismatch";
|
|
723
|
+
}>;
|
|
724
|
+
scope: z.ZodObject<{
|
|
725
|
+
type: z.ZodLiteral<"stream">;
|
|
726
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
727
|
+
}, z.core.$strict>;
|
|
728
|
+
resumeAfter: z.ZodObject<{
|
|
729
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
730
|
+
sequence: z.ZodString;
|
|
731
|
+
}, z.core.$strict>;
|
|
732
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
733
|
+
type: z.ZodLiteral<"error">;
|
|
734
|
+
error: z.ZodObject<{
|
|
735
|
+
code: z.ZodEnum<{
|
|
736
|
+
invalid_frame: "invalid_frame";
|
|
737
|
+
protocol_mismatch: "protocol_mismatch";
|
|
738
|
+
policy_violation: "policy_violation";
|
|
739
|
+
overloaded: "overloaded";
|
|
740
|
+
internal_error: "internal_error";
|
|
741
|
+
}>;
|
|
742
|
+
message: z.ZodString;
|
|
743
|
+
retryable: z.ZodBoolean;
|
|
744
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
}, z.core.$strict>;
|
|
746
|
+
}, z.core.$strict>]>;
|
|
747
|
+
requestMetadata: z.ZodObject<{
|
|
748
|
+
requestId: z.ZodString;
|
|
749
|
+
surface: z.ZodEnum<{
|
|
750
|
+
partner: "partner";
|
|
751
|
+
analytics: "analytics";
|
|
752
|
+
realtime: "realtime";
|
|
753
|
+
}>;
|
|
754
|
+
version: z.ZodLiteral<"1.0">;
|
|
755
|
+
}, z.core.$strict>;
|
|
756
|
+
requestHeaders: z.ZodObject<{
|
|
757
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
758
|
+
}, z.core.$strict>;
|
|
759
|
+
responseMeta: CompatibleResponseSchema<z.ZodObject<{
|
|
760
|
+
readonly requestId: z.ZodString;
|
|
761
|
+
readonly surface: z.ZodEnum<{
|
|
762
|
+
partner: "partner";
|
|
763
|
+
analytics: "analytics";
|
|
764
|
+
realtime: "realtime";
|
|
765
|
+
}>;
|
|
766
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
767
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
768
|
+
readonly requestId: z.ZodString;
|
|
769
|
+
readonly surface: z.ZodEnum<{
|
|
770
|
+
partner: "partner";
|
|
771
|
+
analytics: "analytics";
|
|
772
|
+
realtime: "realtime";
|
|
773
|
+
}>;
|
|
774
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
775
|
+
}, z.core.$strip>>;
|
|
776
|
+
errorEnvelope: CompatibleResponseSchema<z.ZodObject<{
|
|
777
|
+
readonly error: z.ZodObject<{
|
|
778
|
+
code: z.ZodEnum<{
|
|
779
|
+
internal_error: "internal_error";
|
|
780
|
+
rate_limited: "rate_limited";
|
|
781
|
+
invalid_request: "invalid_request";
|
|
782
|
+
unauthorized: "unauthorized";
|
|
783
|
+
forbidden: "forbidden";
|
|
784
|
+
user_not_found: "user_not_found";
|
|
785
|
+
site_not_found: "site_not_found";
|
|
786
|
+
realtime_unavailable: "realtime_unavailable";
|
|
787
|
+
contract_violation: "contract_violation";
|
|
788
|
+
}>;
|
|
789
|
+
message: z.ZodString;
|
|
790
|
+
requestId: z.ZodString;
|
|
791
|
+
retryable: z.ZodBoolean;
|
|
792
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
793
|
+
}, z.core.$strict>;
|
|
794
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
795
|
+
readonly error: z.ZodObject<{
|
|
796
|
+
code: z.ZodEnum<{
|
|
797
|
+
internal_error: "internal_error";
|
|
798
|
+
rate_limited: "rate_limited";
|
|
799
|
+
invalid_request: "invalid_request";
|
|
800
|
+
unauthorized: "unauthorized";
|
|
801
|
+
forbidden: "forbidden";
|
|
802
|
+
user_not_found: "user_not_found";
|
|
803
|
+
site_not_found: "site_not_found";
|
|
804
|
+
realtime_unavailable: "realtime_unavailable";
|
|
805
|
+
contract_violation: "contract_violation";
|
|
806
|
+
}>;
|
|
807
|
+
message: z.ZodString;
|
|
808
|
+
requestId: z.ZodString;
|
|
809
|
+
retryable: z.ZodBoolean;
|
|
810
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
811
|
+
}, z.core.$loose>;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
analyticsRowsRequest: z.ZodObject<{
|
|
814
|
+
dimensions: z.ZodArray<z.ZodEnum<{
|
|
815
|
+
date: "date";
|
|
816
|
+
country: "country";
|
|
817
|
+
searchAppearance: "searchAppearance";
|
|
818
|
+
page: "page";
|
|
819
|
+
query: "query";
|
|
820
|
+
queryCanonical: "queryCanonical";
|
|
821
|
+
device: "device";
|
|
822
|
+
hour: "hour";
|
|
823
|
+
}>>;
|
|
824
|
+
metrics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
825
|
+
clicks: "clicks";
|
|
826
|
+
impressions: "impressions";
|
|
827
|
+
ctr: "ctr";
|
|
828
|
+
position: "position";
|
|
829
|
+
}>>>;
|
|
830
|
+
filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
|
|
831
|
+
prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
|
|
832
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
column: z.ZodEnum<{
|
|
834
|
+
date: "date";
|
|
835
|
+
clicks: "clicks";
|
|
836
|
+
impressions: "impressions";
|
|
837
|
+
ctr: "ctr";
|
|
838
|
+
position: "position";
|
|
839
|
+
}>;
|
|
840
|
+
dir: z.ZodEnum<{
|
|
841
|
+
asc: "asc";
|
|
842
|
+
desc: "desc";
|
|
843
|
+
}>;
|
|
844
|
+
}, z.core.$strict>>;
|
|
845
|
+
rowLimit: z.ZodOptional<z.ZodNumber>;
|
|
846
|
+
startRow: z.ZodOptional<z.ZodNumber>;
|
|
847
|
+
dataState: z.ZodOptional<z.ZodEnum<{
|
|
848
|
+
final: "final";
|
|
849
|
+
all: "all";
|
|
850
|
+
hourly_all: "hourly_all";
|
|
851
|
+
}>>;
|
|
852
|
+
aggregationType: z.ZodOptional<z.ZodEnum<{
|
|
853
|
+
auto: "auto";
|
|
854
|
+
byPage: "byPage";
|
|
855
|
+
byProperty: "byProperty";
|
|
856
|
+
byNewsShowcasePanel: "byNewsShowcasePanel";
|
|
857
|
+
}>>;
|
|
858
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
859
|
+
web: "web";
|
|
860
|
+
image: "image";
|
|
861
|
+
video: "video";
|
|
862
|
+
news: "news";
|
|
863
|
+
discover: "discover";
|
|
864
|
+
googleNews: "googleNews";
|
|
865
|
+
}>>;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
analyticsRowsResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
868
|
+
data: z.ZodObject<{
|
|
869
|
+
readonly rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
meta: z.ZodObject<{
|
|
872
|
+
readonly requestId: z.ZodString;
|
|
873
|
+
readonly surface: z.ZodLiteral<"analytics">;
|
|
874
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
875
|
+
readonly sourceName: z.ZodString;
|
|
876
|
+
readonly sourceKind: z.ZodEnum<{
|
|
877
|
+
row: "row";
|
|
878
|
+
sql: "sql";
|
|
879
|
+
}>;
|
|
880
|
+
readonly queryMs: z.ZodNumber;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
data: z.ZodObject<{
|
|
884
|
+
readonly rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
meta: z.ZodObject<{
|
|
887
|
+
readonly requestId: z.ZodString;
|
|
888
|
+
readonly surface: z.ZodLiteral<"analytics">;
|
|
889
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
890
|
+
readonly sourceName: z.ZodString;
|
|
891
|
+
readonly sourceKind: z.ZodEnum<{
|
|
892
|
+
row: "row";
|
|
893
|
+
sql: "sql";
|
|
894
|
+
}>;
|
|
895
|
+
readonly queryMs: z.ZodNumber;
|
|
896
|
+
}, z.core.$strip>;
|
|
897
|
+
}, z.core.$strip>>;
|
|
898
|
+
lifecycleResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
899
|
+
data: z.ZodObject<{
|
|
900
|
+
readonly userId: z.ZodString;
|
|
901
|
+
readonly partnerId: z.ZodNullable<z.ZodString>;
|
|
902
|
+
readonly currentTeamId: z.ZodNullable<z.ZodString>;
|
|
903
|
+
readonly account: z.ZodObject<{
|
|
904
|
+
readonly status: z.ZodEnum<{
|
|
905
|
+
disconnected: "disconnected";
|
|
906
|
+
oauth_received: "oauth_received";
|
|
907
|
+
scope_missing: "scope_missing";
|
|
908
|
+
refresh_missing: "refresh_missing";
|
|
909
|
+
db_provisioning: "db_provisioning";
|
|
910
|
+
ready: "ready";
|
|
911
|
+
reauth_required: "reauth_required";
|
|
912
|
+
}>;
|
|
913
|
+
readonly grantedScopes: z.ZodArray<z.ZodString>;
|
|
914
|
+
readonly missingScopes: z.ZodArray<z.ZodString>;
|
|
915
|
+
readonly nextAction: z.ZodEnum<{
|
|
916
|
+
connect_google: "connect_google";
|
|
917
|
+
reconnect_google: "reconnect_google";
|
|
918
|
+
wait_for_provisioning: "wait_for_provisioning";
|
|
919
|
+
none: "none";
|
|
920
|
+
}>;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
readonly sites: z.ZodArray<z.ZodObject<{
|
|
923
|
+
readonly siteId: z.ZodString;
|
|
924
|
+
readonly externalSiteId: z.ZodNullable<z.ZodString>;
|
|
925
|
+
readonly requestedUrl: z.ZodString;
|
|
926
|
+
readonly gscPropertyUrl: z.ZodNullable<z.ZodString>;
|
|
927
|
+
readonly permissionLevel: z.ZodNullable<z.ZodString>;
|
|
928
|
+
readonly property: z.ZodObject<{
|
|
929
|
+
readonly status: z.ZodEnum<{
|
|
930
|
+
no_local_site: "no_local_site";
|
|
931
|
+
no_gsc_property: "no_gsc_property";
|
|
932
|
+
unverified_property: "unverified_property";
|
|
933
|
+
verified_candidate: "verified_candidate";
|
|
934
|
+
registered: "registered";
|
|
935
|
+
linked: "linked";
|
|
936
|
+
}>;
|
|
937
|
+
readonly nextAction: z.ZodEnum<{
|
|
938
|
+
none: "none";
|
|
939
|
+
create_site: "create_site";
|
|
940
|
+
verify_gsc_property: "verify_gsc_property";
|
|
941
|
+
choose_property: "choose_property";
|
|
942
|
+
register_site: "register_site";
|
|
943
|
+
}>;
|
|
944
|
+
}, z.core.$strip>;
|
|
945
|
+
readonly analytics: z.ZodObject<{
|
|
946
|
+
readonly status: z.ZodEnum<{
|
|
947
|
+
ready: "ready";
|
|
948
|
+
not_registered: "not_registered";
|
|
949
|
+
queued: "queued";
|
|
950
|
+
preparing: "preparing";
|
|
951
|
+
syncing: "syncing";
|
|
952
|
+
queryable_live: "queryable_live";
|
|
953
|
+
queryable_partial: "queryable_partial";
|
|
954
|
+
failed: "failed";
|
|
955
|
+
}>;
|
|
956
|
+
readonly progress: z.ZodObject<{
|
|
957
|
+
readonly completed: z.ZodNumber;
|
|
958
|
+
readonly failed: z.ZodNumber;
|
|
959
|
+
readonly total: z.ZodNumber;
|
|
960
|
+
readonly percent: z.ZodNumber;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
readonly queryable: z.ZodBoolean;
|
|
963
|
+
readonly sourceMode: z.ZodEnum<{
|
|
964
|
+
none: "none";
|
|
965
|
+
live: "live";
|
|
966
|
+
d1: "d1";
|
|
967
|
+
r2: "r2";
|
|
968
|
+
mixed: "mixed";
|
|
969
|
+
}>;
|
|
970
|
+
readonly syncedRange: z.ZodObject<{
|
|
971
|
+
readonly oldest: z.ZodNullable<z.ZodISODate>;
|
|
972
|
+
readonly newest: z.ZodNullable<z.ZodISODate>;
|
|
973
|
+
}, z.core.$strip>;
|
|
974
|
+
readonly nextAction: z.ZodEnum<{
|
|
975
|
+
none: "none";
|
|
976
|
+
wait_for_sync: "wait_for_sync";
|
|
977
|
+
retry_sync: "retry_sync";
|
|
978
|
+
}>;
|
|
979
|
+
}, z.core.$strip>;
|
|
980
|
+
readonly sitemaps: z.ZodObject<{
|
|
981
|
+
readonly status: z.ZodEnum<{
|
|
982
|
+
ready: "ready";
|
|
983
|
+
syncing: "syncing";
|
|
984
|
+
failed: "failed";
|
|
985
|
+
unknown: "unknown";
|
|
986
|
+
discovering: "discovering";
|
|
987
|
+
none_found: "none_found";
|
|
988
|
+
auto_submitted: "auto_submitted";
|
|
989
|
+
}>;
|
|
990
|
+
readonly discoveredCount: z.ZodNumber;
|
|
991
|
+
readonly nextAction: z.ZodEnum<{
|
|
992
|
+
none: "none";
|
|
993
|
+
submit_sitemap: "submit_sitemap";
|
|
994
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
995
|
+
retry_sitemaps: "retry_sitemaps";
|
|
996
|
+
}>;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
readonly indexing: z.ZodObject<{
|
|
999
|
+
readonly status: z.ZodEnum<{
|
|
1000
|
+
ready: "ready";
|
|
1001
|
+
failed: "failed";
|
|
1002
|
+
discovering: "discovering";
|
|
1003
|
+
not_requested: "not_requested";
|
|
1004
|
+
missing_scope: "missing_scope";
|
|
1005
|
+
insufficient_permission: "insufficient_permission";
|
|
1006
|
+
waiting_for_sitemaps: "waiting_for_sitemaps";
|
|
1007
|
+
checking: "checking";
|
|
1008
|
+
budget_exhausted: "budget_exhausted";
|
|
1009
|
+
no_urls: "no_urls";
|
|
1010
|
+
}>;
|
|
1011
|
+
readonly eligible: z.ZodBoolean;
|
|
1012
|
+
readonly reason: z.ZodNullable<z.ZodString>;
|
|
1013
|
+
readonly progress: z.ZodObject<{
|
|
1014
|
+
readonly completed: z.ZodNumber;
|
|
1015
|
+
readonly failed: z.ZodNumber;
|
|
1016
|
+
readonly total: z.ZodNumber;
|
|
1017
|
+
readonly percent: z.ZodNumber;
|
|
1018
|
+
}, z.core.$strip>;
|
|
1019
|
+
readonly nextAction: z.ZodEnum<{
|
|
1020
|
+
reconnect_google: "reconnect_google";
|
|
1021
|
+
none: "none";
|
|
1022
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1023
|
+
fix_gsc_permission: "fix_gsc_permission";
|
|
1024
|
+
wait_for_indexing: "wait_for_indexing";
|
|
1025
|
+
retry_indexing: "retry_indexing";
|
|
1026
|
+
}>;
|
|
1027
|
+
}, z.core.$strip>;
|
|
1028
|
+
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
1029
|
+
readonly code: z.ZodEnum<{
|
|
1030
|
+
missing_refresh_token: "missing_refresh_token";
|
|
1031
|
+
missing_analytics_scope: "missing_analytics_scope";
|
|
1032
|
+
missing_indexing_scope: "missing_indexing_scope";
|
|
1033
|
+
token_refresh_failed: "token_refresh_failed";
|
|
1034
|
+
permission_lost: "permission_lost";
|
|
1035
|
+
insufficient_gsc_permission: "insufficient_gsc_permission";
|
|
1036
|
+
gsc_property_not_found: "gsc_property_not_found";
|
|
1037
|
+
gsc_property_unverified: "gsc_property_unverified";
|
|
1038
|
+
user_database_not_provisioned: "user_database_not_provisioned";
|
|
1039
|
+
sync_failed: "sync_failed";
|
|
1040
|
+
sitemap_sync_failed: "sitemap_sync_failed";
|
|
1041
|
+
indexing_failed: "indexing_failed";
|
|
1042
|
+
}>;
|
|
1043
|
+
readonly message: z.ZodString;
|
|
1044
|
+
readonly retryable: z.ZodBoolean;
|
|
1045
|
+
}, z.core.$strip>>;
|
|
1046
|
+
readonly updatedAt: z.ZodISODateTime;
|
|
1047
|
+
}, z.core.$strip>>;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
meta: z.ZodObject<{
|
|
1050
|
+
readonly requestId: z.ZodString;
|
|
1051
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
1052
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1053
|
+
}, z.core.$strip>;
|
|
1054
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1055
|
+
data: z.ZodObject<{
|
|
1056
|
+
readonly userId: z.ZodString;
|
|
1057
|
+
readonly partnerId: z.ZodNullable<z.ZodString>;
|
|
1058
|
+
readonly currentTeamId: z.ZodNullable<z.ZodString>;
|
|
1059
|
+
readonly account: z.ZodObject<{
|
|
1060
|
+
readonly status: z.ZodEnum<{
|
|
1061
|
+
disconnected: "disconnected";
|
|
1062
|
+
oauth_received: "oauth_received";
|
|
1063
|
+
scope_missing: "scope_missing";
|
|
1064
|
+
refresh_missing: "refresh_missing";
|
|
1065
|
+
db_provisioning: "db_provisioning";
|
|
1066
|
+
ready: "ready";
|
|
1067
|
+
reauth_required: "reauth_required";
|
|
1068
|
+
}>;
|
|
1069
|
+
readonly grantedScopes: z.ZodArray<z.ZodString>;
|
|
1070
|
+
readonly missingScopes: z.ZodArray<z.ZodString>;
|
|
1071
|
+
readonly nextAction: z.ZodEnum<{
|
|
1072
|
+
connect_google: "connect_google";
|
|
1073
|
+
reconnect_google: "reconnect_google";
|
|
1074
|
+
wait_for_provisioning: "wait_for_provisioning";
|
|
1075
|
+
none: "none";
|
|
1076
|
+
}>;
|
|
1077
|
+
}, z.core.$strip>;
|
|
1078
|
+
readonly sites: z.ZodArray<z.ZodObject<{
|
|
1079
|
+
readonly siteId: z.ZodString;
|
|
1080
|
+
readonly externalSiteId: z.ZodNullable<z.ZodString>;
|
|
1081
|
+
readonly requestedUrl: z.ZodString;
|
|
1082
|
+
readonly gscPropertyUrl: z.ZodNullable<z.ZodString>;
|
|
1083
|
+
readonly permissionLevel: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
readonly property: z.ZodObject<{
|
|
1085
|
+
readonly status: z.ZodEnum<{
|
|
1086
|
+
no_local_site: "no_local_site";
|
|
1087
|
+
no_gsc_property: "no_gsc_property";
|
|
1088
|
+
unverified_property: "unverified_property";
|
|
1089
|
+
verified_candidate: "verified_candidate";
|
|
1090
|
+
registered: "registered";
|
|
1091
|
+
linked: "linked";
|
|
1092
|
+
}>;
|
|
1093
|
+
readonly nextAction: z.ZodEnum<{
|
|
1094
|
+
none: "none";
|
|
1095
|
+
create_site: "create_site";
|
|
1096
|
+
verify_gsc_property: "verify_gsc_property";
|
|
1097
|
+
choose_property: "choose_property";
|
|
1098
|
+
register_site: "register_site";
|
|
1099
|
+
}>;
|
|
1100
|
+
}, z.core.$strip>;
|
|
1101
|
+
readonly analytics: z.ZodObject<{
|
|
1102
|
+
readonly status: z.ZodEnum<{
|
|
1103
|
+
ready: "ready";
|
|
1104
|
+
not_registered: "not_registered";
|
|
1105
|
+
queued: "queued";
|
|
1106
|
+
preparing: "preparing";
|
|
1107
|
+
syncing: "syncing";
|
|
1108
|
+
queryable_live: "queryable_live";
|
|
1109
|
+
queryable_partial: "queryable_partial";
|
|
1110
|
+
failed: "failed";
|
|
1111
|
+
}>;
|
|
1112
|
+
readonly progress: z.ZodObject<{
|
|
1113
|
+
readonly completed: z.ZodNumber;
|
|
1114
|
+
readonly failed: z.ZodNumber;
|
|
1115
|
+
readonly total: z.ZodNumber;
|
|
1116
|
+
readonly percent: z.ZodNumber;
|
|
1117
|
+
}, z.core.$strip>;
|
|
1118
|
+
readonly queryable: z.ZodBoolean;
|
|
1119
|
+
readonly sourceMode: z.ZodEnum<{
|
|
1120
|
+
none: "none";
|
|
1121
|
+
live: "live";
|
|
1122
|
+
d1: "d1";
|
|
1123
|
+
r2: "r2";
|
|
1124
|
+
mixed: "mixed";
|
|
1125
|
+
}>;
|
|
1126
|
+
readonly syncedRange: z.ZodObject<{
|
|
1127
|
+
readonly oldest: z.ZodNullable<z.ZodISODate>;
|
|
1128
|
+
readonly newest: z.ZodNullable<z.ZodISODate>;
|
|
1129
|
+
}, z.core.$strip>;
|
|
1130
|
+
readonly nextAction: z.ZodEnum<{
|
|
1131
|
+
none: "none";
|
|
1132
|
+
wait_for_sync: "wait_for_sync";
|
|
1133
|
+
retry_sync: "retry_sync";
|
|
1134
|
+
}>;
|
|
1135
|
+
}, z.core.$strip>;
|
|
1136
|
+
readonly sitemaps: z.ZodObject<{
|
|
1137
|
+
readonly status: z.ZodEnum<{
|
|
1138
|
+
ready: "ready";
|
|
1139
|
+
syncing: "syncing";
|
|
1140
|
+
failed: "failed";
|
|
1141
|
+
unknown: "unknown";
|
|
1142
|
+
discovering: "discovering";
|
|
1143
|
+
none_found: "none_found";
|
|
1144
|
+
auto_submitted: "auto_submitted";
|
|
1145
|
+
}>;
|
|
1146
|
+
readonly discoveredCount: z.ZodNumber;
|
|
1147
|
+
readonly nextAction: z.ZodEnum<{
|
|
1148
|
+
none: "none";
|
|
1149
|
+
submit_sitemap: "submit_sitemap";
|
|
1150
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1151
|
+
retry_sitemaps: "retry_sitemaps";
|
|
1152
|
+
}>;
|
|
1153
|
+
}, z.core.$strip>;
|
|
1154
|
+
readonly indexing: z.ZodObject<{
|
|
1155
|
+
readonly status: z.ZodEnum<{
|
|
1156
|
+
ready: "ready";
|
|
1157
|
+
failed: "failed";
|
|
1158
|
+
discovering: "discovering";
|
|
1159
|
+
not_requested: "not_requested";
|
|
1160
|
+
missing_scope: "missing_scope";
|
|
1161
|
+
insufficient_permission: "insufficient_permission";
|
|
1162
|
+
waiting_for_sitemaps: "waiting_for_sitemaps";
|
|
1163
|
+
checking: "checking";
|
|
1164
|
+
budget_exhausted: "budget_exhausted";
|
|
1165
|
+
no_urls: "no_urls";
|
|
1166
|
+
}>;
|
|
1167
|
+
readonly eligible: z.ZodBoolean;
|
|
1168
|
+
readonly reason: z.ZodNullable<z.ZodString>;
|
|
1169
|
+
readonly progress: z.ZodObject<{
|
|
1170
|
+
readonly completed: z.ZodNumber;
|
|
1171
|
+
readonly failed: z.ZodNumber;
|
|
1172
|
+
readonly total: z.ZodNumber;
|
|
1173
|
+
readonly percent: z.ZodNumber;
|
|
1174
|
+
}, z.core.$strip>;
|
|
1175
|
+
readonly nextAction: z.ZodEnum<{
|
|
1176
|
+
reconnect_google: "reconnect_google";
|
|
1177
|
+
none: "none";
|
|
1178
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1179
|
+
fix_gsc_permission: "fix_gsc_permission";
|
|
1180
|
+
wait_for_indexing: "wait_for_indexing";
|
|
1181
|
+
retry_indexing: "retry_indexing";
|
|
1182
|
+
}>;
|
|
1183
|
+
}, z.core.$strip>;
|
|
1184
|
+
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
1185
|
+
readonly code: z.ZodEnum<{
|
|
1186
|
+
missing_refresh_token: "missing_refresh_token";
|
|
1187
|
+
missing_analytics_scope: "missing_analytics_scope";
|
|
1188
|
+
missing_indexing_scope: "missing_indexing_scope";
|
|
1189
|
+
token_refresh_failed: "token_refresh_failed";
|
|
1190
|
+
permission_lost: "permission_lost";
|
|
1191
|
+
insufficient_gsc_permission: "insufficient_gsc_permission";
|
|
1192
|
+
gsc_property_not_found: "gsc_property_not_found";
|
|
1193
|
+
gsc_property_unverified: "gsc_property_unverified";
|
|
1194
|
+
user_database_not_provisioned: "user_database_not_provisioned";
|
|
1195
|
+
sync_failed: "sync_failed";
|
|
1196
|
+
sitemap_sync_failed: "sitemap_sync_failed";
|
|
1197
|
+
indexing_failed: "indexing_failed";
|
|
1198
|
+
}>;
|
|
1199
|
+
readonly message: z.ZodString;
|
|
1200
|
+
readonly retryable: z.ZodBoolean;
|
|
1201
|
+
}, z.core.$strip>>;
|
|
1202
|
+
readonly updatedAt: z.ZodISODateTime;
|
|
1203
|
+
}, z.core.$strip>>;
|
|
1204
|
+
}, z.core.$strip>;
|
|
1205
|
+
meta: z.ZodObject<{
|
|
1206
|
+
readonly requestId: z.ZodString;
|
|
1207
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
1208
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1209
|
+
}, z.core.$strip>;
|
|
1210
|
+
}, z.core.$strip>>;
|
|
1211
|
+
streamHeadResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
1212
|
+
data: z.ZodObject<{
|
|
1213
|
+
readonly head: z.ZodObject<{
|
|
1214
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1215
|
+
readonly sequence: z.ZodString;
|
|
1216
|
+
}, z.core.$strip>;
|
|
1217
|
+
}, z.core.$strip>;
|
|
1218
|
+
meta: z.ZodObject<{
|
|
1219
|
+
readonly requestId: z.ZodString;
|
|
1220
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1221
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1222
|
+
}, z.core.$strip>;
|
|
1223
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1224
|
+
data: z.ZodObject<{
|
|
1225
|
+
readonly head: z.ZodObject<{
|
|
1226
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1227
|
+
readonly sequence: z.ZodString;
|
|
1228
|
+
}, z.core.$strip>;
|
|
1229
|
+
}, z.core.$strip>;
|
|
1230
|
+
meta: z.ZodObject<{
|
|
1231
|
+
readonly requestId: z.ZodString;
|
|
1232
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1233
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1234
|
+
}, z.core.$strip>;
|
|
1235
|
+
}, z.core.$strip>>;
|
|
1236
|
+
ticketResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
1237
|
+
data: z.ZodObject<{
|
|
1238
|
+
socketUrl: z.ZodURL;
|
|
1239
|
+
protocol: z.ZodLiteral<"gscdump.v1">;
|
|
1240
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
1241
|
+
ticket: z.ZodString;
|
|
1242
|
+
expiresAt: z.ZodISODateTime;
|
|
1243
|
+
head: z.ZodObject<{
|
|
1244
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1245
|
+
readonly sequence: z.ZodString;
|
|
1246
|
+
}, z.core.$strip>;
|
|
1247
|
+
maxConnectionSeconds: z.ZodLiteral<900>;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1249
|
+
meta: z.ZodObject<{
|
|
1250
|
+
readonly requestId: z.ZodString;
|
|
1251
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1252
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1253
|
+
}, z.core.$strip>;
|
|
1254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1255
|
+
data: z.ZodObject<{
|
|
1256
|
+
readonly head: z.ZodObject<{
|
|
1257
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1258
|
+
readonly sequence: z.ZodString;
|
|
1259
|
+
}, z.core.$strip>;
|
|
1260
|
+
readonly socketUrl: z.ZodURL;
|
|
1261
|
+
readonly protocol: z.ZodLiteral<"gscdump.v1">;
|
|
1262
|
+
readonly protocolVersion: z.ZodLiteral<1>;
|
|
1263
|
+
readonly ticket: z.ZodString;
|
|
1264
|
+
readonly expiresAt: z.ZodISODateTime;
|
|
1265
|
+
readonly maxConnectionSeconds: z.ZodLiteral<900>;
|
|
1266
|
+
}, z.core.$strip>;
|
|
1267
|
+
meta: z.ZodObject<{
|
|
1268
|
+
readonly requestId: z.ZodString;
|
|
1269
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1270
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1271
|
+
}, z.core.$strip>;
|
|
1272
|
+
}, z.core.$strip>>;
|
|
1273
|
+
};
|
|
1274
|
+
surfaces: {
|
|
1275
|
+
partner: HttpV1Surface<{
|
|
1276
|
+
readonly getUserLifecycle: {
|
|
1277
|
+
readonly id: "partner.users.lifecycle.get";
|
|
1278
|
+
readonly method: "GET";
|
|
1279
|
+
readonly path: "/users/{userId}/lifecycle";
|
|
1280
|
+
readonly visibility: "public";
|
|
1281
|
+
readonly semantics: {
|
|
1282
|
+
readonly kind: "query";
|
|
1283
|
+
readonly sideEffects: "none";
|
|
1284
|
+
readonly idempotent: true;
|
|
1285
|
+
readonly retry: "idempotent";
|
|
1286
|
+
readonly readConsistency: "primary";
|
|
1287
|
+
};
|
|
1288
|
+
readonly auth: {
|
|
1289
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
1290
|
+
readonly scopes: readonly ["users:read"];
|
|
1291
|
+
readonly ownership: readonly [{
|
|
1292
|
+
readonly credential: "user_key";
|
|
1293
|
+
readonly rule: "self";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly credential: "partner_key";
|
|
1296
|
+
readonly rule: "linked_user";
|
|
1297
|
+
}];
|
|
1298
|
+
};
|
|
1299
|
+
readonly request: {
|
|
1300
|
+
readonly params: z.ZodObject<{
|
|
1301
|
+
userId: z.ZodString;
|
|
1302
|
+
}, z.core.$strict>;
|
|
1303
|
+
readonly query: null;
|
|
1304
|
+
readonly headers: z.ZodObject<{
|
|
1305
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
1306
|
+
}, z.core.$strict>;
|
|
1307
|
+
readonly body: null;
|
|
1308
|
+
};
|
|
1309
|
+
readonly responses: {
|
|
1310
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
1311
|
+
data: z.ZodObject<{
|
|
1312
|
+
readonly userId: z.ZodString;
|
|
1313
|
+
readonly partnerId: z.ZodNullable<z.ZodString>;
|
|
1314
|
+
readonly currentTeamId: z.ZodNullable<z.ZodString>;
|
|
1315
|
+
readonly account: z.ZodObject<{
|
|
1316
|
+
readonly status: z.ZodEnum<{
|
|
1317
|
+
disconnected: "disconnected";
|
|
1318
|
+
oauth_received: "oauth_received";
|
|
1319
|
+
scope_missing: "scope_missing";
|
|
1320
|
+
refresh_missing: "refresh_missing";
|
|
1321
|
+
db_provisioning: "db_provisioning";
|
|
1322
|
+
ready: "ready";
|
|
1323
|
+
reauth_required: "reauth_required";
|
|
1324
|
+
}>;
|
|
1325
|
+
readonly grantedScopes: z.ZodArray<z.ZodString>;
|
|
1326
|
+
readonly missingScopes: z.ZodArray<z.ZodString>;
|
|
1327
|
+
readonly nextAction: z.ZodEnum<{
|
|
1328
|
+
connect_google: "connect_google";
|
|
1329
|
+
reconnect_google: "reconnect_google";
|
|
1330
|
+
wait_for_provisioning: "wait_for_provisioning";
|
|
1331
|
+
none: "none";
|
|
1332
|
+
}>;
|
|
1333
|
+
}, z.core.$strip>;
|
|
1334
|
+
readonly sites: z.ZodArray<z.ZodObject<{
|
|
1335
|
+
readonly siteId: z.ZodString;
|
|
1336
|
+
readonly externalSiteId: z.ZodNullable<z.ZodString>;
|
|
1337
|
+
readonly requestedUrl: z.ZodString;
|
|
1338
|
+
readonly gscPropertyUrl: z.ZodNullable<z.ZodString>;
|
|
1339
|
+
readonly permissionLevel: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
readonly property: z.ZodObject<{
|
|
1341
|
+
readonly status: z.ZodEnum<{
|
|
1342
|
+
no_local_site: "no_local_site";
|
|
1343
|
+
no_gsc_property: "no_gsc_property";
|
|
1344
|
+
unverified_property: "unverified_property";
|
|
1345
|
+
verified_candidate: "verified_candidate";
|
|
1346
|
+
registered: "registered";
|
|
1347
|
+
linked: "linked";
|
|
1348
|
+
}>;
|
|
1349
|
+
readonly nextAction: z.ZodEnum<{
|
|
1350
|
+
none: "none";
|
|
1351
|
+
create_site: "create_site";
|
|
1352
|
+
verify_gsc_property: "verify_gsc_property";
|
|
1353
|
+
choose_property: "choose_property";
|
|
1354
|
+
register_site: "register_site";
|
|
1355
|
+
}>;
|
|
1356
|
+
}, z.core.$strip>;
|
|
1357
|
+
readonly analytics: z.ZodObject<{
|
|
1358
|
+
readonly status: z.ZodEnum<{
|
|
1359
|
+
ready: "ready";
|
|
1360
|
+
not_registered: "not_registered";
|
|
1361
|
+
queued: "queued";
|
|
1362
|
+
preparing: "preparing";
|
|
1363
|
+
syncing: "syncing";
|
|
1364
|
+
queryable_live: "queryable_live";
|
|
1365
|
+
queryable_partial: "queryable_partial";
|
|
1366
|
+
failed: "failed";
|
|
1367
|
+
}>;
|
|
1368
|
+
readonly progress: z.ZodObject<{
|
|
1369
|
+
readonly completed: z.ZodNumber;
|
|
1370
|
+
readonly failed: z.ZodNumber;
|
|
1371
|
+
readonly total: z.ZodNumber;
|
|
1372
|
+
readonly percent: z.ZodNumber;
|
|
1373
|
+
}, z.core.$strip>;
|
|
1374
|
+
readonly queryable: z.ZodBoolean;
|
|
1375
|
+
readonly sourceMode: z.ZodEnum<{
|
|
1376
|
+
none: "none";
|
|
1377
|
+
live: "live";
|
|
1378
|
+
d1: "d1";
|
|
1379
|
+
r2: "r2";
|
|
1380
|
+
mixed: "mixed";
|
|
1381
|
+
}>;
|
|
1382
|
+
readonly syncedRange: z.ZodObject<{
|
|
1383
|
+
readonly oldest: z.ZodNullable<z.ZodISODate>;
|
|
1384
|
+
readonly newest: z.ZodNullable<z.ZodISODate>;
|
|
1385
|
+
}, z.core.$strip>;
|
|
1386
|
+
readonly nextAction: z.ZodEnum<{
|
|
1387
|
+
none: "none";
|
|
1388
|
+
wait_for_sync: "wait_for_sync";
|
|
1389
|
+
retry_sync: "retry_sync";
|
|
1390
|
+
}>;
|
|
1391
|
+
}, z.core.$strip>;
|
|
1392
|
+
readonly sitemaps: z.ZodObject<{
|
|
1393
|
+
readonly status: z.ZodEnum<{
|
|
1394
|
+
ready: "ready";
|
|
1395
|
+
syncing: "syncing";
|
|
1396
|
+
failed: "failed";
|
|
1397
|
+
unknown: "unknown";
|
|
1398
|
+
discovering: "discovering";
|
|
1399
|
+
none_found: "none_found";
|
|
1400
|
+
auto_submitted: "auto_submitted";
|
|
1401
|
+
}>;
|
|
1402
|
+
readonly discoveredCount: z.ZodNumber;
|
|
1403
|
+
readonly nextAction: z.ZodEnum<{
|
|
1404
|
+
none: "none";
|
|
1405
|
+
submit_sitemap: "submit_sitemap";
|
|
1406
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1407
|
+
retry_sitemaps: "retry_sitemaps";
|
|
1408
|
+
}>;
|
|
1409
|
+
}, z.core.$strip>;
|
|
1410
|
+
readonly indexing: z.ZodObject<{
|
|
1411
|
+
readonly status: z.ZodEnum<{
|
|
1412
|
+
ready: "ready";
|
|
1413
|
+
failed: "failed";
|
|
1414
|
+
discovering: "discovering";
|
|
1415
|
+
not_requested: "not_requested";
|
|
1416
|
+
missing_scope: "missing_scope";
|
|
1417
|
+
insufficient_permission: "insufficient_permission";
|
|
1418
|
+
waiting_for_sitemaps: "waiting_for_sitemaps";
|
|
1419
|
+
checking: "checking";
|
|
1420
|
+
budget_exhausted: "budget_exhausted";
|
|
1421
|
+
no_urls: "no_urls";
|
|
1422
|
+
}>;
|
|
1423
|
+
readonly eligible: z.ZodBoolean;
|
|
1424
|
+
readonly reason: z.ZodNullable<z.ZodString>;
|
|
1425
|
+
readonly progress: z.ZodObject<{
|
|
1426
|
+
readonly completed: z.ZodNumber;
|
|
1427
|
+
readonly failed: z.ZodNumber;
|
|
1428
|
+
readonly total: z.ZodNumber;
|
|
1429
|
+
readonly percent: z.ZodNumber;
|
|
1430
|
+
}, z.core.$strip>;
|
|
1431
|
+
readonly nextAction: z.ZodEnum<{
|
|
1432
|
+
reconnect_google: "reconnect_google";
|
|
1433
|
+
none: "none";
|
|
1434
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1435
|
+
fix_gsc_permission: "fix_gsc_permission";
|
|
1436
|
+
wait_for_indexing: "wait_for_indexing";
|
|
1437
|
+
retry_indexing: "retry_indexing";
|
|
1438
|
+
}>;
|
|
1439
|
+
}, z.core.$strip>;
|
|
1440
|
+
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
1441
|
+
readonly code: z.ZodEnum<{
|
|
1442
|
+
missing_refresh_token: "missing_refresh_token";
|
|
1443
|
+
missing_analytics_scope: "missing_analytics_scope";
|
|
1444
|
+
missing_indexing_scope: "missing_indexing_scope";
|
|
1445
|
+
token_refresh_failed: "token_refresh_failed";
|
|
1446
|
+
permission_lost: "permission_lost";
|
|
1447
|
+
insufficient_gsc_permission: "insufficient_gsc_permission";
|
|
1448
|
+
gsc_property_not_found: "gsc_property_not_found";
|
|
1449
|
+
gsc_property_unverified: "gsc_property_unverified";
|
|
1450
|
+
user_database_not_provisioned: "user_database_not_provisioned";
|
|
1451
|
+
sync_failed: "sync_failed";
|
|
1452
|
+
sitemap_sync_failed: "sitemap_sync_failed";
|
|
1453
|
+
indexing_failed: "indexing_failed";
|
|
1454
|
+
}>;
|
|
1455
|
+
readonly message: z.ZodString;
|
|
1456
|
+
readonly retryable: z.ZodBoolean;
|
|
1457
|
+
}, z.core.$strip>>;
|
|
1458
|
+
readonly updatedAt: z.ZodISODateTime;
|
|
1459
|
+
}, z.core.$strip>>;
|
|
1460
|
+
}, z.core.$strip>;
|
|
1461
|
+
meta: z.ZodObject<{
|
|
1462
|
+
readonly requestId: z.ZodString;
|
|
1463
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
1464
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1465
|
+
}, z.core.$strip>;
|
|
1466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1467
|
+
data: z.ZodObject<{
|
|
1468
|
+
readonly userId: z.ZodString;
|
|
1469
|
+
readonly partnerId: z.ZodNullable<z.ZodString>;
|
|
1470
|
+
readonly currentTeamId: z.ZodNullable<z.ZodString>;
|
|
1471
|
+
readonly account: z.ZodObject<{
|
|
1472
|
+
readonly status: z.ZodEnum<{
|
|
1473
|
+
disconnected: "disconnected";
|
|
1474
|
+
oauth_received: "oauth_received";
|
|
1475
|
+
scope_missing: "scope_missing";
|
|
1476
|
+
refresh_missing: "refresh_missing";
|
|
1477
|
+
db_provisioning: "db_provisioning";
|
|
1478
|
+
ready: "ready";
|
|
1479
|
+
reauth_required: "reauth_required";
|
|
1480
|
+
}>;
|
|
1481
|
+
readonly grantedScopes: z.ZodArray<z.ZodString>;
|
|
1482
|
+
readonly missingScopes: z.ZodArray<z.ZodString>;
|
|
1483
|
+
readonly nextAction: z.ZodEnum<{
|
|
1484
|
+
connect_google: "connect_google";
|
|
1485
|
+
reconnect_google: "reconnect_google";
|
|
1486
|
+
wait_for_provisioning: "wait_for_provisioning";
|
|
1487
|
+
none: "none";
|
|
1488
|
+
}>;
|
|
1489
|
+
}, z.core.$strip>;
|
|
1490
|
+
readonly sites: z.ZodArray<z.ZodObject<{
|
|
1491
|
+
readonly siteId: z.ZodString;
|
|
1492
|
+
readonly externalSiteId: z.ZodNullable<z.ZodString>;
|
|
1493
|
+
readonly requestedUrl: z.ZodString;
|
|
1494
|
+
readonly gscPropertyUrl: z.ZodNullable<z.ZodString>;
|
|
1495
|
+
readonly permissionLevel: z.ZodNullable<z.ZodString>;
|
|
1496
|
+
readonly property: z.ZodObject<{
|
|
1497
|
+
readonly status: z.ZodEnum<{
|
|
1498
|
+
no_local_site: "no_local_site";
|
|
1499
|
+
no_gsc_property: "no_gsc_property";
|
|
1500
|
+
unverified_property: "unverified_property";
|
|
1501
|
+
verified_candidate: "verified_candidate";
|
|
1502
|
+
registered: "registered";
|
|
1503
|
+
linked: "linked";
|
|
1504
|
+
}>;
|
|
1505
|
+
readonly nextAction: z.ZodEnum<{
|
|
1506
|
+
none: "none";
|
|
1507
|
+
create_site: "create_site";
|
|
1508
|
+
verify_gsc_property: "verify_gsc_property";
|
|
1509
|
+
choose_property: "choose_property";
|
|
1510
|
+
register_site: "register_site";
|
|
1511
|
+
}>;
|
|
1512
|
+
}, z.core.$strip>;
|
|
1513
|
+
readonly analytics: z.ZodObject<{
|
|
1514
|
+
readonly status: z.ZodEnum<{
|
|
1515
|
+
ready: "ready";
|
|
1516
|
+
not_registered: "not_registered";
|
|
1517
|
+
queued: "queued";
|
|
1518
|
+
preparing: "preparing";
|
|
1519
|
+
syncing: "syncing";
|
|
1520
|
+
queryable_live: "queryable_live";
|
|
1521
|
+
queryable_partial: "queryable_partial";
|
|
1522
|
+
failed: "failed";
|
|
1523
|
+
}>;
|
|
1524
|
+
readonly progress: z.ZodObject<{
|
|
1525
|
+
readonly completed: z.ZodNumber;
|
|
1526
|
+
readonly failed: z.ZodNumber;
|
|
1527
|
+
readonly total: z.ZodNumber;
|
|
1528
|
+
readonly percent: z.ZodNumber;
|
|
1529
|
+
}, z.core.$strip>;
|
|
1530
|
+
readonly queryable: z.ZodBoolean;
|
|
1531
|
+
readonly sourceMode: z.ZodEnum<{
|
|
1532
|
+
none: "none";
|
|
1533
|
+
live: "live";
|
|
1534
|
+
d1: "d1";
|
|
1535
|
+
r2: "r2";
|
|
1536
|
+
mixed: "mixed";
|
|
1537
|
+
}>;
|
|
1538
|
+
readonly syncedRange: z.ZodObject<{
|
|
1539
|
+
readonly oldest: z.ZodNullable<z.ZodISODate>;
|
|
1540
|
+
readonly newest: z.ZodNullable<z.ZodISODate>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
1542
|
+
readonly nextAction: z.ZodEnum<{
|
|
1543
|
+
none: "none";
|
|
1544
|
+
wait_for_sync: "wait_for_sync";
|
|
1545
|
+
retry_sync: "retry_sync";
|
|
1546
|
+
}>;
|
|
1547
|
+
}, z.core.$strip>;
|
|
1548
|
+
readonly sitemaps: z.ZodObject<{
|
|
1549
|
+
readonly status: z.ZodEnum<{
|
|
1550
|
+
ready: "ready";
|
|
1551
|
+
syncing: "syncing";
|
|
1552
|
+
failed: "failed";
|
|
1553
|
+
unknown: "unknown";
|
|
1554
|
+
discovering: "discovering";
|
|
1555
|
+
none_found: "none_found";
|
|
1556
|
+
auto_submitted: "auto_submitted";
|
|
1557
|
+
}>;
|
|
1558
|
+
readonly discoveredCount: z.ZodNumber;
|
|
1559
|
+
readonly nextAction: z.ZodEnum<{
|
|
1560
|
+
none: "none";
|
|
1561
|
+
submit_sitemap: "submit_sitemap";
|
|
1562
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1563
|
+
retry_sitemaps: "retry_sitemaps";
|
|
1564
|
+
}>;
|
|
1565
|
+
}, z.core.$strip>;
|
|
1566
|
+
readonly indexing: z.ZodObject<{
|
|
1567
|
+
readonly status: z.ZodEnum<{
|
|
1568
|
+
ready: "ready";
|
|
1569
|
+
failed: "failed";
|
|
1570
|
+
discovering: "discovering";
|
|
1571
|
+
not_requested: "not_requested";
|
|
1572
|
+
missing_scope: "missing_scope";
|
|
1573
|
+
insufficient_permission: "insufficient_permission";
|
|
1574
|
+
waiting_for_sitemaps: "waiting_for_sitemaps";
|
|
1575
|
+
checking: "checking";
|
|
1576
|
+
budget_exhausted: "budget_exhausted";
|
|
1577
|
+
no_urls: "no_urls";
|
|
1578
|
+
}>;
|
|
1579
|
+
readonly eligible: z.ZodBoolean;
|
|
1580
|
+
readonly reason: z.ZodNullable<z.ZodString>;
|
|
1581
|
+
readonly progress: z.ZodObject<{
|
|
1582
|
+
readonly completed: z.ZodNumber;
|
|
1583
|
+
readonly failed: z.ZodNumber;
|
|
1584
|
+
readonly total: z.ZodNumber;
|
|
1585
|
+
readonly percent: z.ZodNumber;
|
|
1586
|
+
}, z.core.$strip>;
|
|
1587
|
+
readonly nextAction: z.ZodEnum<{
|
|
1588
|
+
reconnect_google: "reconnect_google";
|
|
1589
|
+
none: "none";
|
|
1590
|
+
wait_for_sitemaps: "wait_for_sitemaps";
|
|
1591
|
+
fix_gsc_permission: "fix_gsc_permission";
|
|
1592
|
+
wait_for_indexing: "wait_for_indexing";
|
|
1593
|
+
retry_indexing: "retry_indexing";
|
|
1594
|
+
}>;
|
|
1595
|
+
}, z.core.$strip>;
|
|
1596
|
+
readonly latestError: z.ZodNullable<z.ZodObject<{
|
|
1597
|
+
readonly code: z.ZodEnum<{
|
|
1598
|
+
missing_refresh_token: "missing_refresh_token";
|
|
1599
|
+
missing_analytics_scope: "missing_analytics_scope";
|
|
1600
|
+
missing_indexing_scope: "missing_indexing_scope";
|
|
1601
|
+
token_refresh_failed: "token_refresh_failed";
|
|
1602
|
+
permission_lost: "permission_lost";
|
|
1603
|
+
insufficient_gsc_permission: "insufficient_gsc_permission";
|
|
1604
|
+
gsc_property_not_found: "gsc_property_not_found";
|
|
1605
|
+
gsc_property_unverified: "gsc_property_unverified";
|
|
1606
|
+
user_database_not_provisioned: "user_database_not_provisioned";
|
|
1607
|
+
sync_failed: "sync_failed";
|
|
1608
|
+
sitemap_sync_failed: "sitemap_sync_failed";
|
|
1609
|
+
indexing_failed: "indexing_failed";
|
|
1610
|
+
}>;
|
|
1611
|
+
readonly message: z.ZodString;
|
|
1612
|
+
readonly retryable: z.ZodBoolean;
|
|
1613
|
+
}, z.core.$strip>>;
|
|
1614
|
+
readonly updatedAt: z.ZodISODateTime;
|
|
1615
|
+
}, z.core.$strip>>;
|
|
1616
|
+
}, z.core.$strip>;
|
|
1617
|
+
meta: z.ZodObject<{
|
|
1618
|
+
readonly requestId: z.ZodString;
|
|
1619
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
1620
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1621
|
+
}, z.core.$strip>;
|
|
1622
|
+
}, z.core.$strip>>;
|
|
1623
|
+
};
|
|
1624
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"];
|
|
1625
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
1626
|
+
readonly error: z.ZodObject<{
|
|
1627
|
+
code: z.ZodEnum<{
|
|
1628
|
+
internal_error: "internal_error";
|
|
1629
|
+
rate_limited: "rate_limited";
|
|
1630
|
+
invalid_request: "invalid_request";
|
|
1631
|
+
unauthorized: "unauthorized";
|
|
1632
|
+
forbidden: "forbidden";
|
|
1633
|
+
user_not_found: "user_not_found";
|
|
1634
|
+
contract_violation: "contract_violation";
|
|
1635
|
+
}>;
|
|
1636
|
+
message: z.ZodString;
|
|
1637
|
+
requestId: z.ZodString;
|
|
1638
|
+
retryable: z.ZodBoolean;
|
|
1639
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1640
|
+
}, z.core.$strict>;
|
|
1641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1642
|
+
readonly error: z.ZodObject<{
|
|
1643
|
+
code: z.ZodEnum<{
|
|
1644
|
+
internal_error: "internal_error";
|
|
1645
|
+
rate_limited: "rate_limited";
|
|
1646
|
+
invalid_request: "invalid_request";
|
|
1647
|
+
unauthorized: "unauthorized";
|
|
1648
|
+
forbidden: "forbidden";
|
|
1649
|
+
user_not_found: "user_not_found";
|
|
1650
|
+
contract_violation: "contract_violation";
|
|
1651
|
+
}>;
|
|
1652
|
+
message: z.ZodString;
|
|
1653
|
+
requestId: z.ZodString;
|
|
1654
|
+
retryable: z.ZodBoolean;
|
|
1655
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1656
|
+
}, z.core.$loose>;
|
|
1657
|
+
}, z.core.$strip>>;
|
|
1658
|
+
readonly resources: {
|
|
1659
|
+
readonly reads: readonly [{
|
|
1660
|
+
readonly type: "partner.user";
|
|
1661
|
+
readonly idFrom: "params.userId";
|
|
1662
|
+
}, {
|
|
1663
|
+
readonly type: "user.sites";
|
|
1664
|
+
readonly idFrom: "params.userId";
|
|
1665
|
+
}];
|
|
1666
|
+
readonly changes: readonly [];
|
|
1667
|
+
};
|
|
1668
|
+
readonly lifecycle: {
|
|
1669
|
+
readonly introduced: "1.0.0";
|
|
1670
|
+
};
|
|
1671
|
+
readonly docs: {
|
|
1672
|
+
readonly summary: "Get user lifecycle";
|
|
1673
|
+
readonly description: "Returns the authoritative lifecycle state for one visible user and their sites.";
|
|
1674
|
+
readonly tags: readonly ["Users"];
|
|
1675
|
+
readonly examples: {
|
|
1676
|
+
readonly request: {
|
|
1677
|
+
readonly params: {
|
|
1678
|
+
readonly userId: "u_01";
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
1681
|
+
readonly response: {
|
|
1682
|
+
readonly data: {
|
|
1683
|
+
readonly userId: "u_01";
|
|
1684
|
+
readonly partnerId: "p_01";
|
|
1685
|
+
readonly currentTeamId: null;
|
|
1686
|
+
readonly account: {
|
|
1687
|
+
readonly status: "ready";
|
|
1688
|
+
readonly grantedScopes: readonly ["https://www.googleapis.com/auth/webmasters.readonly"];
|
|
1689
|
+
readonly missingScopes: readonly [];
|
|
1690
|
+
readonly nextAction: "none";
|
|
1691
|
+
};
|
|
1692
|
+
readonly sites: readonly [];
|
|
1693
|
+
};
|
|
1694
|
+
readonly meta: {
|
|
1695
|
+
readonly requestId: "req_01";
|
|
1696
|
+
readonly surface: "partner";
|
|
1697
|
+
readonly version: "1.0";
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
}>;
|
|
1704
|
+
analytics: HttpV1Surface<{
|
|
1705
|
+
readonly queryRows: {
|
|
1706
|
+
readonly id: "analytics.rows.query";
|
|
1707
|
+
readonly method: "POST";
|
|
1708
|
+
readonly path: "/sites/{siteId}/rows";
|
|
1709
|
+
readonly visibility: "public";
|
|
1710
|
+
readonly semantics: {
|
|
1711
|
+
readonly kind: "query";
|
|
1712
|
+
readonly sideEffects: "none";
|
|
1713
|
+
readonly idempotent: true;
|
|
1714
|
+
readonly retry: "idempotent";
|
|
1715
|
+
readonly readConsistency: "primary";
|
|
1716
|
+
};
|
|
1717
|
+
readonly auth: {
|
|
1718
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
1719
|
+
readonly scopes: readonly ["analytics:execute"];
|
|
1720
|
+
readonly ownership: readonly [{
|
|
1721
|
+
readonly credential: "user_key";
|
|
1722
|
+
readonly rule: "authorized_site";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly credential: "partner_key";
|
|
1725
|
+
readonly rule: "authorized_site";
|
|
1726
|
+
}];
|
|
1727
|
+
};
|
|
1728
|
+
readonly request: {
|
|
1729
|
+
readonly params: z.ZodObject<{
|
|
1730
|
+
siteId: z.ZodString;
|
|
1731
|
+
}, z.core.$strict>;
|
|
1732
|
+
readonly query: null;
|
|
1733
|
+
readonly headers: z.ZodObject<{
|
|
1734
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
1735
|
+
}, z.core.$strict>;
|
|
1736
|
+
readonly body: z.ZodObject<{
|
|
1737
|
+
dimensions: z.ZodArray<z.ZodEnum<{
|
|
1738
|
+
date: "date";
|
|
1739
|
+
country: "country";
|
|
1740
|
+
searchAppearance: "searchAppearance";
|
|
1741
|
+
page: "page";
|
|
1742
|
+
query: "query";
|
|
1743
|
+
queryCanonical: "queryCanonical";
|
|
1744
|
+
device: "device";
|
|
1745
|
+
hour: "hour";
|
|
1746
|
+
}>>;
|
|
1747
|
+
metrics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1748
|
+
clicks: "clicks";
|
|
1749
|
+
impressions: "impressions";
|
|
1750
|
+
ctr: "ctr";
|
|
1751
|
+
position: "position";
|
|
1752
|
+
}>>>;
|
|
1753
|
+
filter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
|
|
1754
|
+
prefilter: z.ZodOptional<z.ZodType<NormalizedFilterV1, unknown, z.core.$ZodTypeInternals<NormalizedFilterV1, unknown>>>;
|
|
1755
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
1756
|
+
column: z.ZodEnum<{
|
|
1757
|
+
date: "date";
|
|
1758
|
+
clicks: "clicks";
|
|
1759
|
+
impressions: "impressions";
|
|
1760
|
+
ctr: "ctr";
|
|
1761
|
+
position: "position";
|
|
1762
|
+
}>;
|
|
1763
|
+
dir: z.ZodEnum<{
|
|
1764
|
+
asc: "asc";
|
|
1765
|
+
desc: "desc";
|
|
1766
|
+
}>;
|
|
1767
|
+
}, z.core.$strict>>;
|
|
1768
|
+
rowLimit: z.ZodOptional<z.ZodNumber>;
|
|
1769
|
+
startRow: z.ZodOptional<z.ZodNumber>;
|
|
1770
|
+
dataState: z.ZodOptional<z.ZodEnum<{
|
|
1771
|
+
final: "final";
|
|
1772
|
+
all: "all";
|
|
1773
|
+
hourly_all: "hourly_all";
|
|
1774
|
+
}>>;
|
|
1775
|
+
aggregationType: z.ZodOptional<z.ZodEnum<{
|
|
1776
|
+
auto: "auto";
|
|
1777
|
+
byPage: "byPage";
|
|
1778
|
+
byProperty: "byProperty";
|
|
1779
|
+
byNewsShowcasePanel: "byNewsShowcasePanel";
|
|
1780
|
+
}>>;
|
|
1781
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
1782
|
+
web: "web";
|
|
1783
|
+
image: "image";
|
|
1784
|
+
video: "video";
|
|
1785
|
+
news: "news";
|
|
1786
|
+
discover: "discover";
|
|
1787
|
+
googleNews: "googleNews";
|
|
1788
|
+
}>>;
|
|
1789
|
+
}, z.core.$strict>;
|
|
1790
|
+
};
|
|
1791
|
+
readonly responses: {
|
|
1792
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
1793
|
+
data: z.ZodObject<{
|
|
1794
|
+
readonly rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
1795
|
+
}, z.core.$strip>;
|
|
1796
|
+
meta: z.ZodObject<{
|
|
1797
|
+
readonly requestId: z.ZodString;
|
|
1798
|
+
readonly surface: z.ZodLiteral<"analytics">;
|
|
1799
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1800
|
+
readonly sourceName: z.ZodString;
|
|
1801
|
+
readonly sourceKind: z.ZodEnum<{
|
|
1802
|
+
row: "row";
|
|
1803
|
+
sql: "sql";
|
|
1804
|
+
}>;
|
|
1805
|
+
readonly queryMs: z.ZodNumber;
|
|
1806
|
+
}, z.core.$strip>;
|
|
1807
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1808
|
+
data: z.ZodObject<{
|
|
1809
|
+
readonly rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
1810
|
+
}, z.core.$strip>;
|
|
1811
|
+
meta: z.ZodObject<{
|
|
1812
|
+
readonly requestId: z.ZodString;
|
|
1813
|
+
readonly surface: z.ZodLiteral<"analytics">;
|
|
1814
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1815
|
+
readonly sourceName: z.ZodString;
|
|
1816
|
+
readonly sourceKind: z.ZodEnum<{
|
|
1817
|
+
row: "row";
|
|
1818
|
+
sql: "sql";
|
|
1819
|
+
}>;
|
|
1820
|
+
readonly queryMs: z.ZodNumber;
|
|
1821
|
+
}, z.core.$strip>;
|
|
1822
|
+
}, z.core.$strip>>;
|
|
1823
|
+
};
|
|
1824
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"];
|
|
1825
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
1826
|
+
readonly error: z.ZodObject<{
|
|
1827
|
+
code: z.ZodEnum<{
|
|
1828
|
+
internal_error: "internal_error";
|
|
1829
|
+
rate_limited: "rate_limited";
|
|
1830
|
+
invalid_request: "invalid_request";
|
|
1831
|
+
unauthorized: "unauthorized";
|
|
1832
|
+
forbidden: "forbidden";
|
|
1833
|
+
site_not_found: "site_not_found";
|
|
1834
|
+
contract_violation: "contract_violation";
|
|
1835
|
+
}>;
|
|
1836
|
+
message: z.ZodString;
|
|
1837
|
+
requestId: z.ZodString;
|
|
1838
|
+
retryable: z.ZodBoolean;
|
|
1839
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1840
|
+
}, z.core.$strict>;
|
|
1841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1842
|
+
readonly error: z.ZodObject<{
|
|
1843
|
+
code: z.ZodEnum<{
|
|
1844
|
+
internal_error: "internal_error";
|
|
1845
|
+
rate_limited: "rate_limited";
|
|
1846
|
+
invalid_request: "invalid_request";
|
|
1847
|
+
unauthorized: "unauthorized";
|
|
1848
|
+
forbidden: "forbidden";
|
|
1849
|
+
site_not_found: "site_not_found";
|
|
1850
|
+
contract_violation: "contract_violation";
|
|
1851
|
+
}>;
|
|
1852
|
+
message: z.ZodString;
|
|
1853
|
+
requestId: z.ZodString;
|
|
1854
|
+
retryable: z.ZodBoolean;
|
|
1855
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1856
|
+
}, z.core.$loose>;
|
|
1857
|
+
}, z.core.$strip>>;
|
|
1858
|
+
readonly resources: {
|
|
1859
|
+
readonly reads: readonly [{
|
|
1860
|
+
readonly type: "site.analytics";
|
|
1861
|
+
readonly idFrom: "params.siteId";
|
|
1862
|
+
}];
|
|
1863
|
+
readonly changes: readonly [];
|
|
1864
|
+
};
|
|
1865
|
+
readonly lifecycle: {
|
|
1866
|
+
readonly introduced: "1.0.0";
|
|
1867
|
+
};
|
|
1868
|
+
readonly docs: {
|
|
1869
|
+
readonly summary: "Query analytics rows";
|
|
1870
|
+
readonly description: "Executes an idempotent primary-consistent analytics row query.";
|
|
1871
|
+
readonly tags: readonly ["Analytics rows"];
|
|
1872
|
+
readonly examples: {
|
|
1873
|
+
readonly request: {
|
|
1874
|
+
readonly params: {
|
|
1875
|
+
readonly siteId: "s_01";
|
|
1876
|
+
};
|
|
1877
|
+
readonly body: {
|
|
1878
|
+
readonly dimensions: readonly ["query"];
|
|
1879
|
+
readonly metrics: readonly ["clicks", "impressions"];
|
|
1880
|
+
readonly rowLimit: 100;
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
readonly response: {
|
|
1884
|
+
readonly data: {
|
|
1885
|
+
readonly rows: readonly [];
|
|
1886
|
+
};
|
|
1887
|
+
readonly meta: {
|
|
1888
|
+
readonly requestId: "req_01";
|
|
1889
|
+
readonly surface: "analytics";
|
|
1890
|
+
readonly version: "1.0";
|
|
1891
|
+
readonly sourceName: "primary";
|
|
1892
|
+
readonly sourceKind: "sql";
|
|
1893
|
+
readonly queryMs: 12;
|
|
1894
|
+
};
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1897
|
+
};
|
|
1898
|
+
};
|
|
1899
|
+
}>;
|
|
1900
|
+
realtime: HttpV1Surface<{
|
|
1901
|
+
readonly getStreamHead: {
|
|
1902
|
+
readonly id: "realtime.stream.head.get";
|
|
1903
|
+
readonly method: "GET";
|
|
1904
|
+
readonly path: "/stream/head";
|
|
1905
|
+
readonly visibility: "public";
|
|
1906
|
+
readonly semantics: {
|
|
1907
|
+
readonly kind: "query";
|
|
1908
|
+
readonly sideEffects: "none";
|
|
1909
|
+
readonly idempotent: true;
|
|
1910
|
+
readonly retry: "idempotent";
|
|
1911
|
+
readonly readConsistency: "primary";
|
|
1912
|
+
};
|
|
1913
|
+
readonly auth: {
|
|
1914
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
1915
|
+
readonly scopes: readonly ["realtime:connect"];
|
|
1916
|
+
readonly ownership: readonly [{
|
|
1917
|
+
readonly credential: "user_key";
|
|
1918
|
+
readonly rule: "principal_stream";
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly credential: "partner_key";
|
|
1921
|
+
readonly rule: "principal_stream";
|
|
1922
|
+
}];
|
|
1923
|
+
};
|
|
1924
|
+
readonly request: {
|
|
1925
|
+
readonly params: null;
|
|
1926
|
+
readonly query: null;
|
|
1927
|
+
readonly headers: z.ZodObject<{
|
|
1928
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
1929
|
+
}, z.core.$strict>;
|
|
1930
|
+
readonly body: null;
|
|
1931
|
+
};
|
|
1932
|
+
readonly responses: {
|
|
1933
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
1934
|
+
data: z.ZodObject<{
|
|
1935
|
+
readonly head: z.ZodObject<{
|
|
1936
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1937
|
+
readonly sequence: z.ZodString;
|
|
1938
|
+
}, z.core.$strip>;
|
|
1939
|
+
}, z.core.$strip>;
|
|
1940
|
+
meta: z.ZodObject<{
|
|
1941
|
+
readonly requestId: z.ZodString;
|
|
1942
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1943
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1944
|
+
}, z.core.$strip>;
|
|
1945
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1946
|
+
data: z.ZodObject<{
|
|
1947
|
+
readonly head: z.ZodObject<{
|
|
1948
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1949
|
+
readonly sequence: z.ZodString;
|
|
1950
|
+
}, z.core.$strip>;
|
|
1951
|
+
}, z.core.$strip>;
|
|
1952
|
+
meta: z.ZodObject<{
|
|
1953
|
+
readonly requestId: z.ZodString;
|
|
1954
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
1955
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
1956
|
+
}, z.core.$strip>;
|
|
1957
|
+
}, z.core.$strip>>;
|
|
1958
|
+
};
|
|
1959
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "rate_limited", "realtime_unavailable", "internal_error", "contract_violation"];
|
|
1960
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
1961
|
+
readonly error: z.ZodObject<{
|
|
1962
|
+
code: z.ZodEnum<{
|
|
1963
|
+
internal_error: "internal_error";
|
|
1964
|
+
rate_limited: "rate_limited";
|
|
1965
|
+
invalid_request: "invalid_request";
|
|
1966
|
+
unauthorized: "unauthorized";
|
|
1967
|
+
forbidden: "forbidden";
|
|
1968
|
+
realtime_unavailable: "realtime_unavailable";
|
|
1969
|
+
contract_violation: "contract_violation";
|
|
1970
|
+
}>;
|
|
1971
|
+
message: z.ZodString;
|
|
1972
|
+
requestId: z.ZodString;
|
|
1973
|
+
retryable: z.ZodBoolean;
|
|
1974
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1975
|
+
}, z.core.$strict>;
|
|
1976
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1977
|
+
readonly error: z.ZodObject<{
|
|
1978
|
+
code: z.ZodEnum<{
|
|
1979
|
+
internal_error: "internal_error";
|
|
1980
|
+
rate_limited: "rate_limited";
|
|
1981
|
+
invalid_request: "invalid_request";
|
|
1982
|
+
unauthorized: "unauthorized";
|
|
1983
|
+
forbidden: "forbidden";
|
|
1984
|
+
realtime_unavailable: "realtime_unavailable";
|
|
1985
|
+
contract_violation: "contract_violation";
|
|
1986
|
+
}>;
|
|
1987
|
+
message: z.ZodString;
|
|
1988
|
+
requestId: z.ZodString;
|
|
1989
|
+
retryable: z.ZodBoolean;
|
|
1990
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
1991
|
+
}, z.core.$loose>;
|
|
1992
|
+
}, z.core.$strip>>;
|
|
1993
|
+
readonly resources: {
|
|
1994
|
+
readonly reads: readonly [];
|
|
1995
|
+
readonly changes: readonly [];
|
|
1996
|
+
};
|
|
1997
|
+
readonly lifecycle: {
|
|
1998
|
+
readonly introduced: "1.0.0";
|
|
1999
|
+
};
|
|
2000
|
+
readonly docs: {
|
|
2001
|
+
readonly summary: "Get the inferred stream head";
|
|
2002
|
+
readonly description: "Returns the current durable head for the credential's one exact stream.";
|
|
2003
|
+
readonly tags: readonly ["Realtime"];
|
|
2004
|
+
readonly examples: {
|
|
2005
|
+
readonly request: {};
|
|
2006
|
+
readonly response: {
|
|
2007
|
+
readonly data: {
|
|
2008
|
+
readonly head: {
|
|
2009
|
+
readonly streamId: "user:u_01";
|
|
2010
|
+
readonly sequence: "142";
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
readonly meta: {
|
|
2014
|
+
readonly requestId: "req_01";
|
|
2015
|
+
readonly surface: "realtime";
|
|
2016
|
+
readonly version: "1.0";
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
2022
|
+
readonly createTicket: {
|
|
2023
|
+
readonly id: "realtime.tickets.create";
|
|
2024
|
+
readonly method: "POST";
|
|
2025
|
+
readonly path: "/tickets";
|
|
2026
|
+
readonly visibility: "public";
|
|
2027
|
+
readonly semantics: {
|
|
2028
|
+
readonly kind: "mutation";
|
|
2029
|
+
readonly sideEffects: "state";
|
|
2030
|
+
readonly idempotent: false;
|
|
2031
|
+
readonly retry: "never";
|
|
2032
|
+
readonly readConsistency: null;
|
|
2033
|
+
};
|
|
2034
|
+
readonly auth: {
|
|
2035
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
2036
|
+
readonly scopes: readonly ["realtime:connect"];
|
|
2037
|
+
readonly ownership: readonly [{
|
|
2038
|
+
readonly credential: "user_key";
|
|
2039
|
+
readonly rule: "principal_stream";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly credential: "partner_key";
|
|
2042
|
+
readonly rule: "principal_stream";
|
|
2043
|
+
}];
|
|
2044
|
+
};
|
|
2045
|
+
readonly request: {
|
|
2046
|
+
readonly params: null;
|
|
2047
|
+
readonly query: null;
|
|
2048
|
+
readonly headers: z.ZodObject<{
|
|
2049
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
2050
|
+
}, z.core.$strict>;
|
|
2051
|
+
readonly body: z.ZodObject<{
|
|
2052
|
+
origin: z.ZodOptional<z.ZodURL>;
|
|
2053
|
+
}, z.core.$strict>;
|
|
2054
|
+
};
|
|
2055
|
+
readonly responses: {
|
|
2056
|
+
readonly 201: CompatibleResponseSchema<z.ZodObject<{
|
|
2057
|
+
data: z.ZodObject<{
|
|
2058
|
+
socketUrl: z.ZodURL;
|
|
2059
|
+
protocol: z.ZodLiteral<"gscdump.v1">;
|
|
2060
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2061
|
+
ticket: z.ZodString;
|
|
2062
|
+
expiresAt: z.ZodISODateTime;
|
|
2063
|
+
head: z.ZodObject<{
|
|
2064
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2065
|
+
readonly sequence: z.ZodString;
|
|
2066
|
+
}, z.core.$strip>;
|
|
2067
|
+
maxConnectionSeconds: z.ZodLiteral<900>;
|
|
2068
|
+
}, z.core.$strip>;
|
|
2069
|
+
meta: z.ZodObject<{
|
|
2070
|
+
readonly requestId: z.ZodString;
|
|
2071
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
2072
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
2073
|
+
}, z.core.$strip>;
|
|
2074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2075
|
+
data: z.ZodObject<{
|
|
2076
|
+
readonly head: z.ZodObject<{
|
|
2077
|
+
readonly streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2078
|
+
readonly sequence: z.ZodString;
|
|
2079
|
+
}, z.core.$strip>;
|
|
2080
|
+
readonly socketUrl: z.ZodURL;
|
|
2081
|
+
readonly protocol: z.ZodLiteral<"gscdump.v1">;
|
|
2082
|
+
readonly protocolVersion: z.ZodLiteral<1>;
|
|
2083
|
+
readonly ticket: z.ZodString;
|
|
2084
|
+
readonly expiresAt: z.ZodISODateTime;
|
|
2085
|
+
readonly maxConnectionSeconds: z.ZodLiteral<900>;
|
|
2086
|
+
}, z.core.$strip>;
|
|
2087
|
+
meta: z.ZodObject<{
|
|
2088
|
+
readonly requestId: z.ZodString;
|
|
2089
|
+
readonly surface: z.ZodLiteral<"realtime">;
|
|
2090
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
2091
|
+
}, z.core.$strip>;
|
|
2092
|
+
}, z.core.$strip>>;
|
|
2093
|
+
};
|
|
2094
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "rate_limited", "realtime_unavailable", "internal_error", "contract_violation"];
|
|
2095
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
2096
|
+
readonly error: z.ZodObject<{
|
|
2097
|
+
code: z.ZodEnum<{
|
|
2098
|
+
internal_error: "internal_error";
|
|
2099
|
+
rate_limited: "rate_limited";
|
|
2100
|
+
invalid_request: "invalid_request";
|
|
2101
|
+
unauthorized: "unauthorized";
|
|
2102
|
+
forbidden: "forbidden";
|
|
2103
|
+
realtime_unavailable: "realtime_unavailable";
|
|
2104
|
+
contract_violation: "contract_violation";
|
|
2105
|
+
}>;
|
|
2106
|
+
message: z.ZodString;
|
|
2107
|
+
requestId: z.ZodString;
|
|
2108
|
+
retryable: z.ZodBoolean;
|
|
2109
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2110
|
+
}, z.core.$strict>;
|
|
2111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2112
|
+
readonly error: z.ZodObject<{
|
|
2113
|
+
code: z.ZodEnum<{
|
|
2114
|
+
internal_error: "internal_error";
|
|
2115
|
+
rate_limited: "rate_limited";
|
|
2116
|
+
invalid_request: "invalid_request";
|
|
2117
|
+
unauthorized: "unauthorized";
|
|
2118
|
+
forbidden: "forbidden";
|
|
2119
|
+
realtime_unavailable: "realtime_unavailable";
|
|
2120
|
+
contract_violation: "contract_violation";
|
|
2121
|
+
}>;
|
|
2122
|
+
message: z.ZodString;
|
|
2123
|
+
requestId: z.ZodString;
|
|
2124
|
+
retryable: z.ZodBoolean;
|
|
2125
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2126
|
+
}, z.core.$loose>;
|
|
2127
|
+
}, z.core.$strip>>;
|
|
2128
|
+
readonly resources: {
|
|
2129
|
+
readonly reads: readonly [];
|
|
2130
|
+
readonly changes: readonly [];
|
|
2131
|
+
};
|
|
2132
|
+
readonly lifecycle: {
|
|
2133
|
+
readonly introduced: "1.0.0";
|
|
2134
|
+
};
|
|
2135
|
+
readonly docs: {
|
|
2136
|
+
readonly summary: "Create a realtime ticket";
|
|
2137
|
+
readonly description: "Creates a short-lived single-use ticket for the credential's inferred stream.";
|
|
2138
|
+
readonly tags: readonly ["Realtime"];
|
|
2139
|
+
readonly examples: {
|
|
2140
|
+
readonly request: {
|
|
2141
|
+
readonly body: {
|
|
2142
|
+
readonly origin: "https://nuxtseo.com";
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
readonly response: {
|
|
2146
|
+
readonly data: {
|
|
2147
|
+
readonly socketUrl: "wss://gscdump.com/ws/v1";
|
|
2148
|
+
readonly protocol: "gscdump.v1";
|
|
2149
|
+
readonly protocolVersion: 1;
|
|
2150
|
+
readonly ticket: "gscdump.ticket.v1.cGF5bG9hZA.c2lnbmF0dXJl";
|
|
2151
|
+
readonly expiresAt: "2026-07-14T08:01:00.000Z";
|
|
2152
|
+
readonly head: {
|
|
2153
|
+
readonly streamId: "user:u_01";
|
|
2154
|
+
readonly sequence: "142";
|
|
2155
|
+
};
|
|
2156
|
+
readonly maxConnectionSeconds: 900;
|
|
2157
|
+
};
|
|
2158
|
+
readonly meta: {
|
|
2159
|
+
readonly requestId: "req_01";
|
|
2160
|
+
readonly surface: "realtime";
|
|
2161
|
+
readonly version: "1.0";
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
}>;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
type GscdumpV1Protocol = ReturnType<typeof createGscdumpV1Protocol>;
|
|
2171
|
+
type GscdumpV1ErrorEnvelope = z.infer<GscdumpV1Protocol['schemas']['errorEnvelope']['client']>;
|
|
2172
|
+
type GscdumpV1RequestMetadata = z.infer<GscdumpV1Protocol['schemas']['requestMetadata']>;
|
|
2173
|
+
type AnalyticsRowsV1Request = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsRequest']>;
|
|
2174
|
+
type AnalyticsRowsV1Response = z.infer<GscdumpV1Protocol['schemas']['analyticsRowsResponse']['client']>;
|
|
2175
|
+
type PartnerUserLifecycleV1Response = z.infer<GscdumpV1Protocol['schemas']['lifecycleResponse']['client']>;
|
|
2176
|
+
type RealtimeTicketV1Response = z.infer<GscdumpV1Protocol['schemas']['ticketResponse']['client']>;
|
|
2177
|
+
declare const GSCDUMP_REALTIME_PROTOCOL_VERSION: 1;
|
|
2178
|
+
declare const GSCDUMP_REALTIME_SUBPROTOCOL: "gscdump.v1";
|
|
2179
|
+
declare const GSCDUMP_REALTIME_TICKET_PREFIX: "gscdump.ticket.v1";
|
|
2180
|
+
declare const GSCDUMP_REALTIME_TICKET_ISSUER: "https://gscdump.com";
|
|
2181
|
+
declare const GSCDUMP_REALTIME_TICKET_AUDIENCE: "https://gscdump.com/ws/v1";
|
|
2182
|
+
declare const GSCDUMP_REALTIME_PING: "ping";
|
|
2183
|
+
declare const GSCDUMP_REALTIME_PONG: "pong";
|
|
2184
|
+
declare const GSCDUMP_REALTIME_TICKET_TTL_SECONDS: 60;
|
|
2185
|
+
declare const GSCDUMP_REALTIME_MAX_CONNECTION_SECONDS: 900;
|
|
2186
|
+
declare const GSCDUMP_REALTIME_TICKET_POLICY: {
|
|
2187
|
+
readonly algorithm: "HMAC-SHA-256";
|
|
2188
|
+
readonly minimumSigningKeyBytes: 32;
|
|
2189
|
+
readonly jtiRandomBits: 128;
|
|
2190
|
+
readonly maxVerificationKeys: 2;
|
|
2191
|
+
readonly futureIssuedAtToleranceMs: 5000;
|
|
2192
|
+
readonly expiryToleranceMs: 0;
|
|
2193
|
+
readonly rotationOverlapMs: 90000;
|
|
2194
|
+
readonly maxBytes: 2048;
|
|
2195
|
+
readonly singleUse: true;
|
|
2196
|
+
};
|
|
2197
|
+
declare const GSCDUMP_REALTIME_CONNECTION_POLICY: {
|
|
2198
|
+
readonly helloDeadlineMs: 10000;
|
|
2199
|
+
readonly maxLifetimeMs: 900000;
|
|
2200
|
+
readonly connectionRefreshBeforeExpiryMs: 30000;
|
|
2201
|
+
readonly heartbeatIntervalMs: 25000;
|
|
2202
|
+
readonly staleAfterMs: 75000;
|
|
2203
|
+
readonly reconnectBaseDelayMs: 1000;
|
|
2204
|
+
readonly reconnectMaxDelayMs: 30000;
|
|
2205
|
+
readonly reconnectJitter: "equal";
|
|
2206
|
+
};
|
|
2207
|
+
declare const GSCDUMP_REALTIME_REPLAY_POLICY: {
|
|
2208
|
+
readonly maxAgeMs: 86400000;
|
|
2209
|
+
readonly maxEventsPerStream: 10000;
|
|
2210
|
+
};
|
|
2211
|
+
declare const GSCDUMP_REALTIME_LIMITS: {
|
|
2212
|
+
readonly clientFrameMaxBytes: 16384;
|
|
2213
|
+
readonly durableEventMaxBytes: 65536;
|
|
2214
|
+
readonly ephemeralEventMaxBytes: 16384;
|
|
2215
|
+
readonly outboundFrameMaxBytes: 262144;
|
|
2216
|
+
readonly batchMaxEvents: 20;
|
|
2217
|
+
readonly batchMaxBytes: 262144;
|
|
2218
|
+
readonly connectionAttachmentMaxBytes: 2048;
|
|
2219
|
+
};
|
|
2220
|
+
declare const GSCDUMP_REALTIME_ACK_POLICY: {
|
|
2221
|
+
readonly softLagEvents: 100;
|
|
2222
|
+
readonly softLagBytes: 1048576;
|
|
2223
|
+
readonly hardLagEvents: 500;
|
|
2224
|
+
readonly hardLagBytes: 4194304;
|
|
2225
|
+
readonly hardLagCloseCode: 1013;
|
|
2226
|
+
readonly effectRetryBeforeUnsafeResync: 3;
|
|
2227
|
+
};
|
|
2228
|
+
declare const GSCDUMP_REALTIME_CLOSE_CODES: {
|
|
2229
|
+
readonly normal: 1000;
|
|
2230
|
+
readonly protocolError: 1002;
|
|
2231
|
+
readonly policyViolation: 1008;
|
|
2232
|
+
readonly internalError: 1011;
|
|
2233
|
+
readonly serviceRestart: 1012;
|
|
2234
|
+
readonly overloadedOrAckLag: 1013;
|
|
2235
|
+
readonly maximumLifetime: 4001;
|
|
2236
|
+
};
|
|
2237
|
+
declare const REALTIME_V1_RESOURCE_TYPES: readonly ["partner.user", "partner.team", "user.sites", "site.registration", "site.lifecycle", "site.analytics", "site.sitemaps", "site.indexing", "site.auth"];
|
|
2238
|
+
declare const REALTIME_V1_EVENT_NAMES: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.lifecycle.progress", "site.analytics.ready", "site.sitemaps.ready", "site.indexing.ready", "site.auth.failed", "site.lifecycle.failed", "site.registration.changed"];
|
|
2239
|
+
declare const REALTIME_V1_EVENT_SEMANTICS: {
|
|
2240
|
+
readonly 'user.lifecycle.changed': {
|
|
2241
|
+
readonly delivery: "durable";
|
|
2242
|
+
readonly baseChanges: readonly ["partner.user", "user.sites"];
|
|
2243
|
+
};
|
|
2244
|
+
readonly 'site.lifecycle.changed': {
|
|
2245
|
+
readonly delivery: "durable";
|
|
2246
|
+
readonly baseChanges: readonly ["site.lifecycle"];
|
|
2247
|
+
};
|
|
2248
|
+
readonly 'site.lifecycle.progress': {
|
|
2249
|
+
readonly delivery: "ephemeral";
|
|
2250
|
+
readonly baseChanges: readonly [];
|
|
2251
|
+
};
|
|
2252
|
+
readonly 'site.analytics.ready': {
|
|
2253
|
+
readonly delivery: "durable";
|
|
2254
|
+
readonly baseChanges: readonly ["site.analytics", "site.lifecycle"];
|
|
2255
|
+
};
|
|
2256
|
+
readonly 'site.sitemaps.ready': {
|
|
2257
|
+
readonly delivery: "durable";
|
|
2258
|
+
readonly baseChanges: readonly ["site.sitemaps", "site.lifecycle"];
|
|
2259
|
+
};
|
|
2260
|
+
readonly 'site.indexing.ready': {
|
|
2261
|
+
readonly delivery: "durable";
|
|
2262
|
+
readonly baseChanges: readonly ["site.indexing", "site.lifecycle"];
|
|
2263
|
+
};
|
|
2264
|
+
readonly 'site.auth.failed': {
|
|
2265
|
+
readonly delivery: "durable";
|
|
2266
|
+
readonly baseChanges: readonly ["site.auth", "site.lifecycle"];
|
|
2267
|
+
};
|
|
2268
|
+
readonly 'site.lifecycle.failed': {
|
|
2269
|
+
readonly delivery: "durable";
|
|
2270
|
+
readonly baseChanges: readonly ["site.lifecycle"];
|
|
2271
|
+
};
|
|
2272
|
+
readonly 'site.registration.changed': {
|
|
2273
|
+
readonly delivery: "durable";
|
|
2274
|
+
readonly baseChanges: readonly ["site.registration", "user.sites"];
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
declare function createRealtimeV1Schemas(): {
|
|
2278
|
+
opaquePublicId: z.ZodString;
|
|
2279
|
+
userStreamId: z.ZodString;
|
|
2280
|
+
partnerStreamId: z.ZodString;
|
|
2281
|
+
publicUserId: z.ZodString;
|
|
2282
|
+
publicPartnerId: z.ZodString;
|
|
2283
|
+
publicTeamId: z.ZodString;
|
|
2284
|
+
publicSiteId: z.ZodString;
|
|
2285
|
+
publicPrincipalId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2286
|
+
publicResourceId: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodString]>;
|
|
2287
|
+
publicRequestId: z.ZodString;
|
|
2288
|
+
publicEventId: z.ZodString;
|
|
2289
|
+
sequence: z.ZodString;
|
|
2290
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2291
|
+
cursor: z.ZodObject<{
|
|
2292
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2293
|
+
sequence: z.ZodString;
|
|
2294
|
+
}, z.core.$strict>;
|
|
2295
|
+
streamHead: z.ZodObject<{
|
|
2296
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2297
|
+
sequence: z.ZodString;
|
|
2298
|
+
}, z.core.$strict>;
|
|
2299
|
+
ticketRequest: z.ZodObject<{
|
|
2300
|
+
origin: z.ZodOptional<z.ZodURL>;
|
|
2301
|
+
}, z.core.$strict>;
|
|
2302
|
+
ticketClaims: z.ZodObject<{
|
|
2303
|
+
v: z.ZodLiteral<1>;
|
|
2304
|
+
iss: z.ZodLiteral<"https://gscdump.com">;
|
|
2305
|
+
aud: z.ZodLiteral<"https://gscdump.com/ws/v1">;
|
|
2306
|
+
kid: z.ZodString;
|
|
2307
|
+
jti: z.ZodString;
|
|
2308
|
+
iat: z.ZodNumber;
|
|
2309
|
+
exp: z.ZodNumber;
|
|
2310
|
+
connectionExpiresAt: z.ZodNumber;
|
|
2311
|
+
principalClass: z.ZodEnum<{
|
|
2312
|
+
user_key: "user_key";
|
|
2313
|
+
partner_key: "partner_key";
|
|
2314
|
+
}>;
|
|
2315
|
+
principalPublicId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2316
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2317
|
+
origin: z.ZodNullable<z.ZodURL>;
|
|
2318
|
+
}, z.core.$strict>;
|
|
2319
|
+
knownResourceType: z.ZodEnum<{
|
|
2320
|
+
"partner.user": "partner.user";
|
|
2321
|
+
"partner.team": "partner.team";
|
|
2322
|
+
"user.sites": "user.sites";
|
|
2323
|
+
"site.registration": "site.registration";
|
|
2324
|
+
"site.lifecycle": "site.lifecycle";
|
|
2325
|
+
"site.analytics": "site.analytics";
|
|
2326
|
+
"site.sitemaps": "site.sitemaps";
|
|
2327
|
+
"site.indexing": "site.indexing";
|
|
2328
|
+
"site.auth": "site.auth";
|
|
2329
|
+
}>;
|
|
2330
|
+
resourceChange: z.ZodObject<{
|
|
2331
|
+
type: z.ZodString;
|
|
2332
|
+
id: z.ZodString;
|
|
2333
|
+
kind: z.ZodEnum<{
|
|
2334
|
+
created: "created";
|
|
2335
|
+
updated: "updated";
|
|
2336
|
+
deleted: "deleted";
|
|
2337
|
+
}>;
|
|
2338
|
+
}, z.core.$strict>;
|
|
2339
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2340
|
+
type: z.ZodLiteral<"partner">;
|
|
2341
|
+
id: z.ZodString;
|
|
2342
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2343
|
+
type: z.ZodLiteral<"team">;
|
|
2344
|
+
id: z.ZodString;
|
|
2345
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2346
|
+
type: z.ZodLiteral<"user">;
|
|
2347
|
+
id: z.ZodString;
|
|
2348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2349
|
+
type: z.ZodLiteral<"site">;
|
|
2350
|
+
id: z.ZodString;
|
|
2351
|
+
}, z.core.$strict>], "type">;
|
|
2352
|
+
durableEvent: z.ZodObject<{
|
|
2353
|
+
cursor: z.ZodObject<{
|
|
2354
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2355
|
+
sequence: z.ZodString;
|
|
2356
|
+
}, z.core.$strict>;
|
|
2357
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2358
|
+
type: z.ZodString;
|
|
2359
|
+
id: z.ZodString;
|
|
2360
|
+
kind: z.ZodEnum<{
|
|
2361
|
+
created: "created";
|
|
2362
|
+
updated: "updated";
|
|
2363
|
+
deleted: "deleted";
|
|
2364
|
+
}>;
|
|
2365
|
+
}, z.core.$strict>>;
|
|
2366
|
+
delivery: z.ZodLiteral<"durable">;
|
|
2367
|
+
type: z.ZodLiteral<"event">;
|
|
2368
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2369
|
+
eventVersion: z.ZodNumber;
|
|
2370
|
+
id: z.ZodString;
|
|
2371
|
+
name: z.ZodString;
|
|
2372
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2373
|
+
type: z.ZodLiteral<"partner">;
|
|
2374
|
+
id: z.ZodString;
|
|
2375
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2376
|
+
type: z.ZodLiteral<"team">;
|
|
2377
|
+
id: z.ZodString;
|
|
2378
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2379
|
+
type: z.ZodLiteral<"user">;
|
|
2380
|
+
id: z.ZodString;
|
|
2381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2382
|
+
type: z.ZodLiteral<"site">;
|
|
2383
|
+
id: z.ZodString;
|
|
2384
|
+
}, z.core.$strict>], "type">;
|
|
2385
|
+
occurredAt: z.ZodISODateTime;
|
|
2386
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2387
|
+
data: z.ZodJSONSchema;
|
|
2388
|
+
}, z.core.$strict>;
|
|
2389
|
+
ephemeralEvent: z.ZodObject<{
|
|
2390
|
+
cursor: z.ZodNull;
|
|
2391
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2392
|
+
type: z.ZodString;
|
|
2393
|
+
id: z.ZodString;
|
|
2394
|
+
kind: z.ZodEnum<{
|
|
2395
|
+
created: "created";
|
|
2396
|
+
updated: "updated";
|
|
2397
|
+
deleted: "deleted";
|
|
2398
|
+
}>;
|
|
2399
|
+
}, z.core.$strict>>;
|
|
2400
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
2401
|
+
type: z.ZodLiteral<"event">;
|
|
2402
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2403
|
+
eventVersion: z.ZodNumber;
|
|
2404
|
+
id: z.ZodString;
|
|
2405
|
+
name: z.ZodString;
|
|
2406
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2407
|
+
type: z.ZodLiteral<"partner">;
|
|
2408
|
+
id: z.ZodString;
|
|
2409
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2410
|
+
type: z.ZodLiteral<"team">;
|
|
2411
|
+
id: z.ZodString;
|
|
2412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2413
|
+
type: z.ZodLiteral<"user">;
|
|
2414
|
+
id: z.ZodString;
|
|
2415
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2416
|
+
type: z.ZodLiteral<"site">;
|
|
2417
|
+
id: z.ZodString;
|
|
2418
|
+
}, z.core.$strict>], "type">;
|
|
2419
|
+
occurredAt: z.ZodISODateTime;
|
|
2420
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2421
|
+
data: z.ZodJSONSchema;
|
|
2422
|
+
}, z.core.$strict>;
|
|
2423
|
+
event: z.ZodUnion<readonly [z.ZodObject<{
|
|
2424
|
+
cursor: z.ZodObject<{
|
|
2425
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2426
|
+
sequence: z.ZodString;
|
|
2427
|
+
}, z.core.$strict>;
|
|
2428
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2429
|
+
type: z.ZodString;
|
|
2430
|
+
id: z.ZodString;
|
|
2431
|
+
kind: z.ZodEnum<{
|
|
2432
|
+
created: "created";
|
|
2433
|
+
updated: "updated";
|
|
2434
|
+
deleted: "deleted";
|
|
2435
|
+
}>;
|
|
2436
|
+
}, z.core.$strict>>;
|
|
2437
|
+
delivery: z.ZodLiteral<"durable">;
|
|
2438
|
+
type: z.ZodLiteral<"event">;
|
|
2439
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2440
|
+
eventVersion: z.ZodNumber;
|
|
2441
|
+
id: z.ZodString;
|
|
2442
|
+
name: z.ZodString;
|
|
2443
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2444
|
+
type: z.ZodLiteral<"partner">;
|
|
2445
|
+
id: z.ZodString;
|
|
2446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2447
|
+
type: z.ZodLiteral<"team">;
|
|
2448
|
+
id: z.ZodString;
|
|
2449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2450
|
+
type: z.ZodLiteral<"user">;
|
|
2451
|
+
id: z.ZodString;
|
|
2452
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2453
|
+
type: z.ZodLiteral<"site">;
|
|
2454
|
+
id: z.ZodString;
|
|
2455
|
+
}, z.core.$strict>], "type">;
|
|
2456
|
+
occurredAt: z.ZodISODateTime;
|
|
2457
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2458
|
+
data: z.ZodJSONSchema;
|
|
2459
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2460
|
+
cursor: z.ZodNull;
|
|
2461
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2462
|
+
type: z.ZodString;
|
|
2463
|
+
id: z.ZodString;
|
|
2464
|
+
kind: z.ZodEnum<{
|
|
2465
|
+
created: "created";
|
|
2466
|
+
updated: "updated";
|
|
2467
|
+
deleted: "deleted";
|
|
2468
|
+
}>;
|
|
2469
|
+
}, z.core.$strict>>;
|
|
2470
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
2471
|
+
type: z.ZodLiteral<"event">;
|
|
2472
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2473
|
+
eventVersion: z.ZodNumber;
|
|
2474
|
+
id: z.ZodString;
|
|
2475
|
+
name: z.ZodString;
|
|
2476
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2477
|
+
type: z.ZodLiteral<"partner">;
|
|
2478
|
+
id: z.ZodString;
|
|
2479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2480
|
+
type: z.ZodLiteral<"team">;
|
|
2481
|
+
id: z.ZodString;
|
|
2482
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2483
|
+
type: z.ZodLiteral<"user">;
|
|
2484
|
+
id: z.ZodString;
|
|
2485
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2486
|
+
type: z.ZodLiteral<"site">;
|
|
2487
|
+
id: z.ZodString;
|
|
2488
|
+
}, z.core.$strict>], "type">;
|
|
2489
|
+
occurredAt: z.ZodISODateTime;
|
|
2490
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2491
|
+
data: z.ZodJSONSchema;
|
|
2492
|
+
}, z.core.$strict>]>;
|
|
2493
|
+
helloFrame: z.ZodObject<{
|
|
2494
|
+
type: z.ZodLiteral<"hello">;
|
|
2495
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2496
|
+
sdkVersion: z.ZodString;
|
|
2497
|
+
resume: z.ZodNullable<z.ZodObject<{
|
|
2498
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2499
|
+
sequence: z.ZodString;
|
|
2500
|
+
}, z.core.$strict>>;
|
|
2501
|
+
}, z.core.$strict>;
|
|
2502
|
+
ackFrame: z.ZodObject<{
|
|
2503
|
+
type: z.ZodLiteral<"ack">;
|
|
2504
|
+
cursor: z.ZodObject<{
|
|
2505
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2506
|
+
sequence: z.ZodString;
|
|
2507
|
+
}, z.core.$strict>;
|
|
2508
|
+
}, z.core.$strict>;
|
|
2509
|
+
readyFrame: z.ZodObject<{
|
|
2510
|
+
type: z.ZodLiteral<"ready">;
|
|
2511
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2512
|
+
connectionId: z.ZodString;
|
|
2513
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2514
|
+
replayFloor: z.ZodObject<{
|
|
2515
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2516
|
+
sequence: z.ZodString;
|
|
2517
|
+
}, z.core.$strict>;
|
|
2518
|
+
head: z.ZodObject<{
|
|
2519
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2520
|
+
sequence: z.ZodString;
|
|
2521
|
+
}, z.core.$strict>;
|
|
2522
|
+
limits: z.ZodObject<{
|
|
2523
|
+
maxBatchEvents: z.ZodNumber;
|
|
2524
|
+
maxUnackedEvents: z.ZodNumber;
|
|
2525
|
+
}, z.core.$strict>;
|
|
2526
|
+
heartbeat: z.ZodObject<{
|
|
2527
|
+
ping: z.ZodLiteral<"ping">;
|
|
2528
|
+
pong: z.ZodLiteral<"pong">;
|
|
2529
|
+
}, z.core.$strict>;
|
|
2530
|
+
expiresAt: z.ZodISODateTime;
|
|
2531
|
+
}, z.core.$strict>;
|
|
2532
|
+
replayBeginFrame: z.ZodObject<{
|
|
2533
|
+
type: z.ZodLiteral<"replay.begin">;
|
|
2534
|
+
after: z.ZodNullable<z.ZodObject<{
|
|
2535
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2536
|
+
sequence: z.ZodString;
|
|
2537
|
+
}, z.core.$strict>>;
|
|
2538
|
+
through: z.ZodObject<{
|
|
2539
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2540
|
+
sequence: z.ZodString;
|
|
2541
|
+
}, z.core.$strict>;
|
|
2542
|
+
}, z.core.$strict>;
|
|
2543
|
+
replayEndFrame: z.ZodObject<{
|
|
2544
|
+
type: z.ZodLiteral<"replay.end">;
|
|
2545
|
+
through: z.ZodObject<{
|
|
2546
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2547
|
+
sequence: z.ZodString;
|
|
2548
|
+
}, z.core.$strict>;
|
|
2549
|
+
}, z.core.$strict>;
|
|
2550
|
+
batchFrame: z.ZodObject<{
|
|
2551
|
+
type: z.ZodLiteral<"batch">;
|
|
2552
|
+
events: z.ZodArray<z.ZodObject<{
|
|
2553
|
+
cursor: z.ZodObject<{
|
|
2554
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2555
|
+
sequence: z.ZodString;
|
|
2556
|
+
}, z.core.$strict>;
|
|
2557
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2558
|
+
type: z.ZodString;
|
|
2559
|
+
id: z.ZodString;
|
|
2560
|
+
kind: z.ZodEnum<{
|
|
2561
|
+
created: "created";
|
|
2562
|
+
updated: "updated";
|
|
2563
|
+
deleted: "deleted";
|
|
2564
|
+
}>;
|
|
2565
|
+
}, z.core.$strict>>;
|
|
2566
|
+
delivery: z.ZodLiteral<"durable">;
|
|
2567
|
+
type: z.ZodLiteral<"event">;
|
|
2568
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2569
|
+
eventVersion: z.ZodNumber;
|
|
2570
|
+
id: z.ZodString;
|
|
2571
|
+
name: z.ZodString;
|
|
2572
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2573
|
+
type: z.ZodLiteral<"partner">;
|
|
2574
|
+
id: z.ZodString;
|
|
2575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2576
|
+
type: z.ZodLiteral<"team">;
|
|
2577
|
+
id: z.ZodString;
|
|
2578
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2579
|
+
type: z.ZodLiteral<"user">;
|
|
2580
|
+
id: z.ZodString;
|
|
2581
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2582
|
+
type: z.ZodLiteral<"site">;
|
|
2583
|
+
id: z.ZodString;
|
|
2584
|
+
}, z.core.$strict>], "type">;
|
|
2585
|
+
occurredAt: z.ZodISODateTime;
|
|
2586
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2587
|
+
data: z.ZodJSONSchema;
|
|
2588
|
+
}, z.core.$strict>>;
|
|
2589
|
+
}, z.core.$strict>;
|
|
2590
|
+
resyncRequiredFrame: z.ZodObject<{
|
|
2591
|
+
type: z.ZodLiteral<"resync.required">;
|
|
2592
|
+
reason: z.ZodEnum<{
|
|
2593
|
+
cursor_expired: "cursor_expired";
|
|
2594
|
+
retention_gap: "retention_gap";
|
|
2595
|
+
sequence_gap: "sequence_gap";
|
|
2596
|
+
stream_mismatch: "stream_mismatch";
|
|
2597
|
+
}>;
|
|
2598
|
+
scope: z.ZodObject<{
|
|
2599
|
+
type: z.ZodLiteral<"stream">;
|
|
2600
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2601
|
+
}, z.core.$strict>;
|
|
2602
|
+
resumeAfter: z.ZodObject<{
|
|
2603
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2604
|
+
sequence: z.ZodString;
|
|
2605
|
+
}, z.core.$strict>;
|
|
2606
|
+
}, z.core.$strict>;
|
|
2607
|
+
realtimeErrorFrame: z.ZodObject<{
|
|
2608
|
+
type: z.ZodLiteral<"error">;
|
|
2609
|
+
error: z.ZodObject<{
|
|
2610
|
+
code: z.ZodEnum<{
|
|
2611
|
+
invalid_frame: "invalid_frame";
|
|
2612
|
+
protocol_mismatch: "protocol_mismatch";
|
|
2613
|
+
policy_violation: "policy_violation";
|
|
2614
|
+
overloaded: "overloaded";
|
|
2615
|
+
internal_error: "internal_error";
|
|
2616
|
+
}>;
|
|
2617
|
+
message: z.ZodString;
|
|
2618
|
+
retryable: z.ZodBoolean;
|
|
2619
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
2620
|
+
}, z.core.$strict>;
|
|
2621
|
+
}, z.core.$strict>;
|
|
2622
|
+
clientFrame: z.ZodUnion<readonly [z.ZodObject<{
|
|
2623
|
+
type: z.ZodLiteral<"hello">;
|
|
2624
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2625
|
+
sdkVersion: z.ZodString;
|
|
2626
|
+
resume: z.ZodNullable<z.ZodObject<{
|
|
2627
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2628
|
+
sequence: z.ZodString;
|
|
2629
|
+
}, z.core.$strict>>;
|
|
2630
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2631
|
+
type: z.ZodLiteral<"ack">;
|
|
2632
|
+
cursor: z.ZodObject<{
|
|
2633
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2634
|
+
sequence: z.ZodString;
|
|
2635
|
+
}, z.core.$strict>;
|
|
2636
|
+
}, z.core.$strict>]>;
|
|
2637
|
+
serverFrame: z.ZodUnion<readonly [z.ZodObject<{
|
|
2638
|
+
type: z.ZodLiteral<"ready">;
|
|
2639
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2640
|
+
connectionId: z.ZodString;
|
|
2641
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2642
|
+
replayFloor: z.ZodObject<{
|
|
2643
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2644
|
+
sequence: z.ZodString;
|
|
2645
|
+
}, z.core.$strict>;
|
|
2646
|
+
head: z.ZodObject<{
|
|
2647
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2648
|
+
sequence: z.ZodString;
|
|
2649
|
+
}, z.core.$strict>;
|
|
2650
|
+
limits: z.ZodObject<{
|
|
2651
|
+
maxBatchEvents: z.ZodNumber;
|
|
2652
|
+
maxUnackedEvents: z.ZodNumber;
|
|
2653
|
+
}, z.core.$strict>;
|
|
2654
|
+
heartbeat: z.ZodObject<{
|
|
2655
|
+
ping: z.ZodLiteral<"ping">;
|
|
2656
|
+
pong: z.ZodLiteral<"pong">;
|
|
2657
|
+
}, z.core.$strict>;
|
|
2658
|
+
expiresAt: z.ZodISODateTime;
|
|
2659
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2660
|
+
type: z.ZodLiteral<"replay.begin">;
|
|
2661
|
+
after: z.ZodNullable<z.ZodObject<{
|
|
2662
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2663
|
+
sequence: z.ZodString;
|
|
2664
|
+
}, z.core.$strict>>;
|
|
2665
|
+
through: z.ZodObject<{
|
|
2666
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2667
|
+
sequence: z.ZodString;
|
|
2668
|
+
}, z.core.$strict>;
|
|
2669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2670
|
+
type: z.ZodLiteral<"replay.end">;
|
|
2671
|
+
through: z.ZodObject<{
|
|
2672
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2673
|
+
sequence: z.ZodString;
|
|
2674
|
+
}, z.core.$strict>;
|
|
2675
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
2676
|
+
cursor: z.ZodObject<{
|
|
2677
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2678
|
+
sequence: z.ZodString;
|
|
2679
|
+
}, z.core.$strict>;
|
|
2680
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2681
|
+
type: z.ZodString;
|
|
2682
|
+
id: z.ZodString;
|
|
2683
|
+
kind: z.ZodEnum<{
|
|
2684
|
+
created: "created";
|
|
2685
|
+
updated: "updated";
|
|
2686
|
+
deleted: "deleted";
|
|
2687
|
+
}>;
|
|
2688
|
+
}, z.core.$strict>>;
|
|
2689
|
+
delivery: z.ZodLiteral<"durable">;
|
|
2690
|
+
type: z.ZodLiteral<"event">;
|
|
2691
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2692
|
+
eventVersion: z.ZodNumber;
|
|
2693
|
+
id: z.ZodString;
|
|
2694
|
+
name: z.ZodString;
|
|
2695
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2696
|
+
type: z.ZodLiteral<"partner">;
|
|
2697
|
+
id: z.ZodString;
|
|
2698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2699
|
+
type: z.ZodLiteral<"team">;
|
|
2700
|
+
id: z.ZodString;
|
|
2701
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2702
|
+
type: z.ZodLiteral<"user">;
|
|
2703
|
+
id: z.ZodString;
|
|
2704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2705
|
+
type: z.ZodLiteral<"site">;
|
|
2706
|
+
id: z.ZodString;
|
|
2707
|
+
}, z.core.$strict>], "type">;
|
|
2708
|
+
occurredAt: z.ZodISODateTime;
|
|
2709
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2710
|
+
data: z.ZodJSONSchema;
|
|
2711
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2712
|
+
cursor: z.ZodNull;
|
|
2713
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2714
|
+
type: z.ZodString;
|
|
2715
|
+
id: z.ZodString;
|
|
2716
|
+
kind: z.ZodEnum<{
|
|
2717
|
+
created: "created";
|
|
2718
|
+
updated: "updated";
|
|
2719
|
+
deleted: "deleted";
|
|
2720
|
+
}>;
|
|
2721
|
+
}, z.core.$strict>>;
|
|
2722
|
+
delivery: z.ZodLiteral<"ephemeral">;
|
|
2723
|
+
type: z.ZodLiteral<"event">;
|
|
2724
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2725
|
+
eventVersion: z.ZodNumber;
|
|
2726
|
+
id: z.ZodString;
|
|
2727
|
+
name: z.ZodString;
|
|
2728
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2729
|
+
type: z.ZodLiteral<"partner">;
|
|
2730
|
+
id: z.ZodString;
|
|
2731
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2732
|
+
type: z.ZodLiteral<"team">;
|
|
2733
|
+
id: z.ZodString;
|
|
2734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2735
|
+
type: z.ZodLiteral<"user">;
|
|
2736
|
+
id: z.ZodString;
|
|
2737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2738
|
+
type: z.ZodLiteral<"site">;
|
|
2739
|
+
id: z.ZodString;
|
|
2740
|
+
}, z.core.$strict>], "type">;
|
|
2741
|
+
occurredAt: z.ZodISODateTime;
|
|
2742
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2743
|
+
data: z.ZodJSONSchema;
|
|
2744
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2745
|
+
type: z.ZodLiteral<"batch">;
|
|
2746
|
+
events: z.ZodArray<z.ZodObject<{
|
|
2747
|
+
cursor: z.ZodObject<{
|
|
2748
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2749
|
+
sequence: z.ZodString;
|
|
2750
|
+
}, z.core.$strict>;
|
|
2751
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2752
|
+
type: z.ZodString;
|
|
2753
|
+
id: z.ZodString;
|
|
2754
|
+
kind: z.ZodEnum<{
|
|
2755
|
+
created: "created";
|
|
2756
|
+
updated: "updated";
|
|
2757
|
+
deleted: "deleted";
|
|
2758
|
+
}>;
|
|
2759
|
+
}, z.core.$strict>>;
|
|
2760
|
+
delivery: z.ZodLiteral<"durable">;
|
|
2761
|
+
type: z.ZodLiteral<"event">;
|
|
2762
|
+
protocolVersion: z.ZodLiteral<1>;
|
|
2763
|
+
eventVersion: z.ZodNumber;
|
|
2764
|
+
id: z.ZodString;
|
|
2765
|
+
name: z.ZodString;
|
|
2766
|
+
subject: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2767
|
+
type: z.ZodLiteral<"partner">;
|
|
2768
|
+
id: z.ZodString;
|
|
2769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2770
|
+
type: z.ZodLiteral<"team">;
|
|
2771
|
+
id: z.ZodString;
|
|
2772
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2773
|
+
type: z.ZodLiteral<"user">;
|
|
2774
|
+
id: z.ZodString;
|
|
2775
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2776
|
+
type: z.ZodLiteral<"site">;
|
|
2777
|
+
id: z.ZodString;
|
|
2778
|
+
}, z.core.$strict>], "type">;
|
|
2779
|
+
occurredAt: z.ZodISODateTime;
|
|
2780
|
+
correlationId: z.ZodNullable<z.ZodString>;
|
|
2781
|
+
data: z.ZodJSONSchema;
|
|
2782
|
+
}, z.core.$strict>>;
|
|
2783
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2784
|
+
type: z.ZodLiteral<"resync.required">;
|
|
2785
|
+
reason: z.ZodEnum<{
|
|
2786
|
+
cursor_expired: "cursor_expired";
|
|
2787
|
+
retention_gap: "retention_gap";
|
|
2788
|
+
sequence_gap: "sequence_gap";
|
|
2789
|
+
stream_mismatch: "stream_mismatch";
|
|
2790
|
+
}>;
|
|
2791
|
+
scope: z.ZodObject<{
|
|
2792
|
+
type: z.ZodLiteral<"stream">;
|
|
2793
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2794
|
+
}, z.core.$strict>;
|
|
2795
|
+
resumeAfter: z.ZodObject<{
|
|
2796
|
+
streamId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2797
|
+
sequence: z.ZodString;
|
|
2798
|
+
}, z.core.$strict>;
|
|
2799
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2800
|
+
type: z.ZodLiteral<"error">;
|
|
2801
|
+
error: z.ZodObject<{
|
|
2802
|
+
code: z.ZodEnum<{
|
|
2803
|
+
invalid_frame: "invalid_frame";
|
|
2804
|
+
protocol_mismatch: "protocol_mismatch";
|
|
2805
|
+
policy_violation: "policy_violation";
|
|
2806
|
+
overloaded: "overloaded";
|
|
2807
|
+
internal_error: "internal_error";
|
|
2808
|
+
}>;
|
|
2809
|
+
message: z.ZodString;
|
|
2810
|
+
retryable: z.ZodBoolean;
|
|
2811
|
+
retryAfter: z.ZodOptional<z.ZodNumber>;
|
|
2812
|
+
}, z.core.$strict>;
|
|
2813
|
+
}, z.core.$strict>]>;
|
|
2814
|
+
};
|
|
2815
|
+
type RealtimeV1Schemas = ReturnType<typeof createRealtimeV1Schemas>;
|
|
2816
|
+
type RealtimeV1StreamId = z.infer<RealtimeV1Schemas['streamId']>;
|
|
2817
|
+
type RealtimeV1Cursor = z.infer<RealtimeV1Schemas['cursor']>;
|
|
2818
|
+
type RealtimeV1StreamHead = z.infer<RealtimeV1Schemas['streamHead']>;
|
|
2819
|
+
type RealtimeV1TicketRequest = z.infer<RealtimeV1Schemas['ticketRequest']>;
|
|
2820
|
+
type RealtimeV1TicketClaims = z.infer<RealtimeV1Schemas['ticketClaims']>;
|
|
2821
|
+
type RealtimeV1ResourceChange = z.infer<RealtimeV1Schemas['resourceChange']>;
|
|
2822
|
+
type RealtimeV1Event = z.infer<RealtimeV1Schemas['event']>;
|
|
2823
|
+
type RealtimeV1ClientFrame = z.infer<RealtimeV1Schemas['clientFrame']>;
|
|
2824
|
+
type RealtimeV1ServerFrame = z.infer<RealtimeV1Schemas['serverFrame']>;
|
|
2825
|
+
export { 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, 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 };
|