@lssm/example.learning-journey-platform-tour 0.0.0-canary-20251217083314 → 1.41.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.
Files changed (145) hide show
  1. package/.turbo/turbo-build.log +20 -11
  2. package/dist/contracts/index.js +1 -178
  3. package/dist/docs/index.js +1 -1
  4. package/dist/docs/platform-tour.docblock.js +1 -42
  5. package/dist/example.js +1 -38
  6. package/dist/handlers/demo.handlers.js +1 -26
  7. package/dist/index.js +1 -9
  8. package/dist/learning-journey-platform-tour.feature.js +1 -66
  9. package/dist/presentations/index.js +1 -49
  10. package/dist/track.js +1 -105
  11. package/package.json +15 -17
  12. package/tsconfig.tsbuildinfo +1 -1
  13. package/tsdown.config.js +1 -11
  14. package/.turbo/turbo-build$colon$bundle.log +0 -220
  15. package/CHANGELOG.md +0 -14
  16. package/dist/contracts/index.d.ts +0 -270
  17. package/dist/docs/index.d.ts +0 -1
  18. package/dist/docs/platform-tour.docblock.d.ts +0 -1
  19. package/dist/example.d.ts +0 -34
  20. package/dist/handlers/demo.handlers.d.ts +0 -24
  21. package/dist/index.d.ts +0 -7
  22. package/dist/learning-journey-platform-tour.feature.d.ts +0 -11
  23. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -88
  24. package/dist/libs/contracts/dist/client/index.js +0 -5
  25. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  26. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  27. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  28. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  29. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -60
  30. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  31. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
  32. package/dist/libs/contracts/dist/docs/index.js +0 -29
  33. package/dist/libs/contracts/dist/docs/presentations.js +0 -71
  34. package/dist/libs/contracts/dist/docs/registry.js +0 -44
  35. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  36. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  37. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  38. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  39. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  40. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  41. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  42. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
  43. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  44. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
  45. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  46. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
  47. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
  48. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  49. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  50. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
  51. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
  52. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  53. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
  54. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
  55. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  56. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  57. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  58. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  59. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  60. package/dist/libs/contracts/dist/events.js +0 -1
  61. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  62. package/dist/libs/contracts/dist/index.js +0 -71
  63. package/dist/libs/contracts/dist/install.js +0 -2
  64. package/dist/libs/contracts/dist/integrations/contracts.js +0 -377
  65. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  66. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  67. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  68. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  69. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  70. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -242
  71. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -13
  72. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  73. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  74. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  75. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  76. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  77. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  78. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  79. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  80. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  81. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  82. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  83. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  84. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  85. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -306
  86. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  87. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  88. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  89. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  90. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  91. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  92. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  93. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  94. package/dist/libs/contracts/dist/llm/exporters.js +0 -19
  95. package/dist/libs/contracts/dist/llm/index.js +0 -2
  96. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  97. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  98. package/dist/libs/contracts/dist/openapi.js +0 -1
  99. package/dist/libs/contracts/dist/ownership.js +0 -21
  100. package/dist/libs/contracts/dist/presentations.js +0 -1
  101. package/dist/libs/contracts/dist/presentations.v2.js +0 -11
  102. package/dist/libs/contracts/dist/prompt.js +0 -1
  103. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  104. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  105. package/dist/libs/contracts/dist/regenerator/service.js +0 -6
  106. package/dist/libs/contracts/dist/registry.js +0 -2
  107. package/dist/libs/contracts/dist/resources.js +0 -1
  108. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  109. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
  110. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  111. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
  112. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  113. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  114. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  115. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  116. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  117. package/dist/libs/contracts/dist/server/index.js +0 -8
  118. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  119. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  120. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  121. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  122. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  123. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  124. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  125. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  126. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  127. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  128. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  129. package/dist/libs/contracts/dist/spec.js +0 -34
  130. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  131. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  132. package/dist/libs/contracts/dist/tests/index.js +0 -1
  133. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  134. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  135. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  136. package/dist/libs/schema/dist/EnumType.js +0 -2
  137. package/dist/libs/schema/dist/FieldType.js +0 -49
  138. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
  139. package/dist/libs/schema/dist/SchemaModel.js +0 -39
  140. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  141. package/dist/libs/schema/dist/entity/index.js +0 -2
  142. package/dist/libs/schema/dist/entity/types.js +0 -1
  143. package/dist/libs/schema/dist/index.js +0 -6
  144. package/dist/presentations/index.d.ts +0 -8
  145. package/dist/track.d.ts +0 -7
