@bitgo/public-types 2.14.0 → 2.15.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.
@@ -0,0 +1,73 @@
1
+ import * as t from "io-ts";
2
+ export declare const AddEnterpriseWebhookRequestBody: {
3
+ type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
4
+ url: import("io-ts-types").NonEmptyStringC;
5
+ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6
+ };
7
+ export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
8
+ type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
9
+ url: import("io-ts-types").NonEmptyStringC;
10
+ label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11
+ }>;
12
+ export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
13
+ export declare const ListEnterpriseWebhooksRequestBody: {
14
+ type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
15
+ };
16
+ export declare const ListEnterpriseWebhooksRequestBodyC: t.TypeC<{
17
+ type: t.UnionC<[t.Type<"bankAccount", "bankAccount", unknown>, t.UndefinedC]>;
18
+ }>;
19
+ export type ListEnterpriseWebhooksRequestBody = t.TypeOf<typeof ListEnterpriseWebhooksRequestBodyC>;
20
+ export declare const ListEnterpriseWebhooksResponse: t.TypeC<{
21
+ webhooks: t.ArrayC<t.IntersectionC<[t.TypeC<{
22
+ id: t.StringC;
23
+ created: import("io-ts-types").DateFromISOStringC;
24
+ coin: t.StringC;
25
+ url: t.StringC;
26
+ version: t.NumberC;
27
+ state: t.KeyofC<typeof import("./webhookState").WebhookStateEnum>;
28
+ successiveFailedAttempts: t.NumberC;
29
+ listenToFailureStates: t.BooleanC;
30
+ }>, t.PartialC<{
31
+ label: t.StringC;
32
+ walletId: t.StringC;
33
+ enterpriseId: t.StringC;
34
+ organizationId: t.StringC;
35
+ scope: t.KeyofC<typeof import("./webhookScope").WebhookScopeEnum>;
36
+ userId: t.StringC;
37
+ type: t.KeyofC<typeof import("./webhookType").WebhookTypeEnum>;
38
+ numConfirmations: t.NumberC;
39
+ lastAttempt: import("io-ts-types").DateFromISOStringC;
40
+ failingSince: import("io-ts-types").DateFromISOStringC;
41
+ allToken: t.BooleanC;
42
+ txRequestStates: t.ArrayC<t.KeyofC<{
43
+ pendingApproval: number;
44
+ canceled: number;
45
+ rejected: number;
46
+ initialized: number;
47
+ pendingDelivery: number;
48
+ delivered: number;
49
+ pendingUserSignature: number;
50
+ pendingUserCommitment: number;
51
+ pendingUserRShare: number;
52
+ pendingUserGShare: number;
53
+ readyToSend: number;
54
+ signed: number;
55
+ failed: number;
56
+ }>>;
57
+ txRequestTransactionStates: t.ArrayC<t.KeyofC<{
58
+ initialized: number;
59
+ pendingSignature: number;
60
+ eddsaPendingCommitment: number;
61
+ eddsaPendingRShare: number;
62
+ eddsaPendingGShare: number;
63
+ readyToCombineShares: number;
64
+ signed: number;
65
+ held: number;
66
+ delivered: number;
67
+ invalidSignature: number;
68
+ rejected: number;
69
+ }>>;
70
+ }>]>>;
71
+ }>;
72
+ export type ListEnterpriseWebhooksResponse = t.TypeOf<typeof ListEnterpriseWebhooksResponse>;
73
+ //# sourceMappingURL=enterpriseWebhooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enterpriseWebhooks.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;CAE7C,CAAC;AACF,eAAO,MAAM,kCAAkC;;EAE7C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CACtD,OAAO,kCAAkC,CAC1C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CACnD,OAAO,8BAA8B,CACtC,CAAC"}
@@ -23,11 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
26
+ exports.ListEnterpriseWebhooksResponse = exports.ListEnterpriseWebhooksRequestBodyC = exports.ListEnterpriseWebhooksRequestBody = exports.AddEnterpriseWebhookRequestBodyC = exports.AddEnterpriseWebhookRequestBody = void 0;
27
27
  const webhookType_1 = require("./webhookType");
