@netgreener/runtime 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +28 -0
  3. package/TUTORIAL.md +495 -0
  4. package/dist/aggregator.d.ts +43 -0
  5. package/dist/aggregator.js +270 -0
  6. package/dist/analyze/analyzeGate.d.ts +44 -0
  7. package/dist/analyze/analyzeGate.js +114 -0
  8. package/dist/analyze/apiOverconsumptionDetector.d.ts +13 -0
  9. package/dist/analyze/apiOverconsumptionDetector.js +75 -0
  10. package/dist/analyze/astDetectors.d.ts +38 -0
  11. package/dist/analyze/astDetectors.js +566 -0
  12. package/dist/analyze/buildResourceFindings.d.ts +34 -0
  13. package/dist/analyze/buildResourceFindings.js +86 -0
  14. package/dist/analyze/cli.d.ts +20 -0
  15. package/dist/analyze/cli.js +186 -0
  16. package/dist/analyze/cpuResourceDetectors.d.ts +35 -0
  17. package/dist/analyze/cpuResourceDetectors.js +163 -0
  18. package/dist/analyze/heuristicScan.d.ts +61 -0
  19. package/dist/analyze/heuristicScan.js +91 -0
  20. package/dist/analyze/index.d.ts +15 -0
  21. package/dist/analyze/index.js +15 -0
  22. package/dist/analyze/loadTypescript.d.ts +8 -0
  23. package/dist/analyze/loadTypescript.js +23 -0
  24. package/dist/analyze/memoryIoDetectors.d.ts +15 -0
  25. package/dist/analyze/memoryIoDetectors.js +68 -0
  26. package/dist/analyze/preferAstDetectors.d.ts +18 -0
  27. package/dist/analyze/preferAstDetectors.js +91 -0
  28. package/dist/analyze/projectScan.d.ts +19 -0
  29. package/dist/analyze/projectScan.js +115 -0
  30. package/dist/analyze/resourceAdmission.d.ts +33 -0
  31. package/dist/analyze/resourceAdmission.js +91 -0
  32. package/dist/analyze/resourceFindingCandidate.d.ts +61 -0
  33. package/dist/analyze/resourceFindingCandidate.js +75 -0
  34. package/dist/analyze/retryAmplificationDetector.d.ts +11 -0
  35. package/dist/analyze/retryAmplificationDetector.js +55 -0
  36. package/dist/analyze/schemas/resource-finding.schema.json +352 -0
  37. package/dist/analyze/serviceDiscovery.d.ts +66 -0
  38. package/dist/analyze/serviceDiscovery.js +210 -0
  39. package/dist/analyze/unboundedParallelismDetector.d.ts +11 -0
  40. package/dist/analyze/unboundedParallelismDetector.js +57 -0
  41. package/dist/analyze/validateResourceFinding.d.ts +19 -0
  42. package/dist/analyze/validateResourceFinding.js +46 -0
  43. package/dist/bullmq.d.ts +33 -0
  44. package/dist/bullmq.js +106 -0
  45. package/dist/cli/helpText.d.ts +8 -0
  46. package/dist/cli/helpText.js +99 -0
  47. package/dist/cli/netgreener.d.ts +12 -0
  48. package/dist/cli/netgreener.js +65 -0
  49. package/dist/collectorIpc.d.ts +28 -0
  50. package/dist/collectorIpc.js +189 -0
  51. package/dist/collectorMetadata.d.ts +15 -0
  52. package/dist/collectorMetadata.js +33 -0
  53. package/dist/config.d.ts +41 -0
  54. package/dist/config.js +97 -0
  55. package/dist/contract/index.d.ts +1 -0
  56. package/dist/contract/index.js +1 -0
  57. package/dist/contract/observation-envelope.schema.json +331 -0
  58. package/dist/contract/observation-protobuf-view.schema.json +773 -0
  59. package/dist/contract/observation-v1.d.mts +42 -0
  60. package/dist/contract/observation-v1.mjs +555 -0
  61. package/dist/contract/observationIdentity.d.ts +11 -0
  62. package/dist/contract/observationIdentity.js +48 -0
  63. package/dist/contract/observationProjection.d.ts +3 -0
  64. package/dist/contract/observationProjection.js +29 -0
  65. package/dist/contract/validate.d.ts +20 -0
  66. package/dist/contract/validate.js +227 -0
  67. package/dist/dogfood/mp3WorkerGates.d.ts +54 -0
  68. package/dist/dogfood/mp3WorkerGates.js +86 -0
  69. package/dist/dogfood/retainDryRunArtifact.d.ts +45 -0
  70. package/dist/dogfood/retainDryRunArtifact.js +103 -0
  71. package/dist/dogfood/tenantDogfoodGates.d.ts +76 -0
  72. package/dist/dogfood/tenantDogfoodGates.js +206 -0
  73. package/dist/exporter.d.ts +56 -0
  74. package/dist/exporter.js +304 -0
  75. package/dist/express.d.ts +44 -0
  76. package/dist/express.js +118 -0
  77. package/dist/externalApiMeter.d.ts +72 -0
  78. package/dist/externalApiMeter.js +1167 -0
  79. package/dist/fastify.d.ts +53 -0
  80. package/dist/fastify.js +148 -0
  81. package/dist/index.d.ts +32 -0
  82. package/dist/index.js +31 -0
  83. package/dist/n4/deploymentMatrix.d.ts +22 -0
  84. package/dist/n4/deploymentMatrix.js +57 -0
  85. package/dist/n4/missingnessInventory.d.ts +22 -0
  86. package/dist/n4/missingnessInventory.js +72 -0
  87. package/dist/nest.d.ts +42 -0
  88. package/dist/nest.js +87 -0
  89. package/dist/processResources.d.ts +28 -0
  90. package/dist/processResources.js +31 -0
  91. package/dist/processRuntime.d.ts +35 -0
  92. package/dist/processRuntime.js +96 -0
  93. package/dist/requestContext.d.ts +21 -0
  94. package/dist/requestContext.js +33 -0
  95. package/dist/runtime.d.ts +60 -0
  96. package/dist/runtime.js +289 -0
  97. package/dist/runtimeHealth.d.ts +35 -0
  98. package/dist/runtimeHealth.js +121 -0
  99. package/dist/serverlessHints.d.ts +26 -0
  100. package/dist/serverlessHints.js +52 -0
  101. package/dist/tenantContext.d.ts +78 -0
  102. package/dist/tenantContext.js +226 -0
  103. package/dist/tenantDefaults.d.ts +9 -0
  104. package/dist/tenantDefaults.js +9 -0
  105. package/dist/types.d.ts +131 -0
  106. package/dist/types.js +2 -0
  107. package/dist/uploader.d.ts +23 -0
  108. package/dist/uploader.js +52 -0
  109. package/dist/windowId.d.ts +2 -0
  110. package/dist/windowId.js +7 -0
  111. package/examples/analyze-manifest.mjs +30 -0
  112. package/examples/bullmq-live-smoke.mjs +178 -0
  113. package/examples/bullmq-mp3-worker-gate.mjs +237 -0
  114. package/examples/express-dry-run.mjs +72 -0
  115. package/examples/process-mp3-restart-gate.mjs +135 -0
  116. package/examples/retain-dry-run.mjs +110 -0
  117. package/examples/tenant-dogfood.mjs +269 -0
  118. package/fixtures/analyze-sample/architectureNoise.ts +13 -0
  119. package/fixtures/analyze-sample/cpuHotPaths.ts +27 -0
  120. package/fixtures/analyze-sample/fanOutClient.ts +15 -0
  121. package/fixtures/analyze-sample/inferenceHotPaths.ts +22 -0
  122. package/fixtures/analyze-sample/memoryIoHotPaths.ts +21 -0
  123. package/fixtures/analyze-sample/modelLoadHotPaths.ts +11 -0
  124. package/fixtures/analyze-sample/nestedLookup.ts +15 -0
  125. package/fixtures/analyze-sample/retryClient.ts +10 -0
  126. package/fixtures/analyze-sample/securitySmell.ts +8 -0
  127. package/fixtures/analyze-sample/server.ts +11 -0
  128. package/fixtures/analyze-sample/styleOnly.ts +7 -0
  129. package/fixtures/analyze-sample/worker.ts +4 -0
  130. package/fixtures/dual-view-projection.v1.json +53 -0
  131. package/fixtures/identity-preimages.v1.json +42 -0
  132. package/fixtures/mp2_shadow_digest_golden.v1.json +47 -0
  133. package/fixtures/projection-batch-document.v1.json +170 -0
  134. package/fixtures/projection-batch.v1.json +9 -0
  135. package/fixtures/python_reference_shapes.md +24 -0
  136. package/fixtures/session_metadata_runtime_v0.json +120 -0
  137. package/fixtures/session_metadata_with_tenant.json +85 -0
  138. package/package.json +137 -0
