@lssm/lib.metering 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

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