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