@duct-sdk/sdk 0.5.13 → 0.7.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/CHANGELOG.md +61 -0
- package/README.md +418 -264
- package/TOKEN_SPEC.md +243 -243
- package/dist/cli/action-confusion-format.d.ts +17 -0
- package/dist/cli/action-confusion-format.js +24 -0
- package/dist/cli/add.d.ts +7 -0
- package/dist/cli/add.js +152 -0
- package/dist/cli/agent-prompt.d.ts +3 -0
- package/dist/cli/agent-prompt.js +39 -0
- package/dist/cli/api-sources.d.ts +26 -0
- package/dist/cli/api-sources.js +222 -0
- package/dist/cli/cloud.d.ts +162 -0
- package/dist/cli/cloud.js +306 -0
- package/dist/cli/config-loader.d.ts +14 -0
- package/dist/cli/config-loader.js +56 -7
- package/dist/cli/device-login.d.ts +17 -0
- package/dist/cli/device-login.js +75 -0
- package/dist/cli/drift.js +6 -6
- package/dist/cli/generators/any-stack.d.ts +3 -0
- package/dist/cli/generators/any-stack.js +97 -0
- package/dist/cli/generators/config.js +3 -2
- package/dist/cli/generators/receiver.js +7 -7
- package/dist/cli/generators/shell.js +12 -12
- package/dist/cli/generators/token-route.js +245 -245
- package/dist/cli/generators/wiring-snippets.d.ts +0 -14
- package/dist/cli/generators/wiring-snippets.js +188 -305
- package/dist/cli/index.js +396 -611
- package/dist/cli/mcp-core.d.ts +42 -0
- package/dist/cli/mcp-core.js +161 -0
- package/dist/cli/mcp-setup.d.ts +4 -0
- package/dist/cli/mcp-setup.js +352 -0
- package/dist/cli/mcp.d.ts +2 -0
- package/dist/cli/mcp.js +457 -0
- package/dist/cli/migrate-intershell.js +5 -5
- package/dist/cli/policy-defaults.d.ts +37 -0
- package/dist/cli/policy-defaults.js +127 -0
- package/dist/cli/policy-replay-format.d.ts +9 -0
- package/dist/cli/policy-replay-format.js +46 -0
- package/dist/cli/processors/integration-audit.js +2 -2
- package/dist/cli/processors/openapi-parser.d.ts +5 -0
- package/dist/cli/processors/openapi-parser.js +8 -3
- package/dist/cli/project-loader.d.ts +58 -0
- package/dist/cli/project-loader.js +198 -0
- package/dist/cli/project-writer.d.ts +23 -0
- package/dist/cli/project-writer.js +171 -0
- package/dist/cli/push.d.ts +43 -0
- package/dist/cli/push.js +308 -0
- package/dist/cli/safety-checks.d.ts +9 -0
- package/dist/cli/safety-checks.js +29 -0
- package/dist/cli/setup.d.ts +20 -0
- package/dist/cli/setup.js +349 -0
- package/dist/cli/shell-name.d.ts +8 -0
- package/dist/cli/shell-name.js +29 -0
- package/dist/cli/shells.d.ts +22 -0
- package/dist/cli/shells.js +122 -0
- package/dist/cli/split.d.ts +7 -0
- package/dist/cli/split.js +71 -0
- package/dist/cli/sync.d.ts +25 -0
- package/dist/cli/sync.js +120 -0
- package/dist/cli/test-runner.d.ts +21 -0
- package/dist/cli/test-runner.js +281 -0
- package/dist/core/compile.d.ts +43 -0
- package/dist/core/compile.js +512 -0
- package/dist/core/config.d.ts +538 -19
- package/dist/core/config.js +22 -14
- package/dist/core/login-handoff.d.ts +1 -1
- package/dist/core/login-handoff.js +1 -1
- package/dist/core/project.d.ts +1864 -0
- package/dist/core/project.js +291 -0
- package/dist/core/readiness-checks.js +2 -2
- package/dist/core/types.d.ts +10 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/project.d.ts +4 -0
- package/dist/project.js +8 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +1 -0
- package/package.json +94 -95
- package/dist/adapters/react/page-context-guard.test.d.ts +0 -1
- package/dist/adapters/react/page-context-guard.test.js +0 -15
- package/dist/cli/agents/api-agent.d.ts +0 -22
- package/dist/cli/agents/api-agent.js +0 -761
- package/dist/cli/agents/auth-agent.d.ts +0 -7
- package/dist/cli/agents/auth-agent.js +0 -212
- package/dist/cli/agents/deeplink-agent.d.ts +0 -6
- package/dist/cli/agents/deeplink-agent.js +0 -285
- package/dist/cli/agents/llm.d.ts +0 -33
- package/dist/cli/agents/llm.js +0 -309
- package/dist/cli/agents/pipeline.d.ts +0 -72
- package/dist/cli/agents/pipeline.js +0 -421
- package/dist/cli/agents/reviewer-agent.d.ts +0 -13
- package/dist/cli/agents/reviewer-agent.js +0 -450
- package/dist/cli/agents/route-agent.d.ts +0 -17
- package/dist/cli/agents/route-agent.js +0 -383
- package/dist/cli/config-loader.test.d.ts +0 -1
- package/dist/cli/config-loader.test.js +0 -63
- package/dist/cli/detectors/topology.d.ts +0 -46
- package/dist/cli/detectors/topology.js +0 -417
- package/dist/cli/generators/config.test.d.ts +0 -1
- package/dist/cli/generators/config.test.js +0 -222
- package/dist/cli/generators/shell.test.d.ts +0 -1
- package/dist/cli/generators/shell.test.js +0 -73
- package/dist/cli/generators/token-route.test.d.ts +0 -1
- package/dist/cli/generators/token-route.test.js +0 -53
- package/dist/cli/generators/wiring-snippets.test.d.ts +0 -1
- package/dist/cli/generators/wiring-snippets.test.js +0 -80
- package/dist/cli/init.d.ts +0 -32
- package/dist/cli/init.js +0 -1336
- package/dist/cli/manifest-diff.test.d.ts +0 -1
- package/dist/cli/manifest-diff.test.js +0 -144
- package/dist/cli/processors/curl-parser.test.d.ts +0 -1
- package/dist/cli/processors/curl-parser.test.js +0 -24
- package/dist/cli/processors/integration-audit.test.d.ts +0 -1
- package/dist/cli/processors/integration-audit.test.js +0 -154
- package/dist/cli/processors/postprocess.d.ts +0 -22
- package/dist/cli/processors/postprocess.js +0 -107
- package/dist/cli/processors/prisma-parser.d.ts +0 -35
- package/dist/cli/processors/prisma-parser.js +0 -117
- package/dist/cli/processors/verify-discovery.d.ts +0 -33
- package/dist/cli/processors/verify-discovery.js +0 -193
- package/dist/cli/processors/verify-discovery.test.d.ts +0 -1
- package/dist/cli/processors/verify-discovery.test.js +0 -153
- package/dist/cli/processors/zod-extractor.d.ts +0 -27
- package/dist/cli/processors/zod-extractor.js +0 -153
- package/dist/cli/prompts/review.d.ts +0 -61
- package/dist/cli/prompts/review.js +0 -410
- package/dist/cli/selectors/express.d.ts +0 -12
- package/dist/cli/selectors/express.js +0 -117
- package/dist/cli/selectors/fastapi.d.ts +0 -12
- package/dist/cli/selectors/fastapi.js +0 -122
- package/dist/cli/selectors/generic.d.ts +0 -10
- package/dist/cli/selectors/generic.js +0 -74
- package/dist/cli/selectors/index.d.ts +0 -37
- package/dist/cli/selectors/index.js +0 -315
- package/dist/cli/selectors/next.d.ts +0 -12
- package/dist/cli/selectors/next.js +0 -130
- package/dist/core/config-policy.test.d.ts +0 -1
- package/dist/core/config-policy.test.js +0 -101
- package/dist/core/config-roundtrip.test.d.ts +0 -1
- package/dist/core/config-roundtrip.test.js +0 -180
- package/dist/core/endpoint-guard.test.d.ts +0 -1
- package/dist/core/endpoint-guard.test.js +0 -57
- package/dist/core/env-diagnostics.test.d.ts +0 -1
- package/dist/core/env-diagnostics.test.js +0 -31
- package/dist/core/evidence-bundle.conformance.test.d.ts +0 -1
- package/dist/core/evidence-bundle.conformance.test.js +0 -110
- package/dist/core/evidence-bundle.test.d.ts +0 -1
- package/dist/core/evidence-bundle.test.js +0 -58
- package/dist/core/invariants.test.d.ts +0 -1
- package/dist/core/invariants.test.js +0 -217
- package/dist/core/login-handoff.test.d.ts +0 -1
- package/dist/core/login-handoff.test.js +0 -31
- package/dist/core/profile.test.d.ts +0 -1
- package/dist/core/profile.test.js +0 -95
- package/dist/core/readiness-checks.test.d.ts +0 -1
- package/dist/core/readiness-checks.test.js +0 -106
- package/dist/core/receipt.test.d.ts +0 -1
- package/dist/core/receipt.test.js +0 -75
- package/dist/core/sdk-entrypoint.test.d.ts +0 -1
- package/dist/core/sdk-entrypoint.test.js +0 -8
- package/dist/core/side-effects-review.test.d.ts +0 -1
- package/dist/core/side-effects-review.test.js +0 -28
- package/dist/core/token.conformance.test.d.ts +0 -1
- package/dist/core/token.conformance.test.js +0 -43
- package/dist/core/token.test.d.ts +0 -1
- package/dist/core/token.test.js +0 -66
package/dist/core/config.d.ts
CHANGED
|
@@ -2,6 +2,492 @@ import { z } from "zod";
|
|
|
2
2
|
import type { DuctConfig } from "./types.js";
|
|
3
3
|
export { ActionManifestSchema, ManifestActionSchema, SensitivityLevelSchema, ErrorEnvelopeSchema, ConfirmationStateSchema, } from "@duct-sdk/contracts";
|
|
4
4
|
export type { ActionManifest, ManifestAction, SensitivityLevel, ErrorEnvelope, ConfirmationState, } from "@duct-sdk/contracts";
|
|
5
|
+
export declare const RouteManifestSchema: z.ZodObject<{
|
|
6
|
+
path: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
params: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
type: z.ZodEnum<["string", "number", "uuid", "slug"]>;
|
|
12
|
+
required: z.ZodBoolean;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
type: "string" | "number" | "uuid" | "slug";
|
|
16
|
+
name: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
description?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
type: "string" | "number" | "uuid" | "slug";
|
|
21
|
+
name: string;
|
|
22
|
+
required: boolean;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
}>, "many">>;
|
|
25
|
+
queryParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
type: z.ZodEnum<["string", "number", "boolean", "string[]"]>;
|
|
28
|
+
required: z.ZodBoolean;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
type: "string" | "number" | "boolean" | "string[]";
|
|
33
|
+
name: string;
|
|
34
|
+
required: boolean;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
defaultValue?: string | number | boolean | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
type: "string" | "number" | "boolean" | "string[]";
|
|
39
|
+
name: string;
|
|
40
|
+
required: boolean;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
defaultValue?: string | number | boolean | undefined;
|
|
43
|
+
}>, "many">>;
|
|
44
|
+
uiStateHint: z.ZodEnum<["form", "list", "detail", "dashboard", "modal", "wizard", "empty", "error", "auth", "checkout", "profile", "settings", "search"]>;
|
|
45
|
+
requiresAuth: z.ZodBoolean;
|
|
46
|
+
deeplinkable: z.ZodBoolean;
|
|
47
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51
|
+
searchAction: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
actionId: z.ZodString;
|
|
53
|
+
paramMap: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
actionId: string;
|
|
56
|
+
paramMap: Record<string, string>;
|
|
57
|
+
}, {
|
|
58
|
+
actionId: string;
|
|
59
|
+
paramMap: Record<string, string>;
|
|
60
|
+
}>>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
name: string;
|
|
63
|
+
params: {
|
|
64
|
+
type: "string" | "number" | "uuid" | "slug";
|
|
65
|
+
name: string;
|
|
66
|
+
required: boolean;
|
|
67
|
+
description?: string | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
path: string;
|
|
70
|
+
description: string;
|
|
71
|
+
queryParams: {
|
|
72
|
+
type: "string" | "number" | "boolean" | "string[]";
|
|
73
|
+
name: string;
|
|
74
|
+
required: boolean;
|
|
75
|
+
description?: string | undefined;
|
|
76
|
+
defaultValue?: string | number | boolean | undefined;
|
|
77
|
+
}[];
|
|
78
|
+
uiStateHint: "form" | "list" | "detail" | "dashboard" | "modal" | "wizard" | "empty" | "error" | "auth" | "checkout" | "profile" | "settings" | "search";
|
|
79
|
+
requiresAuth: boolean;
|
|
80
|
+
deeplinkable: boolean;
|
|
81
|
+
methods?: string[] | undefined;
|
|
82
|
+
updatedAt?: string | undefined;
|
|
83
|
+
confidence?: number | undefined;
|
|
84
|
+
evidence?: string[] | undefined;
|
|
85
|
+
searchAction?: {
|
|
86
|
+
actionId: string;
|
|
87
|
+
paramMap: Record<string, string>;
|
|
88
|
+
} | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
name: string;
|
|
91
|
+
path: string;
|
|
92
|
+
description: string;
|
|
93
|
+
uiStateHint: "form" | "list" | "detail" | "dashboard" | "modal" | "wizard" | "empty" | "error" | "auth" | "checkout" | "profile" | "settings" | "search";
|
|
94
|
+
requiresAuth: boolean;
|
|
95
|
+
deeplinkable: boolean;
|
|
96
|
+
params?: {
|
|
97
|
+
type: "string" | "number" | "uuid" | "slug";
|
|
98
|
+
name: string;
|
|
99
|
+
required: boolean;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
}[] | undefined;
|
|
102
|
+
queryParams?: {
|
|
103
|
+
type: "string" | "number" | "boolean" | "string[]";
|
|
104
|
+
name: string;
|
|
105
|
+
required: boolean;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
defaultValue?: string | number | boolean | undefined;
|
|
108
|
+
}[] | undefined;
|
|
109
|
+
methods?: string[] | undefined;
|
|
110
|
+
updatedAt?: string | undefined;
|
|
111
|
+
confidence?: number | undefined;
|
|
112
|
+
evidence?: string[] | undefined;
|
|
113
|
+
searchAction?: {
|
|
114
|
+
actionId: string;
|
|
115
|
+
paramMap: Record<string, string>;
|
|
116
|
+
} | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
export declare const AuthStrategySchema: z.ZodEnum<["nextauth", "clerk", "auth0", "custom-jwt", "session-cookie", "none", "unknown"]>;
|
|
119
|
+
export declare const AuthSchemaSchema: z.ZodObject<{
|
|
120
|
+
strategy: z.ZodEnum<["nextauth", "clerk", "auth0", "custom-jwt", "session-cookie", "none", "unknown"]>;
|
|
121
|
+
sessionFields: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
122
|
+
guestAllowed: z.ZodBoolean;
|
|
123
|
+
tokenExpirySeconds: z.ZodDefault<z.ZodNumber>;
|
|
124
|
+
tokenEndpoint: z.ZodOptional<z.ZodString>;
|
|
125
|
+
customClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
126
|
+
loginDeeplinkId: z.ZodOptional<z.ZodString>;
|
|
127
|
+
loginRoutePath: z.ZodOptional<z.ZodString>;
|
|
128
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
strategy: "none" | "nextauth" | "clerk" | "auth0" | "custom-jwt" | "session-cookie" | "unknown";
|
|
132
|
+
sessionFields: string[];
|
|
133
|
+
guestAllowed: boolean;
|
|
134
|
+
tokenExpirySeconds: number;
|
|
135
|
+
confidence?: number | undefined;
|
|
136
|
+
evidence?: string[] | undefined;
|
|
137
|
+
tokenEndpoint?: string | undefined;
|
|
138
|
+
customClaims?: Record<string, string> | undefined;
|
|
139
|
+
loginDeeplinkId?: string | undefined;
|
|
140
|
+
loginRoutePath?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
strategy: "none" | "nextauth" | "clerk" | "auth0" | "custom-jwt" | "session-cookie" | "unknown";
|
|
143
|
+
guestAllowed: boolean;
|
|
144
|
+
confidence?: number | undefined;
|
|
145
|
+
evidence?: string[] | undefined;
|
|
146
|
+
sessionFields?: string[] | undefined;
|
|
147
|
+
tokenExpirySeconds?: number | undefined;
|
|
148
|
+
tokenEndpoint?: string | undefined;
|
|
149
|
+
customClaims?: Record<string, string> | undefined;
|
|
150
|
+
loginDeeplinkId?: string | undefined;
|
|
151
|
+
loginRoutePath?: string | undefined;
|
|
152
|
+
}>;
|
|
153
|
+
export declare const DeeplinkDefinitionSchema: z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
description: z.ZodString;
|
|
157
|
+
targetRoute: z.ZodString;
|
|
158
|
+
stateFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
159
|
+
key: z.ZodString;
|
|
160
|
+
type: z.ZodEnum<["string", "number", "boolean", "object"]>;
|
|
161
|
+
required: z.ZodBoolean;
|
|
162
|
+
description: z.ZodOptional<z.ZodString>;
|
|
163
|
+
sessionSource: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
type: "string" | "number" | "boolean" | "object";
|
|
166
|
+
required: boolean;
|
|
167
|
+
key: string;
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
sessionSource?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
type: "string" | "number" | "boolean" | "object";
|
|
172
|
+
required: boolean;
|
|
173
|
+
key: string;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
sessionSource?: string | undefined;
|
|
176
|
+
}>, "many">>;
|
|
177
|
+
expirySeconds: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
requiresAuth: z.ZodBoolean;
|
|
179
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
181
|
+
pageResolver: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
182
|
+
actionId: z.ZodString;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
actionId: string;
|
|
185
|
+
}, {
|
|
186
|
+
actionId: string;
|
|
187
|
+
}>, z.ZodObject<{
|
|
188
|
+
endpoint: z.ZodString;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
endpoint: string;
|
|
191
|
+
}, {
|
|
192
|
+
endpoint: string;
|
|
193
|
+
}>]>>;
|
|
194
|
+
allowFetch: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
contentSelector: z.ZodOptional<z.ZodString>;
|
|
196
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
requiresAuth: boolean;
|
|
202
|
+
targetRoute: string;
|
|
203
|
+
stateFields: {
|
|
204
|
+
type: "string" | "number" | "boolean" | "object";
|
|
205
|
+
required: boolean;
|
|
206
|
+
key: string;
|
|
207
|
+
description?: string | undefined;
|
|
208
|
+
sessionSource?: string | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
expirySeconds: number;
|
|
211
|
+
updatedAt?: string | undefined;
|
|
212
|
+
openInNewTab?: boolean | undefined;
|
|
213
|
+
intent?: string | undefined;
|
|
214
|
+
pageResolver?: {
|
|
215
|
+
actionId: string;
|
|
216
|
+
} | {
|
|
217
|
+
endpoint: string;
|
|
218
|
+
} | undefined;
|
|
219
|
+
allowFetch?: boolean | undefined;
|
|
220
|
+
contentSelector?: string | undefined;
|
|
221
|
+
}, {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
description: string;
|
|
225
|
+
requiresAuth: boolean;
|
|
226
|
+
targetRoute: string;
|
|
227
|
+
updatedAt?: string | undefined;
|
|
228
|
+
stateFields?: {
|
|
229
|
+
type: "string" | "number" | "boolean" | "object";
|
|
230
|
+
required: boolean;
|
|
231
|
+
key: string;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
sessionSource?: string | undefined;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
expirySeconds?: number | undefined;
|
|
236
|
+
openInNewTab?: boolean | undefined;
|
|
237
|
+
intent?: string | undefined;
|
|
238
|
+
pageResolver?: {
|
|
239
|
+
actionId: string;
|
|
240
|
+
} | {
|
|
241
|
+
endpoint: string;
|
|
242
|
+
} | undefined;
|
|
243
|
+
allowFetch?: boolean | undefined;
|
|
244
|
+
contentSelector?: string | undefined;
|
|
245
|
+
}>;
|
|
246
|
+
export declare const AgentPermissionLevelSchema: z.ZodEnum<["none", "read", "write", "admin"]>;
|
|
247
|
+
export declare const AgentPermissionsSchema: z.ZodObject<{
|
|
248
|
+
defaultLevel: z.ZodEnum<["none", "read", "write", "admin"]>;
|
|
249
|
+
actionOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["none", "read", "write", "admin"]>>>;
|
|
250
|
+
allowedCallers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
+
allowedCallees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
252
|
+
requireUserConsent: z.ZodBoolean;
|
|
253
|
+
allowedActions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
255
|
+
validUntil: z.ZodOptional<z.ZodString>;
|
|
256
|
+
consentActionScope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
257
|
+
consentGrantHours: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
medium: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
high: z.ZodOptional<z.ZodNumber>;
|
|
261
|
+
}, "strict", z.ZodTypeAny, {
|
|
262
|
+
low?: number | undefined;
|
|
263
|
+
medium?: number | undefined;
|
|
264
|
+
high?: number | undefined;
|
|
265
|
+
}, {
|
|
266
|
+
low?: number | undefined;
|
|
267
|
+
medium?: number | undefined;
|
|
268
|
+
high?: number | undefined;
|
|
269
|
+
}>>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
defaultLevel: "none" | "read" | "write" | "admin";
|
|
272
|
+
requireUserConsent: boolean;
|
|
273
|
+
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
274
|
+
allowedCallers?: string[] | undefined;
|
|
275
|
+
allowedCallees?: string[] | undefined;
|
|
276
|
+
allowedActions?: string[] | undefined;
|
|
277
|
+
validFrom?: string | undefined;
|
|
278
|
+
validUntil?: string | undefined;
|
|
279
|
+
consentActionScope?: string[] | undefined;
|
|
280
|
+
consentGrantHours?: {
|
|
281
|
+
low?: number | undefined;
|
|
282
|
+
medium?: number | undefined;
|
|
283
|
+
high?: number | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
}, {
|
|
286
|
+
defaultLevel: "none" | "read" | "write" | "admin";
|
|
287
|
+
requireUserConsent: boolean;
|
|
288
|
+
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
289
|
+
allowedCallers?: string[] | undefined;
|
|
290
|
+
allowedCallees?: string[] | undefined;
|
|
291
|
+
allowedActions?: string[] | undefined;
|
|
292
|
+
validFrom?: string | undefined;
|
|
293
|
+
validUntil?: string | undefined;
|
|
294
|
+
consentActionScope?: string[] | undefined;
|
|
295
|
+
consentGrantHours?: {
|
|
296
|
+
low?: number | undefined;
|
|
297
|
+
medium?: number | undefined;
|
|
298
|
+
high?: number | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
export declare const WebhooksConfigSchema: z.ZodObject<{
|
|
302
|
+
consentCallback: z.ZodOptional<z.ZodString>;
|
|
303
|
+
identityUrl: z.ZodOptional<z.ZodString>;
|
|
304
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
305
|
+
deeplinkCallback: z.ZodOptional<z.ZodString>;
|
|
306
|
+
eventStream: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
consentCallback?: string | undefined;
|
|
309
|
+
identityUrl?: string | undefined;
|
|
310
|
+
secret?: string | undefined;
|
|
311
|
+
deeplinkCallback?: string | undefined;
|
|
312
|
+
eventStream?: string | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
consentCallback?: string | undefined;
|
|
315
|
+
identityUrl?: string | undefined;
|
|
316
|
+
secret?: string | undefined;
|
|
317
|
+
deeplinkCallback?: string | undefined;
|
|
318
|
+
eventStream?: string | undefined;
|
|
319
|
+
}>;
|
|
320
|
+
export declare const ApprovalStepUpConfigSchema: z.ZodObject<{
|
|
321
|
+
minSensitivity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>>;
|
|
322
|
+
requireForSideEffects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
323
|
+
sideEffectsMinSensitivity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
minSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
326
|
+
requireForSideEffects: boolean;
|
|
327
|
+
sideEffectsMinSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
328
|
+
}, {
|
|
329
|
+
minSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
330
|
+
requireForSideEffects?: boolean | undefined;
|
|
331
|
+
sideEffectsMinSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
332
|
+
}>;
|
|
333
|
+
export declare const ApprovalConfigSchema: z.ZodObject<{
|
|
334
|
+
stepUp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
335
|
+
minSensitivity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>>;
|
|
336
|
+
requireForSideEffects: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
337
|
+
sideEffectsMinSensitivity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>>;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
minSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
340
|
+
requireForSideEffects: boolean;
|
|
341
|
+
sideEffectsMinSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
342
|
+
}, {
|
|
343
|
+
minSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
344
|
+
requireForSideEffects?: boolean | undefined;
|
|
345
|
+
sideEffectsMinSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
346
|
+
}>>>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
stepUp: {
|
|
349
|
+
minSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
350
|
+
requireForSideEffects: boolean;
|
|
351
|
+
sideEffectsMinSensitivity: "none" | "low" | "medium" | "high" | "critical";
|
|
352
|
+
};
|
|
353
|
+
}, {
|
|
354
|
+
stepUp?: {
|
|
355
|
+
minSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
356
|
+
requireForSideEffects?: boolean | undefined;
|
|
357
|
+
sideEffectsMinSensitivity?: "none" | "low" | "medium" | "high" | "critical" | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
}>;
|
|
360
|
+
export declare const OperatorNotificationsConfigSchema: z.ZodObject<{
|
|
361
|
+
approverEmails: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
362
|
+
confirmationReminderLeadMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
approverEmails: string[];
|
|
365
|
+
confirmationReminderLeadMinutes?: number | null | undefined;
|
|
366
|
+
}, {
|
|
367
|
+
approverEmails?: string[] | undefined;
|
|
368
|
+
confirmationReminderLeadMinutes?: number | null | undefined;
|
|
369
|
+
}>;
|
|
370
|
+
export declare const WidgetConfigSchema: z.ZodObject<{
|
|
371
|
+
primaryColor: z.ZodOptional<z.ZodString>;
|
|
372
|
+
position: z.ZodOptional<z.ZodEnum<["bottom-right", "bottom-left", "top-right", "top-left"]>>;
|
|
373
|
+
defaultOpen: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
+
launcherText: z.ZodOptional<z.ZodString>;
|
|
375
|
+
welcomeMessage: z.ZodOptional<z.ZodString>;
|
|
376
|
+
hideLauncher: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
+
preset: z.ZodOptional<z.ZodEnum<["tall", "square", "large"]>>;
|
|
378
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
379
|
+
theme: z.ZodOptional<z.ZodEnum<["light", "dark", "system"]>>;
|
|
380
|
+
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
381
|
+
height: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
382
|
+
customCSS: z.ZodOptional<z.ZodString>;
|
|
383
|
+
compactionTurns: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
maxToolIterations: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
maxPlanSteps: z.ZodOptional<z.ZodNumber>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
primaryColor?: string | undefined;
|
|
388
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | undefined;
|
|
389
|
+
defaultOpen?: boolean | undefined;
|
|
390
|
+
launcherText?: string | undefined;
|
|
391
|
+
welcomeMessage?: string | undefined;
|
|
392
|
+
hideLauncher?: boolean | undefined;
|
|
393
|
+
preset?: "tall" | "square" | "large" | undefined;
|
|
394
|
+
placeholder?: string | undefined;
|
|
395
|
+
theme?: "light" | "dark" | "system" | undefined;
|
|
396
|
+
width?: string | number | undefined;
|
|
397
|
+
height?: string | number | undefined;
|
|
398
|
+
customCSS?: string | undefined;
|
|
399
|
+
compactionTurns?: number | undefined;
|
|
400
|
+
maxToolIterations?: number | undefined;
|
|
401
|
+
maxPlanSteps?: number | undefined;
|
|
402
|
+
}, {
|
|
403
|
+
primaryColor?: string | undefined;
|
|
404
|
+
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | undefined;
|
|
405
|
+
defaultOpen?: boolean | undefined;
|
|
406
|
+
launcherText?: string | undefined;
|
|
407
|
+
welcomeMessage?: string | undefined;
|
|
408
|
+
hideLauncher?: boolean | undefined;
|
|
409
|
+
preset?: "tall" | "square" | "large" | undefined;
|
|
410
|
+
placeholder?: string | undefined;
|
|
411
|
+
theme?: "light" | "dark" | "system" | undefined;
|
|
412
|
+
width?: string | number | undefined;
|
|
413
|
+
height?: string | number | undefined;
|
|
414
|
+
customCSS?: string | undefined;
|
|
415
|
+
compactionTurns?: number | undefined;
|
|
416
|
+
maxToolIterations?: number | undefined;
|
|
417
|
+
maxPlanSteps?: number | undefined;
|
|
418
|
+
}>;
|
|
419
|
+
export declare const DataModelSchema: z.ZodObject<{
|
|
420
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
label: z.ZodString;
|
|
423
|
+
discoveryAction: z.ZodString;
|
|
424
|
+
fetchAction: z.ZodString;
|
|
425
|
+
indexKey: z.ZodString;
|
|
426
|
+
labelKey: z.ZodString;
|
|
427
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
id: string;
|
|
430
|
+
label: string;
|
|
431
|
+
discoveryAction: string;
|
|
432
|
+
fetchAction: string;
|
|
433
|
+
indexKey: string;
|
|
434
|
+
labelKey: string;
|
|
435
|
+
dimensions?: string[] | undefined;
|
|
436
|
+
}, {
|
|
437
|
+
id: string;
|
|
438
|
+
label: string;
|
|
439
|
+
discoveryAction: string;
|
|
440
|
+
fetchAction: string;
|
|
441
|
+
indexKey: string;
|
|
442
|
+
labelKey: string;
|
|
443
|
+
dimensions?: string[] | undefined;
|
|
444
|
+
}>, "many">;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
entities: {
|
|
447
|
+
id: string;
|
|
448
|
+
label: string;
|
|
449
|
+
discoveryAction: string;
|
|
450
|
+
fetchAction: string;
|
|
451
|
+
indexKey: string;
|
|
452
|
+
labelKey: string;
|
|
453
|
+
dimensions?: string[] | undefined;
|
|
454
|
+
}[];
|
|
455
|
+
}, {
|
|
456
|
+
entities: {
|
|
457
|
+
id: string;
|
|
458
|
+
label: string;
|
|
459
|
+
discoveryAction: string;
|
|
460
|
+
fetchAction: string;
|
|
461
|
+
indexKey: string;
|
|
462
|
+
labelKey: string;
|
|
463
|
+
dimensions?: string[] | undefined;
|
|
464
|
+
}[];
|
|
465
|
+
}>;
|
|
466
|
+
export declare const ProductConfigSchema: z.ZodObject<{
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
description: z.ZodString;
|
|
469
|
+
baseUrl: z.ZodString;
|
|
470
|
+
apiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
471
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
472
|
+
industry: z.ZodOptional<z.ZodString>;
|
|
473
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
name: string;
|
|
476
|
+
description: string;
|
|
477
|
+
baseUrl: string;
|
|
478
|
+
apiBaseUrl?: string | undefined;
|
|
479
|
+
locale?: string | undefined;
|
|
480
|
+
industry?: string | undefined;
|
|
481
|
+
logoUrl?: string | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
name: string;
|
|
484
|
+
description: string;
|
|
485
|
+
baseUrl: string;
|
|
486
|
+
apiBaseUrl?: string | undefined;
|
|
487
|
+
locale?: string | undefined;
|
|
488
|
+
industry?: string | undefined;
|
|
489
|
+
logoUrl?: string | undefined;
|
|
490
|
+
}>;
|
|
5
491
|
export declare const DuctConfigSchema: z.ZodObject<{
|
|
6
492
|
shellId: z.ZodString;
|
|
7
493
|
product: z.ZodObject<{
|
|
@@ -255,6 +741,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
255
741
|
paramMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
256
742
|
navigatesTo: z.ZodOptional<z.ZodString>;
|
|
257
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
|
+
method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH";
|
|
745
|
+
path: string;
|
|
746
|
+
sideEffects: boolean;
|
|
747
|
+
sensitivityLevel: "low" | "none" | "medium" | "high" | "critical";
|
|
748
|
+
id: string;
|
|
258
749
|
params: {
|
|
259
750
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
260
751
|
name: string;
|
|
@@ -262,14 +753,9 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
262
753
|
description?: string | undefined;
|
|
263
754
|
schema?: Record<string, unknown> | undefined;
|
|
264
755
|
}[];
|
|
265
|
-
path: string;
|
|
266
756
|
name: string;
|
|
267
757
|
description: string;
|
|
268
|
-
id: string;
|
|
269
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
270
758
|
agentAccessible: boolean;
|
|
271
|
-
sideEffects: boolean;
|
|
272
|
-
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
273
759
|
requiresAuth: boolean;
|
|
274
760
|
sideEffectsReviewAck?: string | undefined;
|
|
275
761
|
responseSchema?: Record<string, unknown> | undefined;
|
|
@@ -301,14 +787,14 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
301
787
|
paramMappings?: Record<string, string> | undefined;
|
|
302
788
|
navigatesTo?: string | undefined;
|
|
303
789
|
}, {
|
|
790
|
+
method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH";
|
|
304
791
|
path: string;
|
|
792
|
+
sideEffects: boolean;
|
|
793
|
+
sensitivityLevel: "low" | "none" | "medium" | "high" | "critical";
|
|
794
|
+
id: string;
|
|
305
795
|
name: string;
|
|
306
796
|
description: string;
|
|
307
|
-
id: string;
|
|
308
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
309
797
|
agentAccessible: boolean;
|
|
310
|
-
sideEffects: boolean;
|
|
311
|
-
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
312
798
|
requiresAuth: boolean;
|
|
313
799
|
params?: {
|
|
314
800
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
@@ -450,6 +936,19 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
450
936
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
451
937
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
452
938
|
consentActionScope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
939
|
+
consentGrantHours: z.ZodOptional<z.ZodObject<{
|
|
940
|
+
low: z.ZodOptional<z.ZodNumber>;
|
|
941
|
+
medium: z.ZodOptional<z.ZodNumber>;
|
|
942
|
+
high: z.ZodOptional<z.ZodNumber>;
|
|
943
|
+
}, "strict", z.ZodTypeAny, {
|
|
944
|
+
low?: number | undefined;
|
|
945
|
+
medium?: number | undefined;
|
|
946
|
+
high?: number | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
low?: number | undefined;
|
|
949
|
+
medium?: number | undefined;
|
|
950
|
+
high?: number | undefined;
|
|
951
|
+
}>>;
|
|
453
952
|
}, "strip", z.ZodTypeAny, {
|
|
454
953
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
455
954
|
requireUserConsent: boolean;
|
|
@@ -460,6 +959,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
460
959
|
validFrom?: string | undefined;
|
|
461
960
|
validUntil?: string | undefined;
|
|
462
961
|
consentActionScope?: string[] | undefined;
|
|
962
|
+
consentGrantHours?: {
|
|
963
|
+
low?: number | undefined;
|
|
964
|
+
medium?: number | undefined;
|
|
965
|
+
high?: number | undefined;
|
|
966
|
+
} | undefined;
|
|
463
967
|
}, {
|
|
464
968
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
465
969
|
requireUserConsent: boolean;
|
|
@@ -470,6 +974,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
470
974
|
validFrom?: string | undefined;
|
|
471
975
|
validUntil?: string | undefined;
|
|
472
976
|
consentActionScope?: string[] | undefined;
|
|
977
|
+
consentGrantHours?: {
|
|
978
|
+
low?: number | undefined;
|
|
979
|
+
medium?: number | undefined;
|
|
980
|
+
high?: number | undefined;
|
|
981
|
+
} | undefined;
|
|
473
982
|
}>;
|
|
474
983
|
widget: z.ZodOptional<z.ZodObject<{
|
|
475
984
|
primaryColor: z.ZodOptional<z.ZodString>;
|
|
@@ -678,6 +1187,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
678
1187
|
} | undefined;
|
|
679
1188
|
}[];
|
|
680
1189
|
actions: {
|
|
1190
|
+
method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH";
|
|
1191
|
+
path: string;
|
|
1192
|
+
sideEffects: boolean;
|
|
1193
|
+
sensitivityLevel: "low" | "none" | "medium" | "high" | "critical";
|
|
1194
|
+
id: string;
|
|
681
1195
|
params: {
|
|
682
1196
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
683
1197
|
name: string;
|
|
@@ -685,14 +1199,9 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
685
1199
|
description?: string | undefined;
|
|
686
1200
|
schema?: Record<string, unknown> | undefined;
|
|
687
1201
|
}[];
|
|
688
|
-
path: string;
|
|
689
1202
|
name: string;
|
|
690
1203
|
description: string;
|
|
691
|
-
id: string;
|
|
692
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
693
1204
|
agentAccessible: boolean;
|
|
694
|
-
sideEffects: boolean;
|
|
695
|
-
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
696
1205
|
requiresAuth: boolean;
|
|
697
1206
|
sideEffectsReviewAck?: string | undefined;
|
|
698
1207
|
responseSchema?: Record<string, unknown> | undefined;
|
|
@@ -759,6 +1268,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
759
1268
|
validFrom?: string | undefined;
|
|
760
1269
|
validUntil?: string | undefined;
|
|
761
1270
|
consentActionScope?: string[] | undefined;
|
|
1271
|
+
consentGrantHours?: {
|
|
1272
|
+
low?: number | undefined;
|
|
1273
|
+
medium?: number | undefined;
|
|
1274
|
+
high?: number | undefined;
|
|
1275
|
+
} | undefined;
|
|
762
1276
|
};
|
|
763
1277
|
registry_visibility: "public" | "private";
|
|
764
1278
|
intershell_enabled: boolean;
|
|
@@ -841,6 +1355,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
841
1355
|
validFrom?: string | undefined;
|
|
842
1356
|
validUntil?: string | undefined;
|
|
843
1357
|
consentActionScope?: string[] | undefined;
|
|
1358
|
+
consentGrantHours?: {
|
|
1359
|
+
low?: number | undefined;
|
|
1360
|
+
medium?: number | undefined;
|
|
1361
|
+
high?: number | undefined;
|
|
1362
|
+
} | undefined;
|
|
844
1363
|
};
|
|
845
1364
|
routes?: {
|
|
846
1365
|
name: string;
|
|
@@ -872,14 +1391,14 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
872
1391
|
} | undefined;
|
|
873
1392
|
}[] | undefined;
|
|
874
1393
|
actions?: {
|
|
1394
|
+
method: "GET" | "DELETE" | "POST" | "PUT" | "PATCH";
|
|
875
1395
|
path: string;
|
|
1396
|
+
sideEffects: boolean;
|
|
1397
|
+
sensitivityLevel: "low" | "none" | "medium" | "high" | "critical";
|
|
1398
|
+
id: string;
|
|
876
1399
|
name: string;
|
|
877
1400
|
description: string;
|
|
878
|
-
id: string;
|
|
879
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
880
1401
|
agentAccessible: boolean;
|
|
881
|
-
sideEffects: boolean;
|
|
882
|
-
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
883
1402
|
requiresAuth: boolean;
|
|
884
1403
|
params?: {
|
|
885
1404
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
@@ -1001,7 +1520,7 @@ export interface DuctConfigValidationIssue {
|
|
|
1001
1520
|
}
|
|
1002
1521
|
export declare function crossValidateDuctConfig(data: ValidatedDuctConfig): DuctConfigValidationIssue[];
|
|
1003
1522
|
/**
|
|
1004
|
-
* Validate a Duct config without throwing — used by
|
|
1523
|
+
* Validate a Duct config without throwing — used by the CLI before writing files.
|
|
1005
1524
|
*/
|
|
1006
1525
|
export declare function validateDuctConfigStrict(config: DuctConfig): {
|
|
1007
1526
|
ok: true;
|