@sneekin/sdk 0.3.2 → 1.1.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/core/client.d.ts +24 -0
- package/dist/core/derive-keys.d.ts +6 -0
- package/dist/core/generated/api.d.ts +3490 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/index.cjs +223 -0
- package/dist/index.d.ts +2 -118
- package/dist/index.js +127 -129
- package/dist/messages/client.d.ts +15 -0
- package/dist/messages/index.cjs +170 -0
- package/dist/messages/index.d.ts +2 -0
- package/dist/messages/index.js +140 -0
- package/dist/pay/index.cjs +223 -0
- package/dist/pay/index.d.ts +2 -0
- package/dist/pay/index.js +192 -0
- package/dist/pay/payments.d.ts +90 -0
- package/dist/verify/approval-store.d.ts +22 -0
- package/dist/verify/auth-schema.d.ts +97 -0
- package/dist/verify/handler.d.ts +41 -0
- package/dist/verify/index.cjs +471 -0
- package/dist/verify/index.d.ts +3 -0
- package/dist/verify/index.js +441 -0
- package/package.json +67 -47
- package/README.md +0 -134
- package/dist/index.d.mts +0 -118
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -168
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface SneekClientOptions {
|
|
2
|
+
apiUrl: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
fetch?: typeof fetch;
|
|
5
|
+
maxRetries?: number;
|
|
6
|
+
retryBaseMs?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class SneekApiError extends Error {
|
|
9
|
+
status: number;
|
|
10
|
+
type: string;
|
|
11
|
+
title: string;
|
|
12
|
+
detail?: string | undefined;
|
|
13
|
+
constructor(status: number, type: string, title: string, detail?: string | undefined);
|
|
14
|
+
}
|
|
15
|
+
export declare class SneekClient {
|
|
16
|
+
private readonly apiUrl;
|
|
17
|
+
private readonly apiKey;
|
|
18
|
+
private readonly fetchImpl;
|
|
19
|
+
private readonly maxRetries;
|
|
20
|
+
private readonly retryBaseMs;
|
|
21
|
+
constructor(options: SneekClientOptions);
|
|
22
|
+
request<T>(method: string, path: string, body?: unknown, extraHeaders?: Record<string, string>): Promise<T>;
|
|
23
|
+
private backoff;
|
|
24
|
+
}
|