@gscdump/contracts 7.11.0 → 7.12.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/dist/agent-feedback.d.mts +125 -0
- package/dist/agent-feedback.mjs +104 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/v1/agent-usage.d.mts +49 -0
- package/dist/v1/agent-usage.mjs +27 -0
- package/dist/v1/http.d.mts +4 -1
- package/dist/v1/http.mjs +4 -1
- package/dist/v1/index.d.mts +4 -1
- package/dist/v1/index.mjs +4 -1
- package/dist/v1/operations.d.mts +498 -6
- package/dist/v1/operations.mjs +133 -0
- package/dist/v1/report.d.mts +198 -0
- package/dist/v1/report.mjs +137 -0
- package/dist/v1/route-catalog.d.mts +10 -0
- package/dist/v1/route-catalog.mjs +10 -0
- package/package.json +1 -1
package/dist/v1/operations.d.mts
CHANGED
|
@@ -2203,8 +2203,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
2203
2203
|
readonly observedAt: z.ZodISODateTime;
|
|
2204
2204
|
readonly providerEvidenceAt: z.ZodISODateTime;
|
|
2205
2205
|
readonly freshness: z.ZodEnum<{
|
|
2206
|
-
current: "current";
|
|
2207
2206
|
stale: "stale";
|
|
2207
|
+
current: "current";
|
|
2208
2208
|
}>;
|
|
2209
2209
|
readonly discoveryTime: z.ZodNullable<z.ZodISODateTime>;
|
|
2210
2210
|
readonly lastCrawlTime: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -2260,8 +2260,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
2260
2260
|
readonly observedAt: z.ZodISODateTime;
|
|
2261
2261
|
readonly providerEvidenceAt: z.ZodISODateTime;
|
|
2262
2262
|
readonly freshness: z.ZodEnum<{
|
|
2263
|
-
current: "current";
|
|
2264
2263
|
stale: "stale";
|
|
2264
|
+
current: "current";
|
|
2265
2265
|
}>;
|
|
2266
2266
|
readonly discoveryTime: z.ZodNullable<z.ZodISODateTime>;
|
|
2267
2267
|
readonly lastCrawlTime: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -7950,8 +7950,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
7950
7950
|
readonly observedAt: z.ZodISODateTime;
|
|
7951
7951
|
readonly providerEvidenceAt: z.ZodISODateTime;
|
|
7952
7952
|
readonly freshness: z.ZodEnum<{
|
|
7953
|
-
current: "current";
|
|
7954
7953
|
stale: "stale";
|
|
7954
|
+
current: "current";
|
|
7955
7955
|
}>;
|
|
7956
7956
|
readonly discoveryTime: z.ZodNullable<z.ZodISODateTime>;
|
|
7957
7957
|
readonly lastCrawlTime: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -8007,8 +8007,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
8007
8007
|
readonly observedAt: z.ZodISODateTime;
|
|
8008
8008
|
readonly providerEvidenceAt: z.ZodISODateTime;
|
|
8009
8009
|
readonly freshness: z.ZodEnum<{
|
|
8010
|
-
current: "current";
|
|
8011
8010
|
stale: "stale";
|
|
8011
|
+
current: "current";
|
|
8012
8012
|
}>;
|
|
8013
8013
|
readonly discoveryTime: z.ZodNullable<z.ZodISODateTime>;
|
|
8014
8014
|
readonly lastCrawlTime: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -13868,8 +13868,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
13868
13868
|
readonly skipped: z.ZodArray<z.ZodObject<{
|
|
13869
13869
|
url: z.ZodString;
|
|
13870
13870
|
reason: z.ZodEnum<{
|
|
13871
|
-
domain_mismatch: "domain_mismatch";
|
|
13872
13871
|
rate_limited: "rate_limited";
|
|
13872
|
+
domain_mismatch: "domain_mismatch";
|
|
13873
13873
|
}>;
|
|
13874
13874
|
}, z.core.$strict>>;
|
|
13875
13875
|
}, z.core.$strip>;
|
|
@@ -13920,8 +13920,8 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
13920
13920
|
readonly skipped: z.ZodArray<z.ZodObject<{
|
|
13921
13921
|
url: z.ZodString;
|
|
13922
13922
|
reason: z.ZodEnum<{
|
|
13923
|
-
domain_mismatch: "domain_mismatch";
|
|
13924
13923
|
rate_limited: "rate_limited";
|
|
13924
|
+
domain_mismatch: "domain_mismatch";
|
|
13925
13925
|
}>;
|
|
13926
13926
|
}, z.core.$strict>>;
|
|
13927
13927
|
}, z.core.$strip>;
|
|
@@ -18894,6 +18894,165 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
18894
18894
|
readonly method: "GET";
|
|
18895
18895
|
readonly path: "/users/{userId}/sites/crosswalk";
|
|
18896
18896
|
};
|
|
18897
|
+
readonly getUserIntegrationActivity: {
|
|
18898
|
+
readonly visibility: "public";
|
|
18899
|
+
readonly semantics: {
|
|
18900
|
+
readonly kind: "query";
|
|
18901
|
+
readonly sideEffects: "none";
|
|
18902
|
+
readonly idempotent: true;
|
|
18903
|
+
readonly retry: "idempotent";
|
|
18904
|
+
readonly readConsistency: "primary";
|
|
18905
|
+
};
|
|
18906
|
+
readonly auth: {
|
|
18907
|
+
readonly credentials: readonly ["partner_key"];
|
|
18908
|
+
readonly scopes: readonly ["users:read"];
|
|
18909
|
+
readonly ownership: readonly [{
|
|
18910
|
+
readonly credential: "partner_key";
|
|
18911
|
+
readonly rule: "linked_user";
|
|
18912
|
+
}];
|
|
18913
|
+
};
|
|
18914
|
+
readonly request: {
|
|
18915
|
+
readonly params: z.ZodObject<{
|
|
18916
|
+
userId: z.ZodString;
|
|
18917
|
+
}, z.core.$strict>;
|
|
18918
|
+
readonly query: null;
|
|
18919
|
+
readonly headers: z.ZodObject<{
|
|
18920
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
18921
|
+
}, z.core.$strict>;
|
|
18922
|
+
readonly body: null;
|
|
18923
|
+
};
|
|
18924
|
+
readonly responses: {
|
|
18925
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
18926
|
+
data: z.ZodObject<{
|
|
18927
|
+
readonly measuredAt: z.ZodISODateTime;
|
|
18928
|
+
readonly activities: z.ZodArray<z.ZodObject<{
|
|
18929
|
+
readonly surface: z.ZodEnum<{
|
|
18930
|
+
unknown: "unknown";
|
|
18931
|
+
cli: "cli";
|
|
18932
|
+
mcp: "mcp";
|
|
18933
|
+
api: "api";
|
|
18934
|
+
}>;
|
|
18935
|
+
readonly client: z.ZodString;
|
|
18936
|
+
readonly label: z.ZodString;
|
|
18937
|
+
readonly configuredUsers: z.ZodNullable<z.ZodNumber>;
|
|
18938
|
+
readonly successfulUsers: z.ZodNullable<z.ZodNumber>;
|
|
18939
|
+
readonly successfulCalls: z.ZodNullable<z.ZodNumber>;
|
|
18940
|
+
readonly firstObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
18941
|
+
readonly lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
18942
|
+
readonly coverage: z.ZodEnum<{
|
|
18943
|
+
unavailable: "unavailable";
|
|
18944
|
+
retained: "retained";
|
|
18945
|
+
}>;
|
|
18946
|
+
readonly note: z.ZodString;
|
|
18947
|
+
}, z.core.$strip>>;
|
|
18948
|
+
}, z.core.$strip>;
|
|
18949
|
+
meta: z.ZodObject<{
|
|
18950
|
+
readonly requestId: z.ZodString;
|
|
18951
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
18952
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
18953
|
+
}, z.core.$strip>;
|
|
18954
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18955
|
+
data: z.ZodObject<{
|
|
18956
|
+
readonly measuredAt: z.ZodISODateTime;
|
|
18957
|
+
readonly activities: z.ZodArray<z.ZodObject<{
|
|
18958
|
+
readonly surface: z.ZodEnum<{
|
|
18959
|
+
unknown: "unknown";
|
|
18960
|
+
cli: "cli";
|
|
18961
|
+
mcp: "mcp";
|
|
18962
|
+
api: "api";
|
|
18963
|
+
}>;
|
|
18964
|
+
readonly client: z.ZodString;
|
|
18965
|
+
readonly label: z.ZodString;
|
|
18966
|
+
readonly configuredUsers: z.ZodNullable<z.ZodNumber>;
|
|
18967
|
+
readonly successfulUsers: z.ZodNullable<z.ZodNumber>;
|
|
18968
|
+
readonly successfulCalls: z.ZodNullable<z.ZodNumber>;
|
|
18969
|
+
readonly firstObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
18970
|
+
readonly lastObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
18971
|
+
readonly coverage: z.ZodEnum<{
|
|
18972
|
+
unavailable: "unavailable";
|
|
18973
|
+
retained: "retained";
|
|
18974
|
+
}>;
|
|
18975
|
+
readonly note: z.ZodString;
|
|
18976
|
+
}, z.core.$strip>>;
|
|
18977
|
+
}, z.core.$strip>;
|
|
18978
|
+
meta: z.ZodObject<{
|
|
18979
|
+
readonly requestId: z.ZodString;
|
|
18980
|
+
readonly surface: z.ZodLiteral<"partner">;
|
|
18981
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
18982
|
+
}, z.core.$strip>;
|
|
18983
|
+
}, z.core.$strip>>;
|
|
18984
|
+
};
|
|
18985
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"];
|
|
18986
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
18987
|
+
readonly error: z.ZodObject<{
|
|
18988
|
+
code: z.ZodEnum<{
|
|
18989
|
+
internal_error: "internal_error";
|
|
18990
|
+
invalid_request: "invalid_request";
|
|
18991
|
+
unauthorized: "unauthorized";
|
|
18992
|
+
forbidden: "forbidden";
|
|
18993
|
+
user_not_found: "user_not_found";
|
|
18994
|
+
rate_limited: "rate_limited";
|
|
18995
|
+
contract_violation: "contract_violation";
|
|
18996
|
+
}>;
|
|
18997
|
+
message: z.ZodString;
|
|
18998
|
+
requestId: z.ZodString;
|
|
18999
|
+
retryable: z.ZodBoolean;
|
|
19000
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
19001
|
+
}, z.core.$strict>;
|
|
19002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19003
|
+
readonly error: z.ZodObject<{
|
|
19004
|
+
code: z.ZodEnum<{
|
|
19005
|
+
internal_error: "internal_error";
|
|
19006
|
+
invalid_request: "invalid_request";
|
|
19007
|
+
unauthorized: "unauthorized";
|
|
19008
|
+
forbidden: "forbidden";
|
|
19009
|
+
user_not_found: "user_not_found";
|
|
19010
|
+
rate_limited: "rate_limited";
|
|
19011
|
+
contract_violation: "contract_violation";
|
|
19012
|
+
}>;
|
|
19013
|
+
message: z.ZodString;
|
|
19014
|
+
requestId: z.ZodString;
|
|
19015
|
+
retryable: z.ZodBoolean;
|
|
19016
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
19017
|
+
}, z.core.$loose>;
|
|
19018
|
+
}, z.core.$strip>>;
|
|
19019
|
+
readonly resources: {
|
|
19020
|
+
readonly reads: readonly [{
|
|
19021
|
+
readonly type: "partner.user";
|
|
19022
|
+
readonly idFrom: "params.userId";
|
|
19023
|
+
}];
|
|
19024
|
+
readonly changes: readonly [];
|
|
19025
|
+
};
|
|
19026
|
+
readonly lifecycle: {
|
|
19027
|
+
readonly introduced: "7.12.0";
|
|
19028
|
+
};
|
|
19029
|
+
readonly docs: {
|
|
19030
|
+
readonly summary: "Read partner integration activity";
|
|
19031
|
+
readonly description: "Reads retained activity attributed to credentials issued by this partner. Unknown counts remain null.";
|
|
19032
|
+
readonly tags: readonly ["Users"];
|
|
19033
|
+
readonly examples: {
|
|
19034
|
+
readonly request: {
|
|
19035
|
+
readonly params: {
|
|
19036
|
+
readonly userId: "u_01";
|
|
19037
|
+
};
|
|
19038
|
+
};
|
|
19039
|
+
readonly response: {
|
|
19040
|
+
readonly data: {
|
|
19041
|
+
readonly measuredAt: "2026-11-10T00:00:00.000Z";
|
|
19042
|
+
readonly activities: readonly [];
|
|
19043
|
+
};
|
|
19044
|
+
readonly meta: {
|
|
19045
|
+
readonly requestId: "req_01";
|
|
19046
|
+
readonly surface: "partner";
|
|
19047
|
+
readonly version: "1.0";
|
|
19048
|
+
};
|
|
19049
|
+
};
|
|
19050
|
+
};
|
|
19051
|
+
};
|
|
19052
|
+
readonly id: "partner.users.integration_activity.get";
|
|
19053
|
+
readonly method: "GET";
|
|
19054
|
+
readonly path: "/users/{userId}/integration-activity";
|
|
19055
|
+
};
|
|
18897
19056
|
readonly deleteUser: {
|
|
18898
19057
|
readonly visibility: "public";
|
|
18899
19058
|
readonly semantics: {
|
|
@@ -22794,6 +22953,339 @@ export declare function createGscdumpV1Protocol(): {
|
|
|
22794
22953
|
};
|
|
22795
22954
|
}>;
|
|
22796
22955
|
analytics: HttpV1Surface<{
|
|
22956
|
+
readonly runReport: {
|
|
22957
|
+
readonly visibility: "public";
|
|
22958
|
+
readonly semantics: {
|
|
22959
|
+
readonly kind: "query";
|
|
22960
|
+
readonly sideEffects: "none";
|
|
22961
|
+
readonly idempotent: true;
|
|
22962
|
+
readonly retry: "idempotent";
|
|
22963
|
+
readonly readConsistency: "primary";
|
|
22964
|
+
};
|
|
22965
|
+
readonly auth: {
|
|
22966
|
+
readonly credentials: readonly ["user_key", "partner_key"];
|
|
22967
|
+
readonly scopes: readonly ["analytics:execute"];
|
|
22968
|
+
readonly ownership: readonly [{
|
|
22969
|
+
readonly credential: "user_key";
|
|
22970
|
+
readonly rule: "authorized_site";
|
|
22971
|
+
}, {
|
|
22972
|
+
readonly credential: "partner_key";
|
|
22973
|
+
readonly rule: "authorized_site";
|
|
22974
|
+
}];
|
|
22975
|
+
};
|
|
22976
|
+
readonly request: {
|
|
22977
|
+
readonly params: z.ZodObject<{
|
|
22978
|
+
siteId: z.ZodString;
|
|
22979
|
+
}, z.core.$strict>;
|
|
22980
|
+
readonly query: null;
|
|
22981
|
+
readonly headers: z.ZodObject<{
|
|
22982
|
+
'x-request-id': z.ZodOptional<z.ZodString>;
|
|
22983
|
+
}, z.core.$strict>;
|
|
22984
|
+
readonly body: z.ZodObject<{
|
|
22985
|
+
reportId: z.ZodEnum<{
|
|
22986
|
+
health: "health";
|
|
22987
|
+
risks: "risks";
|
|
22988
|
+
opportunities: "opportunities";
|
|
22989
|
+
movers: "movers";
|
|
22990
|
+
growth: "growth";
|
|
22991
|
+
triage: "triage";
|
|
22992
|
+
brand: "brand";
|
|
22993
|
+
"pre-publish": "pre-publish";
|
|
22994
|
+
}>;
|
|
22995
|
+
period: z.ZodOptional<z.ZodEnum<{
|
|
22996
|
+
custom: "custom";
|
|
22997
|
+
"last-7d": "last-7d";
|
|
22998
|
+
"last-28d": "last-28d";
|
|
22999
|
+
"last-30d": "last-30d";
|
|
23000
|
+
"last-90d": "last-90d";
|
|
23001
|
+
"last-180d": "last-180d";
|
|
23002
|
+
"last-365d": "last-365d";
|
|
23003
|
+
mtd: "mtd";
|
|
23004
|
+
qtd: "qtd";
|
|
23005
|
+
ytd: "ytd";
|
|
23006
|
+
"last-quarter": "last-quarter";
|
|
23007
|
+
}>>;
|
|
23008
|
+
comparison: z.ZodOptional<z.ZodEnum<{
|
|
23009
|
+
none: "none";
|
|
23010
|
+
"prev-period": "prev-period";
|
|
23011
|
+
yoy: "yoy";
|
|
23012
|
+
}>>;
|
|
23013
|
+
start: z.ZodOptional<z.ZodISODate>;
|
|
23014
|
+
end: z.ZodOptional<z.ZodISODate>;
|
|
23015
|
+
target: z.ZodOptional<z.ZodString>;
|
|
23016
|
+
targetKind: z.ZodOptional<z.ZodEnum<{
|
|
23017
|
+
page: "page";
|
|
23018
|
+
query: "query";
|
|
23019
|
+
}>>;
|
|
23020
|
+
brandTerms: z.ZodOptional<z.ZodString>;
|
|
23021
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
23022
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
23023
|
+
minClicksChange: z.ZodOptional<z.ZodNumber>;
|
|
23024
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
23025
|
+
}, z.core.$strict>;
|
|
23026
|
+
};
|
|
23027
|
+
readonly responses: {
|
|
23028
|
+
readonly 200: CompatibleResponseSchema<z.ZodObject<{
|
|
23029
|
+
data: z.ZodObject<{
|
|
23030
|
+
readonly site: z.ZodString;
|
|
23031
|
+
readonly generatedAt: z.ZodISODateTime;
|
|
23032
|
+
readonly cached: z.ZodBoolean;
|
|
23033
|
+
readonly window: z.ZodObject<{
|
|
23034
|
+
start: z.ZodISODate;
|
|
23035
|
+
end: z.ZodISODate;
|
|
23036
|
+
days: z.ZodNumber;
|
|
23037
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
23038
|
+
start: z.ZodISODate;
|
|
23039
|
+
end: z.ZodISODate;
|
|
23040
|
+
}, z.core.$strict>>;
|
|
23041
|
+
}, z.core.$strict>;
|
|
23042
|
+
readonly meta: z.ZodObject<{
|
|
23043
|
+
durationMs: z.ZodNumber;
|
|
23044
|
+
rowsScanned: z.ZodNumber;
|
|
23045
|
+
degraded: z.ZodBoolean;
|
|
23046
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
23047
|
+
key: z.ZodString;
|
|
23048
|
+
type: z.ZodString;
|
|
23049
|
+
status: z.ZodEnum<{
|
|
23050
|
+
error: "error";
|
|
23051
|
+
skipped: "skipped";
|
|
23052
|
+
pending: "pending";
|
|
23053
|
+
done: "done";
|
|
23054
|
+
running: "running";
|
|
23055
|
+
}>;
|
|
23056
|
+
error: z.ZodOptional<z.ZodString>;
|
|
23057
|
+
coverage: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23058
|
+
kind: z.ZodLiteral<"complete">;
|
|
23059
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23060
|
+
kind: z.ZodLiteral<"truncated">;
|
|
23061
|
+
fetched: z.ZodNumber;
|
|
23062
|
+
}, z.core.$strict>], "kind">>;
|
|
23063
|
+
}, z.core.$strict>>;
|
|
23064
|
+
}, z.core.$strict>;
|
|
23065
|
+
readonly sections: z.ZodArray<z.ZodObject<{
|
|
23066
|
+
id: z.ZodString;
|
|
23067
|
+
title: z.ZodString;
|
|
23068
|
+
summary: z.ZodObject<{
|
|
23069
|
+
delta: z.ZodOptional<z.ZodNumber>;
|
|
23070
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
23071
|
+
flat: "flat";
|
|
23072
|
+
up: "up";
|
|
23073
|
+
down: "down";
|
|
23074
|
+
}>>;
|
|
23075
|
+
magnitudeLabel: z.ZodOptional<z.ZodString>;
|
|
23076
|
+
}, z.core.$strict>;
|
|
23077
|
+
coverage: z.ZodEnum<{
|
|
23078
|
+
partial: "partial";
|
|
23079
|
+
full: "full";
|
|
23080
|
+
}>;
|
|
23081
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
23082
|
+
kept: z.ZodNumber;
|
|
23083
|
+
total: z.ZodNumber;
|
|
23084
|
+
}, z.core.$strict>>;
|
|
23085
|
+
dataUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
23086
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
23087
|
+
entity: z.ZodObject<{
|
|
23088
|
+
kind: z.ZodEnum<{
|
|
23089
|
+
page: "page";
|
|
23090
|
+
query: "query";
|
|
23091
|
+
}>;
|
|
23092
|
+
value: z.ZodString;
|
|
23093
|
+
}, z.core.$strict>;
|
|
23094
|
+
metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
23095
|
+
delta: z.ZodOptional<z.ZodObject<{
|
|
23096
|
+
metric: z.ZodString;
|
|
23097
|
+
prior: z.ZodNumber;
|
|
23098
|
+
current: z.ZodNumber;
|
|
23099
|
+
pct: z.ZodNumber;
|
|
23100
|
+
}, z.core.$strict>>;
|
|
23101
|
+
why: z.ZodOptional<z.ZodString>;
|
|
23102
|
+
}, z.core.$strict>>;
|
|
23103
|
+
}, z.core.$strict>>;
|
|
23104
|
+
}, z.core.$strip>;
|
|
23105
|
+
meta: z.ZodObject<{
|
|
23106
|
+
readonly requestId: z.ZodString;
|
|
23107
|
+
readonly surface: z.ZodEnum<{
|
|
23108
|
+
realtime: "realtime";
|
|
23109
|
+
partner: "partner";
|
|
23110
|
+
analytics: "analytics";
|
|
23111
|
+
}>;
|
|
23112
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
23113
|
+
}, z.core.$strip>;
|
|
23114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23115
|
+
data: z.ZodObject<{
|
|
23116
|
+
readonly site: z.ZodString;
|
|
23117
|
+
readonly generatedAt: z.ZodISODateTime;
|
|
23118
|
+
readonly cached: z.ZodBoolean;
|
|
23119
|
+
readonly window: z.ZodObject<{
|
|
23120
|
+
start: z.ZodISODate;
|
|
23121
|
+
end: z.ZodISODate;
|
|
23122
|
+
days: z.ZodNumber;
|
|
23123
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
23124
|
+
start: z.ZodISODate;
|
|
23125
|
+
end: z.ZodISODate;
|
|
23126
|
+
}, z.core.$strict>>;
|
|
23127
|
+
}, z.core.$strict>;
|
|
23128
|
+
readonly meta: z.ZodObject<{
|
|
23129
|
+
durationMs: z.ZodNumber;
|
|
23130
|
+
rowsScanned: z.ZodNumber;
|
|
23131
|
+
degraded: z.ZodBoolean;
|
|
23132
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
23133
|
+
key: z.ZodString;
|
|
23134
|
+
type: z.ZodString;
|
|
23135
|
+
status: z.ZodEnum<{
|
|
23136
|
+
error: "error";
|
|
23137
|
+
skipped: "skipped";
|
|
23138
|
+
pending: "pending";
|
|
23139
|
+
done: "done";
|
|
23140
|
+
running: "running";
|
|
23141
|
+
}>;
|
|
23142
|
+
error: z.ZodOptional<z.ZodString>;
|
|
23143
|
+
coverage: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23144
|
+
kind: z.ZodLiteral<"complete">;
|
|
23145
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23146
|
+
kind: z.ZodLiteral<"truncated">;
|
|
23147
|
+
fetched: z.ZodNumber;
|
|
23148
|
+
}, z.core.$strict>], "kind">>;
|
|
23149
|
+
}, z.core.$strict>>;
|
|
23150
|
+
}, z.core.$strict>;
|
|
23151
|
+
readonly sections: z.ZodArray<z.ZodObject<{
|
|
23152
|
+
id: z.ZodString;
|
|
23153
|
+
title: z.ZodString;
|
|
23154
|
+
summary: z.ZodObject<{
|
|
23155
|
+
delta: z.ZodOptional<z.ZodNumber>;
|
|
23156
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
23157
|
+
flat: "flat";
|
|
23158
|
+
up: "up";
|
|
23159
|
+
down: "down";
|
|
23160
|
+
}>>;
|
|
23161
|
+
magnitudeLabel: z.ZodOptional<z.ZodString>;
|
|
23162
|
+
}, z.core.$strict>;
|
|
23163
|
+
coverage: z.ZodEnum<{
|
|
23164
|
+
partial: "partial";
|
|
23165
|
+
full: "full";
|
|
23166
|
+
}>;
|
|
23167
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
23168
|
+
kept: z.ZodNumber;
|
|
23169
|
+
total: z.ZodNumber;
|
|
23170
|
+
}, z.core.$strict>>;
|
|
23171
|
+
dataUnavailable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
23172
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
23173
|
+
entity: z.ZodObject<{
|
|
23174
|
+
kind: z.ZodEnum<{
|
|
23175
|
+
page: "page";
|
|
23176
|
+
query: "query";
|
|
23177
|
+
}>;
|
|
23178
|
+
value: z.ZodString;
|
|
23179
|
+
}, z.core.$strict>;
|
|
23180
|
+
metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
23181
|
+
delta: z.ZodOptional<z.ZodObject<{
|
|
23182
|
+
metric: z.ZodString;
|
|
23183
|
+
prior: z.ZodNumber;
|
|
23184
|
+
current: z.ZodNumber;
|
|
23185
|
+
pct: z.ZodNumber;
|
|
23186
|
+
}, z.core.$strict>>;
|
|
23187
|
+
why: z.ZodOptional<z.ZodString>;
|
|
23188
|
+
}, z.core.$strict>>;
|
|
23189
|
+
}, z.core.$strict>>;
|
|
23190
|
+
}, z.core.$strip>;
|
|
23191
|
+
meta: z.ZodObject<{
|
|
23192
|
+
readonly requestId: z.ZodString;
|
|
23193
|
+
readonly surface: z.ZodEnum<{
|
|
23194
|
+
realtime: "realtime";
|
|
23195
|
+
partner: "partner";
|
|
23196
|
+
analytics: "analytics";
|
|
23197
|
+
}>;
|
|
23198
|
+
readonly version: z.ZodLiteral<"1.0">;
|
|
23199
|
+
}, z.core.$strip>;
|
|
23200
|
+
}, z.core.$strip>>;
|
|
23201
|
+
};
|
|
23202
|
+
readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"];
|
|
23203
|
+
readonly errorResponse: CompatibleResponseSchema<z.ZodObject<{
|
|
23204
|
+
readonly error: z.ZodObject<{
|
|
23205
|
+
code: z.ZodEnum<{
|
|
23206
|
+
internal_error: "internal_error";
|
|
23207
|
+
invalid_request: "invalid_request";
|
|
23208
|
+
unauthorized: "unauthorized";
|
|
23209
|
+
forbidden: "forbidden";
|
|
23210
|
+
site_not_found: "site_not_found";
|
|
23211
|
+
rate_limited: "rate_limited";
|
|
23212
|
+
contract_violation: "contract_violation";
|
|
23213
|
+
}>;
|
|
23214
|
+
message: z.ZodString;
|
|
23215
|
+
requestId: z.ZodString;
|
|
23216
|
+
retryable: z.ZodBoolean;
|
|
23217
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
23218
|
+
}, z.core.$strict>;
|
|
23219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23220
|
+
readonly error: z.ZodObject<{
|
|
23221
|
+
code: z.ZodEnum<{
|
|
23222
|
+
internal_error: "internal_error";
|
|
23223
|
+
invalid_request: "invalid_request";
|
|
23224
|
+
unauthorized: "unauthorized";
|
|
23225
|
+
forbidden: "forbidden";
|
|
23226
|
+
site_not_found: "site_not_found";
|
|
23227
|
+
rate_limited: "rate_limited";
|
|
23228
|
+
contract_violation: "contract_violation";
|
|
23229
|
+
}>;
|
|
23230
|
+
message: z.ZodString;
|
|
23231
|
+
requestId: z.ZodString;
|
|
23232
|
+
retryable: z.ZodBoolean;
|
|
23233
|
+
details: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
23234
|
+
}, z.core.$loose>;
|
|
23235
|
+
}, z.core.$strip>>;
|
|
23236
|
+
readonly resources: {
|
|
23237
|
+
readonly reads: readonly [{
|
|
23238
|
+
readonly type: "site.analytics";
|
|
23239
|
+
readonly idFrom: "params.siteId";
|
|
23240
|
+
}];
|
|
23241
|
+
readonly changes: readonly [];
|
|
23242
|
+
};
|
|
23243
|
+
readonly lifecycle: {
|
|
23244
|
+
readonly introduced: "7.12.0";
|
|
23245
|
+
};
|
|
23246
|
+
readonly docs: {
|
|
23247
|
+
readonly summary: "Run a retained search evidence report";
|
|
23248
|
+
readonly description: "Returns deterministic report evidence, coverage, and capture clocks without advice or severity.";
|
|
23249
|
+
readonly tags: readonly ["Analytics reports"];
|
|
23250
|
+
readonly examples: {
|
|
23251
|
+
readonly request: {
|
|
23252
|
+
readonly params: {
|
|
23253
|
+
readonly siteId: "s_01";
|
|
23254
|
+
};
|
|
23255
|
+
readonly body: {
|
|
23256
|
+
readonly reportId: "health";
|
|
23257
|
+
};
|
|
23258
|
+
};
|
|
23259
|
+
readonly response: {
|
|
23260
|
+
readonly data: {
|
|
23261
|
+
readonly site: "https://example.com/";
|
|
23262
|
+
readonly generatedAt: "2026-11-10T00:00:00.000Z";
|
|
23263
|
+
readonly cached: false;
|
|
23264
|
+
readonly window: {
|
|
23265
|
+
readonly start: "2026-10-01";
|
|
23266
|
+
readonly end: "2026-10-28";
|
|
23267
|
+
readonly days: 28;
|
|
23268
|
+
};
|
|
23269
|
+
readonly meta: {
|
|
23270
|
+
readonly durationMs: 1;
|
|
23271
|
+
readonly rowsScanned: 0;
|
|
23272
|
+
readonly degraded: false;
|
|
23273
|
+
readonly steps: readonly [];
|
|
23274
|
+
};
|
|
23275
|
+
readonly sections: readonly [];
|
|
23276
|
+
};
|
|
23277
|
+
readonly meta: {
|
|
23278
|
+
readonly requestId: "req_01";
|
|
23279
|
+
readonly surface: "analytics";
|
|
23280
|
+
readonly version: "1.0";
|
|
23281
|
+
};
|
|
23282
|
+
};
|
|
23283
|
+
};
|
|
23284
|
+
};
|
|
23285
|
+
readonly id: "analytics.reports.run";
|
|
23286
|
+
readonly method: "POST";
|
|
23287
|
+
readonly path: "/sites/{siteId}/reports/run";
|
|
23288
|
+
};
|
|
22797
23289
|
readonly queryRows: {
|
|
22798
23290
|
readonly visibility: "public";
|
|
22799
23291
|
readonly semantics: {
|