@pcific/sdk 0.0.0-stage → 0.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/auth.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ export type PcificMode = "test" | "live";
2
+ export interface ResolvePcificAuthOptions {
3
+ apiKey?: string;
4
+ liveKey?: string;
5
+ testKey?: string;
6
+ mode?: PcificMode | string;
7
+ env?: Record<string, string | undefined>;
8
+ warn?: (message: string) => void;
9
+ }
10
+ export interface ResolvedPcificAuth {
11
+ apiKey: string;
12
+ mode: PcificMode;
13
+ source: "apiKey" | "liveKey" | "testKey" | "PCIFIC_LIVE_KEY" | "PCIFIC_TEST_KEY";
14
+ }
15
+ /**
16
+ * Resolves the PCIFIC API key using explicit PCIFIC_MODE selection.
17
+ * Defaults to "live" when NODE_ENV === "production" and "test" otherwise.
18
+ * Empty PCIFIC_MODE ("") is treated as unset.
19
+ */
20
+ export declare function resolvePcificAuth(options?: ResolvePcificAuthOptions): ResolvedPcificAuth;
21
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;CAClF;AAgDD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,kBAAkB,CAoE5F"}
package/dist/auth.js ADDED
@@ -0,0 +1,86 @@
1
+ import { PcificConfigError } from "./errors.js";
2
+ function readDefaultEnv() {
3
+ if (typeof globalThis !== "undefined" && "process" in globalThis) {
4
+ // SAFETY: We just verified "process" exists on globalThis; reading optional process.env is safe in Node and edge runtimes.
5
+ const proc = globalThis.process;
6
+ if (proc?.env)
7
+ return proc.env;
8
+ }
9
+ return {};
10
+ }
11
+ function nonEmpty(value) {
12
+ if (value === undefined)
13
+ return undefined;
14
+ const trimmed = value.trim();
15
+ return trimmed.length > 0 ? trimmed : undefined;
16
+ }
17
+ function resolveMode(explicitMode, envMode, nodeEnv) {
18
+ const raw = nonEmpty(explicitMode) ?? nonEmpty(envMode);
19
+ if (raw === undefined) {
20
+ return nodeEnv === "production" ? "live" : "test";
21
+ }
22
+ if (raw === "live" || raw === "test") {
23
+ return raw;
24
+ }
25
+ throw new PcificConfigError(`Invalid PCIFIC_MODE "${raw}". Expected "test" or "live".`, {
26
+ code: "INVALID_PCIFIC_MODE",
27
+ tryThis: 'Set PCIFIC_MODE to "test" or "live", or leave it unset to default to "live" in production and "test" elsewhere.',
28
+ });
29
+ }
30
+ /**
31
+ * Resolves the PCIFIC API key using explicit PCIFIC_MODE selection.
32
+ * Defaults to "live" when NODE_ENV === "production" and "test" otherwise.
33
+ * Empty PCIFIC_MODE ("") is treated as unset.
34
+ */
35
+ export function resolvePcificAuth(options = {}) {
36
+ const env = options.env ?? readDefaultEnv();
37
+ const warn = options.warn ?? ((message) => console.warn(message));
38
+ const isProduction = env.NODE_ENV === "production";
39
+ const directKey = nonEmpty(options.apiKey);
40
+ if (directKey !== undefined) {
41
+ const inferredMode = directKey.startsWith("pcific_live_")
42
+ ? "live"
43
+ : directKey.startsWith("pcific_test_")
44
+ ? "test"
45
+ : resolveMode(options.mode, env.PCIFIC_MODE, env.NODE_ENV);
46
+ if (inferredMode === "live" && !isProduction) {
47
+ warn('[pcific] Using a live API key outside production (NODE_ENV !== "production").');
48
+ }
49
+ return { apiKey: directKey, mode: inferredMode, source: "apiKey" };
50
+ }
51
+ const mode = resolveMode(options.mode, env.PCIFIC_MODE, env.NODE_ENV);
52
+ if (mode === "live") {
53
+ const explicitLive = nonEmpty(options.liveKey);
54
+ const envLive = nonEmpty(env.PCIFIC_LIVE_KEY);
55
+ const key = explicitLive ?? envLive;
56
+ if (!key) {
57
+ throw new PcificConfigError('Missing PCIFIC live API key for mode "live". Set PCIFIC_LIVE_KEY or pass liveKey.', {
58
+ code: "MISSING_LIVE_KEY",
59
+ tryThis: 'Set the PCIFIC_LIVE_KEY environment variable, or set PCIFIC_MODE="test" to use PCIFIC_TEST_KEY.',
60
+ });
61
+ }
62
+ if (!isProduction) {
63
+ warn("[pcific] Using PCIFIC_LIVE_KEY outside production (PCIFIC_MODE=live).");
64
+ }
65
+ return {
66
+ apiKey: key,
67
+ mode: "live",
68
+ source: explicitLive ? "liveKey" : "PCIFIC_LIVE_KEY",
69
+ };
70
+ }
71
+ const explicitTest = nonEmpty(options.testKey);
72
+ const envTest = nonEmpty(env.PCIFIC_TEST_KEY);
73
+ const key = explicitTest ?? envTest;
74
+ if (!key) {
75
+ throw new PcificConfigError('Missing PCIFIC test API key for mode "test". Set PCIFIC_TEST_KEY or pass testKey.', {
76
+ code: "MISSING_TEST_KEY",
77
+ tryThis: "Set the PCIFIC_TEST_KEY environment variable, or pass testKey / apiKey when constructing the client.",
78
+ });
79
+ }
80
+ return {
81
+ apiKey: key,
82
+ mode: "test",
83
+ source: explicitTest ? "testKey" : "PCIFIC_TEST_KEY",
84
+ };
85
+ }
86
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","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CACzB,mFAAmF,EACnF;gBACE,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,iGAAiG;aAC3G,CACF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,IAAI,CAAC,uEAAuE,CAAC,CAAC;QAChF,CAAC;QAED,OAAO;YACL,MAAM,EAAE,GAAG;YACX,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB;SACrD,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,YAAY,IAAI,OAAO,CAAC;IAEpC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,iBAAiB,CACzB,mFAAmF,EACnF;YACE,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,sGAAsG;SAChH,CACF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB;KACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,325 @@
1
+ import { type PcificMode, type ResolvePcificAuthOptions } from "./auth.js";
2
+ import { PcificHttpClient, type RequestOptions } from "./http.js";
3
+ import { type JsonObject } from "./json.js";
4
+ import { type UploadInput } from "./multipart.js";
5
+ import { type SseFrame } from "./sse.js";
6
+ import { type JsonWebKeySet, type VerifyMessageCheckReceiptOptions, type VerifyMessageCheckReceiptResult, type VerifyPixelTraceManifestOptions, type VerifyPixelTraceManifestResult } from "./verify.js";
7
+ export interface PcificClientOptions extends ResolvePcificAuthOptions {
8
+ baseUrl?: string;
9
+ signingSecret?: string;
10
+ marketplaceId?: string;
11
+ testAiStub?: boolean;
12
+ fetch?: typeof globalThis.fetch;
13
+ maxRetries?: number;
14
+ baseDelayMs?: number;
15
+ maxDelayMs?: number;
16
+ sleep?: (ms: number) => Promise<void>;
17
+ now?: () => number;
18
+ random?: () => number;
19
+ aiNoticeTtlMs?: number;
20
+ }
21
+ export interface MoneyMinorUnits {
22
+ amount: number;
23
+ currency: string;
24
+ }
25
+ export interface WaitOptions extends RequestOptions {
26
+ mode?: "sse" | "poll";
27
+ pollIntervalMs?: number;
28
+ timeoutMs?: number;
29
+ onStatus?: (snapshot: JsonObject) => void;
30
+ }
31
+ export interface GetAiNoticeOptions extends RequestOptions {
32
+ ttlMs?: number;
33
+ forceRefresh?: boolean;
34
+ }
35
+ export interface CreateListingInput {
36
+ notes?: string | null;
37
+ details?: JsonObject | null;
38
+ images?: string[] | null;
39
+ category?: string | null;
40
+ price?: boolean | null;
41
+ safeguard?: boolean | null;
42
+ faq?: boolean | null;
43
+ modelTier?: "standard" | "ultra-fast" | null;
44
+ listingRef?: string | null;
45
+ editChat?: boolean | null;
46
+ }
47
+ export interface CreateReviewInput {
48
+ category?: string | null;
49
+ listing?: JsonObject | null;
50
+ images?: string[] | null;
51
+ requirePhotos?: boolean | null;
52
+ sellerNotes?: string | null;
53
+ orbitRunId?: string | null;
54
+ review?: boolean | null;
55
+ faq?: boolean | null;
56
+ rewrite?: boolean | string[] | null;
57
+ modelTier?: "standard" | "ultra-fast" | null;
58
+ listingRef?: string | null;
59
+ }
60
+ export interface AskPcificInput {
61
+ question: string;
62
+ quotes?: boolean;
63
+ modelTier?: "standard" | "ultra-fast" | null;
64
+ conversationId?: string | null;
65
+ buyer?: {
66
+ accountId?: string | null;
67
+ } | null;
68
+ item?: {
69
+ id?: string | number | null;
70
+ type?: string | null;
71
+ title?: string | null;
72
+ url?: string | null;
73
+ reservedForAccountId?: string | null;
74
+ price?: MoneyMinorUnits;
75
+ details?: Record<string, string | number | boolean | null> | null;
76
+ } | null;
77
+ }
78
+ export interface MessageCheckSender {
79
+ id?: string;
80
+ accountCreatedAt?: string;
81
+ accountAgeDays?: number;
82
+ completedOrders?: number;
83
+ }
84
+ export interface MessageCheckInput {
85
+ text: string;
86
+ conversationId?: string;
87
+ sender?: MessageCheckSender;
88
+ context?: {
89
+ orderPlaced?: boolean;
90
+ recentMessages?: Array<{
91
+ text: string;
92
+ fromSender: boolean;
93
+ }>;
94
+ };
95
+ confirmToken?: string;
96
+ metadata?: JsonObject;
97
+ }
98
+ export interface MessageCheckPresentInput {
99
+ conversationId?: string;
100
+ messages: Array<{
101
+ id: string;
102
+ text: string;
103
+ sender?: MessageCheckSender;
104
+ context?: {
105
+ orderPlaced?: boolean;
106
+ };
107
+ }>;
108
+ }
109
+ export interface MessageCheckVerifyOnlineInput {
110
+ receipt: string;
111
+ text: string;
112
+ maskedText?: string;
113
+ conversationId?: string;
114
+ senderId?: string;
115
+ }
116
+ export interface DisputePackPushListingInput {
117
+ listingRef: string;
118
+ listing: JsonObject | string;
119
+ occurredAt?: string;
120
+ photos?: UploadInput[];
121
+ }
122
+ export interface DisputePackRecordSaleInput {
123
+ listingRef: string;
124
+ buyerId: string;
125
+ orderId: string;
126
+ soldAt: string;
127
+ price: MoneyMinorUnits;
128
+ }
129
+ export interface DisputePackRecordMessageInput {
130
+ listingRef: string;
131
+ buyerId: string;
132
+ role: "buyer" | "seller";
133
+ messageId: string;
134
+ sentAt: string;
135
+ text: string;
136
+ attachments?: Array<{
137
+ name?: string;
138
+ contentType?: string;
139
+ }>;
140
+ }
141
+ export interface DisputePackRecordTrackingInput {
142
+ listingRef?: string;
143
+ orderId: string;
144
+ carrier: string;
145
+ trackingNumber: string;
146
+ events?: Array<{
147
+ at?: string;
148
+ status?: string;
149
+ location?: string;
150
+ }>;
151
+ deliveredAt?: string | null;
152
+ }
153
+ export interface DisputePackCreateDisputeInput {
154
+ listingRef: string;
155
+ buyerId: string;
156
+ orderId: string;
157
+ disputeId: string;
158
+ reason: string;
159
+ note?: string;
160
+ sellerEmail?: string;
161
+ }
162
+ export interface EmbedSessionInput {
163
+ origin: string;
164
+ tools: Array<"orbit" | "safeguard" | "ask-pcific" | "pixel-trace" | "message-check">;
165
+ minutes?: number;
166
+ chat?: {
167
+ conversationId?: string;
168
+ sender: MessageCheckSender & {
169
+ id: string;
170
+ };
171
+ orderPlaced?: boolean;
172
+ };
173
+ }
174
+ export declare class PcificClient {
175
+ readonly mode: PcificMode;
176
+ readonly http: PcificHttpClient;
177
+ private readonly aiNoticeCache;
178
+ private readonly defaultAiNoticeTtlMs;
179
+ constructor(options?: PcificClientOptions);
180
+ /**
181
+ * Reads and caches the shop's aiNotice from GET /api/v1/marketplace/settings.
182
+ * Explicitly preserves "" (empty string) as a cached valid value (never treating "" as a cache miss).
183
+ */
184
+ getAiNotice(options?: GetAiNoticeOptions): Promise<string>;
185
+ invalidateAiNoticeCache(marketplaceId?: string): void;
186
+ readonly images: {
187
+ upload: (files: UploadInput[], options?: RequestOptions) => Promise<{
188
+ images: JsonObject[];
189
+ problems?: JsonObject[];
190
+ }>;
191
+ get: (id: string, options?: RequestOptions) => Promise<JsonObject>;
192
+ delete: (id: string, options?: RequestOptions) => Promise<void>;
193
+ };
194
+ readonly orbit: {
195
+ createListing: (input: CreateListingInput, options?: RequestOptions) => Promise<JsonObject>;
196
+ getListing: (id: string, options?: RequestOptions) => Promise<JsonObject>;
197
+ streamListing: (idOrInput: string | CreateListingInput, options?: RequestOptions | undefined) => AsyncGenerator<SseFrame<JsonObject>, void, undefined>;
198
+ waitForListing: (idOrInput: string | CreateListingInput, options?: WaitOptions) => Promise<JsonObject>;
199
+ answerQuestions: (id: string, answers: Array<{
200
+ id: string;
201
+ answer: string;
202
+ }>, options?: RequestOptions) => Promise<JsonObject>;
203
+ retry: (id: string, options?: RequestOptions) => Promise<JsonObject>;
204
+ cancel: (id: string, options?: RequestOptions) => Promise<JsonObject>;
205
+ publish: (id: string, options?: RequestOptions) => Promise<JsonObject>;
206
+ check: (id: string, options?: RequestOptions) => Promise<JsonObject>;
207
+ submitEdits: (id: string, item: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
208
+ chat: (id: string, input: {
209
+ message: string;
210
+ } | {
211
+ accept: true;
212
+ }, options?: RequestOptions) => Promise<JsonObject>;
213
+ reportOutcome: (id: string, input: {
214
+ event: "published" | "abandoned";
215
+ changes?: Array<{
216
+ field: string;
217
+ percentChanged: number;
218
+ }>;
219
+ finalListing?: JsonObject | null;
220
+ }, options?: RequestOptions) => Promise<JsonObject>;
221
+ getSettings: (options?: RequestOptions) => Promise<JsonObject>;
222
+ updateSettings: (settings: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
223
+ };
224
+ readonly safeguard: {
225
+ createReview: (input: CreateReviewInput, options?: RequestOptions) => Promise<JsonObject>;
226
+ getReview: (id: string, options?: RequestOptions) => Promise<JsonObject>;
227
+ streamReview: (idOrInput: string | CreateReviewInput, options?: RequestOptions | undefined) => AsyncGenerator<SseFrame<JsonObject>, void, undefined>;
228
+ waitForReview: (idOrInput: string | CreateReviewInput, options?: WaitOptions) => Promise<JsonObject>;
229
+ answerQuestions: (id: string, answers: Array<{
230
+ id: string;
231
+ answer: string;
232
+ }>, options?: RequestOptions) => Promise<JsonObject>;
233
+ retry: (id: string, options?: RequestOptions) => Promise<JsonObject>;
234
+ getSettings: (options?: RequestOptions) => Promise<JsonObject>;
235
+ updateSettings: (settings: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
236
+ };
237
+ readonly askPcific: {
238
+ ask: (input: AskPcificInput, options?: RequestOptions) => Promise<JsonObject>;
239
+ askStream: (input: AskPcificInput, options?: RequestOptions | undefined) => AsyncGenerator<SseFrame<JsonObject>, void, undefined>;
240
+ getSettings: (options?: RequestOptions) => Promise<JsonObject>;
241
+ updateSettings: (settings: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
242
+ };
243
+ readonly pixelTrace: {
244
+ createCapture: (input: {
245
+ listingId: string;
246
+ listingTitle?: string;
247
+ listingRef?: string | null;
248
+ }, options?: RequestOptions) => Promise<JsonObject>;
249
+ getCapture: (captureId: string, options?: RequestOptions) => Promise<JsonObject>;
250
+ completeCapture: (captureId: string, input?: {
251
+ marketplaceName?: string;
252
+ listingUrl?: string;
253
+ }, options?: RequestOptions) => Promise<JsonObject>;
254
+ publishCapture: (captureId: string, input?: {
255
+ marketplaceName?: string;
256
+ listingUrl?: string;
257
+ }, options?: RequestOptions) => Promise<JsonObject>;
258
+ retractCapture: (captureId: string, options?: RequestOptions) => Promise<JsonObject>;
259
+ checkPhoto: (photo: UploadInput, options?: RequestOptions) => Promise<JsonObject>;
260
+ getCertificate: (code: string, options?: RequestOptions) => Promise<JsonObject>;
261
+ getJwks: (options?: RequestOptions) => Promise<JsonWebKeySet>;
262
+ verifyManifest: (input: Omit<VerifyPixelTraceManifestOptions, "fetch" | "jwksUrl"> & {
263
+ jwksUrl?: string;
264
+ }) => Promise<VerifyPixelTraceManifestResult>;
265
+ uploadTestPhoto: (captureId: string, photo: UploadInput, options?: RequestOptions) => Promise<JsonObject>;
266
+ confirmTestCapture: (captureId: string, input?: {
267
+ photoIds?: string[];
268
+ }, options?: RequestOptions) => Promise<JsonObject>;
269
+ };
270
+ readonly messageCheck: {
271
+ check: (input: MessageCheckInput, options?: RequestOptions) => Promise<JsonObject>;
272
+ present: (input: MessageCheckPresentInput, options?: RequestOptions) => Promise<JsonObject>;
273
+ verifyReceiptOnline: (input: MessageCheckVerifyOnlineInput, options?: RequestOptions) => Promise<JsonObject>;
274
+ verifyReceiptOffline: (input: Omit<VerifyMessageCheckReceiptOptions, "fetch" | "jwksUrl"> & {
275
+ jwksUrl?: string;
276
+ }) => Promise<VerifyMessageCheckReceiptResult>;
277
+ getPolicy: (options?: RequestOptions) => Promise<JsonObject>;
278
+ updatePolicy: (policy: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
279
+ listFlags: (query?: {
280
+ verdict?: string;
281
+ review?: string;
282
+ limit?: number;
283
+ before?: string;
284
+ }, options?: RequestOptions) => Promise<JsonObject>;
285
+ reviewFlag: (id: string, review: "correct" | "wrong" | null, options?: RequestOptions) => Promise<JsonObject>;
286
+ };
287
+ readonly disputePack: {
288
+ pushListing: (input: DisputePackPushListingInput, options?: RequestOptions) => Promise<JsonObject>;
289
+ captureListing: (input: {
290
+ listingRef: string;
291
+ url: string;
292
+ occurredAt?: string;
293
+ }, options?: RequestOptions) => Promise<JsonObject>;
294
+ recordSale: (input: DisputePackRecordSaleInput, options?: RequestOptions) => Promise<JsonObject>;
295
+ recordMessage: (input: DisputePackRecordMessageInput, options?: RequestOptions) => Promise<JsonObject>;
296
+ recordTracking: (input: DisputePackRecordTrackingInput, options?: RequestOptions) => Promise<JsonObject>;
297
+ createDispute: (input: DisputePackCreateDisputeInput, options?: RequestOptions) => Promise<JsonObject>;
298
+ getDispute: (id: string, query?: {
299
+ version?: number;
300
+ }, options?: RequestOptions) => Promise<JsonObject>;
301
+ getDisputePdf: (id: string, query?: {
302
+ version?: number;
303
+ }, options?: RequestOptions) => Promise<Uint8Array>;
304
+ releaseDispute: (id: string, input: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
305
+ };
306
+ readonly embed: {
307
+ createSession: (input: EmbedSessionInput, options?: RequestOptions) => Promise<JsonObject>;
308
+ getBranding: (options?: RequestOptions) => Promise<JsonObject>;
309
+ updateBranding: (branding: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
310
+ };
311
+ readonly account: {
312
+ getKey: (options?: RequestOptions) => Promise<JsonObject>;
313
+ getMe: (options?: RequestOptions) => Promise<JsonObject>;
314
+ getUsage: (query?: {
315
+ keyKind?: "live" | "test";
316
+ from?: string;
317
+ to?: string;
318
+ }, options?: RequestOptions) => Promise<JsonObject>;
319
+ listMarketplaces: (options?: RequestOptions) => Promise<JsonObject>;
320
+ getSettings: (options?: RequestOptions) => Promise<JsonObject>;
321
+ updateSettings: (settings: JsonObject, options?: RequestOptions) => Promise<JsonObject>;
322
+ };
323
+ }
324
+ export declare function createPcificClient(options?: PcificClientOptions): PcificClient;
325
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACpC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AA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