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