@lssm/example.analytics-dashboard 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217060834

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 (138) hide show
  1. package/dist/dashboard/dashboard.contracts.d.ts +130 -130
  2. package/dist/dashboard/dashboard.contracts.js +5 -5
  3. package/dist/dashboard/dashboard.enum.d.ts +4 -4
  4. package/dist/dashboard/dashboard.enum.js +4 -5
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +42 -44
  7. package/dist/docs/analytics-dashboard.docblock.js +2 -3
  8. package/dist/events.d.ts +39 -39
  9. package/dist/events.js +24 -27
  10. package/dist/index.d.ts +1 -0
  11. package/dist/query/query.contracts.d.ts +1 -1
  12. package/dist/query/query.contracts.js +3 -3
  13. package/dist/query/query.enum.d.ts +2 -2
  14. package/dist/query/query.enum.js +2 -3
  15. package/dist/query/query.schema.d.ts +34 -34
  16. package/dist/query/query.schema.js +32 -34
  17. package/package.json +10 -10
  18. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -84
  19. package/dist/libs/contracts/dist/client/index.js +0 -5
  20. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  21. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  22. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  23. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  24. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -57
  25. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -91
  26. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -365
  27. package/dist/libs/contracts/dist/docs/index.js +0 -29
  28. package/dist/libs/contracts/dist/docs/presentations.js +0 -67
  29. package/dist/libs/contracts/dist/docs/registry.js +0 -42
  30. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -398
  31. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -83
  32. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -155
  33. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -101
  34. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  35. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  36. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  37. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -228
  38. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  39. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -21
  40. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  41. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -281
  42. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -22
  43. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  44. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  45. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -57
  46. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -22
  47. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  48. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -86
  49. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -22
  50. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  51. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  52. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  53. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  54. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  55. package/dist/libs/contracts/dist/events.js +0 -9
  56. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  57. package/dist/libs/contracts/dist/index.js +0 -71
  58. package/dist/libs/contracts/dist/install.js +0 -2
  59. package/dist/libs/contracts/dist/integrations/contracts.js +0 -371
  60. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  61. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -225
  62. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -157
  63. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  64. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -208
  65. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -240
  66. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -24
  67. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  68. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  69. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  70. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  71. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  72. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  73. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  74. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  75. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  76. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  77. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  78. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  79. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  80. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -299
  81. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  82. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  83. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  84. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  85. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  86. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  87. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  88. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  89. package/dist/libs/contracts/dist/llm/exporters.js +0 -18
  90. package/dist/libs/contracts/dist/llm/index.js +0 -2
  91. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  92. package/dist/libs/contracts/dist/onboarding-base.js +0 -179
  93. package/dist/libs/contracts/dist/openapi.js +0 -1
  94. package/dist/libs/contracts/dist/ownership.js +0 -36
  95. package/dist/libs/contracts/dist/presentations.js +0 -1
  96. package/dist/libs/contracts/dist/presentations.v2.js +0 -7
  97. package/dist/libs/contracts/dist/prompt.js +0 -1
  98. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  99. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  100. package/dist/libs/contracts/dist/regenerator/service.js +0 -1
  101. package/dist/libs/contracts/dist/registry.js +0 -2
  102. package/dist/libs/contracts/dist/resources.js +0 -1
  103. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  104. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -39
  105. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -222
  106. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -23
  107. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  108. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  109. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  110. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  111. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  112. package/dist/libs/contracts/dist/server/index.js +0 -8
  113. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  114. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  115. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  116. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  117. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  118. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  119. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  120. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  121. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  122. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  123. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  124. package/dist/libs/contracts/dist/spec.js +0 -25
  125. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  126. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  127. package/dist/libs/contracts/dist/tests/index.js +0 -1
  128. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  129. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  130. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  131. package/dist/libs/schema/dist/EnumType.js +0 -40
  132. package/dist/libs/schema/dist/FieldType.js +0 -39
  133. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -222
  134. package/dist/libs/schema/dist/SchemaModel.js +0 -24
  135. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  136. package/dist/libs/schema/dist/entity/index.js +0 -2
  137. package/dist/libs/schema/dist/entity/types.js +0 -1
  138. package/dist/libs/schema/dist/index.js +0 -6
