@unicitylabs/sphere-sdk 0.16.0-dev.2 → 0.17.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.
Files changed (61) hide show
  1. package/dist/connect/index.cjs +11 -5
  2. package/dist/connect/index.cjs.map +1 -1
  3. package/dist/connect/index.d.cts +4 -1
  4. package/dist/connect/index.d.ts +4 -1
  5. package/dist/connect/index.js +11 -5
  6. package/dist/connect/index.js.map +1 -1
  7. package/dist/core/index.cjs +568 -172
  8. package/dist/core/index.cjs.map +1 -1
  9. package/dist/core/index.d.cts +67 -0
  10. package/dist/core/index.d.ts +67 -0
  11. package/dist/core/index.js +568 -172
  12. package/dist/core/index.js.map +1 -1
  13. package/dist/impl/browser/connect/index.cjs +11 -5
  14. package/dist/impl/browser/connect/index.cjs.map +1 -1
  15. package/dist/impl/browser/connect/index.d.cts +3 -1
  16. package/dist/impl/browser/connect/index.d.ts +3 -1
  17. package/dist/impl/browser/connect/index.js +11 -5
  18. package/dist/impl/browser/connect/index.js.map +1 -1
  19. package/dist/impl/browser/index.cjs +2 -2
  20. package/dist/impl/browser/index.cjs.map +1 -1
  21. package/dist/impl/browser/index.js +2 -2
  22. package/dist/impl/browser/index.js.map +1 -1
  23. package/dist/impl/nodejs/connect/index.cjs +10 -4
  24. package/dist/impl/nodejs/connect/index.cjs.map +1 -1
  25. package/dist/impl/nodejs/connect/index.d.cts +1 -1
  26. package/dist/impl/nodejs/connect/index.d.ts +1 -1
  27. package/dist/impl/nodejs/connect/index.js +10 -4
  28. package/dist/impl/nodejs/connect/index.js.map +1 -1
  29. package/dist/impl/nodejs/index.cjs +19 -3
  30. package/dist/impl/nodejs/index.cjs.map +1 -1
  31. package/dist/impl/nodejs/index.d.cts +11 -0
  32. package/dist/impl/nodejs/index.d.ts +11 -0
  33. package/dist/impl/nodejs/index.js +19 -3
  34. package/dist/impl/nodejs/index.js.map +1 -1
  35. package/dist/impl/shared/wallet-api/index.d.cts +11 -0
  36. package/dist/impl/shared/wallet-api/index.d.ts +11 -0
  37. package/dist/impl/wallet-api-v2/index.cjs +2 -0
  38. package/dist/impl/wallet-api-v2/index.cjs.map +1 -1
  39. package/dist/impl/wallet-api-v2/index.d.cts +13 -0
  40. package/dist/impl/wallet-api-v2/index.d.ts +13 -0
  41. package/dist/impl/wallet-api-v2/index.js +2 -0
  42. package/dist/impl/wallet-api-v2/index.js.map +1 -1
  43. package/dist/index.cjs +568 -172
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +61 -1
  46. package/dist/index.d.ts +61 -1
  47. package/dist/index.js +568 -172
  48. package/dist/index.js.map +1 -1
  49. package/dist/modules/payments-v2/index.cjs +609 -269
  50. package/dist/modules/payments-v2/index.cjs.map +1 -1
  51. package/dist/modules/payments-v2/index.d.cts +88 -13
  52. package/dist/modules/payments-v2/index.d.ts +88 -13
  53. package/dist/modules/payments-v2/index.js +609 -269
  54. package/dist/modules/payments-v2/index.js.map +1 -1
  55. package/dist/token-engine/index.cjs +132 -34
  56. package/dist/token-engine/index.cjs.map +1 -1
  57. package/dist/token-engine/index.d.cts +19 -0
  58. package/dist/token-engine/index.d.ts +19 -0
  59. package/dist/token-engine/index.js +132 -34
  60. package/dist/token-engine/index.js.map +1 -1
  61. package/package.json +1 -1
@@ -594,7 +594,18 @@ interface InventoryItemWire {
594
594
  status: 'active' | 'removed';
595
595
  seq: number;
596
596
  stateHash: string;
597
+ /**
598
+ * Omitted for a tombstone AND for an ACTIVE COINLESS token (wallet-api#140),
599
+ * so absence is never "removed" or "not loaded" — discriminate on `status`.
600
+ */
597
601
  assets?: AssetWire[];
602
+ /**
603
+ * Genesis `TokenType`, lowercase hex (1-64 bytes ⇒ 2-128 chars). Names the
604
+ * token's CLASS, not the instance (wallet-api#147). Absent on rows written
605
+ * before wallet-api migration 0015. An unrecognised type is legitimate: never
606
+ * reject or hide a token for it.
607
+ */
608
+ tokenType?: string;
598
609
  }
599
610
  interface InventoryPageWire {
600
611
  cursor: number;
@@ -594,7 +594,18 @@ interface InventoryItemWire {
594
594
  status: 'active' | 'removed';
595
595
  seq: number;
596
596
  stateHash: string;
597
+ /**
598
+ * Omitted for a tombstone AND for an ACTIVE COINLESS token (wallet-api#140),
599
+ * so absence is never "removed" or "not loaded" — discriminate on `status`.
600
+ */
597
601
  assets?: AssetWire[];
602
+ /**
603
+ * Genesis `TokenType`, lowercase hex (1-64 bytes ⇒ 2-128 chars). Names the
604
+ * token's CLASS, not the instance (wallet-api#147). Absent on rows written
605
+ * before wallet-api migration 0015. An unrecognised type is legitimate: never
606
+ * reject or hide a token for it.
607
+ */
608
+ tokenType?: string;
598
609
  }
599
610
  interface InventoryPageWire {
600
611
  cursor: number;
@@ -4491,6 +4491,8 @@ var import_DataHasherFactory = require("@unicitylabs/state-transition-sdk/lib/cr
4491
4491
  var import_CborSerializer = require("@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborSerializer.js");
4492
4492
  var import_CborDeserializer = require("@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborDeserializer.js");
4493
4493
  var import_CborError = require("@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborError.js");
4494
+ var import_CborReader = require("@unicitylabs/state-transition-sdk/lib/serialization/cbor/CborReader.js");
4495
+ var import_MajorType = require("@unicitylabs/state-transition-sdk/lib/serialization/cbor/MajorType.js");
4494
4496
  var import_Asset = require("@unicitylabs/state-transition-sdk/lib/payment/asset/Asset.js");
4495
4497
  var import_AssetId = require("@unicitylabs/state-transition-sdk/lib/payment/asset/AssetId.js");
4496
4498
  var import_PaymentAssetCollection = require("@unicitylabs/state-transition-sdk/lib/payment/asset/PaymentAssetCollection.js");