@bitgo/public-types 6.5.1 → 6.5.2

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.
@@ -43,7 +43,7 @@ function isSolCloseAssociatedTokenAccountRecipient(recipient) {
43
43
  }
44
44
  return true;
45
45
  }
46
- const solCloseAssociatedTokenAccountRecipientEntry = t.brand(recipientEntry_1.RecipientEntry, isSolCloseAssociatedTokenAccountRecipient, "SolCloseAssociatedTokenAccountRecipientEntry");
46
+ const solCloseAssociatedTokenAccountRecipientEntry = t.brand(recipientEntry_1.RecipientEntry, ((recipient) => isSolCloseAssociatedTokenAccountRecipient(recipient)), "SolCloseAssociatedTokenAccountRecipientEntry");
47
47
  const solCloseAssociatedTokenAccountRecipients = t.brand(t.array(solCloseAssociatedTokenAccountRecipientEntry), ((recipients) => recipients.length > 0), "SolCloseAssociatedTokenAccountRecipients");
48
48
  exports.SolCloseAssociatedTokenAccountIntent = t.intersection([
49
49
  baseIntent_1.BaseIntent,
@@ -1 +1 @@
1
- {"version":3,"file":"solCloseAssociatedTokenAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qDAAkD;AAClD,uDAAoD;AAoCpD,SAAS,yCAAyC,CAChD,SAAyB;IAEzB,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,eAAe,GAAG,SAAoC,CAAC;IAG7D,IAAI,WAAW,IAAI,eAAe,IAAI,WAAW,IAAI,eAAe,EAAE,CAAC;QACrE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,aAAa,GAAG,SAAS,CAAC,OAAgC,CAAC;IACjE,IAAI,OAAO,aAAa,EAAE,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AA0BD,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAC1D,+BAAc,EACd,yCAKC,EACD,8CAA8C,CAC/C,CAAC;AAMF,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CACtD,CAAC,CAAC,KAAK,CAAC,4CAA4C,CAAC,EACrD,CAAC,CAAC,UAAwD,EAAE,EAAE,CAC5D,UAAU,CAAC,MAAM,GAAG,CAAC,CAKtB,EACD,0CAA0C,CAC3C,CAAC;AAWW,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,2BAA2B;QACnD,UAAU,EAAE,wCAAwC;KACrD,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solCloseAssociatedTokenAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qDAAkD;AAClD,uDAAoD;AAoCpD,SAAS,yCAAyC,CAChD,SAAyB;IAEzB,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,eAAe,GAAG,SAAoC,CAAC;IAG7D,IAAI,WAAW,IAAI,eAAe,IAAI,WAAW,IAAI,eAAe,EAAE,CAAC;QACrE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,aAAa,GAAG,SAAS,CAAC,OAAgC,CAAC;IACjE,IAAI,OAAO,aAAa,EAAE,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AA4BD,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAC1D,+BAAc,EACd,CAAC,CACC,SAAgC,EAIhC,EAAE,CAAC,yCAAyC,CAAC,SAAS,CAAC,CAKxD,EACD,8CAA8C,CAC/C,CAAC;AAMF,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CACtD,CAAC,CAAC,KAAK,CAAC,4CAA4C,CAAC,EACrD,CAAC,CAAC,UAAwD,EAAE,EAAE,CAC5D,UAAU,CAAC,MAAM,GAAG,CAAC,CAKtB,EACD,0CAA0C,CAC3C,CAAC;AAWW,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,2BAA2B;QACnD,UAAU,EAAE,wCAAwC;KACrD,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.5.1",
3
+ "version": "6.5.2",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -74,17 +74,24 @@ type RecipientEntryDecoded = t.TypeOf<typeof RecipientEntry>;
74
74
  * Internal io-ts brand for one close-ATA recipient row (not exported).
75
75
  *
76
76
  * Uses {@link t.brand} instead of `t.refinement` so OpenAPI generation does not
77
- * emit an unresolvable `#/components/schemas/refinement`. The predicate is cast via
78
- * `unknown` to satisfy `t.brand`'s `Branded<…>` predicate type because runtime checks
79
- * match the brand, while
80
- * `SolCloseAssociatedTokenAccountRecipient` is a plain structural alias. For the
77
+ * emit an unresolvable `#/components/schemas/refinement`. The brand predicate must be
78
+ * an inline function expression (not a bare identifier) so `@api-ts/openapi-generator`
79
+ * does not try to resolve it as a codec. The predicate is cast via `unknown` to
80
+ * satisfy `t.brand`'s `Branded<…>` predicate type because runtime checks match the
81
+ * brand, while `SolCloseAssociatedTokenAccountRecipient` is a plain structural alias.
82
+ * For the
81
83
  * narrowed row shape after validation, use {@link SolCloseAssociatedTokenAccountRecipient}
82
84
  * (see {@link SolCloseAssociatedTokenAccountIntent}’s exported type, which overrides
83
85
  * `recipients` accordingly).
84
86
  */
85
87
  const solCloseAssociatedTokenAccountRecipientEntry = t.brand(
86
88
  RecipientEntry,
87
- isSolCloseAssociatedTokenAccountRecipient as unknown as (
89
+ ((
90
+ recipient: RecipientEntryDecoded,
91
+ ): recipient is t.Branded<
92
+ RecipientEntryDecoded,
93
+ SolCloseAssociatedTokenAccountRecipientEntryBrand
94
+ > => isSolCloseAssociatedTokenAccountRecipient(recipient)) as unknown as (
88
95
  recipient: RecipientEntryDecoded,
89
96
  ) => recipient is t.Branded<
90
97
  RecipientEntryDecoded,