@@ -1,140 +1,140 @@
1
- import * as _lssm_lib_schema170 from "@lssm/lib.schema";
1
+ import * as _lssm_lib_schema38 from "@lssm/lib.schema";
2
2
 
3
3
  //#region src/query/query.schema.d.ts
4
4
  /**
5
5
  * A data query.
6
6
  */
7
- declare const QueryModel: _lssm_lib_schema170.SchemaModel<{
7
+ declare const QueryModel: _lssm_lib_schema38.SchemaModel<{
8
8
  id: {
9
- type: _lssm_lib_schema170.FieldType<string, string>;
9
+ type: _lssm_lib_schema38.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  name: {
13
- type: _lssm_lib_schema170.FieldType<string, string>;
13
+ type: _lssm_lib_schema38.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  description: {
17
- type: _lssm_lib_schema170.FieldType<string, string>;
17
+ type: _lssm_lib_schema38.FieldType<string, string>;
18
18
  isOptional: true;
19
19
  };
20
20
  type: {
21
- type: _lssm_lib_schema170.EnumType<[string, string, string, string]>;
21
+ type: _lssm_lib_schema38.EnumType<[string, string, string, string]>;
22
22
  isOptional: false;
23
23
  };
24
24
  definition: {
25
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
25
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
26
26
  isOptional: false;
27
27
  };
28
28
  sql: {
29
- type: _lssm_lib_schema170.FieldType<string, string>;
29
+ type: _lssm_lib_schema38.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  cacheTtlSeconds: {
33
- type: _lssm_lib_schema170.FieldType<number, number>;
33
+ type: _lssm_lib_schema38.FieldType<number, number>;
34
34
  isOptional: false;
35
35
  };
36
36
  isShared: {
37
- type: _lssm_lib_schema170.FieldType<boolean, boolean>;
37
+ type: _lssm_lib_schema38.FieldType<boolean, boolean>;
38
38
  isOptional: false;
39
39
  };
40
40
  createdAt: {
41
- type: _lssm_lib_schema170.FieldType<Date, string>;
41
+ type: _lssm_lib_schema38.FieldType<Date, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  }>;
45
45
  /**
46
46
  * Query execution result.
47
47
  */
48
- declare const QueryResultModel: _lssm_lib_schema170.SchemaModel<{
48
+ declare const QueryResultModel: _lssm_lib_schema38.SchemaModel<{
49
49
  queryId: {
50
- type: _lssm_lib_schema170.FieldType<string, string>;
50
+ type: _lssm_lib_schema38.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  data: {
54
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
54
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
55
55
  isOptional: false;
56
56
  };
57
57
  columns: {
58
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
58
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
59
59
  isOptional: false;
60
60
  };
61
61
  rowCount: {
62
- type: _lssm_lib_schema170.FieldType<number, number>;
62
+ type: _lssm_lib_schema38.FieldType<number, number>;
63
63
  isOptional: false;
64
64
  };
65
65
  executionTimeMs: {
66
- type: _lssm_lib_schema170.FieldType<number, number>;
66
+ type: _lssm_lib_schema38.FieldType<number, number>;
67
67
  isOptional: false;
68
68
  };
69
69
  cachedAt: {
70
- type: _lssm_lib_schema170.FieldType<Date, string>;
70
+ type: _lssm_lib_schema38.FieldType<Date, string>;
71
71
  isOptional: true;
72
72
  };
73
73
  error: {
74
- type: _lssm_lib_schema170.FieldType<string, string>;
74
+ type: _lssm_lib_schema38.FieldType<string, string>;
75
75
  isOptional: true;
76
76
  };
77
77
  }>;
78
78
  /**
79
79
  * Input for creating a query.
80
80
  */
81
- declare const CreateQueryInputModel: _lssm_lib_schema170.SchemaModel<{
81
+ declare const CreateQueryInputModel: _lssm_lib_schema38.SchemaModel<{
82
82
  name: {
83
- type: _lssm_lib_schema170.FieldType<string, string>;
83
+ type: _lssm_lib_schema38.FieldType<string, string>;
84
84
  isOptional: false;
85
85
  };
86
86
  description: {
87
- type: _lssm_lib_schema170.FieldType<string, string>;
87
+ type: _lssm_lib_schema38.FieldType<string, string>;
88
88
  isOptional: true;
89
89
  };
90
90
  type: {
91
- type: _lssm_lib_schema170.EnumType<[string, string, string, string]>;
91
+ type: _lssm_lib_schema38.EnumType<[string, string, string, string]>;
92
92
  isOptional: false;
93
93
  };
94
94
  definition: {
95
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
95
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
96
96
  isOptional: false;
97
97
  };
98
98
  sql: {
99
- type: _lssm_lib_schema170.FieldType<string, string>;
99
+ type: _lssm_lib_schema38.FieldType<string, string>;
100
100
  isOptional: true;
101
101
  };
102
102
  metricIds: {
103
- type: _lssm_lib_schema170.FieldType<string, string>;
103
+ type: _lssm_lib_schema38.FieldType<string, string>;
104
104
  isArray: true;
105
105
  isOptional: true;
106
106
  };
107
107
  cacheTtlSeconds: {
108
- type: _lssm_lib_schema170.FieldType<number, number>;
108
+ type: _lssm_lib_schema38.FieldType<number, number>;
109
109
  isOptional: true;
110
110
  };
111
111
  isShared: {
112
- type: _lssm_lib_schema170.FieldType<boolean, boolean>;
112
+ type: _lssm_lib_schema38.FieldType<boolean, boolean>;
113
113
  isOptional: true;
114
114
  };
115
115
  }>;
116
116
  /**
117
117
  * Input for executing a query.
118
118
  */
119
- declare const ExecuteQueryInputModel: _lssm_lib_schema170.SchemaModel<{
119
+ declare const ExecuteQueryInputModel: _lssm_lib_schema38.SchemaModel<{
120
120
  queryId: {
121
- type: _lssm_lib_schema170.FieldType<string, string>;
121
+ type: _lssm_lib_schema38.FieldType<string, string>;
122
122
  isOptional: false;
123
123
  };
124
124
  parameters: {
125
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
125
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
126
126
  isOptional: true;
127
127
  };
128
128
  dateRange: {
129
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
129
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
130
130
  isOptional: true;
131
131
  };
132
132
  filters: {
133
- type: _lssm_lib_schema170.FieldType<unknown, unknown>;
133
+ type: _lssm_lib_schema38.FieldType<unknown, unknown>;
134
134
  isOptional: true;
135
135
  };
136
136
  forceRefresh: {
137
- type: _lssm_lib_schema170.FieldType<boolean, boolean>;
137
+ type: _lssm_lib_schema38.FieldType<boolean, boolean>;
138
138
  isOptional: true;
139
139
  };
140
140
  }>;
@@ -1,25 +1,23 @@
1
- import { l } from "../libs/schema/dist/ScalarTypeEnum.js";
2
- import { n } from "../libs/schema/dist/SchemaModel.js";
3
- import "../libs/schema/dist/index.js";
4
1
  import { QueryTypeEnum } from "./query.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
5
3
 
6
4
  //#region src/query/query.schema.ts
7
5
  /**
8
6
  * A data query.
9
7
  */
10
- const QueryModel = n({
8
+ const QueryModel = defineSchemaModel({
11
9
  name: "QueryModel",
12
10
  fields: {
13
11
  id: {
14
- type: l.String_unsecure(),
12
+ type: ScalarTypeEnum.String_unsecure(),
15
13
  isOptional: false
16
14
  },
17
15
  name: {
18
- type: l.String_unsecure(),
16
+ type: ScalarTypeEnum.String_unsecure(),
19
17
  isOptional: false
20
18
  },
21
19
  description: {
22
- type: l.String_unsecure(),
20
+ type: ScalarTypeEnum.String_unsecure(),
23
21
  isOptional: true
24
22
  },
25
23
  type: {
@@ -27,23 +25,23 @@ const QueryModel = n({
27
25
  isOptional: false
28
26
  },
29
27
  definition: {
30
- type: l.JSON(),
28
+ type: ScalarTypeEnum.JSON(),
31
29
  isOptional: false
32
30
  },
33
31
  sql: {
34
- type: l.String_unsecure(),
32
+ type: ScalarTypeEnum.String_unsecure(),
35
33
  isOptional: true
36
34
  },
37
35
  cacheTtlSeconds: {
38
- type: l.Int_unsecure(),
36
+ type: ScalarTypeEnum.Int_unsecure(),
39
37
  isOptional: false
40
38
  },
41
39
  isShared: {
42
- type: l.Boolean(),
40
+ type: ScalarTypeEnum.Boolean(),
43
41
  isOptional: false
44
42
  },
45
43
  createdAt: {
46
- type: l.DateTime(),
44
+ type: ScalarTypeEnum.DateTime(),
47
45
  isOptional: false
48
46
  }
49
47
  }
@@ -51,35 +49,35 @@ const QueryModel = n({
51
49
  /**
52
50
  * Query execution result.
53
51
  */
54
- const QueryResultModel = n({
52
+ const QueryResultModel = defineSchemaModel({
55
53
  name: "QueryResultModel",
56
54
  fields: {
57
55
  queryId: {
58
- type: l.String_unsecure(),
56
+ type: ScalarTypeEnum.String_unsecure(),
59
57
  isOptional: false
60
58
  },
61
59
  data: {
62
- type: l.JSON(),
60
+ type: ScalarTypeEnum.JSON(),
63
61
  isOptional: false
64
62
  },
65
63
  columns: {
66
- type: l.JSON(),
64
+ type: ScalarTypeEnum.JSON(),
67
65
  isOptional: false
68
66
  },
69
67
  rowCount: {
70
- type: l.Int_unsecure(),
68
+ type: ScalarTypeEnum.Int_unsecure(),
71
69
  isOptional: false
72
70
  },
73
71
  executionTimeMs: {
74
- type: l.Int_unsecure(),
72
+ type: ScalarTypeEnum.Int_unsecure(),
75
73
  isOptional: false
76
74
  },
77
75
  cachedAt: {
78
- type: l.DateTime(),
76
+ type: ScalarTypeEnum.DateTime(),
79
77
  isOptional: true
80
78
  },
81
79
  error: {
82
- type: l.String_unsecure(),
80
+ type: ScalarTypeEnum.String_unsecure(),
83
81
  isOptional: true
84
82
  }
85
83
  }
@@ -87,15 +85,15 @@ const QueryResultModel = n({
87
85
  /**
88
86
  * Input for creating a query.
89
87
  */
90
- const CreateQueryInputModel = n({
88
+ const CreateQueryInputModel = defineSchemaModel({
91
89
  name: "CreateQueryInput",
92
90
  fields: {
93
91
  name: {
94
- type: l.NonEmptyString(),
92
+ type: ScalarTypeEnum.NonEmptyString(),
95
93
  isOptional: false
96
94
  },
97
95
  description: {
98
- type: l.String_unsecure(),
96
+ type: ScalarTypeEnum.String_unsecure(),
99
97
  isOptional: true
100
98
  },
101
99
  type: {
@@ -103,24 +101,24 @@ const CreateQueryInputModel = n({
103
101
  isOptional: false
104
102
  },
105
103
  definition: {
106
- type: l.JSON(),
104
+ type: ScalarTypeEnum.JSON(),
107
105
  isOptional: false
108
106
  },
109
107
  sql: {
110
- type: l.String_unsecure(),
108
+ type: ScalarTypeEnum.String_unsecure(),
111
109
  isOptional: true
112
110
  },
113
111
  metricIds: {
114
- type: l.String_unsecure(),
112
+ type: ScalarTypeEnum.String_unsecure(),
115
113
  isArray: true,
116
114
  isOptional: true
117
115
  },
118
116
  cacheTtlSeconds: {
119
- type: l.Int_unsecure(),
117
+ type: ScalarTypeEnum.Int_unsecure(),
120
118
  isOptional: true
121
119
  },
122
120
  isShared: {
123
- type: l.Boolean(),
121
+ type: ScalarTypeEnum.Boolean(),
124
122
  isOptional: true
125
123
  }
126
124
  }
@@ -128,27 +126,27 @@ const CreateQueryInputModel = n({
128
126
  /**
129
127
  * Input for executing a query.
130
128
  */
131
- const ExecuteQueryInputModel = n({
129
+ const ExecuteQueryInputModel = defineSchemaModel({
132
130
  name: "ExecuteQueryInput",
133
131
  fields: {
134
132
  queryId: {
135
- type: l.String_unsecure(),
133
+ type: ScalarTypeEnum.String_unsecure(),
136
134
  isOptional: false
137
135
  },
138
136
  parameters: {
139
- type: l.JSON(),
137
+ type: ScalarTypeEnum.JSON(),
140
138
  isOptional: true
141
139
  },
142
140
  dateRange: {
143
- type: l.JSON(),
141
+ type: ScalarTypeEnum.JSON(),
144
142
  isOptional: true
145
143
  },
146
144
  filters: {
147
- type: l.JSON(),
145
+ type: ScalarTypeEnum.JSON(),
148
146
  isOptional: true
149
147
  },
150
148
  forceRefresh: {
151
- type: l.Boolean(),
149
+ type: ScalarTypeEnum.Boolean(),
152
150
  isOptional: true
153
151
  }
154
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.analytics-dashboard",
3
- "version": "0.0.0-canary-20251217062139",
3
+ "version": "0.0.0-canary-20251217060834",
4
4
  "description": "Analytics Dashboard example with widgets and query engine for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,18 +18,18 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@lssm/lib.schema": "0.0.0-canary-20251217062139",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251217062139",
23
- "@lssm/lib.bus": "0.0.0-canary-20251217062139",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251217062139",
25
- "@lssm/lib.metering": "0.0.0-canary-20251217062139",
26
- "@lssm/lib.jobs": "0.0.0-canary-20251217062139",
27
- "@lssm/module.audit-trail": "0.0.0-canary-20251217062139",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251217060834",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251217060834",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251217060834",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251217060834",
25
+ "@lssm/lib.metering": "0.0.0-canary-20251217060834",
26
+ "@lssm/lib.jobs": "0.0.0-canary-20251217060834",
27
+ "@lssm/module.audit-trail": "0.0.0-canary-20251217060834",
28
28
  "zod": "^4.1.13"
29
29
  },
30
30
  "devDependencies": {
31
- "@lssm/tool.typescript": "0.0.0-canary-20251217062139",
32
- "@lssm/tool.tsdown": "0.0.0-canary-20251217062139",
31
+ "@lssm/tool.typescript": "0.0.0-canary-20251217060834",
32
+ "@lssm/tool.tsdown": "0.0.0-canary-20251217060834",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
35
  "exports": {
@@ -1,84 +0,0 @@
1
- import { e } from "../ownership.js";
2
-
3
- //#region ../../libs/contracts/dist/capabilities/openbanking.js
4
- const t = [`platform.finance`], n = [`open-banking`, `finance`], r = {
5
- meta: {
6
- key: `openbanking.accounts.read`,
7
- version: 1,
8
- kind: `integration`,
9
- title: `Open Banking Accounts (Read)`,
10
- description: `Provides read-only access to linked bank accounts, including account summaries and metadata.`,
11
- domain: `finance`,
12
- owners: [...t],
13
- tags: [...n],
14
- stability: e.Experimental
15
- },
16
- provides: [
17
- {
18
- surface: `operation`,
19
- name: `openbanking.accounts.list`,
20
- version: 1,
21
- description: `List bank accounts linked to a Powens open banking connection.`
22
- },
23
- {
24
- surface: `operation`,
25
- name: `openbanking.accounts.get`,
26
- version: 1,
27
- description: `Retrieve the canonical bank account record for a specific account.`
28
- },
29
- {
30
- surface: `operation`,
31
- name: `openbanking.accounts.sync`,
32
- version: 1,
33
- description: `Trigger a refresh of bank account metadata from the open banking provider.`
34
- }
35
- ]
36
- }, i = {
37
- meta: {
38
- key: `openbanking.transactions.read`,
39
- version: 1,
40
- kind: `integration`,
41
- title: `Open Banking Transactions (Read)`,
42
- description: `Enables retrieval of transaction history for linked bank accounts via open banking providers.`,
43
- domain: `finance`,
44
- owners: [...t],
45
- tags: [...n, `transactions`],
46
- stability: e.Experimental
47
- },
48
- provides: [{
49
- surface: `operation`,
50
- name: `openbanking.transactions.list`,
51
- version: 1,
52
- description: `List transactions for a given bank account with optional date filtering.`
53
- }, {
54
- surface: `operation`,
55
- name: `openbanking.transactions.sync`,
56
- version: 1,
57
- description: `Synchronise transactions from the open banking provider into the canonical ledger.`
58
- }]
59
- }, a = {
60
- meta: {
61
- key: `openbanking.balances.read`,
62
- version: 1,
63
- kind: `integration`,
64
- title: `Open Banking Balances (Read)`,
65
- description: `Allows querying of current and available balances for linked bank accounts via open banking providers.`,
66
- domain: `finance`,
67
- owners: [...t],
68
- tags: [...n, `balances`],
69
- stability: e.Experimental
70
- },
71
- provides: [{
72
- surface: `operation`,
73
- name: `openbanking.balances.get`,
74
- version: 1,
75
- description: `Retrieve the latest known balances for a specified bank account.`
76
- }, {
77
- surface: `operation`,
78
- name: `openbanking.balances.refresh`,
79
- version: 1,
80
- description: `Force a balance refresh from the open banking provider.`
81
- }]
82
- };
83
-
84
- //#endregion
@@ -1,5 +0,0 @@
1
- "use client";
2
-
3
- import "./react/feature-render.js";
4
- import "./react/form-render.js";
5
- import "./react/index.js";
@@ -1,2 +0,0 @@
1
- import "../../presentations.v2.js";
2
- import "react";
@@ -1,4 +0,0 @@
1
- import "react";
2
- import "react-hook-form";
3
- import "@hookform/resolvers/zod";
4
- import "react/jsx-runtime";
@@ -1,4 +0,0 @@
1
- "use client";
2
-
3
- import "./feature-render.js";
4
- import "./form-render.js";
@@ -1 +0,0 @@
1
- import { i, n, r } from "./schemas.js";
@@ -1,57 +0,0 @@
1
- import { e as e$1 } from "../ownership.js";
2
- import e from "zod";
3
-
4
- //#region ../../libs/contracts/dist/contract-registry/schemas.js
5
- const n = e.enum([
6
- `contractspec:operation`,
7
- `contractspec:event`,
8
- `contractspec:presentation`,
9
- `contractspec:form`,
10
- `contractspec:feature`,
11
- `contractspec:workflow`,
12
- `contractspec:template`,
13
- `contractspec:integration`,
14
- `contractspec:data-view`,
15
- `contractspec:migration`,
16
- `contractspec:telemetry`,
17
- `contractspec:experiment`,
18
- `contractspec:app-config`,
19
- `contractspec:knowledge`
20
- ]), r = e.object({
21
- path: e.string().min(1),
22
- type: e.string().min(1),
23
- content: e.string().optional()
24
- }), i = e.object({
25
- name: e.string().min(1),
26
- type: n,
27
- version: e.number().int().nonnegative(),
28
- title: e.string().min(1),
29
- description: e.string().min(1),
30
- meta: e.object({
31
- stability: e.enum([
32
- e$1.Idea,
33
- e$1.InCreation,
34
- e$1.Experimental,
35
- e$1.Beta,
36
- e$1.Stable,
37
- e$1.Deprecated
38
- ]),
39
- owners: e.array(e.string().min(1)).default([]),
40
- tags: e.array(e.string().min(1)).default([])
41
- }),
42
- dependencies: e.array(e.string().min(1)).optional(),
43
- registryDependencies: e.array(e.string().min(1)).optional(),
44
- files: e.array(r).min(1),
45
- schema: e.object({
46
- input: e.unknown().optional(),
47
- output: e.unknown().optional()
48
- }).optional()
49
- }), a = e.object({
50
- $schema: e.string().min(1).optional(),
51
- name: e.string().min(1),
52
- homepage: e.string().min(1).optional(),
53
- items: e.array(i)
54
- });
55
-
56
- //#endregion
57
- export { i, n, r };
@@ -1,91 +0,0 @@
1
- import { a } from "./registry.js";
2
-
3
- //#region ../../libs/contracts/dist/docs/PUBLISHING.docblock.js
4
- const t = [{
5
- id: `docs.PUBLISHING`,
6
- title: `Publishing ContractSpec Libraries`,
7
- summary: `This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).`,
8
- kind: `reference`,
9
- visibility: `public`,
10
- route: `/docs/PUBLISHING`,
11
- tags: [`PUBLISHING`],
12
- body: `# Publishing ContractSpec Libraries
13
-
14
- This guide describes how we release the ContractSpec libraries to npm. We use a dual-track release system: **Stable** (manual) and **Canary** (automatic).
15
-
16
- ## Release Tracks
17
-
18
- | Track | Branch | npm Tag | Frequency | Versioning | Use Case |
19
- |-------|--------|---------|-----------|------------|----------|
20
- | **Stable** | \`release\` | \`latest\` | Manual | SemVer (e.g., \`1.7.4\`) | Production, external users |
21
- | **Canary** | \`main\` | \`canary\` | Every Push | Snapshot (e.g., \`1.7.4-canary...\`) | Dev, internal testing |
22
-
23
- ## Prerequisites
24
-
25
- - ✅ \`NPM_TOKEN\` secret is configured in GitHub (owner or automation token with _publish_ scope).
26
- - ✅ \`GITHUB_TOKEN\` (built-in) has permissions to create PRs (enabled by default in new repos).
27
- - ✅ For stable releases: \`release\` branch exists and is protected.
28
-
29
- ## Canary Workflow (Automatic)
30
-
31
- Every commit pushed to \`main\` triggers the \`.github/workflows/publish-canary.yml\` workflow.
32
-
33
- 1. **Trigger**: Push to \`main\`.
34
- 2. **Versioning**: Runs \`changeset version --snapshot canary\` to generate a temporary snapshot version.
35
- 3. **Publish**: Packages are published to npm with the \`canary\` tag using \`changeset publish --tag canary\`.
36
-
37
- ### Consuming Canary Builds
38
-
39
- To install the latest bleeding-edge version:
40
-
41
- \`\`\`bash
42
- npm install @lssm/lib.contracts@canary
43
- # or
44
- bun add @lssm/lib.contracts@canary
45
- \`\`\`
46
-
47
- ## Stable Release Workflow (Manual)
48
-
49
- Stable releases are managed via the \`release\` branch using the standard [Changesets Action](https://github.com/changesets/action).
50
-
51
- 1. **Develop on \`main\`**: Create features and fixes.
52
- 2. **Add Changesets**: Run \`bun changeset\` to document changes and impact (major/minor/patch).
53
- 3. **Merge to \`release\`**: When ready to ship, open a PR from \`main\` to \`release\` or merge manually.
54
- 4. **"Version Packages" PR**:
55
- - The GitHub Action detects new changesets and automatically creates a Pull Request titled **"Version Packages"**.
56
- - This PR contains the version bumps and updated \`CHANGELOG.md\` files.
57
- 5. **Merge & Publish**:
58
- - Review and merge the "Version Packages" PR.
59
- - The Action runs again, detects the versions have been bumped, builds the libraries, and publishes them to npm with the \`latest\` tag.
60
-
61
- ### Publishing Steps
62
-
63
- 1. Ensure all changesets are present on \`main\`.
64
- 2. Merge \`main\` into \`release\`:
65
- \`\`\`bash
66
- git checkout release
67
- git pull origin release
68
- git merge main
69
- git push origin release
70
- \`\`\`
71
- 3. Go to GitHub Pull Requests. You will see a **"Version Packages"** PR created by the bot.
72
- 4. Merge that PR.
73
- 5. The release is now live on npm!
74
-
75
- ## Manual Verification (Optional)
76
-
77
- Before publishing a new version you can run:
78
-
79
- \`\`\`bash
80
- bun run build:not-apps
81
- npx npm-packlist --json packages/libs/contracts
82
- \`\`\`
83
-
84
- ## Rollback
85
-
86
- If a publish fails mid-way, re-run the workflow once the issue is fixed. Already published packages are skipped automatically. Use \`npm deprecate <package>@<version>\` if we need to warn consumers about a broken release.
87
- `
88
- }];
89
- a(t);
90
-
91
- //#endregion