@@ -1,34 +0,0 @@
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,
8
- category: "canonical",
9
- displayName: "Financial Documents",
10
- title: "Household Financial Documents",
11
- description: "Invoices, bills, and contracts powering Pocket Family Office financial automation.",
12
- domain: "finance",
13
- owners: ["platform.finance"],
14
- tags: ["finance", "documents"],
15
- stability: StabilityEnum.Beta
16
- },
17
- retention: { ttlDays: null },
18
- access: {
19
- policy: {
20
- name: "knowledge.access.financial-docs",
21
- version: 1
22
- },
23
- trustLevel: "high",
24
- automationWritable: true
25
- },
26
- indexing: {
27
- embeddingModel: "mistral-embed",
28
- chunkSize: 700,
29
- vectorDbIntegration: "vectordb.qdrant"
30
- },
31
- description: "Normalized financial documents enabling bill pay automation, reminders, and summaries."
32
- };
33
-
34
- //#endregion
@@ -1,38 +0,0 @@
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,
8
- category: "operational",
9
- displayName: "Financial Overview Summaries",
10
- title: "Derived Financial Summaries",
11
- description: "Aggregated cashflow summaries, category breakdowns, and balance trends derived from open banking data.",
12
- domain: "finance",
13
- owners: ["platform.finance"],
14
- tags: [
15
- "open-banking",
16
- "summaries",
17
- "cashflow"
18
- ],
19
- stability: StabilityEnum.Experimental
20
- },
21
- retention: { ttlDays: 180 },
22
- access: {
23
- policy: {
24
- name: "knowledge.access.financial-overview",
25
- version: 1
26
- },
27
- trustLevel: "medium",
28
- automationWritable: true
29
- },
30
- indexing: {
31
- embeddingModel: "mistral-embed",
32
- chunkSize: 600,
33
- vectorDbIntegration: "vectordb.qdrant"
34
- },
35
- description: "Derived knowledge space containing weekly/monthly cashflow rollups and account health summaries. Raw transactions are excluded to respect privacy guardrails."
36
- };
37
-
38
- //#endregion
@@ -1,6 +0,0 @@
1
- import "./product-canon.js";
2
- import "./support-faq.js";
3
- import "./email-threads.js";
4
- import "./uploaded-docs.js";
5
- import "./financial-docs.js";
6
- import "./financial-overview.js";
@@ -1,34 +0,0 @@
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,
8
- category: "canonical",
9
- displayName: "Product Canon",
10
- title: "Product Canon Knowledge Space",
11
- description: "Authoritative product knowledge covering strategy, roadmap, and delivery canon.",
12
- domain: "product",
13
- owners: ["platform.product"],
14
- tags: ["knowledge", "product"],
15
- stability: StabilityEnum.Stable
16
- },
17
- retention: { ttlDays: null },
18
- access: {
19
- policy: {
20
- name: "knowledge.access.product-canon",
21
- version: 1
22
- },
23
- trustLevel: "high",
24
- automationWritable: false
25
- },
26
- indexing: {
27
- embeddingModel: "text-embedding-3-large",
28
- chunkSize: 800,
29
- vectorDbIntegration: "vectordb.qdrant"
30
- },
31
- description: "Single source of truth for product canon, principles, and strategic narratives."
32
- };
33
-
34
- //#endregion
@@ -1,37 +0,0 @@
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,
8
- category: "operational",
9
- displayName: "Support FAQ",
10
- title: "Support & Success FAQ",
11
- description: "Operational knowledge base for customer support and success.",
12
- domain: "support",
13
- owners: ["platform.support"],
14
- tags: ["knowledge", "support"],
15
- stability: StabilityEnum.Beta
16
- },
17
- retention: {
18
- ttlDays: 365,
19
- archiveAfterDays: 180
20
- },
21
- access: {
22
- policy: {
23
- name: "knowledge.access.support",
24
- version: 1
25
- },
26
- trustLevel: "medium",
27
- automationWritable: true
28
- },
29
- indexing: {
30
- embeddingModel: "text-embedding-3-small",
31
- chunkSize: 700,
32
- vectorDbIntegration: "vectordb.qdrant"
33
- },
34
- description: "Operational FAQs, runbooks, and customer success playbooks augmented with automation updates."
35
- };
36
-
37
- //#endregion
@@ -1,34 +0,0 @@
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,
8
- category: "external",
9
- displayName: "Uploaded Documents",
10
- title: "Uploaded Knowledge Assets",
11
- description: "Documents uploaded by households, including invoices, contracts, and reference files.",
12
- domain: "operations",
13
- owners: ["platform.operations"],
14
- tags: ["documents", "storage"],
15
- stability: StabilityEnum.Beta
16
- },
17
- retention: { ttlDays: null },
18
- access: {
19
- policy: {
20
- name: "knowledge.access.uploaded-docs",
21
- version: 1
22
- },
23
- trustLevel: "medium",
24
- automationWritable: true
25
- },
26
- indexing: {
27
- embeddingModel: "mistral-embed",
28
- chunkSize: 900,
29
- vectorDbIntegration: "vectordb.qdrant"
30
- },
31
- description: "User-provided documents normalized and embedded for retrieval augmented workflows."
32
- };
33
-
34
- //#endregion
@@ -1,19 +0,0 @@
1
- import "../jsonschema.js";
2
-
3
- //#region ../../libs/contracts/dist/llm/exporters.js
4
- const DEFAULT_SPEC_OPTIONS = {
5
- format: "full",
6
- includeSchemas: true,
7
- includeScenarios: true,
8
- includeExamples: true,
9
- includePolicy: true,
10
- includeSideEffects: true
11
- };
12
- const DEFAULT_FEATURE_OPTIONS = {
13
- ...DEFAULT_SPEC_OPTIONS,
14
- includeRelatedSpecs: true,
15
- includeRelatedEvents: true,
16
- includeRelatedPresentations: true
17
- };
18
-
19
- //#endregion
@@ -1,2 +0,0 @@
1
- import "./exporters.js";
2
- import "./prompts.js";
@@ -1 +0,0 @@
1
- import "./exporters.js";
@@ -1,196 +0,0 @@
1
- import { SchemaModel } from "./schema/dist/SchemaModel.js";
2
- import { ScalarTypeEnum } from "./schema/dist/ScalarTypeEnum.js";
3
- import "./schema/dist/index.js";
4
- import { defineCommand, defineQuery } from "./spec.js";
5
- import { OwnersEnum, StabilityEnum } from "./ownership.js";
6
-
7
- //#region ../../libs/contracts/dist/onboarding-base.js
8
- /**
9
- * Shared base contracts for onboarding flows across verticals.
10
- * These operations are reusable for any app that needs multi-step onboarding with draft persistence.
11
- */
12
- /** Save/update onboarding draft (auto-save during flow) */
13
- const SaveOnboardingDraftInput = new SchemaModel({
14
- name: "SaveOnboardingDraftInput",
15
- description: "Input for saving onboarding draft",
16
- fields: { data: {
17
- type: ScalarTypeEnum.JSON(),
18
- isOptional: false
19
- } }
20
- });
21
- const SaveOnboardingDraftOutput = new SchemaModel({
22
- name: "SaveOnboardingDraftOutput",
23
- description: "Output for saving onboarding draft",
24
- fields: {
25
- id: {
26
- type: ScalarTypeEnum.ID(),
27
- isOptional: false
28
- },
29
- organizationId: {
30
- type: ScalarTypeEnum.ID(),
31
- isOptional: false
32
- }
33
- }
34
- });
35
- const SaveOnboardingDraftBaseSpec = defineCommand({
36
- meta: {
37
- name: "base.onboarding.saveDraft",
38
- version: 1,
39
- stability: StabilityEnum.Beta,
40
- owners: [OwnersEnum.PlatformSigil],
41
- tags: ["onboarding", "draft"],
42
- description: "Save or update onboarding draft for active organization",
43
- goal: "Persist onboarding progress incrementally for resumption and safety",
44
- context: "Auto-saves every few seconds during onboarding; enables users to leave and resume"
45
- },
46
- io: {
47
- input: SaveOnboardingDraftInput,
48
- output: SaveOnboardingDraftOutput
49
- },
50
- policy: {
51
- auth: "user",
52
- escalate: null
53
- },
54
- transport: {
55
- gql: { field: "saveOnboardingDraft" },
56
- rest: { method: "POST" }
57
- }
58
- });
59
- /** Get current onboarding draft (on mount/restore) */
60
- const GetOnboardingDraftOutput = new SchemaModel({
61
- name: "GetOnboardingDraftOutput",
62
- description: "Onboarding draft payload",
63
- fields: {
64
- id: {
65
- type: ScalarTypeEnum.ID(),
66
- isOptional: true
67
- },
68
- organizationId: {
69
- type: ScalarTypeEnum.ID(),
70
- isOptional: true
71
- },
72
- data: {
73
- type: ScalarTypeEnum.JSON(),
74
- isOptional: true
75
- },
76
- createdAt: {
77
- type: ScalarTypeEnum.DateTime(),
78
- isOptional: true
79
- },
80
- updatedAt: {
81
- type: ScalarTypeEnum.DateTime(),
82
- isOptional: true
83
- }
84
- }
85
- });
86
- const GetOnboardingDraftBaseSpec = defineQuery({
87
- meta: {
88
- name: "base.onboarding.getDraft",
89
- version: 1,
90
- stability: StabilityEnum.Beta,
91
- owners: [OwnersEnum.PlatformSigil],
92
- tags: ["onboarding", "draft"],
93
- description: "Get onboarding draft for active organization",
94
- goal: "Retrieve saved onboarding progress",
95
- context: "Called on mount to restore in-progress onboarding"
96
- },
97
- io: {
98
- input: null,
99
- output: GetOnboardingDraftOutput
100
- },
101
- policy: {
102
- auth: "user",
103
- escalate: null
104
- },
105
- transport: {
106
- gql: { field: "getOnboardingDraft" },
107
- rest: { method: "GET" }
108
- }
109
- });
110
- /** Delete onboarding draft (cleanup after completion or cancel) */
111
- const DeleteOnboardingDraftOutput = new SchemaModel({
112
- name: "DeleteOnboardingDraftOutput",
113
- description: "Result of delete operation",
114
- fields: { ok: {
115
- type: ScalarTypeEnum.Boolean(),
116
- isOptional: false
117
- } }
118
- });
119
- const DeleteOnboardingDraftBaseSpec = defineCommand({
120
- meta: {
121
- name: "base.onboarding.deleteDraft",
122
- version: 1,
123
- stability: StabilityEnum.Beta,
124
- owners: [OwnersEnum.PlatformSigil],
125
- tags: ["onboarding", "draft"],
126
- description: "Delete onboarding draft for active organization",
127
- goal: "Clear draft after completion or if user wants to restart",
128
- context: "Called after successful onboarding or explicit user reset"
129
- },
130
- io: {
131
- input: null,
132
- output: DeleteOnboardingDraftOutput
133
- },
134
- policy: {
135
- auth: "user",
136
- escalate: null
137
- },
138
- transport: {
139
- gql: { field: "deleteOnboardingDraft" },
140
- rest: { method: "POST" }
141
- }
142
- });
143
- /** Complete onboarding (final submit, creates entities) */
144
- const CompleteOnboardingBaseInput = new SchemaModel({
145
- name: "CompleteOnboardingBaseInput",
146
- description: "Input for completing onboarding",
147
- fields: { data: {
148
- type: ScalarTypeEnum.JSON(),
149
- isOptional: false
150
- } }
151
- });
152
- const CompleteOnboardingBaseOutput = new SchemaModel({
153
- name: "CompleteOnboardingBaseOutput",
154
- description: "Result of onboarding completion",
155
- fields: {
156
- success: {
157
- type: ScalarTypeEnum.Boolean(),
158
- isOptional: false
159
- },
160
- userId: {
161
- type: ScalarTypeEnum.ID(),
162
- isOptional: true
163
- },
164
- organizationId: {
165
- type: ScalarTypeEnum.ID(),
166
- isOptional: true
167
- }
168
- }
169
- });
170
- const CompleteOnboardingBaseSpec = defineCommand({
171
- meta: {
172
- name: "base.onboarding.complete",
173
- version: 1,
174
- stability: StabilityEnum.Beta,
175
- owners: [OwnersEnum.PlatformSigil],
176
- tags: ["onboarding"],
177
- description: "Complete onboarding and finalize user/organization setup",
178
- goal: "Transition from draft to active profile",
179
- context: "Validates all required fields, creates/updates entities, marks onboarding complete"
180
- },
181
- io: {
182
- input: CompleteOnboardingBaseInput,
183
- output: CompleteOnboardingBaseOutput
184
- },
185
- policy: {
186
- auth: "user",
187
- escalate: null
188
- },
189
- transport: {
190
- gql: { field: "completeOnboarding" },
191
- rest: { method: "POST" }
192
- }
193
- });
194
-
195
- //#endregion
196
- export { CompleteOnboardingBaseInput, CompleteOnboardingBaseOutput, DeleteOnboardingDraftOutput, GetOnboardingDraftOutput, SaveOnboardingDraftInput, SaveOnboardingDraftOutput };
@@ -1 +0,0 @@
1
- import "./jsonschema.js";
@@ -1,21 +0,0 @@
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
- ProductColiving: "product.coliving",
12
- ProductStrit: "product.strit",
13
- ProductArtisanos: "product.artisanos",
14
- PlatformSigil: "platform.sigil",
15
- PlatformMarketplace: "platform.marketplace",
16
- PlatformContent: "platform.content",
17
- PlatformFeatureFlags: "platform.featureflags"
18
- };
19
-
20
- //#endregion
21
- export { OwnersEnum, StabilityEnum };
@@ -1 +0,0 @@
1
- import z from "zod";
@@ -1,11 +0,0 @@
1
- import "react";
2
- import TurndownService from "turndown";
3
-
4
- //#region ../../libs/contracts/dist/presentations.v2.js
5
- /**
6
- * Pluggable transform engine that renders descriptors to various targets
7
- * and runs validators (e.g., basic metadata checks, PII redaction policies).
8
- */
9
- const turndown = new TurndownService();
10
-
11
- //#endregion
@@ -1 +0,0 @@
1
- import "zod";
@@ -1 +0,0 @@
1
- import "zod";
@@ -1 +0,0 @@
1
- import "./service.js";
@@ -1,6 +0,0 @@
1
- import "node:timers/promises";
2
-
3
- //#region ../../libs/contracts/dist/regenerator/service.js
4
- const DEFAULT_BATCH_DURATION = 5 * 6e4;
5
-
6
- //#endregion
@@ -1,2 +0,0 @@
1
- import { defaultDocRegistry, registerDocBlocks } from "./docs/registry.js";
2
- import "./events.js";
@@ -1 +0,0 @@
1
- import "zod";
@@ -1,2 +0,0 @@
1
- import "zod";
2
- import "graphql";
@@ -1,49 +0,0 @@
1
- import "zod";
2
- import { GraphQLScalarType } from "graphql";
3
-
4
- //#region ../../libs/contracts/dist/schema/dist/FieldType.js
5
- /**
6
- * GraphQL scalar wrapper that carries zod and JSON Schema metadata.
7
- *
8
- * TInternal is the runtime representation; TExternal is the GraphQL output.
9
- */
10
- var FieldType = class extends GraphQLScalarType {
11
- zodSchema;
12
- jsonSchemaDef;
13
- constructor(config) {
14
- super(config);
15
- this.zodSchema = config.zod;
16
- this.jsonSchemaDef = config.jsonSchema;
17
- }
18
- /** Return the attached zod schema for validation. */
19
- getZod() {
20
- return this.zodSchema;
21
- }
22
- /** GraphQL scalar instance usable by Pothos or vanilla GraphQL. */
23
- getPothos() {
24
- return this;
25
- }
26
- /** Return the JSON Schema (evaluates factory if provided). */
27
- getJson() {
28
- return typeof this.jsonSchemaDef === "function" ? this.jsonSchemaDef() : this.jsonSchemaDef;
29
- }
30
- getJsonSchemaDef() {
31
- return this.jsonSchemaDef;
32
- }
33
- getJsonSchema() {
34
- const deepResolve = (v) => {
35
- const value = typeof v === "function" ? v() : v;
36
- if (Array.isArray(value)) return value.map((item) => deepResolve(item));
37
- if (value && typeof value === "object") {
38
- const obj = {};
39
- for (const [k, val] of Object.entries(value)) obj[k] = deepResolve(val);
40
- return obj;
41
- }
42
- return value;
43
- };
44
- return deepResolve(this.getJson());
45
- }
46
- };
47
-
48
- //#endregion
49
- export { FieldType };