@perpetualsystems/typescript-sdk 0.0.0-bootstrap.0 → 0.4.0-next-20261110214241

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 (157) hide show
  1. package/README.md +26 -1
  2. package/dist/authorization-code-pkce.d.ts +40 -0
  3. package/dist/authorization-code-pkce.d.ts.map +1 -0
  4. package/dist/authorization-code-pkce.js +272 -0
  5. package/dist/authorization-code-pkce.js.map +1 -0
  6. package/dist/client-credentials.d.ts +18 -0
  7. package/dist/client-credentials.d.ts.map +1 -0
  8. package/dist/client-credentials.js +79 -0
  9. package/dist/client-credentials.js.map +1 -0
  10. package/dist/client-store.d.ts +37 -0
  11. package/dist/client-store.d.ts.map +1 -0
  12. package/dist/client-store.js +138 -0
  13. package/dist/client-store.js.map +1 -0
  14. package/dist/client.d.ts +113 -0
  15. package/dist/client.d.ts.map +1 -0
  16. package/dist/client.js +217 -0
  17. package/dist/client.js.map +1 -0
  18. package/dist/config-dir.d.ts +3 -0
  19. package/dist/config-dir.d.ts.map +1 -0
  20. package/dist/config-dir.js +11 -0
  21. package/dist/config-dir.js.map +1 -0
  22. package/dist/dynamic-registration.d.ts +28 -0
  23. package/dist/dynamic-registration.d.ts.map +1 -0
  24. package/dist/dynamic-registration.js +56 -0
  25. package/dist/dynamic-registration.js.map +1 -0
  26. package/dist/generated/client/client.gen.d.ts +3 -0
  27. package/dist/generated/client/client.gen.d.ts.map +1 -0
  28. package/dist/generated/client/client.gen.js +217 -0
  29. package/dist/generated/client/client.gen.js.map +1 -0
  30. package/dist/generated/client/index.d.ts +11 -0
  31. package/dist/generated/client/index.d.ts.map +1 -0
  32. package/dist/generated/client/index.js +7 -0
  33. package/dist/generated/client/index.js.map +1 -0
  34. package/dist/generated/client/types.gen.d.ts +121 -0
  35. package/dist/generated/client/types.gen.d.ts.map +1 -0
  36. package/dist/generated/client/types.gen.js +3 -0
  37. package/dist/generated/client/types.gen.js.map +1 -0
  38. package/dist/generated/client/utils.gen.d.ts +38 -0
  39. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  40. package/dist/generated/client/utils.gen.js +229 -0
  41. package/dist/generated/client/utils.gen.js.map +1 -0
  42. package/dist/generated/client.gen.d.ts +13 -0
  43. package/dist/generated/client.gen.d.ts.map +1 -0
  44. package/dist/generated/client.gen.js +4 -0
  45. package/dist/generated/client.gen.js.map +1 -0
  46. package/dist/generated/core/auth.gen.d.ts +26 -0
  47. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  48. package/dist/generated/core/auth.gen.js +15 -0
  49. package/dist/generated/core/auth.gen.js.map +1 -0
  50. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  51. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  52. package/dist/generated/core/bodySerializer.gen.js +58 -0
  53. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  54. package/dist/generated/core/params.gen.d.ts +44 -0
  55. package/dist/generated/core/params.gen.d.ts.map +1 -0
  56. package/dist/generated/core/params.gen.js +110 -0
  57. package/dist/generated/core/params.gen.js.map +1 -0
  58. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  59. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  60. package/dist/generated/core/pathSerializer.gen.js +107 -0
  61. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  62. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  63. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  64. package/dist/generated/core/queryKeySerializer.gen.js +93 -0
  65. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  66. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  67. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  68. package/dist/generated/core/serverSentEvents.gen.js +133 -0
  69. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  70. package/dist/generated/core/types.gen.d.ts +84 -0
  71. package/dist/generated/core/types.gen.d.ts.map +1 -0
  72. package/dist/generated/core/types.gen.js +3 -0
  73. package/dist/generated/core/types.gen.js.map +1 -0
  74. package/dist/generated/core/utils.gen.d.ts +20 -0
  75. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  76. package/dist/generated/core/utils.gen.js +88 -0
  77. package/dist/generated/core/utils.gen.js.map +1 -0
  78. package/dist/generated/enum-values.gen.d.ts +331 -0
  79. package/dist/generated/enum-values.gen.d.ts.map +1 -0
  80. package/dist/generated/enum-values.gen.js +332 -0
  81. package/dist/generated/enum-values.gen.js.map +1 -0
  82. package/dist/generated/file-schemas.gen.d.ts +14 -0
  83. package/dist/generated/file-schemas.gen.d.ts.map +1 -0
  84. package/dist/generated/file-schemas.gen.js +3786 -0
  85. package/dist/generated/file-schemas.gen.js.map +1 -0
  86. package/dist/generated/index.d.ts +3 -0
  87. package/dist/generated/index.d.ts.map +1 -0
  88. package/dist/generated/index.js +3 -0
  89. package/dist/generated/index.js.map +1 -0
  90. package/dist/generated/sdk.gen.d.ts +1713 -0
  91. package/dist/generated/sdk.gen.d.ts.map +1 -0
  92. package/dist/generated/sdk.gen.js +10574 -0
  93. package/dist/generated/sdk.gen.js.map +1 -0
  94. package/dist/generated/spec-source.gen.d.ts +8 -0
  95. package/dist/generated/spec-source.gen.d.ts.map +1 -0
  96. package/dist/generated/spec-source.gen.js +9 -0
  97. package/dist/generated/spec-source.gen.js.map +1 -0
  98. package/dist/generated/types.gen.d.ts +30382 -0
  99. package/dist/generated/types.gen.d.ts.map +1 -0
  100. package/dist/generated/types.gen.js +3 -0
  101. package/dist/generated/types.gen.js.map +1 -0
  102. package/dist/index.d.ts +21 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +16 -0
  105. package/dist/index.js.map +1 -0
  106. package/dist/oauth-request-error.d.ts +26 -0
  107. package/dist/oauth-request-error.d.ts.map +1 -0
  108. package/dist/oauth-request-error.js +47 -0
  109. package/dist/oauth-request-error.js.map +1 -0
  110. package/dist/refresh-token.d.ts +50 -0
  111. package/dist/refresh-token.d.ts.map +1 -0
  112. package/dist/refresh-token.js +83 -0
  113. package/dist/refresh-token.js.map +1 -0
  114. package/dist/token-store.d.ts +38 -0
  115. package/dist/token-store.d.ts.map +1 -0
  116. package/dist/token-store.js +195 -0
  117. package/dist/token-store.js.map +1 -0
  118. package/openapi/openapi.json +128387 -0
  119. package/package.json +66 -4
  120. package/src/__tests__/authorization-code-pkce.test.ts +245 -0
  121. package/src/__tests__/client-credentials.test.ts +360 -0
  122. package/src/__tests__/client-store.test.ts +139 -0
  123. package/src/__tests__/client.test.ts +529 -0
  124. package/src/__tests__/config-dir.test.ts +22 -0
  125. package/src/__tests__/dynamic-registration.test.ts +181 -0
  126. package/src/__tests__/oauth-request-error.test.ts +148 -0
  127. package/src/__tests__/refresh-token.test.ts +206 -0
  128. package/src/__tests__/token-store.test.ts +449 -0
  129. package/src/authorization-code-pkce.ts +417 -0
  130. package/src/client-credentials.ts +127 -0
  131. package/src/client-store.ts +182 -0
  132. package/src/client.ts +261 -0
  133. package/src/config-dir.ts +12 -0
  134. package/src/dynamic-registration.ts +109 -0
  135. package/src/generated/client/client.gen.ts +277 -0
  136. package/src/generated/client/index.ts +27 -0
  137. package/src/generated/client/types.gen.ts +218 -0
  138. package/src/generated/client/utils.gen.ts +316 -0
  139. package/src/generated/client.gen.ts +16 -0
  140. package/src/generated/core/auth.gen.ts +48 -0
  141. package/src/generated/core/bodySerializer.gen.ts +82 -0
  142. package/src/generated/core/params.gen.ts +178 -0
  143. package/src/generated/core/pathSerializer.gen.ts +171 -0
  144. package/src/generated/core/queryKeySerializer.gen.ts +117 -0
  145. package/src/generated/core/serverSentEvents.gen.ts +242 -0
  146. package/src/generated/core/types.gen.ts +110 -0
  147. package/src/generated/core/utils.gen.ts +140 -0
  148. package/src/generated/enum-values.gen.ts +332 -0
  149. package/src/generated/file-schemas.gen.ts +3800 -0
  150. package/src/generated/index.ts +4 -0
  151. package/src/generated/sdk.gen.ts +10992 -0
  152. package/src/generated/spec-source.gen.ts +9 -0
  153. package/src/generated/types.gen.ts +32415 -0
  154. package/src/index.ts +55 -0
  155. package/src/oauth-request-error.ts +75 -0
  156. package/src/refresh-token.ts +142 -0
  157. package/src/token-store.ts +252 -0
