@duct-sdk/sdk 0.5.3 → 0.5.9
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 +34 -0
- package/README.md +19 -41
- package/assets/duct-wordmark.svg +7 -7
- package/dist/adapters/react/shell.js +33 -1
- package/dist/cli/index.js +179 -36
- package/dist/core/config-roundtrip.test.d.ts +1 -0
- package/dist/core/config-roundtrip.test.js +132 -0
- package/dist/core/config.d.ts +253 -25
- package/dist/core/config.js +31 -67
- package/dist/core/endpoint-guard.d.ts +27 -0
- package/dist/core/endpoint-guard.js +71 -0
- package/dist/core/endpoint-guard.test.d.ts +1 -0
- package/dist/core/endpoint-guard.test.js +57 -0
- package/dist/core/env-diagnostics.d.ts +13 -0
- package/dist/core/env-diagnostics.js +63 -0
- package/dist/core/env-diagnostics.test.d.ts +1 -0
- package/dist/core/env-diagnostics.test.js +31 -0
- package/dist/core/profile.d.ts +44 -0
- package/dist/core/profile.js +128 -0
- package/dist/core/profile.test.d.ts +1 -0
- package/dist/core/profile.test.js +95 -0
- package/dist/core/readiness-checks.d.ts +113 -0
- package/dist/core/readiness-checks.js +110 -0
- package/dist/core/readiness-checks.test.d.ts +1 -0
- package/dist/core/readiness-checks.test.js +49 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -1
- package/package.json +4 -3
package/dist/core/config.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { DuctConfig } from "./types.js";
|
|
3
|
+
export { ActionManifestSchema, ManifestActionSchema, SensitivityLevelSchema, ErrorEnvelopeSchema, ConfirmationStateSchema, } from "@duct-sdk/contracts";
|
|
4
|
+
export type { ActionManifest, ManifestAction, SensitivityLevel, ErrorEnvelope, ConfirmationState, } from "@duct-sdk/contracts";
|
|
3
5
|
export declare const DuctConfigSchema: z.ZodObject<{
|
|
4
6
|
shellId: z.ZodString;
|
|
5
7
|
product: z.ZodObject<{
|
|
@@ -36,11 +38,15 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
36
38
|
customClaims: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37
39
|
loginDeeplinkId: z.ZodOptional<z.ZodString>;
|
|
38
40
|
loginRoutePath: z.ZodOptional<z.ZodString>;
|
|
41
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39
43
|
}, "strip", z.ZodTypeAny, {
|
|
40
44
|
strategy: "none" | "nextauth" | "clerk" | "auth0" | "custom-jwt" | "session-cookie" | "unknown";
|
|
41
45
|
sessionFields: string[];
|
|
42
46
|
guestAllowed: boolean;
|
|
43
47
|
tokenExpirySeconds: number;
|
|
48
|
+
confidence?: number | undefined;
|
|
49
|
+
evidence?: string[] | undefined;
|
|
44
50
|
tokenEndpoint?: string | undefined;
|
|
45
51
|
customClaims?: Record<string, string> | undefined;
|
|
46
52
|
loginDeeplinkId?: string | undefined;
|
|
@@ -48,6 +54,8 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
48
54
|
}, {
|
|
49
55
|
strategy: "none" | "nextauth" | "clerk" | "auth0" | "custom-jwt" | "session-cookie" | "unknown";
|
|
50
56
|
guestAllowed: boolean;
|
|
57
|
+
confidence?: number | undefined;
|
|
58
|
+
evidence?: string[] | undefined;
|
|
51
59
|
sessionFields?: string[] | undefined;
|
|
52
60
|
tokenExpirySeconds?: number | undefined;
|
|
53
61
|
tokenEndpoint?: string | undefined;
|
|
@@ -98,6 +106,19 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
98
106
|
requiresAuth: z.ZodBoolean;
|
|
99
107
|
deeplinkable: z.ZodBoolean;
|
|
100
108
|
methods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
110
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
112
|
+
searchAction: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
actionId: z.ZodString;
|
|
114
|
+
paramMap: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
actionId: string;
|
|
117
|
+
paramMap: Record<string, string>;
|
|
118
|
+
}, {
|
|
119
|
+
actionId: string;
|
|
120
|
+
paramMap: Record<string, string>;
|
|
121
|
+
}>>;
|
|
101
122
|
}, "strip", z.ZodTypeAny, {
|
|
102
123
|
name: string;
|
|
103
124
|
params: {
|
|
@@ -119,6 +140,13 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
119
140
|
requiresAuth: boolean;
|
|
120
141
|
deeplinkable: boolean;
|
|
121
142
|
methods?: string[] | undefined;
|
|
143
|
+
updatedAt?: string | undefined;
|
|
144
|
+
confidence?: number | undefined;
|
|
145
|
+
evidence?: string[] | undefined;
|
|
146
|
+
searchAction?: {
|
|
147
|
+
actionId: string;
|
|
148
|
+
paramMap: Record<string, string>;
|
|
149
|
+
} | undefined;
|
|
122
150
|
}, {
|
|
123
151
|
name: string;
|
|
124
152
|
path: string;
|
|
@@ -140,6 +168,13 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
140
168
|
defaultValue?: string | number | boolean | undefined;
|
|
141
169
|
}[] | undefined;
|
|
142
170
|
methods?: string[] | undefined;
|
|
171
|
+
updatedAt?: string | undefined;
|
|
172
|
+
confidence?: number | undefined;
|
|
173
|
+
evidence?: string[] | undefined;
|
|
174
|
+
searchAction?: {
|
|
175
|
+
actionId: string;
|
|
176
|
+
paramMap: Record<string, string>;
|
|
177
|
+
} | undefined;
|
|
143
178
|
}>, "many">>;
|
|
144
179
|
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
145
180
|
id: z.ZodString;
|
|
@@ -170,11 +205,18 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
170
205
|
schema?: Record<string, unknown> | undefined;
|
|
171
206
|
}>, "many">>;
|
|
172
207
|
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
208
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
173
209
|
requiresAuth: z.ZodBoolean;
|
|
174
210
|
rateLimit: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
searchHint: z.ZodOptional<z.ZodString>;
|
|
212
|
+
alwaysInclude: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
interruptBehavior: z.ZodOptional<z.ZodEnum<["cancel", "block"]>>;
|
|
214
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
215
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
175
217
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
176
218
|
validUntil: z.ZodOptional<z.ZodString>;
|
|
177
|
-
approveIf: z.ZodOptional<z.ZodType<import("
|
|
219
|
+
approveIf: z.ZodOptional<z.ZodType<import("@duct-sdk/contracts").ApprovalPredicate, z.ZodTypeDef, import("@duct-sdk/contracts").ApprovalPredicate>>;
|
|
178
220
|
actionLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
179
221
|
type: z.ZodLiteral<"rate">;
|
|
180
222
|
maxPerWindow: z.ZodNumber;
|
|
@@ -197,9 +239,21 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
197
239
|
type: "count";
|
|
198
240
|
maxCount: number;
|
|
199
241
|
}>]>>;
|
|
242
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
243
|
+
actionId: z.ZodString;
|
|
244
|
+
paramMapping: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
actionId: string;
|
|
247
|
+
paramMapping: Record<string, string>;
|
|
248
|
+
}, {
|
|
249
|
+
actionId: string;
|
|
250
|
+
paramMapping: Record<string, string>;
|
|
251
|
+
}>, "many">>;
|
|
252
|
+
semanticType: z.ZodOptional<z.ZodEnum<["list", "entity", "status", "comparison", "timeline", "search_results"]>>;
|
|
253
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
254
|
+
paramMappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
255
|
+
navigatesTo: z.ZodOptional<z.ZodString>;
|
|
200
256
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
id: string;
|
|
202
|
-
name: string;
|
|
203
257
|
params: {
|
|
204
258
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
205
259
|
name: string;
|
|
@@ -208,17 +262,26 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
208
262
|
schema?: Record<string, unknown> | undefined;
|
|
209
263
|
}[];
|
|
210
264
|
path: string;
|
|
265
|
+
name: string;
|
|
211
266
|
description: string;
|
|
212
|
-
|
|
267
|
+
id: string;
|
|
213
268
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
214
269
|
agentAccessible: boolean;
|
|
215
270
|
sideEffects: boolean;
|
|
216
271
|
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
272
|
+
requiresAuth: boolean;
|
|
217
273
|
responseSchema?: Record<string, unknown> | undefined;
|
|
274
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
218
275
|
rateLimit?: number | undefined;
|
|
276
|
+
searchHint?: string | undefined;
|
|
277
|
+
alwaysInclude?: boolean | undefined;
|
|
278
|
+
interruptBehavior?: "cancel" | "block" | undefined;
|
|
279
|
+
updatedAt?: string | undefined;
|
|
280
|
+
confidence?: number | undefined;
|
|
281
|
+
evidence?: string[] | undefined;
|
|
219
282
|
validFrom?: string | undefined;
|
|
220
283
|
validUntil?: string | undefined;
|
|
221
|
-
approveIf?: import("
|
|
284
|
+
approveIf?: import("@duct-sdk/contracts").ApprovalPredicate | undefined;
|
|
222
285
|
actionLimit?: {
|
|
223
286
|
type: "rate";
|
|
224
287
|
maxPerWindow: number;
|
|
@@ -227,16 +290,24 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
227
290
|
type: "count";
|
|
228
291
|
maxCount: number;
|
|
229
292
|
} | undefined;
|
|
293
|
+
dependsOn?: {
|
|
294
|
+
actionId: string;
|
|
295
|
+
paramMapping: Record<string, string>;
|
|
296
|
+
}[] | undefined;
|
|
297
|
+
semanticType?: "status" | "list" | "entity" | "comparison" | "timeline" | "search_results" | undefined;
|
|
298
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
299
|
+
paramMappings?: Record<string, string> | undefined;
|
|
300
|
+
navigatesTo?: string | undefined;
|
|
230
301
|
}, {
|
|
231
|
-
id: string;
|
|
232
|
-
name: string;
|
|
233
302
|
path: string;
|
|
303
|
+
name: string;
|
|
234
304
|
description: string;
|
|
235
|
-
|
|
305
|
+
id: string;
|
|
236
306
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
237
307
|
agentAccessible: boolean;
|
|
238
308
|
sideEffects: boolean;
|
|
239
309
|
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
310
|
+
requiresAuth: boolean;
|
|
240
311
|
params?: {
|
|
241
312
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
242
313
|
name: string;
|
|
@@ -245,10 +316,17 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
245
316
|
schema?: Record<string, unknown> | undefined;
|
|
246
317
|
}[] | undefined;
|
|
247
318
|
responseSchema?: Record<string, unknown> | undefined;
|
|
319
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
248
320
|
rateLimit?: number | undefined;
|
|
321
|
+
searchHint?: string | undefined;
|
|
322
|
+
alwaysInclude?: boolean | undefined;
|
|
323
|
+
interruptBehavior?: "cancel" | "block" | undefined;
|
|
324
|
+
updatedAt?: string | undefined;
|
|
325
|
+
confidence?: number | undefined;
|
|
326
|
+
evidence?: string[] | undefined;
|
|
249
327
|
validFrom?: string | undefined;
|
|
250
328
|
validUntil?: string | undefined;
|
|
251
|
-
approveIf?: import("
|
|
329
|
+
approveIf?: import("@duct-sdk/contracts").ApprovalPredicate | undefined;
|
|
252
330
|
actionLimit?: {
|
|
253
331
|
type: "rate";
|
|
254
332
|
maxPerWindow: number;
|
|
@@ -257,6 +335,14 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
257
335
|
type: "count";
|
|
258
336
|
maxCount: number;
|
|
259
337
|
} | undefined;
|
|
338
|
+
dependsOn?: {
|
|
339
|
+
actionId: string;
|
|
340
|
+
paramMapping: Record<string, string>;
|
|
341
|
+
}[] | undefined;
|
|
342
|
+
semanticType?: "status" | "list" | "entity" | "comparison" | "timeline" | "search_results" | undefined;
|
|
343
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
344
|
+
paramMappings?: Record<string, string> | undefined;
|
|
345
|
+
navigatesTo?: string | undefined;
|
|
260
346
|
}>, "many">>;
|
|
261
347
|
deeplinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
262
348
|
id: z.ZodString;
|
|
@@ -284,6 +370,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
284
370
|
}>, "many">>;
|
|
285
371
|
expirySeconds: z.ZodDefault<z.ZodNumber>;
|
|
286
372
|
requiresAuth: z.ZodBoolean;
|
|
373
|
+
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
287
374
|
intent: z.ZodOptional<z.ZodString>;
|
|
288
375
|
pageResolver: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
289
376
|
actionId: z.ZodString;
|
|
@@ -300,6 +387,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
300
387
|
}>]>>;
|
|
301
388
|
allowFetch: z.ZodOptional<z.ZodBoolean>;
|
|
302
389
|
contentSelector: z.ZodOptional<z.ZodString>;
|
|
390
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
303
391
|
}, "strip", z.ZodTypeAny, {
|
|
304
392
|
id: string;
|
|
305
393
|
name: string;
|
|
@@ -314,6 +402,8 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
314
402
|
sessionSource?: string | undefined;
|
|
315
403
|
}[];
|
|
316
404
|
expirySeconds: number;
|
|
405
|
+
updatedAt?: string | undefined;
|
|
406
|
+
openInNewTab?: boolean | undefined;
|
|
317
407
|
intent?: string | undefined;
|
|
318
408
|
pageResolver?: {
|
|
319
409
|
actionId: string;
|
|
@@ -328,6 +418,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
328
418
|
description: string;
|
|
329
419
|
requiresAuth: boolean;
|
|
330
420
|
targetRoute: string;
|
|
421
|
+
updatedAt?: string | undefined;
|
|
331
422
|
stateFields?: {
|
|
332
423
|
type: "string" | "number" | "boolean" | "object";
|
|
333
424
|
required: boolean;
|
|
@@ -336,6 +427,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
336
427
|
sessionSource?: string | undefined;
|
|
337
428
|
}[] | undefined;
|
|
338
429
|
expirySeconds?: number | undefined;
|
|
430
|
+
openInNewTab?: boolean | undefined;
|
|
339
431
|
intent?: string | undefined;
|
|
340
432
|
pageResolver?: {
|
|
341
433
|
actionId: string;
|
|
@@ -357,20 +449,20 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
357
449
|
}, "strip", z.ZodTypeAny, {
|
|
358
450
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
359
451
|
requireUserConsent: boolean;
|
|
360
|
-
validFrom?: string | undefined;
|
|
361
|
-
validUntil?: string | undefined;
|
|
362
452
|
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
363
453
|
allowedCallers?: string[] | undefined;
|
|
364
454
|
allowedActions?: string[] | undefined;
|
|
455
|
+
validFrom?: string | undefined;
|
|
456
|
+
validUntil?: string | undefined;
|
|
365
457
|
consentActionScope?: string[] | undefined;
|
|
366
458
|
}, {
|
|
367
459
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
368
460
|
requireUserConsent: boolean;
|
|
369
|
-
validFrom?: string | undefined;
|
|
370
|
-
validUntil?: string | undefined;
|
|
371
461
|
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
372
462
|
allowedCallers?: string[] | undefined;
|
|
373
463
|
allowedActions?: string[] | undefined;
|
|
464
|
+
validFrom?: string | undefined;
|
|
465
|
+
validUntil?: string | undefined;
|
|
374
466
|
consentActionScope?: string[] | undefined;
|
|
375
467
|
}>;
|
|
376
468
|
widget: z.ZodOptional<z.ZodObject<{
|
|
@@ -386,6 +478,9 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
386
478
|
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
387
479
|
height: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
388
480
|
customCSS: z.ZodOptional<z.ZodString>;
|
|
481
|
+
compactionTurns: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
maxToolIterations: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
maxPlanSteps: z.ZodOptional<z.ZodNumber>;
|
|
389
484
|
}, "strip", z.ZodTypeAny, {
|
|
390
485
|
primaryColor?: string | undefined;
|
|
391
486
|
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | undefined;
|
|
@@ -399,6 +494,9 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
399
494
|
width?: string | number | undefined;
|
|
400
495
|
height?: string | number | undefined;
|
|
401
496
|
customCSS?: string | undefined;
|
|
497
|
+
compactionTurns?: number | undefined;
|
|
498
|
+
maxToolIterations?: number | undefined;
|
|
499
|
+
maxPlanSteps?: number | undefined;
|
|
402
500
|
}, {
|
|
403
501
|
primaryColor?: string | undefined;
|
|
404
502
|
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | undefined;
|
|
@@ -412,6 +510,56 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
412
510
|
width?: string | number | undefined;
|
|
413
511
|
height?: string | number | undefined;
|
|
414
512
|
customCSS?: string | undefined;
|
|
513
|
+
compactionTurns?: number | undefined;
|
|
514
|
+
maxToolIterations?: number | undefined;
|
|
515
|
+
maxPlanSteps?: number | undefined;
|
|
516
|
+
}>>;
|
|
517
|
+
dataModel: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
519
|
+
id: z.ZodString;
|
|
520
|
+
label: z.ZodString;
|
|
521
|
+
discoveryAction: z.ZodString;
|
|
522
|
+
fetchAction: z.ZodString;
|
|
523
|
+
indexKey: z.ZodString;
|
|
524
|
+
labelKey: z.ZodString;
|
|
525
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
id: string;
|
|
528
|
+
label: string;
|
|
529
|
+
discoveryAction: string;
|
|
530
|
+
fetchAction: string;
|
|
531
|
+
indexKey: string;
|
|
532
|
+
labelKey: string;
|
|
533
|
+
dimensions?: string[] | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
id: string;
|
|
536
|
+
label: string;
|
|
537
|
+
discoveryAction: string;
|
|
538
|
+
fetchAction: string;
|
|
539
|
+
indexKey: string;
|
|
540
|
+
labelKey: string;
|
|
541
|
+
dimensions?: string[] | undefined;
|
|
542
|
+
}>, "many">;
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
544
|
+
entities: {
|
|
545
|
+
id: string;
|
|
546
|
+
label: string;
|
|
547
|
+
discoveryAction: string;
|
|
548
|
+
fetchAction: string;
|
|
549
|
+
indexKey: string;
|
|
550
|
+
labelKey: string;
|
|
551
|
+
dimensions?: string[] | undefined;
|
|
552
|
+
}[];
|
|
553
|
+
}, {
|
|
554
|
+
entities: {
|
|
555
|
+
id: string;
|
|
556
|
+
label: string;
|
|
557
|
+
discoveryAction: string;
|
|
558
|
+
fetchAction: string;
|
|
559
|
+
indexKey: string;
|
|
560
|
+
labelKey: string;
|
|
561
|
+
dimensions?: string[] | undefined;
|
|
562
|
+
}[];
|
|
415
563
|
}>>;
|
|
416
564
|
registry_visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<["public", "private"]>>>;
|
|
417
565
|
intershell_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -421,6 +569,8 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
421
569
|
sessionFields: string[];
|
|
422
570
|
guestAllowed: boolean;
|
|
423
571
|
tokenExpirySeconds: number;
|
|
572
|
+
confidence?: number | undefined;
|
|
573
|
+
evidence?: string[] | undefined;
|
|
424
574
|
tokenEndpoint?: string | undefined;
|
|
425
575
|
customClaims?: Record<string, string> | undefined;
|
|
426
576
|
loginDeeplinkId?: string | undefined;
|
|
@@ -457,10 +607,15 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
457
607
|
requiresAuth: boolean;
|
|
458
608
|
deeplinkable: boolean;
|
|
459
609
|
methods?: string[] | undefined;
|
|
610
|
+
updatedAt?: string | undefined;
|
|
611
|
+
confidence?: number | undefined;
|
|
612
|
+
evidence?: string[] | undefined;
|
|
613
|
+
searchAction?: {
|
|
614
|
+
actionId: string;
|
|
615
|
+
paramMap: Record<string, string>;
|
|
616
|
+
} | undefined;
|
|
460
617
|
}[];
|
|
461
618
|
actions: {
|
|
462
|
-
id: string;
|
|
463
|
-
name: string;
|
|
464
619
|
params: {
|
|
465
620
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
466
621
|
name: string;
|
|
@@ -469,17 +624,26 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
469
624
|
schema?: Record<string, unknown> | undefined;
|
|
470
625
|
}[];
|
|
471
626
|
path: string;
|
|
627
|
+
name: string;
|
|
472
628
|
description: string;
|
|
473
|
-
|
|
629
|
+
id: string;
|
|
474
630
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
475
631
|
agentAccessible: boolean;
|
|
476
632
|
sideEffects: boolean;
|
|
477
633
|
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
634
|
+
requiresAuth: boolean;
|
|
478
635
|
responseSchema?: Record<string, unknown> | undefined;
|
|
636
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
479
637
|
rateLimit?: number | undefined;
|
|
638
|
+
searchHint?: string | undefined;
|
|
639
|
+
alwaysInclude?: boolean | undefined;
|
|
640
|
+
interruptBehavior?: "cancel" | "block" | undefined;
|
|
641
|
+
updatedAt?: string | undefined;
|
|
642
|
+
confidence?: number | undefined;
|
|
643
|
+
evidence?: string[] | undefined;
|
|
480
644
|
validFrom?: string | undefined;
|
|
481
645
|
validUntil?: string | undefined;
|
|
482
|
-
approveIf?: import("
|
|
646
|
+
approveIf?: import("@duct-sdk/contracts").ApprovalPredicate | undefined;
|
|
483
647
|
actionLimit?: {
|
|
484
648
|
type: "rate";
|
|
485
649
|
maxPerWindow: number;
|
|
@@ -488,6 +652,14 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
488
652
|
type: "count";
|
|
489
653
|
maxCount: number;
|
|
490
654
|
} | undefined;
|
|
655
|
+
dependsOn?: {
|
|
656
|
+
actionId: string;
|
|
657
|
+
paramMapping: Record<string, string>;
|
|
658
|
+
}[] | undefined;
|
|
659
|
+
semanticType?: "status" | "list" | "entity" | "comparison" | "timeline" | "search_results" | undefined;
|
|
660
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
661
|
+
paramMappings?: Record<string, string> | undefined;
|
|
662
|
+
navigatesTo?: string | undefined;
|
|
491
663
|
}[];
|
|
492
664
|
deeplinks: {
|
|
493
665
|
id: string;
|
|
@@ -503,6 +675,8 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
503
675
|
sessionSource?: string | undefined;
|
|
504
676
|
}[];
|
|
505
677
|
expirySeconds: number;
|
|
678
|
+
updatedAt?: string | undefined;
|
|
679
|
+
openInNewTab?: boolean | undefined;
|
|
506
680
|
intent?: string | undefined;
|
|
507
681
|
pageResolver?: {
|
|
508
682
|
actionId: string;
|
|
@@ -515,11 +689,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
515
689
|
agentPermissions: {
|
|
516
690
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
517
691
|
requireUserConsent: boolean;
|
|
518
|
-
validFrom?: string | undefined;
|
|
519
|
-
validUntil?: string | undefined;
|
|
520
692
|
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
521
693
|
allowedCallers?: string[] | undefined;
|
|
522
694
|
allowedActions?: string[] | undefined;
|
|
695
|
+
validFrom?: string | undefined;
|
|
696
|
+
validUntil?: string | undefined;
|
|
523
697
|
consentActionScope?: string[] | undefined;
|
|
524
698
|
};
|
|
525
699
|
registry_visibility: "public" | "private";
|
|
@@ -537,11 +711,27 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
537
711
|
width?: string | number | undefined;
|
|
538
712
|
height?: string | number | undefined;
|
|
539
713
|
customCSS?: string | undefined;
|
|
714
|
+
compactionTurns?: number | undefined;
|
|
715
|
+
maxToolIterations?: number | undefined;
|
|
716
|
+
maxPlanSteps?: number | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
dataModel?: {
|
|
719
|
+
entities: {
|
|
720
|
+
id: string;
|
|
721
|
+
label: string;
|
|
722
|
+
discoveryAction: string;
|
|
723
|
+
fetchAction: string;
|
|
724
|
+
indexKey: string;
|
|
725
|
+
labelKey: string;
|
|
726
|
+
dimensions?: string[] | undefined;
|
|
727
|
+
}[];
|
|
540
728
|
} | undefined;
|
|
541
729
|
}, {
|
|
542
730
|
auth: {
|
|
543
731
|
strategy: "none" | "nextauth" | "clerk" | "auth0" | "custom-jwt" | "session-cookie" | "unknown";
|
|
544
732
|
guestAllowed: boolean;
|
|
733
|
+
confidence?: number | undefined;
|
|
734
|
+
evidence?: string[] | undefined;
|
|
545
735
|
sessionFields?: string[] | undefined;
|
|
546
736
|
tokenExpirySeconds?: number | undefined;
|
|
547
737
|
tokenEndpoint?: string | undefined;
|
|
@@ -562,11 +752,11 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
562
752
|
agentPermissions: {
|
|
563
753
|
defaultLevel: "none" | "read" | "write" | "admin";
|
|
564
754
|
requireUserConsent: boolean;
|
|
565
|
-
validFrom?: string | undefined;
|
|
566
|
-
validUntil?: string | undefined;
|
|
567
755
|
actionOverrides?: Record<string, "none" | "read" | "write" | "admin"> | undefined;
|
|
568
756
|
allowedCallers?: string[] | undefined;
|
|
569
757
|
allowedActions?: string[] | undefined;
|
|
758
|
+
validFrom?: string | undefined;
|
|
759
|
+
validUntil?: string | undefined;
|
|
570
760
|
consentActionScope?: string[] | undefined;
|
|
571
761
|
};
|
|
572
762
|
routes?: {
|
|
@@ -590,17 +780,24 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
590
780
|
defaultValue?: string | number | boolean | undefined;
|
|
591
781
|
}[] | undefined;
|
|
592
782
|
methods?: string[] | undefined;
|
|
783
|
+
updatedAt?: string | undefined;
|
|
784
|
+
confidence?: number | undefined;
|
|
785
|
+
evidence?: string[] | undefined;
|
|
786
|
+
searchAction?: {
|
|
787
|
+
actionId: string;
|
|
788
|
+
paramMap: Record<string, string>;
|
|
789
|
+
} | undefined;
|
|
593
790
|
}[] | undefined;
|
|
594
791
|
actions?: {
|
|
595
|
-
id: string;
|
|
596
|
-
name: string;
|
|
597
792
|
path: string;
|
|
793
|
+
name: string;
|
|
598
794
|
description: string;
|
|
599
|
-
|
|
795
|
+
id: string;
|
|
600
796
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
601
797
|
agentAccessible: boolean;
|
|
602
798
|
sideEffects: boolean;
|
|
603
799
|
sensitivityLevel: "none" | "low" | "medium" | "high" | "critical";
|
|
800
|
+
requiresAuth: boolean;
|
|
604
801
|
params?: {
|
|
605
802
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
606
803
|
name: string;
|
|
@@ -609,10 +806,17 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
609
806
|
schema?: Record<string, unknown> | undefined;
|
|
610
807
|
}[] | undefined;
|
|
611
808
|
responseSchema?: Record<string, unknown> | undefined;
|
|
809
|
+
inputSchema?: Record<string, unknown> | undefined;
|
|
612
810
|
rateLimit?: number | undefined;
|
|
811
|
+
searchHint?: string | undefined;
|
|
812
|
+
alwaysInclude?: boolean | undefined;
|
|
813
|
+
interruptBehavior?: "cancel" | "block" | undefined;
|
|
814
|
+
updatedAt?: string | undefined;
|
|
815
|
+
confidence?: number | undefined;
|
|
816
|
+
evidence?: string[] | undefined;
|
|
613
817
|
validFrom?: string | undefined;
|
|
614
818
|
validUntil?: string | undefined;
|
|
615
|
-
approveIf?: import("
|
|
819
|
+
approveIf?: import("@duct-sdk/contracts").ApprovalPredicate | undefined;
|
|
616
820
|
actionLimit?: {
|
|
617
821
|
type: "rate";
|
|
618
822
|
maxPerWindow: number;
|
|
@@ -621,6 +825,14 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
621
825
|
type: "count";
|
|
622
826
|
maxCount: number;
|
|
623
827
|
} | undefined;
|
|
828
|
+
dependsOn?: {
|
|
829
|
+
actionId: string;
|
|
830
|
+
paramMapping: Record<string, string>;
|
|
831
|
+
}[] | undefined;
|
|
832
|
+
semanticType?: "status" | "list" | "entity" | "comparison" | "timeline" | "search_results" | undefined;
|
|
833
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
834
|
+
paramMappings?: Record<string, string> | undefined;
|
|
835
|
+
navigatesTo?: string | undefined;
|
|
624
836
|
}[] | undefined;
|
|
625
837
|
deeplinks?: {
|
|
626
838
|
id: string;
|
|
@@ -628,6 +840,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
628
840
|
description: string;
|
|
629
841
|
requiresAuth: boolean;
|
|
630
842
|
targetRoute: string;
|
|
843
|
+
updatedAt?: string | undefined;
|
|
631
844
|
stateFields?: {
|
|
632
845
|
type: "string" | "number" | "boolean" | "object";
|
|
633
846
|
required: boolean;
|
|
@@ -636,6 +849,7 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
636
849
|
sessionSource?: string | undefined;
|
|
637
850
|
}[] | undefined;
|
|
638
851
|
expirySeconds?: number | undefined;
|
|
852
|
+
openInNewTab?: boolean | undefined;
|
|
639
853
|
intent?: string | undefined;
|
|
640
854
|
pageResolver?: {
|
|
641
855
|
actionId: string;
|
|
@@ -658,6 +872,20 @@ export declare const DuctConfigSchema: z.ZodObject<{
|
|
|
658
872
|
width?: string | number | undefined;
|
|
659
873
|
height?: string | number | undefined;
|
|
660
874
|
customCSS?: string | undefined;
|
|
875
|
+
compactionTurns?: number | undefined;
|
|
876
|
+
maxToolIterations?: number | undefined;
|
|
877
|
+
maxPlanSteps?: number | undefined;
|
|
878
|
+
} | undefined;
|
|
879
|
+
dataModel?: {
|
|
880
|
+
entities: {
|
|
881
|
+
id: string;
|
|
882
|
+
label: string;
|
|
883
|
+
discoveryAction: string;
|
|
884
|
+
fetchAction: string;
|
|
885
|
+
indexKey: string;
|
|
886
|
+
labelKey: string;
|
|
887
|
+
dimensions?: string[] | undefined;
|
|
888
|
+
}[];
|
|
661
889
|
} | undefined;
|
|
662
890
|
registry_visibility?: "public" | "private" | undefined;
|
|
663
891
|
intershell_enabled?: boolean | undefined;
|