@praxisui/ai 8.0.0-beta.1 → 8.0.0-beta.101
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/README.md +82 -9
- package/fesm2022/praxisui-ai.mjs +3639 -566
- package/package.json +13 -7
- package/{index.d.ts → types/praxisui-ai.d.ts} +1057 -24
|
@@ -18,8 +18,9 @@ declare class PraxisAi {
|
|
|
18
18
|
* Do not edit manually. Run praxis-config-starter/tools/contracts/generate-ai-contract-bindings.js.
|
|
19
19
|
*/
|
|
20
20
|
declare const AI_CONTRACT_VERSION: "v1.1";
|
|
21
|
-
declare const AI_CONTRACT_SCHEMA_HASH: "
|
|
21
|
+
declare const AI_CONTRACT_SCHEMA_HASH: "41767dafdf6ebea802c083d77187ad6612937d6831188938dc21adce384b57a2";
|
|
22
22
|
declare const AI_STREAM_EVENT_SCHEMA_VERSION: "v1";
|
|
23
|
+
declare const AI_DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION: "praxis.ai.context-hints.domain-catalog/v0.2";
|
|
23
24
|
declare const AI_STREAM_EVENT_TYPES: readonly ["status", "thought.step", "heartbeat", "result", "error", "cancelled"];
|
|
24
25
|
type AiJsonPrimitive = string | number | boolean | null;
|
|
25
26
|
type AiJsonArray = AiJsonValue[];
|
|
@@ -27,6 +28,41 @@ interface AiJsonObject {
|
|
|
27
28
|
[key: string]: AiJsonValue;
|
|
28
29
|
}
|
|
29
30
|
type AiJsonValue = AiJsonPrimitive | AiJsonObject | AiJsonArray;
|
|
31
|
+
type AiDomainCatalogContextHintItemType = 'context' | 'node' | 'edge' | 'binding' | 'evidence' | 'governance' | 'vocabulary' | 'relationship';
|
|
32
|
+
type AiDomainCatalogContextHintIntent = 'authoring' | 'explain' | 'validate' | 'ai-access-control';
|
|
33
|
+
type AiDomainCatalogRecommendedAuthoringFlow = 'shared_rule_authoring' | 'component_authoring' | 'ui_composition_authoring';
|
|
34
|
+
type AiDomainCatalogRecommendedRuleType = 'privacy' | 'compliance' | 'validation' | 'selection_eligibility' | 'workflow_action_policy' | 'approval_policy' | string;
|
|
35
|
+
interface AiDomainCatalogRelationshipHintContract {
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
federated?: boolean;
|
|
38
|
+
serviceKey?: string | null;
|
|
39
|
+
sourceNodeKey?: string | null;
|
|
40
|
+
targetNodeKey?: string | null;
|
|
41
|
+
edgeType?: string | null;
|
|
42
|
+
query?: string | null;
|
|
43
|
+
limit?: number;
|
|
44
|
+
}
|
|
45
|
+
interface AiDomainCatalogContextHintContract {
|
|
46
|
+
schemaVersion?: typeof AI_DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION;
|
|
47
|
+
serviceKey?: string;
|
|
48
|
+
resourceKey?: string | null;
|
|
49
|
+
releaseId?: string | null;
|
|
50
|
+
releaseKey?: string | null;
|
|
51
|
+
type?: AiDomainCatalogContextHintItemType;
|
|
52
|
+
itemTypes?: AiDomainCatalogContextHintItemType[];
|
|
53
|
+
intent?: AiDomainCatalogContextHintIntent | null;
|
|
54
|
+
query?: string | null;
|
|
55
|
+
contextKey?: string | null;
|
|
56
|
+
nodeType?: string | null;
|
|
57
|
+
recommendedAuthoringFlow?: AiDomainCatalogRecommendedAuthoringFlow | null;
|
|
58
|
+
recommendedRuleType?: AiDomainCatalogRecommendedRuleType | null;
|
|
59
|
+
limit?: number;
|
|
60
|
+
relationships?: AiDomainCatalogRelationshipHintContract | null;
|
|
61
|
+
}
|
|
62
|
+
interface AiContextHintsContract {
|
|
63
|
+
domainCatalog?: AiDomainCatalogContextHintContract;
|
|
64
|
+
[key: string]: AiJsonValue | AiDomainCatalogContextHintContract | undefined;
|
|
65
|
+
}
|
|
30
66
|
interface AiSchemaContextContract {
|
|
31
67
|
path?: string | null;
|
|
32
68
|
operation?: string | null;
|
|
@@ -64,7 +100,7 @@ interface AiOrchestratorRequestContract {
|
|
|
64
100
|
schemaFields?: AiJsonObject[] | null;
|
|
65
101
|
runtimeState?: AiJsonObject | null;
|
|
66
102
|
suggestedPatch?: AiJsonObject | null;
|
|
67
|
-
contextHints?:
|
|
103
|
+
contextHints?: AiContextHintsContract | null;
|
|
68
104
|
aiMode?: string;
|
|
69
105
|
requireSchema?: boolean;
|
|
70
106
|
resourcePath?: string;
|
|
@@ -75,6 +111,7 @@ interface AiOrchestratorRequestContract {
|
|
|
75
111
|
apiMethod?: string;
|
|
76
112
|
apiTags?: string;
|
|
77
113
|
apiSearchLimit?: number;
|
|
114
|
+
observationId?: string;
|
|
78
115
|
}
|
|
79
116
|
type AiOrchestratorResponseType = 'patch' | 'clarification' | 'error' | 'info';
|
|
80
117
|
interface AiPatchDiffContract {
|
|
@@ -86,7 +123,7 @@ interface AiOptionContract {
|
|
|
86
123
|
value?: string | null;
|
|
87
124
|
label?: string | null;
|
|
88
125
|
example?: string | null;
|
|
89
|
-
contextHints?:
|
|
126
|
+
contextHints?: AiContextHintsContract | null;
|
|
90
127
|
}
|
|
91
128
|
interface AiClarificationUiContract {
|
|
92
129
|
responseType?: 'text' | 'choice' | 'confirm' | 'mixed' | 'context';
|
|
@@ -121,6 +158,67 @@ interface AiOrchestratorResponseContract {
|
|
|
121
158
|
providedValue?: AiJsonValue;
|
|
122
159
|
allowedValues?: string[] | null;
|
|
123
160
|
memory?: AiMemoryInfoContract;
|
|
161
|
+
observationId?: string | null;
|
|
162
|
+
}
|
|
163
|
+
type AiAssistantObservationFeedbackRating = 'positive' | 'negative' | 'inaccurate' | 'unsafe' | 'irrelevant' | 'incomplete';
|
|
164
|
+
interface AiAssistantObservationFeedbackRequestContract {
|
|
165
|
+
rating?: AiAssistantObservationFeedbackRating;
|
|
166
|
+
reasonCode?: string | null;
|
|
167
|
+
comment?: string | null;
|
|
168
|
+
}
|
|
169
|
+
interface AiAssistantObservationFeedbackResponseContract {
|
|
170
|
+
feedbackId?: string | null;
|
|
171
|
+
observationId?: string | null;
|
|
172
|
+
rating?: string | null;
|
|
173
|
+
reasonCode?: string | null;
|
|
174
|
+
commentPreview?: string | null;
|
|
175
|
+
createdAt?: string | null;
|
|
176
|
+
}
|
|
177
|
+
interface AiAssistantObservationResponseContract {
|
|
178
|
+
observationId?: string | null;
|
|
179
|
+
requestId?: string | null;
|
|
180
|
+
tenantId?: string | null;
|
|
181
|
+
environment?: string | null;
|
|
182
|
+
userId?: string | null;
|
|
183
|
+
surface?: string | null;
|
|
184
|
+
componentId?: string | null;
|
|
185
|
+
componentType?: string | null;
|
|
186
|
+
routeKey?: string | null;
|
|
187
|
+
variantId?: string | null;
|
|
188
|
+
schemaHash?: string | null;
|
|
189
|
+
contractVersion?: string | null;
|
|
190
|
+
sessionId?: string | null;
|
|
191
|
+
clientTurnId?: string | null;
|
|
192
|
+
threadId?: string | null;
|
|
193
|
+
turnId?: string | null;
|
|
194
|
+
streamId?: string | null;
|
|
195
|
+
promptHash?: string | null;
|
|
196
|
+
promptPreview?: string | null;
|
|
197
|
+
promptLength?: number | null;
|
|
198
|
+
admissionOutcome?: string | null;
|
|
199
|
+
terminalOutcome?: string | null;
|
|
200
|
+
qualityOutcome?: string | null;
|
|
201
|
+
errorCategory?: string | null;
|
|
202
|
+
errorCode?: string | null;
|
|
203
|
+
errorMessagePreview?: string | null;
|
|
204
|
+
provider?: string | null;
|
|
205
|
+
model?: string | null;
|
|
206
|
+
llmCallCount?: number | null;
|
|
207
|
+
latencyMs?: number | null;
|
|
208
|
+
createdAt?: string | null;
|
|
209
|
+
updatedAt?: string | null;
|
|
210
|
+
feedback?: AiAssistantObservationFeedbackResponseContract[];
|
|
211
|
+
}
|
|
212
|
+
interface AiAssistantObservationSummaryRowContract {
|
|
213
|
+
admissionOutcome?: string | null;
|
|
214
|
+
terminalOutcome?: string | null;
|
|
215
|
+
qualityOutcome?: string | null;
|
|
216
|
+
componentId?: string | null;
|
|
217
|
+
componentType?: string | null;
|
|
218
|
+
total?: number | null;
|
|
219
|
+
}
|
|
220
|
+
interface AiAssistantObservationSummaryResponseContract {
|
|
221
|
+
rows?: AiAssistantObservationSummaryRowContract[];
|
|
124
222
|
}
|
|
125
223
|
interface AgenticAuthoringConversationMessageContract {
|
|
126
224
|
id?: string | null;
|
|
@@ -161,6 +259,7 @@ interface AgenticAuthoringIntentResolutionRequestContract extends AgenticAuthori
|
|
|
161
259
|
provider?: string | null;
|
|
162
260
|
model?: string | null;
|
|
163
261
|
apiKey?: string | null;
|
|
262
|
+
contextHints?: AiContextHintsContract | null;
|
|
164
263
|
}
|
|
165
264
|
interface AgenticAuthoringCandidateContract {
|
|
166
265
|
resourcePath?: string | null;
|
|
@@ -178,8 +277,83 @@ interface AgenticAuthoringQuickReplyContract {
|
|
|
178
277
|
kind: string;
|
|
179
278
|
label: string;
|
|
180
279
|
prompt: string;
|
|
280
|
+
description?: string | null;
|
|
281
|
+
icon?: string | null;
|
|
282
|
+
tone?: string | null;
|
|
283
|
+
contextHints?: AiContextHintsContract | null;
|
|
284
|
+
[key: string]: AiJsonValue | AiContextHintsContract | undefined;
|
|
285
|
+
}
|
|
286
|
+
interface AgenticAuthoringSemanticSelectedResourceContract {
|
|
287
|
+
resourcePath?: string | null;
|
|
288
|
+
operation?: string | null;
|
|
289
|
+
schemaUrl?: string | null;
|
|
290
|
+
submitUrl?: string | null;
|
|
291
|
+
submitMethod?: string | null;
|
|
181
292
|
[key: string]: AiJsonValue | undefined;
|
|
182
293
|
}
|
|
294
|
+
interface AgenticAuthoringSemanticRetrievalEvidenceContract {
|
|
295
|
+
retrievalSource?: string | null;
|
|
296
|
+
evidence?: string[];
|
|
297
|
+
candidateCount?: number;
|
|
298
|
+
[key: string]: AiJsonValue | undefined;
|
|
299
|
+
}
|
|
300
|
+
interface AgenticAuthoringEvidenceBundleEvidenceContract {
|
|
301
|
+
source?: string | null;
|
|
302
|
+
kind?: string | null;
|
|
303
|
+
ref?: string | null;
|
|
304
|
+
summary?: string | null;
|
|
305
|
+
confidence?: number | null;
|
|
306
|
+
matchedTerms?: string[];
|
|
307
|
+
tenantId?: string | null;
|
|
308
|
+
environment?: string | null;
|
|
309
|
+
releaseId?: string | null;
|
|
310
|
+
[key: string]: AiJsonValue | undefined;
|
|
311
|
+
}
|
|
312
|
+
interface AgenticAuthoringEvidenceBundleContract {
|
|
313
|
+
schemaVersion?: string | null;
|
|
314
|
+
retrievalSource?: string | null;
|
|
315
|
+
evidence?: AgenticAuthoringEvidenceBundleEvidenceContract[];
|
|
316
|
+
evidenceCount?: number;
|
|
317
|
+
[key: string]: AiJsonValue | AgenticAuthoringEvidenceBundleEvidenceContract[] | undefined;
|
|
318
|
+
}
|
|
319
|
+
interface AgenticAuthoringSemanticRefinementContract {
|
|
320
|
+
schemaVersion?: string | null;
|
|
321
|
+
refinementKind?: 'visual_projection' | 'data_source' | 'filtering' | 'layout' | 'metric' | 'copy' | 'governance' | string | null;
|
|
322
|
+
preserve?: string[];
|
|
323
|
+
replace?: Record<string, string>;
|
|
324
|
+
add?: Record<string, string[]>;
|
|
325
|
+
remove?: string[];
|
|
326
|
+
rationale?: string | null;
|
|
327
|
+
confidence?: number | null;
|
|
328
|
+
[key: string]: AiJsonValue | Record<string, string> | Record<string, string[]> | undefined;
|
|
329
|
+
}
|
|
330
|
+
interface AgenticAuthoringSemanticDecisionContract {
|
|
331
|
+
schemaVersion?: string | null;
|
|
332
|
+
decisionId?: string | null;
|
|
333
|
+
operationKind?: string | null;
|
|
334
|
+
artifactKind?: string | null;
|
|
335
|
+
changeKind?: string | null;
|
|
336
|
+
selectedResource?: AgenticAuthoringSemanticSelectedResourceContract | null;
|
|
337
|
+
visualizationDecision?: AgenticAuthoringVisualizationDecisionContract | null;
|
|
338
|
+
retrievalEvidence?: AgenticAuthoringSemanticRetrievalEvidenceContract | null;
|
|
339
|
+
retrievedEvidence?: AgenticAuthoringEvidenceBundleContract | null;
|
|
340
|
+
reviewRequired?: boolean | null;
|
|
341
|
+
reviewReason?: string | null;
|
|
342
|
+
previousDecisionRef?: string | null;
|
|
343
|
+
refinementOf?: string | null;
|
|
344
|
+
conversationId?: string | null;
|
|
345
|
+
turnId?: string | null;
|
|
346
|
+
userGoal?: string | null;
|
|
347
|
+
activeObjective?: string | null;
|
|
348
|
+
artifactIntent?: string | null;
|
|
349
|
+
visualIntent?: string | null;
|
|
350
|
+
constraints?: AiJsonObject | null;
|
|
351
|
+
refinement?: AgenticAuthoringSemanticRefinementContract | null;
|
|
352
|
+
previousDecisionId?: string | null;
|
|
353
|
+
rationale?: string | null;
|
|
354
|
+
confidence?: number | null;
|
|
355
|
+
[key: string]: AiJsonValue | AgenticAuthoringSemanticSelectedResourceContract | AgenticAuthoringSemanticRetrievalEvidenceContract | AgenticAuthoringEvidenceBundleContract | AgenticAuthoringSemanticRefinementContract | AgenticAuthoringVisualizationDecisionContract | undefined;
|
|
356
|
+
}
|
|
183
357
|
interface AgenticAuthoringIntentResolutionResultContract {
|
|
184
358
|
valid?: boolean;
|
|
185
359
|
operationKind?: string | null;
|
|
@@ -190,12 +364,61 @@ interface AgenticAuthoringIntentResolutionResultContract {
|
|
|
190
364
|
gate?: AiJsonObject | null;
|
|
191
365
|
effectivePrompt?: string | null;
|
|
192
366
|
assistantMessage?: string | null;
|
|
367
|
+
assistantContent?: AiJsonObject | null;
|
|
193
368
|
quickReplies?: AgenticAuthoringQuickReplyContract[];
|
|
194
369
|
pendingClarification?: AgenticAuthoringPendingClarificationContract | null;
|
|
195
370
|
clarificationQuestions?: string[];
|
|
196
371
|
warnings?: string[];
|
|
197
372
|
failureCodes?: string[];
|
|
198
|
-
|
|
373
|
+
llmDiagnostics?: AiJsonObject | null;
|
|
374
|
+
semanticDecision?: AgenticAuthoringSemanticDecisionContract | null;
|
|
375
|
+
visualizationDecision?: AgenticAuthoringVisualizationDecisionContract | null;
|
|
376
|
+
[key: string]: AiJsonValue | AgenticAuthoringCandidateContract | AgenticAuthoringCandidateContract[] | AgenticAuthoringQuickReplyContract | AgenticAuthoringQuickReplyContract[] | AgenticAuthoringPendingClarificationContract | AgenticAuthoringSemanticDecisionContract | AgenticAuthoringVisualizationDecisionContract | undefined;
|
|
377
|
+
}
|
|
378
|
+
interface AgenticAuthoringVisualizationAxisDecisionContract {
|
|
379
|
+
concept?: string | null;
|
|
380
|
+
field?: string | null;
|
|
381
|
+
label?: string | null;
|
|
382
|
+
chartType?: string | null;
|
|
383
|
+
orientation?: string | null;
|
|
384
|
+
metricAggregation?: string | null;
|
|
385
|
+
metricField?: string | null;
|
|
386
|
+
metricLabel?: string | null;
|
|
387
|
+
provenance?: string | null;
|
|
388
|
+
[key: string]: AiJsonValue | undefined;
|
|
389
|
+
}
|
|
390
|
+
interface AgenticAuthoringVisualizationDecisionContract {
|
|
391
|
+
schemaVersion?: string | null;
|
|
392
|
+
intent?: string | null;
|
|
393
|
+
layoutKind?: string | null;
|
|
394
|
+
primaryComponent?: string | null;
|
|
395
|
+
axes?: AgenticAuthoringVisualizationAxisDecisionContract[];
|
|
396
|
+
includeSummary?: boolean | null;
|
|
397
|
+
includeDetailTable?: boolean | null;
|
|
398
|
+
excludedComponentIds?: string[];
|
|
399
|
+
includeFilters?: boolean | null;
|
|
400
|
+
includeKpis?: boolean | null;
|
|
401
|
+
provenance?: string | null;
|
|
402
|
+
[key: string]: AiJsonValue | AgenticAuthoringVisualizationAxisDecisionContract[] | string[] | undefined;
|
|
403
|
+
}
|
|
404
|
+
interface AgenticAuthoringResourceCandidatesRequestContract {
|
|
405
|
+
retrievalQuery?: string | null;
|
|
406
|
+
userPrompt?: string | null;
|
|
407
|
+
artifactKind?: string | null;
|
|
408
|
+
limit?: number | null;
|
|
409
|
+
[key: string]: AiJsonValue | undefined;
|
|
410
|
+
}
|
|
411
|
+
interface AgenticAuthoringResourceCandidatesResultContract {
|
|
412
|
+
valid?: boolean;
|
|
413
|
+
tool?: string | null;
|
|
414
|
+
retrievalQuery?: string | null;
|
|
415
|
+
artifactKind?: string | null;
|
|
416
|
+
assistantMessage?: string | null;
|
|
417
|
+
assistantContent?: AiJsonObject | null;
|
|
418
|
+
candidates?: AgenticAuthoringCandidateContract[];
|
|
419
|
+
quickReplies?: AgenticAuthoringQuickReplyContract[];
|
|
420
|
+
warnings?: string[];
|
|
421
|
+
[key: string]: AiJsonValue | AgenticAuthoringCandidateContract[] | AgenticAuthoringQuickReplyContract[] | undefined;
|
|
199
422
|
}
|
|
200
423
|
interface AgenticAuthoringPlanRequestContract extends AgenticAuthoringConversationContextContract {
|
|
201
424
|
userPrompt: string;
|
|
@@ -204,6 +427,22 @@ interface AgenticAuthoringPlanRequestContract extends AgenticAuthoringConversati
|
|
|
204
427
|
apiKey?: string | null;
|
|
205
428
|
currentPage?: AiJsonObject | null;
|
|
206
429
|
intentResolution?: AgenticAuthoringIntentResolutionResultContract | null;
|
|
430
|
+
contextHints?: AiContextHintsContract | null;
|
|
431
|
+
}
|
|
432
|
+
interface AgenticAuthoringTurnStreamRequestContract extends AgenticAuthoringConversationContextContract {
|
|
433
|
+
userPrompt: string;
|
|
434
|
+
targetApp?: string | null;
|
|
435
|
+
targetComponentId?: string | null;
|
|
436
|
+
currentRoute?: string | null;
|
|
437
|
+
currentPage?: AiJsonObject | null;
|
|
438
|
+
selectedWidgetKey?: string | null;
|
|
439
|
+
provider?: string | null;
|
|
440
|
+
model?: string | null;
|
|
441
|
+
apiKey?: string | null;
|
|
442
|
+
contextHints?: AiContextHintsContract | null;
|
|
443
|
+
componentCapabilities?: AgenticAuthoringComponentCapabilitiesResultContract | null;
|
|
444
|
+
activeSemanticDecision?: AgenticAuthoringSemanticDecisionContract | null;
|
|
445
|
+
[key: string]: AiJsonValue | AiContextHintsContract | AgenticAuthoringComponentCapabilitiesResultContract | AgenticAuthoringSemanticDecisionContract | AgenticAuthoringConversationMessageContract[] | AgenticAuthoringPendingClarificationContract | AgenticAuthoringAttachmentSummaryContract[] | undefined;
|
|
207
446
|
}
|
|
208
447
|
interface AgenticAuthoringPreviewResultContract {
|
|
209
448
|
valid?: boolean;
|
|
@@ -218,19 +457,79 @@ interface AgenticAuthoringApplyRequestContract {
|
|
|
218
457
|
componentType: string;
|
|
219
458
|
componentId: string;
|
|
220
459
|
scope?: string | null;
|
|
221
|
-
|
|
460
|
+
compiledFormPatch: AiJsonObject;
|
|
222
461
|
tags?: AiJsonObject | null;
|
|
223
|
-
|
|
462
|
+
semanticDecision: AgenticAuthoringSemanticDecisionContract;
|
|
463
|
+
[key: string]: AiJsonValue | AgenticAuthoringSemanticDecisionContract | undefined;
|
|
224
464
|
}
|
|
225
465
|
interface AgenticAuthoringApplyResultContract {
|
|
226
466
|
applied?: boolean;
|
|
227
467
|
etag?: string | null;
|
|
228
468
|
[key: string]: AiJsonValue | undefined;
|
|
229
469
|
}
|
|
470
|
+
interface AgenticAuthoringComponentFieldAliasContract {
|
|
471
|
+
field?: string | null;
|
|
472
|
+
aliases?: string[];
|
|
473
|
+
[key: string]: AiJsonValue | undefined;
|
|
474
|
+
}
|
|
475
|
+
interface AgenticAuthoringComponentCapabilityExampleContract {
|
|
476
|
+
prompt?: string | null;
|
|
477
|
+
intent?: string | null;
|
|
478
|
+
configHints?: string[];
|
|
479
|
+
[key: string]: AiJsonValue | undefined;
|
|
480
|
+
}
|
|
481
|
+
interface AgenticAuthoringComponentCapabilityContract {
|
|
482
|
+
id?: string | null;
|
|
483
|
+
changeKind?: string | null;
|
|
484
|
+
triggerTerms?: string[];
|
|
485
|
+
fieldAliases?: AgenticAuthoringComponentFieldAliasContract[];
|
|
486
|
+
examples?: AgenticAuthoringComponentCapabilityExampleContract[];
|
|
487
|
+
[key: string]: AiJsonValue | AgenticAuthoringComponentFieldAliasContract[] | AgenticAuthoringComponentCapabilityExampleContract[] | undefined;
|
|
488
|
+
}
|
|
489
|
+
interface AgenticAuthoringComponentCapabilityCatalogContract {
|
|
490
|
+
componentId?: string | null;
|
|
491
|
+
version?: string | null;
|
|
492
|
+
capabilities?: AgenticAuthoringComponentCapabilityContract[];
|
|
493
|
+
[key: string]: AiJsonValue | AgenticAuthoringComponentCapabilityContract[] | undefined;
|
|
494
|
+
}
|
|
230
495
|
interface AgenticAuthoringComponentCapabilitiesResultContract {
|
|
231
496
|
version?: string | null;
|
|
232
|
-
catalogs?:
|
|
233
|
-
[key: string]: AiJsonValue | undefined;
|
|
497
|
+
catalogs?: AgenticAuthoringComponentCapabilityCatalogContract[];
|
|
498
|
+
[key: string]: AiJsonValue | AgenticAuthoringComponentCapabilityCatalogContract[] | undefined;
|
|
499
|
+
}
|
|
500
|
+
interface AgenticAuthoringManifestEditPlanRequestContract {
|
|
501
|
+
config?: AiJsonObject | null;
|
|
502
|
+
plan?: AiJsonObject | null;
|
|
503
|
+
validationContext?: AiJsonObject | null;
|
|
504
|
+
}
|
|
505
|
+
interface AgenticAuthoringResolveTargetRequestContract {
|
|
506
|
+
config?: AiJsonObject | null;
|
|
507
|
+
operationId?: string | null;
|
|
508
|
+
target?: AiJsonValue;
|
|
509
|
+
input?: AiJsonValue;
|
|
510
|
+
}
|
|
511
|
+
interface AgenticAuthoringResolvedTargetContract {
|
|
512
|
+
status?: string | null;
|
|
513
|
+
componentId?: string | null;
|
|
514
|
+
operationId?: string | null;
|
|
515
|
+
kind?: string | null;
|
|
516
|
+
resolver?: string | null;
|
|
517
|
+
path?: string | null;
|
|
518
|
+
value?: AiJsonValue;
|
|
519
|
+
candidates?: string[];
|
|
520
|
+
failures?: string[];
|
|
521
|
+
}
|
|
522
|
+
interface AgenticAuthoringManifestValidationResultContract {
|
|
523
|
+
valid?: boolean;
|
|
524
|
+
failures?: string[];
|
|
525
|
+
warnings?: string[];
|
|
526
|
+
normalizedPlan?: AiJsonObject | null;
|
|
527
|
+
}
|
|
528
|
+
interface AgenticAuthoringManifestCompileResultContract {
|
|
529
|
+
compiled?: boolean;
|
|
530
|
+
failures?: string[];
|
|
531
|
+
warnings?: string[];
|
|
532
|
+
patch?: AiJsonObject | null;
|
|
234
533
|
}
|
|
235
534
|
interface AiPatchStreamStartResponseContract {
|
|
236
535
|
streamId: string;
|
|
@@ -239,9 +538,21 @@ interface AiPatchStreamStartResponseContract {
|
|
|
239
538
|
eventSchemaVersion: string;
|
|
240
539
|
streamAuthMode?: 'cookie' | 'signed_url_token' | null;
|
|
241
540
|
streamAccessToken?: string | null;
|
|
541
|
+
observationId?: string | null;
|
|
242
542
|
expiresAt: string;
|
|
243
543
|
fallbackPatchUrl: string;
|
|
244
544
|
}
|
|
545
|
+
interface AgenticAuthoringTurnStreamStartResponseContract {
|
|
546
|
+
streamId: string;
|
|
547
|
+
threadId: string;
|
|
548
|
+
turnId: string;
|
|
549
|
+
eventSchemaVersion: string;
|
|
550
|
+
streamAuthMode?: 'cookie' | 'signed_url_token' | null;
|
|
551
|
+
streamAccessToken?: string | null;
|
|
552
|
+
observationId?: string | null;
|
|
553
|
+
expiresAt: string;
|
|
554
|
+
fallbackAuthoringUrl: string;
|
|
555
|
+
}
|
|
245
556
|
interface AiPatchStreamCancelResponseContract {
|
|
246
557
|
streamId?: string | null;
|
|
247
558
|
threadId?: string | null;
|
|
@@ -260,6 +571,8 @@ interface AiPatchStreamEnvelopeContract<TPayload extends AiJsonObject = AiJsonOb
|
|
|
260
571
|
type: AiPatchStreamEventType$1;
|
|
261
572
|
payload: TPayload;
|
|
262
573
|
}
|
|
574
|
+
interface AgenticAuthoringTurnStreamEnvelopeContract<TPayload extends AiJsonObject = AiJsonObject> extends AiPatchStreamEnvelopeContract<TPayload> {
|
|
575
|
+
}
|
|
263
576
|
interface ProblemResponseContract {
|
|
264
577
|
timestamp?: string | null;
|
|
265
578
|
status?: number | null;
|
|
@@ -270,6 +583,7 @@ interface ProblemResponseContract {
|
|
|
270
583
|
[key: string]: AiJsonValue | undefined;
|
|
271
584
|
}
|
|
272
585
|
type AiPatchStreamEventType$1 = (typeof AI_STREAM_EVENT_TYPES)[number];
|
|
586
|
+
type AiTurnStreamEventType = (typeof AI_STREAM_EVENT_TYPES)[number];
|
|
273
587
|
|
|
274
588
|
/**
|
|
275
589
|
* Models for Praxis AI (Centralized)
|
|
@@ -282,7 +596,7 @@ interface AiRuleResponse {
|
|
|
282
596
|
/** Descriptive name for the rule */
|
|
283
597
|
ruleName: string;
|
|
284
598
|
/** Type of target (scope) */
|
|
285
|
-
targetType: 'field' | 'section' | 'action' | 'row' | 'column';
|
|
599
|
+
targetType: 'field' | 'section' | 'action' | 'row' | 'column' | 'visualBlock';
|
|
286
600
|
/** IDs of the target elements */
|
|
287
601
|
targetIds: string[];
|
|
288
602
|
/** Canonical JSON Logic condition payload or null for always applied */
|
|
@@ -408,11 +722,125 @@ interface RulePropertyDefinition {
|
|
|
408
722
|
}>;
|
|
409
723
|
category?: 'content' | 'appearance' | 'behavior' | 'layout' | 'validation';
|
|
410
724
|
}
|
|
411
|
-
type RulePropertySchema = Record<'field' | 'section' | 'action' | 'row' | 'column', RulePropertyDefinition[]>;
|
|
725
|
+
type RulePropertySchema = Record<'field' | 'section' | 'action' | 'row' | 'column' | 'visualBlock', RulePropertyDefinition[]>;
|
|
726
|
+
|
|
727
|
+
type PraxisAssistantOwnerType = 'page-builder' | 'table' | 'dynamic-form' | 'manual-form' | 'list' | 'tabs' | 'stepper' | 'expansion' | 'app-shell' | 'custom';
|
|
728
|
+
type PraxisAssistantComponentType = 'page-builder' | 'table' | 'form' | 'list' | 'tabs' | 'stepper' | 'expansion' | 'widget' | 'custom';
|
|
729
|
+
type PraxisAssistantContextMode = 'config' | 'agentic-authoring' | 'chat' | 'diagnostic' | 'review' | 'inline-help';
|
|
730
|
+
type PraxisAssistantTargetKind = 'component' | 'field' | 'column' | 'row' | 'section' | 'widget' | 'canvas' | 'compositionLink' | 'action' | 'rule' | 'resource' | 'custom';
|
|
731
|
+
type PraxisAssistantAttachmentKind = 'file' | 'image' | 'json' | 'schema' | 'text' | 'url' | 'custom';
|
|
732
|
+
type PraxisAssistantActionKind = 'local-preview' | 'local-apply' | 'local-undo' | 'manifest-validate' | 'manifest-compile' | 'shared-rule-intake' | 'shared-rule-handoff' | 'governed-simulation-handoff' | 'governed-publication-handoff' | 'materialization-handoff' | 'enforcement-validation-handoff' | 'diagnose' | 'explain' | 'custom';
|
|
733
|
+
type PraxisAssistantRiskLevel = 'low' | 'medium' | 'high' | 'blocked';
|
|
734
|
+
interface PraxisAssistantIdentity {
|
|
735
|
+
sessionId: string;
|
|
736
|
+
ownerId: string;
|
|
737
|
+
ownerType: PraxisAssistantOwnerType | string;
|
|
738
|
+
componentId?: string;
|
|
739
|
+
componentType?: PraxisAssistantComponentType | string;
|
|
740
|
+
routeKey?: string;
|
|
741
|
+
tenantId?: string;
|
|
742
|
+
env?: string;
|
|
743
|
+
userId?: string;
|
|
744
|
+
}
|
|
745
|
+
interface PraxisAssistantTargetRef {
|
|
746
|
+
kind: PraxisAssistantTargetKind | string;
|
|
747
|
+
id: string;
|
|
748
|
+
label?: string;
|
|
749
|
+
path?: string;
|
|
750
|
+
schemaPath?: string;
|
|
751
|
+
metadata?: Readonly<Record<string, string | number | boolean>>;
|
|
752
|
+
}
|
|
753
|
+
interface PraxisAssistantContextItem {
|
|
754
|
+
id: string;
|
|
755
|
+
label: string;
|
|
756
|
+
value: string;
|
|
757
|
+
kind?: string;
|
|
758
|
+
tone?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
759
|
+
}
|
|
760
|
+
interface PraxisAssistantDigest {
|
|
761
|
+
label?: string;
|
|
762
|
+
summary?: string;
|
|
763
|
+
hash?: string;
|
|
764
|
+
source?: string;
|
|
765
|
+
fields?: readonly string[];
|
|
766
|
+
counts?: Readonly<Record<string, number>>;
|
|
767
|
+
}
|
|
768
|
+
interface PraxisAssistantAuthoringManifestRef {
|
|
769
|
+
componentId: string;
|
|
770
|
+
version?: string;
|
|
771
|
+
source?: string;
|
|
772
|
+
hash?: string;
|
|
773
|
+
}
|
|
774
|
+
interface PraxisAssistantCapabilityRef {
|
|
775
|
+
id: string;
|
|
776
|
+
label?: string;
|
|
777
|
+
source?: string;
|
|
778
|
+
risk?: PraxisAssistantRiskLevel;
|
|
779
|
+
}
|
|
780
|
+
interface PraxisAssistantGovernanceHint {
|
|
781
|
+
kind: string;
|
|
782
|
+
label?: string;
|
|
783
|
+
reason?: string;
|
|
784
|
+
target?: string;
|
|
785
|
+
risk?: PraxisAssistantRiskLevel;
|
|
786
|
+
}
|
|
787
|
+
interface PraxisAssistantAttachmentSummary {
|
|
788
|
+
id: string;
|
|
789
|
+
name: string;
|
|
790
|
+
kind: PraxisAssistantAttachmentKind | string;
|
|
791
|
+
mimeType?: string;
|
|
792
|
+
sizeBytes?: number;
|
|
793
|
+
source?: string;
|
|
794
|
+
hasPreview?: boolean;
|
|
795
|
+
}
|
|
796
|
+
interface PraxisAssistantActionContract {
|
|
797
|
+
id: string;
|
|
798
|
+
kind: PraxisAssistantActionKind | string;
|
|
799
|
+
label?: string;
|
|
800
|
+
target?: PraxisAssistantTargetRef;
|
|
801
|
+
capabilityRef?: string;
|
|
802
|
+
risk?: PraxisAssistantRiskLevel;
|
|
803
|
+
handoffEndpoint?: string;
|
|
804
|
+
description?: string;
|
|
805
|
+
}
|
|
806
|
+
interface PraxisAssistantContextSnapshot {
|
|
807
|
+
identity: PraxisAssistantIdentity;
|
|
808
|
+
target?: PraxisAssistantTargetRef;
|
|
809
|
+
contextItems: readonly PraxisAssistantContextItem[];
|
|
810
|
+
mode: PraxisAssistantContextMode;
|
|
811
|
+
authoringManifestRef?: PraxisAssistantAuthoringManifestRef;
|
|
812
|
+
resourcePath?: string;
|
|
813
|
+
schemaFields?: readonly string[];
|
|
814
|
+
dataProfileDigest?: PraxisAssistantDigest;
|
|
815
|
+
runtimeStateDigest?: PraxisAssistantDigest;
|
|
816
|
+
capabilityRefs?: readonly PraxisAssistantCapabilityRef[];
|
|
817
|
+
governanceHints?: readonly PraxisAssistantGovernanceHint[];
|
|
818
|
+
riskHints?: readonly PraxisAssistantGovernanceHint[];
|
|
819
|
+
attachmentSummaries?: readonly PraxisAssistantAttachmentSummary[];
|
|
820
|
+
actions?: readonly PraxisAssistantActionContract[];
|
|
821
|
+
}
|
|
822
|
+
interface PraxisAssistantOpenRequest {
|
|
823
|
+
initialPrompt?: string;
|
|
824
|
+
target?: PraxisAssistantTargetRef;
|
|
825
|
+
mode?: PraxisAssistantContextMode;
|
|
826
|
+
visibility?: 'active' | 'minimized';
|
|
827
|
+
contextHints?: Readonly<Record<string, string | number | boolean>>;
|
|
828
|
+
preferredAction?: PraxisAssistantActionContract;
|
|
829
|
+
selection?: PraxisAssistantTargetRef;
|
|
830
|
+
}
|
|
831
|
+
declare const PRAXIS_ASSISTANT_CONTEXT_TEXT_LIMIT = 160;
|
|
832
|
+
declare const PRAXIS_ASSISTANT_CONTEXT_ITEM_LIMIT = 12;
|
|
833
|
+
declare const PRAXIS_ASSISTANT_CONTEXT_SCHEMA_FIELD_LIMIT = 40;
|
|
834
|
+
declare const PRAXIS_ASSISTANT_CONTEXT_ATTACHMENT_LIMIT = 8;
|
|
835
|
+
declare function sanitizePraxisAssistantText(value: unknown, limit?: number): string;
|
|
836
|
+
declare function normalizePraxisAssistantAttachmentSummary(attachment: unknown): PraxisAssistantAttachmentSummary | null;
|
|
837
|
+
declare function normalizePraxisAssistantContextSnapshot(value: unknown): PraxisAssistantContextSnapshot;
|
|
412
838
|
|
|
413
839
|
type PraxisAssistantShellMessageRole = 'user' | 'assistant' | 'system' | 'status' | 'error';
|
|
414
840
|
type PraxisAssistantShellMode = 'config' | 'agentic-authoring' | 'chat' | 'diagnostic' | 'review' | 'inline-help';
|
|
415
841
|
type PraxisAssistantShellState = 'idle' | 'listening' | 'processing' | 'clarification' | 'review' | 'applying' | 'success' | 'error';
|
|
842
|
+
type PraxisAssistantVoiceInputMode = 'disabled' | 'browser-speech';
|
|
843
|
+
type PraxisAssistantVoiceCaptureState = 'unsupported' | 'idle' | 'listening' | 'stopping' | 'error';
|
|
416
844
|
interface PraxisAssistantShellMessage {
|
|
417
845
|
id: string;
|
|
418
846
|
role: PraxisAssistantShellMessageRole;
|
|
@@ -420,20 +848,172 @@ interface PraxisAssistantShellMessage {
|
|
|
420
848
|
status?: 'pending' | 'done' | 'error';
|
|
421
849
|
editable?: boolean;
|
|
422
850
|
resendable?: boolean;
|
|
851
|
+
observationId?: string | null;
|
|
423
852
|
actions?: readonly PraxisAssistantShellMessageAction[];
|
|
424
853
|
}
|
|
425
854
|
interface PraxisAssistantShellQuickReply {
|
|
426
855
|
id: string;
|
|
427
856
|
label: string;
|
|
428
857
|
prompt: string;
|
|
858
|
+
value?: unknown;
|
|
429
859
|
kind?: string;
|
|
860
|
+
description?: string | null;
|
|
861
|
+
icon?: string | null;
|
|
862
|
+
tone?: string | null;
|
|
863
|
+
presentation?: PraxisAssistantShellQuickReplyPresentation | null;
|
|
864
|
+
contextHints?: Readonly<Record<string, unknown>> | null;
|
|
865
|
+
canonicalAction?: Readonly<Record<string, unknown>> | null;
|
|
866
|
+
semanticDecision?: Readonly<Record<string, unknown>> | null;
|
|
867
|
+
}
|
|
868
|
+
type PraxisAssistantShellQuickReplyPresentationKind = 'resource-candidate' | 'contextual-action' | 'governance-confirmation' | 'guided-option' | string;
|
|
869
|
+
interface PraxisAssistantShellQuickReplyPresentation {
|
|
870
|
+
kind?: PraxisAssistantShellQuickReplyPresentationKind | null;
|
|
871
|
+
categoryLabel?: string | null;
|
|
872
|
+
description?: string | null;
|
|
873
|
+
ctaLabel?: string | null;
|
|
874
|
+
icon?: string | null;
|
|
875
|
+
tone?: string | null;
|
|
876
|
+
technicalDetails?: string | null;
|
|
877
|
+
evidence?: readonly PraxisAssistantShellQuickReplyEvidence[];
|
|
878
|
+
items?: readonly PraxisAssistantShellQuickReplyPresentationItem[];
|
|
879
|
+
}
|
|
880
|
+
interface PraxisAssistantShellQuickReplyEvidence {
|
|
881
|
+
icon?: string | null;
|
|
882
|
+
value: string;
|
|
883
|
+
ariaLabel?: string | null;
|
|
884
|
+
}
|
|
885
|
+
interface PraxisAssistantShellQuickReplyPresentationItem {
|
|
886
|
+
key?: 'bestFor' | 'returns' | 'nextStep' | string;
|
|
887
|
+
label: string;
|
|
888
|
+
value: string;
|
|
889
|
+
icon?: string | null;
|
|
890
|
+
}
|
|
891
|
+
type PraxisAssistantOpportunityCandidateStatus = 'available' | 'missing-context' | 'already-enabled' | 'blocked' | 'not-recommended' | string;
|
|
892
|
+
type PraxisAssistantRecommendedIntentTone = 'neutral' | 'analytics' | 'resource' | 'success' | 'warning' | 'danger' | string;
|
|
893
|
+
interface PraxisAssistantOpportunityGroup {
|
|
894
|
+
id: string;
|
|
895
|
+
label: string;
|
|
896
|
+
description?: string | null;
|
|
897
|
+
rank?: number | null;
|
|
898
|
+
}
|
|
899
|
+
interface PraxisAssistantRecommendedIntentPresentation {
|
|
900
|
+
kind?: 'guided-card' | 'compact-chip' | 'spotlight' | string;
|
|
901
|
+
description?: string | null;
|
|
902
|
+
ctaLabel?: string | null;
|
|
903
|
+
icon?: string | null;
|
|
904
|
+
tone?: PraxisAssistantRecommendedIntentTone | null;
|
|
905
|
+
evidence?: readonly PraxisAssistantShellQuickReplyEvidence[];
|
|
906
|
+
items?: readonly PraxisAssistantShellQuickReplyPresentationItem[];
|
|
907
|
+
}
|
|
908
|
+
type PraxisAssistantRecommendedIntentAction = {
|
|
909
|
+
kind: 'submit-prompt';
|
|
910
|
+
prompt: string;
|
|
911
|
+
contextHints?: Readonly<Record<string, unknown>> | null;
|
|
912
|
+
} | {
|
|
913
|
+
kind: 'start-review';
|
|
914
|
+
operationKind: 'author' | 'execute' | string;
|
|
915
|
+
componentEditPlan?: Readonly<Record<string, unknown>> | null;
|
|
916
|
+
runtimeOperation?: Readonly<Record<string, unknown>> | null;
|
|
917
|
+
contextHints?: Readonly<Record<string, unknown>> | null;
|
|
918
|
+
} | {
|
|
919
|
+
kind: 'open-guidance';
|
|
920
|
+
topicId: string;
|
|
921
|
+
contextHints?: Readonly<Record<string, unknown>> | null;
|
|
922
|
+
} | {
|
|
923
|
+
kind: string;
|
|
924
|
+
[key: string]: unknown;
|
|
925
|
+
};
|
|
926
|
+
interface PraxisAssistantRecommendedIntent {
|
|
927
|
+
kind?: 'praxis.assistant.recommended-intent' | string;
|
|
928
|
+
id: string;
|
|
929
|
+
label: string;
|
|
930
|
+
description?: string | null;
|
|
931
|
+
group?: PraxisAssistantOpportunityGroup | null;
|
|
932
|
+
icon?: string | null;
|
|
933
|
+
tone?: PraxisAssistantRecommendedIntentTone | null;
|
|
934
|
+
presentation?: PraxisAssistantRecommendedIntentPresentation | null;
|
|
935
|
+
action: PraxisAssistantRecommendedIntentAction;
|
|
936
|
+
prompt?: string | null;
|
|
937
|
+
contextHints?: Readonly<Record<string, unknown>> | null;
|
|
938
|
+
sourceCandidateIds?: readonly string[];
|
|
939
|
+
rank?: number | null;
|
|
940
|
+
confidence?: number | null;
|
|
941
|
+
requiresConfirmation?: boolean;
|
|
942
|
+
disabledReason?: string | null;
|
|
943
|
+
}
|
|
944
|
+
interface PraxisAssistantOpportunityEvidence {
|
|
945
|
+
kind: 'component-state' | 'metadata' | 'selection' | 'capability' | 'usage' | 'host' | string;
|
|
946
|
+
label?: string | null;
|
|
947
|
+
value?: string | number | boolean | null;
|
|
948
|
+
details?: Readonly<Record<string, unknown>> | null;
|
|
949
|
+
}
|
|
950
|
+
interface PraxisAssistantOpportunityTarget {
|
|
951
|
+
kind: 'component' | 'field' | 'record-surface' | 'action' | 'navigation' | 'export' | string;
|
|
952
|
+
id: string;
|
|
953
|
+
label?: string | null;
|
|
954
|
+
componentId?: string | null;
|
|
955
|
+
field?: string | null;
|
|
956
|
+
surfaceId?: string | null;
|
|
957
|
+
capabilityId?: string | null;
|
|
958
|
+
metadata?: Readonly<Record<string, unknown>> | null;
|
|
959
|
+
}
|
|
960
|
+
interface PraxisAssistantOpportunityMissingContext {
|
|
961
|
+
id: string;
|
|
962
|
+
label: string;
|
|
963
|
+
reason?: string | null;
|
|
964
|
+
required?: boolean;
|
|
965
|
+
}
|
|
966
|
+
interface PraxisAssistantOpportunitySafety {
|
|
967
|
+
requiresConfirmation?: boolean;
|
|
968
|
+
destructive?: boolean;
|
|
969
|
+
reason?: string | null;
|
|
970
|
+
}
|
|
971
|
+
interface PraxisAssistantOpportunityCandidate {
|
|
972
|
+
id: string;
|
|
973
|
+
label: string;
|
|
974
|
+
description?: string | null;
|
|
975
|
+
group?: PraxisAssistantOpportunityGroup | null;
|
|
976
|
+
target: PraxisAssistantOpportunityTarget;
|
|
977
|
+
status?: PraxisAssistantOpportunityCandidateStatus;
|
|
978
|
+
rank?: number | null;
|
|
979
|
+
confidence?: number | null;
|
|
980
|
+
evidence?: readonly PraxisAssistantOpportunityEvidence[];
|
|
981
|
+
missingContext?: readonly PraxisAssistantOpportunityMissingContext[];
|
|
982
|
+
safety?: PraxisAssistantOpportunitySafety | null;
|
|
983
|
+
recommendedIntent?: PraxisAssistantRecommendedIntent | null;
|
|
984
|
+
metadata?: Readonly<Record<string, unknown>> | null;
|
|
985
|
+
}
|
|
986
|
+
interface PraxisAssistantOpportunityCatalog {
|
|
987
|
+
componentId: string;
|
|
988
|
+
componentKind?: string | null;
|
|
989
|
+
generatedAt?: string | null;
|
|
990
|
+
stateHash?: string | null;
|
|
991
|
+
candidates: readonly PraxisAssistantOpportunityCandidate[];
|
|
992
|
+
groups?: readonly PraxisAssistantOpportunityGroup[];
|
|
993
|
+
metadata?: Readonly<Record<string, unknown>> | null;
|
|
430
994
|
}
|
|
431
995
|
interface PraxisAssistantShellMessageAction {
|
|
432
996
|
id: string;
|
|
433
997
|
label: string;
|
|
434
998
|
kind?: 'edit' | 'resend' | 'copy' | 'custom' | string;
|
|
999
|
+
icon?: string | null;
|
|
1000
|
+
ariaLabel?: string | null;
|
|
1001
|
+
iconOnly?: boolean;
|
|
435
1002
|
disabled?: boolean;
|
|
436
1003
|
}
|
|
1004
|
+
type PraxisAssistantShellActionTone = 'primary' | 'secondary' | 'governance' | 'success' | 'warning' | 'danger' | 'neutral' | string;
|
|
1005
|
+
interface PraxisAssistantShellAction {
|
|
1006
|
+
id: string;
|
|
1007
|
+
label: string;
|
|
1008
|
+
kind?: 'submit-prompt' | 'apply' | 'retry' | 'cancel' | 'simulate' | 'review' | 'publish' | 'materialize' | 'correct' | 'custom' | string;
|
|
1009
|
+
icon?: string | null;
|
|
1010
|
+
tone?: PraxisAssistantShellActionTone | null;
|
|
1011
|
+
disabled?: boolean;
|
|
1012
|
+
requiresPrompt?: boolean;
|
|
1013
|
+
testId?: string | null;
|
|
1014
|
+
ariaLabel?: string | null;
|
|
1015
|
+
iconOnly?: boolean;
|
|
1016
|
+
}
|
|
437
1017
|
interface PraxisAssistantShellContextItem {
|
|
438
1018
|
id: string;
|
|
439
1019
|
label: string;
|
|
@@ -459,6 +1039,13 @@ interface PraxisAssistantShellLayout {
|
|
|
459
1039
|
width: number;
|
|
460
1040
|
height: number;
|
|
461
1041
|
}
|
|
1042
|
+
interface PraxisAssistantViewportLayoutOptions {
|
|
1043
|
+
width?: number;
|
|
1044
|
+
height?: number;
|
|
1045
|
+
top?: number;
|
|
1046
|
+
margin?: number;
|
|
1047
|
+
}
|
|
1048
|
+
declare function createPraxisAssistantViewportLayout(options?: PraxisAssistantViewportLayoutOptions): PraxisAssistantShellLayout;
|
|
462
1049
|
interface PraxisAssistantShellLabels {
|
|
463
1050
|
title: string;
|
|
464
1051
|
subtitle?: string;
|
|
@@ -470,14 +1057,30 @@ interface PraxisAssistantShellLabels {
|
|
|
470
1057
|
apply: string;
|
|
471
1058
|
conversationAria: string;
|
|
472
1059
|
quickRepliesAria: string;
|
|
1060
|
+
quickReplyDetails?: string;
|
|
1061
|
+
recommendedIntentsAria: string;
|
|
1062
|
+
recommendedIntentsTitle: string;
|
|
1063
|
+
recommendedIntentCta: string;
|
|
1064
|
+
recommendedIntentGuidanceCta: string;
|
|
1065
|
+
recommendedIntentRequiresConfirmation: string;
|
|
473
1066
|
dragHandleAria: string;
|
|
474
1067
|
resizeHandleAria: string;
|
|
1068
|
+
resetLayout?: string;
|
|
475
1069
|
contextAria: string;
|
|
476
1070
|
attachmentsAria: string;
|
|
477
1071
|
attach: string;
|
|
478
1072
|
removeAttachment: string;
|
|
479
1073
|
editMessage: string;
|
|
480
1074
|
resendMessage: string;
|
|
1075
|
+
feedbackPositive: string;
|
|
1076
|
+
feedbackNegative: string;
|
|
1077
|
+
feedbackSubmitted: string;
|
|
1078
|
+
voiceStart?: string;
|
|
1079
|
+
voiceStop?: string;
|
|
1080
|
+
voiceListening?: string;
|
|
1081
|
+
voiceUnsupported?: string;
|
|
1082
|
+
voicePermissionDenied?: string;
|
|
1083
|
+
voiceNoSpeech?: string;
|
|
481
1084
|
modeConfig: string;
|
|
482
1085
|
modeAgenticAuthoring: string;
|
|
483
1086
|
modeChat: string;
|
|
@@ -501,7 +1104,11 @@ interface PraxisAssistantClarificationOption {
|
|
|
501
1104
|
label: string;
|
|
502
1105
|
value: string;
|
|
503
1106
|
description?: string;
|
|
1107
|
+
displayPrompt?: string;
|
|
1108
|
+
example?: string;
|
|
504
1109
|
contextHints?: Record<string, unknown>;
|
|
1110
|
+
canonicalAction?: Record<string, unknown>;
|
|
1111
|
+
semanticDecision?: Record<string, unknown>;
|
|
505
1112
|
}
|
|
506
1113
|
interface PraxisAssistantClarificationQuestion {
|
|
507
1114
|
id: string;
|
|
@@ -516,6 +1123,7 @@ interface PraxisAssistantTurnAction {
|
|
|
516
1123
|
kind: 'submit' | 'clarify' | 'apply' | 'cancel' | 'retry' | 'edit-message' | 'resend-message' | 'attach' | 'remove-attachment' | string;
|
|
517
1124
|
id?: string;
|
|
518
1125
|
value?: unknown;
|
|
1126
|
+
displayPrompt?: string;
|
|
519
1127
|
contextHints?: Record<string, unknown>;
|
|
520
1128
|
}
|
|
521
1129
|
interface PraxisAssistantPendingClarification {
|
|
@@ -524,7 +1132,15 @@ interface PraxisAssistantPendingClarification {
|
|
|
524
1132
|
assistantMessage?: string;
|
|
525
1133
|
clientTurnId?: string;
|
|
526
1134
|
diagnostics?: Record<string, unknown>;
|
|
1135
|
+
observationId?: string | null;
|
|
527
1136
|
}
|
|
1137
|
+
type PraxisAssistantConversationMessageRole = 'user' | 'assistant' | 'system';
|
|
1138
|
+
interface PraxisAssistantConversationMessage {
|
|
1139
|
+
id: string;
|
|
1140
|
+
role: PraxisAssistantConversationMessageRole;
|
|
1141
|
+
text: string;
|
|
1142
|
+
}
|
|
1143
|
+
declare function toPraxisAssistantConversationMessages(messages: readonly PraxisAssistantShellMessage[], limit?: number): PraxisAssistantConversationMessage[];
|
|
528
1144
|
interface PraxisAssistantTurnRequest {
|
|
529
1145
|
mode: PraxisAssistantShellMode;
|
|
530
1146
|
phase?: PraxisAssistantTurnPhase;
|
|
@@ -545,6 +1161,8 @@ interface PraxisAssistantTurnRequest {
|
|
|
545
1161
|
preview?: unknown;
|
|
546
1162
|
pendingPatch?: unknown;
|
|
547
1163
|
pendingClarification?: PraxisAssistantPendingClarification;
|
|
1164
|
+
diagnostics?: Record<string, unknown>;
|
|
1165
|
+
observationId?: string | null;
|
|
548
1166
|
}
|
|
549
1167
|
interface PraxisAssistantTurnResult {
|
|
550
1168
|
state: PraxisAssistantShellState;
|
|
@@ -564,6 +1182,7 @@ interface PraxisAssistantTurnResult {
|
|
|
564
1182
|
sessionId?: string;
|
|
565
1183
|
clientTurnId?: string;
|
|
566
1184
|
diagnostics?: Record<string, unknown>;
|
|
1185
|
+
observationId?: string | null;
|
|
567
1186
|
}
|
|
568
1187
|
interface PraxisAssistantTurnViewState {
|
|
569
1188
|
mode: PraxisAssistantShellMode;
|
|
@@ -583,6 +1202,7 @@ interface PraxisAssistantTurnViewState {
|
|
|
583
1202
|
pendingPatch?: unknown;
|
|
584
1203
|
pendingClarification?: PraxisAssistantPendingClarification;
|
|
585
1204
|
diagnostics?: Record<string, unknown>;
|
|
1205
|
+
observationId?: string | null;
|
|
586
1206
|
}
|
|
587
1207
|
interface PraxisAssistantTurnFlow {
|
|
588
1208
|
readonly mode: PraxisAssistantShellMode;
|
|
@@ -617,6 +1237,31 @@ interface AiResponseCompileResult {
|
|
|
617
1237
|
message?: string;
|
|
618
1238
|
warnings?: string[];
|
|
619
1239
|
}
|
|
1240
|
+
type AiAuthoringResponseModeKind = 'consult' | 'edit' | string;
|
|
1241
|
+
interface AiAuthoringResponseMode {
|
|
1242
|
+
kind: AiAuthoringResponseModeKind;
|
|
1243
|
+
operationKind?: 'consult' | 'author' | 'edit' | string;
|
|
1244
|
+
changeKind?: 'answer' | string;
|
|
1245
|
+
preferredResponse?: string;
|
|
1246
|
+
useWhen?: string[];
|
|
1247
|
+
rules?: string[];
|
|
1248
|
+
}
|
|
1249
|
+
interface AiConsultativeAuthoringContext {
|
|
1250
|
+
[key: string]: unknown;
|
|
1251
|
+
resourcePath?: string | null;
|
|
1252
|
+
answerableQuestionKinds?: string[];
|
|
1253
|
+
}
|
|
1254
|
+
interface AiComponentAuthoringContract {
|
|
1255
|
+
[key: string]: unknown;
|
|
1256
|
+
kind: 'praxis.component-authoring-context' | string;
|
|
1257
|
+
componentId?: string;
|
|
1258
|
+
componentType?: string;
|
|
1259
|
+
preferredResponse?: string;
|
|
1260
|
+
responseModes?: AiAuthoringResponseMode[];
|
|
1261
|
+
consultativeContext?: AiConsultativeAuthoringContext;
|
|
1262
|
+
}
|
|
1263
|
+
declare function createComponentAuthoringContext(authoringContract: AiComponentAuthoringContract): AiJsonObject;
|
|
1264
|
+
declare function toAiJsonObject(value: unknown, path?: string): AiJsonObject;
|
|
620
1265
|
/**
|
|
621
1266
|
* Contrato fundamental para qualquer componente que suporte configuração via IA.
|
|
622
1267
|
* O Agente de IA usa esta interface para Ler (Introspecção) e Escrever (Patching) no componente.
|
|
@@ -669,6 +1314,12 @@ interface AiConfigAdapter<TConfig = any> {
|
|
|
669
1314
|
* Usado para sugestões heurísticas mais precisas no backend.
|
|
670
1315
|
*/
|
|
671
1316
|
getSchemaFields?(): Record<string, any>[];
|
|
1317
|
+
/**
|
|
1318
|
+
* Prepara contexto assíncrono necessário antes de montar snapshots para IA.
|
|
1319
|
+
* Ex.: uma tabela pode carregar o schema canônico de filtros antes de expor
|
|
1320
|
+
* o contrato de authoring ao backend.
|
|
1321
|
+
*/
|
|
1322
|
+
prepareAuthoringContext?(): Promise<void> | void;
|
|
672
1323
|
/**
|
|
673
1324
|
* Retorna contexto declarativo adicional para authoring assistido por IA.
|
|
674
1325
|
* Deve conter contratos validaveis e instrucoes especificas do componente
|
|
@@ -734,6 +1385,17 @@ declare abstract class BaseAiAdapter<TConfig = any> implements AiConfigAdapter<T
|
|
|
734
1385
|
protected getCriticalWarnings(patch: any): string[];
|
|
735
1386
|
}
|
|
736
1387
|
|
|
1388
|
+
interface AiGovernedDecisionRoutingOptions {
|
|
1389
|
+
localCompositionTerms?: readonly string[];
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* @deprecated Component assistants must not infer governed authoring from user
|
|
1393
|
+
* wording. Route through the backend semantic resolver and use this only for
|
|
1394
|
+
* explicit, structured context provided by a canonical backend source.
|
|
1395
|
+
*/
|
|
1396
|
+
declare function shouldRoutePromptToGovernedDecision(prompt: string, contextHints?: AiJsonObject, options?: AiGovernedDecisionRoutingOptions): boolean;
|
|
1397
|
+
declare function normalizeAuthoringPrompt(prompt: string): string;
|
|
1398
|
+
|
|
737
1399
|
interface FieldSchemaLike {
|
|
738
1400
|
label: string;
|
|
739
1401
|
type: string;
|
|
@@ -784,8 +1446,6 @@ declare class PraxisAiService {
|
|
|
784
1446
|
generateContentStream(prompt: string, modelName?: string): Observable<string>;
|
|
785
1447
|
generateJson<T>(prompt: string, modelName?: string, schema?: any): Observable<T | null>;
|
|
786
1448
|
isMockMode(): boolean;
|
|
787
|
-
private extractUserIntent;
|
|
788
|
-
private getMockPatch;
|
|
789
1449
|
listModels(apiKey?: string): Observable<AiModel[]>;
|
|
790
1450
|
testConnection(apiKey?: string, model?: string): Observable<boolean>;
|
|
791
1451
|
private resolveProvider;
|
|
@@ -795,7 +1455,7 @@ declare class PraxisAiService {
|
|
|
795
1455
|
}
|
|
796
1456
|
|
|
797
1457
|
declare const AI_INTENT_CONTRACT_VERSION: "v1.1";
|
|
798
|
-
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "
|
|
1458
|
+
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "41767dafdf6ebea802c083d77187ad6612937d6831188938dc21adce384b57a2";
|
|
799
1459
|
type AiSchemaContext = AiSchemaContextContract;
|
|
800
1460
|
interface AiSuggestionsRequest {
|
|
801
1461
|
componentId: string;
|
|
@@ -828,10 +1488,38 @@ type AiPatchStreamEventType = AiPatchStreamEventType$1;
|
|
|
828
1488
|
type AiPatchStreamStartResponse = AiPatchStreamStartResponseContract;
|
|
829
1489
|
type AiPatchStreamCancelResponse = AiPatchStreamCancelResponseContract;
|
|
830
1490
|
type AiPatchStreamEnvelope<TPayload extends AiJsonObject = AiJsonObject> = AiPatchStreamEnvelopeContract<TPayload>;
|
|
1491
|
+
type AgenticAuthoringManifestEditPlanRequest = AgenticAuthoringManifestEditPlanRequestContract;
|
|
1492
|
+
type AgenticAuthoringResolveTargetRequest = AgenticAuthoringResolveTargetRequestContract;
|
|
1493
|
+
type AgenticAuthoringResolvedTarget = AgenticAuthoringResolvedTargetContract;
|
|
1494
|
+
type AgenticAuthoringManifestValidationResult = AgenticAuthoringManifestValidationResultContract;
|
|
1495
|
+
type AgenticAuthoringManifestCompileResult = AgenticAuthoringManifestCompileResultContract;
|
|
1496
|
+
type AgenticAuthoringTurnStreamRequest = AgenticAuthoringTurnStreamRequestContract;
|
|
1497
|
+
type AgenticAuthoringTurnStreamStartResponse = AgenticAuthoringTurnStreamStartResponseContract;
|
|
1498
|
+
type AgenticAuthoringTurnStreamEnvelope<TPayload extends AiJsonObject = AiJsonObject> = AgenticAuthoringTurnStreamEnvelopeContract<TPayload>;
|
|
831
1499
|
interface AiPatchStreamConnection {
|
|
832
1500
|
events$: Observable<AiPatchStreamEnvelope>;
|
|
833
1501
|
close: () => void;
|
|
834
1502
|
}
|
|
1503
|
+
interface AgenticAuthoringTurnStreamConnection {
|
|
1504
|
+
events$: Observable<AgenticAuthoringTurnStreamEnvelope>;
|
|
1505
|
+
close: () => void;
|
|
1506
|
+
}
|
|
1507
|
+
interface AgenticAuthoringTurnStreamLifecycle {
|
|
1508
|
+
phase: string;
|
|
1509
|
+
transport?: 'event-source' | 'fetch' | string;
|
|
1510
|
+
connectElapsedMs?: number;
|
|
1511
|
+
probeStatus?: number | null;
|
|
1512
|
+
firstEventSeq?: number | null;
|
|
1513
|
+
firstEventType?: string | null;
|
|
1514
|
+
}
|
|
1515
|
+
interface AgenticAuthoringTurnStreamConnectionOptions {
|
|
1516
|
+
baseUrl?: string;
|
|
1517
|
+
onLifecycle?: (event: AgenticAuthoringTurnStreamLifecycle) => void;
|
|
1518
|
+
}
|
|
1519
|
+
interface AgenticAuthoringTurnStreamStartOptions {
|
|
1520
|
+
baseUrl?: string;
|
|
1521
|
+
headers?: Record<string, string | undefined>;
|
|
1522
|
+
}
|
|
835
1523
|
type AiPatchStreamConnectionErrorKind = 'unsupported' | 'http_status' | 'transport' | 'parse' | 'schema';
|
|
836
1524
|
declare class AiPatchStreamConnectionError extends Error {
|
|
837
1525
|
readonly kind: AiPatchStreamConnectionErrorKind;
|
|
@@ -882,6 +1570,9 @@ interface AiProviderStatusResponse {
|
|
|
882
1570
|
success?: boolean;
|
|
883
1571
|
message?: string;
|
|
884
1572
|
}
|
|
1573
|
+
type AiAssistantObservationFeedbackRatingValue = AiAssistantObservationFeedbackRating;
|
|
1574
|
+
type AiAssistantObservationFeedbackRequest = AiAssistantObservationFeedbackRequestContract;
|
|
1575
|
+
type AiAssistantObservationFeedbackResponse = AiAssistantObservationFeedbackResponseContract;
|
|
885
1576
|
interface AiContextTemplateMeta {
|
|
886
1577
|
variants?: Array<{
|
|
887
1578
|
id?: string;
|
|
@@ -924,39 +1615,132 @@ interface AiBackendStorageOptions {
|
|
|
924
1615
|
defaultHeaders?: Record<string, string>;
|
|
925
1616
|
allowLocalIdentityFallback?: boolean;
|
|
926
1617
|
}
|
|
1618
|
+
interface AiBackendEndpoints {
|
|
1619
|
+
/**
|
|
1620
|
+
* Explicit base URL for `/praxis/config/ai/**`.
|
|
1621
|
+
* Hosts should normally prefer the shared `API_URL.default.baseUrl`; use this
|
|
1622
|
+
* only when AI orchestration is served by a distinct gateway.
|
|
1623
|
+
*/
|
|
1624
|
+
aiBaseUrl?: string;
|
|
1625
|
+
/**
|
|
1626
|
+
* Explicit base URL for `/praxis/config/ai-context/**`.
|
|
1627
|
+
* When omitted, the service derives it from `API_URL.default.baseUrl`.
|
|
1628
|
+
*/
|
|
1629
|
+
aiContextBaseUrl?: string;
|
|
1630
|
+
}
|
|
927
1631
|
declare const AI_BACKEND_CONFIG_STORE: InjectionToken<AiBackendConfigStore>;
|
|
928
1632
|
declare const AI_BACKEND_STORAGE_OPTIONS: InjectionToken<AiBackendStorageOptions>;
|
|
1633
|
+
declare const AI_BACKEND_ENDPOINTS: InjectionToken<AiBackendEndpoints>;
|
|
929
1634
|
declare class AiBackendApiService {
|
|
930
1635
|
private readonly http;
|
|
931
1636
|
private readonly globalConfigStore;
|
|
932
1637
|
private readonly storageOpts;
|
|
933
|
-
private readonly
|
|
934
|
-
private readonly
|
|
1638
|
+
private readonly endpointOpts;
|
|
1639
|
+
private readonly apiUrlConfig;
|
|
1640
|
+
private readonly fallbackAiBaseUrl;
|
|
1641
|
+
private readonly fallbackAiContextBaseUrl;
|
|
935
1642
|
getSuggestions(request: AiSuggestionsRequest): Observable<AiSuggestionsResponse>;
|
|
936
1643
|
getPatch(request: AiOrchestratorRequest): Observable<AiOrchestratorResponse>;
|
|
937
1644
|
startPatchStream(request: AiOrchestratorRequest): Observable<AiPatchStreamStartResponse>;
|
|
938
1645
|
connectPatchStream(streamId: string, lastEventId?: string, accessToken?: string): AiPatchStreamConnection;
|
|
939
1646
|
cancelPatchStream(streamId: string, accessToken?: string): Observable<AiPatchStreamCancelResponse>;
|
|
1647
|
+
startAgenticAuthoringTurnStream(request: AgenticAuthoringTurnStreamRequest, options?: AgenticAuthoringTurnStreamStartOptions): Observable<AgenticAuthoringTurnStreamStartResponse>;
|
|
1648
|
+
connectAgenticAuthoringTurnStream(streamId: string, lastEventId?: string, accessToken?: string, options?: AgenticAuthoringTurnStreamConnectionOptions): AgenticAuthoringTurnStreamConnection;
|
|
1649
|
+
cancelAgenticAuthoringTurnStream(streamId: string, accessToken?: string): Observable<AiPatchStreamCancelResponse>;
|
|
1650
|
+
sendAssistantObservationFeedback(observationId: string, request: AiAssistantObservationFeedbackRequest): Observable<AiAssistantObservationFeedbackResponse>;
|
|
940
1651
|
listModels(request: AiProviderModelsRequest): Observable<AiProviderModelsResponse>;
|
|
941
1652
|
listProviderCatalog(): Observable<AiProviderCatalogResponse>;
|
|
942
1653
|
testProvider(request: AiProviderTestRequest): Observable<AiProviderTestResponse>;
|
|
943
1654
|
getAiStatus(): Observable<AiProviderStatusResponse>;
|
|
944
1655
|
getAiContext(componentId: string, componentType: string): Observable<AiContextDTO>;
|
|
1656
|
+
getAgenticAuthoringManifest(componentId: string): Observable<AiJsonObject>;
|
|
1657
|
+
listAgenticAuthoringManifestTargets(componentId: string): Observable<AiJsonObject[]>;
|
|
1658
|
+
listAgenticAuthoringManifestOperations(componentId: string): Observable<AiJsonObject[]>;
|
|
1659
|
+
resolveAgenticAuthoringManifestTarget(componentId: string, request: AgenticAuthoringResolveTargetRequest): Observable<AgenticAuthoringResolvedTarget>;
|
|
1660
|
+
validateAgenticAuthoringManifestPlan(componentId: string, request: AgenticAuthoringManifestEditPlanRequest): Observable<AgenticAuthoringManifestValidationResult>;
|
|
1661
|
+
compileAgenticAuthoringManifestPatch(componentId: string, request: AgenticAuthoringManifestEditPlanRequest): Observable<AgenticAuthoringManifestCompileResult>;
|
|
945
1662
|
loadGlobalAiConfig(): Observable<AiGlobalConfigSnapshot | null>;
|
|
946
1663
|
saveGlobalAiConfig(aiConfig: AiGlobalConfigSnapshot): Observable<void>;
|
|
947
1664
|
getHeaderContext(): AiHeaderContext;
|
|
948
1665
|
private buildHeaders;
|
|
949
1666
|
private normalizeContractVersion;
|
|
950
1667
|
private normalizeContractSchemaHash;
|
|
1668
|
+
private normalizeLegacyPatchConversationIds;
|
|
1669
|
+
private normalizeConversationUuid;
|
|
1670
|
+
private isUuid;
|
|
1671
|
+
private authoringManifestUrl;
|
|
1672
|
+
private aiBaseUrl;
|
|
1673
|
+
private aiContextBaseUrl;
|
|
1674
|
+
private resolveBaseUrl;
|
|
1675
|
+
private resolveApiBaseUrl;
|
|
1676
|
+
private joinUrl;
|
|
1677
|
+
private normalizeBaseUrl;
|
|
1678
|
+
private buildApiUrl;
|
|
951
1679
|
private resolveHeaderMap;
|
|
952
1680
|
private parsePatchStreamEnvelope;
|
|
953
1681
|
private isPatchStreamEnvelope;
|
|
954
1682
|
private isJsonObject;
|
|
1683
|
+
private registerNamedStreamEventListeners;
|
|
1684
|
+
private isTerminalStreamEventType;
|
|
1685
|
+
private agenticAuthoringBaseUrl;
|
|
1686
|
+
private consumeFetchAgenticTurnStream;
|
|
1687
|
+
private consumeBufferedSseFrames;
|
|
1688
|
+
private findSseFrameBoundary;
|
|
955
1689
|
private probePatchStreamEndpoint;
|
|
956
1690
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiBackendApiService, never>;
|
|
957
1691
|
static ɵprov: i0.ɵɵInjectableDeclaration<AiBackendApiService>;
|
|
958
1692
|
}
|
|
959
1693
|
|
|
1694
|
+
interface AgenticAuthoringTurnClientOptions {
|
|
1695
|
+
readonly baseUrl?: string;
|
|
1696
|
+
readonly headers?: Record<string, string | undefined>;
|
|
1697
|
+
readonly initialStatusText?: string;
|
|
1698
|
+
readonly silenceStatusMs?: number;
|
|
1699
|
+
readonly resultTimeoutMs?: number;
|
|
1700
|
+
readonly streamTimeoutMs?: number;
|
|
1701
|
+
}
|
|
1702
|
+
interface AgenticAuthoringTurnStreamStartedEvent {
|
|
1703
|
+
readonly kind: 'stream-started';
|
|
1704
|
+
readonly start: AgenticAuthoringTurnStreamStartResponseContract;
|
|
1705
|
+
}
|
|
1706
|
+
interface AgenticAuthoringTurnStreamEnvelopeEvent {
|
|
1707
|
+
readonly kind: 'stream-event';
|
|
1708
|
+
readonly event: AgenticAuthoringTurnStreamEnvelopeContract;
|
|
1709
|
+
}
|
|
1710
|
+
interface AgenticAuthoringTurnLifecycleEvent {
|
|
1711
|
+
readonly kind: 'stream-lifecycle';
|
|
1712
|
+
readonly start: AgenticAuthoringTurnStreamStartResponseContract;
|
|
1713
|
+
readonly phase: string;
|
|
1714
|
+
readonly statusText: string;
|
|
1715
|
+
readonly diagnostics?: AiJsonObject;
|
|
1716
|
+
}
|
|
1717
|
+
type AgenticAuthoringTurnClientEvent = AgenticAuthoringTurnStreamStartedEvent | AgenticAuthoringTurnLifecycleEvent | AgenticAuthoringTurnStreamEnvelopeEvent;
|
|
1718
|
+
declare class AgenticAuthoringTurnClientService {
|
|
1719
|
+
private readonly aiApi;
|
|
1720
|
+
streamEvents(request: AgenticAuthoringTurnStreamRequestContract, options?: AgenticAuthoringTurnClientOptions): Observable<AgenticAuthoringTurnClientEvent>;
|
|
1721
|
+
streamTurn(request: AgenticAuthoringTurnStreamRequestContract, options?: AgenticAuthoringTurnClientOptions): Observable<PraxisAssistantTurnResult>;
|
|
1722
|
+
toTurnResult(event: AgenticAuthoringTurnStreamEnvelopeContract): PraxisAssistantTurnResult;
|
|
1723
|
+
private toResultTurn;
|
|
1724
|
+
private toShellQuickReplies;
|
|
1725
|
+
private toPendingClarification;
|
|
1726
|
+
private phaseForPayload;
|
|
1727
|
+
private statusForPayload;
|
|
1728
|
+
private resultDiagnostics;
|
|
1729
|
+
private toLifecycleEvent;
|
|
1730
|
+
private silenceStatusEvent;
|
|
1731
|
+
private resultTimeoutEvent;
|
|
1732
|
+
private streamTimeoutEvent;
|
|
1733
|
+
private isTerminalEventType;
|
|
1734
|
+
private toQuickReplies;
|
|
1735
|
+
private isQuickReply;
|
|
1736
|
+
private toPendingClarificationContract;
|
|
1737
|
+
private readString;
|
|
1738
|
+
private toJsonObject;
|
|
1739
|
+
private isRecord;
|
|
1740
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgenticAuthoringTurnClientService, never>;
|
|
1741
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AgenticAuthoringTurnClientService>;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
960
1744
|
interface ValidationContext {
|
|
961
1745
|
fieldSchemas: Record<string, FieldSchemaLike>;
|
|
962
1746
|
targetSchemas?: any;
|
|
@@ -973,6 +1757,7 @@ declare class AiResponseValidatorService {
|
|
|
973
1757
|
private validateJsonLogicExpression;
|
|
974
1758
|
private walkJsonLogicNode;
|
|
975
1759
|
private isSupportedJsonLogicOperator;
|
|
1760
|
+
private validateJsonLogicOperatorArity;
|
|
976
1761
|
private collectVarPaths;
|
|
977
1762
|
private isValidTargetId;
|
|
978
1763
|
private findSimilarTargetId;
|
|
@@ -1005,8 +1790,10 @@ declare class PraxisAssistantTurnController {
|
|
|
1005
1790
|
private readonly options;
|
|
1006
1791
|
private readonly stateSubject;
|
|
1007
1792
|
readonly state$: Observable<PraxisAssistantTurnViewState>;
|
|
1793
|
+
private activeFlowClientTurnId;
|
|
1008
1794
|
constructor(flow: PraxisAssistantTurnFlow, options: PraxisAssistantTurnControllerOptions);
|
|
1009
1795
|
snapshot(): PraxisAssistantTurnViewState;
|
|
1796
|
+
setContextHints(hints: Record<string, unknown> | undefined): void;
|
|
1010
1797
|
setContextItems(items: readonly PraxisAssistantShellContextItem[]): void;
|
|
1011
1798
|
setMessages(messages: readonly PraxisAssistantShellMessage[]): void;
|
|
1012
1799
|
setAttachments(attachments: readonly PraxisAssistantShellAttachment[]): void;
|
|
@@ -1017,6 +1804,7 @@ declare class PraxisAssistantTurnController {
|
|
|
1017
1804
|
submitEditedMessage(messageId: string, text: string): Observable<PraxisAssistantTurnViewState>;
|
|
1018
1805
|
submitPrompt(prompt: string, action?: PraxisAssistantTurnAction): Observable<PraxisAssistantTurnViewState>;
|
|
1019
1806
|
answerClarification(option: PraxisAssistantClarificationOption | string): Observable<PraxisAssistantTurnViewState>;
|
|
1807
|
+
private semanticClarificationContextHints;
|
|
1020
1808
|
apply(): Observable<PraxisAssistantTurnViewState>;
|
|
1021
1809
|
retry(): Observable<PraxisAssistantTurnViewState>;
|
|
1022
1810
|
cancel(): Observable<PraxisAssistantTurnViewState>;
|
|
@@ -1025,6 +1813,10 @@ declare class PraxisAssistantTurnController {
|
|
|
1025
1813
|
private submitExistingUserMessage;
|
|
1026
1814
|
private findUserMessageIndex;
|
|
1027
1815
|
private resetReplayState;
|
|
1816
|
+
private resetActiveTurnState;
|
|
1817
|
+
private shouldApplyFlowResult;
|
|
1818
|
+
private resetConversationState;
|
|
1819
|
+
private resetConversationAfterCancel;
|
|
1028
1820
|
private applyResult;
|
|
1029
1821
|
private resolveSubmitAction;
|
|
1030
1822
|
private buildPendingClarification;
|
|
@@ -1032,10 +1824,85 @@ declare class PraxisAssistantTurnController {
|
|
|
1032
1824
|
private resolveMessageRole;
|
|
1033
1825
|
private resolvePhase;
|
|
1034
1826
|
private buildMessage;
|
|
1827
|
+
private shouldAttachObservationId;
|
|
1035
1828
|
private createId;
|
|
1036
1829
|
private patchState;
|
|
1037
1830
|
private cloneState;
|
|
1038
1831
|
private toObservable;
|
|
1832
|
+
private buildFlowErrorResult;
|
|
1833
|
+
private describeFlowError;
|
|
1834
|
+
private serializeFlowError;
|
|
1835
|
+
private toRecord;
|
|
1836
|
+
private toString;
|
|
1837
|
+
private toNumber;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
declare function toPraxisAssistantClarificationOption(reply: PraxisAssistantShellQuickReply): PraxisAssistantClarificationOption;
|
|
1841
|
+
declare function submitPraxisAssistantQuickReply(controller: PraxisAssistantTurnController, reply: PraxisAssistantShellQuickReply): Observable<PraxisAssistantTurnViewState>;
|
|
1842
|
+
|
|
1843
|
+
type PraxisAssistantSessionVisibility = 'active' | 'minimized';
|
|
1844
|
+
type PraxisAssistantSessionPresence = 'global-dock' | 'origin-anchor';
|
|
1845
|
+
interface PraxisAssistantSessionDescriptor {
|
|
1846
|
+
id: string;
|
|
1847
|
+
ownerId: string;
|
|
1848
|
+
ownerType: string;
|
|
1849
|
+
title: string;
|
|
1850
|
+
summary?: string | null;
|
|
1851
|
+
mode?: PraxisAssistantShellMode | null;
|
|
1852
|
+
state?: PraxisAssistantShellState | null;
|
|
1853
|
+
visibility?: PraxisAssistantSessionVisibility | null;
|
|
1854
|
+
contextItems?: readonly PraxisAssistantShellContextItem[] | null;
|
|
1855
|
+
contextSnapshot?: PraxisAssistantContextSnapshot | null;
|
|
1856
|
+
badge?: string | null;
|
|
1857
|
+
icon?: string | null;
|
|
1858
|
+
presence?: PraxisAssistantSessionPresence | null;
|
|
1859
|
+
updatedAt?: string | null;
|
|
1860
|
+
}
|
|
1861
|
+
interface PraxisAssistantSessionSnapshot {
|
|
1862
|
+
id: string;
|
|
1863
|
+
ownerId: string;
|
|
1864
|
+
ownerType: string;
|
|
1865
|
+
title: string;
|
|
1866
|
+
summary: string;
|
|
1867
|
+
mode: PraxisAssistantShellMode;
|
|
1868
|
+
state: PraxisAssistantShellState;
|
|
1869
|
+
visibility: PraxisAssistantSessionVisibility;
|
|
1870
|
+
contextItems: readonly PraxisAssistantShellContextItem[];
|
|
1871
|
+
contextSnapshot: PraxisAssistantContextSnapshot | null;
|
|
1872
|
+
badge: string;
|
|
1873
|
+
icon: string;
|
|
1874
|
+
presence: PraxisAssistantSessionPresence;
|
|
1875
|
+
createdAt: string;
|
|
1876
|
+
updatedAt: string;
|
|
1877
|
+
}
|
|
1878
|
+
type PraxisAssistantSessionIdentityRef = string | PraxisAssistantIdentity | PraxisAssistantContextSnapshot;
|
|
1879
|
+
type PraxisAssistantContextSessionDescriptor = Omit<PraxisAssistantSessionDescriptor, 'id' | 'ownerId' | 'ownerType' | 'title' | 'contextSnapshot'> & {
|
|
1880
|
+
title?: string;
|
|
1881
|
+
};
|
|
1882
|
+
declare class PraxisAssistantSessionRegistryService {
|
|
1883
|
+
private readonly sessionsState;
|
|
1884
|
+
readonly sessions: i0.Signal<PraxisAssistantSessionSnapshot[]>;
|
|
1885
|
+
readonly activeSession: i0.Signal<PraxisAssistantSessionSnapshot | null>;
|
|
1886
|
+
readonly minimizedSessions: i0.Signal<PraxisAssistantSessionSnapshot[]>;
|
|
1887
|
+
upsertSession(descriptor: PraxisAssistantSessionDescriptor): PraxisAssistantSessionSnapshot;
|
|
1888
|
+
upsertContextSession(contextSnapshot: PraxisAssistantContextSnapshot, descriptor?: PraxisAssistantContextSessionDescriptor): PraxisAssistantSessionSnapshot;
|
|
1889
|
+
openSession(sessionId: string): PraxisAssistantSessionSnapshot | null;
|
|
1890
|
+
openContextSession(identity: PraxisAssistantSessionIdentityRef): PraxisAssistantSessionSnapshot | null;
|
|
1891
|
+
minimizeSession(sessionId: string): PraxisAssistantSessionSnapshot | null;
|
|
1892
|
+
minimizeContextSession(identity: PraxisAssistantSessionIdentityRef): PraxisAssistantSessionSnapshot | null;
|
|
1893
|
+
removeSession(sessionId: string): void;
|
|
1894
|
+
removeContextSession(identity: PraxisAssistantSessionIdentityRef): void;
|
|
1895
|
+
getSession(sessionId: string): PraxisAssistantSessionSnapshot | null;
|
|
1896
|
+
getContextSession(identity: PraxisAssistantSessionIdentityRef): PraxisAssistantSessionSnapshot | null;
|
|
1897
|
+
clear(): void;
|
|
1898
|
+
private setVisibility;
|
|
1899
|
+
private resolveSessionId;
|
|
1900
|
+
private normalizeDescriptor;
|
|
1901
|
+
private assertContextIdentity;
|
|
1902
|
+
private toShellContextItems;
|
|
1903
|
+
private sortSessions;
|
|
1904
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAssistantSessionRegistryService, never>;
|
|
1905
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PraxisAssistantSessionRegistryService>;
|
|
1039
1906
|
}
|
|
1040
1907
|
|
|
1041
1908
|
type AssistantMessageRole = 'user' | 'assistant' | 'system';
|
|
@@ -1077,7 +1944,7 @@ interface ClarificationOption {
|
|
|
1077
1944
|
value: string;
|
|
1078
1945
|
example?: string;
|
|
1079
1946
|
}
|
|
1080
|
-
type ClarificationContextHints =
|
|
1947
|
+
type ClarificationContextHints = AiContextHintsContract;
|
|
1081
1948
|
interface ClarificationRichOption extends ClarificationOption {
|
|
1082
1949
|
contextHints?: ClarificationContextHints;
|
|
1083
1950
|
}
|
|
@@ -1092,6 +1959,7 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
1092
1959
|
adapter: AiConfigAdapter;
|
|
1093
1960
|
riskPolicy: RiskPolicy | null;
|
|
1094
1961
|
allowManualPatchEdit: boolean;
|
|
1962
|
+
hasBackdrop: boolean;
|
|
1095
1963
|
readonly overlayPositions: ConnectedPosition[];
|
|
1096
1964
|
overlayOrigin: CdkOverlayOrigin;
|
|
1097
1965
|
triggerButton?: ElementRef<HTMLButtonElement>;
|
|
@@ -1411,6 +2279,7 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
1411
2279
|
private hasBadgeColors;
|
|
1412
2280
|
private hasBadgeField;
|
|
1413
2281
|
private mergeContextHints;
|
|
2282
|
+
private enrichDomainCatalogAuthoringHints;
|
|
1414
2283
|
private setResourcePathHint;
|
|
1415
2284
|
private clearResourcePathHint;
|
|
1416
2285
|
private matchClarificationOptionPath;
|
|
@@ -1463,9 +2332,19 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
1463
2332
|
private restoreFocusToTrigger;
|
|
1464
2333
|
private normalizeError;
|
|
1465
2334
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiAssistantComponent, never>;
|
|
1466
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantComponent, "praxis-ai-assistant", never, { "adapter": { "alias": "adapter"; "required": true; }; "riskPolicy": { "alias": "riskPolicy"; "required": false; }; "allowManualPatchEdit": { "alias": "allowManualPatchEdit"; "required": false; }; }, {}, never, never, true, never>;
|
|
2335
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantComponent, "praxis-ai-assistant", never, { "adapter": { "alias": "adapter"; "required": true; }; "riskPolicy": { "alias": "riskPolicy"; "required": false; }; "allowManualPatchEdit": { "alias": "allowManualPatchEdit"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; }, {}, never, never, true, never>;
|
|
1467
2336
|
}
|
|
1468
2337
|
|
|
2338
|
+
type ResizeDirection = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
|
|
2339
|
+
type QuickReplyPresentationItem = PraxisAssistantShellQuickReplyPresentationItem & {
|
|
2340
|
+
key: 'bestFor' | 'returns' | 'nextStep' | string;
|
|
2341
|
+
icon: string;
|
|
2342
|
+
};
|
|
2343
|
+
interface QuickReplyContextChip {
|
|
2344
|
+
icon: string;
|
|
2345
|
+
value: string;
|
|
2346
|
+
ariaLabel: string;
|
|
2347
|
+
}
|
|
1469
2348
|
declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
1470
2349
|
labels: Partial<PraxisAssistantShellLabels> | null;
|
|
1471
2350
|
mode: PraxisAssistantShellMode;
|
|
@@ -1474,6 +2353,7 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1474
2353
|
attachments: readonly PraxisAssistantShellAttachment[];
|
|
1475
2354
|
messages: readonly PraxisAssistantShellMessage[];
|
|
1476
2355
|
quickReplies: readonly PraxisAssistantShellQuickReply[];
|
|
2356
|
+
recommendedIntents: readonly PraxisAssistantRecommendedIntent[];
|
|
1477
2357
|
prompt: string;
|
|
1478
2358
|
statusText: string;
|
|
1479
2359
|
errorText: string;
|
|
@@ -1481,13 +2361,22 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1481
2361
|
panelTestId: string;
|
|
1482
2362
|
submitTestId: string;
|
|
1483
2363
|
applyTestId: string;
|
|
2364
|
+
primaryAction: PraxisAssistantShellAction | null;
|
|
2365
|
+
secondaryActions: readonly PraxisAssistantShellAction[];
|
|
2366
|
+
governanceActions: readonly PraxisAssistantShellAction[];
|
|
1484
2367
|
busy: boolean;
|
|
1485
2368
|
canSubmit: boolean;
|
|
1486
2369
|
canApply: boolean;
|
|
1487
2370
|
submitOnEnter: boolean;
|
|
2371
|
+
showAttachAction: boolean;
|
|
2372
|
+
enablePastedAttachments: boolean;
|
|
1488
2373
|
enableFileAttachments: boolean;
|
|
1489
2374
|
attachmentAccept: string;
|
|
1490
2375
|
attachmentMultiple: boolean;
|
|
2376
|
+
private readonly defaultVoiceInputMode;
|
|
2377
|
+
private readonly defaultVoiceLanguage;
|
|
2378
|
+
voiceInputMode: PraxisAssistantVoiceInputMode;
|
|
2379
|
+
voiceLanguage: string;
|
|
1491
2380
|
draggable: boolean;
|
|
1492
2381
|
resizable: boolean;
|
|
1493
2382
|
minWidth: number;
|
|
@@ -1497,6 +2386,9 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1497
2386
|
promptChange: EventEmitter<string>;
|
|
1498
2387
|
submitPrompt: EventEmitter<string>;
|
|
1499
2388
|
apply: EventEmitter<void>;
|
|
2389
|
+
retryTurn: EventEmitter<void>;
|
|
2390
|
+
cancelTurn: EventEmitter<void>;
|
|
2391
|
+
shellAction: EventEmitter<PraxisAssistantShellAction>;
|
|
1500
2392
|
close: EventEmitter<void>;
|
|
1501
2393
|
attach: EventEmitter<void>;
|
|
1502
2394
|
attachmentsPasted: EventEmitter<PraxisAssistantShellAttachment[]>;
|
|
@@ -1509,15 +2401,27 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1509
2401
|
editMessage: EventEmitter<PraxisAssistantShellMessage>;
|
|
1510
2402
|
resendMessage: EventEmitter<PraxisAssistantShellMessage>;
|
|
1511
2403
|
quickReply: EventEmitter<PraxisAssistantShellQuickReply>;
|
|
2404
|
+
recommendedIntent: EventEmitter<PraxisAssistantRecommendedIntent>;
|
|
1512
2405
|
layoutChange: EventEmitter<PraxisAssistantShellLayout>;
|
|
1513
2406
|
panel?: ElementRef<HTMLElement>;
|
|
1514
2407
|
conversation?: ElementRef<HTMLElement>;
|
|
1515
2408
|
private readonly cdr;
|
|
2409
|
+
private readonly injector;
|
|
2410
|
+
private readonly browserSpeech;
|
|
1516
2411
|
protected currentPrompt: string;
|
|
1517
2412
|
protected resolvedLabels: PraxisAssistantShellLabels;
|
|
2413
|
+
protected voiceCaptureState: PraxisAssistantVoiceCaptureState;
|
|
2414
|
+
protected voiceFeedbackText: string;
|
|
1518
2415
|
protected currentLayout: PraxisAssistantShellLayout;
|
|
2416
|
+
protected readonly resizeHandles: readonly ResizeDirection[];
|
|
1519
2417
|
private pointerSession;
|
|
1520
2418
|
private readonly ownedPreviewUrls;
|
|
2419
|
+
private readonly submittedFeedbackObservationIds;
|
|
2420
|
+
private voiceCaptureSequence;
|
|
2421
|
+
private destroyed;
|
|
2422
|
+
private processingStartedAt;
|
|
2423
|
+
private processingElapsedSeconds;
|
|
2424
|
+
private processingTimer;
|
|
1521
2425
|
private readonly onWindowPointerMove;
|
|
1522
2426
|
private readonly onWindowPointerUp;
|
|
1523
2427
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1526,26 +2430,107 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1526
2430
|
protected onSubmit(): void;
|
|
1527
2431
|
protected onPromptKeydown(event: KeyboardEvent): void;
|
|
1528
2432
|
protected onPromptPaste(event: ClipboardEvent): void;
|
|
2433
|
+
protected onVoiceInputClick(): void;
|
|
2434
|
+
protected shouldShowVoiceInput(): boolean;
|
|
2435
|
+
protected isVoiceInputDisabled(): boolean;
|
|
2436
|
+
protected isVoiceInputBusy(): boolean;
|
|
2437
|
+
protected getVoiceActionLabel(): string;
|
|
2438
|
+
protected shouldShowVoiceFeedback(): boolean;
|
|
2439
|
+
private canUseBrowserSpeech;
|
|
2440
|
+
private cancelVoiceCapture;
|
|
2441
|
+
private isCurrentVoiceCapture;
|
|
2442
|
+
private applyVoiceTranscript;
|
|
2443
|
+
private resolveVoiceErrorText;
|
|
2444
|
+
private getVoiceLabel;
|
|
1529
2445
|
protected onAttachClick(fileInput: HTMLInputElement): void;
|
|
1530
2446
|
protected onAttachmentFilesSelected(event: Event): void;
|
|
1531
2447
|
protected onApply(): void;
|
|
2448
|
+
protected renderMessageText(text: string | null | undefined): string;
|
|
2449
|
+
private renderInlineMarkdown;
|
|
2450
|
+
private escapeHtml;
|
|
2451
|
+
protected shouldShowStatusText(): boolean;
|
|
2452
|
+
protected shouldShowErrorText(): boolean;
|
|
2453
|
+
protected getAuxiliaryStatusText(): string;
|
|
2454
|
+
protected onShellAction(action: PraxisAssistantShellAction): void;
|
|
2455
|
+
protected getPrimaryAction(): PraxisAssistantShellAction;
|
|
2456
|
+
protected getSecondaryActions(): readonly PraxisAssistantShellAction[];
|
|
2457
|
+
protected getPrimaryActionTooltip(action: PraxisAssistantShellAction): string;
|
|
2458
|
+
protected isShellActionDisabled(action: PraxisAssistantShellAction): boolean;
|
|
2459
|
+
protected getShellActionTone(action: PraxisAssistantShellAction): string;
|
|
2460
|
+
protected trackShellAction(_index: number, action: PraxisAssistantShellAction): string;
|
|
2461
|
+
private hasRecoverableTurn;
|
|
2462
|
+
private updateProcessingTimer;
|
|
2463
|
+
private stopProcessingTimer;
|
|
2464
|
+
private getProcessingStatusText;
|
|
2465
|
+
private shouldShowAuxiliaryText;
|
|
2466
|
+
private normalizeMessageText;
|
|
2467
|
+
private getDefaultPrimaryAction;
|
|
1532
2468
|
protected onQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
2469
|
+
protected shouldShowRecommendedIntents(): boolean;
|
|
2470
|
+
protected onRecommendedIntent(intent: PraxisAssistantRecommendedIntent): void;
|
|
2471
|
+
protected isRecommendedIntentDisabled(intent: PraxisAssistantRecommendedIntent): boolean;
|
|
2472
|
+
protected getRecommendedIntentAriaLabel(intent: PraxisAssistantRecommendedIntent): string;
|
|
2473
|
+
protected getRecommendedIntentDescription(intent: PraxisAssistantRecommendedIntent): string;
|
|
2474
|
+
protected getRecommendedIntentCtaLabel(intent: PraxisAssistantRecommendedIntent): string;
|
|
2475
|
+
protected getRecommendedIntentIcon(intent: PraxisAssistantRecommendedIntent): string;
|
|
2476
|
+
protected getRecommendedIntentTone(intent: PraxisAssistantRecommendedIntent): string;
|
|
2477
|
+
protected getRecommendedIntentGroupLabel(intent: PraxisAssistantRecommendedIntent): string;
|
|
2478
|
+
protected getQuickReplyAriaLabel(reply: PraxisAssistantShellQuickReply): string;
|
|
2479
|
+
protected getQuickReplyTechnicalDetails(reply: PraxisAssistantShellQuickReply): string;
|
|
2480
|
+
protected isRichQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2481
|
+
protected shouldUseInlineQuickReplies(): boolean;
|
|
2482
|
+
protected getQuickReplyDescription(reply: PraxisAssistantShellQuickReply): string;
|
|
2483
|
+
protected getQuickReplyContextChips(reply: PraxisAssistantShellQuickReply): readonly QuickReplyContextChip[];
|
|
2484
|
+
protected getQuickReplyPresentationItems(reply: PraxisAssistantShellQuickReply): readonly QuickReplyPresentationItem[];
|
|
2485
|
+
private defaultQuickReplyPresentation;
|
|
2486
|
+
protected getQuickReplyCategoryLabel(reply: PraxisAssistantShellQuickReply): string;
|
|
2487
|
+
protected getQuickReplyIcon(reply: PraxisAssistantShellQuickReply): string;
|
|
2488
|
+
protected getQuickReplyCtaLabel(reply: PraxisAssistantShellQuickReply): string;
|
|
2489
|
+
protected getQuickReplyTone(reply: PraxisAssistantShellQuickReply): string;
|
|
2490
|
+
private normalizeQuickReplyTone;
|
|
2491
|
+
private asRecord;
|
|
2492
|
+
private stringHint;
|
|
2493
|
+
private quickReplyHint;
|
|
2494
|
+
private hasQuickReplyResourceContext;
|
|
2495
|
+
private isFieldDiscoveryQuickReply;
|
|
2496
|
+
protected isContextualPreviewActionQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2497
|
+
protected isGuidedActionQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2498
|
+
private quickReplyPresentation;
|
|
2499
|
+
private quickReplyPresentationKind;
|
|
2500
|
+
private presentationEvidenceToChip;
|
|
2501
|
+
private getContextualActionChips;
|
|
2502
|
+
private isGenericContextualActionDescription;
|
|
2503
|
+
private trimSentencePunctuation;
|
|
2504
|
+
private shortPathLabel;
|
|
2505
|
+
private shortTechnicalLabel;
|
|
2506
|
+
protected getCloseIcon(): string;
|
|
2507
|
+
private normalizeShellAction;
|
|
1533
2508
|
protected onRemoveAttachment(attachment: PraxisAssistantShellAttachment): void;
|
|
1534
2509
|
protected onMessageAction(message: PraxisAssistantShellMessage, action: PraxisAssistantShellMessageAction): void;
|
|
2510
|
+
protected canSendMessageFeedback(message: PraxisAssistantShellMessage): boolean;
|
|
2511
|
+
protected isMessageFeedbackSubmitted(message: PraxisAssistantShellMessage): boolean;
|
|
2512
|
+
protected sendMessageFeedback(message: PraxisAssistantShellMessage, rating: AiAssistantObservationFeedbackRatingValue): void;
|
|
2513
|
+
private resolveAiApi;
|
|
2514
|
+
protected getMessageActionIcon(action: PraxisAssistantShellMessageAction): string;
|
|
2515
|
+
protected getMessageActionLabel(action: PraxisAssistantShellMessageAction): string;
|
|
2516
|
+
protected isMessageActionIconOnly(action: PraxisAssistantShellMessageAction): boolean;
|
|
1535
2517
|
protected getModeLabel(): string;
|
|
1536
2518
|
protected getStateLabel(): string;
|
|
1537
2519
|
protected startDrag(event: PointerEvent): void;
|
|
1538
|
-
protected startResize(event: PointerEvent): void;
|
|
2520
|
+
protected startResize(direction: ResizeDirection, event: PointerEvent): void;
|
|
2521
|
+
protected trackResizeHandle(_index: number, direction: ResizeDirection): ResizeDirection;
|
|
1539
2522
|
protected trackMessage(_index: number, message: PraxisAssistantShellMessage): string;
|
|
1540
2523
|
protected trackMessageAction(_index: number, action: PraxisAssistantShellMessageAction): string;
|
|
1541
2524
|
protected trackQuickReply(_index: number, reply: PraxisAssistantShellQuickReply): string;
|
|
2525
|
+
protected trackRecommendedIntent(_index: number, intent: PraxisAssistantRecommendedIntent): string;
|
|
1542
2526
|
protected trackContextItem(_index: number, item: PraxisAssistantShellContextItem): string;
|
|
1543
2527
|
protected trackAttachment(_index: number, attachment: PraxisAssistantShellAttachment): string;
|
|
1544
2528
|
private startPointerSession;
|
|
1545
2529
|
private handlePointerMove;
|
|
2530
|
+
private resizeLayout;
|
|
1546
2531
|
private finishPointerSession;
|
|
1547
2532
|
private detachPointerListeners;
|
|
1548
|
-
private
|
|
2533
|
+
private resolveViewportBounds;
|
|
1549
2534
|
private normalizeLayout;
|
|
1550
2535
|
private clampLayout;
|
|
1551
2536
|
private clamp;
|
|
@@ -1557,7 +2542,55 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
1557
2542
|
private revokeAllOwnedPreviewUrls;
|
|
1558
2543
|
private revokeOwnedPreviewUrl;
|
|
1559
2544
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiAssistantShellComponent, never>;
|
|
1560
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantShellComponent, "praxis-ai-assistant-shell", never, { "labels": { "alias": "labels"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "state": { "alias": "state"; "required": false; }; "contextItems": { "alias": "contextItems"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "quickReplies": { "alias": "quickReplies"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "testIdPrefix": { "alias": "testIdPrefix"; "required": false; }; "panelTestId": { "alias": "panelTestId"; "required": false; }; "submitTestId": { "alias": "submitTestId"; "required": false; }; "applyTestId": { "alias": "applyTestId"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "canSubmit": { "alias": "canSubmit"; "required": false; }; "canApply": { "alias": "canApply"; "required": false; }; "submitOnEnter": { "alias": "submitOnEnter"; "required": false; }; "enableFileAttachments": { "alias": "enableFileAttachments"; "required": false; }; "attachmentAccept": { "alias": "attachmentAccept"; "required": false; }; "attachmentMultiple": { "alias": "attachmentMultiple"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "promptChange": "promptChange"; "submitPrompt": "submitPrompt"; "apply": "apply"; "close": "close"; "attach": "attach"; "attachmentsPasted": "attachmentsPasted"; "attachmentsSelected": "attachmentsSelected"; "removeAttachment": "removeAttachment"; "messageAction": "messageAction"; "editMessage": "editMessage"; "resendMessage": "resendMessage"; "quickReply": "quickReply"; "layoutChange": "layoutChange"; }, never, never, true, never>;
|
|
2545
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantShellComponent, "praxis-ai-assistant-shell", never, { "labels": { "alias": "labels"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "state": { "alias": "state"; "required": false; }; "contextItems": { "alias": "contextItems"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "quickReplies": { "alias": "quickReplies"; "required": false; }; "recommendedIntents": { "alias": "recommendedIntents"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; "statusText": { "alias": "statusText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "testIdPrefix": { "alias": "testIdPrefix"; "required": false; }; "panelTestId": { "alias": "panelTestId"; "required": false; }; "submitTestId": { "alias": "submitTestId"; "required": false; }; "applyTestId": { "alias": "applyTestId"; "required": false; }; "primaryAction": { "alias": "primaryAction"; "required": false; }; "secondaryActions": { "alias": "secondaryActions"; "required": false; }; "governanceActions": { "alias": "governanceActions"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "canSubmit": { "alias": "canSubmit"; "required": false; }; "canApply": { "alias": "canApply"; "required": false; }; "submitOnEnter": { "alias": "submitOnEnter"; "required": false; }; "showAttachAction": { "alias": "showAttachAction"; "required": false; }; "enablePastedAttachments": { "alias": "enablePastedAttachments"; "required": false; }; "enableFileAttachments": { "alias": "enableFileAttachments"; "required": false; }; "attachmentAccept": { "alias": "attachmentAccept"; "required": false; }; "attachmentMultiple": { "alias": "attachmentMultiple"; "required": false; }; "voiceInputMode": { "alias": "voiceInputMode"; "required": false; }; "voiceLanguage": { "alias": "voiceLanguage"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; }, { "promptChange": "promptChange"; "submitPrompt": "submitPrompt"; "apply": "apply"; "retryTurn": "retryTurn"; "cancelTurn": "cancelTurn"; "shellAction": "shellAction"; "close": "close"; "attach": "attach"; "attachmentsPasted": "attachmentsPasted"; "attachmentsSelected": "attachmentsSelected"; "removeAttachment": "removeAttachment"; "messageAction": "messageAction"; "editMessage": "editMessage"; "resendMessage": "resendMessage"; "quickReply": "quickReply"; "recommendedIntent": "recommendedIntent"; "layoutChange": "layoutChange"; }, never, never, true, never>;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
declare const PRAXIS_ASSISTANT_VOICE_INPUT_MODE: InjectionToken<PraxisAssistantVoiceInputMode>;
|
|
2549
|
+
declare const PRAXIS_ASSISTANT_VOICE_LANGUAGE: InjectionToken<string>;
|
|
2550
|
+
|
|
2551
|
+
type PraxisAssistantDockTone = 'ready' | 'working' | 'review' | 'governed' | 'error';
|
|
2552
|
+
declare class PraxisAiAssistantDockComponent {
|
|
2553
|
+
title: string;
|
|
2554
|
+
summary: string;
|
|
2555
|
+
badge: string;
|
|
2556
|
+
icon: string;
|
|
2557
|
+
state: PraxisAssistantShellState | null;
|
|
2558
|
+
tone: PraxisAssistantDockTone | null;
|
|
2559
|
+
ariaLabel: string;
|
|
2560
|
+
openAriaLabel: string;
|
|
2561
|
+
openTooltip: string;
|
|
2562
|
+
testId: string;
|
|
2563
|
+
openTestId: string;
|
|
2564
|
+
open: EventEmitter<void>;
|
|
2565
|
+
resolvedTone(): PraxisAssistantDockTone;
|
|
2566
|
+
resolvedIcon(): string;
|
|
2567
|
+
resolvedBadge(): string;
|
|
2568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiAssistantDockComponent, never>;
|
|
2569
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantDockComponent, "praxis-ai-assistant-dock", never, { "title": { "alias": "title"; "required": false; }; "summary": { "alias": "summary"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "state": { "alias": "state"; "required": false; }; "tone": { "alias": "tone"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "openAriaLabel": { "alias": "openAriaLabel"; "required": false; }; "openTooltip": { "alias": "openTooltip"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "openTestId": { "alias": "openTestId"; "required": false; }; }, { "open": "open"; }, never, never, true, never>;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
declare class PraxisAiAssistantSessionHostComponent {
|
|
2573
|
+
private readonly registry;
|
|
2574
|
+
testId: string;
|
|
2575
|
+
dockTestIdPrefix: string;
|
|
2576
|
+
ariaLabel: string;
|
|
2577
|
+
openAriaLabel: string;
|
|
2578
|
+
openTooltip: string;
|
|
2579
|
+
ownerType: string | null;
|
|
2580
|
+
ownerId: string | null;
|
|
2581
|
+
visibility: PraxisAssistantSessionVisibility | 'all';
|
|
2582
|
+
includeOriginAnchored: boolean;
|
|
2583
|
+
sessionOpen: EventEmitter<PraxisAssistantSessionSnapshot>;
|
|
2584
|
+
visibleSessions(): readonly PraxisAssistantSessionSnapshot[];
|
|
2585
|
+
openSession(sessionId: string): void;
|
|
2586
|
+
sessionAriaLabel(session: PraxisAssistantSessionSnapshot): string;
|
|
2587
|
+
dockTestId(session: PraxisAssistantSessionSnapshot, first: boolean): string;
|
|
2588
|
+
dockOpenTestId(session: PraxisAssistantSessionSnapshot, first: boolean): string;
|
|
2589
|
+
trackSession(_index: number, session: PraxisAssistantSessionSnapshot): string;
|
|
2590
|
+
private safeId;
|
|
2591
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAiAssistantSessionHostComponent, never>;
|
|
2592
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisAiAssistantSessionHostComponent, "praxis-ai-assistant-session-host", never, { "testId": { "alias": "testId"; "required": false; }; "dockTestIdPrefix": { "alias": "dockTestIdPrefix"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "openAriaLabel": { "alias": "openAriaLabel"; "required": false; }; "openTooltip": { "alias": "openTooltip"; "required": false; }; "ownerType": { "alias": "ownerType"; "required": false; }; "ownerId": { "alias": "ownerId"; "required": false; }; "visibility": { "alias": "visibility"; "required": false; }; "includeOriginAnchored": { "alias": "includeOriginAnchored"; "required": false; }; }, { "sessionOpen": "sessionOpen"; }, never, never, true, never>;
|
|
2593
|
+
static ngAcceptInputType_includeOriginAnchored: unknown;
|
|
1561
2594
|
}
|
|
1562
2595
|
|
|
1563
2596
|
declare class AiContextBuilderService {
|
|
@@ -1566,7 +2599,7 @@ declare class AiContextBuilderService {
|
|
|
1566
2599
|
/**
|
|
1567
2600
|
* Builds the complete context for the AI prompt
|
|
1568
2601
|
*/
|
|
1569
|
-
buildPromptContext(fieldSchemas: Record<string, FieldSchemaLike>, targetType: 'field' | 'section' | 'action' | 'row' | 'column', propertySchema: RulePropertySchema): PromptContext;
|
|
2602
|
+
buildPromptContext(fieldSchemas: Record<string, FieldSchemaLike>, targetType: 'field' | 'section' | 'action' | 'row' | 'column' | 'visualBlock', propertySchema: RulePropertySchema): PromptContext;
|
|
1570
2603
|
buildRulePrompt(userPrompt: string, context: PromptContext): string;
|
|
1571
2604
|
buildSuggestionPrompt(context: PromptContext): string;
|
|
1572
2605
|
/**
|
|
@@ -1595,7 +2628,7 @@ declare class AiRuleWizardDialogComponent implements OnInit {
|
|
|
1595
2628
|
private snackBar;
|
|
1596
2629
|
private contextBuilder;
|
|
1597
2630
|
private cdr;
|
|
1598
|
-
selectedTargetType: 'field' | 'section' | 'action' | 'row' | 'column';
|
|
2631
|
+
selectedTargetType: 'field' | 'section' | 'action' | 'row' | 'column' | 'visualBlock';
|
|
1599
2632
|
userPrompt: string;
|
|
1600
2633
|
isGenerating: boolean;
|
|
1601
2634
|
validationError: string | null;
|
|
@@ -1631,5 +2664,5 @@ declare class AiRuleWizardDialogComponent implements OnInit {
|
|
|
1631
2664
|
static ɵcmp: i0.ɵɵComponentDeclaration<AiRuleWizardDialogComponent, "praxis-ai-rule-wizard-dialog", never, {}, {}, never, never, true, never>;
|
|
1632
2665
|
}
|
|
1633
2666
|
|
|
1634
|
-
export { AI_BACKEND_CONFIG_STORE, AI_BACKEND_STORAGE_OPTIONS, AI_CONTRACT_SCHEMA_HASH, AI_CONTRACT_VERSION, AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AI_STREAM_EVENT_SCHEMA_VERSION, AI_STREAM_EVENT_TYPES, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService };
|
|
1635
|
-
export type { AgenticAuthoringApplyRequestContract, AgenticAuthoringApplyResultContract, AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringConversationContextContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringIntentResolutionResultContract, AgenticAuthoringPendingClarificationContract, AgenticAuthoringPlanRequestContract, AgenticAuthoringPreviewResultContract, AgenticAuthoringQuickReplyContract, AiBackendConfigStore, AiBackendStorageOptions, AiChatMessage, AiChatMessageContract, AiClarificationUiContract, AiConfigAdapter, AiContextDTO, AiContextTemplate, AiContextTemplateMeta, AiCurrentStateDigest, AiCurrentStateDigestContract, AiExamplePair, AiGlobalConfigSnapshot, AiHeaderContext, AiIntegrationConfig, AiJsonArray, AiJsonObject, AiJsonPrimitive, AiJsonValue, AiMemoryInfoContract, AiModel, AiOptionContract, AiOrchestratorRequest, AiOrchestratorRequestContract, AiOrchestratorResponse, AiOrchestratorResponseContract, AiOrchestratorResponseType, AiPatchDiff, AiPatchDiffContract, AiPatchStreamCancelResponse, AiPatchStreamCancelResponseContract, AiPatchStreamConnection, AiPatchStreamConnectionErrorKind, AiPatchStreamEnvelope, AiPatchStreamEnvelopeContract, AiPatchStreamEventType, AiPatchStreamStartResponse, AiPatchStreamStartResponseContract, AiProviderCatalogItem, AiProviderCatalogResponse, AiProviderModelsRequest, AiProviderModelsResponse, AiProviderStatusResponse, AiProviderTestRequest, AiProviderTestResponse, AiResponseCompileResult, AiRuleResponse, AiSchemaContext, AiSchemaContextContract, AiSuggestion, AiSuggestionsRequest, AiSuggestionsResponse, AiUiContextRef, AiUiContextRefContract, AiValidationError, AiValidationResult, AiValidationWarning, AiWizardData, Capability, FieldSchemaLike, MinifiedField, PatchResult, PraxisAssistantClarificationOption, PraxisAssistantClarificationQuestion, PraxisAssistantClarificationQuestionType, PraxisAssistantPendingClarification, PraxisAssistantShellAttachment, PraxisAssistantShellContextItem, PraxisAssistantShellLabels, PraxisAssistantShellLayout, PraxisAssistantShellMessage, PraxisAssistantShellMessageAction, PraxisAssistantShellMessageRole, PraxisAssistantShellMode, PraxisAssistantShellQuickReply, PraxisAssistantShellState, PraxisAssistantTurnAction, PraxisAssistantTurnControllerOptions, PraxisAssistantTurnFlow, PraxisAssistantTurnPhase, PraxisAssistantTurnRequest, PraxisAssistantTurnResult, PraxisAssistantTurnViewState, ProblemResponseContract, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|
|
2667
|
+
export { AI_BACKEND_CONFIG_STORE, AI_BACKEND_ENDPOINTS, AI_BACKEND_STORAGE_OPTIONS, AI_CONTRACT_SCHEMA_HASH, AI_CONTRACT_VERSION, AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AI_STREAM_EVENT_SCHEMA_VERSION, AI_STREAM_EVENT_TYPES, AgenticAuthoringTurnClientService, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PRAXIS_ASSISTANT_CONTEXT_ATTACHMENT_LIMIT, PRAXIS_ASSISTANT_CONTEXT_ITEM_LIMIT, PRAXIS_ASSISTANT_CONTEXT_SCHEMA_FIELD_LIMIT, PRAXIS_ASSISTANT_CONTEXT_TEXT_LIMIT, PRAXIS_ASSISTANT_VOICE_INPUT_MODE, PRAXIS_ASSISTANT_VOICE_LANGUAGE, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantDockComponent, PraxisAiAssistantSessionHostComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService, createComponentAuthoringContext, createPraxisAssistantViewportLayout, normalizeAuthoringPrompt, normalizePraxisAssistantAttachmentSummary, normalizePraxisAssistantContextSnapshot, sanitizePraxisAssistantText, shouldRoutePromptToGovernedDecision, submitPraxisAssistantQuickReply, toAiJsonObject, toPraxisAssistantClarificationOption, toPraxisAssistantConversationMessages };
|
|
2668
|
+
export type { AgenticAuthoringApplyRequestContract, AgenticAuthoringApplyResultContract, AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringConversationContextContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringIntentResolutionResultContract, AgenticAuthoringManifestCompileResult, AgenticAuthoringManifestCompileResultContract, AgenticAuthoringManifestEditPlanRequest, AgenticAuthoringManifestEditPlanRequestContract, AgenticAuthoringManifestValidationResult, AgenticAuthoringManifestValidationResultContract, AgenticAuthoringPendingClarificationContract, AgenticAuthoringPlanRequestContract, AgenticAuthoringPreviewResultContract, AgenticAuthoringQuickReplyContract, AgenticAuthoringResolveTargetRequest, AgenticAuthoringResolveTargetRequestContract, AgenticAuthoringResolvedTarget, AgenticAuthoringResolvedTargetContract, AgenticAuthoringResourceCandidatesRequestContract, AgenticAuthoringResourceCandidatesResultContract, AgenticAuthoringSemanticDecisionContract, AgenticAuthoringTurnClientEvent, AgenticAuthoringTurnClientOptions, AgenticAuthoringTurnLifecycleEvent, AgenticAuthoringTurnStreamConnection, AgenticAuthoringTurnStreamConnectionOptions, AgenticAuthoringTurnStreamEnvelope, AgenticAuthoringTurnStreamEnvelopeContract, AgenticAuthoringTurnStreamEnvelopeEvent, AgenticAuthoringTurnStreamLifecycle, AgenticAuthoringTurnStreamRequest, AgenticAuthoringTurnStreamRequestContract, AgenticAuthoringTurnStreamStartOptions, AgenticAuthoringTurnStreamStartResponse, AgenticAuthoringTurnStreamStartResponseContract, AgenticAuthoringTurnStreamStartedEvent, AiAssistantObservationFeedbackRating, AiAssistantObservationFeedbackRatingValue, AiAssistantObservationFeedbackRequest, AiAssistantObservationFeedbackRequestContract, AiAssistantObservationFeedbackResponse, AiAssistantObservationFeedbackResponseContract, AiAssistantObservationResponseContract, AiAssistantObservationSummaryResponseContract, AiAssistantObservationSummaryRowContract, AiAuthoringResponseMode, AiAuthoringResponseModeKind, AiBackendConfigStore, AiBackendEndpoints, AiBackendStorageOptions, AiChatMessage, AiChatMessageContract, AiClarificationUiContract, AiComponentAuthoringContract, AiConfigAdapter, AiConsultativeAuthoringContext, AiContextDTO, AiContextHintsContract, AiContextTemplate, AiContextTemplateMeta, AiCurrentStateDigest, AiCurrentStateDigestContract, AiDomainCatalogContextHintContract, AiDomainCatalogContextHintIntent, AiDomainCatalogContextHintItemType, AiDomainCatalogRelationshipHintContract, AiExamplePair, AiGlobalConfigSnapshot, AiGovernedDecisionRoutingOptions, AiHeaderContext, AiIntegrationConfig, AiJsonArray, AiJsonObject, AiJsonPrimitive, AiJsonValue, AiMemoryInfoContract, AiModel, AiOptionContract, AiOrchestratorRequest, AiOrchestratorRequestContract, AiOrchestratorResponse, AiOrchestratorResponseContract, AiOrchestratorResponseType, AiPatchDiff, AiPatchDiffContract, AiPatchStreamCancelResponse, AiPatchStreamCancelResponseContract, AiPatchStreamConnection, AiPatchStreamConnectionErrorKind, AiPatchStreamEnvelope, AiPatchStreamEnvelopeContract, AiPatchStreamEventType, AiPatchStreamStartResponse, AiPatchStreamStartResponseContract, AiProviderCatalogItem, AiProviderCatalogResponse, AiProviderModelsRequest, AiProviderModelsResponse, AiProviderStatusResponse, AiProviderTestRequest, AiProviderTestResponse, AiResponseCompileResult, AiRuleResponse, AiSchemaContext, AiSchemaContextContract, AiSuggestion, AiSuggestionsRequest, AiSuggestionsResponse, AiTurnStreamEventType, AiUiContextRef, AiUiContextRefContract, AiValidationError, AiValidationResult, AiValidationWarning, AiWizardData, Capability, FieldSchemaLike, MinifiedField, PatchResult, PraxisAssistantActionContract, PraxisAssistantActionKind, PraxisAssistantAttachmentKind, PraxisAssistantAttachmentSummary, PraxisAssistantAuthoringManifestRef, PraxisAssistantCapabilityRef, PraxisAssistantClarificationOption, PraxisAssistantClarificationQuestion, PraxisAssistantClarificationQuestionType, PraxisAssistantComponentType, PraxisAssistantContextItem, PraxisAssistantContextMode, PraxisAssistantContextSessionDescriptor, PraxisAssistantContextSnapshot, PraxisAssistantConversationMessage, PraxisAssistantConversationMessageRole, PraxisAssistantDigest, PraxisAssistantDockTone, PraxisAssistantGovernanceHint, PraxisAssistantIdentity, PraxisAssistantOpenRequest, PraxisAssistantOpportunityCandidate, PraxisAssistantOpportunityCandidateStatus, PraxisAssistantOpportunityCatalog, PraxisAssistantOpportunityEvidence, PraxisAssistantOpportunityGroup, PraxisAssistantOpportunityMissingContext, PraxisAssistantOpportunitySafety, PraxisAssistantOpportunityTarget, PraxisAssistantOwnerType, PraxisAssistantPendingClarification, PraxisAssistantRecommendedIntent, PraxisAssistantRecommendedIntentAction, PraxisAssistantRecommendedIntentPresentation, PraxisAssistantRecommendedIntentTone, PraxisAssistantRiskLevel, PraxisAssistantSessionDescriptor, PraxisAssistantSessionIdentityRef, PraxisAssistantSessionPresence, PraxisAssistantSessionSnapshot, PraxisAssistantSessionVisibility, PraxisAssistantShellAction, PraxisAssistantShellActionTone, PraxisAssistantShellAttachment, PraxisAssistantShellContextItem, PraxisAssistantShellLabels, PraxisAssistantShellLayout, PraxisAssistantShellMessage, PraxisAssistantShellMessageAction, PraxisAssistantShellMessageRole, PraxisAssistantShellMode, PraxisAssistantShellQuickReply, PraxisAssistantShellQuickReplyEvidence, PraxisAssistantShellQuickReplyPresentation, PraxisAssistantShellQuickReplyPresentationItem, PraxisAssistantShellQuickReplyPresentationKind, PraxisAssistantShellState, PraxisAssistantTargetKind, PraxisAssistantTargetRef, PraxisAssistantTurnAction, PraxisAssistantTurnControllerOptions, PraxisAssistantTurnFlow, PraxisAssistantTurnPhase, PraxisAssistantTurnRequest, PraxisAssistantTurnResult, PraxisAssistantTurnViewState, PraxisAssistantViewportLayoutOptions, PraxisAssistantVoiceCaptureState, PraxisAssistantVoiceInputMode, ProblemResponseContract, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|