@lssm/lib.metering 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217062139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/dist/capabilities/openbanking.js +1 -0
- package/dist/contracts/dist/client/index.js +1 -0
- package/dist/contracts/dist/client/react/feature-render.js +1 -0
- package/dist/contracts/dist/client/react/form-render.js +1 -0
- package/dist/contracts/dist/client/react/index.js +1 -0
- package/dist/contracts/dist/contract-registry/index.js +1 -0
- package/dist/contracts/dist/contract-registry/schemas.js +1 -0
- package/dist/contracts/dist/docs/PUBLISHING.docblock.js +76 -0
- package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
- package/dist/contracts/dist/docs/index.js +1 -0
- package/dist/contracts/dist/docs/presentations.js +1 -0
- package/dist/contracts/dist/docs/registry.js +1 -0
- package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
- package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
- package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
- package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
- package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
- package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
- package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
- package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
- package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/schema/README.docblock.js +262 -0
- package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
- package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
- package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
- package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
- package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
- package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +41 -0
- package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
- package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +1 -0
- package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +68 -0
- package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +1 -0
- package/dist/contracts/dist/events.js +1 -0
- package/dist/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/contracts/dist/index.js +1 -0
- package/dist/contracts/dist/install.js +1 -0
- package/dist/contracts/dist/integrations/contracts.js +1 -0
- package/dist/contracts/dist/integrations/index.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/models.js +1 -0
- package/dist/contracts/dist/integrations/openbanking/telemetry.js +1 -0
- package/dist/contracts/dist/integrations/providers/elevenlabs.js +1 -0
- package/dist/contracts/dist/integrations/providers/gcs-storage.js +1 -0
- package/dist/contracts/dist/integrations/providers/gmail.js +1 -0
- package/dist/contracts/dist/integrations/providers/google-calendar.js +1 -0
- package/dist/contracts/dist/integrations/providers/index.js +1 -0
- package/dist/contracts/dist/integrations/providers/mistral.js +1 -0
- package/dist/contracts/dist/integrations/providers/postmark.js +1 -0
- package/dist/contracts/dist/integrations/providers/powens.js +1 -0
- package/dist/contracts/dist/integrations/providers/qdrant.js +1 -0
- package/dist/contracts/dist/integrations/providers/registry.js +1 -0
- package/dist/contracts/dist/integrations/providers/stripe.js +1 -0
- package/dist/contracts/dist/integrations/providers/twilio-sms.js +1 -0
- package/dist/contracts/dist/jsonschema.js +1 -0
- package/dist/contracts/dist/knowledge/contracts.js +1 -0
- package/dist/contracts/dist/knowledge/index.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/email-threads.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/index.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/product-canon.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/support-faq.js +1 -0
- package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
- package/dist/contracts/dist/llm/exporters.js +1 -0
- package/dist/contracts/dist/llm/index.js +1 -0
- package/dist/contracts/dist/llm/prompts.js +1 -0
- package/dist/contracts/dist/onboarding-base.js +1 -0
- package/dist/contracts/dist/openapi.js +1 -0
- package/dist/contracts/dist/ownership.js +1 -0
- package/dist/contracts/dist/presentations.js +1 -0
- package/dist/contracts/dist/presentations.v2.js +1 -0
- package/dist/contracts/dist/prompt.js +1 -0
- package/dist/contracts/dist/promptRegistry.js +1 -0
- package/dist/contracts/dist/regenerator/index.js +1 -0
- package/dist/contracts/dist/regenerator/service.js +1 -0
- package/dist/contracts/dist/registry.js +1 -0
- package/dist/contracts/dist/resources.js +1 -0
- package/dist/contracts/dist/schema/dist/EnumType.js +1 -0
- package/dist/contracts/dist/schema/dist/FieldType.js +1 -0
- package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/contracts/dist/schema/dist/SchemaModel.js +1 -0
- package/dist/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/contracts/dist/schema/dist/entity/index.js +1 -0
- package/dist/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/contracts/dist/schema/dist/index.js +1 -0
- package/dist/contracts/dist/server/graphql-pothos.js +1 -0
- package/dist/contracts/dist/server/index.js +1 -0
- package/dist/contracts/dist/server/mcp/createMcpServer.js +1 -0
- package/dist/contracts/dist/server/mcp/registerPresentations.js +1 -0
- package/dist/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/contracts/dist/server/mcp/registerResources.js +1 -0
- package/dist/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/contracts/dist/server/rest-express.js +1 -0
- package/dist/contracts/dist/server/rest-generic.js +1 -0
- package/dist/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/contracts/dist/spec.js +1 -0
- package/dist/contracts/dist/telemetry/index.js +1 -0
- package/dist/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/contracts/dist/tests/index.js +1 -0
- package/dist/contracts/dist/tests/runner.js +1 -0
- package/dist/contracts/dist/workflow/index.js +1 -0
- package/dist/contracts/dist/workflow/runner.js +1 -0
- package/dist/contracts/index.d.ts +291 -291
- package/dist/contracts/index.js +1 -1
- package/dist/docs/metering.docblock.js +1 -1
- package/dist/entities/index.d.ts +185 -185
- package/dist/entities/index.js +1 -1
- package/dist/events.d.ts +136 -136
- package/dist/events.js +1 -1
- package/dist/schema/dist/EnumType.js +1 -0
- package/dist/schema/dist/FieldType.js +1 -0
- package/dist/schema/dist/ScalarTypeEnum.js +1 -0
- package/dist/schema/dist/SchemaModel.js +1 -0
- package/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/schema/dist/entity/index.js +1 -0
- package/dist/schema/dist/entity/types.js +1 -0
- package/dist/schema/dist/index.js +1 -0
- package/package.json +5 -5
package/dist/events.d.ts
CHANGED
|
@@ -1,280 +1,280 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema472 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Emitted when a metric is defined.
|
|
7
7
|
*/
|
|
8
|
-
declare const MetricDefinedEvent:
|
|
8
|
+
declare const MetricDefinedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
9
9
|
metricId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
key: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
name: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
unit: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
aggregationType: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
orgId: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
createdBy: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
35
35
|
isOptional: true;
|
|
36
36
|
};
|
|
37
37
|
createdAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
}>>;
|
|
42
42
|
/**
|
|
43
43
|
* Emitted when a metric is updated.
|
|
44
44
|
*/
|
|
45
|
-
declare const MetricUpdatedEvent:
|
|
45
|
+
declare const MetricUpdatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
46
46
|
metricId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
key: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
changes: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema472.FieldType<unknown, unknown>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
updatedBy: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
updatedAt: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
}>>;
|
|
67
67
|
/**
|
|
68
68
|
* Emitted when usage is recorded.
|
|
69
69
|
*/
|
|
70
|
-
declare const UsageRecordedEvent:
|
|
70
|
+
declare const UsageRecordedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
71
71
|
recordId: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
metricKey: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
subjectType: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
subjectId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
quantity: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
source: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
93
93
|
isOptional: true;
|
|
94
94
|
};
|
|
95
95
|
timestamp: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
}>>;
|
|
100
100
|
/**
|
|
101
101
|
* Emitted when a batch of usage is recorded.
|
|
102
102
|
*/
|
|
103
|
-
declare const UsageBatchRecordedEvent:
|
|
103
|
+
declare const UsageBatchRecordedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
104
104
|
recordCount: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
metricKeys: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema472.FieldType<unknown, unknown>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
totalQuantity: {
|
|
113
|
-
type:
|
|
113
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
114
114
|
isOptional: false;
|
|
115
115
|
};
|
|
116
116
|
timestamp: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
}>>;
|
|
121
121
|
/**
|
|
122
122
|
* Emitted when usage is aggregated.
|
|
123
123
|
*/
|
|
124
|
-
declare const UsageAggregatedEvent:
|
|
124
|
+
declare const UsageAggregatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
125
125
|
summaryId: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
metricKey: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
subjectType: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
subjectId: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
periodType: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
periodStart: {
|
|
146
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
147
147
|
isOptional: false;
|
|
148
148
|
};
|
|
149
149
|
periodEnd: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
totalQuantity: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
recordCount: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
aggregatedAt: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
}>>;
|
|
166
166
|
/**
|
|
167
167
|
* Emitted when a threshold is created.
|
|
168
168
|
*/
|
|
169
|
-
declare const ThresholdCreatedEvent:
|
|
169
|
+
declare const ThresholdCreatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
170
170
|
thresholdId: {
|
|
171
|
-
type:
|
|
171
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
172
172
|
isOptional: false;
|
|
173
173
|
};
|
|
174
174
|
metricKey: {
|
|
175
|
-
type:
|
|
175
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
176
176
|
isOptional: false;
|
|
177
177
|
};
|
|
178
178
|
subjectType: {
|
|
179
|
-
type:
|
|
179
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
180
180
|
isOptional: true;
|
|
181
181
|
};
|
|
182
182
|
subjectId: {
|
|
183
|
-
type:
|
|
183
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
threshold: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
action: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
createdAt: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
}>>;
|
|
199
199
|
/**
|
|
200
200
|
* Emitted when a threshold is exceeded.
|
|
201
201
|
*/
|
|
202
|
-
declare const ThresholdExceededEvent:
|
|
202
|
+
declare const ThresholdExceededEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
203
203
|
alertId: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
thresholdId: {
|
|
208
|
-
type:
|
|
208
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
metricKey: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
subjectType: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
217
217
|
isOptional: true;
|
|
218
218
|
};
|
|
219
219
|
subjectId: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
221
221
|
isOptional: true;
|
|
222
222
|
};
|
|
223
223
|
threshold: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
actualValue: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
229
229
|
isOptional: false;
|
|
230
230
|
};
|
|
231
231
|
percentageUsed: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
233
233
|
isOptional: false;
|
|
234
234
|
};
|
|
235
235
|
action: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
triggeredAt: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
}>>;
|
|
244
244
|
/**
|
|
245
245
|
* Emitted when usage is approaching a threshold.
|
|
246
246
|
*/
|
|
247
|
-
declare const ThresholdApproachingEvent:
|
|
247
|
+
declare const ThresholdApproachingEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
248
248
|
thresholdId: {
|
|
249
|
-
type:
|
|
249
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
250
250
|
isOptional: false;
|
|
251
251
|
};
|
|
252
252
|
metricKey: {
|
|
253
|
-
type:
|
|
253
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
254
254
|
isOptional: false;
|
|
255
255
|
};
|
|
256
256
|
subjectType: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
258
258
|
isOptional: true;
|
|
259
259
|
};
|
|
260
260
|
subjectId: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
262
262
|
isOptional: true;
|
|
263
263
|
};
|
|
264
264
|
threshold: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
266
266
|
isOptional: false;
|
|
267
267
|
};
|
|
268
268
|
currentValue: {
|
|
269
|
-
type:
|
|
269
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
270
270
|
isOptional: false;
|
|
271
271
|
};
|
|
272
272
|
percentageUsed: {
|
|
273
|
-
type:
|
|
273
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
274
274
|
isOptional: false;
|
|
275
275
|
};
|
|
276
276
|
triggeredAt: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
}>>;
|
|
@@ -282,255 +282,255 @@ declare const ThresholdApproachingEvent: _lssm_lib_contracts0.EventSpec<_lssm_li
|
|
|
282
282
|
* All metering events.
|
|
283
283
|
*/
|
|
284
284
|
declare const MeteringEvents: {
|
|
285
|
-
MetricDefinedEvent:
|
|
285
|
+
MetricDefinedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
286
286
|
metricId: {
|
|
287
|
-
type:
|
|
287
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
288
288
|
isOptional: false;
|
|
289
289
|
};
|
|
290
290
|
key: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
name: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
296
296
|
isOptional: false;
|
|
297
297
|
};
|
|
298
298
|
unit: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
300
300
|
isOptional: false;
|
|
301
301
|
};
|
|
302
302
|
aggregationType: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
orgId: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
308
308
|
isOptional: true;
|
|
309
309
|
};
|
|
310
310
|
createdBy: {
|
|
311
|
-
type:
|
|
311
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
312
312
|
isOptional: true;
|
|
313
313
|
};
|
|
314
314
|
createdAt: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
}>>;
|
|
319
|
-
MetricUpdatedEvent:
|
|
319
|
+
MetricUpdatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
320
320
|
metricId: {
|
|
321
|
-
type:
|
|
321
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
322
322
|
isOptional: false;
|
|
323
323
|
};
|
|
324
324
|
key: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
326
326
|
isOptional: false;
|
|
327
327
|
};
|
|
328
328
|
changes: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema472.FieldType<unknown, unknown>;
|
|
330
330
|
isOptional: false;
|
|
331
331
|
};
|
|
332
332
|
updatedBy: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
334
334
|
isOptional: true;
|
|
335
335
|
};
|
|
336
336
|
updatedAt: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
}>>;
|
|
341
|
-
UsageRecordedEvent:
|
|
341
|
+
UsageRecordedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
342
342
|
recordId: {
|
|
343
|
-
type:
|
|
343
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
344
344
|
isOptional: false;
|
|
345
345
|
};
|
|
346
346
|
metricKey: {
|
|
347
|
-
type:
|
|
347
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
348
348
|
isOptional: false;
|
|
349
349
|
};
|
|
350
350
|
subjectType: {
|
|
351
|
-
type:
|
|
351
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
352
352
|
isOptional: false;
|
|
353
353
|
};
|
|
354
354
|
subjectId: {
|
|
355
|
-
type:
|
|
355
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
356
356
|
isOptional: false;
|
|
357
357
|
};
|
|
358
358
|
quantity: {
|
|
359
|
-
type:
|
|
359
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
360
360
|
isOptional: false;
|
|
361
361
|
};
|
|
362
362
|
source: {
|
|
363
|
-
type:
|
|
363
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
364
364
|
isOptional: true;
|
|
365
365
|
};
|
|
366
366
|
timestamp: {
|
|
367
|
-
type:
|
|
367
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
368
368
|
isOptional: false;
|
|
369
369
|
};
|
|
370
370
|
}>>;
|
|
371
|
-
UsageBatchRecordedEvent:
|
|
371
|
+
UsageBatchRecordedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
372
372
|
recordCount: {
|
|
373
|
-
type:
|
|
373
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
374
374
|
isOptional: false;
|
|
375
375
|
};
|
|
376
376
|
metricKeys: {
|
|
377
|
-
type:
|
|
377
|
+
type: _lssm_lib_schema472.FieldType<unknown, unknown>;
|
|
378
378
|
isOptional: false;
|
|
379
379
|
};
|
|
380
380
|
totalQuantity: {
|
|
381
|
-
type:
|
|
381
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
382
382
|
isOptional: false;
|
|
383
383
|
};
|
|
384
384
|
timestamp: {
|
|
385
|
-
type:
|
|
385
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
386
386
|
isOptional: false;
|
|
387
387
|
};
|
|
388
388
|
}>>;
|
|
389
|
-
UsageAggregatedEvent:
|
|
389
|
+
UsageAggregatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
390
390
|
summaryId: {
|
|
391
|
-
type:
|
|
391
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
392
392
|
isOptional: false;
|
|
393
393
|
};
|
|
394
394
|
metricKey: {
|
|
395
|
-
type:
|
|
395
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
396
396
|
isOptional: false;
|
|
397
397
|
};
|
|
398
398
|
subjectType: {
|
|
399
|
-
type:
|
|
399
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
400
400
|
isOptional: false;
|
|
401
401
|
};
|
|
402
402
|
subjectId: {
|
|
403
|
-
type:
|
|
403
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
404
404
|
isOptional: false;
|
|
405
405
|
};
|
|
406
406
|
periodType: {
|
|
407
|
-
type:
|
|
407
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
408
408
|
isOptional: false;
|
|
409
409
|
};
|
|
410
410
|
periodStart: {
|
|
411
|
-
type:
|
|
411
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
412
412
|
isOptional: false;
|
|
413
413
|
};
|
|
414
414
|
periodEnd: {
|
|
415
|
-
type:
|
|
415
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
416
416
|
isOptional: false;
|
|
417
417
|
};
|
|
418
418
|
totalQuantity: {
|
|
419
|
-
type:
|
|
419
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
420
420
|
isOptional: false;
|
|
421
421
|
};
|
|
422
422
|
recordCount: {
|
|
423
|
-
type:
|
|
423
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
424
424
|
isOptional: false;
|
|
425
425
|
};
|
|
426
426
|
aggregatedAt: {
|
|
427
|
-
type:
|
|
427
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
428
428
|
isOptional: false;
|
|
429
429
|
};
|
|
430
430
|
}>>;
|
|
431
|
-
ThresholdCreatedEvent:
|
|
431
|
+
ThresholdCreatedEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
432
432
|
thresholdId: {
|
|
433
|
-
type:
|
|
433
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
434
434
|
isOptional: false;
|
|
435
435
|
};
|
|
436
436
|
metricKey: {
|
|
437
|
-
type:
|
|
437
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
438
438
|
isOptional: false;
|
|
439
439
|
};
|
|
440
440
|
subjectType: {
|
|
441
|
-
type:
|
|
441
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
442
442
|
isOptional: true;
|
|
443
443
|
};
|
|
444
444
|
subjectId: {
|
|
445
|
-
type:
|
|
445
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
446
446
|
isOptional: true;
|
|
447
447
|
};
|
|
448
448
|
threshold: {
|
|
449
|
-
type:
|
|
449
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
450
450
|
isOptional: false;
|
|
451
451
|
};
|
|
452
452
|
action: {
|
|
453
|
-
type:
|
|
453
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
454
454
|
isOptional: false;
|
|
455
455
|
};
|
|
456
456
|
createdAt: {
|
|
457
|
-
type:
|
|
457
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
458
458
|
isOptional: false;
|
|
459
459
|
};
|
|
460
460
|
}>>;
|
|
461
|
-
ThresholdExceededEvent:
|
|
461
|
+
ThresholdExceededEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
462
462
|
alertId: {
|
|
463
|
-
type:
|
|
463
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
464
464
|
isOptional: false;
|
|
465
465
|
};
|
|
466
466
|
thresholdId: {
|
|
467
|
-
type:
|
|
467
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
468
468
|
isOptional: false;
|
|
469
469
|
};
|
|
470
470
|
metricKey: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
472
472
|
isOptional: false;
|
|
473
473
|
};
|
|
474
474
|
subjectType: {
|
|
475
|
-
type:
|
|
475
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
476
476
|
isOptional: true;
|
|
477
477
|
};
|
|
478
478
|
subjectId: {
|
|
479
|
-
type:
|
|
479
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
480
480
|
isOptional: true;
|
|
481
481
|
};
|
|
482
482
|
threshold: {
|
|
483
|
-
type:
|
|
483
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
484
484
|
isOptional: false;
|
|
485
485
|
};
|
|
486
486
|
actualValue: {
|
|
487
|
-
type:
|
|
487
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
488
488
|
isOptional: false;
|
|
489
489
|
};
|
|
490
490
|
percentageUsed: {
|
|
491
|
-
type:
|
|
491
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
492
492
|
isOptional: false;
|
|
493
493
|
};
|
|
494
494
|
action: {
|
|
495
|
-
type:
|
|
495
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
496
496
|
isOptional: false;
|
|
497
497
|
};
|
|
498
498
|
triggeredAt: {
|
|
499
|
-
type:
|
|
499
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
500
500
|
isOptional: false;
|
|
501
501
|
};
|
|
502
502
|
}>>;
|
|
503
|
-
ThresholdApproachingEvent:
|
|
503
|
+
ThresholdApproachingEvent: _lssm_lib_contracts12.EventSpec<_lssm_lib_schema472.SchemaModel<{
|
|
504
504
|
thresholdId: {
|
|
505
|
-
type:
|
|
505
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
506
506
|
isOptional: false;
|
|
507
507
|
};
|
|
508
508
|
metricKey: {
|
|
509
|
-
type:
|
|
509
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
510
510
|
isOptional: false;
|
|
511
511
|
};
|
|
512
512
|
subjectType: {
|
|
513
|
-
type:
|
|
513
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
514
514
|
isOptional: true;
|
|
515
515
|
};
|
|
516
516
|
subjectId: {
|
|
517
|
-
type:
|
|
517
|
+
type: _lssm_lib_schema472.FieldType<string, string>;
|
|
518
518
|
isOptional: true;
|
|
519
519
|
};
|
|
520
520
|
threshold: {
|
|
521
|
-
type:
|
|
521
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
522
522
|
isOptional: false;
|
|
523
523
|
};
|
|
524
524
|
currentValue: {
|
|
525
|
-
type:
|
|
525
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
526
526
|
isOptional: false;
|
|
527
527
|
};
|
|
528
528
|
percentageUsed: {
|
|
529
|
-
type:
|
|
529
|
+
type: _lssm_lib_schema472.FieldType<number, number>;
|
|
530
530
|
isOptional: false;
|
|
531
531
|
};
|
|
532
532
|
triggeredAt: {
|
|
533
|
-
type:
|
|
533
|
+
type: _lssm_lib_schema472.FieldType<Date, string>;
|
|
534
534
|
isOptional: false;
|
|
535
535
|
};
|
|
536
536
|
}>>;
|