@@ -0,0 +1,3800 @@
1
+ // This file is auto-generated by scripts/generate.ts
2
+
3
+ export interface FileKindEntry {
4
+ fileGlob: string;
5
+ querySidecar: "none" | "required" | "panel-ref";
6
+ resourceKind: string;
7
+ role: "manifest" | "resource" | "installation" | "override";
8
+ schema: string;
9
+ }
10
+
11
+ export interface FileSchemaIndex {
12
+ version: string;
13
+ families: Record<string, Record<string, FileKindEntry>>;
14
+ }
15
+
16
+ export const fileSchemaIndex: FileSchemaIndex = {
17
+ "families": {
18
+ "pack": {
19
+ "dashboard": {
20
+ "fileGlob": "*.dashboard.yaml",
21
+ "querySidecar": "panel-ref",
22
+ "resourceKind": "Dashboard",
23
+ "role": "resource",
24
+ "schema": "pack/dashboard.schema.json"
25
+ },
26
+ "detection": {
27
+ "fileGlob": "*.detection.yaml",
28
+ "querySidecar": "required",
29
+ "resourceKind": "Detection",
30
+ "role": "resource",
31
+ "schema": "pack/detection.schema.json"
32
+ },
33
+ "folder": {
34
+ "fileGlob": "*.folder.yaml",
35
+ "querySidecar": "none",
36
+ "resourceKind": "Folder",
37
+ "role": "resource",
38
+ "schema": "pack/folder.schema.json"
39
+ },
40
+ "http-tool": {
41
+ "fileGlob": "*.http-tool.yaml",
42
+ "querySidecar": "none",
43
+ "resourceKind": "HttpToolConfig",
44
+ "role": "resource",
45
+ "schema": "pack/http-tool.schema.json"
46
+ },
47
+ "integration": {
48
+ "fileGlob": "*.integration.yaml",
49
+ "querySidecar": "none",
50
+ "resourceKind": "Integration",
51
+ "role": "resource",
52
+ "schema": "pack/integration.schema.json"
53
+ },
54
+ "lookup": {
55
+ "fileGlob": "*.lookup.yaml",
56
+ "querySidecar": "required",
57
+ "resourceKind": "Lookup",
58
+ "role": "resource",
59
+ "schema": "pack/lookup.schema.json"
60
+ },
61
+ "mapper": {
62
+ "fileGlob": "*.mapper.yaml",
63
+ "querySidecar": "required",
64
+ "resourceKind": "Mapper",
65
+ "role": "resource",
66
+ "schema": "pack/mapper.schema.json"
67
+ },
68
+ "mcp": {
69
+ "fileGlob": "*.mcp.yaml",
70
+ "querySidecar": "none",
71
+ "resourceKind": "McpConfig",
72
+ "role": "resource",
73
+ "schema": "pack/mcp.schema.json"
74
+ },
75
+ "pack": {
76
+ "fileGlob": "pack.yaml",
77
+ "querySidecar": "none",
78
+ "resourceKind": "ContentPack",
79
+ "role": "manifest",
80
+ "schema": "pack/pack.schema.json"
81
+ },
82
+ "parser": {
83
+ "fileGlob": "*.parser.yaml",
84
+ "querySidecar": "required",
85
+ "resourceKind": "Parser",
86
+ "role": "resource",
87
+ "schema": "pack/parser.schema.json"
88
+ },
89
+ "skill": {
90
+ "fileGlob": "*.skill.yaml",
91
+ "querySidecar": "none",
92
+ "resourceKind": "Skill",
93
+ "role": "resource",
94
+ "schema": "pack/skill.schema.json"
95
+ },
96
+ "webhook": {
97
+ "fileGlob": "*.webhook.yaml",
98
+ "querySidecar": "none",
99
+ "resourceKind": "WebhookConfig",
100
+ "role": "resource",
101
+ "schema": "pack/webhook.schema.json"
102
+ }
103
+ },
104
+ "space": {
105
+ "connector": {
106
+ "fileGlob": "*.connector.yaml",
107
+ "querySidecar": "none",
108
+ "resourceKind": "Connector",
109
+ "role": "resource",
110
+ "schema": "space/connector.schema.json"
111
+ },
112
+ "dashboard": {
113
+ "fileGlob": "*.dashboard.yaml",
114
+ "querySidecar": "panel-ref",
115
+ "resourceKind": "Dashboard",
116
+ "role": "resource",
117
+ "schema": "space/dashboard.schema.json"
118
+ },
119
+ "detection": {
120
+ "fileGlob": "*.detection.yaml",
121
+ "querySidecar": "required",
122
+ "resourceKind": "Detection",
123
+ "role": "resource",
124
+ "schema": "space/detection.schema.json"
125
+ },
126
+ "detection-override": {
127
+ "fileGlob": "*.detection-override.yaml",
128
+ "querySidecar": "none",
129
+ "resourceKind": "Detection",
130
+ "role": "override",
131
+ "schema": "space/detection-override.schema.json"
132
+ },
133
+ "folder": {
134
+ "fileGlob": "*.folder.yaml",
135
+ "querySidecar": "none",
136
+ "resourceKind": "Folder",
137
+ "role": "resource",
138
+ "schema": "space/folder.schema.json"
139
+ },
140
+ "http-tool": {
141
+ "fileGlob": "*.http-tool.yaml",
142
+ "querySidecar": "none",
143
+ "resourceKind": "HttpToolConfig",
144
+ "role": "resource",
145
+ "schema": "space/http-tool.schema.json"
146
+ },
147
+ "integration": {
148
+ "fileGlob": "*.integration.yaml",
149
+ "querySidecar": "none",
150
+ "resourceKind": "Integration",
151
+ "role": "resource",
152
+ "schema": "space/integration.schema.json"
153
+ },
154
+ "lookup": {
155
+ "fileGlob": "*.lookup.yaml",
156
+ "querySidecar": "required",
157
+ "resourceKind": "Lookup",
158
+ "role": "resource",
159
+ "schema": "space/lookup.schema.json"
160
+ },
161
+ "lookup-override": {
162
+ "fileGlob": "*.lookup-override.yaml",
163
+ "querySidecar": "none",
164
+ "resourceKind": "Lookup",
165
+ "role": "override",
166
+ "schema": "space/lookup-override.schema.json"
167
+ },
168
+ "mapper": {
169
+ "fileGlob": "*.mapper.yaml",
170
+ "querySidecar": "required",
171
+ "resourceKind": "Mapper",
172
+ "role": "resource",
173
+ "schema": "space/mapper.schema.json"
174
+ },
175
+ "mapper-override": {
176
+ "fileGlob": "*.mapper-override.yaml",
177
+ "querySidecar": "none",
178
+ "resourceKind": "Mapper",
179
+ "role": "override",
180
+ "schema": "space/mapper-override.schema.json"
181
+ },
182
+ "mcp": {
183
+ "fileGlob": "*.mcp.yaml",
184
+ "querySidecar": "none",
185
+ "resourceKind": "McpConfig",
186
+ "role": "resource",
187
+ "schema": "space/mcp.schema.json"
188
+ },
189
+ "pack-installation": {
190
+ "fileGlob": "*.pack-installation.yaml",
191
+ "querySidecar": "none",
192
+ "resourceKind": "ContentPackInstallation",
193
+ "role": "installation",
194
+ "schema": "space/pack-installation.schema.json"
195
+ },
196
+ "parser": {
197
+ "fileGlob": "*.parser.yaml",
198
+ "querySidecar": "required",
199
+ "resourceKind": "Parser",
200
+ "role": "resource",
201
+ "schema": "space/parser.schema.json"
202
+ },
203
+ "parser-override": {
204
+ "fileGlob": "*.parser-override.yaml",
205
+ "querySidecar": "none",
206
+ "resourceKind": "Parser",
207
+ "role": "override",
208
+ "schema": "space/parser-override.schema.json"
209
+ },
210
+ "skill": {
211
+ "fileGlob": "*.skill.yaml",
212
+ "querySidecar": "none",
213
+ "resourceKind": "Skill",
214
+ "role": "resource",
215
+ "schema": "space/skill.schema.json"
216
+ },
217
+ "table": {
218
+ "fileGlob": "*.table.yaml",
219
+ "querySidecar": "required",
220
+ "resourceKind": "Table",
221
+ "role": "resource",
222
+ "schema": "space/table.schema.json"
223
+ },
224
+ "union": {
225
+ "fileGlob": "*.union.yaml",
226
+ "querySidecar": "none",
227
+ "resourceKind": "Union",
228
+ "role": "resource",
229
+ "schema": "space/union.schema.json"
230
+ },
231
+ "view": {
232
+ "fileGlob": "*.view.yaml",
233
+ "querySidecar": "required",
234
+ "resourceKind": "View",
235
+ "role": "resource",
236
+ "schema": "space/view.schema.json"
237
+ },
238
+ "webhook": {
239
+ "fileGlob": "*.webhook.yaml",
240
+ "querySidecar": "none",
241
+ "resourceKind": "WebhookConfig",
242
+ "role": "resource",
243
+ "schema": "space/webhook.schema.json"
244
+ }
245
+ }
246
+ },
247
+ "version": "v1"
248
+ };
249
+
250
+ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
251
+ "pack/dashboard.schema.json": {
252
+ "$id": "urn:perpetual:file-format:v1:pack:dashboard",
253
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
254
+ "additionalProperties": false,
255
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
256
+ "properties": {
257
+ "defaultTimeRange": {
258
+ "type": "string"
259
+ },
260
+ "folder": {
261
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
262
+ "format": "uuid",
263
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
264
+ "type": "string"
265
+ },
266
+ "id": {
267
+ "format": "uuid",
268
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
269
+ "type": "string"
270
+ },
271
+ "name": {
272
+ "type": "string"
273
+ },
274
+ "panels": {
275
+ "default": [],
276
+ "items": {
277
+ "oneOf": [
278
+ {
279
+ "additionalProperties": false,
280
+ "properties": {
281
+ "content": {
282
+ "default": "",
283
+ "type": "string"
284
+ },
285
+ "id": {
286
+ "type": "string"
287
+ },
288
+ "layout": {
289
+ "properties": {
290
+ "h": {
291
+ "maximum": 9007199254740991,
292
+ "minimum": 1,
293
+ "type": "integer"
294
+ },
295
+ "w": {
296
+ "maximum": 24,
297
+ "minimum": 1,
298
+ "type": "integer"
299
+ },
300
+ "x": {
301
+ "maximum": 23,
302
+ "minimum": 0,
303
+ "type": "integer"
304
+ },
305
+ "y": {
306
+ "maximum": 9007199254740991,
307
+ "minimum": 0,
308
+ "type": "integer"
309
+ }
310
+ },
311
+ "required": [
312
+ "x",
313
+ "y",
314
+ "w",
315
+ "h"
316
+ ],
317
+ "type": "object"
318
+ },
319
+ "title": {
320
+ "properties": {
321
+ "align": {
322
+ "default": "left",
323
+ "enum": [
324
+ "left",
325
+ "center",
326
+ "right"
327
+ ],
328
+ "type": "string"
329
+ },
330
+ "size": {
331
+ "default": "sm",
332
+ "enum": [
333
+ "sm",
334
+ "md",
335
+ "lg"
336
+ ],
337
+ "type": "string"
338
+ },
339
+ "text": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "text"
345
+ ],
346
+ "type": "object"
347
+ },
348
+ "type": {
349
+ "const": "markdown",
350
+ "type": "string"
351
+ }
352
+ },
353
+ "required": [
354
+ "id",
355
+ "type",
356
+ "layout"
357
+ ],
358
+ "type": "object"
359
+ },
360
+ {
361
+ "additionalProperties": false,
362
+ "properties": {
363
+ "collapsed": {
364
+ "default": false,
365
+ "type": "boolean"
366
+ },
367
+ "id": {
368
+ "type": "string"
369
+ },
370
+ "layout": {
371
+ "properties": {
372
+ "h": {
373
+ "maximum": 9007199254740991,
374
+ "minimum": 1,
375
+ "type": "integer"
376
+ },
377
+ "w": {
378
+ "maximum": 24,
379
+ "minimum": 1,
380
+ "type": "integer"
381
+ },
382
+ "x": {
383
+ "maximum": 23,
384
+ "minimum": 0,
385
+ "type": "integer"
386
+ },
387
+ "y": {
388
+ "maximum": 9007199254740991,
389
+ "minimum": 0,
390
+ "type": "integer"
391
+ }
392
+ },
393
+ "required": [
394
+ "x",
395
+ "y",
396
+ "w",
397
+ "h"
398
+ ],
399
+ "type": "object"
400
+ },
401
+ "title": {
402
+ "properties": {
403
+ "align": {
404
+ "default": "left",
405
+ "enum": [
406
+ "left",
407
+ "center",
408
+ "right"
409
+ ],
410
+ "type": "string"
411
+ },
412
+ "size": {
413
+ "default": "md",
414
+ "enum": [
415
+ "sm",
416
+ "md",
417
+ "lg"
418
+ ],
419
+ "type": "string"
420
+ },
421
+ "text": {
422
+ "type": "string"
423
+ }
424
+ },
425
+ "required": [
426
+ "text"
427
+ ],
428
+ "type": "object"
429
+ },
430
+ "type": {
431
+ "const": "title",
432
+ "type": "string"
433
+ }
434
+ },
435
+ "required": [
436
+ "id",
437
+ "type",
438
+ "title",
439
+ "layout"
440
+ ],
441
+ "type": "object"
442
+ },
443
+ {
444
+ "additionalProperties": false,
445
+ "properties": {
446
+ "id": {
447
+ "type": "string"
448
+ },
449
+ "layout": {
450
+ "properties": {
451
+ "h": {
452
+ "maximum": 9007199254740991,
453
+ "minimum": 1,
454
+ "type": "integer"
455
+ },
456
+ "w": {
457
+ "maximum": 24,
458
+ "minimum": 1,
459
+ "type": "integer"
460
+ },
461
+ "x": {
462
+ "maximum": 23,
463
+ "minimum": 0,
464
+ "type": "integer"
465
+ },
466
+ "y": {
467
+ "maximum": 9007199254740991,
468
+ "minimum": 0,
469
+ "type": "integer"
470
+ }
471
+ },
472
+ "required": [
473
+ "x",
474
+ "y",
475
+ "w",
476
+ "h"
477
+ ],
478
+ "type": "object"
479
+ },
480
+ "query": {
481
+ "anyOf": [
482
+ {
483
+ "type": "string"
484
+ },
485
+ {
486
+ "additionalProperties": false,
487
+ "properties": {
488
+ "$ref": {
489
+ "description": "Path to a .hmln file, relative to this file",
490
+ "minLength": 1,
491
+ "type": "string"
492
+ }
493
+ },
494
+ "required": [
495
+ "$ref"
496
+ ],
497
+ "type": "object"
498
+ }
499
+ ]
500
+ },
501
+ "timeRange": {
502
+ "default": "",
503
+ "type": "string"
504
+ },
505
+ "title": {
506
+ "properties": {
507
+ "align": {
508
+ "default": "left",
509
+ "enum": [
510
+ "left",
511
+ "center",
512
+ "right"
513
+ ],
514
+ "type": "string"
515
+ },
516
+ "size": {
517
+ "default": "sm",
518
+ "enum": [
519
+ "sm",
520
+ "md",
521
+ "lg"
522
+ ],
523
+ "type": "string"
524
+ },
525
+ "text": {
526
+ "type": "string"
527
+ }
528
+ },
529
+ "required": [
530
+ "text"
531
+ ],
532
+ "type": "object"
533
+ },
534
+ "type": {
535
+ "const": "table",
536
+ "type": "string"
537
+ }
538
+ },
539
+ "required": [
540
+ "id",
541
+ "type",
542
+ "layout",
543
+ "query"
544
+ ],
545
+ "type": "object"
546
+ },
547
+ {
548
+ "additionalProperties": false,
549
+ "properties": {
550
+ "id": {
551
+ "type": "string"
552
+ },
553
+ "layout": {
554
+ "properties": {
555
+ "h": {
556
+ "maximum": 9007199254740991,
557
+ "minimum": 1,
558
+ "type": "integer"
559
+ },
560
+ "w": {
561
+ "maximum": 24,
562
+ "minimum": 1,
563
+ "type": "integer"
564
+ },
565
+ "x": {
566
+ "maximum": 23,
567
+ "minimum": 0,
568
+ "type": "integer"
569
+ },
570
+ "y": {
571
+ "maximum": 9007199254740991,
572
+ "minimum": 0,
573
+ "type": "integer"
574
+ }
575
+ },
576
+ "required": [
577
+ "x",
578
+ "y",
579
+ "w",
580
+ "h"
581
+ ],
582
+ "type": "object"
583
+ },
584
+ "queries": {
585
+ "items": {
586
+ "properties": {
587
+ "id": {
588
+ "minLength": 1,
589
+ "type": "string"
590
+ },
591
+ "name": {
592
+ "minLength": 1,
593
+ "type": "string"
594
+ },
595
+ "query": {
596
+ "anyOf": [
597
+ {
598
+ "type": "string"
599
+ },
600
+ {
601
+ "additionalProperties": false,
602
+ "properties": {
603
+ "$ref": {
604
+ "description": "Path to a .hmln file, relative to this file",
605
+ "minLength": 1,
606
+ "type": "string"
607
+ }
608
+ },
609
+ "required": [
610
+ "$ref"
611
+ ],
612
+ "type": "object"
613
+ }
614
+ ]
615
+ }
616
+ },
617
+ "required": [
618
+ "id",
619
+ "name",
620
+ "query"
621
+ ],
622
+ "type": "object"
623
+ },
624
+ "type": "array"
625
+ },
626
+ "query": {
627
+ "anyOf": [
628
+ {
629
+ "type": "string"
630
+ },
631
+ {
632
+ "additionalProperties": false,
633
+ "properties": {
634
+ "$ref": {
635
+ "description": "Path to a .hmln file, relative to this file",
636
+ "minLength": 1,
637
+ "type": "string"
638
+ }
639
+ },
640
+ "required": [
641
+ "$ref"
642
+ ],
643
+ "type": "object"
644
+ }
645
+ ]
646
+ },
647
+ "spec": {
648
+ "additionalProperties": {},
649
+ "propertyNames": {
650
+ "type": "string"
651
+ },
652
+ "type": "object"
653
+ },
654
+ "timeRange": {
655
+ "default": "",
656
+ "type": "string"
657
+ },
658
+ "title": {
659
+ "properties": {
660
+ "align": {
661
+ "default": "left",
662
+ "enum": [
663
+ "left",
664
+ "center",
665
+ "right"
666
+ ],
667
+ "type": "string"
668
+ },
669
+ "size": {
670
+ "default": "sm",
671
+ "enum": [
672
+ "sm",
673
+ "md",
674
+ "lg"
675
+ ],
676
+ "type": "string"
677
+ },
678
+ "text": {
679
+ "type": "string"
680
+ }
681
+ },
682
+ "required": [
683
+ "text"
684
+ ],
685
+ "type": "object"
686
+ },
687
+ "type": {
688
+ "const": "vega-lite",
689
+ "type": "string"
690
+ }
691
+ },
692
+ "required": [
693
+ "id",
694
+ "type",
695
+ "layout",
696
+ "query",
697
+ "spec"
698
+ ],
699
+ "type": "object"
700
+ }
701
+ ]
702
+ },
703
+ "type": "array"
704
+ },
705
+ "refreshInterval": {
706
+ "maximum": 9007199254740991,
707
+ "minimum": -9007199254740991,
708
+ "type": "integer"
709
+ },
710
+ "templateVariables": {
711
+ "default": [],
712
+ "items": {
713
+ "oneOf": [
714
+ {
715
+ "properties": {
716
+ "defaultValue": {
717
+ "maxLength": 1024,
718
+ "type": "string"
719
+ },
720
+ "description": {
721
+ "maxLength": 1024,
722
+ "type": "string"
723
+ },
724
+ "id": {
725
+ "minLength": 1,
726
+ "type": "string"
727
+ },
728
+ "kind": {
729
+ "const": "primitive",
730
+ "type": "string"
731
+ },
732
+ "name": {
733
+ "maxLength": 64,
734
+ "minLength": 1,
735
+ "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
736
+ "type": "string"
737
+ },
738
+ "type": {
739
+ "enum": [
740
+ "int",
741
+ "double",
742
+ "boolean",
743
+ "string",
744
+ "interval"
745
+ ],
746
+ "type": "string"
747
+ },
748
+ "values": {
749
+ "items": {
750
+ "maxLength": 1024,
751
+ "minLength": 1,
752
+ "type": "string"
753
+ },
754
+ "maxItems": 200,
755
+ "type": "array"
756
+ }
757
+ },
758
+ "required": [
759
+ "id",
760
+ "name",
761
+ "kind",
762
+ "type",
763
+ "values"
764
+ ],
765
+ "type": "object"
766
+ },
767
+ {
768
+ "properties": {
769
+ "defaultValue": {
770
+ "maxLength": 1024,
771
+ "pattern": "^[a-zA-Z0-9_]+$",
772
+ "type": "string"
773
+ },
774
+ "description": {
775
+ "maxLength": 1024,
776
+ "type": "string"
777
+ },
778
+ "id": {
779
+ "minLength": 1,
780
+ "type": "string"
781
+ },
782
+ "kind": {
783
+ "const": "identifier_fragment",
784
+ "type": "string"
785
+ },
786
+ "name": {
787
+ "maxLength": 64,
788
+ "minLength": 1,
789
+ "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
790
+ "type": "string"
791
+ },
792
+ "values": {
793
+ "items": {
794
+ "maxLength": 1024,
795
+ "minLength": 1,
796
+ "pattern": "^[a-zA-Z0-9_]+$",
797
+ "type": "string"
798
+ },
799
+ "maxItems": 200,
800
+ "minItems": 1,
801
+ "type": "array"
802
+ }
803
+ },
804
+ "required": [
805
+ "id",
806
+ "name",
807
+ "kind",
808
+ "values",
809
+ "defaultValue"
810
+ ],
811
+ "type": "object"
812
+ }
813
+ ]
814
+ },
815
+ "type": "array"
816
+ }
817
+ },
818
+ "required": [
819
+ "name",
820
+ "refreshInterval",
821
+ "defaultTimeRange",
822
+ "id"
823
+ ],
824
+ "title": "Dashboard (*.dashboard.yaml)",
825
+ "type": "object"
826
+ },
827
+ "pack/detection.schema.json": {
828
+ "$id": "urn:perpetual:file-format:v1:pack:detection",
829
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
830
+ "additionalProperties": false,
831
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
832
+ "properties": {
833
+ "accumulationKey": {
834
+ "anyOf": [
835
+ {
836
+ "items": {
837
+ "type": "string"
838
+ },
839
+ "type": "array"
840
+ },
841
+ {
842
+ "type": "null"
843
+ }
844
+ ],
845
+ "default": null
846
+ },
847
+ "archived": {
848
+ "default": false,
849
+ "type": "boolean"
850
+ },
851
+ "createCase": {
852
+ "default": false,
853
+ "type": "boolean"
854
+ },
855
+ "description": {
856
+ "default": null,
857
+ "type": [
858
+ "string",
859
+ "null"
860
+ ]
861
+ },
862
+ "folder": {
863
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
864
+ "format": "uuid",
865
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
866
+ "type": "string"
867
+ },
868
+ "id": {
869
+ "format": "uuid",
870
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
871
+ "type": "string"
872
+ },
873
+ "level": {
874
+ "enum": [
875
+ "INFORMATIONAL",
876
+ "LOW",
877
+ "MEDIUM",
878
+ "HIGH",
879
+ "CRITICAL"
880
+ ],
881
+ "type": "string"
882
+ },
883
+ "maturity": {
884
+ "enum": [
885
+ "EXPERIMENTAL",
886
+ "TEST",
887
+ "STABLE",
888
+ "DEPRECATED"
889
+ ],
890
+ "type": "string"
891
+ },
892
+ "maximumLatency": {
893
+ "enum": [
894
+ "MAX_1H",
895
+ "MAX_1D",
896
+ "MAX_15M"
897
+ ],
898
+ "type": "string"
899
+ },
900
+ "minimumPriority": {
901
+ "anyOf": [
902
+ {
903
+ "maximum": 10,
904
+ "minimum": 1,
905
+ "type": "integer"
906
+ },
907
+ {
908
+ "type": "null"
909
+ }
910
+ ],
911
+ "default": null
912
+ },
913
+ "name": {
914
+ "type": "string"
915
+ },
916
+ "playbook": {
917
+ "default": null,
918
+ "type": [
919
+ "string",
920
+ "null"
921
+ ]
922
+ },
923
+ "retentionDays": {
924
+ "anyOf": [
925
+ {
926
+ "exclusiveMinimum": 0,
927
+ "maximum": 9007199254740991,
928
+ "type": "integer"
929
+ },
930
+ {
931
+ "type": "null"
932
+ }
933
+ ],
934
+ "default": null
935
+ },
936
+ "type": {
937
+ "enum": [
938
+ "QUERY",
939
+ "SCENARIO"
940
+ ],
941
+ "type": "string"
942
+ }
943
+ },
944
+ "required": [
945
+ "name",
946
+ "level",
947
+ "type",
948
+ "maximumLatency",
949
+ "maturity",
950
+ "id"
951
+ ],
952
+ "title": "Detection (*.detection.yaml)",
953
+ "type": "object"
954
+ },
955
+ "pack/folder.schema.json": {
956
+ "$id": "urn:perpetual:file-format:v1:pack:folder",
957
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
958
+ "additionalProperties": false,
959
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
960
+ "properties": {
961
+ "id": {
962
+ "format": "uuid",
963
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
964
+ "type": "string"
965
+ },
966
+ "name": {
967
+ "description": "The folder name",
968
+ "type": "string"
969
+ },
970
+ "parent": {
971
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
972
+ "format": "uuid",
973
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
974
+ "type": "string"
975
+ }
976
+ },
977
+ "required": [
978
+ "name",
979
+ "id"
980
+ ],
981
+ "title": "Folder (*.folder.yaml)",
982
+ "type": "object"
983
+ },
984
+ "pack/http-tool.schema.json": {
985
+ "$id": "urn:perpetual:file-format:v1:pack:http-tool",
986
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
987
+ "additionalProperties": false,
988
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
989
+ "properties": {
990
+ "body": {
991
+ "anyOf": [
992
+ {
993
+ "maxLength": 1000000,
994
+ "type": "string"
995
+ },
996
+ {
997
+ "type": "null"
998
+ }
999
+ ],
1000
+ "default": null,
1001
+ "description": "Optional body template with Liquid syntax support"
1002
+ },
1003
+ "description": {
1004
+ "type": "string"
1005
+ },
1006
+ "folder": {
1007
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1008
+ "format": "uuid",
1009
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1010
+ "type": "string"
1011
+ },
1012
+ "headers": {
1013
+ "additionalProperties": {
1014
+ "type": "string"
1015
+ },
1016
+ "default": {},
1017
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
1018
+ "propertyNames": {
1019
+ "type": "string"
1020
+ },
1021
+ "type": "object"
1022
+ },
1023
+ "id": {
1024
+ "format": "uuid",
1025
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1026
+ "type": "string"
1027
+ },
1028
+ "inputSchema": {
1029
+ "additionalProperties": {},
1030
+ "propertyNames": {
1031
+ "type": "string"
1032
+ },
1033
+ "type": "object"
1034
+ },
1035
+ "method": {
1036
+ "enum": [
1037
+ "GET",
1038
+ "POST",
1039
+ "PUT",
1040
+ "PATCH",
1041
+ "DELETE"
1042
+ ],
1043
+ "type": "string"
1044
+ },
1045
+ "name": {
1046
+ "type": "string"
1047
+ },
1048
+ "readOnlyHint": {
1049
+ "default": true,
1050
+ "type": "boolean"
1051
+ },
1052
+ "requiresApproval": {
1053
+ "default": false,
1054
+ "type": "boolean"
1055
+ },
1056
+ "url": {
1057
+ "type": "string"
1058
+ }
1059
+ },
1060
+ "required": [
1061
+ "name",
1062
+ "description",
1063
+ "inputSchema",
1064
+ "url",
1065
+ "method",
1066
+ "id"
1067
+ ],
1068
+ "title": "HttpToolConfig (*.http-tool.yaml)",
1069
+ "type": "object"
1070
+ },
1071
+ "pack/integration.schema.json": {
1072
+ "$id": "urn:perpetual:file-format:v1:pack:integration",
1073
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1074
+ "additionalProperties": false,
1075
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1076
+ "properties": {
1077
+ "defaultConnectorKind": {
1078
+ "anyOf": [
1079
+ {
1080
+ "minLength": 1,
1081
+ "type": "string"
1082
+ },
1083
+ {
1084
+ "type": "null"
1085
+ }
1086
+ ],
1087
+ "default": null,
1088
+ "description": "Connector kind preselected when pack install creates a connector. A registry kind id such as crowdstrike, or a built-in kind such as aws-s3."
1089
+ },
1090
+ "folder": {
1091
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1092
+ "format": "uuid",
1093
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1094
+ "type": "string"
1095
+ },
1096
+ "id": {
1097
+ "format": "uuid",
1098
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1099
+ "type": "string"
1100
+ },
1101
+ "name": {
1102
+ "type": "string"
1103
+ },
1104
+ "retentionDays": {
1105
+ "anyOf": [
1106
+ {
1107
+ "exclusiveMinimum": 0,
1108
+ "maximum": 9007199254740991,
1109
+ "type": "integer"
1110
+ },
1111
+ {
1112
+ "type": "null"
1113
+ }
1114
+ ],
1115
+ "default": null
1116
+ },
1117
+ "viewName": {
1118
+ "default": null,
1119
+ "type": [
1120
+ "string",
1121
+ "null"
1122
+ ]
1123
+ }
1124
+ },
1125
+ "required": [
1126
+ "name",
1127
+ "id"
1128
+ ],
1129
+ "title": "Integration (*.integration.yaml)",
1130
+ "type": "object"
1131
+ },
1132
+ "pack/lookup.schema.json": {
1133
+ "$id": "urn:perpetual:file-format:v1:pack:lookup",
1134
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1135
+ "additionalProperties": false,
1136
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1137
+ "properties": {
1138
+ "archived": {
1139
+ "default": false,
1140
+ "type": "boolean"
1141
+ },
1142
+ "folder": {
1143
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1144
+ "format": "uuid",
1145
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1146
+ "type": "string"
1147
+ },
1148
+ "id": {
1149
+ "format": "uuid",
1150
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1151
+ "type": "string"
1152
+ },
1153
+ "keyColumns": {
1154
+ "items": {
1155
+ "minLength": 1,
1156
+ "type": "string"
1157
+ },
1158
+ "type": "array"
1159
+ },
1160
+ "name": {
1161
+ "description": "The lookup's freeform display name. The backing dataset's schema.name is derived from this server-side.",
1162
+ "type": "string"
1163
+ },
1164
+ "sourceFormat": {
1165
+ "enum": [
1166
+ "parsed_lines",
1167
+ "csv"
1168
+ ],
1169
+ "type": "string"
1170
+ }
1171
+ },
1172
+ "required": [
1173
+ "name",
1174
+ "sourceFormat",
1175
+ "keyColumns",
1176
+ "id"
1177
+ ],
1178
+ "title": "Lookup (*.lookup.yaml)",
1179
+ "type": "object"
1180
+ },
1181
+ "pack/mapper.schema.json": {
1182
+ "$id": "urn:perpetual:file-format:v1:pack:mapper",
1183
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1184
+ "additionalProperties": false,
1185
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1186
+ "properties": {
1187
+ "id": {
1188
+ "format": "uuid",
1189
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1190
+ "type": "string"
1191
+ },
1192
+ "integration": {
1193
+ "description": "id of an Integration file in the same directory",
1194
+ "format": "uuid",
1195
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1196
+ "type": "string"
1197
+ },
1198
+ "name": {
1199
+ "minLength": 1,
1200
+ "type": "string"
1201
+ },
1202
+ "parsers": {
1203
+ "description": "ids of Parser files under the same integration",
1204
+ "items": {
1205
+ "format": "uuid",
1206
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1207
+ "type": "string"
1208
+ },
1209
+ "minItems": 1,
1210
+ "type": "array"
1211
+ }
1212
+ },
1213
+ "required": [
1214
+ "id",
1215
+ "name",
1216
+ "integration",
1217
+ "parsers"
1218
+ ],
1219
+ "title": "Mapper (*.mapper.yaml)",
1220
+ "type": "object"
1221
+ },
1222
+ "pack/mcp.schema.json": {
1223
+ "$id": "urn:perpetual:file-format:v1:pack:mcp",
1224
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1225
+ "additionalProperties": false,
1226
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1227
+ "properties": {
1228
+ "discoveredTools": {
1229
+ "default": [],
1230
+ "items": {
1231
+ "properties": {
1232
+ "description": {
1233
+ "type": "string"
1234
+ },
1235
+ "destructiveHint": {
1236
+ "type": "boolean"
1237
+ },
1238
+ "enabled": {
1239
+ "default": true,
1240
+ "type": "boolean"
1241
+ },
1242
+ "inputSchema": {
1243
+ "additionalProperties": {},
1244
+ "propertyNames": {
1245
+ "type": "string"
1246
+ },
1247
+ "type": "object"
1248
+ },
1249
+ "name": {
1250
+ "type": "string"
1251
+ },
1252
+ "readOnlyHint": {
1253
+ "type": "boolean"
1254
+ },
1255
+ "requiresApprovalOverride": {
1256
+ "type": "boolean"
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "name"
1261
+ ],
1262
+ "type": "object"
1263
+ },
1264
+ "type": "array"
1265
+ },
1266
+ "folder": {
1267
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1268
+ "format": "uuid",
1269
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1270
+ "type": "string"
1271
+ },
1272
+ "headers": {
1273
+ "additionalProperties": {
1274
+ "type": "string"
1275
+ },
1276
+ "default": {},
1277
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
1278
+ "propertyNames": {
1279
+ "type": "string"
1280
+ },
1281
+ "type": "object"
1282
+ },
1283
+ "id": {
1284
+ "format": "uuid",
1285
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1286
+ "type": "string"
1287
+ },
1288
+ "lastDiscoveredAt": {
1289
+ "anyOf": [
1290
+ {
1291
+ "format": "date-time",
1292
+ "type": "string"
1293
+ },
1294
+ {
1295
+ "type": "null"
1296
+ }
1297
+ ],
1298
+ "default": null
1299
+ },
1300
+ "name": {
1301
+ "type": "string"
1302
+ },
1303
+ "url": {
1304
+ "type": "string"
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "name",
1309
+ "url",
1310
+ "id"
1311
+ ],
1312
+ "title": "McpConfig (*.mcp.yaml)",
1313
+ "type": "object"
1314
+ },
1315
+ "pack/pack.schema.json": {
1316
+ "$id": "urn:perpetual:file-format:v1:pack:pack",
1317
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1318
+ "additionalProperties": false,
1319
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1320
+ "properties": {
1321
+ "description": {
1322
+ "type": "string"
1323
+ },
1324
+ "id": {
1325
+ "format": "uuid",
1326
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1327
+ "type": "string"
1328
+ },
1329
+ "image": {
1330
+ "description": "Logo basename next to pack.yaml. No path separators, so it cannot escape the pack directory.",
1331
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*\\.(png|svg|webp)$",
1332
+ "type": "string"
1333
+ },
1334
+ "minHamelinVersion": {
1335
+ "description": "Lowest Hamelin version an org must be on to install or update to this pack's current content. Omit when the pack needs nothing beyond the platform minimum. Not a monotonic counter like `version` — it simply reflects what the current content requires.",
1336
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
1337
+ "type": "string"
1338
+ },
1339
+ "name": {
1340
+ "minLength": 1,
1341
+ "type": "string"
1342
+ },
1343
+ "stable": {
1344
+ "const": true,
1345
+ "description": "Once set, the pack must evolve compatibly. Omit while the pack is in preview.",
1346
+ "type": "boolean"
1347
+ },
1348
+ "version": {
1349
+ "exclusiveMinimum": 0,
1350
+ "maximum": 9007199254740991,
1351
+ "type": "integer"
1352
+ }
1353
+ },
1354
+ "required": [
1355
+ "id",
1356
+ "name",
1357
+ "description",
1358
+ "version"
1359
+ ],
1360
+ "title": "Pack manifest (pack.yaml)",
1361
+ "type": "object"
1362
+ },
1363
+ "pack/parser.schema.json": {
1364
+ "$id": "urn:perpetual:file-format:v1:pack:parser",
1365
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1366
+ "additionalProperties": false,
1367
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1368
+ "properties": {
1369
+ "id": {
1370
+ "format": "uuid",
1371
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1372
+ "type": "string"
1373
+ },
1374
+ "integration": {
1375
+ "description": "id of an Integration file in the same directory",
1376
+ "format": "uuid",
1377
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1378
+ "type": "string"
1379
+ },
1380
+ "name": {
1381
+ "minLength": 1,
1382
+ "type": "string"
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "id",
1387
+ "name",
1388
+ "integration"
1389
+ ],
1390
+ "title": "Parser (*.parser.yaml)",
1391
+ "type": "object"
1392
+ },
1393
+ "pack/skill.schema.json": {
1394
+ "$id": "urn:perpetual:file-format:v1:pack:skill",
1395
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1396
+ "additionalProperties": false,
1397
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1398
+ "properties": {
1399
+ "argumentHint": {
1400
+ "default": null,
1401
+ "type": [
1402
+ "string",
1403
+ "null"
1404
+ ]
1405
+ },
1406
+ "description": {
1407
+ "type": "string"
1408
+ },
1409
+ "disableModelInvocation": {
1410
+ "default": false,
1411
+ "type": "boolean"
1412
+ },
1413
+ "folder": {
1414
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1415
+ "format": "uuid",
1416
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1417
+ "type": "string"
1418
+ },
1419
+ "id": {
1420
+ "format": "uuid",
1421
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1422
+ "type": "string"
1423
+ },
1424
+ "instructions": {
1425
+ "type": "string"
1426
+ },
1427
+ "name": {
1428
+ "type": "string"
1429
+ },
1430
+ "userInvocable": {
1431
+ "default": true,
1432
+ "type": "boolean"
1433
+ }
1434
+ },
1435
+ "required": [
1436
+ "name",
1437
+ "description",
1438
+ "instructions",
1439
+ "id"
1440
+ ],
1441
+ "title": "Skill (*.skill.yaml)",
1442
+ "type": "object"
1443
+ },
1444
+ "pack/webhook.schema.json": {
1445
+ "$id": "urn:perpetual:file-format:v1:pack:webhook",
1446
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1447
+ "additionalProperties": false,
1448
+ "description": "File in a Perpetual pack directory: an org-scoped template with no spaceId.",
1449
+ "properties": {
1450
+ "body": {
1451
+ "anyOf": [
1452
+ {
1453
+ "maxLength": 1000000,
1454
+ "type": "string"
1455
+ },
1456
+ {
1457
+ "type": "null"
1458
+ }
1459
+ ],
1460
+ "default": null,
1461
+ "description": "Optional body template with Liquid syntax support"
1462
+ },
1463
+ "eventName": {
1464
+ "description": "The event that triggers this webhook",
1465
+ "enum": [
1466
+ "CaseCreated",
1467
+ "CaseClosed",
1468
+ "CaseStatusChanged",
1469
+ "CaseInitialAnalysisCompleted",
1470
+ "ContentWorkItemCreated",
1471
+ "ThreatReportCreated",
1472
+ "CircuitBreakerTripped",
1473
+ "SimbaUsageAlert",
1474
+ "TriagePromotionThresholdChanged",
1475
+ "AlertQueued",
1476
+ "AlertInitialScoreCompleted",
1477
+ "AlertPromoted",
1478
+ "AlertExpired",
1479
+ "AlertTriageFailure",
1480
+ "CaseNewAlertEvidenceAttached"
1481
+ ],
1482
+ "type": "string"
1483
+ },
1484
+ "folder": {
1485
+ "description": "id of a Folder file in the same pack. Omit to place the item at the pack root.",
1486
+ "format": "uuid",
1487
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1488
+ "type": "string"
1489
+ },
1490
+ "headers": {
1491
+ "additionalProperties": {
1492
+ "type": "string"
1493
+ },
1494
+ "default": {},
1495
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
1496
+ "propertyNames": {
1497
+ "type": "string"
1498
+ },
1499
+ "type": "object"
1500
+ },
1501
+ "id": {
1502
+ "format": "uuid",
1503
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
1504
+ "type": "string"
1505
+ },
1506
+ "method": {
1507
+ "enum": [
1508
+ "GET",
1509
+ "POST",
1510
+ "PUT",
1511
+ "PATCH",
1512
+ "DELETE"
1513
+ ],
1514
+ "type": "string"
1515
+ },
1516
+ "name": {
1517
+ "type": "string"
1518
+ },
1519
+ "triggerExpression": {
1520
+ "anyOf": [
1521
+ {
1522
+ "maxLength": 1000000,
1523
+ "type": "string"
1524
+ },
1525
+ {
1526
+ "type": "null"
1527
+ }
1528
+ ],
1529
+ "default": null,
1530
+ "description": "Optional Liquid template gating dispatch; fires only when the rendered, trimmed output is \"true\""
1531
+ },
1532
+ "url": {
1533
+ "type": "string"
1534
+ }
1535
+ },
1536
+ "required": [
1537
+ "name",
1538
+ "eventName",
1539
+ "url",
1540
+ "method",
1541
+ "id"
1542
+ ],
1543
+ "title": "WebhookConfig (*.webhook.yaml)",
1544
+ "type": "object"
1545
+ },
1546
+ "space/connector.schema.json": {
1547
+ "$id": "urn:perpetual:file-format:v1:space:connector",
1548
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1549
+ "additionalProperties": false,
1550
+ "description": "GitOps file for a single space.",
1551
+ "properties": {
1552
+ "config": {
1553
+ "oneOf": [
1554
+ {
1555
+ "properties": {
1556
+ "bucket": {
1557
+ "maxLength": 63,
1558
+ "pattern": "^(?!xn--|sthree-|amzn-s3-demo-)(?!.*(?:-s3alias|--x-s3|--ol-s3|--table-s3)$)[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$",
1559
+ "type": "string"
1560
+ },
1561
+ "initialLookbackDays": {
1562
+ "default": 14,
1563
+ "exclusiveMinimum": 0,
1564
+ "maximum": 9007199254740991,
1565
+ "type": "integer"
1566
+ },
1567
+ "manageBucketNotifications": {
1568
+ "default": true,
1569
+ "description": "Whether the data plane configures S3 event notifications on the bucket. Defaults to true when absent. When false the data plane ingests via periodic scans only.",
1570
+ "type": "boolean"
1571
+ },
1572
+ "objectStore": {
1573
+ "properties": {
1574
+ "auth": {
1575
+ "properties": {
1576
+ "roleArn": {
1577
+ "default": "",
1578
+ "pattern": "^$|^(?:\\w+:){3}([^:]*):(\\d{12}):role\\/(.*)$",
1579
+ "type": "string"
1580
+ }
1581
+ },
1582
+ "type": "object"
1583
+ }
1584
+ },
1585
+ "required": [
1586
+ "auth"
1587
+ ],
1588
+ "type": "object"
1589
+ },
1590
+ "prefix": {
1591
+ "type": "string"
1592
+ },
1593
+ "region": {
1594
+ "default": "not-used",
1595
+ "type": "string"
1596
+ },
1597
+ "scanIntervalMinutes": {
1598
+ "default": 1440,
1599
+ "description": "How often the data plane rescans the bucket, in minutes. Defaults to 1440 (daily) when absent. The scan is a safety net for objects that arrive without an event notification.",
1600
+ "maximum": 9007199254740991,
1601
+ "minimum": 5,
1602
+ "type": "integer"
1603
+ },
1604
+ "type": {
1605
+ "const": "ObjectStorageConnector",
1606
+ "type": "string"
1607
+ }
1608
+ },
1609
+ "required": [
1610
+ "type",
1611
+ "bucket",
1612
+ "prefix",
1613
+ "objectStore"
1614
+ ],
1615
+ "type": "object"
1616
+ },
1617
+ {
1618
+ "properties": {
1619
+ "connectorKind": {
1620
+ "description": "Catalog connector kind (e.g. \"google-workspace\", \"gcp-pubsub\") or \"custom\" for a customer ECR image",
1621
+ "minLength": 1,
1622
+ "type": "string"
1623
+ },
1624
+ "credentialIds": {
1625
+ "additionalProperties": {
1626
+ "pattern": "^CRD_[A-Z0-9]{1,7}$",
1627
+ "type": "string"
1628
+ },
1629
+ "default": {},
1630
+ "propertyNames": {
1631
+ "minLength": 1,
1632
+ "type": "string"
1633
+ },
1634
+ "type": "object"
1635
+ },
1636
+ "ecrImageUrl": {
1637
+ "description": "ECR image URL for a custom connector Lambda container",
1638
+ "minLength": 1,
1639
+ "pattern": "^[0-9]+\\.dkr\\.ecr\\.[a-z0-9-]+\\.amazonaws\\.com\\/.+$",
1640
+ "type": "string"
1641
+ },
1642
+ "initialLookbackDays": {
1643
+ "exclusiveMinimum": 0,
1644
+ "maximum": 9007199254740991,
1645
+ "type": "integer"
1646
+ },
1647
+ "intervalMinutes": {
1648
+ "maximum": 9007199254740991,
1649
+ "minimum": 1,
1650
+ "type": "integer"
1651
+ },
1652
+ "settings": {
1653
+ "additionalProperties": {},
1654
+ "propertyNames": {
1655
+ "type": "string"
1656
+ },
1657
+ "type": "object"
1658
+ },
1659
+ "type": {
1660
+ "const": "ApiPollingConnector",
1661
+ "type": "string"
1662
+ }
1663
+ },
1664
+ "required": [
1665
+ "type",
1666
+ "connectorKind",
1667
+ "intervalMinutes",
1668
+ "settings"
1669
+ ],
1670
+ "type": "object"
1671
+ },
1672
+ {
1673
+ "properties": {
1674
+ "connectorKind": {
1675
+ "description": "Catalog connector kind (e.g. \"google-workspace\", \"gcp-pubsub\") or \"custom\" for a customer ECR image",
1676
+ "minLength": 1,
1677
+ "type": "string"
1678
+ },
1679
+ "credentialIds": {
1680
+ "additionalProperties": {
1681
+ "pattern": "^CRD_[A-Z0-9]{1,7}$",
1682
+ "type": "string"
1683
+ },
1684
+ "default": {},
1685
+ "propertyNames": {
1686
+ "minLength": 1,
1687
+ "type": "string"
1688
+ },
1689
+ "type": "object"
1690
+ },
1691
+ "ecrImageUrl": {
1692
+ "description": "ECR image URL for a custom connector Lambda container",
1693
+ "minLength": 1,
1694
+ "pattern": "^[0-9]+\\.dkr\\.ecr\\.[a-z0-9-]+\\.amazonaws\\.com\\/.+$",
1695
+ "type": "string"
1696
+ },
1697
+ "settings": {
1698
+ "additionalProperties": {},
1699
+ "propertyNames": {
1700
+ "type": "string"
1701
+ },
1702
+ "type": "object"
1703
+ },
1704
+ "type": {
1705
+ "const": "StreamingConnector",
1706
+ "type": "string"
1707
+ }
1708
+ },
1709
+ "required": [
1710
+ "type",
1711
+ "connectorKind",
1712
+ "settings"
1713
+ ],
1714
+ "type": "object"
1715
+ },
1716
+ {
1717
+ "properties": {
1718
+ "authMode": {
1719
+ "enum": [
1720
+ "bearer",
1721
+ "presigned",
1722
+ "hmac"
1723
+ ],
1724
+ "type": "string"
1725
+ },
1726
+ "credentialId": {
1727
+ "pattern": "^CRD_[A-Z0-9]{1,7}$",
1728
+ "type": "string"
1729
+ },
1730
+ "type": {
1731
+ "const": "HttpSourceConnector",
1732
+ "type": "string"
1733
+ }
1734
+ },
1735
+ "required": [
1736
+ "type",
1737
+ "authMode"
1738
+ ],
1739
+ "type": "object"
1740
+ }
1741
+ ]
1742
+ },
1743
+ "datasetKind": {
1744
+ "default": "event",
1745
+ "enum": [
1746
+ "event",
1747
+ "state"
1748
+ ],
1749
+ "type": "string"
1750
+ },
1751
+ "deploy": {
1752
+ "type": "boolean"
1753
+ },
1754
+ "id": {
1755
+ "description": "Server-assigned id. Absent until the resource exists.",
1756
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
1757
+ "type": "string"
1758
+ },
1759
+ "name": {
1760
+ "pattern": "^connectors?\\.([a-zA-Z_][a-zA-Z0-9_]{0,255})(\\.([a-zA-Z_][a-zA-Z0-9_]{0,255}))?$",
1761
+ "type": "string"
1762
+ },
1763
+ "originKey": {
1764
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
1765
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
1766
+ "type": "string"
1767
+ },
1768
+ "spaceId": {
1769
+ "description": "Space the resource belongs to",
1770
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
1771
+ "type": "string"
1772
+ },
1773
+ "type": {
1774
+ "enum": [
1775
+ "ObjectStorageConnector",
1776
+ "ApiPollingConnector",
1777
+ "StreamingConnector",
1778
+ "HttpSourceConnector"
1779
+ ],
1780
+ "type": "string"
1781
+ }
1782
+ },
1783
+ "required": [
1784
+ "deploy",
1785
+ "type",
1786
+ "name",
1787
+ "config",
1788
+ "originKey",
1789
+ "spaceId"
1790
+ ],
1791
+ "title": "Connector (*.connector.yaml)",
1792
+ "type": "object"
1793
+ },
1794
+ "space/dashboard.schema.json": {
1795
+ "$id": "urn:perpetual:file-format:v1:space:dashboard",
1796
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1797
+ "additionalProperties": false,
1798
+ "description": "GitOps file for a single space.",
1799
+ "properties": {
1800
+ "defaultTimeRange": {
1801
+ "type": "string"
1802
+ },
1803
+ "folder": {
1804
+ "anyOf": [
1805
+ {
1806
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
1807
+ "type": "string"
1808
+ },
1809
+ {
1810
+ "description": "Server-assigned Folder id",
1811
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
1812
+ "type": "string"
1813
+ }
1814
+ ],
1815
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
1816
+ },
1817
+ "id": {
1818
+ "description": "Server-assigned id. Absent until the resource exists.",
1819
+ "pattern": "^DSH_[A-Z0-9]{1,7}$",
1820
+ "type": "string"
1821
+ },
1822
+ "name": {
1823
+ "type": "string"
1824
+ },
1825
+ "originKey": {
1826
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
1827
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
1828
+ "type": "string"
1829
+ },
1830
+ "panels": {
1831
+ "default": [],
1832
+ "items": {
1833
+ "oneOf": [
1834
+ {
1835
+ "additionalProperties": false,
1836
+ "properties": {
1837
+ "content": {
1838
+ "default": "",
1839
+ "type": "string"
1840
+ },
1841
+ "id": {
1842
+ "type": "string"
1843
+ },
1844
+ "layout": {
1845
+ "properties": {
1846
+ "h": {
1847
+ "maximum": 9007199254740991,
1848
+ "minimum": 1,
1849
+ "type": "integer"
1850
+ },
1851
+ "w": {
1852
+ "maximum": 24,
1853
+ "minimum": 1,
1854
+ "type": "integer"
1855
+ },
1856
+ "x": {
1857
+ "maximum": 23,
1858
+ "minimum": 0,
1859
+ "type": "integer"
1860
+ },
1861
+ "y": {
1862
+ "maximum": 9007199254740991,
1863
+ "minimum": 0,
1864
+ "type": "integer"
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "x",
1869
+ "y",
1870
+ "w",
1871
+ "h"
1872
+ ],
1873
+ "type": "object"
1874
+ },
1875
+ "title": {
1876
+ "properties": {
1877
+ "align": {
1878
+ "default": "left",
1879
+ "enum": [
1880
+ "left",
1881
+ "center",
1882
+ "right"
1883
+ ],
1884
+ "type": "string"
1885
+ },
1886
+ "size": {
1887
+ "default": "sm",
1888
+ "enum": [
1889
+ "sm",
1890
+ "md",
1891
+ "lg"
1892
+ ],
1893
+ "type": "string"
1894
+ },
1895
+ "text": {
1896
+ "type": "string"
1897
+ }
1898
+ },
1899
+ "required": [
1900
+ "text"
1901
+ ],
1902
+ "type": "object"
1903
+ },
1904
+ "type": {
1905
+ "const": "markdown",
1906
+ "type": "string"
1907
+ }
1908
+ },
1909
+ "required": [
1910
+ "id",
1911
+ "type",
1912
+ "layout"
1913
+ ],
1914
+ "type": "object"
1915
+ },
1916
+ {
1917
+ "additionalProperties": false,
1918
+ "properties": {
1919
+ "collapsed": {
1920
+ "default": false,
1921
+ "type": "boolean"
1922
+ },
1923
+ "id": {
1924
+ "type": "string"
1925
+ },
1926
+ "layout": {
1927
+ "properties": {
1928
+ "h": {
1929
+ "maximum": 9007199254740991,
1930
+ "minimum": 1,
1931
+ "type": "integer"
1932
+ },
1933
+ "w": {
1934
+ "maximum": 24,
1935
+ "minimum": 1,
1936
+ "type": "integer"
1937
+ },
1938
+ "x": {
1939
+ "maximum": 23,
1940
+ "minimum": 0,
1941
+ "type": "integer"
1942
+ },
1943
+ "y": {
1944
+ "maximum": 9007199254740991,
1945
+ "minimum": 0,
1946
+ "type": "integer"
1947
+ }
1948
+ },
1949
+ "required": [
1950
+ "x",
1951
+ "y",
1952
+ "w",
1953
+ "h"
1954
+ ],
1955
+ "type": "object"
1956
+ },
1957
+ "title": {
1958
+ "properties": {
1959
+ "align": {
1960
+ "default": "left",
1961
+ "enum": [
1962
+ "left",
1963
+ "center",
1964
+ "right"
1965
+ ],
1966
+ "type": "string"
1967
+ },
1968
+ "size": {
1969
+ "default": "md",
1970
+ "enum": [
1971
+ "sm",
1972
+ "md",
1973
+ "lg"
1974
+ ],
1975
+ "type": "string"
1976
+ },
1977
+ "text": {
1978
+ "type": "string"
1979
+ }
1980
+ },
1981
+ "required": [
1982
+ "text"
1983
+ ],
1984
+ "type": "object"
1985
+ },
1986
+ "type": {
1987
+ "const": "title",
1988
+ "type": "string"
1989
+ }
1990
+ },
1991
+ "required": [
1992
+ "id",
1993
+ "type",
1994
+ "title",
1995
+ "layout"
1996
+ ],
1997
+ "type": "object"
1998
+ },
1999
+ {
2000
+ "additionalProperties": false,
2001
+ "properties": {
2002
+ "id": {
2003
+ "type": "string"
2004
+ },
2005
+ "layout": {
2006
+ "properties": {
2007
+ "h": {
2008
+ "maximum": 9007199254740991,
2009
+ "minimum": 1,
2010
+ "type": "integer"
2011
+ },
2012
+ "w": {
2013
+ "maximum": 24,
2014
+ "minimum": 1,
2015
+ "type": "integer"
2016
+ },
2017
+ "x": {
2018
+ "maximum": 23,
2019
+ "minimum": 0,
2020
+ "type": "integer"
2021
+ },
2022
+ "y": {
2023
+ "maximum": 9007199254740991,
2024
+ "minimum": 0,
2025
+ "type": "integer"
2026
+ }
2027
+ },
2028
+ "required": [
2029
+ "x",
2030
+ "y",
2031
+ "w",
2032
+ "h"
2033
+ ],
2034
+ "type": "object"
2035
+ },
2036
+ "query": {
2037
+ "anyOf": [
2038
+ {
2039
+ "type": "string"
2040
+ },
2041
+ {
2042
+ "additionalProperties": false,
2043
+ "properties": {
2044
+ "$ref": {
2045
+ "description": "Path to a .hmln file, relative to this file",
2046
+ "minLength": 1,
2047
+ "type": "string"
2048
+ }
2049
+ },
2050
+ "required": [
2051
+ "$ref"
2052
+ ],
2053
+ "type": "object"
2054
+ }
2055
+ ]
2056
+ },
2057
+ "timeRange": {
2058
+ "default": "",
2059
+ "type": "string"
2060
+ },
2061
+ "title": {
2062
+ "properties": {
2063
+ "align": {
2064
+ "default": "left",
2065
+ "enum": [
2066
+ "left",
2067
+ "center",
2068
+ "right"
2069
+ ],
2070
+ "type": "string"
2071
+ },
2072
+ "size": {
2073
+ "default": "sm",
2074
+ "enum": [
2075
+ "sm",
2076
+ "md",
2077
+ "lg"
2078
+ ],
2079
+ "type": "string"
2080
+ },
2081
+ "text": {
2082
+ "type": "string"
2083
+ }
2084
+ },
2085
+ "required": [
2086
+ "text"
2087
+ ],
2088
+ "type": "object"
2089
+ },
2090
+ "type": {
2091
+ "const": "table",
2092
+ "type": "string"
2093
+ }
2094
+ },
2095
+ "required": [
2096
+ "id",
2097
+ "type",
2098
+ "layout",
2099
+ "query"
2100
+ ],
2101
+ "type": "object"
2102
+ },
2103
+ {
2104
+ "additionalProperties": false,
2105
+ "properties": {
2106
+ "id": {
2107
+ "type": "string"
2108
+ },
2109
+ "layout": {
2110
+ "properties": {
2111
+ "h": {
2112
+ "maximum": 9007199254740991,
2113
+ "minimum": 1,
2114
+ "type": "integer"
2115
+ },
2116
+ "w": {
2117
+ "maximum": 24,
2118
+ "minimum": 1,
2119
+ "type": "integer"
2120
+ },
2121
+ "x": {
2122
+ "maximum": 23,
2123
+ "minimum": 0,
2124
+ "type": "integer"
2125
+ },
2126
+ "y": {
2127
+ "maximum": 9007199254740991,
2128
+ "minimum": 0,
2129
+ "type": "integer"
2130
+ }
2131
+ },
2132
+ "required": [
2133
+ "x",
2134
+ "y",
2135
+ "w",
2136
+ "h"
2137
+ ],
2138
+ "type": "object"
2139
+ },
2140
+ "queries": {
2141
+ "items": {
2142
+ "properties": {
2143
+ "id": {
2144
+ "minLength": 1,
2145
+ "type": "string"
2146
+ },
2147
+ "name": {
2148
+ "minLength": 1,
2149
+ "type": "string"
2150
+ },
2151
+ "query": {
2152
+ "anyOf": [
2153
+ {
2154
+ "type": "string"
2155
+ },
2156
+ {
2157
+ "additionalProperties": false,
2158
+ "properties": {
2159
+ "$ref": {
2160
+ "description": "Path to a .hmln file, relative to this file",
2161
+ "minLength": 1,
2162
+ "type": "string"
2163
+ }
2164
+ },
2165
+ "required": [
2166
+ "$ref"
2167
+ ],
2168
+ "type": "object"
2169
+ }
2170
+ ]
2171
+ }
2172
+ },
2173
+ "required": [
2174
+ "id",
2175
+ "name",
2176
+ "query"
2177
+ ],
2178
+ "type": "object"
2179
+ },
2180
+ "type": "array"
2181
+ },
2182
+ "query": {
2183
+ "anyOf": [
2184
+ {
2185
+ "type": "string"
2186
+ },
2187
+ {
2188
+ "additionalProperties": false,
2189
+ "properties": {
2190
+ "$ref": {
2191
+ "description": "Path to a .hmln file, relative to this file",
2192
+ "minLength": 1,
2193
+ "type": "string"
2194
+ }
2195
+ },
2196
+ "required": [
2197
+ "$ref"
2198
+ ],
2199
+ "type": "object"
2200
+ }
2201
+ ]
2202
+ },
2203
+ "spec": {
2204
+ "additionalProperties": {},
2205
+ "propertyNames": {
2206
+ "type": "string"
2207
+ },
2208
+ "type": "object"
2209
+ },
2210
+ "timeRange": {
2211
+ "default": "",
2212
+ "type": "string"
2213
+ },
2214
+ "title": {
2215
+ "properties": {
2216
+ "align": {
2217
+ "default": "left",
2218
+ "enum": [
2219
+ "left",
2220
+ "center",
2221
+ "right"
2222
+ ],
2223
+ "type": "string"
2224
+ },
2225
+ "size": {
2226
+ "default": "sm",
2227
+ "enum": [
2228
+ "sm",
2229
+ "md",
2230
+ "lg"
2231
+ ],
2232
+ "type": "string"
2233
+ },
2234
+ "text": {
2235
+ "type": "string"
2236
+ }
2237
+ },
2238
+ "required": [
2239
+ "text"
2240
+ ],
2241
+ "type": "object"
2242
+ },
2243
+ "type": {
2244
+ "const": "vega-lite",
2245
+ "type": "string"
2246
+ }
2247
+ },
2248
+ "required": [
2249
+ "id",
2250
+ "type",
2251
+ "layout",
2252
+ "query",
2253
+ "spec"
2254
+ ],
2255
+ "type": "object"
2256
+ }
2257
+ ]
2258
+ },
2259
+ "type": "array"
2260
+ },
2261
+ "refreshInterval": {
2262
+ "maximum": 9007199254740991,
2263
+ "minimum": -9007199254740991,
2264
+ "type": "integer"
2265
+ },
2266
+ "spaceId": {
2267
+ "description": "Space the resource belongs to",
2268
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2269
+ "type": "string"
2270
+ },
2271
+ "templateVariables": {
2272
+ "default": [],
2273
+ "items": {
2274
+ "oneOf": [
2275
+ {
2276
+ "properties": {
2277
+ "defaultValue": {
2278
+ "maxLength": 1024,
2279
+ "type": "string"
2280
+ },
2281
+ "description": {
2282
+ "maxLength": 1024,
2283
+ "type": "string"
2284
+ },
2285
+ "id": {
2286
+ "minLength": 1,
2287
+ "type": "string"
2288
+ },
2289
+ "kind": {
2290
+ "const": "primitive",
2291
+ "type": "string"
2292
+ },
2293
+ "name": {
2294
+ "maxLength": 64,
2295
+ "minLength": 1,
2296
+ "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
2297
+ "type": "string"
2298
+ },
2299
+ "type": {
2300
+ "enum": [
2301
+ "int",
2302
+ "double",
2303
+ "boolean",
2304
+ "string",
2305
+ "interval"
2306
+ ],
2307
+ "type": "string"
2308
+ },
2309
+ "values": {
2310
+ "items": {
2311
+ "maxLength": 1024,
2312
+ "minLength": 1,
2313
+ "type": "string"
2314
+ },
2315
+ "maxItems": 200,
2316
+ "type": "array"
2317
+ }
2318
+ },
2319
+ "required": [
2320
+ "id",
2321
+ "name",
2322
+ "kind",
2323
+ "type",
2324
+ "values"
2325
+ ],
2326
+ "type": "object"
2327
+ },
2328
+ {
2329
+ "properties": {
2330
+ "defaultValue": {
2331
+ "maxLength": 1024,
2332
+ "pattern": "^[a-zA-Z0-9_]+$",
2333
+ "type": "string"
2334
+ },
2335
+ "description": {
2336
+ "maxLength": 1024,
2337
+ "type": "string"
2338
+ },
2339
+ "id": {
2340
+ "minLength": 1,
2341
+ "type": "string"
2342
+ },
2343
+ "kind": {
2344
+ "const": "identifier_fragment",
2345
+ "type": "string"
2346
+ },
2347
+ "name": {
2348
+ "maxLength": 64,
2349
+ "minLength": 1,
2350
+ "pattern": "^[a-zA-Z_][a-zA-Z_0-9]*$",
2351
+ "type": "string"
2352
+ },
2353
+ "values": {
2354
+ "items": {
2355
+ "maxLength": 1024,
2356
+ "minLength": 1,
2357
+ "pattern": "^[a-zA-Z0-9_]+$",
2358
+ "type": "string"
2359
+ },
2360
+ "maxItems": 200,
2361
+ "minItems": 1,
2362
+ "type": "array"
2363
+ }
2364
+ },
2365
+ "required": [
2366
+ "id",
2367
+ "name",
2368
+ "kind",
2369
+ "values",
2370
+ "defaultValue"
2371
+ ],
2372
+ "type": "object"
2373
+ }
2374
+ ]
2375
+ },
2376
+ "type": "array"
2377
+ }
2378
+ },
2379
+ "required": [
2380
+ "name",
2381
+ "refreshInterval",
2382
+ "defaultTimeRange",
2383
+ "originKey",
2384
+ "spaceId"
2385
+ ],
2386
+ "title": "Dashboard (*.dashboard.yaml)",
2387
+ "type": "object"
2388
+ },
2389
+ "space/detection.schema.json": {
2390
+ "$id": "urn:perpetual:file-format:v1:space:detection",
2391
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2392
+ "additionalProperties": false,
2393
+ "description": "GitOps file for a single space.",
2394
+ "properties": {
2395
+ "accumulationKey": {
2396
+ "anyOf": [
2397
+ {
2398
+ "items": {
2399
+ "type": "string"
2400
+ },
2401
+ "type": "array"
2402
+ },
2403
+ {
2404
+ "type": "null"
2405
+ }
2406
+ ],
2407
+ "default": null
2408
+ },
2409
+ "archived": {
2410
+ "default": false,
2411
+ "type": "boolean"
2412
+ },
2413
+ "createCase": {
2414
+ "default": false,
2415
+ "type": "boolean"
2416
+ },
2417
+ "deploy": {
2418
+ "description": "Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.",
2419
+ "type": "boolean"
2420
+ },
2421
+ "description": {
2422
+ "default": null,
2423
+ "type": [
2424
+ "string",
2425
+ "null"
2426
+ ]
2427
+ },
2428
+ "folder": {
2429
+ "anyOf": [
2430
+ {
2431
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2432
+ "type": "string"
2433
+ },
2434
+ {
2435
+ "description": "Server-assigned Folder id",
2436
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2437
+ "type": "string"
2438
+ }
2439
+ ],
2440
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
2441
+ },
2442
+ "id": {
2443
+ "description": "Server-assigned id. Absent until the resource exists.",
2444
+ "pattern": "^DET_[A-Z0-9]{1,7}$",
2445
+ "type": "string"
2446
+ },
2447
+ "level": {
2448
+ "enum": [
2449
+ "INFORMATIONAL",
2450
+ "LOW",
2451
+ "MEDIUM",
2452
+ "HIGH",
2453
+ "CRITICAL"
2454
+ ],
2455
+ "type": "string"
2456
+ },
2457
+ "maturity": {
2458
+ "enum": [
2459
+ "EXPERIMENTAL",
2460
+ "TEST",
2461
+ "STABLE",
2462
+ "DEPRECATED"
2463
+ ],
2464
+ "type": "string"
2465
+ },
2466
+ "maximumLatency": {
2467
+ "enum": [
2468
+ "MAX_1H",
2469
+ "MAX_1D",
2470
+ "MAX_15M"
2471
+ ],
2472
+ "type": "string"
2473
+ },
2474
+ "minimumPriority": {
2475
+ "anyOf": [
2476
+ {
2477
+ "maximum": 10,
2478
+ "minimum": 1,
2479
+ "type": "integer"
2480
+ },
2481
+ {
2482
+ "type": "null"
2483
+ }
2484
+ ],
2485
+ "default": null
2486
+ },
2487
+ "name": {
2488
+ "type": "string"
2489
+ },
2490
+ "originKey": {
2491
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2492
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2493
+ "type": "string"
2494
+ },
2495
+ "playbook": {
2496
+ "default": null,
2497
+ "type": [
2498
+ "string",
2499
+ "null"
2500
+ ]
2501
+ },
2502
+ "retentionDays": {
2503
+ "anyOf": [
2504
+ {
2505
+ "exclusiveMinimum": 0,
2506
+ "maximum": 9007199254740991,
2507
+ "type": "integer"
2508
+ },
2509
+ {
2510
+ "type": "null"
2511
+ }
2512
+ ],
2513
+ "default": null
2514
+ },
2515
+ "spaceId": {
2516
+ "description": "Space the resource belongs to",
2517
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2518
+ "type": "string"
2519
+ },
2520
+ "startsAt": {
2521
+ "anyOf": [
2522
+ {
2523
+ "format": "date-time",
2524
+ "type": "string"
2525
+ },
2526
+ {
2527
+ "type": "null"
2528
+ }
2529
+ ],
2530
+ "description": "The start time for the detection. Signals will only be generated for data after this time. Defaults to the detection creation time."
2531
+ },
2532
+ "type": {
2533
+ "enum": [
2534
+ "QUERY",
2535
+ "SCENARIO"
2536
+ ],
2537
+ "type": "string"
2538
+ }
2539
+ },
2540
+ "required": [
2541
+ "name",
2542
+ "level",
2543
+ "type",
2544
+ "maximumLatency",
2545
+ "maturity",
2546
+ "originKey",
2547
+ "spaceId",
2548
+ "deploy"
2549
+ ],
2550
+ "title": "Detection (*.detection.yaml)",
2551
+ "type": "object"
2552
+ },
2553
+ "space/detection-override.schema.json": {
2554
+ "$id": "urn:perpetual:file-format:v1:space:detection-override",
2555
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2556
+ "additionalProperties": false,
2557
+ "description": "GitOps file for a single space.",
2558
+ "properties": {
2559
+ "deploy": {
2560
+ "description": "deploy for this installed Detection. Omit to keep the installation's value.",
2561
+ "type": "boolean"
2562
+ },
2563
+ "installation": {
2564
+ "description": "Server-assigned ContentPackInstallation id",
2565
+ "pattern": "^PKI_[A-Z0-9]{1,7}$",
2566
+ "type": "string"
2567
+ },
2568
+ "spaceId": {
2569
+ "description": "Server-assigned Space id",
2570
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2571
+ "type": "string"
2572
+ },
2573
+ "startsAt": {
2574
+ "anyOf": [
2575
+ {
2576
+ "format": "date-time",
2577
+ "type": "string"
2578
+ },
2579
+ {
2580
+ "type": "null"
2581
+ }
2582
+ ],
2583
+ "description": "startsAt for this installed Detection. Omit to keep the installation's value."
2584
+ },
2585
+ "template": {
2586
+ "anyOf": [
2587
+ {
2588
+ "pattern": "^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2589
+ "type": "string"
2590
+ },
2591
+ {
2592
+ "description": "Server-assigned Detection id",
2593
+ "pattern": "^DET_[A-Z0-9]{1,7}$",
2594
+ "type": "string"
2595
+ }
2596
+ ],
2597
+ "description": "The pack template this installed Detection came from, by originKey or server id"
2598
+ }
2599
+ },
2600
+ "required": [
2601
+ "spaceId",
2602
+ "installation",
2603
+ "template"
2604
+ ],
2605
+ "title": "Detection override (*.detection-override.yaml)",
2606
+ "type": "object"
2607
+ },
2608
+ "space/folder.schema.json": {
2609
+ "$id": "urn:perpetual:file-format:v1:space:folder",
2610
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2611
+ "additionalProperties": false,
2612
+ "description": "GitOps file for a single space.",
2613
+ "properties": {
2614
+ "id": {
2615
+ "description": "Server-assigned id. Absent until the resource exists.",
2616
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2617
+ "type": "string"
2618
+ },
2619
+ "name": {
2620
+ "description": "The folder name",
2621
+ "type": "string"
2622
+ },
2623
+ "originKey": {
2624
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2625
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2626
+ "type": "string"
2627
+ },
2628
+ "parent": {
2629
+ "anyOf": [
2630
+ {
2631
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2632
+ "type": "string"
2633
+ },
2634
+ {
2635
+ "description": "Server-assigned Folder id",
2636
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2637
+ "type": "string"
2638
+ }
2639
+ ],
2640
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
2641
+ },
2642
+ "spaceId": {
2643
+ "description": "Space the resource belongs to",
2644
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2645
+ "type": "string"
2646
+ }
2647
+ },
2648
+ "required": [
2649
+ "name",
2650
+ "originKey",
2651
+ "spaceId"
2652
+ ],
2653
+ "title": "Folder (*.folder.yaml)",
2654
+ "type": "object"
2655
+ },
2656
+ "space/http-tool.schema.json": {
2657
+ "$id": "urn:perpetual:file-format:v1:space:http-tool",
2658
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2659
+ "additionalProperties": false,
2660
+ "description": "GitOps file for a single space.",
2661
+ "properties": {
2662
+ "body": {
2663
+ "anyOf": [
2664
+ {
2665
+ "maxLength": 1000000,
2666
+ "type": "string"
2667
+ },
2668
+ {
2669
+ "type": "null"
2670
+ }
2671
+ ],
2672
+ "default": null,
2673
+ "description": "Optional body template with Liquid syntax support"
2674
+ },
2675
+ "description": {
2676
+ "type": "string"
2677
+ },
2678
+ "folder": {
2679
+ "anyOf": [
2680
+ {
2681
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2682
+ "type": "string"
2683
+ },
2684
+ {
2685
+ "description": "Server-assigned Folder id",
2686
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2687
+ "type": "string"
2688
+ }
2689
+ ],
2690
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
2691
+ },
2692
+ "headers": {
2693
+ "additionalProperties": {
2694
+ "type": "string"
2695
+ },
2696
+ "default": {},
2697
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
2698
+ "propertyNames": {
2699
+ "type": "string"
2700
+ },
2701
+ "type": "object"
2702
+ },
2703
+ "id": {
2704
+ "description": "Server-assigned id. Absent until the resource exists.",
2705
+ "pattern": "^HTT_[A-Z0-9]{1,7}$",
2706
+ "type": "string"
2707
+ },
2708
+ "inputSchema": {
2709
+ "additionalProperties": {},
2710
+ "propertyNames": {
2711
+ "type": "string"
2712
+ },
2713
+ "type": "object"
2714
+ },
2715
+ "method": {
2716
+ "enum": [
2717
+ "GET",
2718
+ "POST",
2719
+ "PUT",
2720
+ "PATCH",
2721
+ "DELETE"
2722
+ ],
2723
+ "type": "string"
2724
+ },
2725
+ "name": {
2726
+ "type": "string"
2727
+ },
2728
+ "originKey": {
2729
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2730
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2731
+ "type": "string"
2732
+ },
2733
+ "readOnlyHint": {
2734
+ "default": true,
2735
+ "type": "boolean"
2736
+ },
2737
+ "requiresApproval": {
2738
+ "default": false,
2739
+ "type": "boolean"
2740
+ },
2741
+ "spaceId": {
2742
+ "description": "Space the resource belongs to",
2743
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2744
+ "type": "string"
2745
+ },
2746
+ "url": {
2747
+ "type": "string"
2748
+ }
2749
+ },
2750
+ "required": [
2751
+ "name",
2752
+ "description",
2753
+ "inputSchema",
2754
+ "url",
2755
+ "method",
2756
+ "originKey",
2757
+ "spaceId"
2758
+ ],
2759
+ "title": "HttpToolConfig (*.http-tool.yaml)",
2760
+ "type": "object"
2761
+ },
2762
+ "space/integration.schema.json": {
2763
+ "$id": "urn:perpetual:file-format:v1:space:integration",
2764
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2765
+ "additionalProperties": false,
2766
+ "description": "GitOps file for a single space.",
2767
+ "properties": {
2768
+ "defaultConnectorKind": {
2769
+ "anyOf": [
2770
+ {
2771
+ "minLength": 1,
2772
+ "type": "string"
2773
+ },
2774
+ {
2775
+ "type": "null"
2776
+ }
2777
+ ],
2778
+ "default": null,
2779
+ "description": "Connector kind preselected when pack install creates a connector. A registry kind id such as crowdstrike, or a built-in kind such as aws-s3."
2780
+ },
2781
+ "folder": {
2782
+ "anyOf": [
2783
+ {
2784
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2785
+ "type": "string"
2786
+ },
2787
+ {
2788
+ "description": "Server-assigned Folder id",
2789
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2790
+ "type": "string"
2791
+ }
2792
+ ],
2793
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
2794
+ },
2795
+ "id": {
2796
+ "description": "Server-assigned id. Absent until the resource exists.",
2797
+ "pattern": "^INT_[A-Z0-9]{1,7}$",
2798
+ "type": "string"
2799
+ },
2800
+ "name": {
2801
+ "type": "string"
2802
+ },
2803
+ "originKey": {
2804
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2805
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2806
+ "type": "string"
2807
+ },
2808
+ "retentionDays": {
2809
+ "anyOf": [
2810
+ {
2811
+ "exclusiveMinimum": 0,
2812
+ "maximum": 9007199254740991,
2813
+ "type": "integer"
2814
+ },
2815
+ {
2816
+ "type": "null"
2817
+ }
2818
+ ],
2819
+ "default": null
2820
+ },
2821
+ "spaceId": {
2822
+ "description": "Space the resource belongs to",
2823
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2824
+ "type": "string"
2825
+ },
2826
+ "viewName": {
2827
+ "default": null,
2828
+ "type": [
2829
+ "string",
2830
+ "null"
2831
+ ]
2832
+ }
2833
+ },
2834
+ "required": [
2835
+ "name",
2836
+ "originKey",
2837
+ "spaceId"
2838
+ ],
2839
+ "title": "Integration (*.integration.yaml)",
2840
+ "type": "object"
2841
+ },
2842
+ "space/lookup.schema.json": {
2843
+ "$id": "urn:perpetual:file-format:v1:space:lookup",
2844
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2845
+ "additionalProperties": false,
2846
+ "description": "GitOps file for a single space.",
2847
+ "properties": {
2848
+ "archived": {
2849
+ "default": false,
2850
+ "type": "boolean"
2851
+ },
2852
+ "deploy": {
2853
+ "description": "Whether the lookup is deployed. A deployed lookup has a backing dataset that queries can join against.",
2854
+ "type": "boolean"
2855
+ },
2856
+ "folder": {
2857
+ "anyOf": [
2858
+ {
2859
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2860
+ "type": "string"
2861
+ },
2862
+ {
2863
+ "description": "Server-assigned Folder id",
2864
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
2865
+ "type": "string"
2866
+ }
2867
+ ],
2868
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
2869
+ },
2870
+ "id": {
2871
+ "description": "Server-assigned id. Absent until the resource exists.",
2872
+ "pattern": "^LKP_[A-Z0-9]{1,7}$",
2873
+ "type": "string"
2874
+ },
2875
+ "keyColumns": {
2876
+ "items": {
2877
+ "minLength": 1,
2878
+ "type": "string"
2879
+ },
2880
+ "type": "array"
2881
+ },
2882
+ "name": {
2883
+ "description": "The lookup's freeform display name. The backing dataset's schema.name is derived from this server-side.",
2884
+ "type": "string"
2885
+ },
2886
+ "originKey": {
2887
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2888
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2889
+ "type": "string"
2890
+ },
2891
+ "sourceFormat": {
2892
+ "enum": [
2893
+ "parsed_lines",
2894
+ "csv"
2895
+ ],
2896
+ "type": "string"
2897
+ },
2898
+ "spaceId": {
2899
+ "description": "Space the resource belongs to",
2900
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2901
+ "type": "string"
2902
+ }
2903
+ },
2904
+ "required": [
2905
+ "name",
2906
+ "sourceFormat",
2907
+ "keyColumns",
2908
+ "originKey",
2909
+ "spaceId",
2910
+ "deploy"
2911
+ ],
2912
+ "title": "Lookup (*.lookup.yaml)",
2913
+ "type": "object"
2914
+ },
2915
+ "space/lookup-override.schema.json": {
2916
+ "$id": "urn:perpetual:file-format:v1:space:lookup-override",
2917
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2918
+ "additionalProperties": false,
2919
+ "description": "GitOps file for a single space.",
2920
+ "properties": {
2921
+ "deploy": {
2922
+ "description": "deploy for this installed Lookup. Omit to keep the installation's value.",
2923
+ "type": "boolean"
2924
+ },
2925
+ "installation": {
2926
+ "description": "Server-assigned ContentPackInstallation id",
2927
+ "pattern": "^PKI_[A-Z0-9]{1,7}$",
2928
+ "type": "string"
2929
+ },
2930
+ "spaceId": {
2931
+ "description": "Server-assigned Space id",
2932
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
2933
+ "type": "string"
2934
+ },
2935
+ "template": {
2936
+ "anyOf": [
2937
+ {
2938
+ "pattern": "^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2939
+ "type": "string"
2940
+ },
2941
+ {
2942
+ "description": "Server-assigned Lookup id",
2943
+ "pattern": "^LKP_[A-Z0-9]{1,7}$",
2944
+ "type": "string"
2945
+ }
2946
+ ],
2947
+ "description": "The pack template this installed Lookup came from, by originKey or server id"
2948
+ }
2949
+ },
2950
+ "required": [
2951
+ "spaceId",
2952
+ "installation",
2953
+ "template"
2954
+ ],
2955
+ "title": "Lookup override (*.lookup-override.yaml)",
2956
+ "type": "object"
2957
+ },
2958
+ "space/mapper.schema.json": {
2959
+ "$id": "urn:perpetual:file-format:v1:space:mapper",
2960
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2961
+ "additionalProperties": false,
2962
+ "description": "GitOps file for a single space.",
2963
+ "properties": {
2964
+ "deploy": {
2965
+ "default": false,
2966
+ "type": "boolean"
2967
+ },
2968
+ "id": {
2969
+ "description": "Server-assigned id. Absent until the resource exists.",
2970
+ "pattern": "^MPR_[A-Z0-9]{1,7}$",
2971
+ "type": "string"
2972
+ },
2973
+ "integration": {
2974
+ "anyOf": [
2975
+ {
2976
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2977
+ "type": "string"
2978
+ },
2979
+ {
2980
+ "description": "Server-assigned Integration id",
2981
+ "pattern": "^INT_[A-Z0-9]{1,7}$",
2982
+ "type": "string"
2983
+ }
2984
+ ],
2985
+ "description": "A Integration by its originKey (managed in this repo) or its server id (INT_…)"
2986
+ },
2987
+ "name": {
2988
+ "minLength": 1,
2989
+ "type": "string"
2990
+ },
2991
+ "originKey": {
2992
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
2993
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
2994
+ "type": "string"
2995
+ },
2996
+ "parsers": {
2997
+ "items": {
2998
+ "anyOf": [
2999
+ {
3000
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3001
+ "type": "string"
3002
+ },
3003
+ {
3004
+ "description": "Server-assigned Parser id",
3005
+ "pattern": "^PRS_[A-Z0-9]{1,7}$",
3006
+ "type": "string"
3007
+ }
3008
+ ],
3009
+ "description": "A Parser by its originKey (managed in this repo) or its server id (PRS_…)"
3010
+ },
3011
+ "minItems": 1,
3012
+ "type": "array"
3013
+ },
3014
+ "spaceId": {
3015
+ "description": "Space the resource belongs to",
3016
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3017
+ "type": "string"
3018
+ }
3019
+ },
3020
+ "required": [
3021
+ "name",
3022
+ "originKey",
3023
+ "spaceId",
3024
+ "integration",
3025
+ "parsers"
3026
+ ],
3027
+ "title": "Mapper (*.mapper.yaml)",
3028
+ "type": "object"
3029
+ },
3030
+ "space/mapper-override.schema.json": {
3031
+ "$id": "urn:perpetual:file-format:v1:space:mapper-override",
3032
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3033
+ "additionalProperties": false,
3034
+ "description": "GitOps file for a single space.",
3035
+ "properties": {
3036
+ "deploy": {
3037
+ "description": "deploy for this installed Mapper. Omit to keep the installation's value.",
3038
+ "type": "boolean"
3039
+ },
3040
+ "installation": {
3041
+ "description": "Server-assigned ContentPackInstallation id",
3042
+ "pattern": "^PKI_[A-Z0-9]{1,7}$",
3043
+ "type": "string"
3044
+ },
3045
+ "spaceId": {
3046
+ "description": "Server-assigned Space id",
3047
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3048
+ "type": "string"
3049
+ },
3050
+ "template": {
3051
+ "anyOf": [
3052
+ {
3053
+ "pattern": "^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3054
+ "type": "string"
3055
+ },
3056
+ {
3057
+ "description": "Server-assigned Mapper id",
3058
+ "pattern": "^MPR_[A-Z0-9]{1,7}$",
3059
+ "type": "string"
3060
+ }
3061
+ ],
3062
+ "description": "The pack template this installed Mapper came from, by originKey or server id"
3063
+ }
3064
+ },
3065
+ "required": [
3066
+ "spaceId",
3067
+ "installation",
3068
+ "template"
3069
+ ],
3070
+ "title": "Mapper override (*.mapper-override.yaml)",
3071
+ "type": "object"
3072
+ },
3073
+ "space/mcp.schema.json": {
3074
+ "$id": "urn:perpetual:file-format:v1:space:mcp",
3075
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3076
+ "additionalProperties": false,
3077
+ "description": "GitOps file for a single space.",
3078
+ "properties": {
3079
+ "folder": {
3080
+ "anyOf": [
3081
+ {
3082
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3083
+ "type": "string"
3084
+ },
3085
+ {
3086
+ "description": "Server-assigned Folder id",
3087
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
3088
+ "type": "string"
3089
+ }
3090
+ ],
3091
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
3092
+ },
3093
+ "headers": {
3094
+ "additionalProperties": {
3095
+ "type": "string"
3096
+ },
3097
+ "default": {},
3098
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
3099
+ "propertyNames": {
3100
+ "type": "string"
3101
+ },
3102
+ "type": "object"
3103
+ },
3104
+ "id": {
3105
+ "description": "Server-assigned id. Absent until the resource exists.",
3106
+ "pattern": "^MCP_[A-Z0-9]{1,7}$",
3107
+ "type": "string"
3108
+ },
3109
+ "name": {
3110
+ "type": "string"
3111
+ },
3112
+ "originKey": {
3113
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3114
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3115
+ "type": "string"
3116
+ },
3117
+ "spaceId": {
3118
+ "description": "Space the resource belongs to",
3119
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3120
+ "type": "string"
3121
+ },
3122
+ "url": {
3123
+ "type": "string"
3124
+ }
3125
+ },
3126
+ "required": [
3127
+ "name",
3128
+ "url",
3129
+ "originKey",
3130
+ "spaceId"
3131
+ ],
3132
+ "title": "McpConfig (*.mcp.yaml)",
3133
+ "type": "object"
3134
+ },
3135
+ "space/pack-installation.schema.json": {
3136
+ "$id": "urn:perpetual:file-format:v1:space:pack-installation",
3137
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3138
+ "additionalProperties": false,
3139
+ "description": "GitOps file for a single space.",
3140
+ "properties": {
3141
+ "id": {
3142
+ "description": "Server-assigned installation id. Absent until installed.",
3143
+ "pattern": "^PKI_[A-Z0-9]{1,7}$",
3144
+ "type": "string"
3145
+ },
3146
+ "installDeployed": {
3147
+ "default": false,
3148
+ "type": "boolean"
3149
+ },
3150
+ "installPath": {
3151
+ "type": "string"
3152
+ },
3153
+ "linkMode": {
3154
+ "enum": [
3155
+ "Manual",
3156
+ "Automatic"
3157
+ ],
3158
+ "type": "string"
3159
+ },
3160
+ "pack": {
3161
+ "description": "Server-assigned ContentPack id",
3162
+ "pattern": "^PAK_[A-Z0-9]{1,7}$",
3163
+ "type": "string"
3164
+ },
3165
+ "releaseVersion": {
3166
+ "description": "Pinned pack release. Omit to track the latest release.",
3167
+ "exclusiveMinimum": 0,
3168
+ "maximum": 9007199254740991,
3169
+ "type": "integer"
3170
+ },
3171
+ "spaceId": {
3172
+ "description": "Server-assigned Space id",
3173
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3174
+ "type": "string"
3175
+ }
3176
+ },
3177
+ "required": [
3178
+ "spaceId",
3179
+ "pack",
3180
+ "linkMode"
3181
+ ],
3182
+ "title": "Pack installation (*.pack-installation.yaml)",
3183
+ "type": "object"
3184
+ },
3185
+ "space/parser.schema.json": {
3186
+ "$id": "urn:perpetual:file-format:v1:space:parser",
3187
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3188
+ "additionalProperties": false,
3189
+ "description": "GitOps file for a single space.",
3190
+ "properties": {
3191
+ "connectorIds": {
3192
+ "items": {
3193
+ "anyOf": [
3194
+ {
3195
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3196
+ "type": "string"
3197
+ },
3198
+ {
3199
+ "description": "Server-assigned Connector id",
3200
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
3201
+ "type": "string"
3202
+ }
3203
+ ],
3204
+ "description": "A Connector by its originKey (managed in this repo) or its server id (CON_…)"
3205
+ },
3206
+ "type": "array"
3207
+ },
3208
+ "deploy": {
3209
+ "default": false,
3210
+ "type": "boolean"
3211
+ },
3212
+ "id": {
3213
+ "description": "Server-assigned id. Absent until the resource exists.",
3214
+ "pattern": "^PRS_[A-Z0-9]{1,7}$",
3215
+ "type": "string"
3216
+ },
3217
+ "integration": {
3218
+ "anyOf": [
3219
+ {
3220
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3221
+ "type": "string"
3222
+ },
3223
+ {
3224
+ "description": "Server-assigned Integration id",
3225
+ "pattern": "^INT_[A-Z0-9]{1,7}$",
3226
+ "type": "string"
3227
+ }
3228
+ ],
3229
+ "description": "A Integration by its originKey (managed in this repo) or its server id (INT_…)"
3230
+ },
3231
+ "name": {
3232
+ "minLength": 1,
3233
+ "type": "string"
3234
+ },
3235
+ "originKey": {
3236
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3237
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3238
+ "type": "string"
3239
+ },
3240
+ "spaceId": {
3241
+ "description": "Space the resource belongs to",
3242
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3243
+ "type": "string"
3244
+ }
3245
+ },
3246
+ "required": [
3247
+ "name",
3248
+ "originKey",
3249
+ "spaceId",
3250
+ "integration"
3251
+ ],
3252
+ "title": "Parser (*.parser.yaml)",
3253
+ "type": "object"
3254
+ },
3255
+ "space/parser-override.schema.json": {
3256
+ "$id": "urn:perpetual:file-format:v1:space:parser-override",
3257
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3258
+ "additionalProperties": false,
3259
+ "description": "GitOps file for a single space.",
3260
+ "properties": {
3261
+ "connectorIds": {
3262
+ "description": "connectorIds for this installed Parser. Omit to keep the installation's value.",
3263
+ "items": {
3264
+ "anyOf": [
3265
+ {
3266
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3267
+ "type": "string"
3268
+ },
3269
+ {
3270
+ "description": "Server-assigned Connector id",
3271
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
3272
+ "type": "string"
3273
+ }
3274
+ ],
3275
+ "description": "A Connector by its originKey (managed in this repo) or its server id (CON_…)"
3276
+ },
3277
+ "type": "array"
3278
+ },
3279
+ "deploy": {
3280
+ "description": "deploy for this installed Parser. Omit to keep the installation's value.",
3281
+ "type": "boolean"
3282
+ },
3283
+ "installation": {
3284
+ "description": "Server-assigned ContentPackInstallation id",
3285
+ "pattern": "^PKI_[A-Z0-9]{1,7}$",
3286
+ "type": "string"
3287
+ },
3288
+ "spaceId": {
3289
+ "description": "Server-assigned Space id",
3290
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3291
+ "type": "string"
3292
+ },
3293
+ "template": {
3294
+ "anyOf": [
3295
+ {
3296
+ "pattern": "^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3297
+ "type": "string"
3298
+ },
3299
+ {
3300
+ "description": "Server-assigned Parser id",
3301
+ "pattern": "^PRS_[A-Z0-9]{1,7}$",
3302
+ "type": "string"
3303
+ }
3304
+ ],
3305
+ "description": "The pack template this installed Parser came from, by originKey or server id"
3306
+ }
3307
+ },
3308
+ "required": [
3309
+ "spaceId",
3310
+ "installation",
3311
+ "template"
3312
+ ],
3313
+ "title": "Parser override (*.parser-override.yaml)",
3314
+ "type": "object"
3315
+ },
3316
+ "space/skill.schema.json": {
3317
+ "$id": "urn:perpetual:file-format:v1:space:skill",
3318
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3319
+ "additionalProperties": false,
3320
+ "description": "GitOps file for a single space.",
3321
+ "properties": {
3322
+ "argumentHint": {
3323
+ "default": null,
3324
+ "type": [
3325
+ "string",
3326
+ "null"
3327
+ ]
3328
+ },
3329
+ "description": {
3330
+ "type": "string"
3331
+ },
3332
+ "disableModelInvocation": {
3333
+ "default": false,
3334
+ "type": "boolean"
3335
+ },
3336
+ "folder": {
3337
+ "anyOf": [
3338
+ {
3339
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3340
+ "type": "string"
3341
+ },
3342
+ {
3343
+ "description": "Server-assigned Folder id",
3344
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
3345
+ "type": "string"
3346
+ }
3347
+ ],
3348
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
3349
+ },
3350
+ "id": {
3351
+ "description": "Server-assigned id. Absent until the resource exists.",
3352
+ "pattern": "^SKL_[A-Z0-9]{1,7}$",
3353
+ "type": "string"
3354
+ },
3355
+ "instructions": {
3356
+ "type": "string"
3357
+ },
3358
+ "name": {
3359
+ "type": "string"
3360
+ },
3361
+ "originKey": {
3362
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3363
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3364
+ "type": "string"
3365
+ },
3366
+ "spaceId": {
3367
+ "description": "Space the resource belongs to",
3368
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3369
+ "type": "string"
3370
+ },
3371
+ "userInvocable": {
3372
+ "default": true,
3373
+ "type": "boolean"
3374
+ }
3375
+ },
3376
+ "required": [
3377
+ "name",
3378
+ "description",
3379
+ "instructions",
3380
+ "originKey",
3381
+ "spaceId"
3382
+ ],
3383
+ "title": "Skill (*.skill.yaml)",
3384
+ "type": "object"
3385
+ },
3386
+ "space/table.schema.json": {
3387
+ "$id": "urn:perpetual:file-format:v1:space:table",
3388
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3389
+ "additionalProperties": false,
3390
+ "description": "GitOps file for a single space.",
3391
+ "properties": {
3392
+ "archived": {
3393
+ "default": false,
3394
+ "type": "boolean"
3395
+ },
3396
+ "deploy": {
3397
+ "type": "boolean"
3398
+ },
3399
+ "id": {
3400
+ "description": "Server-assigned id. Absent until the resource exists.",
3401
+ "pattern": "^TBL_[A-Z0-9]{1,7}$",
3402
+ "type": "string"
3403
+ },
3404
+ "keyColumns": {
3405
+ "items": {
3406
+ "minLength": 1,
3407
+ "type": "string"
3408
+ },
3409
+ "type": "array"
3410
+ },
3411
+ "maxLatency": {
3412
+ "anyOf": [
3413
+ {
3414
+ "enum": [
3415
+ "MAX_1H",
3416
+ "MAX_1D"
3417
+ ],
3418
+ "type": "string"
3419
+ },
3420
+ {
3421
+ "type": "null"
3422
+ }
3423
+ ]
3424
+ },
3425
+ "name": {
3426
+ "pattern": "^(connectors\\.)?([a-zA-Z_][a-zA-Z0-9_]{0,255})(\\.([a-zA-Z_][a-zA-Z0-9_]{0,255}))?$",
3427
+ "type": "string"
3428
+ },
3429
+ "originKey": {
3430
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3431
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3432
+ "type": "string"
3433
+ },
3434
+ "partitioningColumn": {
3435
+ "anyOf": [
3436
+ {
3437
+ "minLength": 1,
3438
+ "type": "string"
3439
+ },
3440
+ {
3441
+ "type": "null"
3442
+ }
3443
+ ],
3444
+ "default": null
3445
+ },
3446
+ "retentionDays": {
3447
+ "anyOf": [
3448
+ {
3449
+ "exclusiveMinimum": 0,
3450
+ "maximum": 9007199254740991,
3451
+ "type": "integer"
3452
+ },
3453
+ {
3454
+ "type": "null"
3455
+ }
3456
+ ],
3457
+ "default": null
3458
+ },
3459
+ "sortedByColumn": {
3460
+ "anyOf": [
3461
+ {
3462
+ "minLength": 1,
3463
+ "type": "string"
3464
+ },
3465
+ {
3466
+ "type": "null"
3467
+ }
3468
+ ],
3469
+ "default": null
3470
+ },
3471
+ "sourceFormat": {
3472
+ "enum": [
3473
+ "parsed_lines",
3474
+ "csv"
3475
+ ],
3476
+ "type": "string"
3477
+ },
3478
+ "spaceId": {
3479
+ "description": "Space the resource belongs to",
3480
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3481
+ "type": "string"
3482
+ },
3483
+ "startsAt": {
3484
+ "anyOf": [
3485
+ {
3486
+ "format": "date-time",
3487
+ "type": "string"
3488
+ },
3489
+ {
3490
+ "type": "null"
3491
+ }
3492
+ ],
3493
+ "default": null
3494
+ }
3495
+ },
3496
+ "required": [
3497
+ "deploy",
3498
+ "name",
3499
+ "originKey",
3500
+ "spaceId"
3501
+ ],
3502
+ "title": "Table (*.table.yaml)",
3503
+ "type": "object"
3504
+ },
3505
+ "space/union.schema.json": {
3506
+ "$id": "urn:perpetual:file-format:v1:space:union",
3507
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3508
+ "additionalProperties": false,
3509
+ "description": "GitOps file for a single space.",
3510
+ "properties": {
3511
+ "archived": {
3512
+ "default": false,
3513
+ "type": "boolean"
3514
+ },
3515
+ "deploy": {
3516
+ "type": "boolean"
3517
+ },
3518
+ "fromDatasets": {
3519
+ "description": "Source datasets",
3520
+ "items": {
3521
+ "properties": {
3522
+ "resourceName": {
3523
+ "pattern": "^(connectors\\.)?([a-zA-Z_][a-zA-Z0-9_]{0,255})(\\.([a-zA-Z_][a-zA-Z0-9_]{0,255}))?$",
3524
+ "type": "string"
3525
+ },
3526
+ "spaceId": {
3527
+ "description": "Space containing the dependency dataset",
3528
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3529
+ "type": "string"
3530
+ }
3531
+ },
3532
+ "required": [
3533
+ "resourceName",
3534
+ "spaceId"
3535
+ ],
3536
+ "type": "object"
3537
+ },
3538
+ "type": "array"
3539
+ },
3540
+ "id": {
3541
+ "description": "Server-assigned id. Absent until the resource exists.",
3542
+ "pattern": "^ION_[A-Z0-9]{1,7}$",
3543
+ "type": "string"
3544
+ },
3545
+ "maxLatency": {
3546
+ "default": "MAX_1H",
3547
+ "enum": [
3548
+ "MAX_1H",
3549
+ "MAX_1D"
3550
+ ],
3551
+ "type": "string"
3552
+ },
3553
+ "name": {
3554
+ "pattern": "^(connectors\\.)?([a-zA-Z_][a-zA-Z0-9_]{0,255})(\\.([a-zA-Z_][a-zA-Z0-9_]{0,255}))?$",
3555
+ "type": "string"
3556
+ },
3557
+ "originKey": {
3558
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3559
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3560
+ "type": "string"
3561
+ },
3562
+ "retentionDays": {
3563
+ "anyOf": [
3564
+ {
3565
+ "exclusiveMinimum": 0,
3566
+ "maximum": 9007199254740991,
3567
+ "type": "integer"
3568
+ },
3569
+ {
3570
+ "type": "null"
3571
+ }
3572
+ ],
3573
+ "default": null
3574
+ },
3575
+ "spaceId": {
3576
+ "description": "Space the resource belongs to",
3577
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3578
+ "type": "string"
3579
+ }
3580
+ },
3581
+ "required": [
3582
+ "name",
3583
+ "deploy",
3584
+ "fromDatasets",
3585
+ "originKey",
3586
+ "spaceId"
3587
+ ],
3588
+ "title": "Union (*.union.yaml)",
3589
+ "type": "object"
3590
+ },
3591
+ "space/view.schema.json": {
3592
+ "$id": "urn:perpetual:file-format:v1:space:view",
3593
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3594
+ "additionalProperties": false,
3595
+ "description": "GitOps file for a single space.",
3596
+ "properties": {
3597
+ "archived": {
3598
+ "default": false,
3599
+ "type": "boolean"
3600
+ },
3601
+ "deploy": {
3602
+ "type": "boolean"
3603
+ },
3604
+ "id": {
3605
+ "description": "Server-assigned id. Absent until the resource exists.",
3606
+ "pattern": "^VIE_[A-Z0-9]{1,7}$",
3607
+ "type": "string"
3608
+ },
3609
+ "materialized": {
3610
+ "type": "boolean"
3611
+ },
3612
+ "maxLatency": {
3613
+ "enum": [
3614
+ "MAX_1H",
3615
+ "MAX_1D"
3616
+ ],
3617
+ "type": "string"
3618
+ },
3619
+ "name": {
3620
+ "pattern": "^(connectors\\.)?([a-zA-Z_][a-zA-Z0-9_]{0,255})(\\.([a-zA-Z_][a-zA-Z0-9_]{0,255}))?$",
3621
+ "type": "string"
3622
+ },
3623
+ "originKey": {
3624
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3625
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3626
+ "type": "string"
3627
+ },
3628
+ "retentionDays": {
3629
+ "anyOf": [
3630
+ {
3631
+ "exclusiveMinimum": 0,
3632
+ "maximum": 9007199254740991,
3633
+ "type": "integer"
3634
+ },
3635
+ {
3636
+ "type": "null"
3637
+ }
3638
+ ],
3639
+ "default": null
3640
+ },
3641
+ "sortedByColumns": {
3642
+ "default": [],
3643
+ "items": {
3644
+ "minLength": 1,
3645
+ "type": "string"
3646
+ },
3647
+ "type": "array"
3648
+ },
3649
+ "spaceId": {
3650
+ "description": "Space the resource belongs to",
3651
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3652
+ "type": "string"
3653
+ },
3654
+ "startsAt": {
3655
+ "anyOf": [
3656
+ {
3657
+ "format": "date-time",
3658
+ "type": "string"
3659
+ },
3660
+ {
3661
+ "type": "null"
3662
+ }
3663
+ ],
3664
+ "default": null,
3665
+ "description": "When the view should start materializing data from. Null starts from when materialization begins."
3666
+ }
3667
+ },
3668
+ "required": [
3669
+ "name",
3670
+ "materialized",
3671
+ "maxLatency",
3672
+ "deploy",
3673
+ "originKey",
3674
+ "spaceId"
3675
+ ],
3676
+ "title": "View (*.view.yaml)",
3677
+ "type": "object"
3678
+ },
3679
+ "space/webhook.schema.json": {
3680
+ "$id": "urn:perpetual:file-format:v1:space:webhook",
3681
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3682
+ "additionalProperties": false,
3683
+ "description": "GitOps file for a single space.",
3684
+ "properties": {
3685
+ "body": {
3686
+ "anyOf": [
3687
+ {
3688
+ "maxLength": 1000000,
3689
+ "type": "string"
3690
+ },
3691
+ {
3692
+ "type": "null"
3693
+ }
3694
+ ],
3695
+ "default": null,
3696
+ "description": "Optional body template with Liquid syntax support"
3697
+ },
3698
+ "eventName": {
3699
+ "description": "The event that triggers this webhook",
3700
+ "enum": [
3701
+ "CaseCreated",
3702
+ "CaseClosed",
3703
+ "CaseStatusChanged",
3704
+ "CaseInitialAnalysisCompleted",
3705
+ "ContentWorkItemCreated",
3706
+ "ThreatReportCreated",
3707
+ "CircuitBreakerTripped",
3708
+ "SimbaUsageAlert",
3709
+ "TriagePromotionThresholdChanged",
3710
+ "AlertQueued",
3711
+ "AlertInitialScoreCompleted",
3712
+ "AlertPromoted",
3713
+ "AlertExpired",
3714
+ "AlertTriageFailure",
3715
+ "CaseNewAlertEvidenceAttached"
3716
+ ],
3717
+ "type": "string"
3718
+ },
3719
+ "folder": {
3720
+ "anyOf": [
3721
+ {
3722
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3723
+ "type": "string"
3724
+ },
3725
+ {
3726
+ "description": "Server-assigned Folder id",
3727
+ "pattern": "^FLD_[A-Z0-9]{1,7}$",
3728
+ "type": "string"
3729
+ }
3730
+ ],
3731
+ "description": "A Folder by its originKey (managed in this repo) or its server id (FLD_…)"
3732
+ },
3733
+ "headers": {
3734
+ "additionalProperties": {
3735
+ "type": "string"
3736
+ },
3737
+ "default": {},
3738
+ "description": "Header name to value. Values support Liquid. Keep secrets in credentials and reference them, for example \"Bearer {{ credential.my_token }}\". Literal values on sensitive headers such as Authorization, Cookie, or names whose last word marks a secret (for example token, key or session) are rejected, and existing ones read back as \"[redacted]\". When you update an existing resource without changing its URL, sending \"[redacted]\" back keeps the stored value. Create requests and URL changes reject \"[redacted]\".",
3739
+ "propertyNames": {
3740
+ "type": "string"
3741
+ },
3742
+ "type": "object"
3743
+ },
3744
+ "id": {
3745
+ "description": "Server-assigned id. Absent until the resource exists.",
3746
+ "pattern": "^WHK_[A-Z0-9]{1,7}$",
3747
+ "type": "string"
3748
+ },
3749
+ "method": {
3750
+ "enum": [
3751
+ "GET",
3752
+ "POST",
3753
+ "PUT",
3754
+ "PATCH",
3755
+ "DELETE"
3756
+ ],
3757
+ "type": "string"
3758
+ },
3759
+ "name": {
3760
+ "type": "string"
3761
+ },
3762
+ "originKey": {
3763
+ "description": "GitOps identity of the resource this file owns. The same value as the API's originKey.",
3764
+ "pattern": "^(?!perpetual:)[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~\\-/:@]{1,256}$",
3765
+ "type": "string"
3766
+ },
3767
+ "spaceId": {
3768
+ "description": "Space the resource belongs to",
3769
+ "pattern": "^SPC_[A-Z0-9]{1,7}$",
3770
+ "type": "string"
3771
+ },
3772
+ "triggerExpression": {
3773
+ "anyOf": [
3774
+ {
3775
+ "maxLength": 1000000,
3776
+ "type": "string"
3777
+ },
3778
+ {
3779
+ "type": "null"
3780
+ }
3781
+ ],
3782
+ "default": null,
3783
+ "description": "Optional Liquid template gating dispatch; fires only when the rendered, trimmed output is \"true\""
3784
+ },
3785
+ "url": {
3786
+ "type": "string"
3787
+ }
3788
+ },
3789
+ "required": [
3790
+ "name",
3791
+ "eventName",
3792
+ "url",
3793
+ "method",
3794
+ "originKey",
3795
+ "spaceId"
3796
+ ],
3797
+ "title": "WebhookConfig (*.webhook.yaml)",
3798
+ "type": "object"
3799
+ }
3800
+ };