@lssm/lib.metering 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223012036

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 (191) hide show
  1. package/dist/contracts/index.js +150 -151
  2. package/dist/contracts/index.js.map +1 -1
  3. package/dist/docs/metering.docblock.js +1 -2
  4. package/dist/docs/metering.docblock.js.map +1 -1
  5. package/dist/entities/index.js +112 -112
  6. package/dist/entities/index.js.map +1 -1
  7. package/dist/events.js +69 -70
  8. package/dist/events.js.map +1 -1
  9. package/package.json +6 -6
  10. package/dist/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  11. package/dist/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  12. package/dist/contracts/dist/capabilities/index.js +0 -1
  13. package/dist/contracts/dist/capabilities/openbanking.js +0 -89
  14. package/dist/contracts/dist/capabilities/openbanking.js.map +0 -1
  15. package/dist/contracts/dist/client/index.js +0 -5
  16. package/dist/contracts/dist/client/react/feature-render.js +0 -3
  17. package/dist/contracts/dist/client/react/form-render.js +0 -5
  18. package/dist/contracts/dist/client/react/index.js +0 -4
  19. package/dist/contracts/dist/contract-registry/index.js +0 -1
  20. package/dist/contracts/dist/contract-registry/schemas.js +0 -61
  21. package/dist/contracts/dist/contract-registry/schemas.js.map +0 -1
  22. package/dist/contracts/dist/data-views/data-views.js +0 -7
  23. package/dist/contracts/dist/data-views/data-views.js.map +0 -1
  24. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  25. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  26. package/dist/contracts/dist/docs/index.js +0 -25
  27. package/dist/contracts/dist/docs/meta.docs.js +0 -30
  28. package/dist/contracts/dist/docs/meta.docs.js.map +0 -1
  29. package/dist/contracts/dist/docs/presentations.js +0 -72
  30. package/dist/contracts/dist/docs/presentations.js.map +0 -1
  31. package/dist/contracts/dist/docs/registry.js +0 -45
  32. package/dist/contracts/dist/docs/registry.js.map +0 -1
  33. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  34. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  35. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  36. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  37. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  38. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  39. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  40. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  41. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  42. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  43. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  44. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  45. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  46. package/dist/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  47. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  48. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  49. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  50. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  51. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  52. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  53. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  54. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  55. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  56. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  57. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  58. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  59. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  60. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  61. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  62. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  63. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  64. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  65. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  66. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  67. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  68. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  69. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  70. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  71. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  72. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  73. package/dist/contracts/dist/docs/tech-contracts.docs.js +0 -97
  74. package/dist/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  75. package/dist/contracts/dist/events.js +0 -11
  76. package/dist/contracts/dist/events.js.map +0 -1
  77. package/dist/contracts/dist/experiments/evaluator.js +0 -1
  78. package/dist/contracts/dist/features.js +0 -7
  79. package/dist/contracts/dist/features.js.map +0 -1
  80. package/dist/contracts/dist/forms/forms.js +0 -1
  81. package/dist/contracts/dist/index.js +0 -88
  82. package/dist/contracts/dist/index.js.map +0 -1
  83. package/dist/contracts/dist/install.js +0 -2
  84. package/dist/contracts/dist/integrations/index.js +0 -18
  85. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  86. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  87. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  88. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  89. package/dist/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  90. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  91. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  92. package/dist/contracts/dist/integrations/openbanking/models.js +0 -241
  93. package/dist/contracts/dist/integrations/openbanking/models.js.map +0 -1
  94. package/dist/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  95. package/dist/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  96. package/dist/contracts/dist/integrations/operations.js +0 -377
  97. package/dist/contracts/dist/integrations/operations.js.map +0 -1
  98. package/dist/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  99. package/dist/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  100. package/dist/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  101. package/dist/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  102. package/dist/contracts/dist/integrations/providers/gmail.js +0 -88
  103. package/dist/contracts/dist/integrations/providers/gmail.js.map +0 -1
  104. package/dist/contracts/dist/integrations/providers/google-calendar.js +0 -67
  105. package/dist/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  106. package/dist/contracts/dist/integrations/providers/index.js +0 -11
  107. package/dist/contracts/dist/integrations/providers/mistral.js +0 -69
  108. package/dist/contracts/dist/integrations/providers/mistral.js.map +0 -1
  109. package/dist/contracts/dist/integrations/providers/postmark.js +0 -69
  110. package/dist/contracts/dist/integrations/providers/postmark.js.map +0 -1
  111. package/dist/contracts/dist/integrations/providers/powens.js +0 -117
  112. package/dist/contracts/dist/integrations/providers/powens.js.map +0 -1
  113. package/dist/contracts/dist/integrations/providers/qdrant.js +0 -74
  114. package/dist/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  115. package/dist/contracts/dist/integrations/providers/registry.js +0 -10
  116. package/dist/contracts/dist/integrations/providers/stripe.js +0 -84
  117. package/dist/contracts/dist/integrations/providers/stripe.js.map +0 -1
  118. package/dist/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  119. package/dist/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  120. package/dist/contracts/dist/jsonschema.js +0 -1
  121. package/dist/contracts/dist/knowledge/index.js +0 -7
  122. package/dist/contracts/dist/knowledge/operations.js +0 -306
  123. package/dist/contracts/dist/knowledge/operations.js.map +0 -1
  124. package/dist/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  125. package/dist/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  126. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  127. package/dist/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  128. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  129. package/dist/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  130. package/dist/contracts/dist/knowledge/spaces/index.js +0 -6
  131. package/dist/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  132. package/dist/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  133. package/dist/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  134. package/dist/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  135. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  136. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  137. package/dist/contracts/dist/llm/exporters.js +0 -21
  138. package/dist/contracts/dist/llm/exporters.js.map +0 -1
  139. package/dist/contracts/dist/llm/index.js +0 -2
  140. package/dist/contracts/dist/llm/prompts.js +0 -1
  141. package/dist/contracts/dist/onboarding-base.js +0 -196
  142. package/dist/contracts/dist/onboarding-base.js.map +0 -1
  143. package/dist/contracts/dist/openapi.js +0 -1
  144. package/dist/contracts/dist/operations/index.js +0 -2
  145. package/dist/contracts/dist/operations/operation.js +0 -35
  146. package/dist/contracts/dist/operations/operation.js.map +0 -1
  147. package/dist/contracts/dist/operations/registry.js +0 -8
  148. package/dist/contracts/dist/operations/registry.js.map +0 -1
  149. package/dist/contracts/dist/ownership.js +0 -24
  150. package/dist/contracts/dist/ownership.js.map +0 -1
  151. package/dist/contracts/dist/presentations/index.js +0 -2
  152. package/dist/contracts/dist/presentations/presentations.js +0 -8
  153. package/dist/contracts/dist/presentations/presentations.js.map +0 -1
  154. package/dist/contracts/dist/presentations/transform-engine.js +0 -12
  155. package/dist/contracts/dist/presentations/transform-engine.js.map +0 -1
  156. package/dist/contracts/dist/prompt.js +0 -1
  157. package/dist/contracts/dist/promptRegistry.js +0 -1
  158. package/dist/contracts/dist/regenerator/index.js +0 -1
  159. package/dist/contracts/dist/regenerator/service.js +0 -7
  160. package/dist/contracts/dist/regenerator/service.js.map +0 -1
  161. package/dist/contracts/dist/registry-utils.js +0 -24
  162. package/dist/contracts/dist/registry-utils.js.map +0 -1
  163. package/dist/contracts/dist/resources.js +0 -1
  164. package/dist/contracts/dist/schema/dist/index.js +0 -3873
  165. package/dist/contracts/dist/schema/dist/index.js.map +0 -1
  166. package/dist/contracts/dist/server/graphql-pothos.js +0 -6
  167. package/dist/contracts/dist/server/index.js +0 -8
  168. package/dist/contracts/dist/server/mcp/createMcpServer.js +0 -4
  169. package/dist/contracts/dist/server/mcp/registerPresentations.js +0 -3
  170. package/dist/contracts/dist/server/mcp/registerPrompts.js +0 -1
  171. package/dist/contracts/dist/server/mcp/registerResources.js +0 -2
  172. package/dist/contracts/dist/server/mcp/registerTools.js +0 -1
  173. package/dist/contracts/dist/server/provider-mcp.js +0 -1
  174. package/dist/contracts/dist/server/rest-elysia.js +0 -1
  175. package/dist/contracts/dist/server/rest-express.js +0 -1
  176. package/dist/contracts/dist/server/rest-generic.js +0 -1
  177. package/dist/contracts/dist/server/rest-next-app.js +0 -1
  178. package/dist/contracts/dist/server/rest-next-pages.js +0 -1
  179. package/dist/contracts/dist/telemetry/index.js +0 -1
  180. package/dist/contracts/dist/telemetry/tracker.js +0 -1
  181. package/dist/contracts/dist/tests/index.js +0 -1
  182. package/dist/contracts/dist/tests/runner.js +0 -2
  183. package/dist/contracts/dist/workflow/index.js +0 -2
  184. package/dist/contracts/dist/workflow/runner.js +0 -1
  185. package/dist/contracts/dist/workflow/spec.js +0 -7
  186. package/dist/contracts/dist/workflow/spec.js.map +0 -1
  187. package/dist/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
  188. package/dist/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  189. package/dist/contracts/dist/workspace-config/index.js +0 -1
  190. package/dist/schema/dist/index.js +0 -4889
  191. package/dist/schema/dist/index.js.map +0 -1
