@bitgo/public-types 5.68.0 → 5.69.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/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.js +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +5 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +10 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts +4 -0
|
@@ -52,5 +52,7 @@ export declare const CantonTransferAcceptIntent: t.IntersectionC<[t.Intersection
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"transferAccept">;
|
|
54
54
|
txRequestId: t.StringC;
|
|
55
|
+
}>, t.PartialC<{
|
|
56
|
+
token: t.StringC;
|
|
55
57
|
}>]>;
|
|
56
58
|
export type CantonTransferAcceptIntent = t.TypeOf<typeof CantonTransferAcceptIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonTransferAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonTransferAcceptIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcceptIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -58,5 +58,6 @@ export declare const CantonTransferAcknowledgeIntent: t.IntersectionC<[t.Interse
|
|
|
58
58
|
expiry: t.NumberC;
|
|
59
59
|
}>, t.PartialC<{
|
|
60
60
|
memoId: t.StringC;
|
|
61
|
+
token: t.StringC;
|
|
61
62
|
}>]>;
|
|
62
63
|
export type CantonTransferAcknowledgeIntent = t.TypeOf<typeof CantonTransferAcknowledgeIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAmB9B,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,mBAAmB;QAC3C,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -52,5 +52,7 @@ export declare const CantonTransferRejectIntent: t.IntersectionC<[t.Intersection
|
|
|
52
52
|
}>]>, t.TypeC<{
|
|
53
53
|
intentType: t.LiteralC<"transferReject">;
|
|
54
54
|
txRequestId: t.StringC;
|
|
55
|
+
}>, t.PartialC<{
|
|
56
|
+
token: t.StringC;
|
|
55
57
|
}>]>;
|
|
56
58
|
export type CantonTransferRejectIntent = t.TypeOf<typeof CantonTransferRejectIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonTransferRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonTransferRejectIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferRejectIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,cAAc;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1122,6 +1122,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1122
1122
|
}>]>, t.TypeC<{
|
|
1123
1123
|
intentType: t.LiteralC<"transferAccept">;
|
|
1124
1124
|
txRequestId: t.StringC;
|
|
1125
|
+
}>, t.PartialC<{
|
|
1126
|
+
token: t.StringC;
|
|
1125
1127
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1126
1128
|
intentType: t.KeyofC<{
|
|
1127
1129
|
payment: t.LiteralC<"payment">;
|
|
@@ -1181,6 +1183,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1181
1183
|
expiry: t.NumberC;
|
|
1182
1184
|
}>, t.PartialC<{
|
|
1183
1185
|
memoId: t.StringC;
|
|
1186
|
+
token: t.StringC;
|
|
1184
1187
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1185
1188
|
intentType: t.KeyofC<{
|
|
1186
1189
|
payment: t.LiteralC<"payment">;
|
|
@@ -1234,6 +1237,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1234
1237
|
}>]>, t.TypeC<{
|
|
1235
1238
|
intentType: t.LiteralC<"transferReject">;
|
|
1236
1239
|
txRequestId: t.StringC;
|
|
1240
|
+
}>, t.PartialC<{
|
|
1241
|
+
token: t.StringC;
|
|
1237
1242
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1238
1243
|
intentType: t.KeyofC<{
|
|
1239
1244
|
payment: t.LiteralC<"payment">;
|
|
@@ -1220,6 +1220,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1220
1220
|
}>]>, t.TypeC<{
|
|
1221
1221
|
intentType: t.LiteralC<"transferAccept">;
|
|
1222
1222
|
txRequestId: t.StringC;
|
|
1223
|
+
}>, t.PartialC<{
|
|
1224
|
+
token: t.StringC;
|
|
1223
1225
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1224
1226
|
intentType: t.KeyofC<{
|
|
1225
1227
|
payment: t.LiteralC<"payment">;
|
|
@@ -1279,6 +1281,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1279
1281
|
expiry: t.NumberC;
|
|
1280
1282
|
}>, t.PartialC<{
|
|
1281
1283
|
memoId: t.StringC;
|
|
1284
|
+
token: t.StringC;
|
|
1282
1285
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1283
1286
|
intentType: t.KeyofC<{
|
|
1284
1287
|
payment: t.LiteralC<"payment">;
|
|
@@ -1332,6 +1335,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1332
1335
|
}>]>, t.TypeC<{
|
|
1333
1336
|
intentType: t.LiteralC<"transferReject">;
|
|
1334
1337
|
txRequestId: t.StringC;
|
|
1338
|
+
}>, t.PartialC<{
|
|
1339
|
+
token: t.StringC;
|
|
1335
1340
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1336
1341
|
intentType: t.KeyofC<{
|
|
1337
1342
|
payment: t.LiteralC<"payment">;
|
|
@@ -9302,6 +9307,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
9302
9307
|
}>]>, t.TypeC<{
|
|
9303
9308
|
intentType: t.LiteralC<"transferAccept">;
|
|
9304
9309
|
txRequestId: t.StringC;
|
|
9310
|
+
}>, t.PartialC<{
|
|
9311
|
+
token: t.StringC;
|
|
9305
9312
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
9306
9313
|
intentType: t.KeyofC<{
|
|
9307
9314
|
payment: t.LiteralC<"payment">;
|
|
@@ -9361,6 +9368,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
9361
9368
|
expiry: t.NumberC;
|
|
9362
9369
|
}>, t.PartialC<{
|
|
9363
9370
|
memoId: t.StringC;
|
|
9371
|
+
token: t.StringC;
|
|
9364
9372
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
9365
9373
|
intentType: t.KeyofC<{
|
|
9366
9374
|
payment: t.LiteralC<"payment">;
|
|
@@ -9414,6 +9422,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
9414
9422
|
}>]>, t.TypeC<{
|
|
9415
9423
|
intentType: t.LiteralC<"transferReject">;
|
|
9416
9424
|
txRequestId: t.StringC;
|
|
9425
|
+
}>, t.PartialC<{
|
|
9426
|
+
token: t.StringC;
|
|
9417
9427
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
9418
9428
|
intentType: t.KeyofC<{
|
|
9419
9429
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import { intentTypes } from "./intentType";
|
|
|
11
11
|
*
|
|
12
12
|
* @param {String} intentType - The type of intent (always set to transferAccept)
|
|
13
13
|
* @param {string} txRequestId - The acknowledgement txRequestId
|
|
14
|
+
* @param {String} [token] - The optional token
|
|
14
15
|
*/
|
|
15
16
|
export const CantonTransferAcceptIntent = t.intersection([
|
|
16
17
|
BaseIntent,
|
|
@@ -18,6 +19,9 @@ export const CantonTransferAcceptIntent = t.intersection([
|
|
|
18
19
|
intentType: intentTypes.transferAccept,
|
|
19
20
|
txRequestId: t.string,
|
|
20
21
|
}),
|
|
22
|
+
t.partial({
|
|
23
|
+
token: t.string,
|
|
24
|
+
}),
|
|
21
25
|
]);
|
|
22
26
|
|
|
23
27
|
export type CantonTransferAcceptIntent = t.TypeOf<
|
|
@@ -17,6 +17,7 @@ import { intentTypes } from "./intentType";
|
|
|
17
17
|
* @param {Number} amount - The deposit amount
|
|
18
18
|
* @param {Number} expiry - The expiry epoch
|
|
19
19
|
* @param {String} [memoId] - The optional memoId
|
|
20
|
+
* @param {String} [token] - The optional token
|
|
20
21
|
*/
|
|
21
22
|
export const CantonTransferAcknowledgeIntent = t.intersection([
|
|
22
23
|
BaseIntent,
|
|
@@ -30,6 +31,7 @@ export const CantonTransferAcknowledgeIntent = t.intersection([
|
|
|
30
31
|
}),
|
|
31
32
|
t.partial({
|
|
32
33
|
memoId: t.string,
|
|
34
|
+
token: t.string,
|
|
33
35
|
}),
|
|
34
36
|
]);
|
|
35
37
|
|
|
@@ -11,6 +11,7 @@ import { intentTypes } from "./intentType";
|
|
|
11
11
|
*
|
|
12
12
|
* @param {String} intentType - The type of intent (always set to transferReject)
|
|
13
13
|
* @param {string} txRequestId - The acknowledgement txRequestId
|
|
14
|
+
* @param {String} [token] - The optional token
|
|
14
15
|
*/
|
|
15
16
|
export const CantonTransferRejectIntent = t.intersection([
|
|
16
17
|
BaseIntent,
|
|
@@ -18,6 +19,9 @@ export const CantonTransferRejectIntent = t.intersection([
|
|
|
18
19
|
intentType: intentTypes.transferReject,
|
|
19
20
|
txRequestId: t.string,
|
|
20
21
|
}),
|
|
22
|
+
t.partial({
|
|
23
|
+
token: t.string,
|
|
24
|
+
}),
|
|
21
25
|
]);
|
|
22
26
|
|
|
23
27
|
export type CantonTransferRejectIntent = t.TypeOf<
|