@halliday-sdk/payments 2.7.0 → 2.7.4

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.
Files changed (27) hide show
  1. package/dist/paymentsApiClient/index.cjs.min.js +1 -1
  2. package/dist/paymentsApiClient/index.cjs.min.js.map +1 -1
  3. package/dist/paymentsApiClient/index.d.ts +188 -59
  4. package/dist/paymentsApiClient/index.esm.min.js +1 -1
  5. package/dist/paymentsApiClient/index.esm.min.js.map +1 -1
  6. package/dist/paymentsWidget/ethers/index.cjs.min.js +1 -1
  7. package/dist/paymentsWidget/ethers/index.cjs.min.js.map +1 -1
  8. package/dist/paymentsWidget/ethers/index.d.ts +12 -10
  9. package/dist/paymentsWidget/ethers/index.esm.min.js +1 -1
  10. package/dist/paymentsWidget/ethers/index.esm.min.js.map +1 -1
  11. package/dist/paymentsWidget/ethers/index.umd.min.js +1 -1
  12. package/dist/paymentsWidget/ethers/index.umd.min.js.map +1 -1
  13. package/dist/paymentsWidget/index.cjs.min.js +1 -1
  14. package/dist/paymentsWidget/index.cjs.min.js.map +1 -1
  15. package/dist/paymentsWidget/index.d.ts +43 -37
  16. package/dist/paymentsWidget/index.esm.min.js +1 -1
  17. package/dist/paymentsWidget/index.esm.min.js.map +1 -1
  18. package/dist/paymentsWidget/index.umd.min.js +1 -1
  19. package/dist/paymentsWidget/index.umd.min.js.map +1 -1
  20. package/dist/paymentsWidget/viem/index.cjs.min.js +1 -1
  21. package/dist/paymentsWidget/viem/index.cjs.min.js.map +1 -1
  22. package/dist/paymentsWidget/viem/index.d.ts +12 -10
  23. package/dist/paymentsWidget/viem/index.esm.min.js +1 -1
  24. package/dist/paymentsWidget/viem/index.esm.min.js.map +1 -1
  25. package/dist/paymentsWidget/viem/index.umd.min.js +1 -1
  26. package/dist/paymentsWidget/viem/index.umd.min.js.map +1 -1
  27. package/package.json +2 -2
@@ -1,10 +1,11 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from 'zod';
2
2
 
3
- declare const Address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3
+ declare const Address: z.ZodString;
4
4
  type Address = z.infer<typeof Address>;
