0xray 4.0.34 → 4.0.36
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/.grok-plugin/plugin.json +1 -1
- package/.xray/codex.json +12 -4
- package/.xray/features.json +1 -1
- package/AGENTS-consumer.md +6 -6
- package/AGENTS.md +5 -5
- package/README.md +2 -2
- package/dist/AGENTS.md +5 -5
- package/dist/CHANGELOG.md +26 -0
- package/dist/README.md +2 -2
- package/dist/cli/index.js +2 -5
- package/dist/governance/governance-service.js +1 -1
- package/dist/integrations/base/README.md +1 -9
- package/dist/integrations/base/index.d.ts +0 -1
- package/dist/integrations/base/index.js +0 -2
- package/dist/integrations/governance/index.js +31 -8
- package/dist/integrations/grok/hooks/grok-hook-utils.js +1 -1
- package/dist/integrations/grok/hooks/session-start.js +12 -0
- package/dist/integrations/grok/plugin/0xray/hooks/hooks.json +6 -6
- package/dist/integrations/hooks/goggles-mcp.mjs +10 -3
- package/dist/integrations/hooks/goggles-pipeline.mjs +110 -23
- package/dist/integrations/hooks/host-truth.mjs +74 -0
- package/dist/integrations/hooks/station-hook-runtime.cjs +3 -0
- package/dist/integrations/openclaw/plugin/xray-pre-tool/package.json +1 -1
- package/dist/mcps/knowledge-skills/storyteller.server.js +0 -1
- package/dist/nucleus/delegation-gate.d.ts +2 -2
- package/dist/nucleus/delegation-gate.js +13 -2
- package/dist/nucleus/work-freshness.mjs +189 -0
- package/dist/processors/implementations/agents-md-validation-processor.js +1 -1
- package/docs-site/docs/plates/boot.md +17 -2
- package/docs-site/docs/plates/governance.md +3 -2
- package/docs-site/docs/plates/index.md +3 -1
- package/docs-site/docs/plates/memory-recall.md +26 -35
- package/docs-site/docs/plates/orchestration.md +39 -35
- package/docs-site/docs/plates/processor.md +34 -36
- package/docs-site/docs/plates/reporting.md +3 -8
- package/docs-site/docs/plates/routing.md +22 -11
- package/package.json +3 -2
- package/scripts/foundry/release.mjs +48 -5
- package/scripts/mjs/run-grok-hook.mjs +50 -0
- package/scripts/mjs/test-consumer-readiness.mjs +1 -0
- package/scripts/mjs/test-mcp-functionality.mjs +14 -9
- package/scripts/node/basic-security-audit.cjs +0 -1
- package/scripts/node/bridge-mcp-wiring.cjs +66 -3
- package/scripts/node/install-bridges.cjs +3 -3
- package/scripts/node/postinstall.cjs +1 -1
- package/scripts/node/prepare-consumer.cjs +11 -7
- package/scripts/node/setup-dev.cjs +18 -26
- package/scripts/node/validate-mcp-connectivity.js +2 -1
- package/src/integrations/grok/plugin/0xray/hooks/hooks.json +6 -6
- package/src/integrations/openclaw/plugin/xray-pre-tool/package.json +1 -1
- package/src/mcps/knowledge-skills/storyteller.server.ts +0 -1
- package/xray/agents_template.md +5 -5
- package/xray/codex.json +12 -4
- package/xray/features.json +1 -1
- package/dist/agents/known-names.d.ts +0 -26
- package/dist/agents/known-names.js +0 -72
- package/dist/analytics/consent-manager.d.ts +0 -92
- package/dist/analytics/consent-manager.js +0 -257
- package/dist/benchmark/performance-benchmark.d.ts +0 -103
- package/dist/benchmark/performance-benchmark.js +0 -373
- package/dist/cli/commands/analytics-disable.d.ts +0 -9
- package/dist/cli/commands/analytics-disable.js +0 -72
- package/dist/cli/commands/analytics-enable-action.d.ts +0 -8
- package/dist/cli/commands/analytics-enable-action.js +0 -82
- package/dist/cli/commands/analytics-preview.d.ts +0 -9
- package/dist/cli/commands/analytics-preview.js +0 -106
- package/dist/cli/commands/analytics-status.d.ts +0 -9
- package/dist/cli/commands/analytics-status.js +0 -68
- package/dist/cli/commands/enforce.d.ts +0 -12
- package/dist/cli/commands/enforce.js +0 -78
- package/dist/cli/commands/govern.d.ts +0 -29
- package/dist/cli/commands/govern.js +0 -149
- package/dist/cli/commands/security-audit.d.ts +0 -23
- package/dist/cli/commands/security-audit.js +0 -219
- package/dist/cli/server.d.ts +0 -1
- package/dist/cli/server.js +0 -147
- package/dist/config/routing-mappings.d.ts +0 -26
- package/dist/config/routing-mappings.js +0 -151
- package/dist/core/bridge.mjs +0 -922
- package/dist/core/trace-context.d.ts +0 -12
- package/dist/core/trace-context.js +0 -33
- package/dist/enforcement/index.d.ts +0 -22
- package/dist/enforcement/index.js +0 -40
- package/dist/enforcement/loaders/index.d.ts +0 -36
- package/dist/enforcement/loaders/index.js +0 -39
- package/dist/enforcement/test-auto-healing.d.ts +0 -83
- package/dist/enforcement/test-auto-healing.js +0 -325
- package/dist/inference/index.d.ts +0 -10
- package/dist/inference/index.js +0 -5
- package/dist/infrastructure/iac-validator.d.ts +0 -150
- package/dist/infrastructure/iac-validator.js +0 -465
- package/dist/infrastructure/schemas/cloud-schemas.d.ts +0 -482
- package/dist/infrastructure/schemas/cloud-schemas.js +0 -488
- package/dist/integrations/base/ExampleIntegration.d.ts +0 -46
- package/dist/integrations/base/ExampleIntegration.js +0 -180
- package/dist/integrations/enforcement-gate.d.ts +0 -44
- package/dist/integrations/enforcement-gate.js +0 -348
- package/dist/mcps/connection/connection-manager.d.ts +0 -39
- package/dist/mcps/connection/connection-manager.js +0 -79
- package/dist/mcps/index.d.ts +0 -17
- package/dist/mcps/index.js +0 -65
- package/dist/mcps/orchestrator/index.d.ts +0 -6
- package/dist/mcps/orchestrator/index.js +0 -5
- package/dist/metrics/index.d.ts +0 -6
- package/dist/metrics/index.js +0 -6
- package/dist/orchestrator/self-direction-activation.d.ts +0 -108
- package/dist/orchestrator/self-direction-activation.js +0 -244
- package/dist/orchestrator/universal-registry-bridge.d.ts +0 -84
- package/dist/orchestrator/universal-registry-bridge.js +0 -246
- package/dist/performance/performance-budget-enforcer.d.ts +0 -157
- package/dist/performance/performance-budget-enforcer.js +0 -433
- package/dist/performance/performance-regression-tester.d.ts +0 -107
- package/dist/performance/performance-regression-tester.js +0 -341
- package/dist/postprocessor/analysis/CodeChangeAnalyzer.d.ts +0 -11
- package/dist/postprocessor/analysis/CodeChangeAnalyzer.js +0 -50
- package/dist/postprocessor/config/ProcessorConfigLoader.d.ts +0 -44
- package/dist/postprocessor/config/ProcessorConfigLoader.js +0 -16
- package/dist/postprocessor/integration.d.ts +0 -156
- package/dist/postprocessor/integration.js +0 -194
- package/dist/postprocessor/metamorphosis/index.d.ts +0 -2
- package/dist/postprocessor/metamorphosis/index.js +0 -1
- package/dist/postprocessor/redeploy/RetryHandler.d.ts +0 -49
- package/dist/postprocessor/redeploy/RetryHandler.js +0 -118
- package/dist/processors/implementations/session-capture-processor.d.ts +0 -14
- package/dist/processors/implementations/session-capture-processor.js +0 -37
- package/dist/public/XrayService.d.ts +0 -17
- package/dist/public/XrayService.js +0 -40
- package/dist/public/index.d.ts +0 -4
- package/dist/public/index.js +0 -2
- package/dist/security/comprehensive-security-audit.d.ts +0 -157
- package/dist/security/comprehensive-security-audit.js +0 -1004
- package/dist/security/index.d.ts +0 -13
- package/dist/security/index.js +0 -13
- package/dist/security/security-agent-coordinator.d.ts +0 -71
- package/dist/security/security-agent-coordinator.js +0 -203
- package/dist/security/security-hardening-system.d.ts +0 -238
- package/dist/security/security-hardening-system.js +0 -726
- package/dist/security/security-orchestration-layer.d.ts +0 -118
- package/dist/security/security-orchestration-layer.js +0 -495
- package/dist/testing/memory-regression-suite.d.ts +0 -105
- package/dist/testing/memory-regression-suite.js +0 -258
- package/dist/tools/assess-complexity-tool.d.ts +0 -28
- package/dist/tools/assess-complexity-tool.js +0 -44
- package/dist/tools/query-routing-tool.d.ts +0 -17
- package/dist/tools/query-routing-tool.js +0 -59
- package/dist/utils/batch-operations.d.ts +0 -25
- package/dist/utils/batch-operations.js +0 -292
- package/dist/utils/task-graph.d.ts +0 -29
- package/dist/utils/task-graph.js +0 -106
- package/dist/utils/test-template-generator.d.ts +0 -25
- package/dist/utils/test-template-generator.js +0 -178
- package/dist/utils/token-manager.d.ts +0 -48
- package/dist/utils/token-manager.js +0 -163
- package/dist/validation/agent-config-validator.d.ts +0 -110
- package/dist/validation/agent-config-validator.js +0 -280
- package/dist/validation/orchestration-flow-validator.d.ts +0 -87
- package/dist/validation/orchestration-flow-validator.js +0 -606
- package/src/mcps/connection/connection-manager.ts +0 -91
- package/src/mcps/index.ts +0 -80
- package/src/mcps/orchestrator/index.ts +0 -29
|
@@ -1,482 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cloud Infrastructure Schemas
|
|
3
|
-
*
|
|
4
|
-
* Schema definitions for cloud provider configurations, ensuring
|
|
5
|
-
* enterprise-grade validation and compliance with Universal Development Codex v1.2.0.
|
|
6
|
-
*
|
|
7
|
-
* @since 2026-01-08
|
|
8
|
-
*/
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
export declare const AWSCredentialsSchema: z.ZodObject<{
|
|
11
|
-
accessKeyId: z.ZodString;
|
|
12
|
-
secretAccessKey: z.ZodString;
|
|
13
|
-
sessionToken: z.ZodOptional<z.ZodString>;
|
|
14
|
-
region: z.ZodDefault<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const AWSVPCConfigSchema: z.ZodObject<{
|
|
17
|
-
vpcId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
subnetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
securityGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
-
createVpc: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
cidrBlock: z.ZodDefault<z.ZodString>;
|
|
22
|
-
availabilityZones: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
export declare const AWSLoadBalancerConfigSchema: z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
application: "application";
|
|
28
|
-
network: "network";
|
|
29
|
-
gateway: "gateway";
|
|
30
|
-
}>>;
|
|
31
|
-
scheme: z.ZodDefault<z.ZodEnum<{
|
|
32
|
-
internal: "internal";
|
|
33
|
-
"internet-facing": "internet-facing";
|
|
34
|
-
}>>;
|
|
35
|
-
securityGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
-
subnets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
-
enableDeletionProtection: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
-
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
39
|
-
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
40
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
-
requestsPerSecond: z.ZodDefault<z.ZodNumber>;
|
|
42
|
-
burstLimit: z.ZodDefault<z.ZodNumber>;
|
|
43
|
-
byIp: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
-
byHeader: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
-
headerName: z.ZodOptional<z.ZodString>;
|
|
47
|
-
headerValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
customRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
-
name: z.ZodString;
|
|
51
|
-
priority: z.ZodNumber;
|
|
52
|
-
action: z.ZodEnum<{
|
|
53
|
-
deny: "deny";
|
|
54
|
-
allow: "allow";
|
|
55
|
-
count: "count";
|
|
56
|
-
}>;
|
|
57
|
-
conditions: z.ZodArray<z.ZodObject<{
|
|
58
|
-
type: z.ZodEnum<{
|
|
59
|
-
path: "path";
|
|
60
|
-
header: "header";
|
|
61
|
-
httpMethod: "httpMethod";
|
|
62
|
-
queryString: "queryString";
|
|
63
|
-
sourceIp: "sourceIp";
|
|
64
|
-
}>;
|
|
65
|
-
values: z.ZodArray<z.ZodString>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
}, z.core.$strip>>>;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export declare const AWSAPIGatewayConfigSchema: z.ZodObject<{
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
description: z.ZodOptional<z.ZodString>;
|
|
73
|
-
protocolType: z.ZodDefault<z.ZodEnum<{
|
|
74
|
-
HTTP: "HTTP";
|
|
75
|
-
WEBSOCKET: "WEBSOCKET";
|
|
76
|
-
}>>;
|
|
77
|
-
corsConfiguration: z.ZodOptional<z.ZodObject<{
|
|
78
|
-
allowCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
allowHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
-
allowMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
-
allowOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
82
|
-
exposeHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
-
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
throttling: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
burstLimit: z.ZodDefault<z.ZodNumber>;
|
|
87
|
-
rateLimit: z.ZodDefault<z.ZodNumber>;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
usagePlans: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
description: z.ZodOptional<z.ZodString>;
|
|
92
|
-
throttle: z.ZodObject<{
|
|
93
|
-
burstLimit: z.ZodNumber;
|
|
94
|
-
rateLimit: z.ZodNumber;
|
|
95
|
-
}, z.core.$strip>;
|
|
96
|
-
quota: z.ZodOptional<z.ZodObject<{
|
|
97
|
-
limit: z.ZodNumber;
|
|
98
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
period: z.ZodEnum<{
|
|
100
|
-
DAY: "DAY";
|
|
101
|
-
WEEK: "WEEK";
|
|
102
|
-
MONTH: "MONTH";
|
|
103
|
-
}>;
|
|
104
|
-
}, z.core.$strip>>;
|
|
105
|
-
apiStages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
-
apiId: z.ZodString;
|
|
107
|
-
stage: z.ZodString;
|
|
108
|
-
throttle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
109
|
-
burstLimit: z.ZodNumber;
|
|
110
|
-
rateLimit: z.ZodNumber;
|
|
111
|
-
}, z.core.$strip>>>;
|
|
112
|
-
}, z.core.$strip>>>;
|
|
113
|
-
}, z.core.$strip>>>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
export declare const AWSCloudFormationTemplateSchema: z.ZodObject<{
|
|
116
|
-
AWSTemplateFormatVersion: z.ZodOptional<z.ZodString>;
|
|
117
|
-
Description: z.ZodOptional<z.ZodString>;
|
|
118
|
-
Metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
119
|
-
Parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
120
|
-
Type: z.ZodString;
|
|
121
|
-
Default: z.ZodOptional<z.ZodAny>;
|
|
122
|
-
AllowedValues: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
123
|
-
AllowedPattern: z.ZodOptional<z.ZodString>;
|
|
124
|
-
ConstraintDescription: z.ZodOptional<z.ZodString>;
|
|
125
|
-
Description: z.ZodOptional<z.ZodString>;
|
|
126
|
-
MaxLength: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
MinLength: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
MaxValue: z.ZodOptional<z.ZodNumber>;
|
|
129
|
-
MinValue: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
NoEcho: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
}, z.core.$strip>>>;
|
|
132
|
-
Mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
133
|
-
Conditions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
134
|
-
Transform: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
135
|
-
Resources: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
136
|
-
Type: z.ZodString;
|
|
137
|
-
Properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
138
|
-
DependsOn: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
139
|
-
Metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
140
|
-
DeletionPolicy: z.ZodOptional<z.ZodEnum<{
|
|
141
|
-
Delete: "Delete";
|
|
142
|
-
Retain: "Retain";
|
|
143
|
-
Snapshot: "Snapshot";
|
|
144
|
-
}>>;
|
|
145
|
-
UpdateReplacePolicy: z.ZodOptional<z.ZodEnum<{
|
|
146
|
-
Delete: "Delete";
|
|
147
|
-
Retain: "Retain";
|
|
148
|
-
Snapshot: "Snapshot";
|
|
149
|
-
}>>;
|
|
150
|
-
Condition: z.ZodOptional<z.ZodString>;
|
|
151
|
-
}, z.core.$strip>>;
|
|
152
|
-
Outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
153
|
-
Description: z.ZodOptional<z.ZodString>;
|
|
154
|
-
Value: z.ZodAny;
|
|
155
|
-
Export: z.ZodOptional<z.ZodObject<{
|
|
156
|
-
Name: z.ZodString;
|
|
157
|
-
}, z.core.$strip>>;
|
|
158
|
-
Condition: z.ZodOptional<z.ZodString>;
|
|
159
|
-
}, z.core.$strip>>>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
export declare const AzureCredentialsSchema: z.ZodObject<{
|
|
162
|
-
clientId: z.ZodString;
|
|
163
|
-
clientSecret: z.ZodString;
|
|
164
|
-
tenantId: z.ZodString;
|
|
165
|
-
subscriptionId: z.ZodString;
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
export declare const AzureLoadBalancerConfigSchema: z.ZodObject<{
|
|
168
|
-
name: z.ZodString;
|
|
169
|
-
location: z.ZodString;
|
|
170
|
-
sku: z.ZodObject<{
|
|
171
|
-
name: z.ZodDefault<z.ZodEnum<{
|
|
172
|
-
Basic: "Basic";
|
|
173
|
-
Standard: "Standard";
|
|
174
|
-
}>>;
|
|
175
|
-
tier: z.ZodDefault<z.ZodEnum<{
|
|
176
|
-
Regional: "Regional";
|
|
177
|
-
Global: "Global";
|
|
178
|
-
}>>;
|
|
179
|
-
}, z.core.$strip>;
|
|
180
|
-
frontendIPConfigurations: z.ZodArray<z.ZodObject<{
|
|
181
|
-
name: z.ZodString;
|
|
182
|
-
properties: z.ZodObject<{
|
|
183
|
-
privateIPAllocationMethod: z.ZodOptional<z.ZodEnum<{
|
|
184
|
-
Static: "Static";
|
|
185
|
-
Dynamic: "Dynamic";
|
|
186
|
-
}>>;
|
|
187
|
-
privateIPAddress: z.ZodOptional<z.ZodString>;
|
|
188
|
-
subnet: z.ZodOptional<z.ZodObject<{
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
}, z.core.$strip>>;
|
|
191
|
-
publicIPAddress: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
id: z.ZodString;
|
|
193
|
-
}, z.core.$strip>>;
|
|
194
|
-
}, z.core.$strip>;
|
|
195
|
-
}, z.core.$strip>>;
|
|
196
|
-
backendAddressPools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
197
|
-
name: z.ZodString;
|
|
198
|
-
}, z.core.$strip>>>;
|
|
199
|
-
loadBalancingRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
properties: z.ZodObject<{
|
|
202
|
-
frontendIPConfiguration: z.ZodObject<{
|
|
203
|
-
id: z.ZodString;
|
|
204
|
-
}, z.core.$strip>;
|
|
205
|
-
backendAddressPool: z.ZodObject<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
}, z.core.$strip>;
|
|
208
|
-
probe: z.ZodObject<{
|
|
209
|
-
id: z.ZodString;
|
|
210
|
-
}, z.core.$strip>;
|
|
211
|
-
protocol: z.ZodEnum<{
|
|
212
|
-
Tcp: "Tcp";
|
|
213
|
-
Udp: "Udp";
|
|
214
|
-
All: "All";
|
|
215
|
-
}>;
|
|
216
|
-
frontendPort: z.ZodNumber;
|
|
217
|
-
backendPort: z.ZodNumber;
|
|
218
|
-
idleTimeoutInMinutes: z.ZodOptional<z.ZodNumber>;
|
|
219
|
-
enableFloatingIP: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
-
loadDistribution: z.ZodOptional<z.ZodEnum<{
|
|
221
|
-
Default: "Default";
|
|
222
|
-
SourceIP: "SourceIP";
|
|
223
|
-
SourceIPProtocol: "SourceIPProtocol";
|
|
224
|
-
}>>;
|
|
225
|
-
}, z.core.$strip>;
|
|
226
|
-
}, z.core.$strip>>>;
|
|
227
|
-
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
228
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
-
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
-
name: z.ZodString;
|
|
231
|
-
priority: z.ZodNumber;
|
|
232
|
-
matchConditions: z.ZodArray<z.ZodObject<{
|
|
233
|
-
matchVariables: z.ZodArray<z.ZodObject<{
|
|
234
|
-
variableName: z.ZodEnum<{
|
|
235
|
-
RemoteAddr: "RemoteAddr";
|
|
236
|
-
RequestMethod: "RequestMethod";
|
|
237
|
-
QueryString: "QueryString";
|
|
238
|
-
PostArgs: "PostArgs";
|
|
239
|
-
RequestUri: "RequestUri";
|
|
240
|
-
RequestHeaders: "RequestHeaders";
|
|
241
|
-
}>;
|
|
242
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
243
|
-
}, z.core.$strip>>;
|
|
244
|
-
operator: z.ZodEnum<{
|
|
245
|
-
Any: "Any";
|
|
246
|
-
IPMatch: "IPMatch";
|
|
247
|
-
GeoMatch: "GeoMatch";
|
|
248
|
-
Equal: "Equal";
|
|
249
|
-
Contains: "Contains";
|
|
250
|
-
LessThan: "LessThan";
|
|
251
|
-
GreaterThan: "GreaterThan";
|
|
252
|
-
LessThanOrEqual: "LessThanOrEqual";
|
|
253
|
-
GreaterThanOrEqual: "GreaterThanOrEqual";
|
|
254
|
-
BeginsWith: "BeginsWith";
|
|
255
|
-
EndsWith: "EndsWith";
|
|
256
|
-
RegEx: "RegEx";
|
|
257
|
-
}>;
|
|
258
|
-
matchValues: z.ZodArray<z.ZodString>;
|
|
259
|
-
transforms: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
260
|
-
Lowercase: "Lowercase";
|
|
261
|
-
Trim: "Trim";
|
|
262
|
-
UrlDecode: "UrlDecode";
|
|
263
|
-
UrlEncode: "UrlEncode";
|
|
264
|
-
RemoveNulls: "RemoveNulls";
|
|
265
|
-
HtmlEntityDecode: "HtmlEntityDecode";
|
|
266
|
-
}>>>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
action: z.ZodEnum<{
|
|
269
|
-
Allow: "Allow";
|
|
270
|
-
Block: "Block";
|
|
271
|
-
Log: "Log";
|
|
272
|
-
Redirect: "Redirect";
|
|
273
|
-
}>;
|
|
274
|
-
}, z.core.$strip>>>;
|
|
275
|
-
}, z.core.$strip>>;
|
|
276
|
-
}, z.core.$strip>;
|
|
277
|
-
export declare const AzureAPIManagementConfigSchema: z.ZodObject<{
|
|
278
|
-
name: z.ZodString;
|
|
279
|
-
location: z.ZodString;
|
|
280
|
-
sku: z.ZodObject<{
|
|
281
|
-
name: z.ZodDefault<z.ZodEnum<{
|
|
282
|
-
Basic: "Basic";
|
|
283
|
-
Standard: "Standard";
|
|
284
|
-
Developer: "Developer";
|
|
285
|
-
Premium: "Premium";
|
|
286
|
-
Consumption: "Consumption";
|
|
287
|
-
}>>;
|
|
288
|
-
capacity: z.ZodDefault<z.ZodNumber>;
|
|
289
|
-
}, z.core.$strip>;
|
|
290
|
-
publisherEmail: z.ZodString;
|
|
291
|
-
publisherName: z.ZodString;
|
|
292
|
-
policies: z.ZodOptional<z.ZodObject<{
|
|
293
|
-
inbound: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
-
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
295
|
-
calls: z.ZodNumber;
|
|
296
|
-
renewalPeriod: z.ZodNumber;
|
|
297
|
-
counterKey: z.ZodOptional<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>>;
|
|
299
|
-
rateLimitByKey: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
calls: z.ZodNumber;
|
|
301
|
-
renewalPeriod: z.ZodNumber;
|
|
302
|
-
counterKey: z.ZodString;
|
|
303
|
-
incrementCondition: z.ZodOptional<z.ZodString>;
|
|
304
|
-
incrementCount: z.ZodOptional<z.ZodNumber>;
|
|
305
|
-
}, z.core.$strip>>;
|
|
306
|
-
}, z.core.$strip>>>;
|
|
307
|
-
outbound: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
308
|
-
backend: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
309
|
-
onError: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
310
|
-
}, z.core.$strip>>;
|
|
311
|
-
}, z.core.$strip>;
|
|
312
|
-
export declare const GCPCredentialsSchema: z.ZodObject<{
|
|
313
|
-
type: z.ZodLiteral<"service_account">;
|
|
314
|
-
project_id: z.ZodString;
|
|
315
|
-
private_key_id: z.ZodString;
|
|
316
|
-
private_key: z.ZodString;
|
|
317
|
-
client_email: z.ZodString;
|
|
318
|
-
client_id: z.ZodString;
|
|
319
|
-
auth_uri: z.ZodString;
|
|
320
|
-
token_uri: z.ZodString;
|
|
321
|
-
auth_provider_x509_cert_url: z.ZodString;
|
|
322
|
-
client_x509_cert_url: z.ZodString;
|
|
323
|
-
}, z.core.$strip>;
|
|
324
|
-
export declare const GCPLoadBalancerConfigSchema: z.ZodObject<{
|
|
325
|
-
name: z.ZodString;
|
|
326
|
-
region: z.ZodString;
|
|
327
|
-
backendService: z.ZodObject<{
|
|
328
|
-
name: z.ZodString;
|
|
329
|
-
backends: z.ZodArray<z.ZodObject<{
|
|
330
|
-
group: z.ZodString;
|
|
331
|
-
balancingMode: z.ZodDefault<z.ZodEnum<{
|
|
332
|
-
UTILIZATION: "UTILIZATION";
|
|
333
|
-
RATE: "RATE";
|
|
334
|
-
}>>;
|
|
335
|
-
maxUtilization: z.ZodDefault<z.ZodNumber>;
|
|
336
|
-
maxRatePerInstance: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
capacityScaler: z.ZodDefault<z.ZodNumber>;
|
|
338
|
-
}, z.core.$strip>>;
|
|
339
|
-
healthChecks: z.ZodArray<z.ZodString>;
|
|
340
|
-
loadBalancingScheme: z.ZodDefault<z.ZodEnum<{
|
|
341
|
-
INTERNAL: "INTERNAL";
|
|
342
|
-
EXTERNAL: "EXTERNAL";
|
|
343
|
-
}>>;
|
|
344
|
-
protocol: z.ZodDefault<z.ZodEnum<{
|
|
345
|
-
HTTPS: "HTTPS";
|
|
346
|
-
HTTP: "HTTP";
|
|
347
|
-
HTTP2: "HTTP2";
|
|
348
|
-
TCP: "TCP";
|
|
349
|
-
UDP: "UDP";
|
|
350
|
-
GRPC: "GRPC";
|
|
351
|
-
}>>;
|
|
352
|
-
}, z.core.$strip>;
|
|
353
|
-
rateLimit: z.ZodOptional<z.ZodObject<{
|
|
354
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
355
|
-
rateLimiter: z.ZodOptional<z.ZodObject<{
|
|
356
|
-
enforceOnKey: z.ZodDefault<z.ZodEnum<{
|
|
357
|
-
ALL: "ALL";
|
|
358
|
-
IP: "IP";
|
|
359
|
-
HTTP_HEADER: "HTTP_HEADER";
|
|
360
|
-
XFF_IP: "XFF_IP";
|
|
361
|
-
}>>;
|
|
362
|
-
enforceOnKeyName: z.ZodOptional<z.ZodString>;
|
|
363
|
-
rateLimitThreshold: z.ZodObject<{
|
|
364
|
-
count: z.ZodNumber;
|
|
365
|
-
intervalSec: z.ZodNumber;
|
|
366
|
-
}, z.core.$strip>;
|
|
367
|
-
}, z.core.$strip>>;
|
|
368
|
-
}, z.core.$strip>>;
|
|
369
|
-
}, z.core.$strip>;
|
|
370
|
-
export declare const GCPAPIGatewayConfigSchema: z.ZodObject<{
|
|
371
|
-
name: z.ZodString;
|
|
372
|
-
displayName: z.ZodString;
|
|
373
|
-
description: z.ZodOptional<z.ZodString>;
|
|
374
|
-
apiConfig: z.ZodObject<{
|
|
375
|
-
name: z.ZodString;
|
|
376
|
-
displayName: z.ZodString;
|
|
377
|
-
description: z.ZodOptional<z.ZodString>;
|
|
378
|
-
openapiDocuments: z.ZodArray<z.ZodObject<{
|
|
379
|
-
document: z.ZodObject<{
|
|
380
|
-
path: z.ZodString;
|
|
381
|
-
contents: z.ZodString;
|
|
382
|
-
}, z.core.$strip>;
|
|
383
|
-
}, z.core.$strip>>;
|
|
384
|
-
gatewayConfig: z.ZodOptional<z.ZodObject<{
|
|
385
|
-
backendConfig: z.ZodOptional<z.ZodObject<{
|
|
386
|
-
googleServiceAccount: z.ZodOptional<z.ZodString>;
|
|
387
|
-
}, z.core.$strip>>;
|
|
388
|
-
}, z.core.$strip>>;
|
|
389
|
-
quota: z.ZodOptional<z.ZodObject<{
|
|
390
|
-
limits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
391
|
-
name: z.ZodString;
|
|
392
|
-
metric: z.ZodString;
|
|
393
|
-
unit: z.ZodEnum<{
|
|
394
|
-
DAY: "DAY";
|
|
395
|
-
MINUTE: "MINUTE";
|
|
396
|
-
HOUR: "HOUR";
|
|
397
|
-
}>;
|
|
398
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
399
|
-
}, z.core.$strip>>>;
|
|
400
|
-
}, z.core.$strip>>;
|
|
401
|
-
}, z.core.$strip>;
|
|
402
|
-
}, z.core.$strip>;
|
|
403
|
-
export declare const InfrastructureConfigSchema: z.ZodObject<{
|
|
404
|
-
provider: z.ZodEnum<{
|
|
405
|
-
aws: "aws";
|
|
406
|
-
gcp: "gcp";
|
|
407
|
-
azure: "azure";
|
|
408
|
-
}>;
|
|
409
|
-
region: z.ZodString;
|
|
410
|
-
environment: z.ZodDefault<z.ZodEnum<{
|
|
411
|
-
staging: "staging";
|
|
412
|
-
dev: "dev";
|
|
413
|
-
prod: "prod";
|
|
414
|
-
}>>;
|
|
415
|
-
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
416
|
-
security: z.ZodOptional<z.ZodObject<{
|
|
417
|
-
enableEncryption: z.ZodDefault<z.ZodBoolean>;
|
|
418
|
-
enableLogging: z.ZodDefault<z.ZodBoolean>;
|
|
419
|
-
enableMonitoring: z.ZodDefault<z.ZodBoolean>;
|
|
420
|
-
complianceFrameworks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
421
|
-
SOC2: "SOC2";
|
|
422
|
-
HIPAA: "HIPAA";
|
|
423
|
-
"PCI-DSS": "PCI-DSS";
|
|
424
|
-
GDPR: "GDPR";
|
|
425
|
-
}>>>;
|
|
426
|
-
}, z.core.$strip>>;
|
|
427
|
-
networking: z.ZodOptional<z.ZodObject<{
|
|
428
|
-
vpc: z.ZodOptional<z.ZodAny>;
|
|
429
|
-
loadBalancers: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
430
|
-
apiGateways: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
431
|
-
firewalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
|
-
name: z.ZodString;
|
|
433
|
-
direction: z.ZodEnum<{
|
|
434
|
-
INGRESS: "INGRESS";
|
|
435
|
-
EGRESS: "EGRESS";
|
|
436
|
-
}>;
|
|
437
|
-
priority: z.ZodNumber;
|
|
438
|
-
allowed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
439
|
-
ipProtocol: z.ZodString;
|
|
440
|
-
ports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
441
|
-
}, z.core.$strip>>>;
|
|
442
|
-
denied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
-
ipProtocol: z.ZodString;
|
|
444
|
-
ports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
445
|
-
}, z.core.$strip>>>;
|
|
446
|
-
sourceRanges: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
447
|
-
destinationRanges: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
448
|
-
targetTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
449
|
-
sourceTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
450
|
-
}, z.core.$strip>>>;
|
|
451
|
-
}, z.core.$strip>>;
|
|
452
|
-
rateLimiting: z.ZodOptional<z.ZodObject<{
|
|
453
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
454
|
-
globalLimits: z.ZodOptional<z.ZodObject<{
|
|
455
|
-
requestsPerSecond: z.ZodDefault<z.ZodNumber>;
|
|
456
|
-
requestsPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
457
|
-
requestsPerHour: z.ZodDefault<z.ZodNumber>;
|
|
458
|
-
burstMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
459
|
-
}, z.core.$strip>>;
|
|
460
|
-
ipBasedLimits: z.ZodOptional<z.ZodObject<{
|
|
461
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
462
|
-
whitelist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
|
-
blacklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
464
|
-
}, z.core.$strip>>;
|
|
465
|
-
endpointLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
466
|
-
requestsPerSecond: z.ZodNumber;
|
|
467
|
-
requestsPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
468
|
-
}, z.core.$strip>>>;
|
|
469
|
-
}, z.core.$strip>>;
|
|
470
|
-
}, z.core.$strip>;
|
|
471
|
-
export type AWSCredentials = z.infer<typeof AWSCredentialsSchema>;
|
|
472
|
-
export type AWSVPCConfig = z.infer<typeof AWSVPCConfigSchema>;
|
|
473
|
-
export type AWSLoadBalancerConfig = z.infer<typeof AWSLoadBalancerConfigSchema>;
|
|
474
|
-
export type AWSAPIGatewayConfig = z.infer<typeof AWSAPIGatewayConfigSchema>;
|
|
475
|
-
export type AWSCloudFormationTemplate = z.infer<typeof AWSCloudFormationTemplateSchema>;
|
|
476
|
-
export type AzureCredentials = z.infer<typeof AzureCredentialsSchema>;
|
|
477
|
-
export type AzureLoadBalancerConfig = z.infer<typeof AzureLoadBalancerConfigSchema>;
|
|
478
|
-
export type AzureAPIManagementConfig = z.infer<typeof AzureAPIManagementConfigSchema>;
|
|
479
|
-
export type GCPCredentials = z.infer<typeof GCPCredentialsSchema>;
|
|
480
|
-
export type GCPLoadBalancerConfig = z.infer<typeof GCPLoadBalancerConfigSchema>;
|
|
481
|
-
export type GCPAPIGatewayConfig = z.infer<typeof GCPAPIGatewayConfigSchema>;
|
|
482
|
-
export type InfrastructureConfig = z.infer<typeof InfrastructureConfigSchema>;
|