@gscdump/sdk 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-client.d.mts +1 -1
- package/dist/analytics-client.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +1 -1
- package/dist/errors.d.mts +21 -1
- package/dist/index.d.mts +1 -1
- package/dist/{_chunks/request.mjs → request.mjs} +1 -1
- package/dist/search-console-stage.mjs +1 -1
- package/dist/site-triage.mjs +1 -1
- package/dist/utf8.mjs +14 -0
- package/dist/v1/http.d.mts +126 -0
- package/dist/v1/http.mjs +418 -0
- package/dist/v1/index.d.mts +2 -232
- package/dist/v1/index.mjs +2 -1439
- package/dist/v1/realtime.d.mts +109 -0
- package/dist/v1/realtime.mjs +1012 -0
- package/dist/webhook.d.mts +1 -1
- package/package.json +5 -5
- package/dist/_chunks/errors.d.mts +0 -22
- /package/dist/{_chunks/request.d.mts → request.d.mts} +0 -0
- /package/dist/{_chunks/search-console-signals.mjs → search-console-signals.mjs} +0 -0
package/dist/webhook.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PartnerApiError } from "./
|
|
1
|
+
import { PartnerApiError } from "./errors.mjs";
|
|
2
2
|
import { Result } from "gscdump/result";
|
|
3
3
|
import { CANONICAL_WEBHOOK_EVENTS, CreateWebhookEnvelopeOptions, PartnerWebhookHeaders, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WebhookEnvelope } from "@gscdump/contracts";
|
|
4
4
|
declare function generateWebhookSecret(): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"description": "Consumer SDK for hosted gscdump.com integrations.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"dependencies": {
|
|
149
149
|
"ofetch": "^1.5.1",
|
|
150
150
|
"zod": "^4.4.3",
|
|
151
|
-
"@gscdump/analysis": "^1.4.
|
|
152
|
-
"@gscdump/
|
|
153
|
-
"gscdump": "^1.4.
|
|
154
|
-
"
|
|
151
|
+
"@gscdump/analysis": "^1.4.1",
|
|
152
|
+
"@gscdump/contracts": "^1.4.1",
|
|
153
|
+
"@gscdump/engine": "^1.4.1",
|
|
154
|
+
"gscdump": "^1.4.1"
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"typescript": "^7.0.2",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type PartnerErrorKind = 'auth' | 'rate-limit' | 'provisioning' | 'permission' | 'network' | 'validation' | 'not-found' | 'server' | 'unknown';
|
|
2
|
-
interface PartnerErrorInfo {
|
|
3
|
-
kind: PartnerErrorKind;
|
|
4
|
-
statusCode?: number;
|
|
5
|
-
message: string;
|
|
6
|
-
data?: unknown;
|
|
7
|
-
}
|
|
8
|
-
declare class PartnerApiError extends Error {
|
|
9
|
-
readonly kind: PartnerErrorKind;
|
|
10
|
-
readonly statusCode?: number;
|
|
11
|
-
readonly data?: unknown;
|
|
12
|
-
constructor(info: PartnerErrorInfo);
|
|
13
|
-
}
|
|
14
|
-
declare function toPartnerError(error: unknown): PartnerApiError;
|
|
15
|
-
/**
|
|
16
|
-
* Re-raise a modelled `PartnerApiError` as itself. The error variant of every
|
|
17
|
-
* `*Result` core already IS the throwable `PartnerApiError`, so the throwing
|
|
18
|
-
* wrappers preserve the exact identity/message existing call sites and tests
|
|
19
|
-
* assert (`rejects.toThrow(PartnerApiError)`, `toThrow('Invalid webhook signature')`).
|
|
20
|
-
*/
|
|
21
|
-
declare function partnerErrorToException(error: PartnerApiError): PartnerApiError;
|
|
22
|
-
export { PartnerApiError, PartnerErrorInfo, PartnerErrorKind, partnerErrorToException, toPartnerError };
|
|
File without changes
|
|
File without changes
|