28
28
  const io_ts_types_1 = require("io-ts-types");
29
29
  const utils_1 = require("../../utils");
30
30
  const t = __importStar(require("io-ts"));
31
+ const webhook_1 = require("./webhook");
31
32
  exports.AddEnterpriseWebhookRequestBody = {
32
33
  type: webhookType_1.EnterpriseWebhookType,
33
34
  url: io_ts_types_1.NonEmptyString,
@@ -36,4 +37,13 @@ exports.AddEnterpriseWebhookRequestBody = {
36
37
  exports.AddEnterpriseWebhookRequestBodyC = t.type({
37
38
  ...exports.AddEnterpriseWebhookRequestBody,
38
39
  });
39
- //# sourceMappingURL=addEnterpriseWebhookRequest.js.map
40
+ exports.ListEnterpriseWebhooksRequestBody = {
41
+ type: (0, utils_1.Optional)(webhookType_1.EnterpriseWebhookType),
42
+ };
43
+ exports.ListEnterpriseWebhooksRequestBodyC = t.type({
44
+ ...exports.ListEnterpriseWebhooksRequestBody,
45
+ });
46
+ exports.ListEnterpriseWebhooksResponse = t.type({
47
+ webhooks: t.array(webhook_1.Webhook),
48
+ });
49
+ //# sourceMappingURL=enterpriseWebhooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enterpriseWebhooks.js","sourceRoot":"","sources":["../../../../src/schema/webhook/enterpriseWebhooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAAuC;AACvC,yCAA2B;AAC3B,uCAAoC;AAEvB,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC;AAMU,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,IAAA,gBAAQ,EAAC,mCAAqB,CAAC;CACtC,CAAC;AACW,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,GAAG,yCAAiC;CACrC,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAO,CAAC;CAC3B,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from "./addEnterpriseWebhookRequest";
1
+ export * from "./enterpriseWebhooks";
2
2
  export * from "./addWalletWebhookRequest";
3
3
  export * from "./webhook";
4
4
  export * from "./webhookNotification";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./addEnterpriseWebhookRequest"), exports);
17
+ __exportStar(require("./enterpriseWebhooks"), exports);
18
18
  __exportStar(require("./addWalletWebhookRequest"), exports);
19
19
  __exportStar(require("./webhook"), exports);
20
20
  __exportStar(require("./webhookNotification"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,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,4DAA0C;AAC1C,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,13 +0,0 @@
1
- import * as t from "io-ts";
2
- export declare const AddEnterpriseWebhookRequestBody: {
3
- type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
4
- url: import("io-ts-types").NonEmptyStringC;
5
- label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
6
- };
7
- export declare const AddEnterpriseWebhookRequestBodyC: t.TypeC<{
8
- type: t.KeyofC<typeof import("./webhookType").EnterpriseWebhookTypeEnum>;
9
- url: import("io-ts-types").NonEmptyStringC;
10
- label: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11
- }>;
12
- export type AddEnterpriseWebhookRequestBody = t.TypeOf<typeof AddEnterpriseWebhookRequestBodyC>;
13
- //# sourceMappingURL=addEnterpriseWebhookRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addEnterpriseWebhookRequest.d.ts","sourceRoot":"","sources":["../../../../src/schema/webhook/addEnterpriseWebhookRequest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,+BAA+B;;;;CAI3C,CAAC;AACF,eAAO,MAAM,gCAAgC;;;;EAE3C,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CACpD,OAAO,gCAAgC,CACxC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"addEnterpriseWebhookRequest.js","sourceRoot":"","sources":["../../../../src/schema/webhook/addEnterpriseWebhookRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAsD;AACtD,6CAA6C;AAC7C,uCAAuC;AACvC,yCAA2B;AAEd,QAAA,+BAA+B,GAAG;IAC7C,IAAI,EAAE,mCAAqB;IAC3B,GAAG,EAAE,4BAAc;IACnB,KAAK,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,MAAM,CAAC;CAC1B,CAAC;AACW,QAAA,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACrD,GAAG,uCAA+B;CACnC,CAAC,CAAC"}