@bitgo/public-types 6.47.0 → 6.48.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.
|
@@ -3,6 +3,11 @@ export declare const InitializeSafeBody: t.TypeC<{
|
|
|
3
3
|
label: t.StringC;
|
|
4
4
|
}>;
|
|
5
5
|
export type InitializeSafeBody = t.TypeOf<typeof InitializeSafeBody>;
|
|
6
|
+
export declare const InitializeSafeResponse: t.TypeC<{
|
|
7
|
+
id: t.StringC;
|
|
8
|
+
status: t.LiteralC<"initializing">;
|
|
9
|
+
}>;
|
|
10
|
+
export type InitializeSafeResponse = t.TypeOf<typeof InitializeSafeResponse>;
|
|
6
11
|
export declare const FinalizeSafeBody: t.TypeC<{
|
|
7
12
|
rootKeys: t.TypeC<{
|
|
8
13
|
hot: t.TypeC<{
|
|
@@ -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.FreezeSafeBody = exports.FinalizeSafeBody = exports.InitializeSafeBody = void 0;
|
|
26
|
+
exports.FreezeSafeBody = exports.FinalizeSafeBody = exports.InitializeSafeResponse = exports.InitializeSafeBody = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const io_ts_types_1 = require("io-ts-types");
|
|
29
29
|
const rootKeys_1 = require("./rootKeys");
|
|
30
30
|
exports.InitializeSafeBody = t.type({ label: t.string }, "InitializeSafeBody");
|
|
31
|
+
exports.InitializeSafeResponse = t.type({ id: t.string, status: t.literal("initializing") }, "InitializeSafeResponse");
|
|
31
32
|
exports.FinalizeSafeBody = t.type({ rootKeys: rootKeys_1.SafeRootKeys }, "FinalizeSafeBody");
|
|
32
33
|
exports.FreezeSafeBody = t.partial({ expires: io_ts_types_1.DateFromISOString, reason: t.string }, "FreezeSafeBody");
|
|
33
34
|
//# sourceMappingURL=requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../../src/schema/safe/requests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,yCAA0C;AAM7B,QAAA,kBAAkB,GAAG,CAAC,CAAC,IAAI,CACtC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EACnB,oBAAoB,CACrB,CAAC;AAQW,QAAA,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,EAAE,QAAQ,EAAE,uBAAY,EAAE,EAC1B,kBAAkB,CACnB,CAAC;AAQW,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CACrC,EAAE,OAAO,EAAE,+BAAiB,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAChD,gBAAgB,CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../../src/schema/safe/requests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,yCAA0C;AAM7B,QAAA,kBAAkB,GAAG,CAAC,CAAC,IAAI,CACtC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EACnB,oBAAoB,CACrB,CAAC;AASW,QAAA,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAC1C,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,EACnD,wBAAwB,CACzB,CAAC;AAQW,QAAA,gBAAgB,GAAG,CAAC,CAAC,IAAI,CACpC,EAAE,QAAQ,EAAE,uBAAY,EAAE,EAC1B,kBAAkB,CACnB,CAAC;AAQW,QAAA,cAAc,GAAG,CAAC,CAAC,OAAO,CACrC,EAAE,OAAO,EAAE,+BAAiB,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAChD,gBAAgB,CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -13,6 +13,18 @@ export const InitializeSafeBody = t.type(
|
|
|
13
13
|
/** @experimental */
|
|
14
14
|
export type InitializeSafeBody = t.TypeOf<typeof InitializeSafeBody>;
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* Response for POST /enterprise/:eId/safes — Phase 1 creates metadata only, so the response
|
|
18
|
+
* carries just the new safe's id and its always-`initializing` status (not a full `SafeData`).
|
|
19
|
+
* @experimental
|
|
20
|
+
*/
|
|
21
|
+
export const InitializeSafeResponse = t.type(
|
|
22
|
+
{ id: t.string, status: t.literal("initializing") },
|
|
23
|
+
"InitializeSafeResponse",
|
|
24
|
+
);
|
|
25
|
+
/** @experimental */
|
|
26
|
+
export type InitializeSafeResponse = t.TypeOf<typeof InitializeSafeResponse>;
|
|
27
|
+
|
|
16
28
|
/**
|
|
17
29
|
* POST /enterprise/:eId/safes/:safeId/finalize — the 12 key ids as 4 ordered triplets.
|
|
18
30
|
* @experimental
|