@bitgo/public-types 5.44.0 → 5.46.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 (140) hide show
  1. package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
  2. package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
  3. package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
  4. package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
  5. package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
  6. package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
  7. package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +1 -0
  8. package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
  9. package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +1 -0
  10. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +1 -0
  11. package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +1 -0
  12. package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +1 -0
  13. package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +1 -0
  14. package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
  15. package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
  16. package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
  17. package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
  18. package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +1 -0
  19. package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +1 -0
  20. package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +1 -0
  21. package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
  22. package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
  23. package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
  24. package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +1 -0
  25. package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
  26. package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
  27. package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
  28. package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
  29. package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +1 -0
  30. package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -0
  31. package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +1 -0
  32. package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
  33. package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
  34. package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
  35. package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
  36. package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
  37. package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
  38. package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
  39. package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
  40. package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
  41. package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +1 -0
  42. package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
  43. package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
  44. package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
  45. package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
  46. package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
  47. package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
  48. package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
  49. package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
  50. package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
  51. package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
  52. package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -0
  53. package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
  54. package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
  55. package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
  56. package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
  57. package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
  58. package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -0
  59. package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
  60. package/dist/src/schema/transactionRequest/intents/intent.d.ts +95 -0
  61. package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
  62. package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
  63. package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
  64. package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +1 -0
  65. package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +1 -0
  66. package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +2 -0
  67. package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +2 -0
  68. package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
  69. package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
  70. package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
  71. package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
  72. package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
  73. package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
  74. package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +1 -0
  75. package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +1 -0
  76. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +1 -0
  77. package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
  78. package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +1 -0
  79. package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +1 -0
  80. package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
  81. package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
  82. package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
  83. package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
  84. package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
  85. package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +1 -0
  86. package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
  87. package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
  88. package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +1 -0
  89. package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +1 -0
  90. package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +2 -0
  91. package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +2 -0
  92. package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +1 -0
  93. package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
  94. package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
  95. package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
  96. package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -0
  97. package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
  98. package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
  99. package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
  100. package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
  101. package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +2 -0
  102. package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
  103. package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
  104. package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
  105. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -0
  106. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
  107. package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
  108. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
  109. package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +1 -0
  110. package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
  111. package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
  112. package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
  113. package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
  114. package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +1 -0
  115. package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
  116. package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +1 -0
  117. package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +1 -0
  118. package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
  119. package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +2 -0
  120. package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
  121. package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
  122. package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
  123. package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
  124. package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +1 -0
  125. package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
  126. package/dist/src/schema/transactionRequest/transactionRequest.d.ts +190 -0
  127. package/dist/src/schema/webhook/index.d.ts +1 -0
  128. package/dist/src/schema/webhook/index.js +1 -0
  129. package/dist/src/schema/webhook/index.js.map +1 -1
  130. package/dist/src/schema/webhook/organizationWebhooks.d.ts +81 -0
  131. package/dist/src/schema/webhook/organizationWebhooks.js +56 -0
  132. package/dist/src/schema/webhook/organizationWebhooks.js.map +1 -0
  133. package/dist/src/schema/webhook/webhookType.d.ts +14 -0
  134. package/dist/src/schema/webhook/webhookType.js +15 -1
  135. package/dist/src/schema/webhook/webhookType.js.map +1 -1
  136. package/package.json +1 -1
  137. package/src/schema/transactionRequest/intents/intentType.ts +1 -0
  138. package/src/schema/webhook/index.ts +1 -0
  139. package/src/schema/webhook/organizationWebhooks.ts +44 -0
  140. package/src/schema/webhook/webhookType.ts +18 -0
@@ -1,4 +1,5 @@
1
1
  export * from "./enterpriseWebhooks";
2
+ export * from "./organizationWebhooks";
2
3
  export * from "./addWalletWebhookRequest";
3
4
  export * from "./webhook";
4
5
  export * from "./webhookNotification";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enterpriseWebhooks"), exports);
