@gscdump/sdk 1.4.0 → 1.4.2

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.
@@ -1,4 +1,4 @@
1
- import { PartnerApiError } from "./_chunks/errors.mjs";
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.0",
4
+ "version": "1.4.2",
5
5
  "description": "Consumer SDK for hosted gscdump.com integrations.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -135,6 +135,16 @@
135
135
  "types": "./dist/v1/index.d.mts",
136
136
  "import": "./dist/v1/index.mjs",
137
137
  "default": "./dist/v1/index.mjs"
138
+ },
139
+ "./v1/http": {
140
+ "types": "./dist/v1/http.d.mts",
141
+ "import": "./dist/v1/http.mjs",
142
+ "default": "./dist/v1/http.mjs"
143
+ },
144
+ "./v1/realtime": {
145
+ "types": "./dist/v1/realtime.d.mts",
146
+ "import": "./dist/v1/realtime.mjs",
147
+ "default": "./dist/v1/realtime.mjs"
138
148
  }
139
149
  },
140
150
  "main": "./dist/index.mjs",
@@ -148,10 +158,10 @@
148
158
  "dependencies": {
149
159
  "ofetch": "^1.5.1",
150
160
  "zod": "^4.4.3",
151
- "@gscdump/analysis": "^1.4.0",
152
- "@gscdump/engine": "^1.4.0",
153
- "gscdump": "^1.4.0",
154
- "@gscdump/contracts": "^1.4.0"
161
+ "@gscdump/contracts": "^1.4.2",
162
+ "@gscdump/engine": "^1.4.2",
163
+ "gscdump": "^1.4.2",
164
+ "@gscdump/analysis": "^1.4.2"
155
165
  },
156
166
  "devDependencies": {
157
167
  "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