@@ -0,0 +1,773 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.netgreener.com/contracts/v1/observation-protobuf-view.schema.json",
4
+ "title": "NetGreener Observation v1 Protobuf structural JSON view",
5
+ "$comment": "Generated from observation/v1/source/*.proto (ADR 0009). Structural wire/conformance view. Semantic authoring/TCK fixtures still use observation-envelope.schema.json until consumer migration completes.",
6
+ "$ref": "#/$defs/ObservationBatch",
7
+ "$defs": {
8
+ "ObservationBatch": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "protocol_major": {
13
+ "type": "integer",
14
+ "minimum": 0,
15
+ "maximum": 4294967295
16
+ },
17
+ "protocol_minor": {
18
+ "type": "integer",
19
+ "minimum": 0,
20
+ "maximum": 4294967295
21
+ },
22
+ "batch_id": {
23
+ "type": "string",
24
+ "pattern": "^bat_[0-9a-f]{64}$"
25
+ },
26
+ "batch_sequence": {
27
+ "type": "string",
28
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
29
+ "allOf": [
30
+ {
31
+ "pattern": "^[1-9][0-9]{0,19}$"
32
+ }
33
+ ]
34
+ },
35
+ "emitted_at": {
36
+ "type": "string",
37
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
38
+ },
39
+ "source": {
40
+ "$ref": "#/$defs/Source"
41
+ },
42
+ "routing": {
43
+ "$ref": "#/$defs/Routing"
44
+ },
45
+ "privacy": {
46
+ "$ref": "#/$defs/Privacy"
47
+ },
48
+ "window": {
49
+ "$ref": "#/$defs/Window"
50
+ },
51
+ "events": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "#/$defs/Event"
55
+ },
56
+ "minItems": 1,
57
+ "maxItems": 1000
58
+ }
59
+ },
60
+ "required": [
61
+ "protocol_major",
62
+ "protocol_minor",
63
+ "batch_id",
64
+ "batch_sequence",
65
+ "emitted_at",
66
+ "source",
67
+ "routing",
68
+ "privacy",
69
+ "events"
70
+ ]
71
+ },
72
+ "Source": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "language": {
77
+ "type": "string",
78
+ "pattern": "^[a-z][a-z0-9+-]{0,31}$"
79
+ },
80
+ "runtime_name": {
81
+ "type": "string",
82
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$"
83
+ },
84
+ "runtime_version": {
85
+ "type": "string",
86
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,79}$"
87
+ },
88
+ "adapter_name": {
89
+ "type": "string",
90
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,119}$"
91
+ },
92
+ "adapter_version": {
93
+ "type": "string",
94
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]{0,79}$"
95
+ },
96
+ "runtime_instance_id": {
97
+ "type": "string",
98
+ "pattern": "^rti_[0-9a-f]{64}$"
99
+ },
100
+ "capability_ids": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string",
104
+ "pattern": "^CAP-R[1-6]$"
105
+ },
106
+ "minItems": 1,
107
+ "maxItems": 64
108
+ },
109
+ "framework": {
110
+ "type": "string",
111
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$"
112
+ },
113
+ "deployment_mode": {
114
+ "type": "string",
115
+ "enum": [
116
+ "DEPLOYMENT_MODE_UNSPECIFIED",
117
+ "DEPLOYMENT_MODE_VM",
118
+ "DEPLOYMENT_MODE_CONTAINER",
119
+ "DEPLOYMENT_MODE_KUBERNETES",
120
+ "DEPLOYMENT_MODE_CI_JOB",
121
+ "DEPLOYMENT_MODE_SERVERLESS_THIN",
122
+ "DEPLOYMENT_MODE_LOCAL",
123
+ "DEPLOYMENT_MODE_UNKNOWN"
124
+ ]
125
+ }
126
+ },
127
+ "required": [
128
+ "language",
129
+ "runtime_name",
130
+ "runtime_version",
131
+ "adapter_name",
132
+ "adapter_version",
133
+ "runtime_instance_id",
134
+ "capability_ids",
135
+ "deployment_mode"
136
+ ]
137
+ },
138
+ "Routing": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "organization_id": {
143
+ "type": "string",
144
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
145
+ "allOf": [
146
+ {
147
+ "pattern": "^[1-9][0-9]{0,19}$"
148
+ }
149
+ ]
150
+ },
151
+ "project_id": {
152
+ "type": "string",
153
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
154
+ "allOf": [
155
+ {
156
+ "pattern": "^[1-9][0-9]{0,19}$"
157
+ }
158
+ ]
159
+ },
160
+ "workload_id": {
161
+ "type": "string",
162
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/-]{0,199}$"
163
+ },
164
+ "service_name": {
165
+ "type": "string",
166
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$"
167
+ },
168
+ "environment": {
169
+ "type": "string",
170
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,49}$"
171
+ },
172
+ "release_tag": {
173
+ "type": "string",
174
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,119}$"
175
+ }
176
+ },
177
+ "required": [
178
+ "project_id",
179
+ "workload_id",
180
+ "service_name"
181
+ ]
182
+ },
183
+ "Privacy": {
184
+ "type": "object",
185
+ "additionalProperties": false,
186
+ "properties": {
187
+ "content_capture": {
188
+ "type": "string",
189
+ "enum": [
190
+ "CONTENT_CAPTURE_UNSPECIFIED",
191
+ "CONTENT_CAPTURE_NONE"
192
+ ]
193
+ },
194
+ "dimension_policy": {
195
+ "type": "string",
196
+ "enum": [
197
+ "DIMENSION_POLICY_UNSPECIFIED",
198
+ "DIMENSION_POLICY_ALLOWLIST"
199
+ ]
200
+ },
201
+ "route_policy": {
202
+ "type": "string",
203
+ "enum": [
204
+ "ROUTE_POLICY_UNSPECIFIED",
205
+ "ROUTE_POLICY_TEMPLATE_OR_UNKNOWN"
206
+ ]
207
+ },
208
+ "dropped_dimension_count": {
209
+ "type": "string",
210
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
211
+ }
212
+ },
213
+ "required": [
214
+ "content_capture",
215
+ "dimension_policy",
216
+ "route_policy",
217
+ "dropped_dimension_count"
218
+ ]
219
+ },
220
+ "Window": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "properties": {
224
+ "runtime_window_id": {
225
+ "type": "string",
226
+ "pattern": "^rtw_[0-9a-f]{64}$"
227
+ },
228
+ "state": {
229
+ "type": "string",
230
+ "enum": [
231
+ "WINDOW_STATE_UNSPECIFIED",
232
+ "WINDOW_STATE_OPEN",
233
+ "WINDOW_STATE_CLOSED",
234
+ "WINDOW_STATE_THIN"
235
+ ]
236
+ },
237
+ "start_time": {
238
+ "type": "string",
239
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
240
+ },
241
+ "end_time": {
242
+ "type": "string",
243
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
244
+ }
245
+ },
246
+ "required": [
247
+ "state",
248
+ "start_time"
249
+ ]
250
+ },
251
+ "Event": {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "properties": {
255
+ "event_id": {
256
+ "type": "string",
257
+ "pattern": "^evt_[0-9a-f]{64}$"
258
+ },
259
+ "sequence": {
260
+ "type": "string",
261
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
262
+ "allOf": [
263
+ {
264
+ "pattern": "^[1-9][0-9]{0,19}$"
265
+ }
266
+ ]
267
+ },
268
+ "wall_time_unix_nano": {
269
+ "type": "string",
270
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
271
+ "allOf": [
272
+ {
273
+ "pattern": "^[1-9][0-9]{0,19}$"
274
+ }
275
+ ]
276
+ },
277
+ "monotonic_time_ns": {
278
+ "type": "string",
279
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
280
+ },
281
+ "clock_source": {
282
+ "type": "string",
283
+ "enum": [
284
+ "CLOCK_SOURCE_UNSPECIFIED",
285
+ "CLOCK_SOURCE_RUNTIME_MONOTONIC",
286
+ "CLOCK_SOURCE_PROCESS_MONOTONIC",
287
+ "CLOCK_SOURCE_UNAVAILABLE"
288
+ ]
289
+ },
290
+ "execution_id": {
291
+ "type": "string",
292
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/-]{0,199}$"
293
+ },
294
+ "runtime_window_id": {
295
+ "type": "string",
296
+ "pattern": "^rtw_[0-9a-f]{64}$"
297
+ },
298
+ "traceparent": {
299
+ "type": "string",
300
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
301
+ },
302
+ "clock_epoch_id": {
303
+ "type": "string",
304
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/-]{0,199}$"
305
+ },
306
+ "operation_event": {
307
+ "$ref": "#/$defs/OperationEvent"
308
+ },
309
+ "operation_summary": {
310
+ "$ref": "#/$defs/OperationSummary"
311
+ },
312
+ "external_call": {
313
+ "$ref": "#/$defs/ExternalCall"
314
+ },
315
+ "resource_sample": {
316
+ "$ref": "#/$defs/ResourceSample"
317
+ },
318
+ "adapter_health": {
319
+ "$ref": "#/$defs/AdapterHealth"
320
+ }
321
+ },
322
+ "required": [
323
+ "event_id",
324
+ "sequence",
325
+ "wall_time_unix_nano",
326
+ "clock_source"
327
+ ],
328
+ "allOf": [
329
+ {
330
+ "oneOf": [
331
+ {
332
+ "required": [
333
+ "operation_event"
334
+ ]
335
+ },
336
+ {
337
+ "required": [
338
+ "operation_summary"
339
+ ]
340
+ },
341
+ {
342
+ "required": [
343
+ "external_call"
344
+ ]
345
+ },
346
+ {
347
+ "required": [
348
+ "resource_sample"
349
+ ]
350
+ },
351
+ {
352
+ "required": [
353
+ "adapter_health"
354
+ ]
355
+ }
356
+ ]
357
+ }
358
+ ]
359
+ },
360
+ "Operation": {
361
+ "type": "object",
362
+ "additionalProperties": false,
363
+ "properties": {
364
+ "kind": {
365
+ "type": "string",
366
+ "enum": [
367
+ "OPERATION_KIND_UNSPECIFIED",
368
+ "OPERATION_KIND_HTTP_SERVER",
369
+ "OPERATION_KIND_TASK",
370
+ "OPERATION_KIND_PROCESS",
371
+ "OPERATION_KIND_SCRIPT",
372
+ "OPERATION_KIND_CRON",
373
+ "OPERATION_KIND_BACKGROUND",
374
+ "OPERATION_KIND_UNATTRIBUTED"
375
+ ]
376
+ },
377
+ "unit_type": {
378
+ "type": "string",
379
+ "enum": [
380
+ "OPERATION_UNIT_UNSPECIFIED",
381
+ "OPERATION_UNIT_HTTP_ROUTE",
382
+ "OPERATION_UNIT_TASK",
383
+ "OPERATION_UNIT_PROCESS",
384
+ "OPERATION_UNIT_SCRIPT",
385
+ "OPERATION_UNIT_CRON",
386
+ "OPERATION_UNIT_BACKGROUND",
387
+ "OPERATION_UNIT_UNATTRIBUTED"
388
+ ]
389
+ },
390
+ "name": {
391
+ "type": "string",
392
+ "pattern": "^[^?#\\r\\n]+$",
393
+ "maxLength": 200
394
+ },
395
+ "identity_source": {
396
+ "type": "string",
397
+ "enum": [
398
+ "IDENTITY_SOURCE_UNSPECIFIED",
399
+ "IDENTITY_SOURCE_FRAMEWORK_TEMPLATE",
400
+ "IDENTITY_SOURCE_DECLARED",
401
+ "IDENTITY_SOURCE_GENERATED",
402
+ "IDENTITY_SOURCE_UNKNOWN_BUCKET"
403
+ ]
404
+ },
405
+ "http_method": {
406
+ "type": "string",
407
+ "pattern": "^[A-Z]{3,12}$"
408
+ },
409
+ "route_template": {
410
+ "type": "string",
411
+ "pattern": "^(__unknown__|/[^?#\\r\\n]{0,198})$"
412
+ }
413
+ },
414
+ "required": [
415
+ "kind",
416
+ "unit_type",
417
+ "name",
418
+ "identity_source"
419
+ ]
420
+ },
421
+ "OperationEvent": {
422
+ "type": "object",
423
+ "additionalProperties": false,
424
+ "properties": {
425
+ "operation": {
426
+ "$ref": "#/$defs/Operation"
427
+ },
428
+ "phase": {
429
+ "type": "string",
430
+ "enum": [
431
+ "OPERATION_PHASE_UNSPECIFIED",
432
+ "OPERATION_PHASE_START",
433
+ "OPERATION_PHASE_FINISH",
434
+ "OPERATION_PHASE_HEARTBEAT"
435
+ ]
436
+ },
437
+ "outcome": {
438
+ "type": "string",
439
+ "enum": [
440
+ "OUTCOME_UNSPECIFIED",
441
+ "OUTCOME_OK",
442
+ "OUTCOME_ERROR",
443
+ "OUTCOME_CANCELLED",
444
+ "OUTCOME_UNKNOWN"
445
+ ]
446
+ },
447
+ "duration_ns": {
448
+ "type": "string",
449
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
450
+ },
451
+ "status_code": {
452
+ "type": "integer",
453
+ "minimum": 0,
454
+ "maximum": 4294967295
455
+ }
456
+ },
457
+ "required": [
458
+ "operation",
459
+ "phase"
460
+ ]
461
+ },
462
+ "OperationSummary": {
463
+ "type": "object",
464
+ "additionalProperties": false,
465
+ "properties": {
466
+ "operation": {
467
+ "$ref": "#/$defs/Operation"
468
+ },
469
+ "calls": {
470
+ "type": "string",
471
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
472
+ "allOf": [
473
+ {
474
+ "pattern": "^[1-9][0-9]{0,19}$"
475
+ }
476
+ ]
477
+ },
478
+ "errors": {
479
+ "type": "string",
480
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
481
+ },
482
+ "duration_ns_sum": {
483
+ "type": "string",
484
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
485
+ },
486
+ "duration_ns_max": {
487
+ "type": "string",
488
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
489
+ },
490
+ "concurrency_max": {
491
+ "type": "integer",
492
+ "minimum": 0,
493
+ "maximum": 4294967295
494
+ }
495
+ },
496
+ "required": [
497
+ "operation",
498
+ "calls",
499
+ "errors",
500
+ "duration_ns_sum",
501
+ "duration_ns_max"
502
+ ]
503
+ },
504
+ "ExternalCall": {
505
+ "type": "object",
506
+ "additionalProperties": false,
507
+ "properties": {
508
+ "parent_operation_event_id": {
509
+ "type": "string",
510
+ "pattern": "^evt_[0-9a-f]{64}$"
511
+ },
512
+ "provider": {
513
+ "type": "string",
514
+ "pattern": "^[a-z0-9][a-z0-9_.-]{0,63}$"
515
+ },
516
+ "service": {
517
+ "type": "string",
518
+ "pattern": "^[a-z0-9][a-z0-9_.-]{0,63}$"
519
+ },
520
+ "operation": {
521
+ "type": "string",
522
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,99}$"
523
+ },
524
+ "model": {
525
+ "type": "string",
526
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,127}$"
527
+ },
528
+ "destination_domain": {
529
+ "type": "string",
530
+ "pattern": "^[a-z0-9][a-z0-9.-]{0,252}[a-z0-9]$"
531
+ },
532
+ "attempts": {
533
+ "type": "string",
534
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$",
535
+ "allOf": [
536
+ {
537
+ "pattern": "^[1-9][0-9]{0,19}$"
538
+ }
539
+ ]
540
+ },
541
+ "errors": {
542
+ "type": "string",
543
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
544
+ },
545
+ "duration_ns": {
546
+ "type": "string",
547
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
548
+ },
549
+ "usage": {
550
+ "type": "array",
551
+ "items": {
552
+ "$ref": "#/$defs/Usage"
553
+ },
554
+ "maxItems": 32
555
+ }
556
+ },
557
+ "required": [
558
+ "service",
559
+ "operation",
560
+ "attempts",
561
+ "errors",
562
+ "duration_ns"
563
+ ]
564
+ },
565
+ "Usage": {
566
+ "type": "object",
567
+ "additionalProperties": false,
568
+ "properties": {
569
+ "unit": {
570
+ "type": "string",
571
+ "pattern": "^(input_tokens|output_tokens|total_tokens|cached_input_tokens|reasoning_tokens|request_bytes|response_bytes|provider_units|x-[a-z0-9][a-z0-9_.-]{0,62})$"
572
+ },
573
+ "value": {
574
+ "type": "string",
575
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
576
+ },
577
+ "source": {
578
+ "type": "string",
579
+ "enum": [
580
+ "USAGE_SOURCE_UNSPECIFIED",
581
+ "USAGE_SOURCE_PROVIDER_RESPONSE",
582
+ "USAGE_SOURCE_DOCUMENTED_HEADER",
583
+ "USAGE_SOURCE_SDK_CALLBACK",
584
+ "USAGE_SOURCE_DECLARED"
585
+ ]
586
+ }
587
+ },
588
+ "required": [
589
+ "unit",
590
+ "value",
591
+ "source"
592
+ ]
593
+ },
594
+ "ResourceSample": {
595
+ "type": "object",
596
+ "additionalProperties": false,
597
+ "properties": {
598
+ "parent_operation_event_id": {
599
+ "type": "string",
600
+ "pattern": "^evt_[0-9a-f]{64}$"
601
+ },
602
+ "scope": {
603
+ "type": "string",
604
+ "enum": [
605
+ "RESOURCE_SCOPE_UNSPECIFIED",
606
+ "RESOURCE_SCOPE_PROCESS",
607
+ "RESOURCE_SCOPE_PROCESS_TREE",
608
+ "RESOURCE_SCOPE_CONTAINER",
609
+ "RESOURCE_SCOPE_CGROUP",
610
+ "RESOURCE_SCOPE_HOST",
611
+ "RESOURCE_SCOPE_DEVICE"
612
+ ]
613
+ },
614
+ "sample_kind": {
615
+ "type": "string",
616
+ "enum": [
617
+ "SAMPLE_KIND_UNSPECIFIED",
618
+ "SAMPLE_KIND_START",
619
+ "SAMPLE_KIND_PERIODIC",
620
+ "SAMPLE_KIND_END",
621
+ "SAMPLE_KIND_SNAPSHOT"
622
+ ]
623
+ },
624
+ "subject_id": {
625
+ "type": "string",
626
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/-]{0,199}$"
627
+ },
628
+ "measurements": {
629
+ "type": "array",
630
+ "items": {
631
+ "$ref": "#/$defs/Measurement"
632
+ },
633
+ "minItems": 1,
634
+ "maxItems": 32
635
+ }
636
+ },
637
+ "required": [
638
+ "scope",
639
+ "sample_kind",
640
+ "subject_id",
641
+ "measurements"
642
+ ]
643
+ },
644
+ "Measurement": {
645
+ "type": "object",
646
+ "additionalProperties": false,
647
+ "properties": {
648
+ "name": {
649
+ "type": "string",
650
+ "enum": [
651
+ "MEASUREMENT_NAME_UNSPECIFIED",
652
+ "MEASUREMENT_NAME_PROCESS_CPU_TIME",
653
+ "MEASUREMENT_NAME_PROCESS_MEMORY_RSS",
654
+ "MEASUREMENT_NAME_SYSTEM_ENERGY",
655
+ "MEASUREMENT_NAME_GPU_ENERGY",
656
+ "MEASUREMENT_NAME_GPU_UTILIZATION"
657
+ ]
658
+ },
659
+ "value": {
660
+ "type": "string",
661
+ "pattern": "^(0|[1-9][0-9]{0,30})(\\.[0-9]{0,11}[1-9])?$"
662
+ },
663
+ "unit": {
664
+ "type": "string",
665
+ "enum": [
666
+ "MEASUREMENT_UNIT_UNSPECIFIED",
667
+ "MEASUREMENT_UNIT_NS",
668
+ "MEASUREMENT_UNIT_BY",
669
+ "MEASUREMENT_UNIT_J",
670
+ "MEASUREMENT_UNIT_RATIO"
671
+ ]
672
+ },
673
+ "temporality": {
674
+ "type": "string",
675
+ "enum": [
676
+ "TEMPORALITY_UNSPECIFIED",
677
+ "TEMPORALITY_CUMULATIVE",
678
+ "TEMPORALITY_DELTA",
679
+ "TEMPORALITY_GAUGE"
680
+ ]
681
+ },
682
+ "source": {
683
+ "type": "string",
684
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,119}$"
685
+ },
686
+ "coverage": {
687
+ "type": "string",
688
+ "pattern": "^(0|1|0\\.[0-9]{0,11}[1-9])$"
689
+ },
690
+ "counter_epoch_id": {
691
+ "type": "string",
692
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@/-]{0,199}$"
693
+ }
694
+ },
695
+ "required": [
696
+ "name",
697
+ "value",
698
+ "unit",
699
+ "temporality",
700
+ "source",
701
+ "coverage"
702
+ ]
703
+ },
704
+ "AdapterHealth": {
705
+ "type": "object",
706
+ "additionalProperties": false,
707
+ "properties": {
708
+ "component": {
709
+ "type": "string",
710
+ "enum": [
711
+ "HEALTH_COMPONENT_UNSPECIFIED",
712
+ "HEALTH_COMPONENT_ADAPTER",
713
+ "HEALTH_COMPONENT_EXPORTER",
714
+ "HEALTH_COMPONENT_SAMPLER",
715
+ "HEALTH_COMPONENT_COLLECTOR"
716
+ ]
717
+ },
718
+ "status": {
719
+ "type": "string",
720
+ "enum": [
721
+ "HEALTH_STATUS_UNSPECIFIED",
722
+ "HEALTH_STATUS_OK",
723
+ "HEALTH_STATUS_DEGRADED",
724
+ "HEALTH_STATUS_ERROR",
725
+ "HEALTH_STATUS_DISABLED"
726
+ ]
727
+ },
728
+ "reason_codes": {
729
+ "type": "array",
730
+ "items": {
731
+ "type": "string",
732
+ "pattern": "^[A-Z][A-Z0-9_]{0,63}$"
733
+ },
734
+ "maxItems": 32
735
+ },
736
+ "counters": {
737
+ "$ref": "#/$defs/HealthCounters"
738
+ }
739
+ },
740
+ "required": [
741
+ "component",
742
+ "status",
743
+ "counters"
744
+ ]
745
+ },
746
+ "HealthCounters": {
747
+ "type": "object",
748
+ "additionalProperties": false,
749
+ "properties": {
750
+ "dropped_events": {
751
+ "type": "string",
752
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
753
+ },
754
+ "retries": {
755
+ "type": "string",
756
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
757
+ },
758
+ "rejected_events": {
759
+ "type": "string",
760
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
761
+ },
762
+ "queue_depth": {
763
+ "type": "string",
764
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
765
+ },
766
+ "queue_oldest_age_ms": {
767
+ "type": "string",
768
+ "pattern": "^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$"
769
+ }
770
+ }
771
+ }
772
+ }
773
+ }