@contractspec/lib.contracts 1.56.1 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{rolldown_runtime.js → _rolldown/runtime.js} +3 -3
- package/dist/app-config/app-config.contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/app-config/runtime.js +3 -3
- package/dist/app-config/validation.js +3 -3
- package/dist/capabilities/capabilities.js +20 -20
- package/dist/capabilities/context.d.ts +0 -1
- package/dist/capabilities/context.js +1 -1
- package/dist/capabilities/guards.d.ts +0 -1
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/index.js +2 -1
- package/dist/capabilities/meeting-recorder.d.ts +10 -0
- package/dist/capabilities/meeting-recorder.js +82 -0
- package/dist/capabilities/validation.d.ts +0 -1
- package/dist/client/react/drivers/rn-reusables.d.ts +0 -1
- package/dist/client/react/drivers/shadcn.d.ts +0 -1
- package/dist/client/react/form-render.js +3 -3
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/registry.d.ts +0 -1
- package/dist/data-views/spec.d.ts +0 -1
- package/dist/docs/commands/docsPublish.command.d.ts +13 -13
- package/dist/docs/contracts.d.ts +103 -103
- package/dist/docs/events/docsGenerated.event.d.ts +13 -13
- package/dist/docs/events/docsPublished.event.d.ts +15 -15
- package/dist/docs/forms/docsSearch.form.d.ts +4 -4
- package/dist/docs/queries/contractReference.query.d.ts +47 -47
- package/dist/docs/queries/docsIndex.query.d.ts +57 -57
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +0 -1
- package/dist/docs/tech/mcp-endpoints.docblock.js +5 -0
- package/dist/events.d.ts +0 -1
- package/dist/examples/index.d.ts +0 -1
- package/dist/examples/registry.d.ts +0 -1
- package/dist/examples/schema.d.ts +17 -17
- package/dist/experiments/spec.d.ts +2 -4
- package/dist/features/index.d.ts +0 -1
- package/dist/features/types.d.ts +2 -5
- package/dist/forms/forms.d.ts +1 -2
- package/dist/forms/forms.js +1 -2
- package/dist/index.d.ts +42 -1
- package/dist/index.js +36 -1
- package/dist/install.d.ts +2 -5
- package/dist/integrations/docs/integrations.docblock.js +19 -1
- package/dist/integrations/index.d.ts +26 -1
- package/dist/integrations/index.js +20 -1
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +10 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +12 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +458 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +149 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +173 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +156 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +92 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +82 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +7 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +21 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +11 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +67 -0
- package/dist/integrations/meeting-recorder/models.d.ts +407 -0
- package/dist/integrations/meeting-recorder/models.js +295 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +16 -0
- package/dist/integrations/meeting-recorder/telemetry.js +42 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/providers/analytics-reader.d.ts +107 -0
- package/dist/integrations/providers/analytics-reader.js +0 -0
- package/dist/integrations/providers/analytics-writer.d.ts +10 -0
- package/dist/integrations/providers/analytics-writer.js +0 -0
- package/dist/integrations/providers/analytics.d.ts +49 -0
- package/dist/integrations/providers/analytics.js +0 -0
- package/dist/integrations/providers/database.d.ts +15 -0
- package/dist/integrations/providers/database.js +0 -0
- package/dist/integrations/providers/fal.d.ts +8 -0
- package/dist/integrations/providers/fal.js +94 -0
- package/dist/integrations/providers/fathom.d.ts +8 -0
- package/dist/integrations/providers/fathom.js +114 -0
- package/dist/integrations/providers/fireflies.d.ts +8 -0
- package/dist/integrations/providers/fireflies.js +98 -0
- package/dist/integrations/providers/gradium.d.ts +8 -0
- package/dist/integrations/providers/gradium.js +92 -0
- package/dist/integrations/providers/granola.d.ts +8 -0
- package/dist/integrations/providers/granola.js +71 -0
- package/dist/integrations/providers/index.d.ts +19 -1
- package/dist/integrations/providers/index.js +13 -1
- package/dist/integrations/providers/jira.d.ts +8 -0
- package/dist/integrations/providers/jira.js +90 -0
- package/dist/integrations/providers/linear.d.ts +8 -0
- package/dist/integrations/providers/linear.js +85 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +132 -0
- package/dist/integrations/providers/meeting-recorder.js +0 -0
- package/dist/integrations/providers/notion.d.ts +8 -0
- package/dist/integrations/providers/notion.js +91 -0
- package/dist/integrations/providers/posthog.d.ts +8 -0
- package/dist/integrations/providers/posthog.js +107 -0
- package/dist/integrations/providers/project-management.d.ts +35 -0
- package/dist/integrations/providers/project-management.js +0 -0
- package/dist/integrations/providers/registry.d.ts +0 -1
- package/dist/integrations/providers/registry.js +24 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +8 -0
- package/dist/integrations/providers/supabase-postgres.js +73 -0
- package/dist/integrations/providers/supabase-vector.d.ts +8 -0
- package/dist/integrations/providers/supabase-vector.js +93 -0
- package/dist/integrations/providers/tldv.d.ts +8 -0
- package/dist/integrations/providers/tldv.js +98 -0
- package/dist/integrations/runtime.js +0 -1
- package/dist/integrations/spec.d.ts +1 -1
- package/dist/jobs/queue.d.ts +0 -1
- package/dist/knowledge/binding.d.ts +1 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/llm/exporters.d.ts +0 -1
- package/dist/llm/exporters.js +0 -1
- package/dist/llm/prompts.d.ts +0 -1
- package/dist/llm/types.d.ts +0 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/openapi.d.ts +0 -1
- package/dist/operations/operation.d.ts +19 -43
- package/dist/operations/registry.d.ts +0 -1
- package/dist/operations/registry.js +2 -2
- package/dist/operations/report/getContractVerificationStatus.d.ts +10 -10
- package/dist/ownership.d.ts +41 -88
- package/dist/policy/guards.d.ts +0 -1
- package/dist/policy/guards.js +3 -3
- package/dist/policy/index.d.ts +0 -1
- package/dist/policy/validation.d.ts +0 -1
- package/dist/product-intent/contract-patch-intent.d.ts +103 -0
- package/dist/product-intent/contract-patch-intent.js +33 -0
- package/dist/product-intent/contract-spec-patch.d.ts +89 -0
- package/dist/product-intent/contract-spec-patch.js +27 -0
- package/dist/product-intent/evidence.d.ts +17 -0
- package/dist/product-intent/evidence.js +13 -0
- package/dist/product-intent/findings.d.ts +60 -0
- package/dist/product-intent/findings.js +17 -0
- package/dist/product-intent/impact-report.d.ts +60 -0
- package/dist/product-intent/impact-report.js +27 -0
- package/dist/product-intent/index.d.ts +16 -0
- package/dist/product-intent/index.js +17 -0
- package/dist/product-intent/insights.d.ts +65 -0
- package/dist/product-intent/insights.js +23 -0
- package/dist/product-intent/opportunity-brief.d.ts +195 -0
- package/dist/product-intent/opportunity-brief.js +42 -0
- package/dist/product-intent/problems.d.ts +62 -0
- package/dist/product-intent/problems.js +22 -0
- package/dist/product-intent/registry.d.ts +32 -0
- package/dist/product-intent/registry.js +49 -0
- package/dist/product-intent/runtime.d.ts +103 -0
- package/dist/product-intent/runtime.js +101 -0
- package/dist/product-intent/spec.d.ts +676 -0
- package/dist/product-intent/spec.js +53 -0
- package/dist/product-intent/task-pack.d.ts +101 -0
- package/dist/product-intent/task-pack.js +34 -0
- package/dist/product-intent/tickets.d.ts +70 -0
- package/dist/product-intent/tickets.js +24 -0
- package/dist/product-intent/types.d.ts +12 -0
- package/dist/product-intent/types.js +13 -0
- package/dist/product-intent/ui-wireframe.d.ts +103 -0
- package/dist/product-intent/ui-wireframe.js +33 -0
- package/dist/registry-utils.d.ts +0 -1
- package/dist/registry-utils.js +3 -3
- package/dist/resources.js +1 -1
- package/dist/schema-to-markdown.d.ts +0 -1
- package/dist/server/contracts-adapter-input.js +2 -2
- package/dist/server/graphql-pothos.d.ts +0 -1
- package/dist/server/mcp/createMcpServer.d.ts +0 -1
- package/dist/server/rest-express.d.ts +0 -1
- package/dist/server/rest-generic.js +3 -3
- package/dist/server/rest-next-app.d.ts +0 -1
- package/dist/tests/spec.d.ts +0 -1
- package/dist/translations/registry.d.ts +0 -1
- package/dist/translations/spec.d.ts +0 -1
- package/dist/translations/validation.d.ts +0 -1
- package/dist/types.d.ts +5 -12
- package/dist/versioning/types.d.ts +0 -1
- package/dist/versioning/utils.d.ts +0 -1
- package/dist/workflow/adapters/memory-store.d.ts +0 -1
- package/dist/workflow/context.d.ts +0 -1
- package/dist/workflow/context.js +2 -2
- package/dist/workflow/runner.d.ts +1 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +0 -1
- package/dist/workspace-config/contractsrc-types.d.ts +1 -3
- package/package.json +110 -32
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +0 -20
- package/dist/integrations/providers/impls/elevenlabs-voice.js +0 -95
- package/dist/integrations/providers/impls/gcs-storage.d.ts +0 -24
- package/dist/integrations/providers/impls/gcs-storage.js +0 -88
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +0 -26
- package/dist/integrations/providers/impls/gmail-inbound.js +0 -200
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +0 -18
- package/dist/integrations/providers/impls/gmail-outbound.js +0 -105
- package/dist/integrations/providers/impls/google-calendar.d.ts +0 -23
- package/dist/integrations/providers/impls/google-calendar.js +0 -154
- package/dist/integrations/providers/impls/index.d.ts +0 -15
- package/dist/integrations/providers/impls/index.js +0 -16
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +0 -23
- package/dist/integrations/providers/impls/mistral-embedding.js +0 -41
- package/dist/integrations/providers/impls/mistral-llm.d.ts +0 -31
- package/dist/integrations/providers/impls/mistral-llm.js +0 -247
- package/dist/integrations/providers/impls/postmark-email.d.ts +0 -19
- package/dist/integrations/providers/impls/postmark-email.js +0 -55
- package/dist/integrations/providers/impls/powens-client.d.ts +0 -124
- package/dist/integrations/providers/impls/powens-client.js +0 -171
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +0 -27
- package/dist/integrations/providers/impls/powens-openbanking.js +0 -218
- package/dist/integrations/providers/impls/provider-factory.d.ts +0 -26
- package/dist/integrations/providers/impls/provider-factory.js +0 -146
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +0 -24
- package/dist/integrations/providers/impls/qdrant-vector.js +0 -69
- package/dist/integrations/providers/impls/stripe-payments.d.ts +0 -28
- package/dist/integrations/providers/impls/stripe-payments.js +0 -202
- package/dist/integrations/providers/impls/twilio-sms.d.ts +0 -20
- package/dist/integrations/providers/impls/twilio-sms.js +0 -58
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/contract-spec-patch.ts
|
|
5
|
+
const ContractPatchAddSchema = z$2.object({
|
|
6
|
+
path: z$2.string().min(1),
|
|
7
|
+
value: z$2.unknown()
|
|
8
|
+
});
|
|
9
|
+
const ContractPatchAddModel = new ZodSchemaType(ContractPatchAddSchema, { name: "ContractPatchAdd" });
|
|
10
|
+
const ContractPatchUpdateSchema = z$2.object({
|
|
11
|
+
path: z$2.string().min(1),
|
|
12
|
+
value: z$2.unknown()
|
|
13
|
+
});
|
|
14
|
+
const ContractPatchUpdateModel = new ZodSchemaType(ContractPatchUpdateSchema, { name: "ContractPatchUpdate" });
|
|
15
|
+
const ContractPatchRemoveSchema = z$2.object({ path: z$2.string().min(1) });
|
|
16
|
+
const ContractPatchRemoveModel = new ZodSchemaType(ContractPatchRemoveSchema, { name: "ContractPatchRemove" });
|
|
17
|
+
const ContractSpecOverlaySchema = z$2.object({
|
|
18
|
+
adds: z$2.array(ContractPatchAddSchema).optional(),
|
|
19
|
+
updates: z$2.array(ContractPatchUpdateSchema).optional(),
|
|
20
|
+
removes: z$2.array(ContractPatchRemoveSchema).optional()
|
|
21
|
+
});
|
|
22
|
+
const ContractSpecOverlayModel = new ZodSchemaType(ContractSpecOverlaySchema, { name: "ContractSpecOverlay" });
|
|
23
|
+
const ContractSpecPatchSchema = z$2.object({ overlay: ContractSpecOverlaySchema });
|
|
24
|
+
const ContractSpecPatchModel = new ZodSchemaType(ContractSpecPatchSchema, { name: "ContractSpecPatch" });
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ContractPatchAddModel, ContractPatchRemoveModel, ContractPatchUpdateModel, ContractSpecOverlayModel, ContractSpecPatchModel };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/evidence.d.ts
|
|
5
|
+
declare const EvidenceChunkSchema: z$2.ZodObject<{
|
|
6
|
+
chunkId: z$2.ZodString;
|
|
7
|
+
text: z$2.ZodString;
|
|
8
|
+
meta: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
9
|
+
}, z$2.core.$strip>;
|
|
10
|
+
declare const EvidenceChunkModel: ZodSchemaType<z$2.ZodObject<{
|
|
11
|
+
chunkId: z$2.ZodString;
|
|
12
|
+
text: z$2.ZodString;
|
|
13
|
+
meta: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
|
|
14
|
+
}, z$2.core.$strip>>;
|
|
15
|
+
type EvidenceChunk = z$2.infer<typeof EvidenceChunkSchema>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { EvidenceChunk, EvidenceChunkModel };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/evidence.ts
|
|
5
|
+
const EvidenceChunkSchema = z$2.object({
|
|
6
|
+
chunkId: z$2.string().min(1),
|
|
7
|
+
text: z$2.string().min(1),
|
|
8
|
+
meta: z$2.record(z$2.string(), z$2.unknown()).optional()
|
|
9
|
+
});
|
|
10
|
+
const EvidenceChunkModel = new ZodSchemaType(EvidenceChunkSchema, { name: "EvidenceChunk" });
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { EvidenceChunkModel };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/findings.d.ts
|
|
5
|
+
declare const EvidenceFindingSchema: z$2.ZodObject<{
|
|
6
|
+
findingId: z$2.ZodString;
|
|
7
|
+
summary: z$2.ZodString;
|
|
8
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
9
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
10
|
+
chunkId: string;
|
|
11
|
+
quote: string;
|
|
12
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
13
|
+
chunkId: string;
|
|
14
|
+
quote: string;
|
|
15
|
+
}, unknown>>>;
|
|
16
|
+
}, z$2.core.$strip>;
|
|
17
|
+
declare const EvidenceFindingModel: ZodSchemaType<z$2.ZodObject<{
|
|
18
|
+
findingId: z$2.ZodString;
|
|
19
|
+
summary: z$2.ZodString;
|
|
20
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
21
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
22
|
+
chunkId: string;
|
|
23
|
+
quote: string;
|
|
24
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
25
|
+
chunkId: string;
|
|
26
|
+
quote: string;
|
|
27
|
+
}, unknown>>>;
|
|
28
|
+
}, z$2.core.$strip>>;
|
|
29
|
+
type EvidenceFinding = z$2.infer<typeof EvidenceFindingSchema>;
|
|
30
|
+
declare const EvidenceFindingExtractionSchema: z$2.ZodObject<{
|
|
31
|
+
findings: z$2.ZodArray<z$2.ZodObject<{
|
|
32
|
+
findingId: z$2.ZodString;
|
|
33
|
+
summary: z$2.ZodString;
|
|
34
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
35
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
36
|
+
chunkId: string;
|
|
37
|
+
quote: string;
|
|
38
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
39
|
+
chunkId: string;
|
|
40
|
+
quote: string;
|
|
41
|
+
}, unknown>>>;
|
|
42
|
+
}, z$2.core.$strip>>;
|
|
43
|
+
}, z$2.core.$strip>;
|
|
44
|
+
declare const EvidenceFindingExtractionModel: ZodSchemaType<z$2.ZodObject<{
|
|
45
|
+
findings: z$2.ZodArray<z$2.ZodObject<{
|
|
46
|
+
findingId: z$2.ZodString;
|
|
47
|
+
summary: z$2.ZodString;
|
|
48
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
49
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
50
|
+
chunkId: string;
|
|
51
|
+
quote: string;
|
|
52
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
53
|
+
chunkId: string;
|
|
54
|
+
quote: string;
|
|
55
|
+
}, unknown>>>;
|
|
56
|
+
}, z$2.core.$strip>>;
|
|
57
|
+
}, z$2.core.$strip>>;
|
|
58
|
+
type EvidenceFindingExtraction = z$2.infer<typeof EvidenceFindingExtractionSchema>;
|
|
59
|
+
//#endregion
|
|
60
|
+
export { EvidenceFinding, EvidenceFindingExtraction, EvidenceFindingExtractionModel, EvidenceFindingModel };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CitationModel } from "./insights.js";
|
|
2
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
3
|
+
import * as z$2 from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/product-intent/findings.ts
|
|
6
|
+
const EvidenceFindingSchema = z$2.object({
|
|
7
|
+
findingId: z$2.string().min(1),
|
|
8
|
+
summary: z$2.string().min(1),
|
|
9
|
+
tags: z$2.array(z$2.string().min(1)).optional(),
|
|
10
|
+
citations: z$2.array(CitationModel.getZod()).min(1)
|
|
11
|
+
});
|
|
12
|
+
const EvidenceFindingModel = new ZodSchemaType(EvidenceFindingSchema, { name: "EvidenceFinding" });
|
|
13
|
+
const EvidenceFindingExtractionSchema = z$2.object({ findings: z$2.array(EvidenceFindingSchema) });
|
|
14
|
+
const EvidenceFindingExtractionModel = new ZodSchemaType(EvidenceFindingExtractionSchema, { name: "EvidenceFindingExtraction" });
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { EvidenceFindingExtractionModel, EvidenceFindingModel };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/impact-report.d.ts
|
|
5
|
+
declare const ImpactSurfacesSchema: z$2.ZodObject<{
|
|
6
|
+
api: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
7
|
+
db: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
8
|
+
ui: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
9
|
+
workflows: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
10
|
+
policy: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
11
|
+
docs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
12
|
+
tests: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
13
|
+
}, z$2.core.$strip>;
|
|
14
|
+
declare const ImpactSurfacesModel: ZodSchemaType<z$2.ZodObject<{
|
|
15
|
+
api: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
16
|
+
db: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
17
|
+
ui: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
18
|
+
workflows: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
19
|
+
policy: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
20
|
+
docs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
21
|
+
tests: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
22
|
+
}, z$2.core.$strip>>;
|
|
23
|
+
type ImpactSurfaces = z$2.infer<typeof ImpactSurfacesSchema>;
|
|
24
|
+
declare const ImpactReportSchema: z$2.ZodObject<{
|
|
25
|
+
reportId: z$2.ZodString;
|
|
26
|
+
patchId: z$2.ZodString;
|
|
27
|
+
summary: z$2.ZodString;
|
|
28
|
+
breaks: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
29
|
+
mustChange: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
30
|
+
risky: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
31
|
+
surfaces: z$2.ZodObject<{
|
|
32
|
+
api: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
33
|
+
db: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
34
|
+
ui: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
35
|
+
workflows: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
36
|
+
policy: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
37
|
+
docs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
38
|
+
tests: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
39
|
+
}, z$2.core.$strip>;
|
|
40
|
+
}, z$2.core.$strip>;
|
|
41
|
+
declare const ImpactReportModel: ZodSchemaType<z$2.ZodObject<{
|
|
42
|
+
reportId: z$2.ZodString;
|
|
43
|
+
patchId: z$2.ZodString;
|
|
44
|
+
summary: z$2.ZodString;
|
|
45
|
+
breaks: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
46
|
+
mustChange: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
47
|
+
risky: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
48
|
+
surfaces: z$2.ZodObject<{
|
|
49
|
+
api: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
50
|
+
db: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
51
|
+
ui: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
52
|
+
workflows: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
53
|
+
policy: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
54
|
+
docs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
55
|
+
tests: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
56
|
+
}, z$2.core.$strip>;
|
|
57
|
+
}, z$2.core.$strip>>;
|
|
58
|
+
type ImpactReport = z$2.infer<typeof ImpactReportSchema>;
|
|
59
|
+
//#endregion
|
|
60
|
+
export { ImpactReport, ImpactReportModel, ImpactSurfaces, ImpactSurfacesModel };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/impact-report.ts
|
|
5
|
+
const ImpactSurfacesSchema = z$2.object({
|
|
6
|
+
api: z$2.array(z$2.string().min(1)).optional(),
|
|
7
|
+
db: z$2.array(z$2.string().min(1)).optional(),
|
|
8
|
+
ui: z$2.array(z$2.string().min(1)).optional(),
|
|
9
|
+
workflows: z$2.array(z$2.string().min(1)).optional(),
|
|
10
|
+
policy: z$2.array(z$2.string().min(1)).optional(),
|
|
11
|
+
docs: z$2.array(z$2.string().min(1)).optional(),
|
|
12
|
+
tests: z$2.array(z$2.string().min(1)).optional()
|
|
13
|
+
});
|
|
14
|
+
const ImpactSurfacesModel = new ZodSchemaType(ImpactSurfacesSchema, { name: "ImpactSurfaces" });
|
|
15
|
+
const ImpactReportSchema = z$2.object({
|
|
16
|
+
reportId: z$2.string().min(1),
|
|
17
|
+
patchId: z$2.string().min(1),
|
|
18
|
+
summary: z$2.string().min(1),
|
|
19
|
+
breaks: z$2.array(z$2.string().min(1)).optional(),
|
|
20
|
+
mustChange: z$2.array(z$2.string().min(1)).optional(),
|
|
21
|
+
risky: z$2.array(z$2.string().min(1)).optional(),
|
|
22
|
+
surfaces: ImpactSurfacesSchema
|
|
23
|
+
});
|
|
24
|
+
const ImpactReportModel = new ZodSchemaType(ImpactReportSchema, { name: "ImpactReport" });
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ImpactReportModel, ImpactSurfacesModel };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EvidenceChunk, EvidenceChunkModel } from "./evidence.js";
|
|
2
|
+
import { EvidenceFinding, EvidenceFindingExtraction, EvidenceFindingExtractionModel, EvidenceFindingModel } from "./findings.js";
|
|
3
|
+
import { Citation, CitationModel, Insight, InsightExtraction, InsightExtractionModel, InsightModel } from "./insights.js";
|
|
4
|
+
import { ProblemGrouping, ProblemGroupingModel, ProblemSeverity, ProblemStatement, ProblemStatementModel } from "./problems.js";
|
|
5
|
+
import { CitedTextBlock, CitedTextBlockModel, ExpectedImpact, ExpectedImpactModel, ImpactDirection, OpportunityBrief, OpportunityBriefModel, OpportunityConfidence, Risk, RiskModel } from "./opportunity-brief.js";
|
|
6
|
+
import { ContractPatchIntent, ContractPatchIntentModel, PatchChange, PatchChangeModel, PatchChangeType } from "./contract-patch-intent.js";
|
|
7
|
+
import { ContractPatchAdd, ContractPatchAddModel, ContractPatchRemove, ContractPatchRemoveModel, ContractPatchUpdate, ContractPatchUpdateModel, ContractSpecOverlay, ContractSpecOverlayModel, ContractSpecPatch, ContractSpecPatchModel } from "./contract-spec-patch.js";
|
|
8
|
+
import { ImpactReport, ImpactReportModel, ImpactSurfaces, ImpactSurfacesModel } from "./impact-report.js";
|
|
9
|
+
import { Task, TaskModel, TaskPack, TaskPackModel, TaskSurface } from "./task-pack.js";
|
|
10
|
+
import { Ticket, TicketCollection, TicketCollectionModel, TicketModel, TicketPriority } from "./tickets.js";
|
|
11
|
+
import { UiWireframeElement, UiWireframeElementModel, UiWireframeLayout, UiWireframeLayoutModel, UiWireframeRequest, UiWireframeRequestModel, WireframeDevice, WireframeElementType } from "./ui-wireframe.js";
|
|
12
|
+
import "./types.js";
|
|
13
|
+
import { ProductIntentMeta, ProductIntentSpec, ProductIntentSpecData, ProductIntentSpecModel, defineProductIntentSpec } from "./spec.js";
|
|
14
|
+
import { ProductIntentRegistry } from "./registry.js";
|
|
15
|
+
import { ProductIntentDiscoveryParams, ProductIntentRuntime, ProductIntentRuntimeOptions } from "./runtime.js";
|
|
16
|
+
export { Citation, CitationModel, CitedTextBlock, CitedTextBlockModel, ContractPatchAdd, ContractPatchAddModel, ContractPatchIntent, ContractPatchIntentModel, ContractPatchRemove, ContractPatchRemoveModel, ContractPatchUpdate, ContractPatchUpdateModel, ContractSpecOverlay, ContractSpecOverlayModel, ContractSpecPatch, ContractSpecPatchModel, EvidenceChunk, EvidenceChunkModel, EvidenceFinding, EvidenceFindingExtraction, EvidenceFindingExtractionModel, EvidenceFindingModel, ExpectedImpact, ExpectedImpactModel, ImpactDirection, ImpactReport, ImpactReportModel, ImpactSurfaces, ImpactSurfacesModel, Insight, InsightExtraction, InsightExtractionModel, InsightModel, OpportunityBrief, OpportunityBriefModel, OpportunityConfidence, PatchChange, PatchChangeModel, PatchChangeType, ProblemGrouping, ProblemGroupingModel, ProblemSeverity, ProblemStatement, ProblemStatementModel, ProductIntentDiscoveryParams, ProductIntentMeta, ProductIntentRegistry, ProductIntentRuntime, ProductIntentRuntimeOptions, ProductIntentSpec, ProductIntentSpecData, ProductIntentSpecModel, Risk, RiskModel, Task, TaskModel, TaskPack, TaskPackModel, TaskSurface, Ticket, TicketCollection, TicketCollectionModel, TicketModel, TicketPriority, UiWireframeElement, UiWireframeElementModel, UiWireframeLayout, UiWireframeLayoutModel, UiWireframeRequest, UiWireframeRequestModel, WireframeDevice, WireframeElementType, defineProductIntentSpec };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EvidenceChunkModel } from "./evidence.js";
|
|
2
|
+
import { CitationModel, InsightExtractionModel, InsightModel } from "./insights.js";
|
|
3
|
+
import { EvidenceFindingExtractionModel, EvidenceFindingModel } from "./findings.js";
|
|
4
|
+
import { ProblemGroupingModel, ProblemStatementModel } from "./problems.js";
|
|
5
|
+
import { CitedTextBlockModel, ExpectedImpactModel, OpportunityBriefModel, RiskModel } from "./opportunity-brief.js";
|
|
6
|
+
import { ContractPatchIntentModel, PatchChangeModel } from "./contract-patch-intent.js";
|
|
7
|
+
import { ContractPatchAddModel, ContractPatchRemoveModel, ContractPatchUpdateModel, ContractSpecOverlayModel, ContractSpecPatchModel } from "./contract-spec-patch.js";
|
|
8
|
+
import { ImpactReportModel, ImpactSurfacesModel } from "./impact-report.js";
|
|
9
|
+
import { TaskModel, TaskPackModel } from "./task-pack.js";
|
|
10
|
+
import { TicketCollectionModel, TicketModel } from "./tickets.js";
|
|
11
|
+
import { UiWireframeElementModel, UiWireframeLayoutModel, UiWireframeRequestModel } from "./ui-wireframe.js";
|
|
12
|
+
import "./types.js";
|
|
13
|
+
import { ProductIntentSpecModel, defineProductIntentSpec } from "./spec.js";
|
|
14
|
+
import { ProductIntentRegistry } from "./registry.js";
|
|
15
|
+
import { ProductIntentRuntime } from "./runtime.js";
|
|
16
|
+
|
|
17
|
+
export { CitationModel, CitedTextBlockModel, ContractPatchAddModel, ContractPatchIntentModel, ContractPatchRemoveModel, ContractPatchUpdateModel, ContractSpecOverlayModel, ContractSpecPatchModel, EvidenceChunkModel, EvidenceFindingExtractionModel, EvidenceFindingModel, ExpectedImpactModel, ImpactReportModel, ImpactSurfacesModel, InsightExtractionModel, InsightModel, OpportunityBriefModel, PatchChangeModel, ProblemGroupingModel, ProblemStatementModel, ProductIntentRegistry, ProductIntentRuntime, ProductIntentSpecModel, RiskModel, TaskModel, TaskPackModel, TicketCollectionModel, TicketModel, UiWireframeElementModel, UiWireframeLayoutModel, UiWireframeRequestModel, defineProductIntentSpec };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/insights.d.ts
|
|
5
|
+
declare const CitationSchema: z$2.ZodObject<{
|
|
6
|
+
chunkId: z$2.ZodString;
|
|
7
|
+
quote: z$2.ZodString;
|
|
8
|
+
}, z$2.core.$strip>;
|
|
9
|
+
declare const CitationModel: ZodSchemaType<z$2.ZodObject<{
|
|
10
|
+
chunkId: z$2.ZodString;
|
|
11
|
+
quote: z$2.ZodString;
|
|
12
|
+
}, z$2.core.$strip>>;
|
|
13
|
+
type Citation = z$2.infer<typeof CitationSchema>;
|
|
14
|
+
declare const InsightSchema: z$2.ZodObject<{
|
|
15
|
+
insightId: z$2.ZodString;
|
|
16
|
+
claim: z$2.ZodString;
|
|
17
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
18
|
+
segment: z$2.ZodOptional<z$2.ZodString>;
|
|
19
|
+
confidence: z$2.ZodOptional<z$2.ZodNumber>;
|
|
20
|
+
citations: z$2.ZodArray<z$2.ZodObject<{
|
|
21
|
+
chunkId: z$2.ZodString;
|
|
22
|
+
quote: z$2.ZodString;
|
|
23
|
+
}, z$2.core.$strip>>;
|
|
24
|
+
}, z$2.core.$strip>;
|
|
25
|
+
declare const InsightModel: ZodSchemaType<z$2.ZodObject<{
|
|
26
|
+
insightId: z$2.ZodString;
|
|
27
|
+
claim: z$2.ZodString;
|
|
28
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
29
|
+
segment: z$2.ZodOptional<z$2.ZodString>;
|
|
30
|
+
confidence: z$2.ZodOptional<z$2.ZodNumber>;
|
|
31
|
+
citations: z$2.ZodArray<z$2.ZodObject<{
|
|
32
|
+
chunkId: z$2.ZodString;
|
|
33
|
+
quote: z$2.ZodString;
|
|
34
|
+
}, z$2.core.$strip>>;
|
|
35
|
+
}, z$2.core.$strip>>;
|
|
36
|
+
type Insight = z$2.infer<typeof InsightSchema>;
|
|
37
|
+
declare const InsightExtractionSchema: z$2.ZodObject<{
|
|
38
|
+
insights: z$2.ZodArray<z$2.ZodObject<{
|
|
39
|
+
insightId: z$2.ZodString;
|
|
40
|
+
claim: z$2.ZodString;
|
|
41
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
42
|
+
segment: z$2.ZodOptional<z$2.ZodString>;
|
|
43
|
+
confidence: z$2.ZodOptional<z$2.ZodNumber>;
|
|
44
|
+
citations: z$2.ZodArray<z$2.ZodObject<{
|
|
45
|
+
chunkId: z$2.ZodString;
|
|
46
|
+
quote: z$2.ZodString;
|
|
47
|
+
}, z$2.core.$strip>>;
|
|
48
|
+
}, z$2.core.$strip>>;
|
|
49
|
+
}, z$2.core.$strip>;
|
|
50
|
+
declare const InsightExtractionModel: ZodSchemaType<z$2.ZodObject<{
|
|
51
|
+
insights: z$2.ZodArray<z$2.ZodObject<{
|
|
52
|
+
insightId: z$2.ZodString;
|
|
53
|
+
claim: z$2.ZodString;
|
|
54
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
55
|
+
segment: z$2.ZodOptional<z$2.ZodString>;
|
|
56
|
+
confidence: z$2.ZodOptional<z$2.ZodNumber>;
|
|
57
|
+
citations: z$2.ZodArray<z$2.ZodObject<{
|
|
58
|
+
chunkId: z$2.ZodString;
|
|
59
|
+
quote: z$2.ZodString;
|
|
60
|
+
}, z$2.core.$strip>>;
|
|
61
|
+
}, z$2.core.$strip>>;
|
|
62
|
+
}, z$2.core.$strip>>;
|
|
63
|
+
type InsightExtraction = z$2.infer<typeof InsightExtractionSchema>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Citation, CitationModel, Insight, InsightExtraction, InsightExtractionModel, InsightModel };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/insights.ts
|
|
5
|
+
const CitationSchema = z$2.object({
|
|
6
|
+
chunkId: z$2.string().min(1),
|
|
7
|
+
quote: z$2.string().min(1)
|
|
8
|
+
});
|
|
9
|
+
const CitationModel = new ZodSchemaType(CitationSchema, { name: "Citation" });
|
|
10
|
+
const InsightSchema = z$2.object({
|
|
11
|
+
insightId: z$2.string().min(1),
|
|
12
|
+
claim: z$2.string().min(1),
|
|
13
|
+
tags: z$2.array(z$2.string().min(1)).optional(),
|
|
14
|
+
segment: z$2.string().min(1).optional(),
|
|
15
|
+
confidence: z$2.number().min(0).max(1).optional(),
|
|
16
|
+
citations: z$2.array(CitationSchema)
|
|
17
|
+
});
|
|
18
|
+
const InsightModel = new ZodSchemaType(InsightSchema, { name: "Insight" });
|
|
19
|
+
const InsightExtractionSchema = z$2.object({ insights: z$2.array(InsightSchema) });
|
|
20
|
+
const InsightExtractionModel = new ZodSchemaType(InsightExtractionSchema, { name: "InsightExtraction" });
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CitationModel, InsightExtractionModel, InsightModel };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/opportunity-brief.d.ts
|
|
5
|
+
declare const ImpactDirectionSchema: z$2.ZodEnum<{
|
|
6
|
+
up: "up";
|
|
7
|
+
down: "down";
|
|
8
|
+
}>;
|
|
9
|
+
type ImpactDirection = z$2.infer<typeof ImpactDirectionSchema>;
|
|
10
|
+
declare const OpportunityConfidenceSchema: z$2.ZodEnum<{
|
|
11
|
+
low: "low";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
high: "high";
|
|
14
|
+
}>;
|
|
15
|
+
type OpportunityConfidence = z$2.infer<typeof OpportunityConfidenceSchema>;
|
|
16
|
+
declare const CitedTextBlockSchema: z$2.ZodObject<{
|
|
17
|
+
text: z$2.ZodString;
|
|
18
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
19
|
+
chunkId: string;
|
|
20
|
+
quote: string;
|
|
21
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
22
|
+
chunkId: string;
|
|
23
|
+
quote: string;
|
|
24
|
+
}, unknown>>>;
|
|
25
|
+
}, z$2.core.$strip>;
|
|
26
|
+
declare const CitedTextBlockModel: ZodSchemaType<z$2.ZodObject<{
|
|
27
|
+
text: z$2.ZodString;
|
|
28
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
29
|
+
chunkId: string;
|
|
30
|
+
quote: string;
|
|
31
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
32
|
+
chunkId: string;
|
|
33
|
+
quote: string;
|
|
34
|
+
}, unknown>>>;
|
|
35
|
+
}, z$2.core.$strip>>;
|
|
36
|
+
type CitedTextBlock = z$2.infer<typeof CitedTextBlockSchema>;
|
|
37
|
+
declare const RiskSchema: z$2.ZodObject<{
|
|
38
|
+
text: z$2.ZodString;
|
|
39
|
+
citations: z$2.ZodOptional<z$2.ZodArray<z$2.ZodType<{
|
|
40
|
+
chunkId: string;
|
|
41
|
+
quote: string;
|
|
42
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
43
|
+
chunkId: string;
|
|
44
|
+
quote: string;
|
|
45
|
+
}, unknown>>>>;
|
|
46
|
+
}, z$2.core.$strip>;
|
|
47
|
+
declare const RiskModel: ZodSchemaType<z$2.ZodObject<{
|
|
48
|
+
text: z$2.ZodString;
|
|
49
|
+
citations: z$2.ZodOptional<z$2.ZodArray<z$2.ZodType<{
|
|
50
|
+
chunkId: string;
|
|
51
|
+
quote: string;
|
|
52
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
53
|
+
chunkId: string;
|
|
54
|
+
quote: string;
|
|
55
|
+
}, unknown>>>>;
|
|
56
|
+
}, z$2.core.$strip>>;
|
|
57
|
+
type Risk = z$2.infer<typeof RiskSchema>;
|
|
58
|
+
declare const ExpectedImpactSchema: z$2.ZodObject<{
|
|
59
|
+
metric: z$2.ZodString;
|
|
60
|
+
direction: z$2.ZodEnum<{
|
|
61
|
+
up: "up";
|
|
62
|
+
down: "down";
|
|
63
|
+
}>;
|
|
64
|
+
magnitudeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
65
|
+
timeframeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
66
|
+
}, z$2.core.$strip>;
|
|
67
|
+
declare const ExpectedImpactModel: ZodSchemaType<z$2.ZodObject<{
|
|
68
|
+
metric: z$2.ZodString;
|
|
69
|
+
direction: z$2.ZodEnum<{
|
|
70
|
+
up: "up";
|
|
71
|
+
down: "down";
|
|
72
|
+
}>;
|
|
73
|
+
magnitudeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
74
|
+
timeframeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
75
|
+
}, z$2.core.$strip>>;
|
|
76
|
+
type ExpectedImpact = z$2.infer<typeof ExpectedImpactSchema>;
|
|
77
|
+
declare const OpportunityBriefSchema: z$2.ZodObject<{
|
|
78
|
+
opportunityId: z$2.ZodString;
|
|
79
|
+
title: z$2.ZodString;
|
|
80
|
+
problem: z$2.ZodObject<{
|
|
81
|
+
text: z$2.ZodString;
|
|
82
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
83
|
+
chunkId: string;
|
|
84
|
+
quote: string;
|
|
85
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
86
|
+
chunkId: string;
|
|
87
|
+
quote: string;
|
|
88
|
+
}, unknown>>>;
|
|
89
|
+
}, z$2.core.$strip>;
|
|
90
|
+
who: z$2.ZodObject<{
|
|
91
|
+
text: z$2.ZodString;
|
|
92
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
93
|
+
chunkId: string;
|
|
94
|
+
quote: string;
|
|
95
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
96
|
+
chunkId: string;
|
|
97
|
+
quote: string;
|
|
98
|
+
}, unknown>>>;
|
|
99
|
+
}, z$2.core.$strip>;
|
|
100
|
+
proposedChange: z$2.ZodObject<{
|
|
101
|
+
text: z$2.ZodString;
|
|
102
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
103
|
+
chunkId: string;
|
|
104
|
+
quote: string;
|
|
105
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
106
|
+
chunkId: string;
|
|
107
|
+
quote: string;
|
|
108
|
+
}, unknown>>>;
|
|
109
|
+
}, z$2.core.$strip>;
|
|
110
|
+
expectedImpact: z$2.ZodObject<{
|
|
111
|
+
metric: z$2.ZodString;
|
|
112
|
+
direction: z$2.ZodEnum<{
|
|
113
|
+
up: "up";
|
|
114
|
+
down: "down";
|
|
115
|
+
}>;
|
|
116
|
+
magnitudeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
117
|
+
timeframeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
118
|
+
}, z$2.core.$strip>;
|
|
119
|
+
confidence: z$2.ZodEnum<{
|
|
120
|
+
low: "low";
|
|
121
|
+
medium: "medium";
|
|
122
|
+
high: "high";
|
|
123
|
+
}>;
|
|
124
|
+
risks: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
125
|
+
text: z$2.ZodString;
|
|
126
|
+
citations: z$2.ZodOptional<z$2.ZodArray<z$2.ZodType<{
|
|
127
|
+
chunkId: string;
|
|
128
|
+
quote: string;
|
|
129
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
130
|
+
chunkId: string;
|
|
131
|
+
quote: string;
|
|
132
|
+
}, unknown>>>>;
|
|
133
|
+
}, z$2.core.$strip>>>;
|
|
134
|
+
}, z$2.core.$strip>;
|
|
135
|
+
declare const OpportunityBriefModel: ZodSchemaType<z$2.ZodObject<{
|
|
136
|
+
opportunityId: z$2.ZodString;
|
|
137
|
+
title: z$2.ZodString;
|
|
138
|
+
problem: z$2.ZodObject<{
|
|
139
|
+
text: z$2.ZodString;
|
|
140
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
141
|
+
chunkId: string;
|
|
142
|
+
quote: string;
|
|
143
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
144
|
+
chunkId: string;
|
|
145
|
+
quote: string;
|
|
146
|
+
}, unknown>>>;
|
|
147
|
+
}, z$2.core.$strip>;
|
|
148
|
+
who: z$2.ZodObject<{
|
|
149
|
+
text: z$2.ZodString;
|
|
150
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
151
|
+
chunkId: string;
|
|
152
|
+
quote: string;
|
|
153
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
154
|
+
chunkId: string;
|
|
155
|
+
quote: string;
|
|
156
|
+
}, unknown>>>;
|
|
157
|
+
}, z$2.core.$strip>;
|
|
158
|
+
proposedChange: z$2.ZodObject<{
|
|
159
|
+
text: z$2.ZodString;
|
|
160
|
+
citations: z$2.ZodArray<z$2.ZodType<{
|
|
161
|
+
chunkId: string;
|
|
162
|
+
quote: string;
|
|
163
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
164
|
+
chunkId: string;
|
|
165
|
+
quote: string;
|
|
166
|
+
}, unknown>>>;
|
|
167
|
+
}, z$2.core.$strip>;
|
|
168
|
+
expectedImpact: z$2.ZodObject<{
|
|
169
|
+
metric: z$2.ZodString;
|
|
170
|
+
direction: z$2.ZodEnum<{
|
|
171
|
+
up: "up";
|
|
172
|
+
down: "down";
|
|
173
|
+
}>;
|
|
174
|
+
magnitudeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
175
|
+
timeframeHint: z$2.ZodOptional<z$2.ZodString>;
|
|
176
|
+
}, z$2.core.$strip>;
|
|
177
|
+
confidence: z$2.ZodEnum<{
|
|
178
|
+
low: "low";
|
|
179
|
+
medium: "medium";
|
|
180
|
+
high: "high";
|
|
181
|
+
}>;
|
|
182
|
+
risks: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
|
|
183
|
+
text: z$2.ZodString;
|
|
184
|
+
citations: z$2.ZodOptional<z$2.ZodArray<z$2.ZodType<{
|
|
185
|
+
chunkId: string;
|
|
186
|
+
quote: string;
|
|
187
|
+
}, unknown, z$2.core.$ZodTypeInternals<{
|
|
188
|
+
chunkId: string;
|
|
189
|
+
quote: string;
|
|
190
|
+
}, unknown>>>>;
|
|
191
|
+
}, z$2.core.$strip>>>;
|
|
192
|
+
}, z$2.core.$strip>>;
|
|
193
|
+
type OpportunityBrief = z$2.infer<typeof OpportunityBriefSchema>;
|
|
194
|
+
//#endregion
|
|
195
|
+
export { CitedTextBlock, CitedTextBlockModel, ExpectedImpact, ExpectedImpactModel, ImpactDirection, OpportunityBrief, OpportunityBriefModel, OpportunityConfidence, Risk, RiskModel };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CitationModel } from "./insights.js";
|
|
2
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
3
|
+
import * as z$2 from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/product-intent/opportunity-brief.ts
|
|
6
|
+
const ImpactDirectionSchema = z$2.enum(["up", "down"]);
|
|
7
|
+
const OpportunityConfidenceSchema = z$2.enum([
|
|
8
|
+
"low",
|
|
9
|
+
"medium",
|
|
10
|
+
"high"
|
|
11
|
+
]);
|
|
12
|
+
const CitedTextBlockSchema = z$2.object({
|
|
13
|
+
text: z$2.string().min(1),
|
|
14
|
+
citations: z$2.array(CitationModel.getZod())
|
|
15
|
+
});
|
|
16
|
+
const CitedTextBlockModel = new ZodSchemaType(CitedTextBlockSchema, { name: "CitedTextBlock" });
|
|
17
|
+
const RiskSchema = z$2.object({
|
|
18
|
+
text: z$2.string().min(1),
|
|
19
|
+
citations: z$2.array(CitationModel.getZod()).optional()
|
|
20
|
+
});
|
|
21
|
+
const RiskModel = new ZodSchemaType(RiskSchema, { name: "Risk" });
|
|
22
|
+
const ExpectedImpactSchema = z$2.object({
|
|
23
|
+
metric: z$2.string().min(1),
|
|
24
|
+
direction: ImpactDirectionSchema,
|
|
25
|
+
magnitudeHint: z$2.string().min(1).optional(),
|
|
26
|
+
timeframeHint: z$2.string().min(1).optional()
|
|
27
|
+
});
|
|
28
|
+
const ExpectedImpactModel = new ZodSchemaType(ExpectedImpactSchema, { name: "ExpectedImpact" });
|
|
29
|
+
const OpportunityBriefSchema = z$2.object({
|
|
30
|
+
opportunityId: z$2.string().min(1),
|
|
31
|
+
title: z$2.string().min(1),
|
|
32
|
+
problem: CitedTextBlockSchema,
|
|
33
|
+
who: CitedTextBlockSchema,
|
|
34
|
+
proposedChange: CitedTextBlockSchema,
|
|
35
|
+
expectedImpact: ExpectedImpactSchema,
|
|
36
|
+
confidence: OpportunityConfidenceSchema,
|
|
37
|
+
risks: z$2.array(RiskSchema).optional()
|
|
38
|
+
});
|
|
39
|
+
const OpportunityBriefModel = new ZodSchemaType(OpportunityBriefSchema, { name: "OpportunityBrief" });
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CitedTextBlockModel, ExpectedImpactModel, OpportunityBriefModel, RiskModel };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ZodSchemaType } from "@contractspec/lib.schema";
|
|
2
|
+
import * as z$2 from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/product-intent/problems.d.ts
|
|
5
|
+
declare const ProblemSeveritySchema: z$2.ZodEnum<{
|
|
6
|
+
low: "low";
|
|
7
|
+
medium: "medium";
|
|
8
|
+
high: "high";
|
|
9
|
+
}>;
|
|
10
|
+
type ProblemSeverity = z$2.infer<typeof ProblemSeveritySchema>;
|
|
11
|
+
declare const ProblemStatementSchema: z$2.ZodObject<{
|
|
12
|
+
problemId: z$2.ZodString;
|
|
13
|
+
statement: z$2.ZodString;
|
|
14
|
+
evidenceIds: z$2.ZodArray<z$2.ZodString>;
|
|
15
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
16
|
+
severity: z$2.ZodOptional<z$2.ZodEnum<{
|
|
17
|
+
low: "low";
|
|
18
|
+
medium: "medium";
|
|
19
|
+
high: "high";
|
|
20
|
+
}>>;
|
|
21
|
+
}, z$2.core.$strip>;
|
|
22
|
+
declare const ProblemStatementModel: ZodSchemaType<z$2.ZodObject<{
|
|
23
|
+
problemId: z$2.ZodString;
|
|
24
|
+
statement: z$2.ZodString;
|
|
25
|
+
evidenceIds: z$2.ZodArray<z$2.ZodString>;
|
|
26
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
27
|
+
severity: z$2.ZodOptional<z$2.ZodEnum<{
|
|
28
|
+
low: "low";
|
|
29
|
+
medium: "medium";
|
|
30
|
+
high: "high";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z$2.core.$strip>>;
|
|
33
|
+
type ProblemStatement = z$2.infer<typeof ProblemStatementSchema>;
|
|
34
|
+
declare const ProblemGroupingSchema: z$2.ZodObject<{
|
|
35
|
+
problems: z$2.ZodArray<z$2.ZodObject<{
|
|
36
|
+
problemId: z$2.ZodString;
|
|
37
|
+
statement: z$2.ZodString;
|
|
38
|
+
evidenceIds: z$2.ZodArray<z$2.ZodString>;
|
|
39
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
40
|
+
severity: z$2.ZodOptional<z$2.ZodEnum<{
|
|
41
|
+
low: "low";
|
|
42
|
+
medium: "medium";
|
|
43
|
+
high: "high";
|
|
44
|
+
}>>;
|
|
45
|
+
}, z$2.core.$strip>>;
|
|
46
|
+
}, z$2.core.$strip>;
|
|
47
|
+
declare const ProblemGroupingModel: ZodSchemaType<z$2.ZodObject<{
|
|
48
|
+
problems: z$2.ZodArray<z$2.ZodObject<{
|
|
49
|
+
problemId: z$2.ZodString;
|
|
50
|
+
statement: z$2.ZodString;
|
|
51
|
+
evidenceIds: z$2.ZodArray<z$2.ZodString>;
|
|
52
|
+
tags: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
53
|
+
severity: z$2.ZodOptional<z$2.ZodEnum<{
|
|
54
|
+
low: "low";
|
|
55
|
+
medium: "medium";
|
|
56
|
+
high: "high";
|
|
57
|
+
}>>;
|
|
58
|
+
}, z$2.core.$strip>>;
|
|
59
|
+
}, z$2.core.$strip>>;
|
|
60
|
+
type ProblemGrouping = z$2.infer<typeof ProblemGroupingSchema>;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { ProblemGrouping, ProblemGroupingModel, ProblemSeverity, ProblemStatement, ProblemStatementModel };
|