5
+
5
6
  declare const TransactionRequest: z.ZodObject<{
6
- to: z.ZodString;
7
- from: z.ZodOptional<z.ZodString>;
7
+ to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
8
+ from: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
8
9
  nonce: z.ZodOptional<z.ZodNumber>;
9
10
  gasLimit: z.ZodOptional<z.ZodBigInt>;
10
11
  gasPrice: z.ZodOptional<z.ZodBigInt>;
@@ -19,23 +20,24 @@ declare const TransactionReceipt: z.ZodObject<{
19
20
  transactionHash: z.ZodOptional<z.ZodString>;
20
21
  blockHash: z.ZodOptional<z.ZodString>;
21
22
  blockNumber: z.ZodOptional<z.ZodNumber>;
22
- from: z.ZodOptional<z.ZodString>;
23
- to: z.ZodOptional<z.ZodString>;
23
+ from: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
24
+ to: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
24
25
  rawReceipt: z.ZodAny;
25
26
  }, z.core.$strip>;
26
27
  type TransactionReceipt = z.infer<typeof TransactionReceipt>;
27
28
  declare const EVMChainConfig: z.ZodObject<{
28
29
  chain_id: z.ZodBigInt;
29
30
  network: z.ZodString;
31
+ explorer: z.ZodOptional<z.ZodURL>;
32
+ image: z.ZodOptional<z.ZodURL>;
33
+ is_testnet: z.ZodBoolean;
34
+ address_family: z.ZodLiteral<"EVM">;
30
35
  native_currency: z.ZodObject<{
31
36
  name: z.ZodString;
32
37
  symbol: z.ZodString;
33
38
  decimals: z.ZodNumber;
34
39
  }, z.core.$strip>;
35
- rpc: z.ZodString;
36
- image: z.ZodString;
37
- is_testnet: z.ZodBoolean;
38
- explorer: z.ZodString;
40
+ rpc: z.ZodOptional<z.ZodString>;
39
41
  }, z.core.$strip>;
40
42
  type EVMChainConfig = z.infer<typeof EVMChainConfig>;
41
43
 
@@ -109,6 +111,7 @@ declare const PaymentCategoryOrder: z.ZodArray<z.ZodEnum<{
109
111
  "open-exchange": "open-exchange";
110
112
  cash: "cash";
111
113
  "open-cash": "open-cash";
114
+ deposit: "deposit";
112
115
  }>>;
113
116
  type PaymentCategoryOrder = z.infer<typeof PaymentCategoryOrder>;
114
117
  declare const FontName: z.ZodEnum<{
@@ -116,7 +119,7 @@ declare const FontName: z.ZodEnum<{
116
119
  "wudoo-mono": "wudoo-mono";
117
120
  }>;
118
121
  type FontName = z.infer<typeof FontName>;
119
- declare const HeaderTitle: z.ZodDefault<z.ZodOptional<z.ZodString>>;
122
+ declare const HeaderTitle: z.ZodOptional<z.ZodString>;
120
123
  type HeaderTitle = z.infer<typeof HeaderTitle>;
121
124
  type SignMessage = (input: {
122
125
  message: string;
@@ -149,11 +152,11 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
149
152
  inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
150
153
  outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
151
154
  apiKey: z.ZodString;
152
- destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
153
- widgetVersion: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
155
+ destinationAddress: z.ZodOptional<z.ZodString>;
156
+ widgetVersion: z.ZodOptional<z.ZodEnum<{
154
157
  1: "1";
155
158
  2: "2";
156
- }>>>;
159
+ }>>;
157
160
  customStyles: z.ZodOptional<z.ZodObject<{
158
161
  primaryColor: z.ZodOptional<z.ZodString>;
159
162
  backgroundColor: z.ZodOptional<z.ZodString>;
@@ -186,11 +189,11 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
186
189
  }, z.core.$strip>>;
187
190
  }, z.core.$strip>>;
188
191
  targetElementId: z.ZodOptional<z.ZodString>;
189
- windowType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
192
+ windowType: z.ZodOptional<z.ZodEnum<{
190
193
  EMBED: "EMBED";
191
194
  POPUP: "POPUP";
192
195
  MODAL: "MODAL";
193
- }>>>;
196
+ }>>;
194
197
  redirects: z.ZodOptional<z.ZodObject<{
195
198
  redirectUrl: z.ZodURL;
196
199
  ctaText: z.ZodString;
@@ -204,13 +207,14 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
204
207
  "open-exchange": "open-exchange";
205
208
  cash: "cash";
206
209
  "open-cash": "open-cash";
210
+ deposit: "deposit";
207
211
  }>>>;
208
212
  fontName: z.ZodOptional<z.ZodEnum<{
209
213
  haffer: "haffer";
210
214
  "wudoo-mono": "wudoo-mono";
211
215
  }>>;
212
- headerTitle: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
213
- showSkeleton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
216
+ headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
217
+ showSkeleton: z.ZodOptional<z.ZodBoolean>;
214
218
  skeletonBackgroundColor: z.ZodOptional<z.ZodString>;
215
219
  }, z.core.$strip>;
216
220
  declare const PaymentsWidgetSDKParams: z.ZodObject<{
@@ -246,11 +250,11 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
246
250
  }, z.core.$strip>>;
247
251
  }, z.core.$strip>>;
248
252
  targetElementId: z.ZodOptional<z.ZodString>;
249
- windowType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
253
+ windowType: z.ZodOptional<z.ZodEnum<{
250
254
  EMBED: "EMBED";
251
255
  POPUP: "POPUP";
252
256
  MODAL: "MODAL";
253
- }>>>;
257
+ }>>;
254
258
  redirects: z.ZodOptional<z.ZodObject<{
255
259
  redirectUrl: z.ZodURL;
256
260
  ctaText: z.ZodString;
@@ -259,13 +263,13 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
259
263
  }, z.core.$strip>>;
260
264
  statusCallback: z.ZodOptional<z.ZodAny>;
261
265
  owner: z.ZodOptional<z.ZodObject<{
262
- address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
266
+ address: z.ZodString;
263
267
  signMessage: z.ZodOptional<z.ZodAny>;
264
268
  sendTransaction: z.ZodOptional<z.ZodAny>;
265
269
  signTypedData: z.ZodOptional<z.ZodAny>;
266
270
  }, z.core.$strip>>;