@@ -1,342 +1,341 @@
1
- import { E5, K5 } from "../schema/dist/index.js";
2
- import { defineCommand, defineQuery } from "./dist/operations/operation.js";
3
- import "./dist/index.js";
1
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
2
+ import { defineCommand, defineQuery } from "@lssm/lib.contracts";
4
3
 
5
4
  //#region src/contracts/index.ts
6
5
  const OWNERS = ["platform.metering"];
7
- const MetricDefinitionModel = K5({
6
+ const MetricDefinitionModel = defineSchemaModel({
8
7
  name: "MetricDefinition",
9
8
  description: "Represents a metric definition",
10
9
  fields: {
11
10
  id: {
12
- type: E5.String_unsecure(),
11
+ type: ScalarTypeEnum.String_unsecure(),
13
12
  isOptional: false
14
13
  },
15
14
  key: {
16
- type: E5.String_unsecure(),
15
+ type: ScalarTypeEnum.String_unsecure(),
17
16
  isOptional: false
18
17
  },
19
18
  name: {
20
- type: E5.String_unsecure(),
19
+ type: ScalarTypeEnum.String_unsecure(),
21
20
  isOptional: false
22
21
  },
23
22
  description: {
24
- type: E5.String_unsecure(),
23
+ type: ScalarTypeEnum.String_unsecure(),
25
24
  isOptional: true
26
25
  },
27
26
  unit: {
28
- type: E5.String_unsecure(),
27
+ type: ScalarTypeEnum.String_unsecure(),
29
28
  isOptional: false
30
29
  },
31
30
  aggregationType: {
32
- type: E5.String_unsecure(),
31
+ type: ScalarTypeEnum.String_unsecure(),
33
32
  isOptional: false
34
33
  },
35
34
  resetPeriod: {
36
- type: E5.String_unsecure(),
35
+ type: ScalarTypeEnum.String_unsecure(),
37
36
  isOptional: false
38
37
  },
39
38
  category: {
40
- type: E5.String_unsecure(),
39
+ type: ScalarTypeEnum.String_unsecure(),
41
40
  isOptional: true
42
41
  },
43
42
  isActive: {
44
- type: E5.Boolean(),
43
+ type: ScalarTypeEnum.Boolean(),
45
44
  isOptional: false
46
45
  },
47
46
  orgId: {
48
- type: E5.String_unsecure(),
47
+ type: ScalarTypeEnum.String_unsecure(),
49
48
  isOptional: true
50
49
  },
51
50
  createdAt: {
52
- type: E5.DateTime(),
51
+ type: ScalarTypeEnum.DateTime(),
53
52
  isOptional: false
54
53
  },
55
54
  updatedAt: {
56
- type: E5.DateTime(),
55
+ type: ScalarTypeEnum.DateTime(),
57
56
  isOptional: false
58
57
  }
59
58
  }
60
59
  });
61
- const UsageRecordModel = K5({
60
+ const UsageRecordModel = defineSchemaModel({
62
61
  name: "UsageRecord",
63
62
  description: "Represents a usage record",
64
63
  fields: {
65
64
  id: {
66
- type: E5.String_unsecure(),
65
+ type: ScalarTypeEnum.String_unsecure(),
67
66
  isOptional: false
68
67
  },
69
68
  metricKey: {
70
- type: E5.String_unsecure(),
69
+ type: ScalarTypeEnum.String_unsecure(),
71
70
  isOptional: false
72
71
  },
73
72
  subjectType: {
74
- type: E5.String_unsecure(),
73
+ type: ScalarTypeEnum.String_unsecure(),
75
74
  isOptional: false
76
75
  },
77
76
  subjectId: {
78
- type: E5.String_unsecure(),
77
+ type: ScalarTypeEnum.String_unsecure(),
79
78
  isOptional: false
80
79
  },
81
80
  quantity: {
82
- type: E5.Float_unsecure(),
81
+ type: ScalarTypeEnum.Float_unsecure(),
83
82
  isOptional: false
84
83
  },
85
84
  source: {
86
- type: E5.String_unsecure(),
85
+ type: ScalarTypeEnum.String_unsecure(),
87
86
  isOptional: true
88
87
  },
89
88
  resourceId: {
90
- type: E5.String_unsecure(),
89
+ type: ScalarTypeEnum.String_unsecure(),
91
90
  isOptional: true
92
91
  },
93
92
  resourceType: {
94
- type: E5.String_unsecure(),
93
+ type: ScalarTypeEnum.String_unsecure(),
95
94
  isOptional: true
96
95
  },
97
96
  metadata: {
98
- type: E5.JSON(),
97
+ type: ScalarTypeEnum.JSON(),
99
98
  isOptional: true
100
99
  },
101
100
  timestamp: {
102
- type: E5.DateTime(),
101
+ type: ScalarTypeEnum.DateTime(),
103
102
  isOptional: false
104
103
  },
105
104
  createdAt: {
106
- type: E5.DateTime(),
105
+ type: ScalarTypeEnum.DateTime(),
107
106
  isOptional: false
108
107
  }
109
108
  }
110
109
  });
111
- const UsageSummaryModel = K5({
110
+ const UsageSummaryModel = defineSchemaModel({
112
111
  name: "UsageSummary",
113
112
  description: "Represents aggregated usage",
114
113
  fields: {
115
114
  id: {
116
- type: E5.String_unsecure(),
115
+ type: ScalarTypeEnum.String_unsecure(),
117
116
  isOptional: false
118
117
  },
119
118
  metricKey: {
120
- type: E5.String_unsecure(),
119
+ type: ScalarTypeEnum.String_unsecure(),
121
120
  isOptional: false
122
121
  },
123
122
  subjectType: {
124
- type: E5.String_unsecure(),
123
+ type: ScalarTypeEnum.String_unsecure(),
125
124
  isOptional: false
126
125
  },
127
126
  subjectId: {
128
- type: E5.String_unsecure(),
127
+ type: ScalarTypeEnum.String_unsecure(),
129
128
  isOptional: false
130
129
  },
131
130
  periodType: {
132
- type: E5.String_unsecure(),
131
+ type: ScalarTypeEnum.String_unsecure(),
133
132
  isOptional: false
134
133
  },
135
134
  periodStart: {
136
- type: E5.DateTime(),
135
+ type: ScalarTypeEnum.DateTime(),
137
136
  isOptional: false
138
137
  },
139
138
  periodEnd: {
140
- type: E5.DateTime(),
139
+ type: ScalarTypeEnum.DateTime(),
141
140
  isOptional: false
142
141
  },
143
142
  totalQuantity: {
144
- type: E5.Float_unsecure(),
143
+ type: ScalarTypeEnum.Float_unsecure(),
145
144
  isOptional: false
146
145
  },
147
146
  recordCount: {
148
- type: E5.Int_unsecure(),
147
+ type: ScalarTypeEnum.Int_unsecure(),
149
148
  isOptional: false
150
149
  },
151
150
  minQuantity: {
152
- type: E5.Float_unsecure(),
151
+ type: ScalarTypeEnum.Float_unsecure(),
153
152
  isOptional: true
154
153
  },
155
154
  maxQuantity: {
156
- type: E5.Float_unsecure(),
155
+ type: ScalarTypeEnum.Float_unsecure(),
157
156
  isOptional: true
158
157
  },
159
158
  avgQuantity: {
160
- type: E5.Float_unsecure(),
159
+ type: ScalarTypeEnum.Float_unsecure(),
161
160
  isOptional: true
162
161
  }
163
162
  }
164
163
  });
165
- const UsageThresholdModel = K5({
164
+ const UsageThresholdModel = defineSchemaModel({
166
165
  name: "UsageThreshold",
167
166
  description: "Represents a usage threshold",
168
167
  fields: {
169
168
  id: {
170
- type: E5.String_unsecure(),
169
+ type: ScalarTypeEnum.String_unsecure(),
171
170
  isOptional: false
172
171
  },
173
172
  metricKey: {
174
- type: E5.String_unsecure(),
173
+ type: ScalarTypeEnum.String_unsecure(),
175
174
  isOptional: false
176
175
  },
177
176
  subjectType: {
178
- type: E5.String_unsecure(),
177
+ type: ScalarTypeEnum.String_unsecure(),
179
178
  isOptional: true
180
179
  },
181
180
  subjectId: {
182
- type: E5.String_unsecure(),
181
+ type: ScalarTypeEnum.String_unsecure(),
183
182
  isOptional: true
184
183
  },
185
184
  name: {
186
- type: E5.String_unsecure(),
185
+ type: ScalarTypeEnum.String_unsecure(),
187
186
  isOptional: false
188
187
  },
189
188
  threshold: {
190
- type: E5.Float_unsecure(),
189
+ type: ScalarTypeEnum.Float_unsecure(),
191
190
  isOptional: false
192
191
  },
193
192
  warnThreshold: {
194
- type: E5.Float_unsecure(),
193
+ type: ScalarTypeEnum.Float_unsecure(),
195
194
  isOptional: true
196
195
  },
197
196
  periodType: {
198
- type: E5.String_unsecure(),
197
+ type: ScalarTypeEnum.String_unsecure(),
199
198
  isOptional: false
200
199
  },
201
200
  action: {
202
- type: E5.String_unsecure(),
201
+ type: ScalarTypeEnum.String_unsecure(),
203
202
  isOptional: false
204
203
  },
205
204
  currentValue: {
206
- type: E5.Float_unsecure(),
205
+ type: ScalarTypeEnum.Float_unsecure(),
207
206
  isOptional: false
208
207
  },
209
208
  isActive: {
210
- type: E5.Boolean(),
209
+ type: ScalarTypeEnum.Boolean(),
211
210
  isOptional: false
212
211
  },
213
212
  createdAt: {
214
- type: E5.DateTime(),
213
+ type: ScalarTypeEnum.DateTime(),
215
214
  isOptional: false
216
215
  }
217
216
  }
218
217
  });
219
- const DefineMetricInput = K5({
218
+ const DefineMetricInput = defineSchemaModel({
220
219
  name: "DefineMetricInput",
221
220
  description: "Input for defining a metric",
222
221
  fields: {
223
222
  key: {
224
- type: E5.String_unsecure(),
223
+ type: ScalarTypeEnum.String_unsecure(),
225
224
  isOptional: false
226
225
  },
227
226
  name: {
228
- type: E5.String_unsecure(),
227
+ type: ScalarTypeEnum.String_unsecure(),
229
228
  isOptional: false
230
229
  },
231
230
  description: {
232
- type: E5.String_unsecure(),
231
+ type: ScalarTypeEnum.String_unsecure(),
233
232
  isOptional: true
234
233
  },
235
234
  unit: {
236
- type: E5.String_unsecure(),
235
+ type: ScalarTypeEnum.String_unsecure(),
237
236
  isOptional: false
238
237
  },
239
238
  aggregationType: {
240
- type: E5.String_unsecure(),
239
+ type: ScalarTypeEnum.String_unsecure(),
241
240
  isOptional: true
242
241
  },
243
242
  resetPeriod: {
244
- type: E5.String_unsecure(),
243
+ type: ScalarTypeEnum.String_unsecure(),
245
244
  isOptional: true
246
245
  },
247
246
  category: {
248
- type: E5.String_unsecure(),
247
+ type: ScalarTypeEnum.String_unsecure(),
249
248
  isOptional: true
250
249
  },
251
250
  orgId: {
252
- type: E5.String_unsecure(),
251
+ type: ScalarTypeEnum.String_unsecure(),
253
252
  isOptional: true
254
253
  },
255
254
  metadata: {
256
- type: E5.JSON(),
255
+ type: ScalarTypeEnum.JSON(),
257
256
  isOptional: true
258
257
  }
259
258
  }
260
259
  });
261
- const UpdateMetricInput = K5({
260
+ const UpdateMetricInput = defineSchemaModel({
262
261
  name: "UpdateMetricInput",
263
262
  description: "Input for updating a metric",
264
263
  fields: {
265
264
  metricId: {
266
- type: E5.String_unsecure(),
265
+ type: ScalarTypeEnum.String_unsecure(),
267
266
  isOptional: false
268
267
  },
269
268
  name: {
270
- type: E5.String_unsecure(),
269
+ type: ScalarTypeEnum.String_unsecure(),
271
270
  isOptional: true
272
271
  },
273
272
  description: {
274
- type: E5.String_unsecure(),
273
+ type: ScalarTypeEnum.String_unsecure(),
275
274
  isOptional: true
276
275
  },
277
276
  category: {
278
- type: E5.String_unsecure(),
277
+ type: ScalarTypeEnum.String_unsecure(),
279
278
  isOptional: true
280
279
  },
281
280
  isActive: {
282
- type: E5.Boolean(),
281
+ type: ScalarTypeEnum.Boolean(),
283
282
  isOptional: true
284
283
  },
285
284
  metadata: {
286
- type: E5.JSON(),
285
+ type: ScalarTypeEnum.JSON(),
287
286
  isOptional: true
288
287
  }
289
288
  }
290
289
  });
291
- const DeleteMetricInput = K5({
290
+ const DeleteMetricInput = defineSchemaModel({
292
291
  name: "DeleteMetricInput",
293
292
  description: "Input for deleting a metric",
294
293
  fields: { metricId: {
295
- type: E5.String_unsecure(),
294
+ type: ScalarTypeEnum.String_unsecure(),
296
295
  isOptional: false
297
296
  } }
298
297
  });
299
- const GetMetricInput = K5({
298
+ const GetMetricInput = defineSchemaModel({
300
299
  name: "GetMetricInput",
301
300
  description: "Input for getting a metric",
302
301
  fields: {
303
302
  key: {
304
- type: E5.String_unsecure(),
303
+ type: ScalarTypeEnum.String_unsecure(),
305
304
  isOptional: false
306
305
  },
307
306
  orgId: {
308
- type: E5.String_unsecure(),
307
+ type: ScalarTypeEnum.String_unsecure(),
309
308
  isOptional: true
310
309
  }
311
310
  }
312
311
  });
313
- const ListMetricsInput = K5({
312
+ const ListMetricsInput = defineSchemaModel({
314
313
  name: "ListMetricsInput",
315
314
  description: "Input for listing metrics",
316
315
  fields: {
317
316
  orgId: {
318
- type: E5.String_unsecure(),
317
+ type: ScalarTypeEnum.String_unsecure(),
319
318
  isOptional: true
320
319
  },
321
320
  category: {
322
- type: E5.String_unsecure(),
321
+ type: ScalarTypeEnum.String_unsecure(),
323
322
  isOptional: true
324
323
  },
325
324
  isActive: {
326
- type: E5.Boolean(),
325
+ type: ScalarTypeEnum.Boolean(),
327
326
  isOptional: true
328
327
  },
329
328
  limit: {
330
- type: E5.Int_unsecure(),
329
+ type: ScalarTypeEnum.Int_unsecure(),
331
330
  isOptional: true
332
331
  },
333
332
  offset: {
334
- type: E5.Int_unsecure(),
333
+ type: ScalarTypeEnum.Int_unsecure(),
335
334
  isOptional: true
336
335
  }
337
336
  }
338
337
  });
339
- const ListMetricsOutput = K5({
338
+ const ListMetricsOutput = defineSchemaModel({
340
339
  name: "ListMetricsOutput",
341
340
  description: "Output for listing metrics",
342
341
  fields: {
@@ -346,58 +345,58 @@ const ListMetricsOutput = K5({
346
345
  isOptional: false
347
346
  },
348
347
  total: {
349
- type: E5.Int_unsecure(),
348
+ type: ScalarTypeEnum.Int_unsecure(),
350
349
  isOptional: false
351
350
  }
352
351
  }
353
352
  });
354
- const RecordUsageInput = K5({
353
+ const RecordUsageInput = defineSchemaModel({
355
354
  name: "RecordUsageInput",
356
355
  description: "Input for recording usage",
357
356
  fields: {
358
357
  metricKey: {
359
- type: E5.String_unsecure(),
358
+ type: ScalarTypeEnum.String_unsecure(),
360
359
  isOptional: false
361
360
  },
362
361
  subjectType: {
363
- type: E5.String_unsecure(),
362
+ type: ScalarTypeEnum.String_unsecure(),
364
363
  isOptional: false
365
364
  },
366
365
  subjectId: {
367
- type: E5.String_unsecure(),
366
+ type: ScalarTypeEnum.String_unsecure(),
368
367
  isOptional: false
369
368
  },
370
369
  quantity: {
371
- type: E5.Float_unsecure(),
370
+ type: ScalarTypeEnum.Float_unsecure(),
372
371
  isOptional: false
373
372
  },
374
373
  timestamp: {
375
- type: E5.DateTime(),
374
+ type: ScalarTypeEnum.DateTime(),
376
375
  isOptional: true
377
376
  },
378
377
  source: {
379
- type: E5.String_unsecure(),
378
+ type: ScalarTypeEnum.String_unsecure(),
380
379
  isOptional: true
381
380
  },
382
381
  resourceId: {
383
- type: E5.String_unsecure(),
382
+ type: ScalarTypeEnum.String_unsecure(),
384
383
  isOptional: true
385
384
  },
386
385
  resourceType: {
387
- type: E5.String_unsecure(),
386
+ type: ScalarTypeEnum.String_unsecure(),
388
387
  isOptional: true
389
388
  },
390
389
  metadata: {
391
- type: E5.JSON(),
390
+ type: ScalarTypeEnum.JSON(),
392
391
  isOptional: true
393
392
  },
394
393
  idempotencyKey: {
395
- type: E5.String_unsecure(),
394
+ type: ScalarTypeEnum.String_unsecure(),
396
395
  isOptional: true
397
396
  }
398
397
  }
399
398
  });
400
- const RecordBatchUsageInput = K5({
399
+ const RecordBatchUsageInput = defineSchemaModel({
401
400
  name: "RecordBatchUsageInput",
402
401
  description: "Input for recording batch usage",
403
402
  fields: { records: {
@@ -406,59 +405,59 @@ const RecordBatchUsageInput = K5({
406
405
  isOptional: false
407
406
  } }
408
407
  });
409
- const RecordBatchUsageOutput = K5({
408
+ const RecordBatchUsageOutput = defineSchemaModel({
410
409
  name: "RecordBatchUsageOutput",
411
410
  description: "Output for recording batch usage",
412
411
  fields: {
413
412
  recordedCount: {
414
- type: E5.Int_unsecure(),
413
+ type: ScalarTypeEnum.Int_unsecure(),
415
414
  isOptional: false
416
415
  },
417
416
  skippedCount: {
418
- type: E5.Int_unsecure(),
417
+ type: ScalarTypeEnum.Int_unsecure(),
419
418
  isOptional: false
420
419
  },
421
420
  recordIds: {
422
- type: E5.JSON(),
421
+ type: ScalarTypeEnum.JSON(),
423
422
  isOptional: false
424
423
  }
425
424
  }
426
425
  });
427
- const GetUsageInput = K5({
426
+ const GetUsageInput = defineSchemaModel({
428
427
  name: "GetUsageInput",
429
428
  description: "Input for getting usage",
430
429
  fields: {
431
430
  metricKey: {
432
- type: E5.String_unsecure(),
431
+ type: ScalarTypeEnum.String_unsecure(),
433
432
  isOptional: false
434
433
  },
435
434
  subjectType: {
436
- type: E5.String_unsecure(),
435
+ type: ScalarTypeEnum.String_unsecure(),
437
436
  isOptional: false
438
437
  },
439
438
  subjectId: {
440
- type: E5.String_unsecure(),
439
+ type: ScalarTypeEnum.String_unsecure(),
441
440
  isOptional: false
442
441
  },
443
442
  startDate: {
444
- type: E5.DateTime(),
443
+ type: ScalarTypeEnum.DateTime(),
445
444
  isOptional: false
446
445
  },
447
446
  endDate: {
448
- type: E5.DateTime(),
447
+ type: ScalarTypeEnum.DateTime(),
449
448
  isOptional: false
450
449
  },
451
450
  limit: {
452
- type: E5.Int_unsecure(),
451
+ type: ScalarTypeEnum.Int_unsecure(),
453
452
  isOptional: true
454
453
  },
455
454
  offset: {
456
- type: E5.Int_unsecure(),
455
+ type: ScalarTypeEnum.Int_unsecure(),
457
456
  isOptional: true
458
457
  }
459
458
  }
460
459
  });
461
- const GetUsageOutput = K5({
460
+ const GetUsageOutput = defineSchemaModel({
462
461
  name: "GetUsageOutput",
463
462
  description: "Output for getting usage",
464
463
  fields: {
@@ -468,46 +467,46 @@ const GetUsageOutput = K5({
468
467
  isOptional: false
469
468
  },
470
469
  total: {
471
- type: E5.Int_unsecure(),
470
+ type: ScalarTypeEnum.Int_unsecure(),
472
471
  isOptional: false
473
472
  },
474
473
  totalQuantity: {
475
- type: E5.Float_unsecure(),
474
+ type: ScalarTypeEnum.Float_unsecure(),
476
475
  isOptional: false
477
476
  }
478
477
  }
479
478
  });
480
- const GetUsageSummaryInput = K5({
479
+ const GetUsageSummaryInput = defineSchemaModel({
481
480
  name: "GetUsageSummaryInput",
482
481
  description: "Input for getting usage summary",
483
482
  fields: {
484
483
  metricKey: {
485
- type: E5.String_unsecure(),
484
+ type: ScalarTypeEnum.String_unsecure(),
486
485
  isOptional: false
487
486
  },
488
487
  subjectType: {
489
- type: E5.String_unsecure(),
488
+ type: ScalarTypeEnum.String_unsecure(),
490
489
  isOptional: false
491
490
  },
492
491
  subjectId: {
493
- type: E5.String_unsecure(),
492
+ type: ScalarTypeEnum.String_unsecure(),
494
493
  isOptional: false
495
494
  },
496
495
  periodType: {
497
- type: E5.String_unsecure(),
496
+ type: ScalarTypeEnum.String_unsecure(),
498
497
  isOptional: false
499
498
  },
500
499
  startDate: {
501
- type: E5.DateTime(),
500
+ type: ScalarTypeEnum.DateTime(),
502
501
  isOptional: false
503
502
  },
504
503
  endDate: {
505
- type: E5.DateTime(),
504
+ type: ScalarTypeEnum.DateTime(),
506
505
  isOptional: true
507
506
  }
508
507
  }
509
508
  });
510
- const GetUsageSummaryOutput = K5({
509
+ const GetUsageSummaryOutput = defineSchemaModel({
511
510
  name: "GetUsageSummaryOutput",
512
511
  description: "Output for getting usage summary",
513
512
  fields: {
@@ -517,126 +516,126 @@ const GetUsageSummaryOutput = K5({
517
516
  isOptional: false
518
517
  },
519
518
  total: {
520
- type: E5.Int_unsecure(),
519
+ type: ScalarTypeEnum.Int_unsecure(),
521
520
  isOptional: false
522
521
  }
523
522
  }
524
523
  });
525
- const CreateThresholdInput = K5({
524
+ const CreateThresholdInput = defineSchemaModel({
526
525
  name: "CreateThresholdInput",
527
526
  description: "Input for creating a threshold",
528
527
  fields: {
529
528
  metricKey: {
530
- type: E5.String_unsecure(),
529
+ type: ScalarTypeEnum.String_unsecure(),
531
530
  isOptional: false
532
531
  },
533
532
  subjectType: {
534
- type: E5.String_unsecure(),
533
+ type: ScalarTypeEnum.String_unsecure(),
535
534
  isOptional: true
536
535
  },
537
536
  subjectId: {
538
- type: E5.String_unsecure(),
537
+ type: ScalarTypeEnum.String_unsecure(),
539
538
  isOptional: true
540
539
  },
541
540
  name: {
542
- type: E5.String_unsecure(),
541
+ type: ScalarTypeEnum.String_unsecure(),
543
542
  isOptional: false
544
543
  },
545
544
  threshold: {
546
- type: E5.Float_unsecure(),
545
+ type: ScalarTypeEnum.Float_unsecure(),
547
546
  isOptional: false
548
547
  },
549
548
  warnThreshold: {
550
- type: E5.Float_unsecure(),
549
+ type: ScalarTypeEnum.Float_unsecure(),
551
550
  isOptional: true
552
551
  },
553
552
  periodType: {
554
- type: E5.String_unsecure(),
553
+ type: ScalarTypeEnum.String_unsecure(),
555
554
  isOptional: true
556
555
  },
557
556
  action: {
558
- type: E5.String_unsecure(),
557
+ type: ScalarTypeEnum.String_unsecure(),
559
558
  isOptional: true
560
559
  },
561
560
  notifyEmails: {
562
- type: E5.JSON(),
561
+ type: ScalarTypeEnum.JSON(),
563
562
  isOptional: true
564
563
  },
565
564
  notifyWebhook: {
566
- type: E5.String_unsecure(),
565
+ type: ScalarTypeEnum.String_unsecure(),
567
566
  isOptional: true
568
567
  }
569
568
  }
570
569
  });
571
- const UpdateThresholdInput = K5({
570
+ const UpdateThresholdInput = defineSchemaModel({
572
571
  name: "UpdateThresholdInput",
573
572
  description: "Input for updating a threshold",
574
573
  fields: {
575
574
  thresholdId: {
576
- type: E5.String_unsecure(),
575
+ type: ScalarTypeEnum.String_unsecure(),
577
576
  isOptional: false
578
577
  },
579
578
  name: {
580
- type: E5.String_unsecure(),
579
+ type: ScalarTypeEnum.String_unsecure(),
581
580
  isOptional: true
582
581
  },
583
582
  threshold: {
584
- type: E5.Float_unsecure(),
583
+ type: ScalarTypeEnum.Float_unsecure(),
585
584
  isOptional: true
586
585
  },
587
586
  warnThreshold: {
588
- type: E5.Float_unsecure(),
587
+ type: ScalarTypeEnum.Float_unsecure(),
589
588
  isOptional: true
590
589
  },
591
590
  action: {
592
- type: E5.String_unsecure(),
591
+ type: ScalarTypeEnum.String_unsecure(),
593
592
  isOptional: true
594
593
  },
595
594
  notifyEmails: {
596
- type: E5.JSON(),
595
+ type: ScalarTypeEnum.JSON(),
597
596
  isOptional: true
598
597
  },
599
598
  notifyWebhook: {
600
- type: E5.String_unsecure(),
599
+ type: ScalarTypeEnum.String_unsecure(),
601
600
  isOptional: true
602
601
  },
603
602
  isActive: {
604
- type: E5.Boolean(),
603
+ type: ScalarTypeEnum.Boolean(),
605
604
  isOptional: true
606
605
  }
607
606
  }
608
607
  });
609
- const DeleteThresholdInput = K5({
608
+ const DeleteThresholdInput = defineSchemaModel({
610
609
  name: "DeleteThresholdInput",
611
610
  description: "Input for deleting a threshold",
612
611
  fields: { thresholdId: {
613
- type: E5.String_unsecure(),
612
+ type: ScalarTypeEnum.String_unsecure(),
614
613
  isOptional: false
615
614
  } }
616
615
  });
617
- const ListThresholdsInput = K5({
616
+ const ListThresholdsInput = defineSchemaModel({
618
617
  name: "ListThresholdsInput",
619
618
  description: "Input for listing thresholds",
620
619
  fields: {
621
620
  metricKey: {
622
- type: E5.String_unsecure(),
621
+ type: ScalarTypeEnum.String_unsecure(),
623
622
  isOptional: true
624
623
  },
625
624
  subjectType: {
626
- type: E5.String_unsecure(),
625
+ type: ScalarTypeEnum.String_unsecure(),
627
626
  isOptional: true
628
627
  },
629
628
  subjectId: {
630
- type: E5.String_unsecure(),
629
+ type: ScalarTypeEnum.String_unsecure(),
631
630
  isOptional: true
632
631
  },
633
632
  isActive: {
634
- type: E5.Boolean(),
633
+ type: ScalarTypeEnum.Boolean(),
635
634
  isOptional: true
636
635
  }
637
636
  }
638
637
  });
639
- const ListThresholdsOutput = K5({
638
+ const ListThresholdsOutput = defineSchemaModel({
640
639
  name: "ListThresholdsOutput",
641
640
  description: "Output for listing thresholds",
642
641
  fields: {
@@ -646,16 +645,16 @@ const ListThresholdsOutput = K5({
646
645
  isOptional: false
647
646
  },
648
647
  total: {
649
- type: E5.Int_unsecure(),
648
+ type: ScalarTypeEnum.Int_unsecure(),
650
649
  isOptional: false
651
650
  }
652
651
  }
653
652
  });
654
- const SuccessOutput = K5({
653
+ const SuccessOutput = defineSchemaModel({
655
654
  name: "SuccessOutput",
656
655
  description: "Generic success output",
657
656
  fields: { success: {
658
- type: E5.Boolean(),
657
+ type: ScalarTypeEnum.Boolean(),
659
658
  isOptional: false
660
659
  } }
661
660
  });