@bitgo/public-types 7.2.1 → 7.4.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.
@@ -96,5 +96,6 @@ export declare const CantonCosignDelegationProposalIntent: t.IntersectionC<[t.In
96
96
  updateId: t.StringC;
97
97
  }>, t.PartialC<{
98
98
  packageName: t.StringC;
99
+ userAuthorization: t.StringC;
99
100
  }>]>;
100
101
  export type CantonCosignDelegationProposalIntent = t.TypeOf<typeof CantonCosignDelegationProposalIntent>;
@@ -37,6 +37,7 @@ exports.CantonCosignDelegationProposalIntent = t.intersection([
37
37
  }),
38
38
  t.partial({
39
39
  packageName: t.string,
40
+ userAuthorization: t.string,
40
41
  }),
41
42
  ]);
42
43
  //# sourceMappingURL=cantonCosignDelegationProposalIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cantonCosignDelegationProposalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,wBAAwB;QAChD,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonCosignDelegationProposalIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAc9B,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,wBAAwB;QAChD,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,QAAQ,EAAE,CAAC,CAAC,MAAM;KACnB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,iBAAiB,EAAE,CAAC,CAAC,MAAM;KAC5B,CAAC;CACH,CAAC,CAAC"}
@@ -2616,6 +2616,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2616
2616
  updateId: t.StringC;