267
271
  funder: z.ZodOptional<z.ZodObject<{
268
- address: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
272
+ address: z.ZodString;
269
273
  signMessage: z.ZodOptional<z.ZodAny>;
270
274
  sendTransaction: z.ZodOptional<z.ZodAny>;
271
275
  signTypedData: z.ZodOptional<z.ZodAny>;
@@ -282,13 +286,14 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
282
286
  "open-exchange": "open-exchange";
283
287
  cash: "cash";
284
288
  "open-cash": "open-cash";
289
+ deposit: "deposit";
285
290
  }>>>;
286
291
  fontName: z.ZodOptional<z.ZodEnum<{
287
292
  haffer: "haffer";
288
293
  "wudoo-mono": "wudoo-mono";
289
294
  }>>;
290
- headerTitle: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
291
- showSkeleton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
295
+ headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
296
+ showSkeleton: z.ZodOptional<z.ZodBoolean>;
292
297
  skeletonBackgroundColor: z.ZodOptional<z.ZodString>;
293
298
  onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
294
299
  offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
@@ -296,11 +301,11 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
296
301
  inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
297
302
  outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
298
303
  apiKey: z.ZodString;
299
- destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
300
- widgetVersion: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
304
+ destinationAddress: z.ZodOptional<z.ZodString>;
305
+ widgetVersion: z.ZodOptional<z.ZodEnum<{
301
306
  1: "1";
302
307
  2: "2";
303
- }>>>;
308
+ }>>;
304
309
  }, z.core.$strip>;
305
310
  type PaymentsWidgetSDKParams = z.input<typeof PaymentsWidgetSDKParamsWithoutRolesAndFunctions> & {
306
311
  owner?: Omit<WalletActionsType, "getAddress"> & {
@@ -319,8 +324,8 @@ declare const AppMode: z.ZodEnum<{
319
324
  }>;
320
325
  type AppMode = z.infer<typeof AppMode>;
321
326
  declare const PaymentsWidgetQueryParams: z.ZodObject<{
322
- ownerAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
323
- funderAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
327
+ ownerAddress: z.ZodOptional<z.ZodString>;
328
+ funderAddress: z.ZodOptional<z.ZodString>;
324
329
  appMode: z.ZodOptional<z.ZodEnum<{
325
330
  EMBED: "EMBED";
326
331
  MODAL: "MODAL";
@@ -344,11 +349,11 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
344
349
  inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
345
350
  outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
346
351
  apiKey: z.ZodString;
347
- destinationAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
348
- widgetVersion: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
352
+ destinationAddress: z.ZodOptional<z.ZodString>;
353
+ widgetVersion: z.ZodOptional<z.ZodEnum<{
349
354
  1: "1";
350
355
  2: "2";
351
- }>>>;
356
+ }>>;
352
357
  customStyles: z.ZodOptional<z.ZodObject<{
353
358
  primaryColor: z.ZodOptional<z.ZodString>;
354
359
  backgroundColor: z.ZodOptional<z.ZodString>;
@@ -381,11 +386,11 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
381
386
  }, z.core.$strip>>;
382
387
  }, z.core.$strip>>;
383
388
  targetElementId: z.ZodOptional<z.ZodString>;
384
- windowType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
389
+ windowType: z.ZodOptional<z.ZodEnum<{
385
390
  EMBED: "EMBED";
386
391
  POPUP: "POPUP";
387
392
  MODAL: "MODAL";
388
- }>>>;
393
+ }>>;
389
394
  redirects: z.ZodOptional<z.ZodObject<{
390
395
  redirectUrl: z.ZodURL;
391
396
  ctaText: z.ZodString;
@@ -399,13 +404,14 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
399
404
  "open-exchange": "open-exchange";
400
405
  cash: "cash";
401
406
  "open-cash": "open-cash";
407
+ deposit: "deposit";
402
408
  }>>>;
403
409
  fontName: z.ZodOptional<z.ZodEnum<{
404
410
  haffer: "haffer";
405
411
  "wudoo-mono": "wudoo-mono";
406
412
  }>>;
407
- headerTitle: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodString>>>;
408
- showSkeleton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
413
+ headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
414
+ showSkeleton: z.ZodOptional<z.ZodBoolean>;
409
415
  skeletonBackgroundColor: z.ZodOptional<z.ZodString>;
410
416
  }, z.core.$strip>;
411
417
  type PaymentsWidgetQueryParams = z.infer<typeof PaymentsWidgetQueryParams>;
@@ -495,7 +501,7 @@ type MessageResponse = {
495
501
  };
496
502
  };
497
503
  /**
498
- * Configuration for initHallidayPayments.
504
+ * Configuration for initializeClient.
499
505
  *
500
506
  * This is intentionally minimal - init is just for preloading.
501
507
  * All business logic params (outputs, customStyles, etc.) go in openHallidayPayments.