@dxos/config 2.26.2-dev.4412f210 → 2.27.1-dev.39fac7d9
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/config.d.ts +6 -6
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +1 -1
- package/dist/src/config.js.map +1 -1
- package/dist/src/config.test.js +32 -20
- package/dist/src/config.test.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +176 -254
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +26 -23
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +0 -2
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +26 -50
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +6 -2
- package/dist/src/proto/gen/index.js.map +1 -1
- package/dist/src/proto/substitutions.d.ts +8 -0
- package/dist/src/proto/substitutions.d.ts.map +1 -0
- package/dist/src/proto/substitutions.js +18 -0
- package/dist/src/proto/substitutions.js.map +1 -0
- package/dist/src/sanitizer.d.ts +1 -3
- package/dist/src/sanitizer.d.ts.map +1 -1
- package/dist/src/sanitizer.js +11 -6
- package/dist/src/sanitizer.js.map +1 -1
- package/dist/src/testing/env_map.json +3 -3
- package/dist/src/types.d.ts +2 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/src/proto/gen/dxos/configv1.d.ts +0 -203
- package/dist/src/proto/gen/dxos/configv1.d.ts.map +0 -1
- package/dist/src/proto/gen/dxos/configv1.js +0 -29
- package/dist/src/proto/gen/dxos/configv1.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/config.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,MAAM;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,MAAM,WAAW,MAAM;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC;CAC1B;AACD,yBAAiB,MAAM,CAAC;IACpB,UAAiB,MAAM;QACnB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;KAC3B;IACD,UAAiB,MAAM,CAAC;QACpB,UAAiB,GAAG;YAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;SAC1B;KACJ;IACD,UAAiB,KAAK;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS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,CAAC;SACpB;QACD,UAAiB,MAAM;YACnB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;SACnB;QACD,UAAiB,GAAG;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;SACvB;QACD,UAAiB,OAAO;YACpB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,cAAc,CAAC,EAAE,MAAM,CAAC;SAC3B;QACD,UAAiB,UAAU;YACvB,KAAK,CAAC,EAAE,MAAM,CAAC;SAClB;KACJ;CACJ"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
let
|
|
7
|
-
(function (
|
|
8
|
-
let
|
|
9
|
-
(function (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
StorageDriver
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
3
|
+
exports.Runtime = void 0;
|
|
4
|
+
var Runtime;
|
|
5
|
+
(function (Runtime) {
|
|
6
|
+
let Client;
|
|
7
|
+
(function (Client) {
|
|
8
|
+
let Mode;
|
|
9
|
+
(function (Mode) {
|
|
10
|
+
Mode[Mode["AUTOMATIC"] = 0] = "AUTOMATIC";
|
|
11
|
+
Mode[Mode["LOCAL"] = 1] = "LOCAL";
|
|
12
|
+
Mode[Mode["REMOTE"] = 2] = "REMOTE";
|
|
13
|
+
})(Mode = Client.Mode || (Client.Mode = {}));
|
|
14
|
+
let Storage;
|
|
15
|
+
(function (Storage) {
|
|
16
|
+
let StorageDriver;
|
|
17
|
+
(function (StorageDriver) {
|
|
18
|
+
StorageDriver[StorageDriver["RAM"] = 0] = "RAM";
|
|
19
|
+
StorageDriver[StorageDriver["IDB"] = 1] = "IDB";
|
|
20
|
+
StorageDriver[StorageDriver["CHROME"] = 2] = "CHROME";
|
|
21
|
+
StorageDriver[StorageDriver["FIREFOX"] = 3] = "FIREFOX";
|
|
22
|
+
StorageDriver[StorageDriver["NODE"] = 4] = "NODE";
|
|
23
|
+
StorageDriver[StorageDriver["LEVELJS"] = 11] = "LEVELJS";
|
|
24
|
+
StorageDriver[StorageDriver["JSONDOWN"] = 12] = "JSONDOWN";
|
|
25
|
+
})(StorageDriver = Storage.StorageDriver || (Storage.StorageDriver = {}));
|
|
26
|
+
})(Storage = Client.Storage || (Client.Storage = {}));
|
|
27
|
+
})(Client = Runtime.Client || (Runtime.Client = {}));
|
|
28
|
+
})(Runtime = exports.Runtime || (exports.Runtime = {}));
|
|
26
29
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/config.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/proto/gen/dxos/config.ts"],"names":[],"mappings":";;;AAmDA,IAAiB,OAAO,CAwJvB;AAxJD,WAAiB,OAAO;IAmBpB,IAAiB,MAAM,CAuBtB;IAvBD,WAAiB,MAAM;QACnB,IAAY,IAIX;QAJD,WAAY,IAAI;YACZ,yCAAa,CAAA;YACb,iCAAS,CAAA;YACT,mCAAU,CAAA;QACd,CAAC,EAJW,IAAI,GAAJ,WAAI,KAAJ,WAAI,QAIf;QAOD,IAAiB,OAAO,CAUvB;QAVD,WAAiB,OAAO;YACpB,IAAY,aAQX;YARD,WAAY,aAAa;gBACrB,+CAAO,CAAA;gBACP,+CAAO,CAAA;gBACP,qDAAU,CAAA;gBACV,uDAAW,CAAA;gBACX,iDAAQ,CAAA;gBACR,wDAAY,CAAA;gBACZ,0DAAa,CAAA;YACjB,CAAC,EARW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAQxB;QACL,CAAC,EAVgB,OAAO,GAAP,cAAO,KAAP,cAAO,QAUvB;IACL,CAAC,EAvBgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAuBtB;AA8GL,CAAC,EAxJgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAwJvB"}
|
|
@@ -170,8 +170,6 @@ export interface FieldOptions {
|
|
|
170
170
|
deprecated?: boolean;
|
|
171
171
|
weak?: boolean;
|
|
172
172
|
uninterpretedOption?: UninterpretedOption[];
|
|
173
|
-
".dxos.config.env"?: string;
|
|
174
|
-
".dxos.config.regex"?: string;
|
|
175
173
|
}
|
|
176
174
|
export declare namespace FieldOptions {
|
|
177
175
|
enum CType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAChC;AACD,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,eAA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C;QAChB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;KACtC;CACJ;AACD,MAAM,WAAW,iBAAiB;IAC9B,UAAU,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,CAAC;CAC/C;AACD,yBAAiB,iBAAiB,CAAC;IAC/B,UAAiB,UAAU;QACvB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":";;;AAkEA,IAAiB,oBAAoB,CA0BpC;AA1BD,WAAiB,oBAAoB;IACjC,IAAY,IAmBX;IAnBD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,2CAAc,CAAA;QACd,2CAAc,CAAA;QACd,6CAAe,CAAA;QACf,2CAAc,CAAA;QACd,+CAAgB,CAAA;QAChB,+CAAgB,CAAA;QAChB,yCAAa,CAAA;QACb,6CAAe,CAAA;QACf,4CAAe,CAAA;QACf,gDAAiB,CAAA;QACjB,4CAAe,CAAA;QACf,8CAAgB,CAAA;QAChB,0CAAc,CAAA;QACd,kDAAkB,CAAA;QAClB,kDAAkB,CAAA;QAClB,8CAAgB,CAAA;QAChB,8CAAgB,CAAA;IACpB,CAAC,EAnBW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAmBf;IACD,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,qDAAkB,CAAA;QAClB,qDAAkB,CAAA;QAClB,qDAAkB,CAAA;IACtB,CAAC,EAJW,KAAK,GAAL,0BAAK,KAAL,0BAAK,QAIhB;AACL,CAAC,EA1BgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA0BpC;AAqDD,IAAiB,WAAW,CAM3B;AAND,WAAiB,WAAW;IACxB,IAAY,YAIX;IAJD,WAAY,YAAY;QACpB,iDAAS,CAAA;QACT,yDAAa,CAAA;QACb,+DAAgB,CAAA;IACpB,CAAC,EAJW,YAAY,GAAZ,wBAAY,KAAZ,wBAAY,QAIvB;AACL,CAAC,EANgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAM3B;
|
|
1
|
+
{"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":";;;AAkEA,IAAiB,oBAAoB,CA0BpC;AA1BD,WAAiB,oBAAoB;IACjC,IAAY,IAmBX;IAnBD,WAAY,IAAI;QACZ,6CAAe,CAAA;QACf,2CAAc,CAAA;QACd,2CAAc,CAAA;QACd,6CAAe,CAAA;QACf,2CAAc,CAAA;QACd,+CAAgB,CAAA;QAChB,+CAAgB,CAAA;QAChB,yCAAa,CAAA;QACb,6CAAe,CAAA;QACf,4CAAe,CAAA;QACf,gDAAiB,CAAA;QACjB,4CAAe,CAAA;QACf,8CAAgB,CAAA;QAChB,0CAAc,CAAA;QACd,kDAAkB,CAAA;QAClB,kDAAkB,CAAA;QAClB,8CAAgB,CAAA;QAChB,8CAAgB,CAAA;IACpB,CAAC,EAnBW,IAAI,GAAJ,yBAAI,KAAJ,yBAAI,QAmBf;IACD,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,qDAAkB,CAAA;QAClB,qDAAkB,CAAA;QAClB,qDAAkB,CAAA;IACtB,CAAC,EAJW,KAAK,GAAL,0BAAK,KAAL,0BAAK,QAIhB;AACL,CAAC,EA1BgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA0BpC;AAqDD,IAAiB,WAAW,CAM3B;AAND,WAAiB,WAAW;IACxB,IAAY,YAIX;IAJD,WAAY,YAAY;QACpB,iDAAS,CAAA;QACT,yDAAa,CAAA;QACb,+DAAgB,CAAA;IACpB,CAAC,EAJW,YAAY,GAAZ,wBAAY,KAAZ,wBAAY,QAIvB;AACL,CAAC,EANgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAM3B;AAyBD,IAAiB,YAAY,CAW5B;AAXD,WAAiB,YAAY;IACzB,IAAY,KAIX;IAJD,WAAY,KAAK;QACb,qCAAU,CAAA;QACV,iCAAQ,CAAA;QACR,iDAAgB,CAAA;IACpB,CAAC,EAJW,KAAK,GAAL,kBAAK,KAAL,kBAAK,QAIhB;IACD,IAAY,MAIX;IAJD,WAAY,MAAM;QACd,6CAAa,CAAA;QACb,6CAAa,CAAA;QACb,6CAAa,CAAA;IACjB,CAAC,EAJW,MAAM,GAAN,mBAAM,KAAN,mBAAM,QAIjB;AACL,CAAC,EAXgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAW5B"}
|
|
@@ -1,59 +1,35 @@
|
|
|
1
1
|
import { Schema } from "@dxos/codec-protobuf";
|
|
2
2
|
import * as dxos_config from "./dxos/config";
|
|
3
|
-
import * as dxos_configv1 from "./dxos/configv1";
|
|
4
3
|
import * as google_protobuf from "./google/protobuf";
|
|
5
4
|
export interface TYPES {
|
|
6
|
-
"dxos.config.App": dxos_config.App;
|
|
7
|
-
"dxos.config.Bot": dxos_config.Bot;
|
|
8
|
-
"dxos.config.Bot.Ipc": dxos_config.Bot.Ipc;
|
|
9
5
|
"dxos.config.Build": dxos_config.Build;
|
|
10
|
-
"dxos.config.CLI": dxos_config.CLI;
|
|
11
|
-
"dxos.config.CLI.AppServe": dxos_config.CLI.AppServe;
|
|
12
|
-
"dxos.config.CLI.AppServe.Serve": dxos_config.CLI.AppServe.Serve;
|
|
13
|
-
"dxos.config.CLI.Package": dxos_config.CLI.Package;
|
|
14
6
|
"dxos.config.Config": dxos_config.Config;
|
|
15
|
-
"dxos.config.
|
|
16
|
-
"dxos.config.
|
|
17
|
-
"dxos.config.
|
|
18
|
-
"dxos.config.
|
|
19
|
-
"dxos.config.
|
|
20
|
-
"dxos.config.
|
|
21
|
-
"dxos.config.
|
|
22
|
-
"dxos.config.
|
|
23
|
-
"dxos.config.
|
|
24
|
-
"dxos.config.
|
|
25
|
-
"dxos.config.
|
|
26
|
-
"dxos.config.
|
|
27
|
-
"dxos.config.
|
|
28
|
-
"dxos.config.
|
|
29
|
-
"dxos.
|
|
30
|
-
"dxos.
|
|
31
|
-
"dxos.
|
|
32
|
-
"dxos.
|
|
33
|
-
"dxos.
|
|
34
|
-
"dxos.
|
|
35
|
-
"dxos.
|
|
36
|
-
"dxos.
|
|
37
|
-
"dxos.
|
|
38
|
-
"dxos.
|
|
39
|
-
"dxos.
|
|
40
|
-
"dxos.
|
|
41
|
-
"dxos.configv1.Runtime.Client": dxos_configv1.Runtime.Client;
|
|
42
|
-
"dxos.configv1.Runtime.Client.Mode": dxos_configv1.Runtime.Client.Mode;
|
|
43
|
-
"dxos.configv1.Runtime.Client.Storage": dxos_configv1.Runtime.Client.Storage;
|
|
44
|
-
"dxos.configv1.Runtime.Client.Storage.StorageDriver": dxos_configv1.Runtime.Client.Storage.StorageDriver;
|
|
45
|
-
"dxos.configv1.Runtime.Props": dxos_configv1.Runtime.Props;
|
|
46
|
-
"dxos.configv1.Runtime.Services": dxos_configv1.Runtime.Services;
|
|
47
|
-
"dxos.configv1.Runtime.Services.AppServer": dxos_configv1.Runtime.Services.AppServer;
|
|
48
|
-
"dxos.configv1.Runtime.Services.BotFactory": dxos_configv1.Runtime.Services.BotFactory;
|
|
49
|
-
"dxos.configv1.Runtime.Services.Dxns": dxos_configv1.Runtime.Services.Dxns;
|
|
50
|
-
"dxos.configv1.Runtime.Services.Ice": dxos_configv1.Runtime.Services.Ice;
|
|
51
|
-
"dxos.configv1.Runtime.Services.Ipfs": dxos_configv1.Runtime.Services.Ipfs;
|
|
52
|
-
"dxos.configv1.Runtime.Services.Kube": dxos_configv1.Runtime.Services.Kube;
|
|
53
|
-
"dxos.configv1.Runtime.Services.Kube.Endpoints": dxos_configv1.Runtime.Services.Kube.Endpoints;
|
|
54
|
-
"dxos.configv1.Runtime.Services.Machine": dxos_configv1.Runtime.Services.Machine;
|
|
55
|
-
"dxos.configv1.Runtime.Services.Signal": dxos_configv1.Runtime.Services.Signal;
|
|
56
|
-
"dxos.configv1.Runtime.System": dxos_configv1.Runtime.System;
|
|
7
|
+
"dxos.config.Module": dxos_config.Module;
|
|
8
|
+
"dxos.config.Module.Build": dxos_config.Module.Build;
|
|
9
|
+
"dxos.config.Module.Record": dxos_config.Module.Record;
|
|
10
|
+
"dxos.config.Module.Record.App": dxos_config.Module.Record.App;
|
|
11
|
+
"dxos.config.Runtime": dxos_config.Runtime;
|
|
12
|
+
"dxos.config.Runtime.App": dxos_config.Runtime.App;
|
|
13
|
+
"dxos.config.Runtime.CLI": dxos_config.Runtime.CLI;
|
|
14
|
+
"dxos.config.Runtime.CLI.AppServe": dxos_config.Runtime.CLI.AppServe;
|
|
15
|
+
"dxos.config.Runtime.CLI.AppServe.Serve": dxos_config.Runtime.CLI.AppServe.Serve;
|
|
16
|
+
"dxos.config.Runtime.CLI.Package": dxos_config.Runtime.CLI.Package;
|
|
17
|
+
"dxos.config.Runtime.Client": dxos_config.Runtime.Client;
|
|
18
|
+
"dxos.config.Runtime.Client.Mode": dxos_config.Runtime.Client.Mode;
|
|
19
|
+
"dxos.config.Runtime.Client.Storage": dxos_config.Runtime.Client.Storage;
|
|
20
|
+
"dxos.config.Runtime.Client.Storage.StorageDriver": dxos_config.Runtime.Client.Storage.StorageDriver;
|
|
21
|
+
"dxos.config.Runtime.Props": dxos_config.Runtime.Props;
|
|
22
|
+
"dxos.config.Runtime.Services": dxos_config.Runtime.Services;
|
|
23
|
+
"dxos.config.Runtime.Services.AppServer": dxos_config.Runtime.Services.AppServer;
|
|
24
|
+
"dxos.config.Runtime.Services.BotFactory": dxos_config.Runtime.Services.BotFactory;
|
|
25
|
+
"dxos.config.Runtime.Services.Dxns": dxos_config.Runtime.Services.Dxns;
|
|
26
|
+
"dxos.config.Runtime.Services.Ice": dxos_config.Runtime.Services.Ice;
|
|
27
|
+
"dxos.config.Runtime.Services.Ipfs": dxos_config.Runtime.Services.Ipfs;
|
|
28
|
+
"dxos.config.Runtime.Services.Kube": dxos_config.Runtime.Services.Kube;
|
|
29
|
+
"dxos.config.Runtime.Services.Kube.Endpoints": dxos_config.Runtime.Services.Kube.Endpoints;
|
|
30
|
+
"dxos.config.Runtime.Services.Machine": dxos_config.Runtime.Services.Machine;
|
|
31
|
+
"dxos.config.Runtime.Services.Signal": dxos_config.Runtime.Services.Signal;
|
|
32
|
+
"dxos.config.Runtime.System": dxos_config.Runtime.System;
|
|
57
33
|
"google.protobuf.DescriptorProto": google_protobuf.DescriptorProto;
|
|
58
34
|
"google.protobuf.DescriptorProto.ExtensionRange": google_protobuf.DescriptorProto.ExtensionRange;
|
|
59
35
|
"google.protobuf.DescriptorProto.ReservedRange": google_protobuf.DescriptorProto.ReservedRange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,KAAK;IAClB,mBAAmB,EAAE,WAAW,CAAC,KAAK,CAAC;IACvC,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC;IACzC,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC;IACzC,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC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C;IACrF,mCAAmC,EAAE,eAAe,CAAC,iBAAiB,CAAC;IACvE,8CAA8C,EAAE,eAAe,CAAC,iBAAiB,CAAC,UAAU,CAAC;IAC7F,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,uCAAuC,EAAE,eAAe,CAAC,qBAAqB,CAAC;IAC/E,+BAA+B,EAAE,eAAe,CAAC,aAAa,CAAC;IAC/D,sCAAsC,EAAE,eAAe,CAAC,oBAAoB,CAAC;IAC7E,8BAA8B,EAAE,eAAe,CAAC,YAAY,CAAC;IAC7D,wCAAwC,EAAE,eAAe,CAAC,sBAAsB,CAAC;IACjF,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,yCAAyC,EAAE,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC;IACnF,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;IACvD,qCAAqC,EAAE,eAAe,CAAC,mBAAmB,CAAC;IAC3E,8CAA8C,EAAE,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC;CAChG;AACD,MAAM,WAAW,QAAQ;CACxB;AACD,eAAO,MAAM,UAAU,KAAgrhB,CAAC;AACxshB,eAAO,MAAM,MAAM,yBAA8D,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.schema = exports.schemaJson = void 0;
|
|
4
7
|
const codec_protobuf_1 = require("@dxos/codec-protobuf");
|
|
5
|
-
exports.schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"config\":{\"nested\":{\"App\":{\"fields\":{\"title\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"org\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"theme\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"website\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":5,\"options\":{\"(env)\":\"PUBLIC_URL\"},\"comment\":null}},\"comment\":\"App configuration\"},\"Bot\":{\"fields\":{\"uid\":{\"type\":\"string\",\"id\":1,\"options\":{\"(env)\":\"UID\"},\"comment\":null},\"name\":{\"type\":\"string\",\"id\":2,\"options\":{\"(env)\":\"NAME\"},\"comment\":null},\"cwd\":{\"type\":\"string\",\"id\":3,\"options\":{\"(env)\":\"CWD\"},\"comment\":null},\"restarted\":{\"type\":\"bool\",\"id\":4,\"options\":{\"(env)\":\"RESTARTED\"},\"comment\":null},\"reset\":{\"type\":\"bool\",\"id\":5,\"options\":{\"(env)\":\"RESET\"},\"comment\":null},\"peerId\":{\"type\":\"string\",\"id\":6,\"options\":{\"(env)\":\"PEER_ID\"},\"comment\":null},\"topic\":{\"type\":\"string\",\"id\":7,\"options\":{\"(env)\":\"TOPIC\"},\"comment\":null},\"secretKey\":{\"type\":\"string\",\"id\":8,\"options\":{\"(env)\":\"SECRET_KEY\"},\"comment\":null},\"localDev\":{\"type\":\"bool\",\"id\":9,\"options\":{\"(env)\":\"LOCAL_DEV\"},\"comment\":null},\"nodePath\":{\"type\":\"string\",\"id\":10,\"options\":{\"(env)\":\"NODE_PATH\"},\"comment\":null},\"controlTopic\":{\"type\":\"string\",\"id\":11,\"options\":{\"(env)\":\"CONTROL_TOPIC\"},\"comment\":null},\"dumpFile\":{\"type\":\"string\",\"id\":12,\"options\":{\"(env)\":\"DUMP_FILE\"},\"comment\":null},\"ipc\":{\"type\":\"Ipc\",\"id\":13,\"options\":{\"(env)\":\"IPC\"},\"comment\":null}},\"nested\":{\"Ipc\":{\"fields\":{\"portFrom\":{\"type\":\"int32\",\"id\":1,\"options\":{\"(env)\":\"PORT_FROM\"},\"comment\":null},\"portTo\":{\"type\":\"int32\",\"id\":2,\"options\":{\"(env)\":\"PORT_TO\"},\"comment\":null},\"serverId\":{\"type\":\"string\",\"id\":3,\"options\":{\"(env)\":\"SERVER_ID\"},\"comment\":null}},\"comment\":null}},\"comment\":\"Bot configuration\"},\"Build\":{\"fields\":{\"version\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"commitHash\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null}},\"comment\":\"Build metadata\"},\"CLI\":{\"fields\":{\"nodePath\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServe\",\"id\":2,\"comment\":null},\"console\":{\"type\":\"Package\",\"id\":3,\"comment\":null},\"mdns\":{\"type\":\"Package\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Package\",\"id\":5,\"comment\":null},\"npmClient\":{\"type\":\"string\",\"id\":6,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":7,\"comment\":null}},\"nested\":{\"AppServe\":{\"fields\":{\"serve\":{\"type\":\"Serve\",\"id\":1,\"comment\":null}},\"nested\":{\"Serve\":{\"fields\":{\"config\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"loginApp\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"keyPhrase\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Package\":{\"fields\":{\"package\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"bin\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Config\":{\"fields\":{\"system\":{\"type\":\"System\",\"id\":1,\"options\":{\"(env)\":\"SYSTEM\"},\"comment\":null},\"services\":{\"type\":\"Services\",\"id\":2,\"comment\":null},\"build\":{\"type\":\"Build\",\"id\":11,\"comment\":\"Build metdata\"},\"app\":{\"type\":\"App\",\"id\":101,\"options\":{\"(env)\":\"APP\"},\"comment\":\"App configuration. Incuded if this configuration is for an app.\"},\"bot\":{\"type\":\"Bot\",\"id\":102,\"options\":{\"(env)\":\"BOT\"},\"comment\":\"App configuration. Incuded if this configuration is for a bot.\"},\"cli\":{\"type\":\"CLI\",\"id\":103,\"comment\":\"CLI configuration.\"},\"custom\":{\"keyType\":\"string\",\"type\":\"string\",\"id\":1001,\"comment\":\"Custom configuration as string key-value pairs.\"}},\"comment\":null},\"env\":{\"type\":\"string\",\"id\":5001,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":\"Name of the system env variable this config option maps to.\\nFor nested defintions names are concatenated with underscores.\"},\"regex\":{\"type\":\"string\",\"id\":5002,\"extend\":\"google.protobuf.FieldOptions\",\"comment\":\"Regex to validate string options.\"},\"Services\":{\"fields\":{\"kube\":{\"type\":\"Kube\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServer\",\"id\":2,\"comment\":null},\"dxns\":{\"type\":\"Dxns\",\"id\":3,\"comment\":null},\"ipfs\":{\"type\":\"Ipfs\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Signal\",\"id\":5,\"comment\":null},\"ice\":{\"rule\":\"repeated\",\"type\":\"Ice\",\"id\":6,\"comment\":null},\"machine\":{\"type\":\"Machine\",\"id\":7,\"comment\":null},\"bot\":{\"type\":\"BotFactoryClient\",\"id\":8,\"comment\":null}},\"nested\":{\"AppServer\":{\"fields\":{\"prefix\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"server\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"BotFactoryClient\":{\"fields\":{\"topic\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Dxns\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":\"DXNS endpoint.\"},\"accountUri\":{\"type\":\"string\",\"id\":2,\"comment\":\"Substrate account URI. This is a secret.\\nKUBEs do not serve this with the config but we store it in profile.yml.\\n\\nTODO(dmaretskyi): Deprecate this and move it to keyring.\"}},\"comment\":null},\"Ice\":{\"fields\":{\"urls\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"username\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"credential\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null},\"Ipfs\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"gateway\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"Kube\":{\"fields\":{\"endpoints\":{\"type\":\"Endpoints\",\"id\":1,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"nested\":{\"Endpoints\":{\"fields\":{\"logs\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"services\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Machine\":{\"fields\":{\"doAccessToken\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"githubAccessToken\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"githubUsername\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"dnsDomain\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"npmAccessToken\":{\"type\":\"string\",\"id\":5,\"comment\":null}},\"comment\":null},\"Signal\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"api\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}},\"comment\":\"Services provided to all DXOS agents\"},\"System\":{\"fields\":{\"certEndpoint\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"debug\":{\"type\":\"string\",\"id\":2,\"options\":{\"(env)\":\"DEBUG\"},\"comment\":null},\"storage\":{\"type\":\"Storage\",\"id\":3,\"comment\":null},\"enableSnapshots\":{\"type\":\"bool\",\"id\":4,\"comment\":null},\"snapshotInterval\":{\"type\":\"int32\",\"id\":5,\"comment\":\"Milliseconds\"},\"invitationExpiration\":{\"type\":\"int32\",\"id\":6,\"comment\":\"Milliseconds\"},\"mode\":{\"type\":\"Mode\",\"id\":7,\"comment\":null}},\"nested\":{\"Mode\":{\"values\":{\"AUTOMATIC\":0,\"LOCAL\":1,\"REMOTE\":2},\"comment\":\"Whether the client services are local with ClientServiceHost or remote and need to be accessed via ClientServiceProxy. Defaults to AUTOMATIC.\",\"comments\":{\"AUTOMATIC\":\"Connects to the browser wallet if avialable, otherwise runs services in the local mode.\",\"LOCAL\":\"Run services in the local mode.\",\"REMOTE\":\"Connect to the browser wallet or to the remote services through the RPC port.\"}},\"Storage\":{\"fields\":{\"persistent\":{\"type\":\"bool\",\"id\":1,\"comment\":null},\"storageType\":{\"type\":\"StorageDriver\",\"id\":2,\"comment\":null},\"keyStorage\":{\"type\":\"StorageDriver\",\"id\":3,\"comment\":null},\"path\":{\"type\":\"string\",\"id\":4,\"comment\":null}},\"nested\":{\"StorageDriver\":{\"values\":{\"RAM\":0,\"IDB\":1,\"CHROME\":2,\"FIREFOX\":3,\"NODE\":4,\"LEVELJS\":11,\"JSONDOWN\":12},\"comment\":null,\"comments\":{\"RAM\":null,\"IDB\":null,\"CHROME\":null,\"FIREFOX\":null,\"NODE\":null,\"LEVELJS\":null,\"JSONDOWN\":null}}},\"comment\":null}},\"comment\":null}}},\"configv1\":{\"nested\":{\"Build\":{\"fields\":{\"command\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"out\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"Config\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":null},\"module\":{\"type\":\"Module\",\"id\":2,\"comment\":null},\"build\":{\"type\":\"Build\",\"id\":3,\"comment\":null},\"runtime\":{\"type\":\"Runtime\",\"id\":4,\"comment\":null}},\"comment\":null},\"Module\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"type\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"version\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"author\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"license\":{\"type\":\"string\",\"id\":5,\"comment\":null},\"description\":{\"type\":\"string\",\"id\":6,\"comment\":null},\"repository\":{\"type\":\"string\",\"id\":7,\"comment\":null},\"repositoryVersion\":{\"type\":\"string\",\"id\":8,\"comment\":null},\"keywords\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":9,\"comment\":null},\"displayName\":{\"type\":\"string\",\"id\":10,\"comment\":null},\"npmUrl\":{\"type\":\"string\",\"id\":11,\"comment\":null},\"build\":{\"type\":\"Build\",\"id\":101,\"comment\":null},\"record\":{\"type\":\"Record\",\"id\":102,\"comment\":null}},\"nested\":{\"Build\":{\"fields\":{\"version\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"commitHash\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null}},\"comment\":null},\"Record\":{\"fields\":{\"app\":{\"type\":\"App\",\"id\":1,\"comment\":null}},\"nested\":{\"App\":{\"fields\":{\"contentType\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"Runtime\":{\"fields\":{\"client\":{\"type\":\"Client\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"App\",\"id\":2,\"comment\":null},\"cli\":{\"type\":\"CLI\",\"id\":3,\"comment\":null},\"props\":{\"type\":\"Props\",\"id\":4,\"comment\":null},\"services\":{\"type\":\"Services\",\"id\":5,\"comment\":null},\"system\":{\"type\":\"System\",\"id\":6,\"comment\":null}},\"nested\":{\"App\":{\"fields\":{\"org\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"theme\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"website\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":4,\"options\":{\"(env)\":\"PUBLIC_URL\"},\"comment\":null}},\"comment\":null},\"CLI\":{\"fields\":{\"nodePath\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServe\",\"id\":2,\"comment\":null},\"console\":{\"type\":\"Package\",\"id\":3,\"comment\":null},\"mdns\":{\"type\":\"Package\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Package\",\"id\":5,\"comment\":null},\"npmClient\":{\"type\":\"string\",\"id\":6,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":7,\"comment\":null}},\"nested\":{\"AppServe\":{\"fields\":{\"serve\":{\"type\":\"Serve\",\"id\":1,\"comment\":null}},\"nested\":{\"Serve\":{\"fields\":{\"config\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"loginApp\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"keyPhrase\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Package\":{\"fields\":{\"package\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"bin\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Client\":{\"fields\":{\"debug\":{\"type\":\"string\",\"id\":1,\"options\":{\"(env)\":\"DEBUG\"},\"comment\":null},\"storage\":{\"type\":\"Storage\",\"id\":2,\"comment\":null},\"enableSnapshots\":{\"type\":\"bool\",\"id\":3,\"comment\":null},\"snapshotInterval\":{\"type\":\"int32\",\"id\":4,\"comment\":\"Milliseconds\"},\"invitationExpiration\":{\"type\":\"int32\",\"id\":5,\"comment\":\"Milliseconds\"},\"mode\":{\"type\":\"Mode\",\"id\":6,\"comment\":null}},\"nested\":{\"Mode\":{\"values\":{\"AUTOMATIC\":0,\"LOCAL\":1,\"REMOTE\":2},\"comment\":\"Whether the client services are local with ClientServiceHost or remote and need to be accessed via ClientServiceProxy. Defaults to AUTOMATIC.\",\"comments\":{\"AUTOMATIC\":\"Connects to the browser wallet if avialable, otherwise runs services in the local mode.\",\"LOCAL\":\"Run services in the local mode.\",\"REMOTE\":\"Connect to the browser wallet or to the remote services through the RPC port.\"}},\"Storage\":{\"fields\":{\"persistent\":{\"type\":\"bool\",\"id\":1,\"comment\":null},\"storageType\":{\"type\":\"StorageDriver\",\"id\":2,\"comment\":null},\"keyStorage\":{\"type\":\"StorageDriver\",\"id\":3,\"comment\":null},\"path\":{\"type\":\"string\",\"id\":4,\"comment\":null}},\"nested\":{\"StorageDriver\":{\"values\":{\"RAM\":0,\"IDB\":1,\"CHROME\":2,\"FIREFOX\":3,\"NODE\":4,\"LEVELJS\":11,\"JSONDOWN\":12},\"comment\":null,\"comments\":{\"RAM\":null,\"IDB\":null,\"CHROME\":null,\"FIREFOX\":null,\"NODE\":null,\"LEVELJS\":null,\"JSONDOWN\":null}}},\"comment\":null}},\"comment\":null},\"Props\":{\"fields\":{\"title\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Services\":{\"fields\":{\"kube\":{\"type\":\"Kube\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServer\",\"id\":2,\"comment\":null},\"dxns\":{\"type\":\"Dxns\",\"id\":3,\"comment\":null},\"ipfs\":{\"type\":\"Ipfs\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Signal\",\"id\":5,\"comment\":null},\"ice\":{\"rule\":\"repeated\",\"type\":\"Ice\",\"id\":6,\"comment\":null},\"machine\":{\"type\":\"Machine\",\"id\":7,\"comment\":null},\"bot\":{\"type\":\"BotFactory\",\"id\":8,\"comment\":null}},\"nested\":{\"AppServer\":{\"fields\":{\"prefix\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"server\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"BotFactory\":{\"fields\":{\"topic\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Dxns\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":\"DXNS endpoint.\"},\"accountUri\":{\"type\":\"string\",\"id\":2,\"comment\":\"Substrate account URI. This is a secret.\\nKUBEs do not serve this with the config but we store it in profile.yml.\\n\\nTODO(dmaretskyi): Deprecate this and move it to keyring.\"},\"account\":{\"type\":\"string\",\"id\":3,\"comment\":\"Public address of the DXNS Account - not a secret.\"}},\"comment\":null},\"Ice\":{\"fields\":{\"urls\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"username\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"credential\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null},\"Ipfs\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"gateway\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"Kube\":{\"fields\":{\"endpoints\":{\"type\":\"Endpoints\",\"id\":1,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"nested\":{\"Endpoints\":{\"fields\":{\"logs\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"services\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Machine\":{\"fields\":{\"doAccessToken\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"githubAccessToken\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"githubUsername\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"dnsDomain\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"npmAccessToken\":{\"type\":\"string\",\"id\":5,\"comment\":null}},\"comment\":null},\"Signal\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"api\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"status\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"System\":{\"fields\":{\"debug\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"DescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"field\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":2},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":6},\"nestedType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":3},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":4},\"extensionRange\":{\"rule\":\"repeated\",\"type\":\"ExtensionRange\",\"id\":5},\"oneofDecl\":{\"rule\":\"repeated\",\"type\":\"OneofDescriptorProto\",\"id\":8},\"options\":{\"type\":\"MessageOptions\",\"id\":7},\"reservedRange\":{\"rule\":\"repeated\",\"type\":\"ReservedRange\",\"id\":9},\"reservedName\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":10}},\"nested\":{\"ExtensionRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"ReservedRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}},\"comment\":null},\"EnumDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"value\":{\"rule\":\"repeated\",\"type\":\"EnumValueDescriptorProto\",\"id\":2},\"options\":{\"type\":\"EnumOptions\",\"id\":3}},\"comment\":null},\"EnumOptions\":{\"fields\":{\"allowAlias\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"EnumValueDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":2},\"options\":{\"type\":\"EnumValueOptions\",\"id\":3}},\"comment\":null},\"EnumValueOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":1},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"FieldDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":3},\"label\":{\"type\":\"Label\",\"id\":4},\"type\":{\"type\":\"Type\",\"id\":5},\"typeName\":{\"type\":\"string\",\"id\":6},\"extendee\":{\"type\":\"string\",\"id\":2},\"defaultValue\":{\"type\":\"string\",\"id\":7},\"oneofIndex\":{\"type\":\"int32\",\"id\":9},\"jsonName\":{\"type\":\"string\",\"id\":10},\"options\":{\"type\":\"FieldOptions\",\"id\":8}},\"nested\":{\"Label\":{\"values\":{\"LABEL_OPTIONAL\":1,\"LABEL_REQUIRED\":2,\"LABEL_REPEATED\":3},\"comments\":{}},\"Type\":{\"values\":{\"TYPE_DOUBLE\":1,\"TYPE_FLOAT\":2,\"TYPE_INT64\":3,\"TYPE_UINT64\":4,\"TYPE_INT32\":5,\"TYPE_FIXED64\":6,\"TYPE_FIXED32\":7,\"TYPE_BOOL\":8,\"TYPE_STRING\":9,\"TYPE_GROUP\":10,\"TYPE_MESSAGE\":11,\"TYPE_BYTES\":12,\"TYPE_UINT32\":13,\"TYPE_ENUM\":14,\"TYPE_SFIXED32\":15,\"TYPE_SFIXED64\":16,\"TYPE_SINT32\":17,\"TYPE_SINT64\":18},\"comments\":{}}},\"comment\":null},\"FieldOptions\":{\"fields\":{\"ctype\":{\"type\":\"CType\",\"id\":1,\"options\":{\"default\":\"STRING\"}},\"packed\":{\"type\":\"bool\",\"id\":2},\"jstype\":{\"type\":\"JSType\",\"id\":6,\"options\":{\"default\":\"JS_NORMAL\"}},\"lazy\":{\"type\":\"bool\",\"id\":5},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"weak\":{\"type\":\"bool\",\"id\":10},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[4,4]],\"nested\":{\"CType\":{\"values\":{\"STRING\":0,\"CORD\":1,\"STRING_PIECE\":2},\"comments\":{}},\"JSType\":{\"values\":{\"JS_NORMAL\":0,\"JS_STRING\":1,\"JS_NUMBER\":2},\"comments\":{}}},\"comment\":null},\"FileDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"package\":{\"type\":\"string\",\"id\":2},\"dependency\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":3},\"publicDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":10,\"options\":{\"packed\":false}},\"weakDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":11,\"options\":{\"packed\":false}},\"messageType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":4},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":5},\"service\":{\"rule\":\"repeated\",\"type\":\"ServiceDescriptorProto\",\"id\":6},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":7},\"options\":{\"type\":\"FileOptions\",\"id\":8},\"sourceCodeInfo\":{\"type\":\"SourceCodeInfo\",\"id\":9},\"syntax\":{\"type\":\"string\",\"id\":12}},\"comment\":null},\"FileDescriptorSet\":{\"fields\":{\"file\":{\"rule\":\"repeated\",\"type\":\"FileDescriptorProto\",\"id\":1}},\"comment\":null},\"FileOptions\":{\"fields\":{\"javaPackage\":{\"type\":\"string\",\"id\":1},\"javaOuterClassname\":{\"type\":\"string\",\"id\":8},\"javaMultipleFiles\":{\"type\":\"bool\",\"id\":10},\"javaGenerateEqualsAndHash\":{\"type\":\"bool\",\"id\":20,\"options\":{\"deprecated\":true}},\"javaStringCheckUtf8\":{\"type\":\"bool\",\"id\":27},\"optimizeFor\":{\"type\":\"OptimizeMode\",\"id\":9,\"options\":{\"default\":\"SPEED\"}},\"goPackage\":{\"type\":\"string\",\"id\":11},\"ccGenericServices\":{\"type\":\"bool\",\"id\":16},\"javaGenericServices\":{\"type\":\"bool\",\"id\":17},\"pyGenericServices\":{\"type\":\"bool\",\"id\":18},\"deprecated\":{\"type\":\"bool\",\"id\":23},\"ccEnableArenas\":{\"type\":\"bool\",\"id\":31},\"objcClassPrefix\":{\"type\":\"string\",\"id\":36},\"csharpNamespace\":{\"type\":\"string\",\"id\":37},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[38,38]],\"nested\":{\"OptimizeMode\":{\"values\":{\"SPEED\":1,\"CODE_SIZE\":2,\"LITE_RUNTIME\":3},\"comments\":{}}},\"comment\":null},\"GeneratedCodeInfo\":{\"fields\":{\"annotation\":{\"rule\":\"repeated\",\"type\":\"Annotation\",\"id\":1}},\"nested\":{\"Annotation\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"sourceFile\":{\"type\":\"string\",\"id\":2},\"begin\":{\"type\":\"int32\",\"id\":3},\"end\":{\"type\":\"int32\",\"id\":4}},\"comment\":null}},\"comment\":null},\"MessageOptions\":{\"fields\":{\"messageSetWireFormat\":{\"type\":\"bool\",\"id\":1},\"noStandardDescriptorAccessor\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"mapEntry\":{\"type\":\"bool\",\"id\":7},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[8,8]],\"comment\":null},\"MethodDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"inputType\":{\"type\":\"string\",\"id\":2},\"outputType\":{\"type\":\"string\",\"id\":3},\"options\":{\"type\":\"MethodOptions\",\"id\":4},\"clientStreaming\":{\"type\":\"bool\",\"id\":5},\"serverStreaming\":{\"type\":\"bool\",\"id\":6}},\"comment\":null},\"MethodOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"OneofDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"options\":{\"type\":\"OneofOptions\",\"id\":2}},\"comment\":null},\"OneofOptions\":{\"fields\":{\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"ServiceDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"method\":{\"rule\":\"repeated\",\"type\":\"MethodDescriptorProto\",\"id\":2},\"options\":{\"type\":\"ServiceOptions\",\"id\":3}},\"comment\":null},\"ServiceOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"SourceCodeInfo\":{\"fields\":{\"location\":{\"rule\":\"repeated\",\"type\":\"Location\",\"id\":1}},\"nested\":{\"Location\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"span\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":2},\"leadingComments\":{\"type\":\"string\",\"id\":3},\"trailingComments\":{\"type\":\"string\",\"id\":4},\"leadingDetachedComments\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":6}},\"comment\":null}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"UninterpretedOption\":{\"fields\":{\"name\":{\"rule\":\"repeated\",\"type\":\"NamePart\",\"id\":2},\"identifierValue\":{\"type\":\"string\",\"id\":3},\"positiveIntValue\":{\"type\":\"uint64\",\"id\":4},\"negativeIntValue\":{\"type\":\"int64\",\"id\":5},\"doubleValue\":{\"type\":\"double\",\"id\":6},\"stringValue\":{\"type\":\"bytes\",\"id\":7},\"aggregateValue\":{\"type\":\"string\",\"id\":8}},\"nested\":{\"NamePart\":{\"fields\":{\"namePart\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1},\"isExtension\":{\"rule\":\"required\",\"type\":\"bool\",\"id\":2}},\"comment\":null}},\"comment\":null}}}}}}}");
|
|
6
|
-
exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson);
|
|
8
|
+
const substitutions_1 = __importDefault(require("../substitutions"));
|
|
9
|
+
exports.schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"config\":{\"nested\":{\"Build\":{\"fields\":{\"command\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"out\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"Config\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":null},\"module\":{\"type\":\"Module\",\"id\":2,\"comment\":null},\"build\":{\"type\":\"Build\",\"id\":3,\"comment\":null},\"runtime\":{\"type\":\"Runtime\",\"id\":4,\"comment\":null}},\"comment\":null},\"Module\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"type\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"version\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"author\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"license\":{\"type\":\"string\",\"id\":5,\"comment\":null},\"description\":{\"type\":\"string\",\"id\":6,\"comment\":null},\"repository\":{\"type\":\"string\",\"id\":7,\"comment\":null},\"repositoryVersion\":{\"type\":\"string\",\"id\":8,\"comment\":null},\"keywords\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":9,\"comment\":null},\"displayName\":{\"type\":\"string\",\"id\":10,\"comment\":null},\"npmUrl\":{\"type\":\"string\",\"id\":11,\"comment\":null},\"build\":{\"type\":\"Build\",\"id\":101,\"comment\":null},\"record\":{\"type\":\"Record\",\"id\":102,\"comment\":null}},\"nested\":{\"Build\":{\"fields\":{\"version\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"commitHash\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null}},\"comment\":null},\"Record\":{\"fields\":{\"app\":{\"type\":\"App\",\"id\":1,\"comment\":null}},\"nested\":{\"App\":{\"fields\":{\"contentType\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"Runtime\":{\"fields\":{\"client\":{\"type\":\"Client\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"App\",\"id\":2,\"comment\":null},\"cli\":{\"type\":\"CLI\",\"id\":3,\"comment\":null},\"props\":{\"type\":\"Props\",\"id\":4,\"comment\":null},\"services\":{\"type\":\"Services\",\"id\":5,\"comment\":null},\"system\":{\"type\":\"System\",\"id\":6,\"comment\":null}},\"nested\":{\"App\":{\"fields\":{\"org\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"theme\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"website\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":4,\"options\":{\"(env)\":\"PUBLIC_URL\"},\"comment\":null}},\"comment\":null},\"CLI\":{\"fields\":{\"nodePath\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServe\",\"id\":2,\"comment\":null},\"console\":{\"type\":\"Package\",\"id\":3,\"comment\":null},\"mdns\":{\"type\":\"Package\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Package\",\"id\":5,\"comment\":null},\"npmClient\":{\"type\":\"string\",\"id\":6,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":7,\"comment\":null}},\"nested\":{\"AppServe\":{\"fields\":{\"serve\":{\"type\":\"Serve\",\"id\":1,\"comment\":null}},\"nested\":{\"Serve\":{\"fields\":{\"config\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"loginApp\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"keyPhrase\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Package\":{\"fields\":{\"package\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"channel\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"bin\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Client\":{\"fields\":{\"debug\":{\"type\":\"string\",\"id\":1,\"options\":{\"(env)\":\"DEBUG\"},\"comment\":null},\"storage\":{\"type\":\"Storage\",\"id\":2,\"comment\":null},\"enableSnapshots\":{\"type\":\"bool\",\"id\":3,\"comment\":null},\"snapshotInterval\":{\"type\":\"int32\",\"id\":4,\"comment\":\"Milliseconds\"},\"invitationExpiration\":{\"type\":\"int32\",\"id\":5,\"comment\":\"Milliseconds\"},\"mode\":{\"type\":\"Mode\",\"id\":6,\"comment\":null}},\"nested\":{\"Mode\":{\"values\":{\"AUTOMATIC\":0,\"LOCAL\":1,\"REMOTE\":2},\"comment\":\"Whether the client services are local with ClientServiceHost or remote and need to be accessed via ClientServiceProxy. Defaults to AUTOMATIC.\",\"comments\":{\"AUTOMATIC\":\"Connects to the browser wallet if avialable, otherwise runs services in the local mode.\",\"LOCAL\":\"Run services in the local mode.\",\"REMOTE\":\"Connect to the browser wallet or to the remote services through the RPC port.\"}},\"Storage\":{\"fields\":{\"persistent\":{\"type\":\"bool\",\"id\":1,\"comment\":null},\"storageType\":{\"type\":\"StorageDriver\",\"id\":2,\"comment\":null},\"keyStorage\":{\"type\":\"StorageDriver\",\"id\":3,\"comment\":null},\"path\":{\"type\":\"string\",\"id\":4,\"comment\":null}},\"nested\":{\"StorageDriver\":{\"values\":{\"RAM\":0,\"IDB\":1,\"CHROME\":2,\"FIREFOX\":3,\"NODE\":4,\"LEVELJS\":11,\"JSONDOWN\":12},\"comment\":null,\"comments\":{\"RAM\":null,\"IDB\":null,\"CHROME\":null,\"FIREFOX\":null,\"NODE\":null,\"LEVELJS\":null,\"JSONDOWN\":null}}},\"comment\":null}},\"comment\":null},\"Props\":{\"fields\":{\"title\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Services\":{\"fields\":{\"kube\":{\"type\":\"Kube\",\"id\":1,\"comment\":null},\"app\":{\"type\":\"AppServer\",\"id\":2,\"comment\":null},\"dxns\":{\"type\":\"Dxns\",\"id\":3,\"comment\":null},\"ipfs\":{\"type\":\"Ipfs\",\"id\":4,\"comment\":null},\"signal\":{\"type\":\"Signal\",\"id\":5,\"comment\":null},\"ice\":{\"rule\":\"repeated\",\"type\":\"Ice\",\"id\":6,\"comment\":null},\"machine\":{\"type\":\"Machine\",\"id\":7,\"comment\":null},\"bot\":{\"type\":\"BotFactory\",\"id\":8,\"comment\":null}},\"nested\":{\"AppServer\":{\"fields\":{\"prefix\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"server\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"BotFactory\":{\"fields\":{\"topic\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Dxns\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":\"DXNS endpoint.\"},\"accountUri\":{\"type\":\"string\",\"id\":2,\"comment\":\"Substrate account URI. This is a secret.\\nKUBEs do not serve this with the config but we store it in profile.yml.\\n\\nTODO(dmaretskyi): Deprecate this and move it to keyring.\"},\"account\":{\"type\":\"string\",\"id\":3,\"comment\":\"Public address of the DXNS Account - not a secret.\"}},\"comment\":null},\"Ice\":{\"fields\":{\"urls\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"username\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"credential\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null},\"Ipfs\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"gateway\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"Kube\":{\"fields\":{\"endpoints\":{\"type\":\"Endpoints\",\"id\":1,\"comment\":null},\"publicUrl\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"nested\":{\"Endpoints\":{\"fields\":{\"logs\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"services\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Machine\":{\"fields\":{\"doAccessToken\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"githubAccessToken\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"githubUsername\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"dnsDomain\":{\"type\":\"string\",\"id\":4,\"comment\":null},\"npmAccessToken\":{\"type\":\"string\",\"id\":5,\"comment\":null}},\"comment\":null},\"Signal\":{\"fields\":{\"server\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"api\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"status\":{\"type\":\"string\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":null},\"System\":{\"fields\":{\"debug\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"DescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"field\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":2},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":6},\"nestedType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":3},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":4},\"extensionRange\":{\"rule\":\"repeated\",\"type\":\"ExtensionRange\",\"id\":5},\"oneofDecl\":{\"rule\":\"repeated\",\"type\":\"OneofDescriptorProto\",\"id\":8},\"options\":{\"type\":\"MessageOptions\",\"id\":7},\"reservedRange\":{\"rule\":\"repeated\",\"type\":\"ReservedRange\",\"id\":9},\"reservedName\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":10}},\"nested\":{\"ExtensionRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"ReservedRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}},\"comment\":null},\"EnumDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"value\":{\"rule\":\"repeated\",\"type\":\"EnumValueDescriptorProto\",\"id\":2},\"options\":{\"type\":\"EnumOptions\",\"id\":3}},\"comment\":null},\"EnumOptions\":{\"fields\":{\"allowAlias\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"EnumValueDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":2},\"options\":{\"type\":\"EnumValueOptions\",\"id\":3}},\"comment\":null},\"EnumValueOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":1},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"FieldDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":3},\"label\":{\"type\":\"Label\",\"id\":4},\"type\":{\"type\":\"Type\",\"id\":5},\"typeName\":{\"type\":\"string\",\"id\":6},\"extendee\":{\"type\":\"string\",\"id\":2},\"defaultValue\":{\"type\":\"string\",\"id\":7},\"oneofIndex\":{\"type\":\"int32\",\"id\":9},\"jsonName\":{\"type\":\"string\",\"id\":10},\"options\":{\"type\":\"FieldOptions\",\"id\":8}},\"nested\":{\"Label\":{\"values\":{\"LABEL_OPTIONAL\":1,\"LABEL_REQUIRED\":2,\"LABEL_REPEATED\":3},\"comments\":{}},\"Type\":{\"values\":{\"TYPE_DOUBLE\":1,\"TYPE_FLOAT\":2,\"TYPE_INT64\":3,\"TYPE_UINT64\":4,\"TYPE_INT32\":5,\"TYPE_FIXED64\":6,\"TYPE_FIXED32\":7,\"TYPE_BOOL\":8,\"TYPE_STRING\":9,\"TYPE_GROUP\":10,\"TYPE_MESSAGE\":11,\"TYPE_BYTES\":12,\"TYPE_UINT32\":13,\"TYPE_ENUM\":14,\"TYPE_SFIXED32\":15,\"TYPE_SFIXED64\":16,\"TYPE_SINT32\":17,\"TYPE_SINT64\":18},\"comments\":{}}},\"comment\":null},\"FieldOptions\":{\"fields\":{\"ctype\":{\"type\":\"CType\",\"id\":1,\"options\":{\"default\":\"STRING\"}},\"packed\":{\"type\":\"bool\",\"id\":2},\"jstype\":{\"type\":\"JSType\",\"id\":6,\"options\":{\"default\":\"JS_NORMAL\"}},\"lazy\":{\"type\":\"bool\",\"id\":5},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"weak\":{\"type\":\"bool\",\"id\":10},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[4,4]],\"nested\":{\"CType\":{\"values\":{\"STRING\":0,\"CORD\":1,\"STRING_PIECE\":2},\"comments\":{}},\"JSType\":{\"values\":{\"JS_NORMAL\":0,\"JS_STRING\":1,\"JS_NUMBER\":2},\"comments\":{}}},\"comment\":null},\"FileDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"package\":{\"type\":\"string\",\"id\":2},\"dependency\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":3},\"publicDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":10,\"options\":{\"packed\":false}},\"weakDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":11,\"options\":{\"packed\":false}},\"messageType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":4},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":5},\"service\":{\"rule\":\"repeated\",\"type\":\"ServiceDescriptorProto\",\"id\":6},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":7},\"options\":{\"type\":\"FileOptions\",\"id\":8},\"sourceCodeInfo\":{\"type\":\"SourceCodeInfo\",\"id\":9},\"syntax\":{\"type\":\"string\",\"id\":12}},\"comment\":null},\"FileDescriptorSet\":{\"fields\":{\"file\":{\"rule\":\"repeated\",\"type\":\"FileDescriptorProto\",\"id\":1}},\"comment\":null},\"FileOptions\":{\"fields\":{\"javaPackage\":{\"type\":\"string\",\"id\":1},\"javaOuterClassname\":{\"type\":\"string\",\"id\":8},\"javaMultipleFiles\":{\"type\":\"bool\",\"id\":10},\"javaGenerateEqualsAndHash\":{\"type\":\"bool\",\"id\":20,\"options\":{\"deprecated\":true}},\"javaStringCheckUtf8\":{\"type\":\"bool\",\"id\":27},\"optimizeFor\":{\"type\":\"OptimizeMode\",\"id\":9,\"options\":{\"default\":\"SPEED\"}},\"goPackage\":{\"type\":\"string\",\"id\":11},\"ccGenericServices\":{\"type\":\"bool\",\"id\":16},\"javaGenericServices\":{\"type\":\"bool\",\"id\":17},\"pyGenericServices\":{\"type\":\"bool\",\"id\":18},\"deprecated\":{\"type\":\"bool\",\"id\":23},\"ccEnableArenas\":{\"type\":\"bool\",\"id\":31},\"objcClassPrefix\":{\"type\":\"string\",\"id\":36},\"csharpNamespace\":{\"type\":\"string\",\"id\":37},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[38,38]],\"nested\":{\"OptimizeMode\":{\"values\":{\"SPEED\":1,\"CODE_SIZE\":2,\"LITE_RUNTIME\":3},\"comments\":{}}},\"comment\":null},\"GeneratedCodeInfo\":{\"fields\":{\"annotation\":{\"rule\":\"repeated\",\"type\":\"Annotation\",\"id\":1}},\"nested\":{\"Annotation\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"sourceFile\":{\"type\":\"string\",\"id\":2},\"begin\":{\"type\":\"int32\",\"id\":3},\"end\":{\"type\":\"int32\",\"id\":4}},\"comment\":null}},\"comment\":null},\"MessageOptions\":{\"fields\":{\"messageSetWireFormat\":{\"type\":\"bool\",\"id\":1},\"noStandardDescriptorAccessor\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"mapEntry\":{\"type\":\"bool\",\"id\":7},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[8,8]],\"comment\":null},\"MethodDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"inputType\":{\"type\":\"string\",\"id\":2},\"outputType\":{\"type\":\"string\",\"id\":3},\"options\":{\"type\":\"MethodOptions\",\"id\":4},\"clientStreaming\":{\"type\":\"bool\",\"id\":5},\"serverStreaming\":{\"type\":\"bool\",\"id\":6}},\"comment\":null},\"MethodOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"OneofDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"options\":{\"type\":\"OneofOptions\",\"id\":2}},\"comment\":null},\"OneofOptions\":{\"fields\":{\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"ServiceDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"method\":{\"rule\":\"repeated\",\"type\":\"MethodDescriptorProto\",\"id\":2},\"options\":{\"type\":\"ServiceOptions\",\"id\":3}},\"comment\":null},\"ServiceOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"SourceCodeInfo\":{\"fields\":{\"location\":{\"rule\":\"repeated\",\"type\":\"Location\",\"id\":1}},\"nested\":{\"Location\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"span\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":2},\"leadingComments\":{\"type\":\"string\",\"id\":3},\"trailingComments\":{\"type\":\"string\",\"id\":4},\"leadingDetachedComments\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":6}},\"comment\":null}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"UninterpretedOption\":{\"fields\":{\"name\":{\"rule\":\"repeated\",\"type\":\"NamePart\",\"id\":2},\"identifierValue\":{\"type\":\"string\",\"id\":3},\"positiveIntValue\":{\"type\":\"uint64\",\"id\":4},\"negativeIntValue\":{\"type\":\"int64\",\"id\":5},\"doubleValue\":{\"type\":\"double\",\"id\":6},\"stringValue\":{\"type\":\"bytes\",\"id\":7},\"aggregateValue\":{\"type\":\"string\",\"id\":8}},\"nested\":{\"NamePart\":{\"fields\":{\"namePart\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1},\"isExtension\":{\"rule\":\"required\",\"type\":\"bool\",\"id\":2}},\"comment\":null}},\"comment\":null}}}}}}}");
|
|
10
|
+
exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson, substitutions_1.default);
|
|
7
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAG9C,qEAA6C;AAgEhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,iqhBAAiqhB,CAAC,CAAC;AAC3rhB,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"substitutions.d.ts","sourceRoot":"","sources":["../../../src/proto/substitutions.ts"],"names":[],"mappings":";;wBAMoB,IAAI,KAAG,GAAG;wBAOV,GAAG,KAAG,IAAI;;;AAT9B,wBAWE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//
|
|
3
|
+
// Copyright 2022 DXOS.org
|
|
4
|
+
//
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = {
|
|
7
|
+
'google.protobuf.Timestamp': {
|
|
8
|
+
encode: (value) => {
|
|
9
|
+
const unixMilliseconds = value.getTime();
|
|
10
|
+
return {
|
|
11
|
+
seconds: Math.floor((unixMilliseconds / 1000)).toString(),
|
|
12
|
+
nanos: (unixMilliseconds % 1000) * 1e6
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
decode: (value) => { var _a, _b; return new Date(parseInt((_a = value.seconds) !== null && _a !== void 0 ? _a : '0') * 1000 + ((_b = value.nanos) !== null && _b !== void 0 ? _b : 0) / 1e6); }
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=substitutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"substitutions.js","sourceRoot":"","sources":["../../../src/proto/substitutions.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,kBAAe;IACb,2BAA2B,EAAE;QAC3B,MAAM,EAAE,CAAC,KAAW,EAAO,EAAE;YAC3B,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;YACzC,OAAO;gBACL,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;gBACzD,KAAK,EAAE,CAAC,gBAAgB,GAAG,IAAI,CAAC,GAAG,GAAG;aACvC,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,CAAC,KAAU,EAAQ,EAAE,eAAC,OAAA,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAA,KAAK,CAAC,OAAO,mCAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,MAAA,KAAK,CAAC,KAAK,mCAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA,EAAA;KACzG;CACF,CAAC"}
|
package/dist/src/sanitizer.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { Config as ConfigObject } from './proto/gen/dxos/config';
|
|
2
|
-
|
|
3
|
-
export type { ConfigObject, ConfigV1Object };
|
|
4
|
-
export declare function sanitizeConfig(value: any): ConfigObject | ConfigV1Object;
|
|
2
|
+
export declare function sanitizeConfig(value: any): ConfigObject;
|
|
5
3
|
//# sourceMappingURL=sanitizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitizer.d.ts","sourceRoot":"","sources":["../../src/sanitizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sanitizer.d.ts","sourceRoot":"","sources":["../../src/sanitizer.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIjE,wBAAgB,cAAc,CAAE,KAAK,EAAE,GAAG,GAAG,YAAY,CAqBxD"}
|
package/dist/src/sanitizer.js
CHANGED
|
@@ -5,20 +5,25 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sanitizeConfig = void 0;
|
|
7
7
|
const protobufjs_1 = require("protobufjs");
|
|
8
|
+
const errors_1 = require("./errors");
|
|
8
9
|
const gen_1 = require("./proto/gen");
|
|
9
10
|
const configRootType = gen_1.schema.getCodecForType('dxos.config.Config');
|
|
10
|
-
const configV1RootType = gen_1.schema.getCodecForType('dxos.configv1.Config');
|
|
11
11
|
function sanitizeConfig(value) {
|
|
12
|
+
if (!('version' in value)) {
|
|
13
|
+
throw new errors_1.InvalidConfigError('Version not specified');
|
|
14
|
+
}
|
|
15
|
+
if ((value === null || value === void 0 ? void 0 : value.version) !== 1) {
|
|
16
|
+
throw new errors_1.InvalidConfigError(`Invalid config version: ${value.version}`);
|
|
17
|
+
}
|
|
12
18
|
// TODO(egorgripasov): Clean once old config deprecated.
|
|
13
|
-
const confRootType = (value === null || value === void 0 ? void 0 : value.version) === 1 ? configV1RootType : configRootType;
|
|
14
19
|
const ctx = { errors: [] };
|
|
15
|
-
visitMessage(
|
|
20
|
+
visitMessage(configRootType.protoType, value, '', ctx);
|
|
16
21
|
if (ctx.errors.length > 0) {
|
|
17
|
-
|
|
22
|
+
throw new errors_1.InvalidConfigError(ctx.errors.join('\n'));
|
|
18
23
|
}
|
|
19
|
-
const error =
|
|
24
|
+
const error = configRootType.protoType.verify(value);
|
|
20
25
|
if (error) {
|
|
21
|
-
|
|
26
|
+
throw new errors_1.InvalidConfigError(error);
|
|
22
27
|
}
|
|
23
28
|
return value;
|
|
24
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitizer.js","sourceRoot":"","sources":["../../src/sanitizer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,2CAAwC;AAExC,qCAAqC;
|
|
1
|
+
{"version":3,"file":"sanitizer.js","sourceRoot":"","sources":["../../src/sanitizer.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,2CAAwC;AAExC,qCAA8C;AAC9C,qCAAqC;AAGrC,MAAM,cAAc,GAAG,YAAM,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAEpE,SAAgB,cAAc,CAAE,KAAU;IACxC,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,EAAE;QACzB,MAA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
},
|
|
6
6
|
"TEST_CLIENT_TAG": {
|
|
7
|
-
"path": "client.tag"
|
|
7
|
+
"path": "runtime.client.tag"
|
|
8
8
|
},
|
|
9
9
|
"TEST_SERVER_ENDPOINT": {
|
|
10
|
-
"path": "server.endpoint"
|
|
10
|
+
"path": "runtime.server.endpoint"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Config as ConfigObject } from './proto/gen/dxos/config';
|
|
2
|
-
|
|
3
|
-
export type { ConfigObject, ConfigV1Object };
|
|
2
|
+
export type { ConfigObject };
|
|
4
3
|
declare type DotPrefix<T extends string> = T extends '' ? '' : `.${T}`;
|
|
5
4
|
/**
|
|
6
5
|
* Returns all dot-separated nested keys for an object.
|
|
@@ -29,5 +28,5 @@ export declare type DeepIndex<T, KS extends Keys, Fail = undefined> = KS extends
|
|
|
29
28
|
/**
|
|
30
29
|
* Any nested dot separated key that can be in config.
|
|
31
30
|
*/
|
|
32
|
-
export declare type ConfigKey = DotNestedKeys<
|
|
31
|
+
export declare type ConfigKey = DotNestedKeys<ConfigObject>;
|
|
33
32
|
//# sourceMappingURL=types.d.ts.map
|