18
+ __exportStar(require("./organizationWebhooks"), exports);
18
19
  __exportStar(require("./addWalletWebhookRequest"), exports);
19
20
  __exportStar(require("./webhook"), exports);
20
21
  __exportStar(require("./webhookNotification"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
@@ -0,0 +1,81 @@
1
+ import * as t from "io-ts";
2
+ export declare const AddOrganizationWebhookRequestBody: {
3
+ type: t.KeyofC<typeof import("./webhookType").OrganizationWebhookTypeEnum>;
4
+ url: import("io-ts-types").NonEmptyStringC;
5
+ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6
+ };
7
+ export declare const AddOrganizationWebhookRequestBodyC: t.TypeC<{
8
+ type: t.KeyofC<typeof import("./webhookType").OrganizationWebhookTypeEnum>;
9
+ url: import("io-ts-types").NonEmptyStringC;
10
+ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11
+ }>;
12
+ export type AddOrganizationWebhookRequestBody = t.TypeOf<typeof AddOrganizationWebhookRequestBodyC>;
13
+ export declare const ListOrganizationWebhooksRequestBody: {
14
+ type: t.UnionC<[t.Type<"txRequest" | "txRequestTransaction" | "transfer" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "accessToken" | "reversal", "txRequest" | "txRequestTransaction" | "transfer" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "accessToken" | "reversal", unknown>, t.UndefinedC]>;
15
+ limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
16
+ prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
17
+ };
18
+ export declare const ListOrganizationWebhooksRequestBodyC: t.TypeC<{
19
+ type: t.UnionC<[t.Type<"txRequest" | "txRequestTransaction" | "transfer" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "accessToken" | "reversal", "txRequest" | "txRequestTransaction" | "transfer" | "pendingapproval" | "bankAccount" | "userKycState" | "enterpriseKycState" | "identityStatus" | "accessToken" | "reversal", unknown>, t.UndefinedC]>;
20
+ limit: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
21
+ prevId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
22
+ }>;
23
+ export type ListOrganizationWebhooksRequestBody = t.TypeOf<typeof ListOrganizationWebhooksRequestBodyC>;
24
+ export declare const ListOrganizationWebhooksResponse: t.IntersectionC<[t.TypeC<{
25
+ webhooks: t.ArrayC<t.IntersectionC<[t.TypeC<{
26
+ id: t.StringC;
27
+ created: import("io-ts-types").DateFromISOStringC;
28
+ coin: t.StringC;
29
+ url: t.StringC;
30
+ version: t.NumberC;
31
+ scope: t.KeyofC<typeof import("./webhookScope").WebhookScopeEnum>;
32
+ state: t.KeyofC<typeof import("./webhookState").WebhookStateEnum>;
33
+ successiveFailedAttempts: t.NumberC;
34
+ listenToFailureStates: t.BooleanC;
35
+ }>, t.PartialC<{
36
+ label: t.StringC;
37
+ walletId: t.StringC;
38
+ enterpriseId: t.StringC;
39
+ organizationId: t.StringC;
40
+ userId: t.StringC;
41
+ type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
42
+ numConfirmations: t.NumberC;
43
+ lastAttempt: import("io-ts-types").DateFromISOStringC;
44
+ failingSince: import("io-ts-types").DateFromISOStringC;
45
+ allToken: t.BooleanC;
46
+ txRequestStates: t.ArrayC<t.KeyofC<{
47
+ pendingApproval: number;
48
+ canceled: number;
49
+ rejected: number;
50
+ initialized: number;
51
+ pendingDelivery: number;
52
+ delivered: number;
53
+ pendingUserSignature: number;
54
+ pendingUserCommitment: number;
55
+ pendingUserRShare: number;
56
+ pendingUserGShare: number;
57
+ readyToSend: number;
58
+ signed: number;
59
+ failed: number;
60
+ }>>;
61
+ txRequestTransactionStates: t.ArrayC<t.KeyofC<{
62
+ initialized: number;
63
+ pendingSignature: number;
64
+ eddsaPendingCommitment: number;
65
+ eddsaPendingRShare: number;
66
+ eddsaPendingGShare: number;
67
+ ecdsaMPCv2Round1: number;
68
+ ecdsaMPCv2Round2: number;
69
+ ecdsaMPCv2Round3: number;
70
+ readyToCombineShares: number;
71
+ signed: number;
72
+ held: number;
73
+ delivered: number;
74
+ invalidSignature: number;
75
+ rejected: number;
76
+ }>>;
77
+ }>]>>;
78
+ }>, t.PartialC<{
79
+ nextBatchPrevId: t.UnionC<[t.Type<string | undefined, string | undefined, unknown>, t.UndefinedC]>;
80
+ }>]>;
81
+ export type ListOrganizationWebhooksResponse = t.TypeOf<typeof ListOrganizationWebhooksResponse>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ListOrganizationWebhooksResponse = exports.ListOrganizationWebhooksRequestBodyC = exports.ListOrganizationWebhooksRequestBody = exports.AddOrganizationWebhookRequestBodyC = exports.AddOrganizationWebhookRequestBody = void 0;
27
+ const webhookType_1 = require("./webhookType");
28
+ const io_ts_types_1 = require("io-ts-types");
29
+ const utils_1 = require("../../utils");
30
+ const t = __importStar(require("io-ts"));
31
+ const webhook_1 = require("./webhook");
32
+ exports.AddOrganizationWebhookRequestBody = {
33
+ type: webhookType_1.OrganizationWebhookType,
34
+ url: io_ts_types_1.NonEmptyString,
35
+ label: (0, utils_1.Optional)(t.string),
36
+ };
37
+ exports.AddOrganizationWebhookRequestBodyC = t.type({
38
+ ...exports.AddOrganizationWebhookRequestBody,
39
+ });
40
+ exports.ListOrganizationWebhooksRequestBody = {
41
+ type: (0, utils_1.Optional)(webhookType_1.OrganizationWebhookType),
42
+ limit: utils_1.optionalStringOrNumber,
43
+ prevId: utils_1.optionalString,
44
+ };
45
+ exports.ListOrganizationWebhooksRequestBodyC = t.type({
46
+ ...exports.ListOrganizationWebhooksRequestBody,
47
+ });
48
+ exports.ListOrganizationWebhooksResponse = t.intersection([
49
+ t.type({
50
+ webhooks: t.array(webhook_1.Webhook),
51
+ }),
52
+ t.partial({
53
+ nextBatchPrevId: (0, utils_1.Optional)(t.union([t.string, t.undefined])),
54
+ }),
55
+ ]);
56
+ //# sourceMappingURL=organizationWebhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationWebhooks.js","sourceRoot":"","sources":["../../../../src/schema/webhook/organizationWebhooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwD;AACxD,6CAA6C;AAC7C,uCAA+E;AAC/E,yCAA2B;AAC3B,uCAAoC;AAEvB,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,qCAAuB;IAC7B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,GAAG,yCAAiC;CACrC,CAAC,CAAC;AAMU,QAAA,mCAAmC,GAAG;IACjD,IAAI,EAAE,IAAA,gBAAQ,EAAC,qCAAuB,CAAC;IACvC,KAAK,EAAE,8BAAsB;IAC7B,MAAM,EAAE,sBAAc;CACvB,CAAC;AAEW,QAAA,oCAAoC,GAAG,CAAC,CAAC,IAAI,CAAC;IACzD,GAAG,2CAAmC;CACvC,CAAC,CAAC;AAMU,QAAA,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,CAAC,CAAC,IAAI,CAAC;QACL,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAO,CAAC;KAC3B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,eAAe,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH,CAAC,CAAC"}
@@ -56,3 +56,17 @@ export declare enum EnterpriseWebhookTypeEnum {
56
56
  }
57
57
  export declare const EnterpriseWebhookType: t.KeyofC<typeof EnterpriseWebhookTypeEnum>;
58
58
  export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;
59
+ export declare enum OrganizationWebhookTypeEnum {
60
+ "transfer" = "transfer",
61
+ "txRequest" = "txRequest",
62
+ "pendingapproval" = "pendingapproval",
63
+ "txRequestTransaction" = "txRequestTransaction",
64
+ "bankAccount" = "bankAccount",
65
+ "identityStatus" = "identityStatus",
66
+ "userKycState" = "userKycState",
67
+ "enterpriseKycState" = "enterpriseKycState",
68
+ "accessToken" = "accessToken",
69
+ "reversal" = "reversal"
70
+ }
71
+ export declare const OrganizationWebhookType: t.KeyofC<typeof OrganizationWebhookTypeEnum>;
72
+ export type OrganizationWebhookType = t.TypeOf<typeof OrganizationWebhookType>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.EnterpriseWebhookType = exports.EnterpriseWebhookTypeEnum = exports.WalletWebhookType = exports.WalletWebhookTypeEnum = exports.WebhookType = exports.WebhookTypeEnum = void 0;
26
+ exports.OrganizationWebhookType = exports.OrganizationWebhookTypeEnum = exports.EnterpriseWebhookType = exports.EnterpriseWebhookTypeEnum = exports.WalletWebhookType = exports.WalletWebhookTypeEnum = exports.WebhookType = exports.WebhookTypeEnum = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  var WebhookTypeEnum;
29
29
  (function (WebhookTypeEnum) {
@@ -82,4 +82,18 @@ var EnterpriseWebhookTypeEnum;
82
82
  EnterpriseWebhookTypeEnum["reversal"] = "reversal";
83
83
  })(EnterpriseWebhookTypeEnum || (exports.EnterpriseWebhookTypeEnum = EnterpriseWebhookTypeEnum = {}));
84
84
  exports.EnterpriseWebhookType = t.keyof(EnterpriseWebhookTypeEnum, "EnterpriseWebhookType");
85
+ var OrganizationWebhookTypeEnum;
86
+ (function (OrganizationWebhookTypeEnum) {
87
+ OrganizationWebhookTypeEnum["transfer"] = "transfer";
88
+ OrganizationWebhookTypeEnum["txRequest"] = "txRequest";
89
+ OrganizationWebhookTypeEnum["pendingapproval"] = "pendingapproval";
90
+ OrganizationWebhookTypeEnum["txRequestTransaction"] = "txRequestTransaction";
91
+ OrganizationWebhookTypeEnum["bankAccount"] = "bankAccount";
92
+ OrganizationWebhookTypeEnum["identityStatus"] = "identityStatus";
93
+ OrganizationWebhookTypeEnum["userKycState"] = "userKycState";
94
+ OrganizationWebhookTypeEnum["enterpriseKycState"] = "enterpriseKycState";
95
+ OrganizationWebhookTypeEnum["accessToken"] = "accessToken";
96
+ OrganizationWebhookTypeEnum["reversal"] = "reversal";
97
+ })(OrganizationWebhookTypeEnum || (exports.OrganizationWebhookTypeEnum = OrganizationWebhookTypeEnum = {}));
98
+ exports.OrganizationWebhookType = t.keyof(OrganizationWebhookTypeEnum, "OrganizationWebhookType");
85
99
  //# 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,eAuCX;AAvCD,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;IAEnC,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IAEzB,8DAA6C,CAAA;IAG7C,wCAAuB,CAAA;IAGvB,4EAA2D,CAAA;AAC7D,CAAC,EAvCW,eAAe,+BAAf,eA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AAXD,WAAY,2BAA2B;IACrC,oDAAuB,CAAA;IACvB,sDAAyB,CAAA;IACzB,kEAAqC,CAAA;IACrC,4EAA+C,CAAA;IAC/C,0DAA6B,CAAA;IAC7B,gEAAmC,CAAA;IACnC,4DAA+B,CAAA;IAC/B,wEAA2C,CAAA;IAC3C,0DAA6B,CAAA;IAC7B,oDAAuB,CAAA;AACzB,CAAC,EAXW,2BAA2B,2CAA3B,2BAA2B,QAWtC;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": "5.44.0",
3
+ "version": "5.46.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -33,6 +33,7 @@ export const intentTypes = {
33
33
  closeAssociatedTokenAccount: t.literal("closeAssociatedTokenAccount"),
34
34
  stakeWithCallData: t.literal("stakeWithCallData"),
35
35
  unstakeWithCallData: t.literal("unstakeWithCallData"),
36
+ switchValidatorWithCallData: t.literal("switchValidatorWithCallData"),
36
37
  feeAddressTransfer: t.literal("feeAddressTransfer"),
37
38
  tokenApproval: t.literal("tokenApproval"),
38
39
  /**
@@ -1,4 +1,5 @@
1
1
  export * from "./enterpriseWebhooks";
2
+ export * from "./organizationWebhooks";
2
3
  export * from "./addWalletWebhookRequest";
3
4
  export * from "./webhook";
4
5
  export * from "./webhookNotification";
@@ -0,0 +1,44 @@
1
+ import { OrganizationWebhookType } from "./webhookType";
2
+ import { NonEmptyString } from "io-ts-types";
3
+ import { Optional, optionalString, optionalStringOrNumber } from "../../utils";
4
+ import * as t from "io-ts";
5
+ import { Webhook } from "./webhook";
6
+
7
+ export const AddOrganizationWebhookRequestBody = {
8
+ type: OrganizationWebhookType,
9
+ url: NonEmptyString,
10
+ label: Optional(t.string),
11
+ };
12
+ export const AddOrganizationWebhookRequestBodyC = t.type({
13
+ ...AddOrganizationWebhookRequestBody,
14
+ });
15
+
16
+ export type AddOrganizationWebhookRequestBody = t.TypeOf<
17
+ typeof AddOrganizationWebhookRequestBodyC
18
+ >;
19
+
20
+ export const ListOrganizationWebhooksRequestBody = {
21
+ type: Optional(OrganizationWebhookType),
22
+ limit: optionalStringOrNumber,
23
+ prevId: optionalString,
24
+ };
25
+
26
+ export const ListOrganizationWebhooksRequestBodyC = t.type({
27
+ ...ListOrganizationWebhooksRequestBody,
28
+ });
29
+
30
+ export type ListOrganizationWebhooksRequestBody = t.TypeOf<
31
+ typeof ListOrganizationWebhooksRequestBodyC
32
+ >;
33
+
34
+ export const ListOrganizationWebhooksResponse = t.intersection([
35
+ t.type({
36
+ webhooks: t.array(Webhook),
37
+ }),
38
+ t.partial({
39
+ nextBatchPrevId: Optional(t.union([t.string, t.undefined])),
40
+ }),
41
+ ]);
42
+ export type ListOrganizationWebhooksResponse = t.TypeOf<
43
+ typeof ListOrganizationWebhooksResponse
44
+ >;
@@ -79,3 +79,21 @@ export const EnterpriseWebhookType = t.keyof(
79
79
  "EnterpriseWebhookType",
80
80
  );
81
81
  export type EnterpriseWebhookType = t.TypeOf<typeof EnterpriseWebhookType>;
82
+
83
+ export enum OrganizationWebhookTypeEnum {
84
+ "transfer" = "transfer",
85
+ "txRequest" = "txRequest",
86
+ "pendingapproval" = "pendingapproval",
87
+ "txRequestTransaction" = "txRequestTransaction",
88
+ "bankAccount" = "bankAccount",
89
+ "identityStatus" = "identityStatus",
90
+ "userKycState" = "userKycState",
91
+ "enterpriseKycState" = "enterpriseKycState",
92
+ "accessToken" = "accessToken",
93
+ "reversal" = "reversal",
94
+ }
95
+ export const OrganizationWebhookType = t.keyof(
96
+ OrganizationWebhookTypeEnum,
97
+ "OrganizationWebhookType",
98
+ );
99
+ export type OrganizationWebhookType = t.TypeOf<typeof OrganizationWebhookType>;