@contractspec/module.examples 1.44.1 → 1.45.1
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/builtins.js.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.js +3 -4
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/libs/contracts/dist/app-config/spec.js +1 -0
- package/dist/libs/contracts/dist/capabilities/capabilities.js +1 -0
- package/dist/libs/contracts/dist/capabilities/index.js +2 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +89 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/client/index.js +5 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +3 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +6 -0
- package/dist/libs/contracts/dist/client/react/index.js +4 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +61 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/data-views/index.js +1 -0
- package/dist/libs/contracts/dist/data-views/registry.js +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +17 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +27 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +57 -0
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +45 -0
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +81 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +58 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-import.docblock.js +65 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-import.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +17 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +358 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +38 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +17 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +21 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +49 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +85 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +46 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +68 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +41 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +70 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +48 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +63 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +156 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +21 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +102 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -0
- package/dist/libs/contracts/dist/examples/index.js +3 -0
- package/dist/libs/contracts/dist/examples/registry.js +145 -0
- package/dist/libs/contracts/dist/examples/registry.js.map +1 -0
- package/dist/libs/contracts/dist/examples/schema.js +102 -0
- package/dist/libs/contracts/dist/examples/schema.js.map +1 -0
- package/dist/libs/contracts/dist/examples/validation.js +1 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/experiments/spec.js +1 -0
- package/dist/libs/contracts/dist/features/index.js +1 -0
- package/dist/libs/contracts/dist/features/registry.js +7 -0
- package/dist/libs/contracts/dist/features/registry.js.map +1 -0
- package/dist/libs/contracts/dist/forms/forms.js +2 -0
- package/dist/libs/contracts/dist/forms/index.js +1 -0
- package/dist/libs/contracts/dist/index.js +109 -0
- package/dist/libs/contracts/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/install.js +2 -0
- package/dist/libs/contracts/dist/integrations/index.js +19 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +230 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +161 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +212 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +243 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +14 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/operations.js +384 -0
- package/dist/libs/contracts/dist/integrations/operations.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/spec.js +1 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/index.js +8 -0
- package/dist/libs/contracts/dist/knowledge/operations.js +313 -0
- package/dist/libs/contracts/dist/knowledge/operations.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spec.js +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +21 -0
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/llm/index.js +2 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/migrations.js +1 -0
- package/dist/libs/contracts/dist/model-registry.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +198 -0
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/openapi.js +2 -0
- package/dist/libs/contracts/dist/operations/index.js +2 -0
- package/dist/libs/contracts/dist/operations/operation.js +35 -0
- package/dist/libs/contracts/dist/operations/operation.js.map +1 -0
- package/dist/libs/contracts/dist/operations/registry.js +2 -0
- package/dist/libs/contracts/dist/ownership.js +22 -0
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/policy/engine.js +1 -0
- package/dist/libs/contracts/dist/policy/index.js +2 -0
- package/dist/libs/contracts/dist/policy/registry.js +1 -0
- package/dist/libs/contracts/dist/presentations/index.js +2 -0
- package/dist/libs/contracts/dist/presentations/registry.js +1 -0
- package/dist/libs/contracts/dist/presentations/transform-engine.js +13 -0
- package/dist/libs/contracts/dist/presentations/transform-engine.js.map +1 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +2 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +5 -0
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/registry-utils.js +71 -0
- package/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/libs/contracts/dist/registry.js +8 -0
- package/dist/libs/contracts/dist/registry.js.map +1 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema-to-markdown.js +1 -0
- package/dist/libs/contracts/dist/server/contracts-adapter-input.js +1 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +8 -0
- package/dist/libs/contracts/dist/server/index.js +8 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/telemetry/index.js +2 -0
- package/dist/libs/contracts/dist/telemetry/spec.js +2 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +2 -0
- package/dist/libs/contracts/dist/tests/runner.js +2 -0
- package/dist/libs/contracts/dist/tests/spec.js +1 -0
- package/dist/libs/contracts/dist/themes.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +2 -0
- package/dist/libs/contracts/dist/workflow/overview.docblock.js +21 -0
- package/dist/libs/contracts/dist/workflow/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +263 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/libs/contracts/dist/workspace-config/workspace-config.docblock.js +45 -0
- package/dist/libs/contracts/dist/workspace-config/workspace-config.docblock.js.map +1 -0
- package/dist/libs/schema/dist/EnumType.js +2 -0
- package/dist/libs/schema/dist/FieldType.js +50 -0
- package/dist/libs/schema/dist/FieldType.js.map +1 -0
- package/dist/libs/schema/dist/GraphQLSchemaType.js +1 -0
- package/dist/libs/schema/dist/JsonSchemaType.js +1 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +237 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js.map +1 -0
- package/dist/libs/schema/dist/SchemaModel.js +35 -0
- package/dist/libs/schema/dist/SchemaModel.js.map +1 -0
- package/dist/libs/schema/dist/ZodSchemaType.js +1 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +2 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +9 -0
- package/dist/registry.d.ts +20 -6
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +24 -10
- package/dist/registry.js.map +1 -1
- package/package.json +37 -37
- package/dist/builtins.d.ts +0 -7
- package/dist/builtins.d.ts.map +0 -1
- package/dist/types.d.ts +0 -53
- package/dist/types.d.ts.map +0 -1
- package/dist/validate.d.ts +0 -19
- package/dist/validate.d.ts.map +0 -1
- package/dist/validate.js +0 -90
- package/dist/validate.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/financial-docs.js
|
|
4
|
+
const financialDocsKnowledgeSpace = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge.financial-docs",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
category: "canonical",
|
|
9
|
+
title: "Household Financial Documents",
|
|
10
|
+
description: "Invoices, bills, and contracts powering Pocket Family Office financial automation.",
|
|
11
|
+
domain: "finance",
|
|
12
|
+
owners: ["platform.finance"],
|
|
13
|
+
tags: ["finance", "documents"],
|
|
14
|
+
stability: StabilityEnum.Beta
|
|
15
|
+
},
|
|
16
|
+
retention: { ttlDays: null },
|
|
17
|
+
access: {
|
|
18
|
+
policy: {
|
|
19
|
+
key: "knowledge.access.financial-docs",
|
|
20
|
+
version: "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
trustLevel: "high",
|
|
23
|
+
automationWritable: true
|
|
24
|
+
},
|
|
25
|
+
indexing: {
|
|
26
|
+
embeddingModel: "mistral-embed",
|
|
27
|
+
chunkSize: 700,
|
|
28
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
29
|
+
},
|
|
30
|
+
description: "Normalized financial documents enabling bill pay automation, reminders, and summaries."
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//# sourceMappingURL=financial-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-docs.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/knowledge/spaces/financial-docs.js"],"sourcesContent":["import { StabilityEnum } from \"../../ownership.js\";\n\n//#region src/knowledge/spaces/financial-docs.ts\nconst financialDocsKnowledgeSpace = {\n\tmeta: {\n\t\tkey: \"knowledge.financial-docs\",\n\t\tversion: \"1.0.0\",\n\t\tcategory: \"canonical\",\n\t\ttitle: \"Household Financial Documents\",\n\t\tdescription: \"Invoices, bills, and contracts powering Pocket Family Office financial automation.\",\n\t\tdomain: \"finance\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\"finance\", \"documents\"],\n\t\tstability: StabilityEnum.Beta\n\t},\n\tretention: { ttlDays: null },\n\taccess: {\n\t\tpolicy: {\n\t\t\tkey: \"knowledge.access.financial-docs\",\n\t\t\tversion: \"1.0.0\"\n\t\t},\n\t\ttrustLevel: \"high\",\n\t\tautomationWritable: true\n\t},\n\tindexing: {\n\t\tembeddingModel: \"mistral-embed\",\n\t\tchunkSize: 700,\n\t\tvectorDbIntegration: \"vectordb.qdrant\"\n\t},\n\tdescription: \"Normalized financial documents enabling bill pay automation, reminders, and summaries.\"\n};\nfunction registerFinancialDocsKnowledgeSpace(registry) {\n\treturn registry.register(financialDocsKnowledgeSpace);\n}\n\n//#endregion\nexport { financialDocsKnowledgeSpace, registerFinancialDocsKnowledgeSpace };"],"mappings":";;;AAGA,MAAM,8BAA8B;CACnC,MAAM;EACL,KAAK;EACL,SAAS;EACT,UAAU;EACV,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM,CAAC,WAAW,YAAY;EAC9B,WAAW,cAAc;EACzB;CACD,WAAW,EAAE,SAAS,MAAM;CAC5B,QAAQ;EACP,QAAQ;GACP,KAAK;GACL,SAAS;GACT;EACD,YAAY;EACZ,oBAAoB;EACpB;CACD,UAAU;EACT,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB;CACD,aAAa;CACb"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/financial-overview.js
|
|
4
|
+
const financialOverviewKnowledgeSpace = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge.financial-overview",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
category: "operational",
|
|
9
|
+
title: "Derived Financial Summaries",
|
|
10
|
+
description: "Aggregated cashflow summaries, category breakdowns, and balance trends derived from open banking data.",
|
|
11
|
+
domain: "finance",
|
|
12
|
+
owners: ["platform.finance"],
|
|
13
|
+
tags: [
|
|
14
|
+
"open-banking",
|
|
15
|
+
"summaries",
|
|
16
|
+
"cashflow"
|
|
17
|
+
],
|
|
18
|
+
stability: StabilityEnum.Experimental
|
|
19
|
+
},
|
|
20
|
+
retention: { ttlDays: 180 },
|
|
21
|
+
access: {
|
|
22
|
+
policy: {
|
|
23
|
+
key: "knowledge.access.financial-overview",
|
|
24
|
+
version: "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
trustLevel: "medium",
|
|
27
|
+
automationWritable: true
|
|
28
|
+
},
|
|
29
|
+
indexing: {
|
|
30
|
+
embeddingModel: "mistral-embed",
|
|
31
|
+
chunkSize: 600,
|
|
32
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
33
|
+
},
|
|
34
|
+
description: "Derived knowledge space containing weekly/monthly cashflow rollups and account health summaries. Raw transactions are excluded to respect privacy guardrails."
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
//# sourceMappingURL=financial-overview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-overview.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/knowledge/spaces/financial-overview.js"],"sourcesContent":["import { StabilityEnum } from \"../../ownership.js\";\n\n//#region src/knowledge/spaces/financial-overview.ts\nconst financialOverviewKnowledgeSpace = {\n\tmeta: {\n\t\tkey: \"knowledge.financial-overview\",\n\t\tversion: \"1.0.0\",\n\t\tcategory: \"operational\",\n\t\ttitle: \"Derived Financial Summaries\",\n\t\tdescription: \"Aggregated cashflow summaries, category breakdowns, and balance trends derived from open banking data.\",\n\t\tdomain: \"finance\",\n\t\towners: [\"platform.finance\"],\n\t\ttags: [\n\t\t\t\"open-banking\",\n\t\t\t\"summaries\",\n\t\t\t\"cashflow\"\n\t\t],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tretention: { ttlDays: 180 },\n\taccess: {\n\t\tpolicy: {\n\t\t\tkey: \"knowledge.access.financial-overview\",\n\t\t\tversion: \"1.0.0\"\n\t\t},\n\t\ttrustLevel: \"medium\",\n\t\tautomationWritable: true\n\t},\n\tindexing: {\n\t\tembeddingModel: \"mistral-embed\",\n\t\tchunkSize: 600,\n\t\tvectorDbIntegration: \"vectordb.qdrant\"\n\t},\n\tdescription: \"Derived knowledge space containing weekly/monthly cashflow rollups and account health summaries. Raw transactions are excluded to respect privacy guardrails.\"\n};\nfunction registerFinancialOverviewKnowledgeSpace(registry) {\n\treturn registry.register(financialOverviewKnowledgeSpace);\n}\n\n//#endregion\nexport { financialOverviewKnowledgeSpace, registerFinancialOverviewKnowledgeSpace };"],"mappings":";;;AAGA,MAAM,kCAAkC;CACvC,MAAM;EACL,KAAK;EACL,SAAS;EACT,UAAU;EACV,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GACL;GACA;GACA;GACA;EACD,WAAW,cAAc;EACzB;CACD,WAAW,EAAE,SAAS,KAAK;CAC3B,QAAQ;EACP,QAAQ;GACP,KAAK;GACL,SAAS;GACT;EACD,YAAY;EACZ,oBAAoB;EACpB;CACD,UAAU;EACT,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB;CACD,aAAa;CACb"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/product-canon.js
|
|
4
|
+
const productCanonKnowledgeSpace = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge.product-canon",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
category: "canonical",
|
|
9
|
+
title: "Product Canon Knowledge Space",
|
|
10
|
+
description: "Authoritative product knowledge covering strategy, roadmap, and delivery canon.",
|
|
11
|
+
domain: "product",
|
|
12
|
+
owners: ["platform.product"],
|
|
13
|
+
tags: ["knowledge", "product"],
|
|
14
|
+
stability: StabilityEnum.Stable
|
|
15
|
+
},
|
|
16
|
+
retention: { ttlDays: null },
|
|
17
|
+
access: {
|
|
18
|
+
policy: {
|
|
19
|
+
key: "knowledge.access.product-canon",
|
|
20
|
+
version: "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
trustLevel: "high",
|
|
23
|
+
automationWritable: false
|
|
24
|
+
},
|
|
25
|
+
indexing: {
|
|
26
|
+
embeddingModel: "text-embedding-3-large",
|
|
27
|
+
chunkSize: 800,
|
|
28
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
29
|
+
},
|
|
30
|
+
description: "Single source of truth for product canon, principles, and strategic narratives."
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//# sourceMappingURL=product-canon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-canon.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/knowledge/spaces/product-canon.js"],"sourcesContent":["import { StabilityEnum } from \"../../ownership.js\";\n\n//#region src/knowledge/spaces/product-canon.ts\nconst productCanonKnowledgeSpace = {\n\tmeta: {\n\t\tkey: \"knowledge.product-canon\",\n\t\tversion: \"1.0.0\",\n\t\tcategory: \"canonical\",\n\t\ttitle: \"Product Canon Knowledge Space\",\n\t\tdescription: \"Authoritative product knowledge covering strategy, roadmap, and delivery canon.\",\n\t\tdomain: \"product\",\n\t\towners: [\"platform.product\"],\n\t\ttags: [\"knowledge\", \"product\"],\n\t\tstability: StabilityEnum.Stable\n\t},\n\tretention: { ttlDays: null },\n\taccess: {\n\t\tpolicy: {\n\t\t\tkey: \"knowledge.access.product-canon\",\n\t\t\tversion: \"1.0.0\"\n\t\t},\n\t\ttrustLevel: \"high\",\n\t\tautomationWritable: false\n\t},\n\tindexing: {\n\t\tembeddingModel: \"text-embedding-3-large\",\n\t\tchunkSize: 800,\n\t\tvectorDbIntegration: \"vectordb.qdrant\"\n\t},\n\tdescription: \"Single source of truth for product canon, principles, and strategic narratives.\"\n};\nfunction registerProductCanonKnowledgeSpace(registry) {\n\treturn registry.register(productCanonKnowledgeSpace);\n}\n\n//#endregion\nexport { productCanonKnowledgeSpace, registerProductCanonKnowledgeSpace };"],"mappings":";;;AAGA,MAAM,6BAA6B;CAClC,MAAM;EACL,KAAK;EACL,SAAS;EACT,UAAU;EACV,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM,CAAC,aAAa,UAAU;EAC9B,WAAW,cAAc;EACzB;CACD,WAAW,EAAE,SAAS,MAAM;CAC5B,QAAQ;EACP,QAAQ;GACP,KAAK;GACL,SAAS;GACT;EACD,YAAY;EACZ,oBAAoB;EACpB;CACD,UAAU;EACT,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB;CACD,aAAa;CACb"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/support-faq.js
|
|
4
|
+
const supportFaqKnowledgeSpace = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge.support-faq",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
category: "operational",
|
|
9
|
+
title: "Support & Success FAQ",
|
|
10
|
+
description: "Operational knowledge base for customer support and success.",
|
|
11
|
+
domain: "support",
|
|
12
|
+
owners: ["platform.support"],
|
|
13
|
+
tags: ["knowledge", "support"],
|
|
14
|
+
stability: StabilityEnum.Beta
|
|
15
|
+
},
|
|
16
|
+
retention: {
|
|
17
|
+
ttlDays: 365,
|
|
18
|
+
archiveAfterDays: 180
|
|
19
|
+
},
|
|
20
|
+
access: {
|
|
21
|
+
policy: {
|
|
22
|
+
key: "knowledge.access.support",
|
|
23
|
+
version: "1.0.0"
|
|
24
|
+
},
|
|
25
|
+
trustLevel: "medium",
|
|
26
|
+
automationWritable: true
|
|
27
|
+
},
|
|
28
|
+
indexing: {
|
|
29
|
+
embeddingModel: "text-embedding-3-small",
|
|
30
|
+
chunkSize: 700,
|
|
31
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
32
|
+
},
|
|
33
|
+
description: "Operational FAQs, runbooks, and customer success playbooks augmented with automation updates."
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//# sourceMappingURL=support-faq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-faq.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/knowledge/spaces/support-faq.js"],"sourcesContent":["import { StabilityEnum } from \"../../ownership.js\";\n\n//#region src/knowledge/spaces/support-faq.ts\nconst supportFaqKnowledgeSpace = {\n\tmeta: {\n\t\tkey: \"knowledge.support-faq\",\n\t\tversion: \"1.0.0\",\n\t\tcategory: \"operational\",\n\t\ttitle: \"Support & Success FAQ\",\n\t\tdescription: \"Operational knowledge base for customer support and success.\",\n\t\tdomain: \"support\",\n\t\towners: [\"platform.support\"],\n\t\ttags: [\"knowledge\", \"support\"],\n\t\tstability: StabilityEnum.Beta\n\t},\n\tretention: {\n\t\tttlDays: 365,\n\t\tarchiveAfterDays: 180\n\t},\n\taccess: {\n\t\tpolicy: {\n\t\t\tkey: \"knowledge.access.support\",\n\t\t\tversion: \"1.0.0\"\n\t\t},\n\t\ttrustLevel: \"medium\",\n\t\tautomationWritable: true\n\t},\n\tindexing: {\n\t\tembeddingModel: \"text-embedding-3-small\",\n\t\tchunkSize: 700,\n\t\tvectorDbIntegration: \"vectordb.qdrant\"\n\t},\n\tdescription: \"Operational FAQs, runbooks, and customer success playbooks augmented with automation updates.\"\n};\nfunction registerSupportFaqKnowledgeSpace(registry) {\n\treturn registry.register(supportFaqKnowledgeSpace);\n}\n\n//#endregion\nexport { registerSupportFaqKnowledgeSpace, supportFaqKnowledgeSpace };"],"mappings":";;;AAGA,MAAM,2BAA2B;CAChC,MAAM;EACL,KAAK;EACL,SAAS;EACT,UAAU;EACV,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM,CAAC,aAAa,UAAU;EAC9B,WAAW,cAAc;EACzB;CACD,WAAW;EACV,SAAS;EACT,kBAAkB;EAClB;CACD,QAAQ;EACP,QAAQ;GACP,KAAK;GACL,SAAS;GACT;EACD,YAAY;EACZ,oBAAoB;EACpB;CACD,UAAU;EACT,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB;CACD,aAAa;CACb"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/uploaded-docs.js
|
|
4
|
+
const uploadedDocsKnowledgeSpace = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "knowledge.uploaded-docs",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
category: "external",
|
|
9
|
+
title: "Uploaded Knowledge Assets",
|
|
10
|
+
description: "Documents uploaded by households, including invoices, contracts, and reference files.",
|
|
11
|
+
domain: "operations",
|
|
12
|
+
owners: ["platform.operations"],
|
|
13
|
+
tags: ["documents", "storage"],
|
|
14
|
+
stability: StabilityEnum.Beta
|
|
15
|
+
},
|
|
16
|
+
retention: { ttlDays: null },
|
|
17
|
+
access: {
|
|
18
|
+
policy: {
|
|
19
|
+
key: "knowledge.access.uploaded-docs",
|
|
20
|
+
version: "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
trustLevel: "medium",
|
|
23
|
+
automationWritable: true
|
|
24
|
+
},
|
|
25
|
+
indexing: {
|
|
26
|
+
embeddingModel: "mistral-embed",
|
|
27
|
+
chunkSize: 900,
|
|
28
|
+
vectorDbIntegration: "vectordb.qdrant"
|
|
29
|
+
},
|
|
30
|
+
description: "User-provided documents normalized and embedded for retrieval augmented workflows."
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
//# sourceMappingURL=uploaded-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploaded-docs.js","names":[],"sources":["../../../../../../../../libs/contracts/dist/knowledge/spaces/uploaded-docs.js"],"sourcesContent":["import { StabilityEnum } from \"../../ownership.js\";\n\n//#region src/knowledge/spaces/uploaded-docs.ts\nconst uploadedDocsKnowledgeSpace = {\n\tmeta: {\n\t\tkey: \"knowledge.uploaded-docs\",\n\t\tversion: \"1.0.0\",\n\t\tcategory: \"external\",\n\t\ttitle: \"Uploaded Knowledge Assets\",\n\t\tdescription: \"Documents uploaded by households, including invoices, contracts, and reference files.\",\n\t\tdomain: \"operations\",\n\t\towners: [\"platform.operations\"],\n\t\ttags: [\"documents\", \"storage\"],\n\t\tstability: StabilityEnum.Beta\n\t},\n\tretention: { ttlDays: null },\n\taccess: {\n\t\tpolicy: {\n\t\t\tkey: \"knowledge.access.uploaded-docs\",\n\t\t\tversion: \"1.0.0\"\n\t\t},\n\t\ttrustLevel: \"medium\",\n\t\tautomationWritable: true\n\t},\n\tindexing: {\n\t\tembeddingModel: \"mistral-embed\",\n\t\tchunkSize: 900,\n\t\tvectorDbIntegration: \"vectordb.qdrant\"\n\t},\n\tdescription: \"User-provided documents normalized and embedded for retrieval augmented workflows.\"\n};\nfunction registerUploadedDocsKnowledgeSpace(registry) {\n\treturn registry.register(uploadedDocsKnowledgeSpace);\n}\n\n//#endregion\nexport { registerUploadedDocsKnowledgeSpace, uploadedDocsKnowledgeSpace };"],"mappings":";;;AAGA,MAAM,6BAA6B;CAClC,MAAM;EACL,KAAK;EACL,SAAS;EACT,UAAU;EACV,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,sBAAsB;EAC/B,MAAM,CAAC,aAAa,UAAU;EAC9B,WAAW,cAAc;EACzB;CACD,WAAW,EAAE,SAAS,MAAM;CAC5B,QAAQ;EACP,QAAQ;GACP,KAAK;GACL,SAAS;GACT;EACD,YAAY;EACZ,oBAAoB;EACpB;CACD,UAAU;EACT,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB;CACD,aAAa;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../registry.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "../jsonschema.js";
|
|
2
|
+
import "../operations/index.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../libs/contracts/dist/llm/exporters.js
|
|
5
|
+
const DEFAULT_SPEC_OPTIONS = {
|
|
6
|
+
format: "full",
|
|
7
|
+
includeSchemas: true,
|
|
8
|
+
includeScenarios: true,
|
|
9
|
+
includeExamples: true,
|
|
10
|
+
includePolicy: true,
|
|
11
|
+
includeSideEffects: true
|
|
12
|
+
};
|
|
13
|
+
const DEFAULT_FEATURE_OPTIONS = {
|
|
14
|
+
...DEFAULT_SPEC_OPTIONS,
|
|
15
|
+
includeRelatedSpecs: true,
|
|
16
|
+
includeRelatedEvents: true,
|
|
17
|
+
includeRelatedPresentations: true
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//# sourceMappingURL=exporters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exporters.js","names":[],"sources":["../../../../../../../libs/contracts/dist/llm/exporters.js"],"sourcesContent":["import { jsonSchemaForSpec } from \"../jsonschema.js\";\nimport { isEmitDeclRef } from \"../operations/operation.js\";\nimport \"../operations/index.js\";\n\n//#region src/llm/exporters.ts\nconst DEFAULT_SPEC_OPTIONS = {\n\tformat: \"full\",\n\tincludeSchemas: true,\n\tincludeScenarios: true,\n\tincludeExamples: true,\n\tincludePolicy: true,\n\tincludeSideEffects: true\n};\nconst DEFAULT_FEATURE_OPTIONS = {\n\t...DEFAULT_SPEC_OPTIONS,\n\tincludeRelatedSpecs: true,\n\tincludeRelatedEvents: true,\n\tincludeRelatedPresentations: true\n};\n/**\n* Export a single spec to context-focused markdown.\n* Includes: goal, context, description, acceptance scenarios.\n* Best for: Understanding what the spec does, providing context to LLMs.\n*/\nfunction operationSpecToContextMarkdown(spec) {\n\tconst m = spec.meta;\n\tconst lines = [];\n\tlines.push(`# ${m.key} (v${m.version})`);\n\tlines.push(\"\");\n\tlines.push(`> ${m.description}`);\n\tlines.push(\"\");\n\tlines.push(`**Type:** ${m.kind} | **Stability:** ${m.stability}`);\n\tlines.push(\"\");\n\tlines.push(\"## Goal\");\n\tlines.push(\"\");\n\tlines.push(m.goal);\n\tlines.push(\"\");\n\tlines.push(\"## Context\");\n\tlines.push(\"\");\n\tlines.push(m.context);\n\tlines.push(\"\");\n\tif (spec.acceptance?.scenarios?.length) {\n\t\tlines.push(\"## Acceptance Criteria\");\n\t\tlines.push(\"\");\n\t\tfor (const s of spec.acceptance.scenarios) {\n\t\t\tlines.push(`### ${s.key}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Given:**\");\n\t\t\tfor (const g of s.given) lines.push(`- ${g}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**When:**\");\n\t\t\tfor (const w of s.when) lines.push(`- ${w}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Then:**\");\n\t\t\tfor (const t of s.then) lines.push(`- ${t}`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a single spec to full markdown with all details.\n* Includes: all fields, I/O schemas, policy, events, examples.\n* Best for: Complete documentation, implementation reference.\n*/\nfunction operationSpecToFullMarkdown(spec, options = {}) {\n\tconst opts = {\n\t\t...DEFAULT_SPEC_OPTIONS,\n\t\t...options\n\t};\n\tconst m = spec.meta;\n\tconst lines = [];\n\tlines.push(`# ${m.key}.v${m.version}`);\n\tlines.push(\"\");\n\tlines.push(`> ${m.description}`);\n\tlines.push(\"\");\n\tlines.push(\"## Metadata\");\n\tlines.push(\"\");\n\tlines.push(\"| Field | Value |\");\n\tlines.push(\"|-------|-------|\");\n\tlines.push(`| Kind | ${m.kind} |`);\n\tlines.push(`| Stability | ${m.stability} |`);\n\tlines.push(`| Owners | ${m.owners.join(\", \")} |`);\n\tlines.push(`| Tags | ${m.tags.join(\", \")} |`);\n\tlines.push(\"\");\n\tlines.push(\"## Goal\");\n\tlines.push(\"\");\n\tlines.push(m.goal);\n\tlines.push(\"\");\n\tlines.push(\"## Context\");\n\tlines.push(\"\");\n\tlines.push(m.context);\n\tlines.push(\"\");\n\tif (opts.includeSchemas) {\n\t\tlines.push(\"## Input/Output\");\n\t\tlines.push(\"\");\n\t\tif (spec.io.input) {\n\t\t\tlines.push(\"### Input Schema\");\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"```json\");\n\t\t\ttry {\n\t\t\t\tconst schema = jsonSchemaForSpec(spec);\n\t\t\t\tlines.push(JSON.stringify(schema.input ?? {}, null, 2));\n\t\t\t} catch {\n\t\t\t\tlines.push(\"// Schema generation not available\");\n\t\t\t}\n\t\t\tlines.push(\"```\");\n\t\t\tlines.push(\"\");\n\t\t}\n\t\tlines.push(\"### Output Schema\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"```json\");\n\t\ttry {\n\t\t\tconst schema = jsonSchemaForSpec(spec);\n\t\t\tlines.push(JSON.stringify(schema.output ?? {}, null, 2));\n\t\t} catch {\n\t\t\tlines.push(\"// Schema generation not available\");\n\t\t}\n\t\tlines.push(\"```\");\n\t\tlines.push(\"\");\n\t\tif (spec.io.errors && Object.keys(spec.io.errors).length) {\n\t\t\tlines.push(\"### Error Codes\");\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"| Code | HTTP | Description | When |\");\n\t\t\tlines.push(\"|------|------|-------------|------|\");\n\t\t\tfor (const [code, err] of Object.entries(spec.io.errors)) lines.push(`| \\`${code}\\` | ${err.http ?? 400} | ${err.description} | ${err.when} |`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\tif (opts.includePolicy) {\n\t\tlines.push(\"## Policy\");\n\t\tlines.push(\"\");\n\t\tlines.push(`- **Auth Required:** ${spec.policy.auth}`);\n\t\tlines.push(`- **Idempotent:** ${spec.policy.idempotent ?? m.kind === \"query\"}`);\n\t\tif (spec.policy.rateLimit) lines.push(`- **Rate Limit:** ${spec.policy.rateLimit.rpm} rpm per ${spec.policy.rateLimit.key}`);\n\t\tif (spec.policy.flags?.length) lines.push(`- **Feature Flags:** ${spec.policy.flags.join(\", \")}`);\n\t\tif (spec.policy.pii?.length) lines.push(`- **PII Fields:** ${spec.policy.pii.join(\", \")}`);\n\t\tif (spec.policy.escalate) lines.push(`- **Escalation:** ${spec.policy.escalate}`);\n\t\tlines.push(\"\");\n\t}\n\tif (opts.includeSideEffects && spec.sideEffects) {\n\t\tif (spec.sideEffects.emits?.length) {\n\t\t\tlines.push(\"## Events Emitted\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const e of spec.sideEffects.emits) if (isEmitDeclRef(e)) lines.push(`- \\`${e.ref.key}.v${e.ref.version}\\` — ${e.when}`);\n\t\t\telse lines.push(`- \\`${e.key}.v${e.version}\\` — ${e.when}`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t\tif (spec.sideEffects.analytics?.length) {\n\t\t\tlines.push(\"## Analytics Events\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const a of spec.sideEffects.analytics) lines.push(`- ${a}`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\tif (opts.includeScenarios && spec.acceptance?.scenarios?.length) {\n\t\tlines.push(\"## Acceptance Scenarios\");\n\t\tlines.push(\"\");\n\t\tfor (const s of spec.acceptance.scenarios) {\n\t\t\tlines.push(`### ${s.key}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Given:**\");\n\t\t\tfor (const g of s.given) lines.push(`- ${g}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**When:**\");\n\t\t\tfor (const w of s.when) lines.push(`- ${w}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Then:**\");\n\t\t\tfor (const t of s.then) lines.push(`- ${t}`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\tif (opts.includeExamples && spec.acceptance?.examples?.length) {\n\t\tlines.push(\"## Examples\");\n\t\tlines.push(\"\");\n\t\tfor (const ex of spec.acceptance.examples) {\n\t\t\tlines.push(`### ${ex.key}`);\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Input:**\");\n\t\t\tlines.push(\"```json\");\n\t\t\tlines.push(JSON.stringify(ex.input, null, 2));\n\t\t\tlines.push(\"```\");\n\t\t\tlines.push(\"\");\n\t\t\tlines.push(\"**Output:**\");\n\t\t\tlines.push(\"```json\");\n\t\t\tlines.push(JSON.stringify(ex.output, null, 2));\n\t\t\tlines.push(\"```\");\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\tif (spec.transport) {\n\t\tlines.push(\"## Transport Configuration\");\n\t\tlines.push(\"\");\n\t\tif (spec.transport.rest) lines.push(`- **REST:** ${spec.transport.rest.method ?? \"POST\"} ${spec.transport.rest.path ?? \"auto\"}`);\n\t\tif (spec.transport.gql) lines.push(`- **GraphQL:** ${spec.transport.gql.field ?? \"auto\"}`);\n\t\tif (spec.transport.mcp) lines.push(`- **MCP Tool:** ${spec.transport.mcp.toolName ?? \"auto\"}`);\n\t\tlines.push(\"\");\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a single spec as an actionable agent prompt.\n* Includes: instructions, full spec, expected output format.\n* Best for: Directly feeding to coding agents for implementation.\n*/\nfunction operationSpecToAgentPrompt(spec, options) {\n\tconst taskType = options?.taskType ?? \"implement\";\n\tconst m = spec.meta;\n\tconst lines = [];\n\tconst taskVerb = {\n\t\timplement: \"Implement\",\n\t\ttest: \"Write tests for\",\n\t\trefactor: \"Refactor\",\n\t\treview: \"Review\"\n\t}[taskType];\n\tlines.push(`# Task: ${taskVerb} ${m.key}.v${m.version}`);\n\tlines.push(\"\");\n\tlines.push(\"## Context\");\n\tlines.push(\"\");\n\tlines.push(`You are working on a ContractSpec-driven codebase. This spec defines a ${m.kind} operation.`);\n\tlines.push(\"\");\n\tlines.push(`**Goal:** ${m.goal}`);\n\tlines.push(\"\");\n\tlines.push(`**Background:** ${m.context}`);\n\tlines.push(\"\");\n\tlines.push(\"## Specification\");\n\tlines.push(\"\");\n\tlines.push(operationSpecToFullMarkdown(spec));\n\tlines.push(\"\");\n\tlines.push(\"## Instructions\");\n\tlines.push(\"\");\n\tif (taskType === \"implement\") {\n\t\tlines.push(\"Implement this specification following these requirements:\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"1. **Type Safety**: Use TypeScript with strict typing. No `any` types.\");\n\t\tlines.push(\"2. **Input Validation**: Validate input against the schema before processing.\");\n\t\tlines.push(\"3. **Error Handling**: Implement all error cases defined in the spec.\");\n\t\tlines.push(\"4. **Events**: Emit events as specified in sideEffects.emits.\");\n\t\tlines.push(\"5. **Policy**: Respect auth, rate limits, and feature flags.\");\n\t\tlines.push(\"6. **Idempotency**: \" + (spec.policy.idempotent ? \"This operation MUST be idempotent.\" : \"This operation may have side effects.\"));\n\t\tlines.push(\"\");\n\t\tif (spec.policy.pii?.length) {\n\t\t\tlines.push(\"**PII Handling**: The following fields contain PII and must be handled carefully:\");\n\t\t\tfor (const field of spec.policy.pii) lines.push(`- ${field}`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t} else if (taskType === \"test\") {\n\t\tlines.push(\"Write comprehensive tests for this specification:\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"1. Test all acceptance scenarios defined in the spec.\");\n\t\tlines.push(\"2. Test all error cases with appropriate assertions.\");\n\t\tlines.push(\"3. Test edge cases and boundary conditions.\");\n\t\tlines.push(\"4. Verify events are emitted correctly.\");\n\t\tlines.push(\"5. Use descriptive test names following the pattern: \\\"should [behavior] when [condition]\\\"\");\n\t\tlines.push(\"\");\n\t} else if (taskType === \"refactor\") {\n\t\tlines.push(\"Refactor this implementation while preserving all behavior:\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"1. Maintain compliance with the specification.\");\n\t\tlines.push(\"2. Improve code clarity and maintainability.\");\n\t\tlines.push(\"3. Reduce complexity where possible.\");\n\t\tlines.push(\"4. Ensure all existing tests still pass.\");\n\t\tlines.push(\"\");\n\t} else if (taskType === \"review\") {\n\t\tlines.push(\"Review this implementation against the specification:\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"1. Verify input/output types match the schema.\");\n\t\tlines.push(\"2. Check all error cases are handled.\");\n\t\tlines.push(\"3. Verify events are emitted as specified.\");\n\t\tlines.push(\"4. Check policy compliance (auth, rate limits).\");\n\t\tlines.push(\"5. Report any deviations from the spec.\");\n\t\tlines.push(\"\");\n\t}\n\tif (options?.existingCode) {\n\t\tlines.push(\"## Existing Code\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"```typescript\");\n\t\tlines.push(options.existingCode);\n\t\tlines.push(\"```\");\n\t\tlines.push(\"\");\n\t}\n\tlines.push(\"## Expected Output\");\n\tlines.push(\"\");\n\tif (taskType === \"implement\" || taskType === \"refactor\") {\n\t\tlines.push(\"Provide a complete TypeScript implementation. Include:\");\n\t\tlines.push(\"- Type definitions for input/output\");\n\t\tlines.push(\"- Handler function with proper error handling\");\n\t\tlines.push(\"- JSDoc comments explaining the implementation\");\n\t} else if (taskType === \"test\") lines.push(\"Provide a complete test file using the testing framework available (prefer Vitest).\");\n\telse if (taskType === \"review\") {\n\t\tlines.push(\"Provide a structured review with:\");\n\t\tlines.push(\"- Compliance status (pass/fail for each requirement)\");\n\t\tlines.push(\"- Issues found with severity (error/warning/info)\");\n\t\tlines.push(\"- Suggestions for improvement\");\n\t}\n\tlines.push(\"\");\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a feature module to markdown.\n* Includes all related specs, events, and presentations.\n*/\nfunction featureToMarkdown(feature, deps, options = {}) {\n\tconst opts = {\n\t\t...DEFAULT_FEATURE_OPTIONS,\n\t\t...options\n\t};\n\tconst m = feature.meta;\n\tconst lines = [];\n\tlines.push(`# Feature: ${m.title ?? m.key}`);\n\tlines.push(\"\");\n\tif (m.description) {\n\t\tlines.push(`> ${m.description}`);\n\t\tlines.push(\"\");\n\t}\n\tlines.push(\"## Overview\");\n\tlines.push(\"\");\n\tlines.push(`- **Key:** \\`${m.key}\\``);\n\tlines.push(`- **Stability:** ${m.stability}`);\n\tlines.push(`- **Owners:** ${m.owners.join(\", \")}`);\n\tif (m.tags?.length) lines.push(`- **Tags:** ${m.tags.join(\", \")}`);\n\tlines.push(\"\");\n\tif (feature.operations?.length) {\n\t\tlines.push(\"## Operations\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"| Name | Version | Type |\");\n\t\tlines.push(\"|------|---------|------|\");\n\t\tfor (const op of feature.operations) {\n\t\t\tconst kind = (deps?.specs?.get(op.key, op.version))?.meta.kind ?? \"unknown\";\n\t\t\tlines.push(`| ${op.key} | v${op.version} | ${kind} |`);\n\t\t}\n\t\tlines.push(\"\");\n\t\tif (opts.includeRelatedSpecs && deps?.specs) {\n\t\t\tlines.push(\"### Operation Details\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const op of feature.operations) {\n\t\t\t\tconst spec = deps.specs.get(op.key, op.version);\n\t\t\t\tif (spec) {\n\t\t\t\t\tlines.push(`---`);\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t\tlines.push(operationSpecToFullMarkdown(spec, opts));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (feature.events?.length) {\n\t\tlines.push(\"## Events\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"| Name | Version |\");\n\t\tlines.push(\"|------|---------|\");\n\t\tfor (const evt of feature.events) lines.push(`| ${evt.key} | v${evt.version} |`);\n\t\tlines.push(\"\");\n\t}\n\tif (feature.presentations?.length) {\n\t\tlines.push(\"## Presentations\");\n\t\tlines.push(\"\");\n\t\tlines.push(\"| Name | Version |\");\n\t\tlines.push(\"|------|---------|\");\n\t\tfor (const pres of feature.presentations) lines.push(`| ${pres.key} | v${pres.version} |`);\n\t\tlines.push(\"\");\n\t\tif (opts.includeRelatedPresentations && deps?.presentations) {\n\t\t\tlines.push(\"### Presentation Details\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const pres of feature.presentations) {\n\t\t\t\tconst p = deps.presentations.get(pres.key, pres.version);\n\t\t\t\tif (p) {\n\t\t\t\t\tlines.push(`#### ${pres.key}.v${pres.version}`);\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t\tlines.push(`- **Type:** ${p.source.type}`);\n\t\t\t\t\tif (p.source.type === \"component\") lines.push(`- **Component:** ${p.source.componentKey}`);\n\t\t\t\t\tlines.push(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif (feature.capabilities) {\n\t\tif (feature.capabilities.provides?.length) {\n\t\t\tlines.push(\"## Capabilities Provided\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const cap of feature.capabilities.provides) lines.push(`- \\`${cap.key}.v${cap.version}\\``);\n\t\t\tlines.push(\"\");\n\t\t}\n\t\tif (feature.capabilities.requires?.length) {\n\t\t\tlines.push(\"## Capabilities Required\");\n\t\t\tlines.push(\"\");\n\t\t\tfor (const cap of feature.capabilities.requires) lines.push(`- \\`${cap.key}\\`${cap.version ? `.v${cap.version}` : \"\"} (${cap.optional ? \"optional\" : \"required\"})`);\n\t\t\tlines.push(\"\");\n\t\t}\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a presentation descriptor to markdown.\n*/\nfunction presentationToMarkdown(presentation) {\n\tconst m = presentation.meta;\n\tconst lines = [];\n\tlines.push(`# Presentation: ${m.key}.v${m.version}`);\n\tlines.push(\"\");\n\tif (m.description) {\n\t\tlines.push(`> ${m.description}`);\n\t\tlines.push(\"\");\n\t}\n\tlines.push(\"## Metadata\");\n\tlines.push(\"\");\n\tlines.push(`- **Name:** ${m.key}`);\n\tlines.push(`- **Version:** ${m.version}`);\n\tif (m.stability) lines.push(`- **Stability:** ${m.stability}`);\n\tif (m.owners?.length) lines.push(`- **Owners:** ${m.owners.join(\", \")}`);\n\tif (m.tags?.length) lines.push(`- **Tags:** ${m.tags.join(\", \")}`);\n\tlines.push(\"\");\n\tlines.push(\"## Source\");\n\tlines.push(\"\");\n\tlines.push(`- **Type:** ${presentation.source.type}`);\n\tif (presentation.source.type === \"component\") {\n\t\tlines.push(`- **Framework:** ${presentation.source.framework}`);\n\t\tlines.push(`- **Component Key:** ${presentation.source.componentKey}`);\n\t}\n\tlines.push(\"\");\n\tlines.push(\"## Supported Targets\");\n\tlines.push(\"\");\n\tfor (const target of presentation.targets) lines.push(`- ${target}`);\n\tlines.push(\"\");\n\tif (presentation.policy) {\n\t\tlines.push(\"## Policy\");\n\t\tlines.push(\"\");\n\t\tif (presentation.policy.flags?.length) lines.push(`- **Feature Flags:** ${presentation.policy.flags.join(\", \")}`);\n\t\tif (presentation.policy.pii?.length) lines.push(`- **PII Fields:** ${presentation.policy.pii.join(\", \")}`);\n\t\tlines.push(\"\");\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export an event spec to markdown.\n*/\nfunction eventToMarkdown(event) {\n\tconst lines = [];\n\tlines.push(`# Event: ${event.meta.key}.v${event.meta.version}`);\n\tlines.push(\"\");\n\tlines.push(\"## Metadata\");\n\tlines.push(\"\");\n\tlines.push(`- **Name:** ${event.meta.key}`);\n\tlines.push(`- **Version:** ${event.meta.version}`);\n\tif (event.meta.description) lines.push(`- **Description:** ${event.meta.description}`);\n\tlines.push(\"\");\n\tlines.push(\"## Payload Schema\");\n\tlines.push(\"\");\n\tlines.push(\"```json\");\n\ttry {\n\t\tconst zodSchema = event.payload.getZod();\n\t\tif (\"shape\" in zodSchema && zodSchema.shape) {\n\t\t\tconst shape = zodSchema.shape;\n\t\t\tconst fields = Object.keys(shape);\n\t\t\tlines.push(JSON.stringify({ fields }, null, 2));\n\t\t} else lines.push(\"// Payload schema available at runtime\");\n\t} catch {\n\t\tlines.push(\"// Schema details available at runtime\");\n\t}\n\tlines.push(\"```\");\n\tlines.push(\"\");\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a DocBlock to markdown (already markdown, but formatted consistently).\n*/\nfunction docBlockToMarkdown(doc) {\n\tconst lines = [];\n\tlines.push(`# ${doc.title}`);\n\tlines.push(\"\");\n\tif (doc.summary) {\n\t\tlines.push(`> ${doc.summary}`);\n\t\tlines.push(\"\");\n\t}\n\tlines.push(\"## Metadata\");\n\tlines.push(\"\");\n\tlines.push(`- **ID:** ${doc.id}`);\n\tlines.push(`- **Kind:** ${doc.kind ?? \"reference\"}`);\n\tlines.push(`- **Visibility:** ${doc.visibility ?? \"public\"}`);\n\tif (doc.tags?.length) lines.push(`- **Tags:** ${doc.tags.join(\", \")}`);\n\tif (doc.owners?.length) lines.push(`- **Owners:** ${doc.owners.join(\", \")}`);\n\tif (doc.domain) lines.push(`- **Domain:** ${doc.domain}`);\n\tlines.push(\"\");\n\tlines.push(\"## Content\");\n\tlines.push(\"\");\n\tlines.push(doc.body);\n\tlines.push(\"\");\n\tif (doc.links?.length) {\n\t\tlines.push(\"## Related Links\");\n\t\tlines.push(\"\");\n\t\tfor (const link of doc.links) lines.push(`- [${link.label}](${link.href})`);\n\t\tlines.push(\"\");\n\t}\n\treturn lines.join(\"\\n\");\n}\n/**\n* Export a spec with a specific format.\n* Convenience function that wraps the format-specific functions.\n*/\nfunction exportSpec(spec, options = {}) {\n\tconst format = options.format ?? \"full\";\n\tlet markdown;\n\tswitch (format) {\n\t\tcase \"context\":\n\t\t\tmarkdown = operationSpecToContextMarkdown(spec);\n\t\t\tbreak;\n\t\tcase \"prompt\":\n\t\t\tmarkdown = operationSpecToAgentPrompt(spec);\n\t\t\tbreak;\n\t\tcase \"full\":\n\t\tdefault:\n\t\t\tmarkdown = operationSpecToFullMarkdown(spec, options);\n\t\t\tbreak;\n\t}\n\treturn {\n\t\tspec,\n\t\tmarkdown,\n\t\tformat,\n\t\tmeta: {\n\t\t\tspecName: spec.meta.key,\n\t\t\tspecVersion: spec.meta.version,\n\t\t\texportedAt: (/* @__PURE__ */ new Date()).toISOString(),\n\t\t\twordCount: markdown.split(/\\s+/).length\n\t\t}\n\t};\n}\n/**\n* Export a feature with a specific format.\n*/\nfunction exportFeature(feature, deps, options = {}) {\n\tconst format = options.format ?? \"full\";\n\treturn {\n\t\tfeature,\n\t\tmarkdown: featureToMarkdown(feature, deps, options),\n\t\tformat,\n\t\tincludedSpecs: feature.operations?.map((o) => `${o.key}.v${o.version}`) ?? [],\n\t\tincludedEvents: feature.events?.map((e) => `${e.key}.v${e.version}`) ?? [],\n\t\tincludedPresentations: feature.presentations?.map((p) => `${p.key}.v${p.version}`) ?? []\n\t};\n}\n\n//#endregion\nexport { docBlockToMarkdown, eventToMarkdown, exportFeature, exportSpec, featureToMarkdown, operationSpecToAgentPrompt, operationSpecToContextMarkdown, operationSpecToFullMarkdown, presentationToMarkdown };"],"mappings":";;;;AAKA,MAAM,uBAAuB;CAC5B,QAAQ;CACR,gBAAgB;CAChB,kBAAkB;CAClB,iBAAiB;CACjB,eAAe;CACf,oBAAoB;CACpB;AACD,MAAM,0BAA0B;CAC/B,GAAG;CACH,qBAAqB;CACrB,sBAAsB;CACtB,6BAA6B;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./exporters.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { compareVersions } from "compare-versions";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../schema/dist/index.js";
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { ScalarTypeEnum } from "../../schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { SchemaModel } from "../../schema/dist/SchemaModel.js";
|
|
3
|
+
import "../../schema/dist/index.js";
|
|
4
|
+
import { OwnersEnum, StabilityEnum } from "./ownership.js";
|
|
5
|
+
import { defineCommand, defineQuery } from "./operations/operation.js";
|
|
6
|
+
import "./operations/index.js";
|
|
7
|
+
|
|
8
|
+
//#region ../../libs/contracts/dist/onboarding-base.js
|
|
9
|
+
/**
|
|
10
|
+
* Shared base contracts for onboarding flows across verticals.
|
|
11
|
+
* These operations are reusable for any app that needs multi-step onboarding with draft persistence.
|
|
12
|
+
*/
|
|
13
|
+
/** Save/update onboarding draft (auto-save during flow) */
|
|
14
|
+
const SaveOnboardingDraftInput = new SchemaModel({
|
|
15
|
+
name: "SaveOnboardingDraftInput",
|
|
16
|
+
description: "Input for saving onboarding draft",
|
|
17
|
+
fields: { data: {
|
|
18
|
+
type: ScalarTypeEnum.JSON(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
} }
|
|
21
|
+
});
|
|
22
|
+
const SaveOnboardingDraftOutput = new SchemaModel({
|
|
23
|
+
name: "SaveOnboardingDraftOutput",
|
|
24
|
+
description: "Output for saving onboarding draft",
|
|
25
|
+
fields: {
|
|
26
|
+
id: {
|
|
27
|
+
type: ScalarTypeEnum.ID(),
|
|
28
|
+
isOptional: false
|
|
29
|
+
},
|
|
30
|
+
organizationId: {
|
|
31
|
+
type: ScalarTypeEnum.ID(),
|
|
32
|
+
isOptional: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const SaveOnboardingDraftBaseSpec = defineCommand({
|
|
37
|
+
meta: {
|
|
38
|
+
key: "base.onboarding.saveDraft",
|
|
39
|
+
version: "1.0.0",
|
|
40
|
+
stability: StabilityEnum.Beta,
|
|
41
|
+
owners: [OwnersEnum.PlatformSigil],
|
|
42
|
+
tags: ["onboarding", "draft"],
|
|
43
|
+
description: "Save or update onboarding draft for active organization",
|
|
44
|
+
goal: "Persist onboarding progress incrementally for resumption and safety",
|
|
45
|
+
context: "Auto-saves every few seconds during onboarding; enables users to leave and resume"
|
|
46
|
+
},
|
|
47
|
+
io: {
|
|
48
|
+
input: SaveOnboardingDraftInput,
|
|
49
|
+
output: SaveOnboardingDraftOutput
|
|
50
|
+
},
|
|
51
|
+
policy: {
|
|
52
|
+
auth: "user",
|
|
53
|
+
escalate: null
|
|
54
|
+
},
|
|
55
|
+
transport: {
|
|
56
|
+
gql: { field: "saveOnboardingDraft" },
|
|
57
|
+
rest: { method: "POST" }
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
/** Get current onboarding draft (on mount/restore) */
|
|
61
|
+
const GetOnboardingDraftOutput = new SchemaModel({
|
|
62
|
+
name: "GetOnboardingDraftOutput",
|
|
63
|
+
description: "Onboarding draft payload",
|
|
64
|
+
fields: {
|
|
65
|
+
id: {
|
|
66
|
+
type: ScalarTypeEnum.ID(),
|
|
67
|
+
isOptional: true
|
|
68
|
+
},
|
|
69
|
+
organizationId: {
|
|
70
|
+
type: ScalarTypeEnum.ID(),
|
|
71
|
+
isOptional: true
|
|
72
|
+
},
|
|
73
|
+
data: {
|
|
74
|
+
type: ScalarTypeEnum.JSON(),
|
|
75
|
+
isOptional: true
|
|
76
|
+
},
|
|
77
|
+
createdAt: {
|
|
78
|
+
type: ScalarTypeEnum.DateTime(),
|
|
79
|
+
isOptional: true
|
|
80
|
+
},
|
|
81
|
+
updatedAt: {
|
|
82
|
+
type: ScalarTypeEnum.DateTime(),
|
|
83
|
+
isOptional: true
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const GetOnboardingDraftBaseSpec = defineQuery({
|
|
88
|
+
meta: {
|
|
89
|
+
key: "base.onboarding.getDraft",
|
|
90
|
+
version: "1.0.0",
|
|
91
|
+
stability: StabilityEnum.Beta,
|
|
92
|
+
owners: [OwnersEnum.PlatformSigil],
|
|
93
|
+
tags: ["onboarding", "draft"],
|
|
94
|
+
description: "Get onboarding draft for active organization",
|
|
95
|
+
goal: "Retrieve saved onboarding progress",
|
|
96
|
+
context: "Called on mount to restore in-progress onboarding"
|
|
97
|
+
},
|
|
98
|
+
io: {
|
|
99
|
+
input: null,
|
|
100
|
+
output: GetOnboardingDraftOutput
|
|
101
|
+
},
|
|
102
|
+
policy: {
|
|
103
|
+
auth: "user",
|
|
104
|
+
escalate: null
|
|
105
|
+
},
|
|
106
|
+
transport: {
|
|
107
|
+
gql: { field: "getOnboardingDraft" },
|
|
108
|
+
rest: { method: "GET" }
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
/** Delete onboarding draft (cleanup after completion or cancel) */
|
|
112
|
+
const DeleteOnboardingDraftOutput = new SchemaModel({
|
|
113
|
+
name: "DeleteOnboardingDraftOutput",
|
|
114
|
+
description: "Result of delete operation",
|
|
115
|
+
fields: { ok: {
|
|
116
|
+
type: ScalarTypeEnum.Boolean(),
|
|
117
|
+
isOptional: false
|
|
118
|
+
} }
|
|
119
|
+
});
|
|
120
|
+
const DeleteOnboardingDraftBaseSpec = defineCommand({
|
|
121
|
+
meta: {
|
|
122
|
+
key: "base.onboarding.deleteDraft",
|
|
123
|
+
version: "1.0.0",
|
|
124
|
+
stability: StabilityEnum.Beta,
|
|
125
|
+
owners: [OwnersEnum.PlatformSigil],
|
|
126
|
+
tags: ["onboarding", "draft"],
|
|
127
|
+
description: "Delete onboarding draft for active organization",
|
|
128
|
+
goal: "Clear draft after completion or if user wants to restart",
|
|
129
|
+
context: "Called after successful onboarding or explicit user reset"
|
|
130
|
+
},
|
|
131
|
+
io: {
|
|
132
|
+
input: null,
|
|
133
|
+
output: DeleteOnboardingDraftOutput
|
|
134
|
+
},
|
|
135
|
+
policy: {
|
|
136
|
+
auth: "user",
|
|
137
|
+
escalate: null
|
|
138
|
+
},
|
|
139
|
+
transport: {
|
|
140
|
+
gql: { field: "deleteOnboardingDraft" },
|
|
141
|
+
rest: { method: "POST" }
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
/** Complete onboarding (final submit, creates entities) */
|
|
145
|
+
const CompleteOnboardingBaseInput = new SchemaModel({
|
|
146
|
+
name: "CompleteOnboardingBaseInput",
|
|
147
|
+
description: "Input for completing onboarding",
|
|
148
|
+
fields: { data: {
|
|
149
|
+
type: ScalarTypeEnum.JSON(),
|
|
150
|
+
isOptional: false
|
|
151
|
+
} }
|
|
152
|
+
});
|
|
153
|
+
const CompleteOnboardingBaseOutput = new SchemaModel({
|
|
154
|
+
name: "CompleteOnboardingBaseOutput",
|
|
155
|
+
description: "Result of onboarding completion",
|
|
156
|
+
fields: {
|
|
157
|
+
success: {
|
|
158
|
+
type: ScalarTypeEnum.Boolean(),
|
|
159
|
+
isOptional: false
|
|
160
|
+
},
|
|
161
|
+
userId: {
|
|
162
|
+
type: ScalarTypeEnum.ID(),
|
|
163
|
+
isOptional: true
|
|
164
|
+
},
|
|
165
|
+
organizationId: {
|
|
166
|
+
type: ScalarTypeEnum.ID(),
|
|
167
|
+
isOptional: true
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
const CompleteOnboardingBaseSpec = defineCommand({
|
|
172
|
+
meta: {
|
|
173
|
+
key: "base.onboarding.complete",
|
|
174
|
+
version: "1.0.0",
|
|
175
|
+
stability: StabilityEnum.Beta,
|
|
176
|
+
owners: [OwnersEnum.PlatformSigil],
|
|
177
|
+
tags: ["onboarding"],
|
|
178
|
+
description: "Complete onboarding and finalize user/organization setup",
|
|
179
|
+
goal: "Transition from draft to active profile",
|
|
180
|
+
context: "Validates all required fields, creates/updates entities, marks onboarding complete"
|
|
181
|
+
},
|
|
182
|
+
io: {
|
|
183
|
+
input: CompleteOnboardingBaseInput,
|
|
184
|
+
output: CompleteOnboardingBaseOutput
|
|
185
|
+
},
|
|
186
|
+
policy: {
|
|
187
|
+
auth: "user",
|
|
188
|
+
escalate: null
|
|
189
|
+
},
|
|
190
|
+
transport: {
|
|
191
|
+
gql: { field: "completeOnboarding" },
|
|
192
|
+
rest: { method: "POST" }
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
//#endregion
|
|
197
|
+
export { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, DeleteOnboardingDraftOutput, GetOnboardingDraftOutput, SaveOnboardingDraftInput, SaveOnboardingDraftOutput };
|
|
198
|
+
//# sourceMappingURL=onboarding-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-base.js","names":[],"sources":["../../../../../../libs/contracts/dist/onboarding-base.js"],"sourcesContent":["import { OwnersEnum, StabilityEnum } from \"./ownership.js\";\nimport { defineCommand, defineQuery } from \"./operations/operation.js\";\nimport \"./operations/index.js\";\nimport { ScalarTypeEnum, SchemaModel } from \"@contractspec/lib.schema\";\n\n//#region src/onboarding-base.ts\n/**\n* Shared base contracts for onboarding flows across verticals.\n* These operations are reusable for any app that needs multi-step onboarding with draft persistence.\n*/\n/** Save/update onboarding draft (auto-save during flow) */\nconst SaveOnboardingDraftInput = new SchemaModel({\n\tname: \"SaveOnboardingDraftInput\",\n\tdescription: \"Input for saving onboarding draft\",\n\tfields: { data: {\n\t\ttype: ScalarTypeEnum.JSON(),\n\t\tisOptional: false\n\t} }\n});\nconst SaveOnboardingDraftOutput = new SchemaModel({\n\tname: \"SaveOnboardingDraftOutput\",\n\tdescription: \"Output for saving onboarding draft\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: false\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: false\n\t\t}\n\t}\n});\nconst SaveOnboardingDraftBaseSpec = defineCommand({\n\tmeta: {\n\t\tkey: \"base.onboarding.saveDraft\",\n\t\tversion: \"1.0.0\",\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Save or update onboarding draft for active organization\",\n\t\tgoal: \"Persist onboarding progress incrementally for resumption and safety\",\n\t\tcontext: \"Auto-saves every few seconds during onboarding; enables users to leave and resume\"\n\t},\n\tio: {\n\t\tinput: SaveOnboardingDraftInput,\n\t\toutput: SaveOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"saveOnboardingDraft\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n/** Get current onboarding draft (on mount/restore) */\nconst GetOnboardingDraftOutput = new SchemaModel({\n\tname: \"GetOnboardingDraftOutput\",\n\tdescription: \"Onboarding draft payload\",\n\tfields: {\n\t\tid: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\tdata: {\n\t\t\ttype: ScalarTypeEnum.JSON(),\n\t\t\tisOptional: true\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: ScalarTypeEnum.DateTime(),\n\t\t\tisOptional: true\n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: ScalarTypeEnum.DateTime(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst GetOnboardingDraftBaseSpec = defineQuery({\n\tmeta: {\n\t\tkey: \"base.onboarding.getDraft\",\n\t\tversion: \"1.0.0\",\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Get onboarding draft for active organization\",\n\t\tgoal: \"Retrieve saved onboarding progress\",\n\t\tcontext: \"Called on mount to restore in-progress onboarding\"\n\t},\n\tio: {\n\t\tinput: null,\n\t\toutput: GetOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"getOnboardingDraft\" },\n\t\trest: { method: \"GET\" }\n\t}\n});\n/** Delete onboarding draft (cleanup after completion or cancel) */\nconst DeleteOnboardingDraftOutput = new SchemaModel({\n\tname: \"DeleteOnboardingDraftOutput\",\n\tdescription: \"Result of delete operation\",\n\tfields: { ok: {\n\t\ttype: ScalarTypeEnum.Boolean(),\n\t\tisOptional: false\n\t} }\n});\nconst DeleteOnboardingDraftBaseSpec = defineCommand({\n\tmeta: {\n\t\tkey: \"base.onboarding.deleteDraft\",\n\t\tversion: \"1.0.0\",\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\", \"draft\"],\n\t\tdescription: \"Delete onboarding draft for active organization\",\n\t\tgoal: \"Clear draft after completion or if user wants to restart\",\n\t\tcontext: \"Called after successful onboarding or explicit user reset\"\n\t},\n\tio: {\n\t\tinput: null,\n\t\toutput: DeleteOnboardingDraftOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"deleteOnboardingDraft\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n/** Complete onboarding (final submit, creates entities) */\nconst CompleteOnboardingBaseInput = new SchemaModel({\n\tname: \"CompleteOnboardingBaseInput\",\n\tdescription: \"Input for completing onboarding\",\n\tfields: { data: {\n\t\ttype: ScalarTypeEnum.JSON(),\n\t\tisOptional: false\n\t} }\n});\nconst CompleteOnboardingBaseOutput = new SchemaModel({\n\tname: \"CompleteOnboardingBaseOutput\",\n\tdescription: \"Result of onboarding completion\",\n\tfields: {\n\t\tsuccess: {\n\t\t\ttype: ScalarTypeEnum.Boolean(),\n\t\t\tisOptional: false\n\t\t},\n\t\tuserId: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: true\n\t\t},\n\t\torganizationId: {\n\t\t\ttype: ScalarTypeEnum.ID(),\n\t\t\tisOptional: true\n\t\t}\n\t}\n});\nconst CompleteOnboardingBaseSpec = defineCommand({\n\tmeta: {\n\t\tkey: \"base.onboarding.complete\",\n\t\tversion: \"1.0.0\",\n\t\tstability: StabilityEnum.Beta,\n\t\towners: [OwnersEnum.PlatformSigil],\n\t\ttags: [\"onboarding\"],\n\t\tdescription: \"Complete onboarding and finalize user/organization setup\",\n\t\tgoal: \"Transition from draft to active profile\",\n\t\tcontext: \"Validates all required fields, creates/updates entities, marks onboarding complete\"\n\t},\n\tio: {\n\t\tinput: CompleteOnboardingBaseInput,\n\t\toutput: CompleteOnboardingBaseOutput\n\t},\n\tpolicy: {\n\t\tauth: \"user\",\n\t\tescalate: null\n\t},\n\ttransport: {\n\t\tgql: { field: \"completeOnboarding\" },\n\t\trest: { method: \"POST\" }\n\t}\n});\n\n//#endregion\nexport { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, CompleteOnboardingBaseSpec, DeleteOnboardingDraftBaseSpec, DeleteOnboardingDraftOutput, GetOnboardingDraftBaseSpec, GetOnboardingDraftOutput, SaveOnboardingDraftBaseSpec, SaveOnboardingDraftInput, SaveOnboardingDraftOutput };"],"mappings":";;;;;;;;;;;;;AAWA,MAAM,2BAA2B,IAAI,YAAY;CAChD,MAAM;CACN,aAAa;CACb,QAAQ,EAAE,MAAM;EACf,MAAM,eAAe,MAAM;EAC3B,YAAY;EACZ,EAAE;CACH,CAAC;AACF,MAAM,4BAA4B,IAAI,YAAY;CACjD,MAAM;CACN,aAAa;CACb,QAAQ;EACP,IAAI;GACH,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD;CACD,CAAC;AACF,MAAM,8BAA8B,cAAc;CACjD,MAAM;EACL,KAAK;EACL,SAAS;EACT,WAAW,cAAc;EACzB,QAAQ,CAAC,WAAW,cAAc;EAClC,MAAM,CAAC,cAAc,QAAQ;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACT;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU;EACV;CACD,WAAW;EACV,KAAK,EAAE,OAAO,uBAAuB;EACrC,MAAM,EAAE,QAAQ,QAAQ;EACxB;CACD,CAAC;;AAEF,MAAM,2BAA2B,IAAI,YAAY;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACP,IAAI;GACH,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD,MAAM;GACL,MAAM,eAAe,MAAM;GAC3B,YAAY;GACZ;EACD,WAAW;GACV,MAAM,eAAe,UAAU;GAC/B,YAAY;GACZ;EACD,WAAW;GACV,MAAM,eAAe,UAAU;GAC/B,YAAY;GACZ;EACD;CACD,CAAC;AACF,MAAM,6BAA6B,YAAY;CAC9C,MAAM;EACL,KAAK;EACL,SAAS;EACT,WAAW,cAAc;EACzB,QAAQ,CAAC,WAAW,cAAc;EAClC,MAAM,CAAC,cAAc,QAAQ;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACT;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU;EACV;CACD,WAAW;EACV,KAAK,EAAE,OAAO,sBAAsB;EACpC,MAAM,EAAE,QAAQ,OAAO;EACvB;CACD,CAAC;;AAEF,MAAM,8BAA8B,IAAI,YAAY;CACnD,MAAM;CACN,aAAa;CACb,QAAQ,EAAE,IAAI;EACb,MAAM,eAAe,SAAS;EAC9B,YAAY;EACZ,EAAE;CACH,CAAC;AACF,MAAM,gCAAgC,cAAc;CACnD,MAAM;EACL,KAAK;EACL,SAAS;EACT,WAAW,cAAc;EACzB,QAAQ,CAAC,WAAW,cAAc;EAClC,MAAM,CAAC,cAAc,QAAQ;EAC7B,aAAa;EACb,MAAM;EACN,SAAS;EACT;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU;EACV;CACD,WAAW;EACV,KAAK,EAAE,OAAO,yBAAyB;EACvC,MAAM,EAAE,QAAQ,QAAQ;EACxB;CACD,CAAC;;AAEF,MAAM,8BAA8B,IAAI,YAAY;CACnD,MAAM;CACN,aAAa;CACb,QAAQ,EAAE,MAAM;EACf,MAAM,eAAe,MAAM;EAC3B,YAAY;EACZ,EAAE;CACH,CAAC;AACF,MAAM,+BAA+B,IAAI,YAAY;CACpD,MAAM;CACN,aAAa;CACb,QAAQ;EACP,SAAS;GACR,MAAM,eAAe,SAAS;GAC9B,YAAY;GACZ;EACD,QAAQ;GACP,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD,gBAAgB;GACf,MAAM,eAAe,IAAI;GACzB,YAAY;GACZ;EACD;CACD,CAAC;AACF,MAAM,6BAA6B,cAAc;CAChD,MAAM;EACL,KAAK;EACL,SAAS;EACT,WAAW,cAAc;EACzB,QAAQ,CAAC,WAAW,cAAc;EAClC,MAAM,CAAC,aAAa;EACpB,aAAa;EACb,MAAM;EACN,SAAS;EACT;CACD,IAAI;EACH,OAAO;EACP,QAAQ;EACR;CACD,QAAQ;EACP,MAAM;EACN,UAAU;EACV;CACD,WAAW;EACV,KAAK,EAAE,OAAO,sBAAsB;EACpC,MAAM,EAAE,QAAQ,QAAQ;EACxB;CACD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region ../../libs/contracts/dist/operations/operation.js
|
|
2
|
+
/**
|
|
3
|
+
* Helper to define a Command (write operation).
|
|
4
|
+
* Sets `kind: 'command'` and defaults `idempotent: false`.
|
|
5
|
+
*/
|
|
6
|
+
const defineCommand = (spec) => ({
|
|
7
|
+
...spec,
|
|
8
|
+
meta: {
|
|
9
|
+
...spec.meta,
|
|
10
|
+
kind: "command"
|
|
11
|
+
},
|
|
12
|
+
policy: {
|
|
13
|
+
...spec.policy,
|
|
14
|
+
idempotent: spec.policy?.["policy"]?.idempotent ?? false
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Helper to define a Query (read-only operation).
|
|
19
|
+
* Sets `kind: 'query'` and forces `idempotent: true`.
|
|
20
|
+
*/
|
|
21
|
+
const defineQuery = (spec) => ({
|
|
22
|
+
...spec,
|
|
23
|
+
meta: {
|
|
24
|
+
...spec.meta,
|
|
25
|
+
kind: "query"
|
|
26
|
+
},
|
|
27
|
+
policy: {
|
|
28
|
+
...spec.policy,
|
|
29
|
+
idempotent: true
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { defineCommand, defineQuery };
|
|
35
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","names":[],"sources":["../../../../../../../libs/contracts/dist/operations/operation.js"],"sourcesContent":["//#region src/operations/operation.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region ../../libs/contracts/dist/ownership.js
|
|
2
|
+
const StabilityEnum = {
|
|
3
|
+
Idea: "idea",
|
|
4
|
+
InCreation: "in_creation",
|
|
5
|
+
Experimental: "experimental",
|
|
6
|
+
Beta: "beta",
|
|
7
|
+
Stable: "stable",
|
|
8
|
+
Deprecated: "deprecated"
|
|
9
|
+
};
|
|
10
|
+
const OwnersEnum = {
|
|
11
|
+
PlatformCore: "platform.core",
|
|
12
|
+
PlatformSigil: "platform.sigil",
|
|
13
|
+
PlatformMarketplace: "platform.marketplace",
|
|
14
|
+
PlatformMessaging: "platform.messaging",
|
|
15
|
+
PlatformContent: "platform.content",
|
|
16
|
+
PlatformFeatureFlags: "platform.featureflags",
|
|
17
|
+
PlatformFinance: "platform.finance"
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { OwnersEnum, StabilityEnum };
|
|
22
|
+
//# sourceMappingURL=ownership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownership.js","names":[],"sources":["../../../../../../libs/contracts/dist/ownership.js"],"sourcesContent":["//#region src/ownership.ts\nconst StabilityEnum = {\n\tIdea: \"idea\",\n\tInCreation: \"in_creation\",\n\tExperimental: \"experimental\",\n\tBeta: \"beta\",\n\tStable: \"stable\",\n\tDeprecated: \"deprecated\"\n};\nconst OwnersEnum = {\n\tPlatformCore: \"platform.core\",\n\tPlatformSigil: \"platform.sigil\",\n\tPlatformMarketplace: \"platform.marketplace\",\n\tPlatformMessaging: \"platform.messaging\",\n\tPlatformContent: \"platform.content\",\n\tPlatformFeatureFlags: \"platform.featureflags\",\n\tPlatformFinance: \"platform.finance\"\n};\nconst Owners = OwnersEnum;\nconst TagsEnum = {\n\tSpots: \"spots\",\n\tCollectivity: \"collectivity\",\n\tMarketplace: \"marketplace\",\n\tSellers: \"sellers\",\n\tAuth: \"auth\",\n\tLogin: \"login\",\n\tSignup: \"signup\",\n\tGuide: \"guide\",\n\tDocs: \"docs\",\n\tI18n: \"i18n\",\n\tIncident: \"incident\",\n\tAutomation: \"automation\",\n\tHygiene: \"hygiene\"\n};\nconst Tags = TagsEnum;\n\n//#endregion\nexport { Owners, OwnersEnum, StabilityEnum, Tags, TagsEnum };"],"mappings":";AACA,MAAM,gBAAgB;CACrB,MAAM;CACN,YAAY;CACZ,cAAc;CACd,MAAM;CACN,QAAQ;CACR,YAAY;CACZ;AACD,MAAM,aAAa;CAClB,cAAc;CACd,eAAe;CACf,qBAAqB;CACrB,mBAAmB;CACnB,iBAAiB;CACjB,sBAAsB;CACtB,iBAAiB;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./registry.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../registry.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../registry.js";
|