2617
2617
  }>, t.PartialC<{
2618
2618
  packageName: t.StringC;
2619
+ userAuthorization: t.StringC;
2619
2620
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2620
2621
  intentType: t.KeyofC<{
2621
2622
  payment: t.LiteralC<"payment">;
@@ -1730,6 +1730,7 @@ export declare const TransactionIntentCommon: t.UnionC<[t.IntersectionC<[t.Inter
1730
1730
  updateId: t.StringC;
1731
1731
  }>, t.PartialC<{
1732
1732
  packageName: t.StringC;
1733
+ userAuthorization: t.StringC;
1733
1734
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1734
1735
  intentType: t.KeyofC<{
1735
1736
  payment: t.LiteralC<"payment">;
@@ -11,12 +11,12 @@ export declare const AddOrganizationWebhookRequestBodyC: t.TypeC<{
11
11
  }>;
12
12
  export type AddOrganizationWebhookRequestBody = t.TypeOf<typeof AddOrganizationWebhookRequestBodyC>;
13
13
  export declare const ListOrganizationWebhooksRequestBody: {
14
- type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", unknown>, t.UndefinedC]>;
14
+ type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", unknown>, t.UndefinedC]>;
15
15
  limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
16
16
  prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17
17
  };
18
18
  export declare const ListOrganizationWebhooksRequestBodyC: t.TypeC<{
19
- type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected", unknown>, t.UndefinedC]>;
19
+ type: t.UnionC<[t.Type<"transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", "transfer" | "txRequest" | "txRequestTransaction" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "idvStatus" | "accessToken" | "reversal" | "tradeOrder" | "whitelistApproved" | "whitelistRejected" | "depositResolved", unknown>, t.UndefinedC]>;
20
20
  limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
21
21
  prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
22
22
  }>;
@@ -39,6 +39,7 @@ export declare enum WebhookTypeEnum {
39
39
  "pendingDecryption" = "pendingDecryption",
40
40
  "whitelistApproved" = "whitelistApproved",
41
41
  "whitelistRejected" = "whitelistRejected",
42
+ "depositResolved" = "depositResolved",
42
43
  "allocationRequest" = "allocationRequest",
43
44
  "allocationAccepted" = "allocationAccepted",
44
45
  "allocationSettlementFailed" = "allocationSettlementFailed"
@@ -98,7 +99,8 @@ export declare enum OrganizationWebhookTypeEnum {
98
99
  "reversal" = "reversal",
99
100
  "tradeOrder" = "tradeOrder",
100
101
  "whitelistApproved" = "whitelistApproved",
101
- "whitelistRejected" = "whitelistRejected"
102
+ "whitelistRejected" = "whitelistRejected",
103
+ "depositResolved" = "depositResolved"
102
104
  }
103
105
  export declare const OrganizationWebhookType: t.KeyofC<typeof OrganizationWebhookTypeEnum>;
104
106
  export type OrganizationWebhookType = t.TypeOf<typeof OrganizationWebhookType>;
@@ -66,6 +66,7 @@ var WebhookTypeEnum;
66
66
  WebhookTypeEnum["pendingDecryption"] = "pendingDecryption";
67
67
  WebhookTypeEnum["whitelistApproved"] = "whitelistApproved";
68
68
  WebhookTypeEnum["whitelistRejected"] = "whitelistRejected";
69
+ WebhookTypeEnum["depositResolved"] = "depositResolved";
69
70
  WebhookTypeEnum["allocationRequest"] = "allocationRequest";
70
71
  WebhookTypeEnum["allocationAccepted"] = "allocationAccepted";
71
72
  WebhookTypeEnum["allocationSettlementFailed"] = "allocationSettlementFailed";
@@ -126,6 +127,7 @@ var OrganizationWebhookTypeEnum;
126
127
  OrganizationWebhookTypeEnum["tradeOrder"] = "tradeOrder";
127
128
  OrganizationWebhookTypeEnum["whitelistApproved"] = "whitelistApproved";
128
129
  OrganizationWebhookTypeEnum["whitelistRejected"] = "whitelistRejected";
130
+ OrganizationWebhookTypeEnum["depositResolved"] = "depositResolved";
129
131
  })(OrganizationWebhookTypeEnum || (exports.OrganizationWebhookTypeEnum = OrganizationWebhookTypeEnum = {}));
130
132
  exports.OrganizationWebhookType = t.keyof(OrganizationWebhookTypeEnum, "OrganizationWebhookType");
131
133
  //# sourceMappingURL=webhookType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhookType.js","sourceRoot":"","sources":["../../../../src/schema/webhook/webhookType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,eAmFX;AAnFD,WAAY,eAAe;IAEzB,0CAAyB,CAAA;IAEzB,gEAA+C,CAAA;IAC/C,wCAAuB,CAAA;IACvB,8CAA6B,CAAA;IAC7B,4DAA2C,CAAA;IAC3C,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,gEAA+C,CAAA;IAC/C,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IAEnC,gEAA+C,CAAA;IAG/C,8DAA6C,CAAA;IAE7C,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,4DAA2C,CAAA;IAC3C,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IAEzB,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IAEzB,8DAA6C,CAAA;IAG7C,wCAAuB,CAAA;IAGvB,0CAAyB,CAAA;IAGzB,4EAA2D,CAAA;IAG3D,sCAAqB,CAAA;IAGrB,4CAA2B,CAAA;IAG3B,kDAAiC,CAAA;IAGjC,sDAAqC,CAAA;IAGrC,oDAAmC,CAAA;IAGnC,0DAAyC,CAAA;IAGzC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C,qBAAqB,EACrB,mBAAmB,CACpB,CAAC;AAGF,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACnC,wDAA6B,CAAA;IAC7B,wDAA6B,CAAA;IAC7B,wEAA6C,CAAA;IAC7C,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;AAC3B,CAAC,EANW,yBAAyB,yCAAzB,yBAAyB,QAMpC;AACY,QAAA,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAC1C,yBAAyB,EACzB,uBAAuB,CACxB,CAAC;AAGF,IAAY,2BAsBX;AAtBD,WAAY,2BAA2B;IACrC,oDAAuB,CAAA;IACvB,sDAAyB,CAAA;IACzB,kEAAqC,CAAA;IACrC,4EAA+C,CAAA;IAC/C,0DAA6B,CAAA;IAC7B,gEAAmC,CAAA;IACnC,sDAAyB,CAAA;IACzB,4DAA+B,CAAA;IAC/B,wEAA2C,CAAA;IAC3C,0DAA6B,CAAA;IAC7B,oDAAuB,CAAA;IACvB,wDAA2B,CAAA;IAG3B,sEAAyC,CAAA;IAGzC,sEAAyC,CAAA;IAGzC,kEAAqC,CAAA;AACvC,CAAC,EAtBW,2BAA2B,2CAA3B,2BAA2B,QAsBtC;AACY,QAAA,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC5C,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "7.2.1",
3
+ "version": "7.4.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -12,6 +12,7 @@ import { intentTypes } from "./intentType";
12
12
  * @param {String} operatorId - The operator id associated with the delegation proposal
13
13
  * @param {String} updateId - The transaction update id of the cosign delegation proposal
14
14
  * @param {String} [packageName] - The optional package name
15
+ * @param {String} [userAuthorization] - The optional user authorization claim code
15
16
  */
16
17
  export const CantonCosignDelegationProposalIntent = t.intersection([
17
18
  BaseIntent,
@@ -23,6 +24,7 @@ export const CantonCosignDelegationProposalIntent = t.intersection([
23
24
  }),
24
25
  t.partial({
25
26
  packageName: t.string,
27
+ userAuthorization: t.string,
26
28
  }),
27
29
  ]);
28
30
 
@@ -77,6 +77,9 @@ export enum WebhookTypeEnum {
77
77
  /** Travel Rule whitelist entry rejected. */
78
78
  "whitelistRejected" = "whitelistRejected",
79
79
 
80
+ /** Resolved deposit notification (deposit.resolved). */
81
+ "depositResolved" = "depositResolved",
82
+
80
83
  /** Canton DvP allocation request received (wallet-scoped). */
81
84
  "allocationRequest" = "allocationRequest",
82
85
  /** Canton DvP allocation accepted (wallet-scoped). */
@@ -173,6 +176,9 @@ export enum OrganizationWebhookTypeEnum {
173
176
 
174
177
  /** Travel Rule whitelist entry rejected. */
175
178
  "whitelistRejected" = "whitelistRejected",
179
+
180
+ /** Resolved deposit notification (deposit.resolved). */
181
+ "depositResolved" = "depositResolved",
176
182
  }
177
183
  export const OrganizationWebhookType = t.keyof(
178
184
  OrganizationWebhookTypeEnum,