@gscdump/sdk 4.6.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.mjs +1 -1
- package/dist/v1/http.mjs +7 -0
- package/dist/webhook.d.mts +11 -3
- package/package.json +3 -3
package/dist/package.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var version = "4.
|
|
1
|
+
var version = "4.8.0";
|
|
2
2
|
export { version };
|
package/dist/v1/http.mjs
CHANGED
|
@@ -366,10 +366,12 @@ function createGscdumpV1Client(options) {
|
|
|
366
366
|
return {
|
|
367
367
|
execute,
|
|
368
368
|
getUserLifecycle: (input, executeOptions) => execute("partner.users.lifecycle.get", input, executeOptions),
|
|
369
|
+
getUserEntitlements: (input, executeOptions) => execute("partner.users.entitlements.get", input, executeOptions),
|
|
369
370
|
listAvailableSites: (input, executeOptions) => execute("partner.users.sites.available.list", input, executeOptions),
|
|
370
371
|
createSite: (input, executeOptions) => execute("partner.users.sites.create", input, executeOptions),
|
|
371
372
|
createUser: (input, executeOptions) => execute("partner.users.create", input, executeOptions),
|
|
372
373
|
updateUserTokens: (input, executeOptions) => execute("partner.users.tokens.update", input, executeOptions),
|
|
374
|
+
listUserBingSites: (input, executeOptions) => execute("partner.users.indexing.bing.sites.list", input, executeOptions),
|
|
373
375
|
getSiteIndexing: (input, executeOptions) => execute("partner.sites.indexing.get", input, executeOptions),
|
|
374
376
|
listSiteIndexingUrls: (input, executeOptions) => execute("partner.sites.indexing.urls.list", input, executeOptions),
|
|
375
377
|
getSiteBingData: (input, executeOptions) => execute("partner.sites.bing.data.get", input, executeOptions),
|
|
@@ -381,10 +383,15 @@ function createGscdumpV1Client(options) {
|
|
|
381
383
|
listSiteIndexNowSubmissionReceipts: (input, executeOptions) => execute("partner.sites.indexing.indexnow.submissions.list", input, executeOptions),
|
|
382
384
|
getSiteBingConnection: (input, executeOptions) => execute("partner.sites.indexing.bing.connection.get", input, executeOptions),
|
|
383
385
|
verifySiteBingConnection: (input, executeOptions) => execute("partner.sites.indexing.bing.connection.verify", input, executeOptions),
|
|
386
|
+
linkSiteBing: (input, executeOptions) => execute("partner.sites.indexing.bing.link.create", input, executeOptions),
|
|
387
|
+
createSiteBingAuthorization: (input, executeOptions) => execute("partner.sites.indexing.bing.authorization.create", input, executeOptions),
|
|
388
|
+
submitSiteBingSitemap: (input, executeOptions) => execute("partner.sites.indexing.bing.sitemaps.submit", input, executeOptions),
|
|
384
389
|
listSiteIndexingTransitions: (input, executeOptions) => execute("partner.sites.indexing.transitions.list", input, executeOptions),
|
|
385
390
|
getSiteIndexingDiagnostics: (input, executeOptions) => execute("partner.sites.indexing.diagnostics.get", input, executeOptions),
|
|
386
391
|
getSiteSitemaps: (input, executeOptions) => execute("partner.sites.sitemaps.get", input, executeOptions),
|
|
387
392
|
getSiteSitemapChanges: (input, executeOptions) => execute("partner.sites.sitemaps.changes.get", input, executeOptions),
|
|
393
|
+
getSiteSitemapSubmission: (input, executeOptions) => execute("partner.sites.sitemaps.submission.get", input, executeOptions),
|
|
394
|
+
submitSiteSitemap: (input, executeOptions) => execute("partner.sites.sitemaps.submission.create", input, executeOptions),
|
|
388
395
|
listSitemapUrls: (input, executeOptions) => execute("partner.sites.sitemaps.urls.get", input, executeOptions),
|
|
389
396
|
getSitemapExport: (input, executeOptions) => execute("partner.sites.sitemaps.export.get", input, executeOptions),
|
|
390
397
|
getSiteAnalysis: (input, executeOptions) => execute("partner.sites.analysis.get", input, executeOptions),
|
package/dist/webhook.d.mts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { CANONICAL_WEBHOOK_EVENTS, 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";
|
|
1
|
+
import { CANONICAL_WEBHOOK_EVENTS, CanonicalWebhookEnvelope, 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";
|
|
2
2
|
export declare function signWebhookPayload(payload: string | object, secret: string): Promise<string>;
|
|
3
3
|
export declare function verifyWebhookSignature(payload: string | object, signature: string | null | undefined, secret: string): Promise<boolean>;
|
|
4
|
-
export
|
|
4
|
+
export interface ParseWebhookPayloadOptions {
|
|
5
5
|
secret?: string;
|
|
6
6
|
signature?: string | null;
|
|
7
7
|
headers?: PartnerWebhookHeaders | Headers;
|
|
8
8
|
validateSignature?: boolean;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Verify and parse a webhook delivery. Without a type argument the result is
|
|
12
|
+
* discriminated on `event`, so narrowing on `'user.allowance.notice'` gives a
|
|
13
|
+
* typed, validated `data`. With a type argument the result is
|
|
14
|
+
* `WebhookEnvelope<TData>`, and only the typed events have validated `data`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseWebhookPayload(payload: string | object, options?: ParseWebhookPayloadOptions): Promise<CanonicalWebhookEnvelope>;
|
|
17
|
+
export declare function parseWebhookPayload<TData extends Record<string, unknown>>(payload: string | object, options?: ParseWebhookPayloadOptions): Promise<WebhookEnvelope<TData>>;
|
|
10
18
|
export declare function readWebhookHeaders(headers: Headers | PartnerWebhookHeaders | null | undefined): Required<PartnerWebhookHeaders>;
|
|
11
19
|
export { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.0",
|
|
5
5
|
"description": "Consumer SDK for hosted gscdump.com integrations.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
"node": ">=22.13.0"
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
|
-
"@gscdump/contracts": "^4.
|
|
148
|
-
"gscdump": "^4.
|
|
147
|
+
"@gscdump/contracts": "^4.8.0",
|
|
148
|
+
"gscdump": "^4.8.0",
|
|
149
149
|
"ofetch": "^1.5.1",
|
|
150
150
|
"zod": "^4.6.5"
|
|
151
151
|
},
|