@zeroxyz/sdk 0.8.0 → 0.9.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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-72WCE7HE.cjs → chunk-O7QJMY3Y.cjs} +53 -4
- package/dist/chunk-O7QJMY3Y.cjs.map +1 -0
- package/dist/{chunk-NUBD543C.js → chunk-T6JT5NV5.js} +53 -4
- package/dist/chunk-T6JT5NV5.js.map +1 -0
- package/dist/{client-f6vDYSHb.d.cts → client-Du4zQHef.d.cts} +42 -0
- package/dist/{client-f6vDYSHb.d.ts → client-Du4zQHef.d.ts} +42 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- 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-72WCE7HE.cjs.map +0 -1
- package/dist/chunk-NUBD543C.js.map +0 -1
|
@@ -401,6 +401,16 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
401
401
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
402
|
displayCostAmount: z.ZodString;
|
|
403
403
|
displayCostAsset: z.ZodString;
|
|
404
|
+
priceDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
+
priceHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
priceStatus: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
priced: "priced";
|
|
408
|
+
proven_free: "proven_free";
|
|
409
|
+
free_handshake: "free_handshake";
|
|
410
|
+
unknown_unparsed: "unknown_unparsed";
|
|
411
|
+
unprobed: "unprobed";
|
|
412
|
+
}>>;
|
|
413
|
+
requiresHandshake: z.ZodOptional<z.ZodBoolean>;
|
|
404
414
|
reviewCount: z.ZodNumber;
|
|
405
415
|
rating: z.ZodObject<{
|
|
406
416
|
score: z.ZodString;
|
|
@@ -430,7 +440,37 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
430
440
|
costAmount: z.ZodString;
|
|
431
441
|
costPer: z.ZodString;
|
|
432
442
|
priority: z.ZodNumber;
|
|
443
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
444
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
445
|
+
depositMicros: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
446
|
+
planRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
|
+
}, z.core.$strip>>>;
|
|
448
|
+
sessionDeposit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
449
|
+
amountUsd: z.ZodString;
|
|
450
|
+
asset: z.ZodString;
|
|
433
451
|
}, z.core.$strip>>>;
|
|
452
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
kind: z.ZodString;
|
|
454
|
+
summary: z.ZodString;
|
|
455
|
+
primary: z.ZodNullable<z.ZodObject<{
|
|
456
|
+
kind: z.ZodString;
|
|
457
|
+
protocol: z.ZodString;
|
|
458
|
+
network: z.ZodNullable<z.ZodString>;
|
|
459
|
+
amountUsd: z.ZodNullable<z.ZodString>;
|
|
460
|
+
per: z.ZodString;
|
|
461
|
+
confidence: z.ZodString;
|
|
462
|
+
depositUsd: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
accepted: z.ZodArray<z.ZodObject<{
|
|
465
|
+
kind: z.ZodString;
|
|
466
|
+
protocol: z.ZodString;
|
|
467
|
+
network: z.ZodNullable<z.ZodString>;
|
|
468
|
+
amountUsd: z.ZodNullable<z.ZodString>;
|
|
469
|
+
per: z.ZodString;
|
|
470
|
+
confidence: z.ZodString;
|
|
471
|
+
depositUsd: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
434
474
|
availabilityStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
435
475
|
unknown: "unknown";
|
|
436
476
|
healthy: "healthy";
|
|
@@ -750,6 +790,7 @@ declare const searchResultSchema: z.ZodObject<{
|
|
|
750
790
|
amount: z.ZodString;
|
|
751
791
|
asset: z.ZodString;
|
|
752
792
|
}, z.core.$strip>;
|
|
793
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
794
|
reviewCount: z.ZodOptional<z.ZodNumber>;
|
|
754
795
|
rating: z.ZodObject<{
|
|
755
796
|
score: z.ZodString;
|
|
@@ -797,6 +838,7 @@ declare const searchResponseSchema: z.ZodObject<{
|
|
|
797
838
|
amount: z.ZodString;
|
|
798
839
|
asset: z.ZodString;
|
|
799
840
|
}, z.core.$strip>;
|
|
841
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
842
|
reviewCount: z.ZodOptional<z.ZodNumber>;
|
|
801
843
|
rating: z.ZodObject<{
|
|
802
844
|
score: z.ZodString;
|
|
@@ -401,6 +401,16 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
401
401
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
402
402
|
displayCostAmount: z.ZodString;
|
|
403
403
|
displayCostAsset: z.ZodString;
|
|
404
|
+
priceDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
+
priceHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
priceStatus: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
priced: "priced";
|
|
408
|
+
proven_free: "proven_free";
|
|
409
|
+
free_handshake: "free_handshake";
|
|
410
|
+
unknown_unparsed: "unknown_unparsed";
|
|
411
|
+
unprobed: "unprobed";
|
|
412
|
+
}>>;
|
|
413
|
+
requiresHandshake: z.ZodOptional<z.ZodBoolean>;
|
|
404
414
|
reviewCount: z.ZodNumber;
|
|
405
415
|
rating: z.ZodObject<{
|
|
406
416
|
score: z.ZodString;
|
|
@@ -430,7 +440,37 @@ declare const capabilityResponseSchema: z.ZodObject<{
|
|
|
430
440
|
costAmount: z.ZodString;
|
|
431
441
|
costPer: z.ZodString;
|
|
432
442
|
priority: z.ZodNumber;
|
|
443
|
+
asset: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
444
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
445
|
+
depositMicros: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
446
|
+
planRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
|
+
}, z.core.$strip>>>;
|
|
448
|
+
sessionDeposit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
449
|
+
amountUsd: z.ZodString;
|
|
450
|
+
asset: z.ZodString;
|
|
433
451
|
}, z.core.$strip>>>;
|
|
452
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
kind: z.ZodString;
|
|
454
|
+
summary: z.ZodString;
|
|
455
|
+
primary: z.ZodNullable<z.ZodObject<{
|
|
456
|
+
kind: z.ZodString;
|
|
457
|
+
protocol: z.ZodString;
|
|
458
|
+
network: z.ZodNullable<z.ZodString>;
|
|
459
|
+
amountUsd: z.ZodNullable<z.ZodString>;
|
|
460
|
+
per: z.ZodString;
|
|
461
|
+
confidence: z.ZodString;
|
|
462
|
+
depositUsd: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>>;
|
|
464
|
+
accepted: z.ZodArray<z.ZodObject<{
|
|
465
|
+
kind: z.ZodString;
|
|
466
|
+
protocol: z.ZodString;
|
|
467
|
+
network: z.ZodNullable<z.ZodString>;
|
|
468
|
+
amountUsd: z.ZodNullable<z.ZodString>;
|
|
469
|
+
per: z.ZodString;
|
|
470
|
+
confidence: z.ZodString;
|
|
471
|
+
depositUsd: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>>;
|
|
434
474
|
availabilityStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
435
475
|
unknown: "unknown";
|
|
436
476
|
healthy: "healthy";
|
|
@@ -750,6 +790,7 @@ declare const searchResultSchema: z.ZodObject<{
|
|
|
750
790
|
amount: z.ZodString;
|
|
751
791
|
asset: z.ZodString;
|
|
752
792
|
}, z.core.$strip>;
|
|
793
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
794
|
reviewCount: z.ZodOptional<z.ZodNumber>;
|
|
754
795
|
rating: z.ZodObject<{
|
|
755
796
|
score: z.ZodString;
|
|
@@ -797,6 +838,7 @@ declare const searchResponseSchema: z.ZodObject<{
|
|
|
797
838
|
amount: z.ZodString;
|
|
798
839
|
asset: z.ZodString;
|
|
799
840
|
}, z.core.$strip>;
|
|
841
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
842
|
reviewCount: z.ZodOptional<z.ZodNumber>;
|
|
801
843
|
rating: z.ZodObject<{
|
|
802
844
|
score: z.ZodString;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO7QJMY3Y_cjs = require('./chunk-O7QJMY3Y.cjs');
|
|
4
4
|
|
|
5
5
|
// src/status.ts
|
|
6
6
|
var AVAILABILITY_BADGES = {
|
|
@@ -25,143 +25,143 @@ var preferHealthy = sortByHealth;
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "Auth", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkO7QJMY3Y_cjs.Auth; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "AuthDevice", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkO7QJMY3Y_cjs.AuthDevice; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "BUG_REPORT_CATEGORIES", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkO7QJMY3Y_cjs.BUG_REPORT_CATEGORIES; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "BugReports", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkO7QJMY3Y_cjs.BugReports; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "Capabilities", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkO7QJMY3Y_cjs.Capabilities; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "DEFAULT_BASE_URL", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkO7QJMY3Y_cjs.DEFAULT_BASE_URL; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "DEFAULT_MAX_RETRIES", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkO7QJMY3Y_cjs.DEFAULT_MAX_RETRIES; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "DEFAULT_TIMEOUT_MS", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkO7QJMY3Y_cjs.DEFAULT_TIMEOUT_MS; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "FETCH_SKIP_REASONS", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkO7QJMY3Y_cjs.FETCH_SKIP_REASONS; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "FETCH_WARNINGS", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkO7QJMY3Y_cjs.FETCH_WARNINGS; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "Payments", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkO7QJMY3Y_cjs.Payments; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "Runs", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkO7QJMY3Y_cjs.Runs; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkO7QJMY3Y_cjs.SDK_VERSION; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "TEMPO_CHAIN_ID", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkO7QJMY3Y_cjs.TEMPO_CHAIN_ID; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "TEMPO_TESTNET_CHAIN_ID", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkO7QJMY3Y_cjs.TEMPO_TESTNET_CHAIN_ID; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "Wallet", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkO7QJMY3Y_cjs.Wallet; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "ZeroApiError", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroApiError; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "ZeroAuthError", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroAuthError; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "ZeroClient", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroClient; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "ZeroConfigurationError", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroConfigurationError; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "ZeroError", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroError; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "ZeroPaymentError", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroPaymentError; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "ZeroSessionCloseFailedError", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroSessionCloseFailedError; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "ZeroTimeoutError", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroTimeoutError; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "ZeroValidationError", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroValidationError; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "ZeroWalletError", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkO7QJMY3Y_cjs.ZeroWalletError; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "asSchemaNode", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkO7QJMY3Y_cjs.asSchemaNode; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "coerceTempoChainId", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkO7QJMY3Y_cjs.coerceTempoChainId; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "createManagedAccount", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkO7QJMY3Y_cjs.createManagedAccount; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "extractInputEnvelope", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkO7QJMY3Y_cjs.extractInputEnvelope; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "isShortToken", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkO7QJMY3Y_cjs.isShortToken; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "normalizeTransportEnvelopeRequest", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkO7QJMY3Y_cjs.normalizeTransportEnvelopeRequest; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "paymentHasAnchor", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkO7QJMY3Y_cjs.paymentHasAnchor; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "tempoChainLabelFromId", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkO7QJMY3Y_cjs.tempoChainLabelFromId; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "unwrapTransportEnvelope", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkO7QJMY3Y_cjs.unwrapTransportEnvelope; }
|
|
165
165
|
});
|
|
166
166
|
exports.AVAILABILITY_BADGES = AVAILABILITY_BADGES;
|
|
167
167
|
exports.preferHealthy = preferHealthy;
|
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, g as Auth, h as AuthDevice, $ as BUG_REPORT_CATEGORIES, x as BalanceOptions, y as BalanceReadError, a9 as BatchReviewResponse, a0 as BugReportCategory, B as BugReports, j as Capabilities, a3 as CapabilityResponse, G as ClientOptions, a1 as CreateBugReportInput, a2 as CreateBugReportResponse, aa as CreateReviewInput, ab as CreateReviewResponse, ac as CreateRunInput, ad as CreateRunResponse, C as Credentials, H as DEFAULT_BASE_URL, I as DEFAULT_MAX_RETRIES, J as DEFAULT_TIMEOUT_MS, a6 as DevicePollResult, a7 as DeviceStartResponse, r as FETCH_SKIP_REASONS, s as FETCH_WARNINGS, F as FetchOptions, b as FetchOutcome, c as FetchResult, z as FundingUrlOptions, a4 as GetCapabilityOptions, V as InternalUserDto, ae as ListRunsParams, af as ListRunsResponse, L as LogEvent, Q as LogLevel, K as Logger, M as MigrateAuthorization, D as MigrateAuthorizationResponse, N as NoCredentials, O as OnSessionRefreshed, k as PayInput, o as PayResult, l as PaymentChain, m as PaymentProtocol, n as PaymentResult, t as Payments, X as PublicUserDto, a5 as ResolveCapabilityResponse, ag as RunDetail, ah as RunListItem, R as Runs, ai as SearchOptions, aj as SearchResponse, ak as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, a8 as SessionExchangeResponse, p as SessionReceiptPayload, d as SignMessageInput, e as SignTransactionInput, f as SignTypedDataInput, T as TEMPO_CHAIN_ID, v as TEMPO_TESTNET_CHAIN_ID, U as UpstreamError, Y as UserWalletDto, E as Wallet, W as WalletBalance, _ as WelcomeBonusSummary, q as coerceTempoChainId, i as isShortToken, u as paymentHasAnchor, w as tempoChainLabelFromId } from './client-
|
|
1
|
+
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-Du4zQHef.cjs';
|
|
2
|
+
export { A as AccountCredentials, g as Auth, h as AuthDevice, $ as BUG_REPORT_CATEGORIES, x as BalanceOptions, y as BalanceReadError, a9 as BatchReviewResponse, a0 as BugReportCategory, B as BugReports, j as Capabilities, a3 as CapabilityResponse, G as ClientOptions, a1 as CreateBugReportInput, a2 as CreateBugReportResponse, aa as CreateReviewInput, ab as CreateReviewResponse, ac as CreateRunInput, ad as CreateRunResponse, C as Credentials, H as DEFAULT_BASE_URL, I as DEFAULT_MAX_RETRIES, J as DEFAULT_TIMEOUT_MS, a6 as DevicePollResult, a7 as DeviceStartResponse, r as FETCH_SKIP_REASONS, s as FETCH_WARNINGS, F as FetchOptions, b as FetchOutcome, c as FetchResult, z as FundingUrlOptions, a4 as GetCapabilityOptions, V as InternalUserDto, ae as ListRunsParams, af as ListRunsResponse, L as LogEvent, Q as LogLevel, K as Logger, M as MigrateAuthorization, D as MigrateAuthorizationResponse, N as NoCredentials, O as OnSessionRefreshed, k as PayInput, o as PayResult, l as PaymentChain, m as PaymentProtocol, n as PaymentResult, t as Payments, X as PublicUserDto, a5 as ResolveCapabilityResponse, ag as RunDetail, ah as RunListItem, R as Runs, ai as SearchOptions, aj as SearchResponse, ak as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, a8 as SessionExchangeResponse, p as SessionReceiptPayload, d as SignMessageInput, e as SignTransactionInput, f as SignTypedDataInput, T as TEMPO_CHAIN_ID, v as TEMPO_TESTNET_CHAIN_ID, U as UpstreamError, Y as UserWalletDto, E as Wallet, W as WalletBalance, _ as WelcomeBonusSummary, q as coerceTempoChainId, i as isShortToken, u as paymentHasAnchor, w as tempoChainLabelFromId } from './client-Du4zQHef.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, g as Auth, h as AuthDevice, $ as BUG_REPORT_CATEGORIES, x as BalanceOptions, y as BalanceReadError, a9 as BatchReviewResponse, a0 as BugReportCategory, B as BugReports, j as Capabilities, a3 as CapabilityResponse, G as ClientOptions, a1 as CreateBugReportInput, a2 as CreateBugReportResponse, aa as CreateReviewInput, ab as CreateReviewResponse, ac as CreateRunInput, ad as CreateRunResponse, C as Credentials, H as DEFAULT_BASE_URL, I as DEFAULT_MAX_RETRIES, J as DEFAULT_TIMEOUT_MS, a6 as DevicePollResult, a7 as DeviceStartResponse, r as FETCH_SKIP_REASONS, s as FETCH_WARNINGS, F as FetchOptions, b as FetchOutcome, c as FetchResult, z as FundingUrlOptions, a4 as GetCapabilityOptions, V as InternalUserDto, ae as ListRunsParams, af as ListRunsResponse, L as LogEvent, Q as LogLevel, K as Logger, M as MigrateAuthorization, D as MigrateAuthorizationResponse, N as NoCredentials, O as OnSessionRefreshed, k as PayInput, o as PayResult, l as PaymentChain, m as PaymentProtocol, n as PaymentResult, t as Payments, X as PublicUserDto, a5 as ResolveCapabilityResponse, ag as RunDetail, ah as RunListItem, R as Runs, ai as SearchOptions, aj as SearchResponse, ak as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, a8 as SessionExchangeResponse, p as SessionReceiptPayload, d as SignMessageInput, e as SignTransactionInput, f as SignTypedDataInput, T as TEMPO_CHAIN_ID, v as TEMPO_TESTNET_CHAIN_ID, U as UpstreamError, Y as UserWalletDto, E as Wallet, W as WalletBalance, _ as WelcomeBonusSummary, q as coerceTempoChainId, i as isShortToken, u as paymentHasAnchor, w as tempoChainLabelFromId } from './client-
|
|
1
|
+
import { Z as ZeroClient, P as PaymentSessionMeta } from './client-Du4zQHef.js';
|
|
2
|
+
export { A as AccountCredentials, g as Auth, h as AuthDevice, $ as BUG_REPORT_CATEGORIES, x as BalanceOptions, y as BalanceReadError, a9 as BatchReviewResponse, a0 as BugReportCategory, B as BugReports, j as Capabilities, a3 as CapabilityResponse, G as ClientOptions, a1 as CreateBugReportInput, a2 as CreateBugReportResponse, aa as CreateReviewInput, ab as CreateReviewResponse, ac as CreateRunInput, ad as CreateRunResponse, C as Credentials, H as DEFAULT_BASE_URL, I as DEFAULT_MAX_RETRIES, J as DEFAULT_TIMEOUT_MS, a6 as DevicePollResult, a7 as DeviceStartResponse, r as FETCH_SKIP_REASONS, s as FETCH_WARNINGS, F as FetchOptions, b as FetchOutcome, c as FetchResult, z as FundingUrlOptions, a4 as GetCapabilityOptions, V as InternalUserDto, ae as ListRunsParams, af as ListRunsResponse, L as LogEvent, Q as LogLevel, K as Logger, M as MigrateAuthorization, D as MigrateAuthorizationResponse, N as NoCredentials, O as OnSessionRefreshed, k as PayInput, o as PayResult, l as PaymentChain, m as PaymentProtocol, n as PaymentResult, t as Payments, X as PublicUserDto, a5 as ResolveCapabilityResponse, ag as RunDetail, ah as RunListItem, R as Runs, ai as SearchOptions, aj as SearchResponse, ak as SearchResult, S as SessionCredentials, a as SessionCredentialsInput, a8 as SessionExchangeResponse, p as SessionReceiptPayload, d as SignMessageInput, e as SignTransactionInput, f as SignTypedDataInput, T as TEMPO_CHAIN_ID, v as TEMPO_TESTNET_CHAIN_ID, U as UpstreamError, Y as UserWalletDto, E as Wallet, W as WalletBalance, _ as WelcomeBonusSummary, q as coerceTempoChainId, i as isShortToken, u as paymentHasAnchor, w as tempoChainLabelFromId } from './client-Du4zQHef.js';
|
|
3
3
|
import { Address, LocalAccount } from 'viem';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Auth, 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, Wallet, ZeroApiError, ZeroAuthError, ZeroClient, ZeroConfigurationError, ZeroError, ZeroPaymentError, ZeroSessionCloseFailedError, ZeroTimeoutError, ZeroValidationError, ZeroWalletError, asSchemaNode, coerceTempoChainId, createManagedAccount, extractInputEnvelope, isShortToken, normalizeTransportEnvelopeRequest, paymentHasAnchor, tempoChainLabelFromId, unwrapTransportEnvelope } from './chunk-
|
|
1
|
+
export { Auth, 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, Wallet, ZeroApiError, ZeroAuthError, ZeroClient, ZeroConfigurationError, ZeroError, ZeroPaymentError, ZeroSessionCloseFailedError, ZeroTimeoutError, ZeroValidationError, ZeroWalletError, asSchemaNode, coerceTempoChainId, createManagedAccount, extractInputEnvelope, isShortToken, normalizeTransportEnvelopeRequest, paymentHasAnchor, tempoChainLabelFromId, unwrapTransportEnvelope } from './chunk-T6JT5NV5.js';
|
|
2
2
|
|
|
3
3
|
// src/status.ts
|
|
4
4
|
var AVAILABILITY_BADGES = {
|
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO7QJMY3Y_cjs = require('./chunk-O7QJMY3Y.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 chunkO7QJMY3Y_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