@dbos-inc/dbos-sdk 1.8.5-preview.g6778b3edea → 1.8.8-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,158 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "DBOS Config",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "database": {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "hostname": {
12
+ "type": "string",
13
+ "description": "The hostname or IP address of the application database"
14
+ },
15
+ "port": {
16
+ "type": "number",
17
+ "description": "The port number of the application database"
18
+ },
19
+ "username": {
20
+ "type": "string",
21
+ "description": "The username to use when connecting to the application database",
22
+ "not": {
23
+ "enum": ["dbos"]
24
+ }
25
+ },
26
+ "password": {
27
+ "type": "string",
28
+ "description": "The password to use when connecting to the application database. Developers are strongly encouraged to use environment variable substitution to avoid storing secrets in source."
29
+ },
30
+ "connectionTimeoutMillis": {
31
+ "type": "number",
32
+ "description": "The number of milliseconds the system waits before timing out when connecting to the application database"
33
+ },
34
+ "app_db_name": {
35
+ "type": "string",
36
+ "description": "The name of the application database"
37
+ },
38
+ "sys_db_name": {
39
+ "type": "string",
40
+ "description": "The name of the system database"
41
+ },
42
+ "ssl": {
43
+ "type": "boolean",
44
+ "description": "Use SSL/TLS to securely connect to the database (default: true)"
45
+ },
46
+ "ssl_ca": {
47
+ "type": "string",
48
+ "description": "If using SSL/TLS to securely connect to a database, path to an SSL root certificate file"
49
+ },
50
+ "app_db_client": {
51
+ "type": "string",
52
+ "description": "Specify the database client to use to connect to the application database",
53
+ "enum": [
54
+ "pg-node",
55
+ "prisma",
56
+ "typeorm",
57
+ "knex"
58
+ ]
59
+ },
60
+ "migrate": {
61
+ "type": "array",
62
+ "description": "Specify a list of user DB migration commands to run"
63
+ },
64
+ "rollback": {
65
+ "type": "array",
66
+ "description": "Specify a list of user DB rollback commands to run"
67
+ }
68
+ },
69
+ "required": [
70
+ "hostname",
71
+ "port",
72
+ "username",
73
+ "password",
74
+ "app_db_name"
75
+ ]
76
+ },
77
+ "telemetry": {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "logs": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "addContextMetadata": {
86
+ "type": "boolean",
87
+ "description": "Adds contextual information, such as workflow UUID, to each log entry"
88
+ },
89
+ "logLevel": {
90
+ "type": "string",
91
+ "description": "A filter on what logs should be printed to the standard output"
92
+ },
93
+ "silent": {
94
+ "type": "boolean",
95
+ "description": "Silences the logger such that nothing is printed to the standard output"
96
+ }
97
+ }
98
+ },
99
+ "OTLPExporter": {
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "properties": {
103
+ "logsEndpoint": {
104
+ "type": "string",
105
+ "description": "The URL of an OTLP collector to which to export logs"
106
+ },
107
+ "tracesEndpoint": {
108
+ "type": "string",
109
+ "description": "The URL of an OTLP collector to which to export traces"
110
+ }
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "runtimeConfig": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "properties": {
119
+ "entrypoints": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "port": {
126
+ "type": "number"
127
+ }
128
+ }
129
+ },
130
+ "http": {
131
+ "type": "object",
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "cors_middleware": {
135
+ "type": "boolean"
136
+ },
137
+ "credentials": {
138
+ "type": "boolean"
139
+ },
140
+ "allowed_origins": {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "application": {},
149
+ "env": {},
150
+ "dbClientMetadata": {},
151
+ "version": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "required": [
156
+ "database"
157
+ ]
158
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAA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AC,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;KAC5B,CAAC;IACF,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B,WAAW,EAAE,GAAG,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB;AAOD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKzD;AAED,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAajE;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,QAW7E;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,GAAE,OAAe,cA8CpF;AAoBD,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,mBAAmB,EAAE,QAAQ,GAAE,OAAe,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAqE5H"}
@@ -11,7 +11,12 @@ const runtime_1 = require("./runtime");
11
11
  const user_database_1 = require("../user_database");
12
12
  const applicationVersion_1 = require("./applicationVersion");
13
13
  const fs_1 = require("fs");
14
+ const ajv_1 = __importDefault(require("ajv"));
15
+ const path_1 = __importDefault(require("path"));
14
16
  exports.dbosConfigFilePath = "dbos-config.yaml";
17
+ const dbosConfigSchemaPath = path_1.default.join((0, utils_1.findPackageRoot)(__dirname), 'dbos-config.schema.json');
18
+ const dbosConfigSchema = JSON.parse((0, utils_1.readFileSync)(dbosConfigSchemaPath));
19
+ const ajv = new ajv_1.default({ allErrors: true, verbose: true });
15
20
  /*
16
21
  * Substitute environment variables using a regex for matching.
17
22
  * Will find anything in curly braces.
@@ -105,6 +110,20 @@ function constructPoolConfig(configFile, useProxy = false) {
105
110
  return poolConfig;
106
111
  }
107
112
  exports.constructPoolConfig = constructPoolConfig;
113
+ function prettyPrintAjvErrors(validate) {
114
+ return validate.errors.map(error => {
115
+ let message = `Error: ${error.message}`;
116
+ if (error.schemaPath)
117
+ message += ` (schema path: ${error.schemaPath})`;
118
+ if (error.params && error.keyword === 'additionalProperties') {
119
+ message += `; the additional property '${error.params.additionalProperty}' is not allowed`;
120
+ }
121
+ if (error.data && error.keyword === 'not') {
122
+ message += `; the value ${JSON.stringify(error.data)} is not allowed for field ${error.instancePath}`;
123
+ }
124
+ return message;
125
+ }).join(', ');
126
+ }
108
127
  /*
109
128
  * Parse `dbosConfigFilePath` and return DBOSConfig and DBOSRuntimeConfig
110
129
  * Considers DBOSCLIStartOptions if provided, which takes precedence over config file
@@ -115,6 +134,11 @@ function parseConfigFile(cliOptions, useProxy = false) {
115
134
  if (!configFile) {
116
135
  throw new error_1.DBOSInitializationError(`DBOS configuration file ${configFilePath} is empty`);
117
136
  }
137
+ const validator = ajv.compile(dbosConfigSchema);
138
+ if (!validator(configFile)) {
139
+ const errorMessages = prettyPrintAjvErrors(validator);
140
+ throw new error_1.DBOSInitializationError(`dbos-config.yaml failed schema validation. ${errorMessages}`);
141
+ }
118
142
  (0, applicationVersion_1.setApplicationVersion)(configFile.version);
119
143
  /*******************************/
120
144
  /* Handle user database config */
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dbos-runtime/config.ts"],"names":[],"mappings":";;;;;;AAAA,oCAAmD;AACnD,oCAAwC;AAGxC,gDAAwB;AACxB,uCAAiE;AACjE,oDAAoD;AAGpD,6DAA6D;AAC7D,2BAAmC;AAEtB,QAAA,kBAAkB,GAAG,kBAAkB,CAAC;AAgCrD;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,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