@zeroxyz/sdk 0.10.0 → 0.12.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/CHANGELOG.md +18 -0
- package/README.md +18 -4
- package/dist/{chunk-A7WZYQXS.js → chunk-KDWESC42.js} +55 -5
- package/dist/chunk-KDWESC42.js.map +1 -0
- package/dist/{chunk-IFVGW4ZN.cjs → chunk-O7424YAR.cjs} +55 -5
- package/dist/chunk-O7424YAR.cjs.map +1 -0
- package/dist/{client-D_ohktBl.d.cts → client-DLwdMDSu.d.cts} +20 -1
- package/dist/{client-D_ohktBl.d.ts → client-DLwdMDSu.d.ts} +20 -1
- package/dist/index.cjs +44 -44
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-A7WZYQXS.js.map +0 -1
- package/dist/chunk-IFVGW4ZN.cjs.map +0 -1
|
@@ -200,6 +200,7 @@ declare const userWalletDtoSchema: z.ZodObject<{
|
|
|
200
200
|
}>;
|
|
201
201
|
isPrimary: z.ZodBoolean;
|
|
202
202
|
linkedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
203
|
+
importedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
203
204
|
delegationGranted: z.ZodBoolean;
|
|
204
205
|
signerQuorumId: z.ZodNullable<z.ZodString>;
|
|
205
206
|
maxTransactionUsdcBaseUnits: z.ZodNullable<z.ZodNumber>;
|
|
@@ -223,6 +224,7 @@ declare const internalUserDtoSchema: z.ZodObject<{
|
|
|
223
224
|
}>;
|
|
224
225
|
isPrimary: z.ZodBoolean;
|
|
225
226
|
linkedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
227
|
+
importedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
226
228
|
delegationGranted: z.ZodBoolean;
|
|
227
229
|
signerQuorumId: z.ZodNullable<z.ZodString>;
|
|
228
230
|
maxTransactionUsdcBaseUnits: z.ZodNullable<z.ZodNumber>;
|
|
@@ -543,6 +545,7 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
543
545
|
request: z.ZodUnknown;
|
|
544
546
|
response: z.ZodUnknown;
|
|
545
547
|
}, z.core.$strip>>;
|
|
548
|
+
exampleRequest: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
546
549
|
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
547
550
|
exampleAgentPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
551
|
whatItDoes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -855,6 +858,19 @@ type FundingUrlOptions = {
|
|
|
855
858
|
provider?: "stripe" | "coinbase";
|
|
856
859
|
signal?: AbortSignal;
|
|
857
860
|
};
|
|
861
|
+
type ImportWalletOptions = {
|
|
862
|
+
privateKey: string;
|
|
863
|
+
makePrimary?: boolean;
|
|
864
|
+
signal?: AbortSignal;
|
|
865
|
+
};
|
|
866
|
+
type SetPrimaryWalletOptions = {
|
|
867
|
+
walletAddress: string;
|
|
868
|
+
signal?: AbortSignal;
|
|
869
|
+
};
|
|
870
|
+
type RemoveWalletOptions = {
|
|
871
|
+
walletAddress: string;
|
|
872
|
+
signal?: AbortSignal;
|
|
873
|
+
};
|
|
858
874
|
declare class Wallet {
|
|
859
875
|
private readonly client;
|
|
860
876
|
private readonly clients;
|
|
@@ -870,6 +886,9 @@ declare class Wallet {
|
|
|
870
886
|
provision: (opts?: {
|
|
871
887
|
signal?: AbortSignal;
|
|
872
888
|
}) => Promise<UserWalletDto>;
|
|
889
|
+
import: (opts: ImportWalletOptions) => Promise<UserWalletDto>;
|
|
890
|
+
setPrimary: (opts: SetPrimaryWalletOptions) => Promise<UserWalletDto>;
|
|
891
|
+
remove: (opts: RemoveWalletOptions) => Promise<void>;
|
|
873
892
|
fundingUrl: (opts?: FundingUrlOptions) => Promise<string>;
|
|
874
893
|
private getPublicClient;
|
|
875
894
|
/**
|
|
@@ -1116,4 +1135,4 @@ declare class ZeroClient {
|
|
|
1116
1135
|
close: () => Promise<void>;
|
|
1117
1136
|
}
|
|
1118
1137
|
|
|
1119
|
-
export { type
|
|
1138
|
+
export { type Logger as $, type AccountCredentials as A, type BalanceChainId as B, type Credentials as C, TEMPO_TESTNET_CHAIN_ID as D, tempoChainLabelFromId as E, type FetchOptions as F, type BalanceOptions as G, type BalanceReadError as H, type FundingUrlOptions as I, type ImportWalletOptions as J, type RemoveWalletOptions as K, type SetPrimaryWalletOptions as L, Wallet as M, type NoCredentials as N, type OnSessionRefreshed as O, type PaymentSessionMeta as P, type ClientOptions as Q, Runs as R, type SessionCredentials as S, TEMPO_CHAIN_ID as T, USDC_BASE as U, DEFAULT_BASE_URL as V, type WalletBalance as W, DEFAULT_MAX_RETRIES as X, DEFAULT_TIMEOUT_MS as Y, ZeroClient as Z, type LogEvent as _, type SessionCredentialsInput as a, type LogLevel as a0, type AgentAuthEndpoints as a1, type AgentClaimAttempt as a2, type AgentRegistration as a3, type AgentSignupResult as a4, type AgentToken as a5, type AgentVerifiedIdentity as a6, type AgentZeroSession as a7, type CompleteClaimResult as a8, type InternalUserDto as a9, type PublicUserDto as aa, type UserWalletDto as ab, type WelcomeBonusSummary as ac, BUG_REPORT_CATEGORIES as ad, type BugReportCategory as ae, type CreateBugReportInput as af, type CreateBugReportResponse as ag, type CapabilityResponse as ah, type GetCapabilityOptions as ai, type ResolveCapabilityResponse as aj, type DevicePollResult as ak, type DeviceStartResponse as al, type SessionExchangeResponse as am, type BatchReviewResponse as an, type CreateReviewInput as ao, type CreateReviewResponse as ap, type CreateRunInput as aq, type CreateRunResponse as ar, type ListRunsParams as as, type ListRunsResponse as at, type RunDetail as au, type RunListItem as av, type SearchOptions as aw, type SearchResponse as ax, type SearchResult as ay, USDC_DECIMALS as b, USDC_TEMPO as c, type FetchOutcome as d, type FetchResult as e, type UpstreamError as f, type SignMessageInput as g, type SignTransactionInput as h, isShortToken as i, type SignTypedDataInput as j, Auth as k, AuthAgent as l, AuthDevice as m, BugReports as n, Capabilities as o, type PayInput as p, type PaymentChain as q, type PaymentProtocol as r, type PaymentResult as s, type PayResult as t, type SessionReceiptPayload as u, coerceTempoChainId as v, FETCH_SKIP_REASONS as w, FETCH_WARNINGS as x, Payments as y, paymentHasAnchor as z };
|
|
@@ -200,6 +200,7 @@ declare const userWalletDtoSchema: z.ZodObject<{
|
|
|
200
200
|
}>;
|
|
201
201
|
isPrimary: z.ZodBoolean;
|
|
202
202
|
linkedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
203
|
+
importedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
203
204
|
delegationGranted: z.ZodBoolean;
|
|
204
205
|
signerQuorumId: z.ZodNullable<z.ZodString>;
|
|
205
206
|
maxTransactionUsdcBaseUnits: z.ZodNullable<z.ZodNumber>;
|
|
@@ -223,6 +224,7 @@ declare const internalUserDtoSchema: z.ZodObject<{
|
|
|
223
224
|
}>;
|
|
224
225
|
isPrimary: z.ZodBoolean;
|
|
225
226
|
linkedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
227
|
+
importedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>>>;
|
|
226
228
|
delegationGranted: z.ZodBoolean;
|
|
227
229
|
signerQuorumId: z.ZodNullable<z.ZodString>;
|
|
228
230
|
maxTransactionUsdcBaseUnits: z.ZodNullable<z.ZodNumber>;
|
|
@@ -543,6 +545,7 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
543
545
|
request: z.ZodUnknown;
|
|
544
546
|
response: z.ZodUnknown;
|
|
545
547
|
}, z.core.$strip>>;
|
|
548
|
+
exampleRequest: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
546
549
|
tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
547
550
|
exampleAgentPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
551
|
whatItDoes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -855,6 +858,19 @@ type FundingUrlOptions = {
|
|
|
855
858
|
provider?: "stripe" | "coinbase";
|
|
856
859
|
signal?: AbortSignal;
|
|
857
860
|
};
|
|
861
|
+
type ImportWalletOptions = {
|
|
862
|
+
privateKey: string;
|
|
863
|
+
makePrimary?: boolean;
|
|
864
|
+
signal?: AbortSignal;
|
|
865
|
+
};
|
|
866
|
+
type SetPrimaryWalletOptions = {
|
|
867
|
+
walletAddress: string;
|
|
868
|
+
signal?: AbortSignal;
|
|
869
|
+
};
|
|
870
|
+
type RemoveWalletOptions = {
|
|
871
|
+
walletAddress: string;
|
|
872
|
+
signal?: AbortSignal;
|
|
873
|
+
};
|
|
858
874
|
declare class Wallet {
|
|
859
875
|
private readonly client;
|
|
860
876
|
private readonly clients;
|
|
@@ -870,6 +886,9 @@ declare class Wallet {
|
|
|
870
886
|
provision: (opts?: {
|
|
871
887
|
signal?: AbortSignal;
|
|
872
888
|
}) => Promise<UserWalletDto>;
|
|
889
|
+
import: (opts: ImportWalletOptions) => Promise<UserWalletDto>;
|
|
890
|
+
setPrimary: (opts: SetPrimaryWalletOptions) => Promise<UserWalletDto>;
|
|
891
|
+
remove: (opts: RemoveWalletOptions) => Promise<void>;
|
|
873
892
|
fundingUrl: (opts?: FundingUrlOptions) => Promise<string>;
|
|
874
893
|
private getPublicClient;
|
|
875
894
|
/**
|
|
@@ -1116,4 +1135,4 @@ declare class ZeroClient {
|
|
|
1116
1135
|
close: () => Promise<void>;
|
|
1117
1136
|
}
|
|
1118
1137
|
|
|
1119
|
-
export { type
|
|
1138
|
+
export { type Logger as $, type AccountCredentials as A, type BalanceChainId as B, type Credentials as C, TEMPO_TESTNET_CHAIN_ID as D, tempoChainLabelFromId as E, type FetchOptions as F, type BalanceOptions as G, type BalanceReadError as H, type FundingUrlOptions as I, type ImportWalletOptions as J, type RemoveWalletOptions as K, type SetPrimaryWalletOptions as L, Wallet as M, type NoCredentials as N, type OnSessionRefreshed as O, type PaymentSessionMeta as P, type ClientOptions as Q, Runs as R, type SessionCredentials as S, TEMPO_CHAIN_ID as T, USDC_BASE as U, DEFAULT_BASE_URL as V, type WalletBalance as W, DEFAULT_MAX_RETRIES as X, DEFAULT_TIMEOUT_MS as Y, ZeroClient as Z, type LogEvent as _, type SessionCredentialsInput as a, type LogLevel as a0, type AgentAuthEndpoints as a1, type AgentClaimAttempt as a2, type AgentRegistration as a3, type AgentSignupResult as a4, type AgentToken as a5, type AgentVerifiedIdentity as a6, type AgentZeroSession as a7, type CompleteClaimResult as a8, type InternalUserDto as a9, type PublicUserDto as aa, type UserWalletDto as ab, type WelcomeBonusSummary as ac, BUG_REPORT_CATEGORIES as ad, type BugReportCategory as ae, type CreateBugReportInput as af, type CreateBugReportResponse as ag, type CapabilityResponse as ah, type GetCapabilityOptions as ai, type ResolveCapabilityResponse as aj, type DevicePollResult as ak, type DeviceStartResponse as al, type SessionExchangeResponse as am, type BatchReviewResponse as an, type CreateReviewInput as ao, type CreateReviewResponse as ap, type CreateRunInput as aq, type CreateRunResponse as ar, type ListRunsParams as as, type ListRunsResponse as at, type RunDetail as au, type RunListItem as av, type SearchOptions as aw, type SearchResponse as ax, type SearchResult as ay, USDC_DECIMALS as b, USDC_TEMPO as c, type FetchOutcome as d, type FetchResult as e, type UpstreamError as f, type SignMessageInput as g, type SignTransactionInput as h, isShortToken as i, type SignTypedDataInput as j, Auth as k, AuthAgent as l, AuthDevice as m, BugReports as n, Capabilities as o, type PayInput as p, type PaymentChain as q, type PaymentProtocol as r, type PaymentResult as s, type PayResult as t, type SessionReceiptPayload as u, coerceTempoChainId as v, FETCH_SKIP_REASONS as w, FETCH_WARNINGS as x, Payments as y, paymentHasAnchor as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO7424YAR_cjs = require('./chunk-O7424YAR.cjs');
|
|
4
4
|
|
|
5
5
|
// src/status.ts
|
|
6
6
|
var AVAILABILITY_BADGES = {
|
|
@@ -208,7 +208,7 @@ var coerceToType = (value, type) => {
|
|
|
208
208
|
};
|
|
209
209
|
var MAX_SCHEMA_DEPTH = 5;
|
|
210
210
|
var sampleValueFor = (fieldName, propSchema, depth = 0) => {
|
|
211
|
-
const node =
|
|
211
|
+
const node = chunkO7424YAR_cjs.asSchemaNode(propSchema);
|
|
212
212
|
const type = schemaType(node);
|
|
213
213
|
const enumFirst = Array.isArray(node?.enum) && node.enum.length > 0 ? node.enum[0] : void 0;
|
|
214
214
|
const fixed = node?.const ?? node?.example ?? node?.default ?? enumFirst;
|
|
@@ -216,7 +216,7 @@ var sampleValueFor = (fieldName, propSchema, depth = 0) => {
|
|
|
216
216
|
return coerceToType(fixed, type);
|
|
217
217
|
}
|
|
218
218
|
if (node && depth < MAX_SCHEMA_DEPTH) {
|
|
219
|
-
const props =
|
|
219
|
+
const props = chunkO7424YAR_cjs.asSchemaNode(node.properties);
|
|
220
220
|
if (props && (type === "object" || type === void 0)) {
|
|
221
221
|
const obj = {};
|
|
222
222
|
for (const [k, sub] of Object.entries(props)) {
|
|
@@ -225,7 +225,7 @@ var sampleValueFor = (fieldName, propSchema, depth = 0) => {
|
|
|
225
225
|
return obj;
|
|
226
226
|
}
|
|
227
227
|
if (type === "array") {
|
|
228
|
-
const items =
|
|
228
|
+
const items = chunkO7424YAR_cjs.asSchemaNode(node.items);
|
|
229
229
|
return items ? [sampleValueFor(fieldName, items, depth + 1)] : [];
|
|
230
230
|
}
|
|
231
231
|
}
|
|
@@ -254,163 +254,163 @@ var urlMatchesTemplate = (url, template) => {
|
|
|
254
254
|
|
|
255
255
|
Object.defineProperty(exports, "Auth", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkO7424YAR_cjs.Auth; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "AuthAgent", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkO7424YAR_cjs.AuthAgent; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "AuthDevice", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkO7424YAR_cjs.AuthDevice; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "BUG_REPORT_CATEGORIES", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkO7424YAR_cjs.BUG_REPORT_CATEGORIES; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "BugReports", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkO7424YAR_cjs.BugReports; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "Capabilities", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkO7424YAR_cjs.Capabilities; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "DEFAULT_BASE_URL", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkO7424YAR_cjs.DEFAULT_BASE_URL; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "DEFAULT_MAX_RETRIES", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkO7424YAR_cjs.DEFAULT_MAX_RETRIES; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "DEFAULT_TIMEOUT_MS", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkO7424YAR_cjs.DEFAULT_TIMEOUT_MS; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "FETCH_SKIP_REASONS", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkO7424YAR_cjs.FETCH_SKIP_REASONS; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "FETCH_WARNINGS", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkO7424YAR_cjs.FETCH_WARNINGS; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "Payments", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkO7424YAR_cjs.Payments; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "Runs", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkO7424YAR_cjs.Runs; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkO7424YAR_cjs.SDK_VERSION; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "TEMPO_CHAIN_ID", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkO7424YAR_cjs.TEMPO_CHAIN_ID; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "TEMPO_TESTNET_CHAIN_ID", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkO7424YAR_cjs.TEMPO_TESTNET_CHAIN_ID; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "USDC_BASE", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkO7424YAR_cjs.USDC_BASE; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "USDC_DECIMALS", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkO7424YAR_cjs.USDC_DECIMALS; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "USDC_TEMPO", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkO7424YAR_cjs.USDC_TEMPO; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "Wallet", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkO7424YAR_cjs.Wallet; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "ZeroAgentAuthError", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkO7424YAR_cjs.ZeroAgentAuthError; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "ZeroApiError", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkO7424YAR_cjs.ZeroApiError; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "ZeroAuthError", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkO7424YAR_cjs.ZeroAuthError; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "ZeroClient", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkO7424YAR_cjs.ZeroClient; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "ZeroConfigurationError", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkO7424YAR_cjs.ZeroConfigurationError; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "ZeroError", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkO7424YAR_cjs.ZeroError; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "ZeroPaymentError", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkO7424YAR_cjs.ZeroPaymentError; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "ZeroSessionCloseFailedError", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkO7424YAR_cjs.ZeroSessionCloseFailedError; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "ZeroTimeoutError", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkO7424YAR_cjs.ZeroTimeoutError; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "ZeroValidationError", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkO7424YAR_cjs.ZeroValidationError; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "ZeroWalletError", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkO7424YAR_cjs.ZeroWalletError; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "asSchemaNode", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkO7424YAR_cjs.asSchemaNode; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "coerceTempoChainId", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkO7424YAR_cjs.coerceTempoChainId; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "createManagedAccount", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkO7424YAR_cjs.createManagedAccount; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "extractInputEnvelope", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkO7424YAR_cjs.extractInputEnvelope; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "isShortToken", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkO7424YAR_cjs.isShortToken; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "normalizeTransportEnvelopeRequest", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkO7424YAR_cjs.normalizeTransportEnvelopeRequest; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "paymentHasAnchor", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkO7424YAR_cjs.paymentHasAnchor; }
|
|
406
406
|
});
|
|
407
407
|
Object.defineProperty(exports, "tempoChainLabelFromId", {
|
|
408
408
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunkO7424YAR_cjs.tempoChainLabelFromId; }
|
|
410
410
|
});
|
|
411
411
|
Object.defineProperty(exports, "unwrapTransportEnvelope", {
|
|
412
412
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
413
|
+
get: function () { return chunkO7424YAR_cjs.unwrapTransportEnvelope; }
|
|
414
414
|
});
|
|
415
415
|
exports.AVAILABILITY_BADGES = AVAILABILITY_BADGES;
|
|
416
416
|
exports.centsToDollars = centsToDollars;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-
|
|
2
|
-
export { A as AccountCredentials,
|
|
1
|
+
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-DLwdMDSu.cjs';
|
|
2
|
+
export { A as AccountCredentials, a1 as AgentAuthEndpoints, a2 as AgentClaimAttempt, a3 as AgentRegistration, a4 as AgentSignupResult, a5 as AgentToken, a6 as AgentVerifiedIdentity, a7 as AgentZeroSession, k as Auth, l as AuthAgent, m as AuthDevice, ad as BUG_REPORT_CATEGORIES, B as BalanceChainId, G as BalanceOptions, H as BalanceReadError, an as BatchReviewResponse, ae as BugReportCategory, n as BugReports, o as Capabilities, ah as CapabilityResponse, Q as ClientOptions, a8 as CompleteClaimResult, af as CreateBugReportInput, ag as CreateBugReportResponse, ao as CreateReviewInput, ap as CreateReviewResponse, aq as CreateRunInput, ar as CreateRunResponse, C as Credentials, V as DEFAULT_BASE_URL, X as DEFAULT_MAX_RETRIES, Y as DEFAULT_TIMEOUT_MS, ak as DevicePollResult, al as DeviceStartResponse, w as FETCH_SKIP_REASONS, x as FETCH_WARNINGS, F as FetchOptions, d as FetchOutcome, e as FetchResult, I as FundingUrlOptions, ai as GetCapabilityOptions, J as ImportWalletOptions, a9 as InternalUserDto, as as ListRunsParams, at as ListRunsResponse, _ as LogEvent, a0 as LogLevel, $ as Logger, N as NoCredentials, O as OnSessionRefreshed, p as PayInput, t as PayResult, q as PaymentChain, r as PaymentProtocol, s as PaymentResult, y as Payments, aa as PublicUserDto, K as RemoveWalletOptions, aj as ResolveCapabilityResponse, au as RunDetail, av as RunListItem, R as Runs, aw as SearchOptions, ax as SearchResponse, ay as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, am as SessionExchangeResponse, u as SessionReceiptPayload, L as SetPrimaryWalletOptions, g as SignMessageInput, h as SignTransactionInput, j as SignTypedDataInput, T as TEMPO_CHAIN_ID, D as TEMPO_TESTNET_CHAIN_ID, U as USDC_BASE, b as USDC_DECIMALS, c as USDC_TEMPO, f as UpstreamError, ab as UserWalletDto, M as Wallet, W as WalletBalance, ac as WelcomeBonusSummary, v as coerceTempoChainId, i as isShortToken, z as paymentHasAnchor, E as tempoChainLabelFromId } from './client-DLwdMDSu.cjs';
|
|
3
3
|
import { Address, LocalAccount } from 'viem';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-
|
|
2
|
-
export { A as AccountCredentials,
|
|
1
|
+
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-DLwdMDSu.js';
|
|
2
|
+
export { A as AccountCredentials, a1 as AgentAuthEndpoints, a2 as AgentClaimAttempt, a3 as AgentRegistration, a4 as AgentSignupResult, a5 as AgentToken, a6 as AgentVerifiedIdentity, a7 as AgentZeroSession, k as Auth, l as AuthAgent, m as AuthDevice, ad as BUG_REPORT_CATEGORIES, B as BalanceChainId, G as BalanceOptions, H as BalanceReadError, an as BatchReviewResponse, ae as BugReportCategory, n as BugReports, o as Capabilities, ah as CapabilityResponse, Q as ClientOptions, a8 as CompleteClaimResult, af as CreateBugReportInput, ag as CreateBugReportResponse, ao as CreateReviewInput, ap as CreateReviewResponse, aq as CreateRunInput, ar as CreateRunResponse, C as Credentials, V as DEFAULT_BASE_URL, X as DEFAULT_MAX_RETRIES, Y as DEFAULT_TIMEOUT_MS, ak as DevicePollResult, al as DeviceStartResponse, w as FETCH_SKIP_REASONS, x as FETCH_WARNINGS, F as FetchOptions, d as FetchOutcome, e as FetchResult, I as FundingUrlOptions, ai as GetCapabilityOptions, J as ImportWalletOptions, a9 as InternalUserDto, as as ListRunsParams, at as ListRunsResponse, _ as LogEvent, a0 as LogLevel, $ as Logger, N as NoCredentials, O as OnSessionRefreshed, p as PayInput, t as PayResult, q as PaymentChain, r as PaymentProtocol, s as PaymentResult, y as Payments, aa as PublicUserDto, K as RemoveWalletOptions, aj as ResolveCapabilityResponse, au as RunDetail, av as RunListItem, R as Runs, aw as SearchOptions, ax as SearchResponse, ay as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, am as SessionExchangeResponse, u as SessionReceiptPayload, L as SetPrimaryWalletOptions, g as SignMessageInput, h as SignTransactionInput, j as SignTypedDataInput, T as TEMPO_CHAIN_ID, D as TEMPO_TESTNET_CHAIN_ID, U as USDC_BASE, b as USDC_DECIMALS, c as USDC_TEMPO, f as UpstreamError, ab as UserWalletDto, M as Wallet, W as WalletBalance, ac as WelcomeBonusSummary, v as coerceTempoChainId, i as isShortToken, z as paymentHasAnchor, E as tempoChainLabelFromId } from './client-DLwdMDSu.js';
|
|
3
3
|
import { Address, LocalAccount } from 'viem';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { asSchemaNode } from './chunk-
|
|
2
|
-
export { Auth, AuthAgent, AuthDevice, BUG_REPORT_CATEGORIES, BugReports, Capabilities, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, FETCH_SKIP_REASONS, FETCH_WARNINGS, Payments, Runs, SDK_VERSION, TEMPO_CHAIN_ID, TEMPO_TESTNET_CHAIN_ID, USDC_BASE, USDC_DECIMALS, USDC_TEMPO, Wallet, ZeroAgentAuthError, ZeroApiError, ZeroAuthError, ZeroClient, ZeroConfigurationError, ZeroError, ZeroPaymentError, ZeroSessionCloseFailedError, ZeroTimeoutError, ZeroValidationError, ZeroWalletError, asSchemaNode, coerceTempoChainId, createManagedAccount, extractInputEnvelope, isShortToken, normalizeTransportEnvelopeRequest, paymentHasAnchor, tempoChainLabelFromId, unwrapTransportEnvelope } from './chunk-
|
|
1
|
+
import { asSchemaNode } from './chunk-KDWESC42.js';
|
|
2
|
+
export { Auth, AuthAgent, AuthDevice, BUG_REPORT_CATEGORIES, BugReports, Capabilities, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, FETCH_SKIP_REASONS, FETCH_WARNINGS, Payments, Runs, SDK_VERSION, TEMPO_CHAIN_ID, TEMPO_TESTNET_CHAIN_ID, USDC_BASE, USDC_DECIMALS, USDC_TEMPO, Wallet, ZeroAgentAuthError, ZeroApiError, ZeroAuthError, ZeroClient, ZeroConfigurationError, ZeroError, ZeroPaymentError, ZeroSessionCloseFailedError, ZeroTimeoutError, ZeroValidationError, ZeroWalletError, asSchemaNode, coerceTempoChainId, createManagedAccount, extractInputEnvelope, isShortToken, normalizeTransportEnvelopeRequest, paymentHasAnchor, tempoChainLabelFromId, unwrapTransportEnvelope } from './chunk-KDWESC42.js';
|
|
3
3
|
|
|
4
4
|
// src/status.ts
|
|
5
5
|
var AVAILABILITY_BADGES = {
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO7424YAR_cjs = require('./chunk-O7424YAR.cjs');
|
|
4
4
|
|
|
5
5
|
// src/testing/index.ts
|
|
6
6
|
var FALLBACK_HANDLER = (request) => {
|
|
@@ -34,7 +34,7 @@ var respondJson = (body, init) => new Response(JSON.stringify(body), {
|
|
|
34
34
|
});
|
|
35
35
|
var createTestClient = (opts = {}) => {
|
|
36
36
|
const { routes, ...rest } = opts;
|
|
37
|
-
return new
|
|
37
|
+
return new chunkO7424YAR_cjs.ZeroClient({
|
|
38
38
|
...rest,
|
|
39
39
|
baseUrl: rest.baseUrl ?? "http://test.zero.local",
|
|
40
40
|
// Tests should fail fast, not retry-and-mask flakiness.
|
package/dist/testing.d.cts
CHANGED
package/dist/testing.d.ts
CHANGED
package/dist/testing.js
CHANGED