@bitgo/public-types 2.32.1 → 2.33.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 (37) hide show
  1. package/dist/src/schema/mpcv2/index.d.ts +1 -0
  2. package/dist/src/schema/mpcv2/index.js +1 -0
  3. package/dist/src/schema/mpcv2/index.js.map +1 -1
  4. package/dist/src/schema/mpcv2/smc/index.d.ts +3 -0
  5. package/dist/src/schema/mpcv2/smc/index.js +20 -0
  6. package/dist/src/schema/mpcv2/smc/index.js.map +1 -0
  7. package/dist/src/schema/mpcv2/smc/keygenRound.d.ts +1440 -0
  8. package/dist/src/schema/mpcv2/smc/keygenRound.js +234 -0
  9. package/dist/src/schema/mpcv2/smc/keygenRound.js.map +1 -0
  10. package/dist/src/schema/mpcv2/smc/keygenState.d.ts +18 -0
  11. package/dist/src/schema/mpcv2/smc/keygenState.js +59 -0
  12. package/dist/src/schema/mpcv2/smc/keygenState.js.map +1 -0
  13. package/dist/src/schema/mpcv2/smc/messages/broadcast.d.ts +11 -0
  14. package/dist/src/schema/mpcv2/smc/messages/broadcast.js +42 -0
  15. package/dist/src/schema/mpcv2/smc/messages/broadcast.js.map +1 -0
  16. package/dist/src/schema/mpcv2/smc/messages/p2p.d.ts +12 -0
  17. package/dist/src/schema/mpcv2/smc/messages/p2p.js +44 -0
  18. package/dist/src/schema/mpcv2/smc/messages/p2p.js.map +1 -0
  19. package/dist/src/schema/mpcv2/smc/walletType.d.ts +8 -0
  20. package/dist/src/schema/mpcv2/smc/walletType.js +35 -0
  21. package/dist/src/schema/mpcv2/smc/walletType.js.map +1 -0
  22. package/dist/src/schema/webhook/addWalletWebhookRequest.d.ts +2 -30
  23. package/dist/src/schema/webhook/enterpriseWebhooks.d.ts +3 -29
  24. package/dist/src/schema/webhook/webhook.d.ts +1 -21
  25. package/dist/src/schema/webhook/webhookNotification.d.ts +1 -21
  26. package/dist/src/schema/webhook/webhookType.d.ts +43 -40
  27. package/dist/src/schema/webhook/webhookType.js +47 -41
  28. package/dist/src/schema/webhook/webhookType.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/schema/mpcv2/index.ts +1 -0
  31. package/src/schema/mpcv2/smc/index.ts +3 -0
  32. package/src/schema/mpcv2/smc/keygenRound.ts +260 -0
  33. package/src/schema/mpcv2/smc/keygenState.ts +35 -0
  34. package/src/schema/mpcv2/smc/messages/broadcast.ts +22 -0
  35. package/src/schema/mpcv2/smc/messages/p2p.ts +24 -0
  36. package/src/schema/mpcv2/smc/walletType.ts +11 -0
  37. package/src/schema/webhook/webhookType.ts +50 -49
@@ -1,63 +1,64 @@
1
1
  import * as t from "io-ts";
2
2
 
3
- export const WebhookType = t.keyof(
4
- {
5
- // Webhook for txRequest.state changes
6
- txRequest: 1,
7
- // Webhook for any txRequest.transactions[].state changes
8
- txRequestTransaction: 1,
9
- transfer: 1,
10
- transaction: 1,
11
- transactionRemoved: 1,
12
- transactionExpire: 1,
13
- pendingapproval: 1,
14
- block: 1,
15
- admin: 1,
16
- address_confirmation: 1,
17
- lowFee: 1,
18
- circuitBreaker: 1,
19
-
20
- // Specific to User Webhooks
21
- wallet_confirmation: 1,
22
-
23
- wireWithdrawal: 1,
24
- bankAccount: 1,
25
- userKycState: 1,
26
- enterpriseKycState: 1,
27
- identityStatus: 1,
28
-
29
- accessToken: 1,
30
- },
31
- "WebhookType",
32
- );
3
+ export enum WebhookTypeEnum {
4
+ // Webhook for txRequest.state changes
5
+ "txRequest" = "txRequest",
6
+ // Webhook for any txRequest.transactions[].state changes
7
+ "txRequestTransaction" = "txRequestTransaction",
8
+ "transfer" = "transfer",
9
+ "transaction" = "transaction",
10
+ "transactionRemoved" = "transactionRemoved",
11
+ "transactionExpire" = "transactionExpire",
12
+ "pendingapproval" = "pendingapproval",
13
+ "block" = "block",
14
+ "admin" = "admin",
15
+ "address_confirmation" = "address_confirmation",
16
+ "lowFee" = "lowFee",
17
+ "circuitBreaker" = "circuitBreaker",
18
+
19
+ // Specific to User Webhooks
20
+ "wallet_confirmation" = "wallet_confirmation",
21
+
22
+ "wireWithdrawal" = "wireWithdrawal",
23
+ "bankAccount" = "bankAccount",
24
+ "userKycState" = "userKycState",
25
+ "enterpriseKycState" = "enterpriseKycState",
26
+ "identityStatus" = "identityStatus",
33
27
 
28
+ "accessToken" = "accessToken",
29
+ }
30
+
31
+ export const WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
34
32
  export type WebhookType = t.TypeOf<typeof WebhookType>;
35
33
 
34
+ export enum WalletWebhookTypeEnum {
35
+ "txRequest" = "txRequest",
36
+ "txRequestTransaction" = "txRequestTransaction",
37
+ "transfer" = "transfer",
38
+ "transaction" = "transaction",
39
+ "transactionRemoved" = "transactionRemoved",
40
+ "transactionExpire" = "transactionExpire",
41
+ "pendingapproval" = "pendingapproval",
42
+ "block" = "block",
43
+ "admin" = "admin",
44
+ "address_confirmation" = "address_confirmation",
45
+ "lowFee" = "lowFee",
46
+ "circuitBreaker" = "circuitBreaker",
47
+ "wireWithdrawal" = "wireWithdrawal",
48
+ }
49
+
36
50
  export const WalletWebhookType = t.keyof(
37
- {
38
- txRequest: 1,
39
- txRequestTransaction: 1,
40
- transfer: 1,
41
- transaction: 1,
42
- transactionRemoved: 1,
43
- transactionExpire: 1,
44
- pendingapproval: 1,
45
- block: 1,
46
- admin: 1,
47
- address_confirmation: 1,
48
- lowFee: 1,
49
- circuitBreaker: 1,
50
- wireWithdrawal: 1,
51
- },
51
+ WalletWebhookTypeEnum,
52
52
  "WalletWebhookType",
53
53
  );
54
54
  export type WalletWebhookType = t.TypeOf<typeof WalletWebhookType>;
55
55
 
56
+ export enum EnterpriseWebhookTypeEnum {
57
+ "bankAccount" = "bankAccount",
58
+ "accessToken" = "accessToken",
59
+ }
56
60
  export const EnterpriseWebhookType = t.keyof(
57
- {
58
- bankAccount: 1,
59
- accessToken: 1,
60
- },
61
+ EnterpriseWebhookTypeEnum,
61
62
  "EnterpriseWebhookType",
62
63
  );
63
64
  export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;