@servicenow/sdk-build-core 4.4.1 → 4.6.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.
- package/dist/compression.d.ts +2 -1
- package/dist/compression.js +5 -2
- package/dist/compression.js.map +1 -1
- package/dist/keys-registry.d.ts +2 -1
- package/dist/keys-registry.js +15 -15
- package/dist/keys-registry.js.map +1 -1
- package/dist/now-config.d.ts +476 -5
- package/dist/now-config.js +165 -1
- package/dist/now-config.js.map +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +1 -0
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/plugin.d.ts +17 -18
- package/dist/plugins/plugin.js +52 -31
- package/dist/plugins/plugin.js.map +1 -1
- package/dist/plugins/post-install.d.ts +31 -0
- package/dist/plugins/post-install.js +3 -0
- package/dist/plugins/post-install.js.map +1 -0
- package/dist/plugins/shape.js +4 -1
- package/dist/plugins/shape.js.map +1 -1
- package/dist/taxonomy.js +50 -0
- package/dist/taxonomy.js.map +1 -1
- package/dist/telemetry/clients/abstract-client.d.ts +23 -2
- package/dist/telemetry/clients/abstract-client.js +80 -0
- package/dist/telemetry/clients/abstract-client.js.map +1 -1
- package/dist/telemetry/clients/browser-client.d.ts +15 -9
- package/dist/telemetry/clients/browser-client.js +8 -82
- package/dist/telemetry/clients/browser-client.js.map +1 -1
- package/dist/telemetry/clients/node-client.d.ts +28 -6
- package/dist/telemetry/clients/node-client.js +37 -101
- package/dist/telemetry/clients/node-client.js.map +1 -1
- package/dist/telemetry/factory.js +4 -6
- package/dist/telemetry/factory.js.map +1 -1
- package/dist/telemetry/types.d.ts +1 -1
- package/dist/typescript.d.ts +8 -0
- package/dist/typescript.js +12 -1
- package/dist/typescript.js.map +1 -1
- package/dist/xml.js +3 -1
- package/dist/xml.js.map +1 -1
- package/now.config.schema.json +386 -2
- package/package.json +5 -6
- package/src/compression.ts +7 -2
- package/src/keys-registry.ts +14 -12
- package/src/now-config.ts +204 -1
- package/src/plugins/index.ts +1 -0
- package/src/plugins/plugin.ts +86 -63
- package/src/plugins/post-install.ts +34 -0
- package/src/plugins/shape.ts +4 -1
- package/src/taxonomy.ts +53 -0
- package/src/telemetry/clients/abstract-client.ts +104 -3
- package/src/telemetry/clients/browser-client.ts +12 -95
- package/src/telemetry/clients/node-client.ts +39 -114
- package/src/telemetry/factory.ts +5 -8
- package/src/telemetry/types.ts +2 -1
- package/src/typescript.ts +12 -1
- package/src/xml.ts +4 -1
package/dist/now-config.d.ts
CHANGED
|
@@ -9,6 +9,169 @@ export declare const MODULE_RESOLUTION: {
|
|
|
9
9
|
V1: string;
|
|
10
10
|
V2: string;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Network Policy Schema
|
|
14
|
+
* Defines network access policies for the application (sys_arp_network_policy)
|
|
15
|
+
*/
|
|
16
|
+
declare const NetworkPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
17
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
policyType: z.ZodEnum<["csp_script_src", "csp_connect_src", "now_inbound_scoped", "now_inbound_global", "now_outbound"]>;
|
|
20
|
+
status: z.ZodEnum<["requested", "allowed", "denied"]>;
|
|
21
|
+
host: z.ZodOptional<z.ZodString>;
|
|
22
|
+
scheme: z.ZodOptional<z.ZodEnum<["http", "https", "ws", "wss"]>>;
|
|
23
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
25
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
status: "requested" | "allowed" | "denied";
|
|
28
|
+
active: boolean;
|
|
29
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
30
|
+
path?: string[] | undefined;
|
|
31
|
+
$id?: string | undefined;
|
|
32
|
+
host?: string | undefined;
|
|
33
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
34
|
+
resource?: string | undefined;
|
|
35
|
+
shortDescription?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
status: "requested" | "allowed" | "denied";
|
|
38
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
39
|
+
path?: string[] | undefined;
|
|
40
|
+
active?: boolean | undefined;
|
|
41
|
+
$id?: string | undefined;
|
|
42
|
+
host?: string | undefined;
|
|
43
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
44
|
+
resource?: string | undefined;
|
|
45
|
+
shortDescription?: string | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
status: "requested" | "allowed" | "denied";
|
|
48
|
+
active: boolean;
|
|
49
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
50
|
+
path?: string[] | undefined;
|
|
51
|
+
$id?: string | undefined;
|
|
52
|
+
host?: string | undefined;
|
|
53
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
54
|
+
resource?: string | undefined;
|
|
55
|
+
shortDescription?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
status: "requested" | "allowed" | "denied";
|
|
58
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
59
|
+
path?: string[] | undefined;
|
|
60
|
+
active?: boolean | undefined;
|
|
61
|
+
$id?: string | undefined;
|
|
62
|
+
host?: string | undefined;
|
|
63
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
64
|
+
resource?: string | undefined;
|
|
65
|
+
shortDescription?: string | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export type NetworkPolicy = z.infer<typeof NetworkPolicySchema>;
|
|
68
|
+
/**
|
|
69
|
+
* Wildcard Policy Schema
|
|
70
|
+
* Defines wildcard/exemption policies for the application (sys_arp_segment_policy)
|
|
71
|
+
* Only one per application scope
|
|
72
|
+
*/
|
|
73
|
+
declare const WildcardPolicySchema: z.ZodObject<{
|
|
74
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
75
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
77
|
+
record: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
networkWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["now_outbound", "now_inbound_global", "now_inbound_scoped", "csp_connect_src", "csp_script_src"]>, "many">>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
active: boolean;
|
|
83
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
active?: boolean | undefined;
|
|
86
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
87
|
+
}>>;
|
|
88
|
+
scripting: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
scriptingWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["sys_script_include", "scriptable"]>, "many">>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
active: boolean;
|
|
93
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
active?: boolean | undefined;
|
|
96
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
97
|
+
}>>;
|
|
98
|
+
arl: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
100
|
+
arlWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["scheduled_job_limit", "event_handler", "api_transaction_limit", "interactive_transaction_limit"]>, "many">>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
active: boolean;
|
|
103
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
active?: boolean | undefined;
|
|
106
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
107
|
+
}>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
record: boolean;
|
|
110
|
+
active: boolean;
|
|
111
|
+
$id?: string | undefined;
|
|
112
|
+
shortDescription?: string | undefined;
|
|
113
|
+
network?: {
|
|
114
|
+
active: boolean;
|
|
115
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
scripting?: {
|
|
118
|
+
active: boolean;
|
|
119
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
arl?: {
|
|
122
|
+
active: boolean;
|
|
123
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
record?: boolean | undefined;
|
|
127
|
+
active?: boolean | undefined;
|
|
128
|
+
$id?: string | undefined;
|
|
129
|
+
shortDescription?: string | undefined;
|
|
130
|
+
network?: {
|
|
131
|
+
active?: boolean | undefined;
|
|
132
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
scripting?: {
|
|
135
|
+
active?: boolean | undefined;
|
|
136
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
arl?: {
|
|
139
|
+
active?: boolean | undefined;
|
|
140
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export type WildcardPolicy = z.infer<typeof WildcardPolicySchema>;
|
|
144
|
+
/**
|
|
145
|
+
* Performance Policy Schema
|
|
146
|
+
* Defines resource limits for the application (sys_app_resource_limit_template)
|
|
147
|
+
* Only one per application scope
|
|
148
|
+
*/
|
|
149
|
+
declare const PerformancePolicySchema: z.ZodObject<{
|
|
150
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
151
|
+
name: z.ZodString;
|
|
152
|
+
scheduledJobLimit: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
eventHandlerLimit: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
apiTransactionLimit: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
interactiveTransactionLimit: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
mode: z.ZodOptional<z.ZodEnum<["disabled", "enforced", "logOnly"]>>;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
name: string;
|
|
159
|
+
$id?: string | undefined;
|
|
160
|
+
scheduledJobLimit?: number | undefined;
|
|
161
|
+
eventHandlerLimit?: number | undefined;
|
|
162
|
+
apiTransactionLimit?: number | undefined;
|
|
163
|
+
interactiveTransactionLimit?: number | undefined;
|
|
164
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
name: string;
|
|
167
|
+
$id?: string | undefined;
|
|
168
|
+
scheduledJobLimit?: number | undefined;
|
|
169
|
+
eventHandlerLimit?: number | undefined;
|
|
170
|
+
apiTransactionLimit?: number | undefined;
|
|
171
|
+
interactiveTransactionLimit?: number | undefined;
|
|
172
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export type PerformancePolicy = z.infer<typeof PerformancePolicySchema>;
|
|
12
175
|
declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
13
176
|
scope: z.ZodString;
|
|
14
177
|
scopeId: z.ZodString;
|
|
@@ -58,7 +221,8 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
58
221
|
tsconfigPath: z.ZodOptional<z.ZodString>;
|
|
59
222
|
scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
60
223
|
tableOutputFormat: z.ZodDefault<z.ZodEnum<["bootstrap", "component"]>>;
|
|
61
|
-
|
|
224
|
+
defaultLanguage: z.ZodDefault<z.ZodString>;
|
|
225
|
+
tableDefaultLanguage: z.ZodOptional<z.ZodString>;
|
|
62
226
|
moduleDir: z.ZodOptional<z.ZodString>;
|
|
63
227
|
compileOutputDir: z.ZodOptional<z.ZodString>;
|
|
64
228
|
sourceDir: z.ZodOptional<z.ZodString>;
|
|
@@ -152,6 +316,153 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
152
316
|
}, z.ZodString, "strip"> | undefined;
|
|
153
317
|
fallbackFolderName?: string | undefined;
|
|
154
318
|
}>>;
|
|
319
|
+
applicationRuntimePolicy: z.ZodDefault<z.ZodEnum<["none", "tracking", "enforcing"]>>;
|
|
320
|
+
networkPolicies: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
321
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
322
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
323
|
+
policyType: z.ZodEnum<["csp_script_src", "csp_connect_src", "now_inbound_scoped", "now_inbound_global", "now_outbound"]>;
|
|
324
|
+
status: z.ZodEnum<["requested", "allowed", "denied"]>;
|
|
325
|
+
host: z.ZodOptional<z.ZodString>;
|
|
326
|
+
scheme: z.ZodOptional<z.ZodEnum<["http", "https", "ws", "wss"]>>;
|
|
327
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
328
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
329
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
status: "requested" | "allowed" | "denied";
|
|
332
|
+
active: boolean;
|
|
333
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
334
|
+
path?: string[] | undefined;
|
|
335
|
+
$id?: string | undefined;
|
|
336
|
+
host?: string | undefined;
|
|
337
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
338
|
+
resource?: string | undefined;
|
|
339
|
+
shortDescription?: string | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
status: "requested" | "allowed" | "denied";
|
|
342
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
343
|
+
path?: string[] | undefined;
|
|
344
|
+
active?: boolean | undefined;
|
|
345
|
+
$id?: string | undefined;
|
|
346
|
+
host?: string | undefined;
|
|
347
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
348
|
+
resource?: string | undefined;
|
|
349
|
+
shortDescription?: string | undefined;
|
|
350
|
+
}>, {
|
|
351
|
+
status: "requested" | "allowed" | "denied";
|
|
352
|
+
active: boolean;
|
|
353
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
354
|
+
path?: string[] | undefined;
|
|
355
|
+
$id?: string | undefined;
|
|
356
|
+
host?: string | undefined;
|
|
357
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
358
|
+
resource?: string | undefined;
|
|
359
|
+
shortDescription?: string | undefined;
|
|
360
|
+
}, {
|
|
361
|
+
status: "requested" | "allowed" | "denied";
|
|
362
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
363
|
+
path?: string[] | undefined;
|
|
364
|
+
active?: boolean | undefined;
|
|
365
|
+
$id?: string | undefined;
|
|
366
|
+
host?: string | undefined;
|
|
367
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
368
|
+
resource?: string | undefined;
|
|
369
|
+
shortDescription?: string | undefined;
|
|
370
|
+
}>, "many">>;
|
|
371
|
+
wildcardPolicy: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
373
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
374
|
+
shortDescription: z.ZodOptional<z.ZodString>;
|
|
375
|
+
record: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
378
|
+
networkWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["now_outbound", "now_inbound_global", "now_inbound_scoped", "csp_connect_src", "csp_script_src"]>, "many">>;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
active: boolean;
|
|
381
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
active?: boolean | undefined;
|
|
384
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
385
|
+
}>>;
|
|
386
|
+
scripting: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
388
|
+
scriptingWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["sys_script_include", "scriptable"]>, "many">>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
active: boolean;
|
|
391
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
active?: boolean | undefined;
|
|
394
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
395
|
+
}>>;
|
|
396
|
+
arl: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
398
|
+
arlWildcard: z.ZodOptional<z.ZodArray<z.ZodEnum<["scheduled_job_limit", "event_handler", "api_transaction_limit", "interactive_transaction_limit"]>, "many">>;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
active: boolean;
|
|
401
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
402
|
+
}, {
|
|
403
|
+
active?: boolean | undefined;
|
|
404
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
405
|
+
}>>;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
record: boolean;
|
|
408
|
+
active: boolean;
|
|
409
|
+
$id?: string | undefined;
|
|
410
|
+
shortDescription?: string | undefined;
|
|
411
|
+
network?: {
|
|
412
|
+
active: boolean;
|
|
413
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
scripting?: {
|
|
416
|
+
active: boolean;
|
|
417
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
418
|
+
} | undefined;
|
|
419
|
+
arl?: {
|
|
420
|
+
active: boolean;
|
|
421
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
422
|
+
} | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
record?: boolean | undefined;
|
|
425
|
+
active?: boolean | undefined;
|
|
426
|
+
$id?: string | undefined;
|
|
427
|
+
shortDescription?: string | undefined;
|
|
428
|
+
network?: {
|
|
429
|
+
active?: boolean | undefined;
|
|
430
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
scripting?: {
|
|
433
|
+
active?: boolean | undefined;
|
|
434
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
arl?: {
|
|
437
|
+
active?: boolean | undefined;
|
|
438
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
}>>;
|
|
441
|
+
performancePolicy: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
$id: z.ZodOptional<z.ZodString>;
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
scheduledJobLimit: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
eventHandlerLimit: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
apiTransactionLimit: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
interactiveTransactionLimit: z.ZodOptional<z.ZodNumber>;
|
|
448
|
+
mode: z.ZodOptional<z.ZodEnum<["disabled", "enforced", "logOnly"]>>;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
name: string;
|
|
451
|
+
$id?: string | undefined;
|
|
452
|
+
scheduledJobLimit?: number | undefined;
|
|
453
|
+
eventHandlerLimit?: number | undefined;
|
|
454
|
+
apiTransactionLimit?: number | undefined;
|
|
455
|
+
interactiveTransactionLimit?: number | undefined;
|
|
456
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
457
|
+
}, {
|
|
458
|
+
name: string;
|
|
459
|
+
$id?: string | undefined;
|
|
460
|
+
scheduledJobLimit?: number | undefined;
|
|
461
|
+
eventHandlerLimit?: number | undefined;
|
|
462
|
+
apiTransactionLimit?: number | undefined;
|
|
463
|
+
interactiveTransactionLimit?: number | undefined;
|
|
464
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
465
|
+
}>>;
|
|
155
466
|
}, "strip", z.ZodTypeAny, {
|
|
156
467
|
scope: string;
|
|
157
468
|
scopeId: string;
|
|
@@ -174,11 +485,12 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
174
485
|
trustedModules: string[];
|
|
175
486
|
scripts: Record<string, string>;
|
|
176
487
|
tableOutputFormat: "bootstrap" | "component";
|
|
177
|
-
|
|
488
|
+
defaultLanguage: string;
|
|
178
489
|
taxonomy: {
|
|
179
490
|
mapping: Record<string, string>;
|
|
180
491
|
fallbackFolderName: string;
|
|
181
492
|
};
|
|
493
|
+
applicationRuntimePolicy: "none" | "tracking" | "enforcing";
|
|
182
494
|
name?: string | undefined;
|
|
183
495
|
dependencies?: {
|
|
184
496
|
applications: Record<string, {
|
|
@@ -189,6 +501,7 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
189
501
|
roles: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodString, "many">]>>;
|
|
190
502
|
}, z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodString, "many">]>, "strip">> | undefined;
|
|
191
503
|
tsconfigPath?: string | undefined;
|
|
504
|
+
tableDefaultLanguage?: string | undefined;
|
|
192
505
|
moduleDir?: string | undefined;
|
|
193
506
|
compileOutputDir?: string | undefined;
|
|
194
507
|
sourceDir?: string | undefined;
|
|
@@ -219,10 +532,49 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
219
532
|
guidedSetupGuid?: string | undefined;
|
|
220
533
|
installedAsDependency?: boolean | undefined;
|
|
221
534
|
packageResolverVersion?: string | undefined;
|
|
535
|
+
networkPolicies?: {
|
|
536
|
+
status: "requested" | "allowed" | "denied";
|
|
537
|
+
active: boolean;
|
|
538
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
539
|
+
path?: string[] | undefined;
|
|
540
|
+
$id?: string | undefined;
|
|
541
|
+
host?: string | undefined;
|
|
542
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
543
|
+
resource?: string | undefined;
|
|
544
|
+
shortDescription?: string | undefined;
|
|
545
|
+
}[] | undefined;
|
|
546
|
+
wildcardPolicy?: {
|
|
547
|
+
record: boolean;
|
|
548
|
+
active: boolean;
|
|
549
|
+
$id?: string | undefined;
|
|
550
|
+
shortDescription?: string | undefined;
|
|
551
|
+
network?: {
|
|
552
|
+
active: boolean;
|
|
553
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
scripting?: {
|
|
556
|
+
active: boolean;
|
|
557
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
arl?: {
|
|
560
|
+
active: boolean;
|
|
561
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
562
|
+
} | undefined;
|
|
563
|
+
} | undefined;
|
|
564
|
+
performancePolicy?: {
|
|
565
|
+
name: string;
|
|
566
|
+
$id?: string | undefined;
|
|
567
|
+
scheduledJobLimit?: number | undefined;
|
|
568
|
+
eventHandlerLimit?: number | undefined;
|
|
569
|
+
apiTransactionLimit?: number | undefined;
|
|
570
|
+
interactiveTransactionLimit?: number | undefined;
|
|
571
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
572
|
+
} | undefined;
|
|
222
573
|
}, {
|
|
223
574
|
scope: string;
|
|
224
575
|
scopeId: string;
|
|
225
576
|
name?: string | undefined;
|
|
577
|
+
type?: "configuration" | "package" | undefined;
|
|
226
578
|
serverModulesDir?: string | undefined;
|
|
227
579
|
serverModulesIncludePatterns?: string[] | undefined;
|
|
228
580
|
serverModulesExcludePatterns?: string[] | undefined;
|
|
@@ -250,6 +602,7 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
250
602
|
tsconfigPath?: string | undefined;
|
|
251
603
|
scripts?: Record<string, string> | undefined;
|
|
252
604
|
tableOutputFormat?: "bootstrap" | "component" | undefined;
|
|
605
|
+
defaultLanguage?: string | undefined;
|
|
253
606
|
tableDefaultLanguage?: string | undefined;
|
|
254
607
|
moduleDir?: string | undefined;
|
|
255
608
|
compileOutputDir?: string | undefined;
|
|
@@ -281,13 +634,51 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
281
634
|
guidedSetupGuid?: string | undefined;
|
|
282
635
|
installedAsDependency?: boolean | undefined;
|
|
283
636
|
packageResolverVersion?: string | undefined;
|
|
284
|
-
type?: "configuration" | "package" | undefined;
|
|
285
637
|
taxonomy?: {
|
|
286
638
|
mapping?: z.objectInputType<{
|
|
287
639
|
[x: string]: z.ZodDefault<z.ZodString>;
|
|
288
640
|
}, z.ZodString, "strip"> | undefined;
|
|
289
641
|
fallbackFolderName?: string | undefined;
|
|
290
642
|
} | undefined;
|
|
643
|
+
applicationRuntimePolicy?: "none" | "tracking" | "enforcing" | undefined;
|
|
644
|
+
networkPolicies?: {
|
|
645
|
+
status: "requested" | "allowed" | "denied";
|
|
646
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
647
|
+
path?: string[] | undefined;
|
|
648
|
+
active?: boolean | undefined;
|
|
649
|
+
$id?: string | undefined;
|
|
650
|
+
host?: string | undefined;
|
|
651
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
652
|
+
resource?: string | undefined;
|
|
653
|
+
shortDescription?: string | undefined;
|
|
654
|
+
}[] | undefined;
|
|
655
|
+
wildcardPolicy?: {
|
|
656
|
+
record?: boolean | undefined;
|
|
657
|
+
active?: boolean | undefined;
|
|
658
|
+
$id?: string | undefined;
|
|
659
|
+
shortDescription?: string | undefined;
|
|
660
|
+
network?: {
|
|
661
|
+
active?: boolean | undefined;
|
|
662
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
scripting?: {
|
|
665
|
+
active?: boolean | undefined;
|
|
666
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
arl?: {
|
|
669
|
+
active?: boolean | undefined;
|
|
670
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
671
|
+
} | undefined;
|
|
672
|
+
} | undefined;
|
|
673
|
+
performancePolicy?: {
|
|
674
|
+
name: string;
|
|
675
|
+
$id?: string | undefined;
|
|
676
|
+
scheduledJobLimit?: number | undefined;
|
|
677
|
+
eventHandlerLimit?: number | undefined;
|
|
678
|
+
apiTransactionLimit?: number | undefined;
|
|
679
|
+
interactiveTransactionLimit?: number | undefined;
|
|
680
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
681
|
+
} | undefined;
|
|
291
682
|
}>, {
|
|
292
683
|
scope: string;
|
|
293
684
|
scopeId: string;
|
|
@@ -310,11 +701,12 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
701
|
trustedModules: string[];
|
|
311
702
|
scripts: Record<string, string>;
|
|
312
703
|
tableOutputFormat: "bootstrap" | "component";
|
|
313
|
-
|
|
704
|
+
defaultLanguage: string;
|
|
314
705
|
taxonomy: {
|
|
315
706
|
mapping: Record<string, string>;
|
|
316
707
|
fallbackFolderName: string;
|
|
317
708
|
};
|
|
709
|
+
applicationRuntimePolicy: "none" | "tracking" | "enforcing";
|
|
318
710
|
name?: string | undefined;
|
|
319
711
|
dependencies?: {
|
|
320
712
|
applications: Record<string, {
|
|
@@ -325,6 +717,7 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
325
717
|
roles: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodString, "many">]>>;
|
|
326
718
|
}, z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodString, "many">]>, "strip">> | undefined;
|
|
327
719
|
tsconfigPath?: string | undefined;
|
|
720
|
+
tableDefaultLanguage?: string | undefined;
|
|
328
721
|
moduleDir?: string | undefined;
|
|
329
722
|
compileOutputDir?: string | undefined;
|
|
330
723
|
sourceDir?: string | undefined;
|
|
@@ -355,10 +748,49 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
355
748
|
guidedSetupGuid?: string | undefined;
|
|
356
749
|
installedAsDependency?: boolean | undefined;
|
|
357
750
|
packageResolverVersion?: string | undefined;
|
|
751
|
+
networkPolicies?: {
|
|
752
|
+
status: "requested" | "allowed" | "denied";
|
|
753
|
+
active: boolean;
|
|
754
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
755
|
+
path?: string[] | undefined;
|
|
756
|
+
$id?: string | undefined;
|
|
757
|
+
host?: string | undefined;
|
|
758
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
759
|
+
resource?: string | undefined;
|
|
760
|
+
shortDescription?: string | undefined;
|
|
761
|
+
}[] | undefined;
|
|
762
|
+
wildcardPolicy?: {
|
|
763
|
+
record: boolean;
|
|
764
|
+
active: boolean;
|
|
765
|
+
$id?: string | undefined;
|
|
766
|
+
shortDescription?: string | undefined;
|
|
767
|
+
network?: {
|
|
768
|
+
active: boolean;
|
|
769
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
770
|
+
} | undefined;
|
|
771
|
+
scripting?: {
|
|
772
|
+
active: boolean;
|
|
773
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
774
|
+
} | undefined;
|
|
775
|
+
arl?: {
|
|
776
|
+
active: boolean;
|
|
777
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
778
|
+
} | undefined;
|
|
779
|
+
} | undefined;
|
|
780
|
+
performancePolicy?: {
|
|
781
|
+
name: string;
|
|
782
|
+
$id?: string | undefined;
|
|
783
|
+
scheduledJobLimit?: number | undefined;
|
|
784
|
+
eventHandlerLimit?: number | undefined;
|
|
785
|
+
apiTransactionLimit?: number | undefined;
|
|
786
|
+
interactiveTransactionLimit?: number | undefined;
|
|
787
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
788
|
+
} | undefined;
|
|
358
789
|
}, {
|
|
359
790
|
scope: string;
|
|
360
791
|
scopeId: string;
|
|
361
792
|
name?: string | undefined;
|
|
793
|
+
type?: "configuration" | "package" | undefined;
|
|
362
794
|
serverModulesDir?: string | undefined;
|
|
363
795
|
serverModulesIncludePatterns?: string[] | undefined;
|
|
364
796
|
serverModulesExcludePatterns?: string[] | undefined;
|
|
@@ -386,6 +818,7 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
386
818
|
tsconfigPath?: string | undefined;
|
|
387
819
|
scripts?: Record<string, string> | undefined;
|
|
388
820
|
tableOutputFormat?: "bootstrap" | "component" | undefined;
|
|
821
|
+
defaultLanguage?: string | undefined;
|
|
389
822
|
tableDefaultLanguage?: string | undefined;
|
|
390
823
|
moduleDir?: string | undefined;
|
|
391
824
|
compileOutputDir?: string | undefined;
|
|
@@ -417,13 +850,51 @@ declare const NowConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
417
850
|
guidedSetupGuid?: string | undefined;
|
|
418
851
|
installedAsDependency?: boolean | undefined;
|
|
419
852
|
packageResolverVersion?: string | undefined;
|
|
420
|
-
type?: "configuration" | "package" | undefined;
|
|
421
853
|
taxonomy?: {
|
|
422
854
|
mapping?: z.objectInputType<{
|
|
423
855
|
[x: string]: z.ZodDefault<z.ZodString>;
|
|
424
856
|
}, z.ZodString, "strip"> | undefined;
|
|
425
857
|
fallbackFolderName?: string | undefined;
|
|
426
858
|
} | undefined;
|
|
859
|
+
applicationRuntimePolicy?: "none" | "tracking" | "enforcing" | undefined;
|
|
860
|
+
networkPolicies?: {
|
|
861
|
+
status: "requested" | "allowed" | "denied";
|
|
862
|
+
policyType: "csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound";
|
|
863
|
+
path?: string[] | undefined;
|
|
864
|
+
active?: boolean | undefined;
|
|
865
|
+
$id?: string | undefined;
|
|
866
|
+
host?: string | undefined;
|
|
867
|
+
scheme?: "http" | "https" | "ws" | "wss" | undefined;
|
|
868
|
+
resource?: string | undefined;
|
|
869
|
+
shortDescription?: string | undefined;
|
|
870
|
+
}[] | undefined;
|
|
871
|
+
wildcardPolicy?: {
|
|
872
|
+
record?: boolean | undefined;
|
|
873
|
+
active?: boolean | undefined;
|
|
874
|
+
$id?: string | undefined;
|
|
875
|
+
shortDescription?: string | undefined;
|
|
876
|
+
network?: {
|
|
877
|
+
active?: boolean | undefined;
|
|
878
|
+
networkWildcard?: ("csp_script_src" | "csp_connect_src" | "now_inbound_scoped" | "now_inbound_global" | "now_outbound")[] | undefined;
|
|
879
|
+
} | undefined;
|
|
880
|
+
scripting?: {
|
|
881
|
+
active?: boolean | undefined;
|
|
882
|
+
scriptingWildcard?: ("sys_script_include" | "scriptable")[] | undefined;
|
|
883
|
+
} | undefined;
|
|
884
|
+
arl?: {
|
|
885
|
+
active?: boolean | undefined;
|
|
886
|
+
arlWildcard?: ("scheduled_job_limit" | "event_handler" | "api_transaction_limit" | "interactive_transaction_limit")[] | undefined;
|
|
887
|
+
} | undefined;
|
|
888
|
+
} | undefined;
|
|
889
|
+
performancePolicy?: {
|
|
890
|
+
name: string;
|
|
891
|
+
$id?: string | undefined;
|
|
892
|
+
scheduledJobLimit?: number | undefined;
|
|
893
|
+
eventHandlerLimit?: number | undefined;
|
|
894
|
+
apiTransactionLimit?: number | undefined;
|
|
895
|
+
interactiveTransactionLimit?: number | undefined;
|
|
896
|
+
mode?: "disabled" | "enforced" | "logOnly" | undefined;
|
|
897
|
+
} | undefined;
|
|
427
898
|
}>;
|
|
428
899
|
export declare namespace NowConfig {
|
|
429
900
|
const FILE_NAME = "now.config.json";
|