@scoutflo/memory 0.0.0-stage → 0.1.0-rc.2

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 (75) hide show
  1. package/core/package.json +6 -0
  2. package/dist/core/src/adapter.d.ts +30 -0
  3. package/dist/core/src/adapter.js +3 -0
  4. package/dist/core/src/adapter.js.map +1 -0
  5. package/dist/core/src/conformance/index.d.ts +43 -0
  6. package/dist/core/src/conformance/index.js +102 -0
  7. package/dist/core/src/conformance/index.js.map +1 -0
  8. package/dist/core/src/errors.d.ts +6 -0
  9. package/dist/core/src/errors.js +16 -0
  10. package/dist/core/src/errors.js.map +1 -0
  11. package/dist/core/src/helpers.d.ts +4 -0
  12. package/dist/core/src/helpers.js +38 -0
  13. package/dist/core/src/helpers.js.map +1 -0
  14. package/dist/core/src/index.d.ts +6 -0
  15. package/dist/core/src/index.js +26 -0
  16. package/dist/core/src/index.js.map +1 -0
  17. package/dist/core/src/registry.d.ts +12 -0
  18. package/dist/core/src/registry.js +36 -0
  19. package/dist/core/src/registry.js.map +1 -0
  20. package/dist/src/api.d.ts +2752 -0
  21. package/dist/src/api.js +108 -0
  22. package/dist/src/api.js.map +1 -0
  23. package/dist/src/browse.d.ts +159 -0
  24. package/dist/src/browse.js +40 -0
  25. package/dist/src/browse.js.map +1 -0
  26. package/dist/src/catalog.d.ts +727 -0
  27. package/dist/src/catalog.js +146 -0
  28. package/dist/src/catalog.js.map +1 -0
  29. package/dist/src/errors.d.ts +22 -0
  30. package/dist/src/errors.js +46 -0
  31. package/dist/src/errors.js.map +1 -0
  32. package/dist/src/identity.d.ts +63 -0
  33. package/dist/src/identity.js +73 -0
  34. package/dist/src/identity.js.map +1 -0
  35. package/dist/src/index.d.ts +10 -0
  36. package/dist/src/index.js +29 -0
  37. package/dist/src/index.js.map +1 -0
  38. package/dist/src/limits.d.ts +10 -0
  39. package/dist/src/limits.js +13 -0
  40. package/dist/src/limits.js.map +1 -0
  41. package/dist/src/providers.d.ts +81 -0
  42. package/dist/src/providers.js +51 -0
  43. package/dist/src/providers.js.map +1 -0
  44. package/dist/src/read.d.ts +345 -0
  45. package/dist/src/read.js +37 -0
  46. package/dist/src/read.js.map +1 -0
  47. package/dist/src/sha256.d.ts +2 -0
  48. package/dist/src/sha256.js +60 -0
  49. package/dist/src/sha256.js.map +1 -0
  50. package/dist/test/boundary.test.d.ts +1 -0
  51. package/dist/test/boundary.test.js +45 -0
  52. package/dist/test/boundary.test.js.map +1 -0
  53. package/dist/test/browse-read.test.d.ts +1 -0
  54. package/dist/test/browse-read.test.js +52 -0
  55. package/dist/test/browse-read.test.js.map +1 -0
  56. package/dist/test/catalog-api.test.d.ts +1 -0
  57. package/dist/test/catalog-api.test.js +164 -0
  58. package/dist/test/catalog-api.test.js.map +1 -0
  59. package/dist/test/core-conformance.test.d.ts +1 -0
  60. package/dist/test/core-conformance.test.js +148 -0
  61. package/dist/test/core-conformance.test.js.map +1 -0
  62. package/dist/test/core-helpers.test.d.ts +1 -0
  63. package/dist/test/core-helpers.test.js +66 -0
  64. package/dist/test/core-helpers.test.js.map +1 -0
  65. package/dist/test/core-registry.test.d.ts +1 -0
  66. package/dist/test/core-registry.test.js +51 -0
  67. package/dist/test/core-registry.test.js.map +1 -0
  68. package/dist/test/descriptors.test.d.ts +1 -0
  69. package/dist/test/descriptors.test.js +57 -0
  70. package/dist/test/descriptors.test.js.map +1 -0
  71. package/dist/test/identity.test.d.ts +1 -0
  72. package/dist/test/identity.test.js +79 -0
  73. package/dist/test/identity.test.js.map +1 -0
  74. package/package.json +45 -4
  75. package/README.md +0 -3
@@ -0,0 +1,2752 @@
1
+ import { z } from 'zod';
2
+ export declare const contractVersionHeader = "x-memory-contract";
3
+ export declare const SourcesResponse: z.ZodObject<{
4
+ providers: z.ZodArray<z.ZodObject<{
5
+ id: z.ZodEnum<["confluence", "github"]>;
6
+ label: z.ZodString;
7
+ skillId: z.ZodString;
8
+ contentFormats: z.ZodArray<z.ZodEnum<["confluence_storage", "markdown"]>, "many">;
9
+ nodeTypes: z.ZodArray<z.ZodObject<{
10
+ type: z.ZodString;
11
+ label: z.ZodString;
12
+ browsable: z.ZodBoolean;
13
+ selectable: z.ZodBoolean;
14
+ hasChildren: z.ZodBoolean;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: string;
17
+ hasChildren: boolean;
18
+ selectable: boolean;
19
+ label: string;
20
+ browsable: boolean;
21
+ }, {
22
+ type: string;
23
+ hasChildren: boolean;
24
+ selectable: boolean;
25
+ label: string;
26
+ browsable: boolean;
27
+ }>, "many">;
28
+ capabilities: z.ZodObject<{
29
+ browse: z.ZodBoolean;
30
+ read: z.ZodBoolean;
31
+ write: z.ZodBoolean;
32
+ }, "strip", z.ZodTypeAny, {
33
+ browse: boolean;
34
+ read: boolean;
35
+ write: boolean;
36
+ }, {
37
+ browse: boolean;
38
+ read: boolean;
39
+ write: boolean;
40
+ }>;
41
+ selectableFileExtensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ id: "confluence" | "github";
44
+ label: string;
45
+ skillId: string;
46
+ contentFormats: ("confluence_storage" | "markdown")[];
47
+ nodeTypes: {
48
+ type: string;
49
+ hasChildren: boolean;
50
+ selectable: boolean;
51
+ label: string;
52
+ browsable: boolean;
53
+ }[];
54
+ capabilities: {
55
+ browse: boolean;
56
+ read: boolean;
57
+ write: boolean;
58
+ };
59
+ selectableFileExtensions?: string[] | undefined;
60
+ }, {
61
+ id: "confluence" | "github";
62
+ label: string;
63
+ skillId: string;
64
+ contentFormats: ("confluence_storage" | "markdown")[];
65
+ nodeTypes: {
66
+ type: string;
67
+ hasChildren: boolean;
68
+ selectable: boolean;
69
+ label: string;
70
+ browsable: boolean;
71
+ }[];
72
+ capabilities: {
73
+ browse: boolean;
74
+ read: boolean;
75
+ write: boolean;
76
+ };
77
+ selectableFileExtensions?: string[] | undefined;
78
+ }>, "many">;
79
+ connections: z.ZodArray<z.ZodObject<{
80
+ connectionId: z.ZodString;
81
+ provider: z.ZodEnum<["confluence", "github"]>;
82
+ label: z.ZodString;
83
+ status: z.ZodEnum<["connected", "authorization_required", "app_not_installed"]>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ connectionId: string;
86
+ status: "authorization_required" | "connected" | "app_not_installed";
87
+ provider: "confluence" | "github";
88
+ label: string;
89
+ }, {
90
+ connectionId: string;
91
+ status: "authorization_required" | "connected" | "app_not_installed";
92
+ provider: "confluence" | "github";
93
+ label: string;
94
+ }>, "many">;
95
+ }, "strip", z.ZodTypeAny, {
96
+ providers: {
97
+ id: "confluence" | "github";
98
+ label: string;
99
+ skillId: string;
100
+ contentFormats: ("confluence_storage" | "markdown")[];
101
+ nodeTypes: {
102
+ type: string;
103
+ hasChildren: boolean;
104
+ selectable: boolean;
105
+ label: string;
106
+ browsable: boolean;
107
+ }[];
108
+ capabilities: {
109
+ browse: boolean;
110
+ read: boolean;
111
+ write: boolean;
112
+ };
113
+ selectableFileExtensions?: string[] | undefined;
114
+ }[];
115
+ connections: {
116
+ connectionId: string;
117
+ status: "authorization_required" | "connected" | "app_not_installed";
118
+ provider: "confluence" | "github";
119
+ label: string;
120
+ }[];
121
+ }, {
122
+ providers: {
123
+ id: "confluence" | "github";
124
+ label: string;
125
+ skillId: string;
126
+ contentFormats: ("confluence_storage" | "markdown")[];
127
+ nodeTypes: {
128
+ type: string;
129
+ hasChildren: boolean;
130
+ selectable: boolean;
131
+ label: string;
132
+ browsable: boolean;
133
+ }[];
134
+ capabilities: {
135
+ browse: boolean;
136
+ read: boolean;
137
+ write: boolean;
138
+ };
139
+ selectableFileExtensions?: string[] | undefined;
140
+ }[];
141
+ connections: {
142
+ connectionId: string;
143
+ status: "authorization_required" | "connected" | "app_not_installed";
144
+ provider: "confluence" | "github";
145
+ label: string;
146
+ }[];
147
+ }>;
148
+ export type SourcesResponse = z.infer<typeof SourcesResponse>;
149
+ export declare const ReadQuery: z.ZodObject<{
150
+ offset: z.ZodDefault<z.ZodNumber>;
151
+ contentHash: z.ZodOptional<z.ZodString>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ offset: number;
154
+ contentHash?: string | undefined;
155
+ }, {
156
+ contentHash?: string | undefined;
157
+ offset?: number | undefined;
158
+ }>;
159
+ export declare const BrowseQuery: z.ZodEffects<z.ZodObject<{
160
+ connectionId: z.ZodString;
161
+ nodeType: z.ZodDefault<z.ZodString>;
162
+ nodeId: z.ZodOptional<z.ZodString>;
163
+ cursor: z.ZodOptional<z.ZodString>;
164
+ limit: z.ZodDefault<z.ZodNumber>;
165
+ title: z.ZodOptional<z.ZodString>;
166
+ }, "strict", z.ZodTypeAny, {
167
+ connectionId: string;
168
+ nodeType: string;
169
+ limit: number;
170
+ nodeId?: string | undefined;
171
+ cursor?: string | undefined;
172
+ title?: string | undefined;
173
+ }, {
174
+ connectionId: string;
175
+ nodeType?: string | undefined;
176
+ nodeId?: string | undefined;
177
+ cursor?: string | undefined;
178
+ limit?: number | undefined;
179
+ title?: string | undefined;
180
+ }>, {
181
+ connectionId: string;
182
+ nodeType: string;
183
+ limit: number;
184
+ nodeId?: string | undefined;
185
+ cursor?: string | undefined;
186
+ title?: string | undefined;
187
+ }, {
188
+ connectionId: string;
189
+ nodeType?: string | undefined;
190
+ nodeId?: string | undefined;
191
+ cursor?: string | undefined;
192
+ limit?: number | undefined;
193
+ title?: string | undefined;
194
+ }>;
195
+ export declare const ReferenceListQuery: z.ZodObject<{
196
+ limit: z.ZodDefault<z.ZodNumber>;
197
+ offset: z.ZodDefault<z.ZodNumber>;
198
+ query: z.ZodOptional<z.ZodString>;
199
+ documentType: z.ZodOptional<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
200
+ provider: z.ZodOptional<z.ZodEnum<["confluence", "github"]>>;
201
+ activeOnly: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
202
+ enabled: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ limit: number;
205
+ offset: number;
206
+ provider?: "confluence" | "github" | undefined;
207
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
208
+ enabled?: "true" | "false" | undefined;
209
+ query?: string | undefined;
210
+ activeOnly?: "true" | "false" | undefined;
211
+ }, {
212
+ limit?: number | undefined;
213
+ provider?: "confluence" | "github" | undefined;
214
+ offset?: number | undefined;
215
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
216
+ enabled?: "true" | "false" | undefined;
217
+ query?: string | undefined;
218
+ activeOnly?: "true" | "false" | undefined;
219
+ }>;
220
+ export declare const ReferencePatch: z.ZodObject<{
221
+ expectedRevision: z.ZodNumber;
222
+ name: z.ZodOptional<z.ZodString>;
223
+ purpose: z.ZodOptional<z.ZodString>;
224
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
225
+ documentType: z.ZodOptional<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
226
+ enabled: z.ZodOptional<z.ZodBoolean>;
227
+ requestId: z.ZodOptional<z.ZodString>;
228
+ }, "strict", z.ZodTypeAny, {
229
+ expectedRevision: number;
230
+ name?: string | undefined;
231
+ purpose?: string | undefined;
232
+ tags?: string[] | undefined;
233
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
234
+ enabled?: boolean | undefined;
235
+ requestId?: string | undefined;
236
+ }, {
237
+ expectedRevision: number;
238
+ name?: string | undefined;
239
+ purpose?: string | undefined;
240
+ tags?: string[] | undefined;
241
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
242
+ enabled?: boolean | undefined;
243
+ requestId?: string | undefined;
244
+ }>;
245
+ export declare const ReferenceDelete: z.ZodObject<{
246
+ expectedRevision: z.ZodNumber;
247
+ }, "strict", z.ZodTypeAny, {
248
+ expectedRevision: number;
249
+ }, {
250
+ expectedRevision: number;
251
+ }>;
252
+ export declare const SelectionRecord: z.ZodObject<{
253
+ selectionId: z.ZodString;
254
+ connectionId: z.ZodString;
255
+ provider: z.ZodEnum<["confluence", "github"]>;
256
+ itemIds: z.ZodArray<z.ZodString, "many">;
257
+ revision: z.ZodNumber;
258
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
259
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
260
+ selectionId: z.ZodString;
261
+ connectionId: z.ZodString;
262
+ provider: z.ZodEnum<["confluence", "github"]>;
263
+ itemIds: z.ZodArray<z.ZodString, "many">;
264
+ revision: z.ZodNumber;
265
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
266
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
267
+ selectionId: z.ZodString;
268
+ connectionId: z.ZodString;
269
+ provider: z.ZodEnum<["confluence", "github"]>;
270
+ itemIds: z.ZodArray<z.ZodString, "many">;
271
+ revision: z.ZodNumber;
272
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
273
+ }, z.ZodTypeAny, "passthrough">>;
274
+ export declare const CapabilitiesResponse: z.ZodObject<{
275
+ permissions: z.ZodObject<{
276
+ canManage: z.ZodBoolean;
277
+ canCreate: z.ZodBoolean;
278
+ canUpdate: z.ZodBoolean;
279
+ canDelete: z.ZodBoolean;
280
+ }, "strip", z.ZodTypeAny, {
281
+ canManage: boolean;
282
+ canCreate: boolean;
283
+ canUpdate: boolean;
284
+ canDelete: boolean;
285
+ }, {
286
+ canManage: boolean;
287
+ canCreate: boolean;
288
+ canUpdate: boolean;
289
+ canDelete: boolean;
290
+ }>;
291
+ enabled: z.ZodBoolean;
292
+ apiVersion: z.ZodOptional<z.ZodNumber>;
293
+ kind: z.ZodOptional<z.ZodString>;
294
+ providers: z.ZodArray<z.ZodEnum<["confluence", "github"]>, "many">;
295
+ maxSelection: z.ZodNumber;
296
+ }, "strip", z.ZodTypeAny, {
297
+ enabled: boolean;
298
+ providers: ("confluence" | "github")[];
299
+ permissions: {
300
+ canManage: boolean;
301
+ canCreate: boolean;
302
+ canUpdate: boolean;
303
+ canDelete: boolean;
304
+ };
305
+ maxSelection: number;
306
+ apiVersion?: number | undefined;
307
+ kind?: string | undefined;
308
+ }, {
309
+ enabled: boolean;
310
+ providers: ("confluence" | "github")[];
311
+ permissions: {
312
+ canManage: boolean;
313
+ canCreate: boolean;
314
+ canUpdate: boolean;
315
+ canDelete: boolean;
316
+ };
317
+ maxSelection: number;
318
+ apiVersion?: number | undefined;
319
+ kind?: string | undefined;
320
+ }>;
321
+ export type CapabilitiesResponse = z.infer<typeof CapabilitiesResponse>;
322
+ export declare const SettingsResponse: z.ZodObject<{
323
+ default: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
324
+ provider: z.ZodLiteral<"confluence">;
325
+ connectionId: z.ZodString;
326
+ spaceId: z.ZodOptional<z.ZodString>;
327
+ parentId: z.ZodOptional<z.ZodString>;
328
+ parentType: z.ZodOptional<z.ZodEnum<["page", "folder"]>>;
329
+ }, "strict", z.ZodTypeAny, {
330
+ connectionId: string;
331
+ provider: "confluence";
332
+ parentId?: string | undefined;
333
+ parentType?: "folder" | "page" | undefined;
334
+ spaceId?: string | undefined;
335
+ }, {
336
+ connectionId: string;
337
+ provider: "confluence";
338
+ parentId?: string | undefined;
339
+ parentType?: "folder" | "page" | undefined;
340
+ spaceId?: string | undefined;
341
+ }>, {
342
+ connectionId: string;
343
+ provider: "confluence";
344
+ parentId?: string | undefined;
345
+ parentType?: "folder" | "page" | undefined;
346
+ spaceId?: string | undefined;
347
+ }, {
348
+ connectionId: string;
349
+ provider: "confluence";
350
+ parentId?: string | undefined;
351
+ parentType?: "folder" | "page" | undefined;
352
+ spaceId?: string | undefined;
353
+ }>, z.ZodObject<{
354
+ provider: z.ZodLiteral<"github">;
355
+ connectionId: z.ZodString;
356
+ repositoryId: z.ZodNumber;
357
+ branch: z.ZodEffects<z.ZodString, string, string>;
358
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
359
+ }, "strict", z.ZodTypeAny, {
360
+ connectionId: string;
361
+ provider: "github";
362
+ repositoryId: number;
363
+ branch: string;
364
+ path?: string | undefined;
365
+ }, {
366
+ connectionId: string;
367
+ provider: "github";
368
+ repositoryId: number;
369
+ branch: string;
370
+ path?: string | undefined;
371
+ }>]>>;
372
+ revision: z.ZodNumber;
373
+ available: z.ZodBoolean;
374
+ }, "strip", z.ZodTypeAny, {
375
+ revision: number;
376
+ default: {
377
+ connectionId: string;
378
+ provider: "confluence";
379
+ parentId?: string | undefined;
380
+ parentType?: "folder" | "page" | undefined;
381
+ spaceId?: string | undefined;
382
+ } | {
383
+ connectionId: string;
384
+ provider: "github";
385
+ repositoryId: number;
386
+ branch: string;
387
+ path?: string | undefined;
388
+ } | null;
389
+ available: boolean;
390
+ }, {
391
+ revision: number;
392
+ default: {
393
+ connectionId: string;
394
+ provider: "confluence";
395
+ parentId?: string | undefined;
396
+ parentType?: "folder" | "page" | undefined;
397
+ spaceId?: string | undefined;
398
+ } | {
399
+ connectionId: string;
400
+ provider: "github";
401
+ repositoryId: number;
402
+ branch: string;
403
+ path?: string | undefined;
404
+ } | null;
405
+ available: boolean;
406
+ }>;
407
+ /** Phase 1 Gateway Memory routes under /memory. `query`/`request` validate input, `response` the 2xx body. */
408
+ export declare const MemoryRoutes: {
409
+ readonly capabilities: {
410
+ readonly response: z.ZodObject<{
411
+ permissions: z.ZodObject<{
412
+ canManage: z.ZodBoolean;
413
+ canCreate: z.ZodBoolean;
414
+ canUpdate: z.ZodBoolean;
415
+ canDelete: z.ZodBoolean;
416
+ }, "strip", z.ZodTypeAny, {
417
+ canManage: boolean;
418
+ canCreate: boolean;
419
+ canUpdate: boolean;
420
+ canDelete: boolean;
421
+ }, {
422
+ canManage: boolean;
423
+ canCreate: boolean;
424
+ canUpdate: boolean;
425
+ canDelete: boolean;
426
+ }>;
427
+ enabled: z.ZodBoolean;
428
+ apiVersion: z.ZodOptional<z.ZodNumber>;
429
+ kind: z.ZodOptional<z.ZodString>;
430
+ providers: z.ZodArray<z.ZodEnum<["confluence", "github"]>, "many">;
431
+ maxSelection: z.ZodNumber;
432
+ }, "strip", z.ZodTypeAny, {
433
+ enabled: boolean;
434
+ providers: ("confluence" | "github")[];
435
+ permissions: {
436
+ canManage: boolean;
437
+ canCreate: boolean;
438
+ canUpdate: boolean;
439
+ canDelete: boolean;
440
+ };
441
+ maxSelection: number;
442
+ apiVersion?: number | undefined;
443
+ kind?: string | undefined;
444
+ }, {
445
+ enabled: boolean;
446
+ providers: ("confluence" | "github")[];
447
+ permissions: {
448
+ canManage: boolean;
449
+ canCreate: boolean;
450
+ canUpdate: boolean;
451
+ canDelete: boolean;
452
+ };
453
+ maxSelection: number;
454
+ apiVersion?: number | undefined;
455
+ kind?: string | undefined;
456
+ }>;
457
+ readonly method: "GET";
458
+ readonly path: "/capabilities";
459
+ };
460
+ readonly sources: {
461
+ readonly response: z.ZodObject<{
462
+ providers: z.ZodArray<z.ZodObject<{
463
+ id: z.ZodEnum<["confluence", "github"]>;
464
+ label: z.ZodString;
465
+ skillId: z.ZodString;
466
+ contentFormats: z.ZodArray<z.ZodEnum<["confluence_storage", "markdown"]>, "many">;
467
+ nodeTypes: z.ZodArray<z.ZodObject<{
468
+ type: z.ZodString;
469
+ label: z.ZodString;
470
+ browsable: z.ZodBoolean;
471
+ selectable: z.ZodBoolean;
472
+ hasChildren: z.ZodBoolean;
473
+ }, "strip", z.ZodTypeAny, {
474
+ type: string;
475
+ hasChildren: boolean;
476
+ selectable: boolean;
477
+ label: string;
478
+ browsable: boolean;
479
+ }, {
480
+ type: string;
481
+ hasChildren: boolean;
482
+ selectable: boolean;
483
+ label: string;
484
+ browsable: boolean;
485
+ }>, "many">;
486
+ capabilities: z.ZodObject<{
487
+ browse: z.ZodBoolean;
488
+ read: z.ZodBoolean;
489
+ write: z.ZodBoolean;
490
+ }, "strip", z.ZodTypeAny, {
491
+ browse: boolean;
492
+ read: boolean;
493
+ write: boolean;
494
+ }, {
495
+ browse: boolean;
496
+ read: boolean;
497
+ write: boolean;
498
+ }>;
499
+ selectableFileExtensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ id: "confluence" | "github";
502
+ label: string;
503
+ skillId: string;
504
+ contentFormats: ("confluence_storage" | "markdown")[];
505
+ nodeTypes: {
506
+ type: string;
507
+ hasChildren: boolean;
508
+ selectable: boolean;
509
+ label: string;
510
+ browsable: boolean;
511
+ }[];
512
+ capabilities: {
513
+ browse: boolean;
514
+ read: boolean;
515
+ write: boolean;
516
+ };
517
+ selectableFileExtensions?: string[] | undefined;
518
+ }, {
519
+ id: "confluence" | "github";
520
+ label: string;
521
+ skillId: string;
522
+ contentFormats: ("confluence_storage" | "markdown")[];
523
+ nodeTypes: {
524
+ type: string;
525
+ hasChildren: boolean;
526
+ selectable: boolean;
527
+ label: string;
528
+ browsable: boolean;
529
+ }[];
530
+ capabilities: {
531
+ browse: boolean;
532
+ read: boolean;
533
+ write: boolean;
534
+ };
535
+ selectableFileExtensions?: string[] | undefined;
536
+ }>, "many">;
537
+ connections: z.ZodArray<z.ZodObject<{
538
+ connectionId: z.ZodString;
539
+ provider: z.ZodEnum<["confluence", "github"]>;
540
+ label: z.ZodString;
541
+ status: z.ZodEnum<["connected", "authorization_required", "app_not_installed"]>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ connectionId: string;
544
+ status: "authorization_required" | "connected" | "app_not_installed";
545
+ provider: "confluence" | "github";
546
+ label: string;
547
+ }, {
548
+ connectionId: string;
549
+ status: "authorization_required" | "connected" | "app_not_installed";
550
+ provider: "confluence" | "github";
551
+ label: string;
552
+ }>, "many">;
553
+ }, "strip", z.ZodTypeAny, {
554
+ providers: {
555
+ id: "confluence" | "github";
556
+ label: string;
557
+ skillId: string;
558
+ contentFormats: ("confluence_storage" | "markdown")[];
559
+ nodeTypes: {
560
+ type: string;
561
+ hasChildren: boolean;
562
+ selectable: boolean;
563
+ label: string;
564
+ browsable: boolean;
565
+ }[];
566
+ capabilities: {
567
+ browse: boolean;
568
+ read: boolean;
569
+ write: boolean;
570
+ };
571
+ selectableFileExtensions?: string[] | undefined;
572
+ }[];
573
+ connections: {
574
+ connectionId: string;
575
+ status: "authorization_required" | "connected" | "app_not_installed";
576
+ provider: "confluence" | "github";
577
+ label: string;
578
+ }[];
579
+ }, {
580
+ providers: {
581
+ id: "confluence" | "github";
582
+ label: string;
583
+ skillId: string;
584
+ contentFormats: ("confluence_storage" | "markdown")[];
585
+ nodeTypes: {
586
+ type: string;
587
+ hasChildren: boolean;
588
+ selectable: boolean;
589
+ label: string;
590
+ browsable: boolean;
591
+ }[];
592
+ capabilities: {
593
+ browse: boolean;
594
+ read: boolean;
595
+ write: boolean;
596
+ };
597
+ selectableFileExtensions?: string[] | undefined;
598
+ }[];
599
+ connections: {
600
+ connectionId: string;
601
+ status: "authorization_required" | "connected" | "app_not_installed";
602
+ provider: "confluence" | "github";
603
+ label: string;
604
+ }[];
605
+ }>;
606
+ readonly method: "GET";
607
+ readonly path: "/sources";
608
+ };
609
+ readonly browse: {
610
+ readonly query: z.ZodEffects<z.ZodObject<{
611
+ connectionId: z.ZodString;
612
+ nodeType: z.ZodDefault<z.ZodString>;
613
+ nodeId: z.ZodOptional<z.ZodString>;
614
+ cursor: z.ZodOptional<z.ZodString>;
615
+ limit: z.ZodDefault<z.ZodNumber>;
616
+ title: z.ZodOptional<z.ZodString>;
617
+ }, "strict", z.ZodTypeAny, {
618
+ connectionId: string;
619
+ nodeType: string;
620
+ limit: number;
621
+ nodeId?: string | undefined;
622
+ cursor?: string | undefined;
623
+ title?: string | undefined;
624
+ }, {
625
+ connectionId: string;
626
+ nodeType?: string | undefined;
627
+ nodeId?: string | undefined;
628
+ cursor?: string | undefined;
629
+ limit?: number | undefined;
630
+ title?: string | undefined;
631
+ }>, {
632
+ connectionId: string;
633
+ nodeType: string;
634
+ limit: number;
635
+ nodeId?: string | undefined;
636
+ cursor?: string | undefined;
637
+ title?: string | undefined;
638
+ }, {
639
+ connectionId: string;
640
+ nodeType?: string | undefined;
641
+ nodeId?: string | undefined;
642
+ cursor?: string | undefined;
643
+ limit?: number | undefined;
644
+ title?: string | undefined;
645
+ }>;
646
+ readonly response: z.ZodObject<{
647
+ items: z.ZodArray<z.ZodObject<{
648
+ id: z.ZodString;
649
+ title: z.ZodString;
650
+ type: z.ZodString;
651
+ hasChildren: z.ZodOptional<z.ZodBoolean>;
652
+ selectable: z.ZodOptional<z.ZodBoolean>;
653
+ size: z.ZodOptional<z.ZodNumber>;
654
+ path: z.ZodOptional<z.ZodString>;
655
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ parentKnown: z.ZodOptional<z.ZodBoolean>;
657
+ parentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
+ spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
+ homepageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ defaultBranch: z.ZodOptional<z.ZodString>;
661
+ private: z.ZodOptional<z.ZodBoolean>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: string;
664
+ id: string;
665
+ title: string;
666
+ path?: string | undefined;
667
+ hasChildren?: boolean | undefined;
668
+ selectable?: boolean | undefined;
669
+ size?: number | undefined;
670
+ parentId?: string | null | undefined;
671
+ parentKnown?: boolean | undefined;
672
+ parentType?: string | null | undefined;
673
+ spaceId?: string | null | undefined;
674
+ homepageId?: string | null | undefined;
675
+ defaultBranch?: string | undefined;
676
+ private?: boolean | undefined;
677
+ }, {
678
+ type: string;
679
+ id: string;
680
+ title: string;
681
+ path?: string | undefined;
682
+ hasChildren?: boolean | undefined;
683
+ selectable?: boolean | undefined;
684
+ size?: number | undefined;
685
+ parentId?: string | null | undefined;
686
+ parentKnown?: boolean | undefined;
687
+ parentType?: string | null | undefined;
688
+ spaceId?: string | null | undefined;
689
+ homepageId?: string | null | undefined;
690
+ defaultBranch?: string | undefined;
691
+ private?: boolean | undefined;
692
+ }>, "many">;
693
+ nextCursor: z.ZodNullable<z.ZodString>;
694
+ coverage: z.ZodEnum<["paginated_children", "paginated_accessible_repositories", "paginated_branches", "directory_listing_may_be_truncated_by_github", "paginated_pages_and_folders_not_complete_content_tree"]>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ items: {
697
+ type: string;
698
+ id: string;
699
+ title: string;
700
+ path?: string | undefined;
701
+ hasChildren?: boolean | undefined;
702
+ selectable?: boolean | undefined;
703
+ size?: number | undefined;
704
+ parentId?: string | null | undefined;
705
+ parentKnown?: boolean | undefined;
706
+ parentType?: string | null | undefined;
707
+ spaceId?: string | null | undefined;
708
+ homepageId?: string | null | undefined;
709
+ defaultBranch?: string | undefined;
710
+ private?: boolean | undefined;
711
+ }[];
712
+ nextCursor: string | null;
713
+ coverage: "paginated_children" | "paginated_accessible_repositories" | "paginated_branches" | "directory_listing_may_be_truncated_by_github" | "paginated_pages_and_folders_not_complete_content_tree";
714
+ }, {
715
+ items: {
716
+ type: string;
717
+ id: string;
718
+ title: string;
719
+ path?: string | undefined;
720
+ hasChildren?: boolean | undefined;
721
+ selectable?: boolean | undefined;
722
+ size?: number | undefined;
723
+ parentId?: string | null | undefined;
724
+ parentKnown?: boolean | undefined;
725
+ parentType?: string | null | undefined;
726
+ spaceId?: string | null | undefined;
727
+ homepageId?: string | null | undefined;
728
+ defaultBranch?: string | undefined;
729
+ private?: boolean | undefined;
730
+ }[];
731
+ nextCursor: string | null;
732
+ coverage: "paginated_children" | "paginated_accessible_repositories" | "paginated_branches" | "directory_listing_may_be_truncated_by_github" | "paginated_pages_and_folders_not_complete_content_tree";
733
+ }>;
734
+ readonly method: "GET";
735
+ readonly path: "/browse";
736
+ };
737
+ readonly createSelection: {
738
+ readonly request: z.ZodObject<{
739
+ connectionId: z.ZodString;
740
+ itemIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
741
+ }, "strict", z.ZodTypeAny, {
742
+ connectionId: string;
743
+ itemIds: string[];
744
+ }, {
745
+ connectionId: string;
746
+ itemIds: string[];
747
+ }>;
748
+ readonly response: z.ZodObject<{
749
+ selectionId: z.ZodString;
750
+ connectionId: z.ZodString;
751
+ provider: z.ZodEnum<["confluence", "github"]>;
752
+ itemIds: z.ZodArray<z.ZodString, "many">;
753
+ revision: z.ZodNumber;
754
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
755
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
756
+ selectionId: z.ZodString;
757
+ connectionId: z.ZodString;
758
+ provider: z.ZodEnum<["confluence", "github"]>;
759
+ itemIds: z.ZodArray<z.ZodString, "many">;
760
+ revision: z.ZodNumber;
761
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
762
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
763
+ selectionId: z.ZodString;
764
+ connectionId: z.ZodString;
765
+ provider: z.ZodEnum<["confluence", "github"]>;
766
+ itemIds: z.ZodArray<z.ZodString, "many">;
767
+ revision: z.ZodNumber;
768
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
769
+ }, z.ZodTypeAny, "passthrough">>;
770
+ readonly method: "POST";
771
+ readonly path: "/selections";
772
+ };
773
+ readonly getSelection: {
774
+ readonly response: z.ZodObject<{
775
+ selectionId: z.ZodString;
776
+ connectionId: z.ZodString;
777
+ provider: z.ZodEnum<["confluence", "github"]>;
778
+ itemIds: z.ZodArray<z.ZodString, "many">;
779
+ revision: z.ZodNumber;
780
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
781
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
782
+ selectionId: z.ZodString;
783
+ connectionId: z.ZodString;
784
+ provider: z.ZodEnum<["confluence", "github"]>;
785
+ itemIds: z.ZodArray<z.ZodString, "many">;
786
+ revision: z.ZodNumber;
787
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
788
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
789
+ selectionId: z.ZodString;
790
+ connectionId: z.ZodString;
791
+ provider: z.ZodEnum<["confluence", "github"]>;
792
+ itemIds: z.ZodArray<z.ZodString, "many">;
793
+ revision: z.ZodNumber;
794
+ state: z.ZodEnum<["selected", "review", "saving", "saved", "cancelled"]>;
795
+ }, z.ZodTypeAny, "passthrough">>;
796
+ readonly method: "GET";
797
+ readonly path: "/selections/:id";
798
+ };
799
+ readonly readCandidate: {
800
+ readonly query: z.ZodObject<{
801
+ offset: z.ZodDefault<z.ZodNumber>;
802
+ contentHash: z.ZodOptional<z.ZodString>;
803
+ }, "strip", z.ZodTypeAny, {
804
+ offset: number;
805
+ contentHash?: string | undefined;
806
+ }, {
807
+ contentHash?: string | undefined;
808
+ offset?: number | undefined;
809
+ }>;
810
+ readonly response: z.ZodObject<{
811
+ outcome: z.ZodLiteral<"read">;
812
+ title: z.ZodString;
813
+ content: z.ZodString;
814
+ contentFormat: z.ZodEnum<["confluence_storage", "markdown"]>;
815
+ citation: z.ZodEffects<z.ZodObject<{
816
+ provider: z.ZodEnum<["confluence", "github"]>;
817
+ locator: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
818
+ provider: z.ZodLiteral<"confluence">;
819
+ siteNamespace: z.ZodString;
820
+ pageId: z.ZodString;
821
+ }, "strip", z.ZodTypeAny, {
822
+ provider: "confluence";
823
+ siteNamespace: string;
824
+ pageId: string;
825
+ }, {
826
+ provider: "confluence";
827
+ siteNamespace: string;
828
+ pageId: string;
829
+ }>, z.ZodObject<{
830
+ provider: z.ZodLiteral<"github">;
831
+ repositoryId: z.ZodNumber;
832
+ branch: z.ZodString;
833
+ path: z.ZodEffects<z.ZodString, string, string>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ path: string;
836
+ provider: "github";
837
+ repositoryId: number;
838
+ branch: string;
839
+ }, {
840
+ path: string;
841
+ provider: "github";
842
+ repositoryId: number;
843
+ branch: string;
844
+ }>]>;
845
+ itemId: z.ZodString;
846
+ title: z.ZodString;
847
+ href: z.ZodString;
848
+ sourceRevision: z.ZodString;
849
+ contentHash: z.ZodString;
850
+ readAt: z.ZodString;
851
+ referenceId: z.ZodOptional<z.ZodString>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ title: string;
854
+ provider: "confluence" | "github";
855
+ locator: {
856
+ provider: "confluence";
857
+ siteNamespace: string;
858
+ pageId: string;
859
+ } | {
860
+ path: string;
861
+ provider: "github";
862
+ repositoryId: number;
863
+ branch: string;
864
+ };
865
+ itemId: string;
866
+ href: string;
867
+ sourceRevision: string;
868
+ contentHash: string;
869
+ readAt: string;
870
+ referenceId?: string | undefined;
871
+ }, {
872
+ title: string;
873
+ provider: "confluence" | "github";
874
+ locator: {
875
+ provider: "confluence";
876
+ siteNamespace: string;
877
+ pageId: string;
878
+ } | {
879
+ path: string;
880
+ provider: "github";
881
+ repositoryId: number;
882
+ branch: string;
883
+ };
884
+ itemId: string;
885
+ href: string;
886
+ sourceRevision: string;
887
+ contentHash: string;
888
+ readAt: string;
889
+ referenceId?: string | undefined;
890
+ }>, {
891
+ title: string;
892
+ provider: "confluence" | "github";
893
+ locator: {
894
+ provider: "confluence";
895
+ siteNamespace: string;
896
+ pageId: string;
897
+ } | {
898
+ path: string;
899
+ provider: "github";
900
+ repositoryId: number;
901
+ branch: string;
902
+ };
903
+ itemId: string;
904
+ href: string;
905
+ sourceRevision: string;
906
+ contentHash: string;
907
+ readAt: string;
908
+ referenceId?: string | undefined;
909
+ }, {
910
+ title: string;
911
+ provider: "confluence" | "github";
912
+ locator: {
913
+ provider: "confluence";
914
+ siteNamespace: string;
915
+ pageId: string;
916
+ } | {
917
+ path: string;
918
+ provider: "github";
919
+ repositoryId: number;
920
+ branch: string;
921
+ };
922
+ itemId: string;
923
+ href: string;
924
+ sourceRevision: string;
925
+ contentHash: string;
926
+ readAt: string;
927
+ referenceId?: string | undefined;
928
+ }>;
929
+ coverage: z.ZodObject<{
930
+ offset: z.ZodNumber;
931
+ end: z.ZodNumber;
932
+ totalCharacters: z.ZodNumber;
933
+ complete: z.ZodBoolean;
934
+ nextOffset: z.ZodNullable<z.ZodNumber>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ offset: number;
937
+ end: number;
938
+ totalCharacters: number;
939
+ complete: boolean;
940
+ nextOffset: number | null;
941
+ }, {
942
+ offset: number;
943
+ end: number;
944
+ totalCharacters: number;
945
+ complete: boolean;
946
+ nextOffset: number | null;
947
+ }>;
948
+ warnings: z.ZodArray<z.ZodEnum<["images_not_read", "attachments_or_macros_not_expanded", "freshness_changed"]>, "many">;
949
+ }, "strip", z.ZodTypeAny, {
950
+ title: string;
951
+ coverage: {
952
+ offset: number;
953
+ end: number;
954
+ totalCharacters: number;
955
+ complete: boolean;
956
+ nextOffset: number | null;
957
+ };
958
+ outcome: "read";
959
+ content: string;
960
+ contentFormat: "confluence_storage" | "markdown";
961
+ citation: {
962
+ title: string;
963
+ provider: "confluence" | "github";
964
+ locator: {
965
+ provider: "confluence";
966
+ siteNamespace: string;
967
+ pageId: string;
968
+ } | {
969
+ path: string;
970
+ provider: "github";
971
+ repositoryId: number;
972
+ branch: string;
973
+ };
974
+ itemId: string;
975
+ href: string;
976
+ sourceRevision: string;
977
+ contentHash: string;
978
+ readAt: string;
979
+ referenceId?: string | undefined;
980
+ };
981
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
982
+ }, {
983
+ title: string;
984
+ coverage: {
985
+ offset: number;
986
+ end: number;
987
+ totalCharacters: number;
988
+ complete: boolean;
989
+ nextOffset: number | null;
990
+ };
991
+ outcome: "read";
992
+ content: string;
993
+ contentFormat: "confluence_storage" | "markdown";
994
+ citation: {
995
+ title: string;
996
+ provider: "confluence" | "github";
997
+ locator: {
998
+ provider: "confluence";
999
+ siteNamespace: string;
1000
+ pageId: string;
1001
+ } | {
1002
+ path: string;
1003
+ provider: "github";
1004
+ repositoryId: number;
1005
+ branch: string;
1006
+ };
1007
+ itemId: string;
1008
+ href: string;
1009
+ sourceRevision: string;
1010
+ contentHash: string;
1011
+ readAt: string;
1012
+ referenceId?: string | undefined;
1013
+ };
1014
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1015
+ }>;
1016
+ readonly method: "GET";
1017
+ readonly path: "/selections/:id/items/:itemId/read";
1018
+ };
1019
+ readonly propose: {
1020
+ readonly request: z.ZodObject<{
1021
+ expectedRevision: z.ZodNumber;
1022
+ sourceHashes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1023
+ entries: z.ZodEffects<z.ZodArray<z.ZodObject<{
1024
+ itemId: z.ZodString;
1025
+ name: z.ZodString;
1026
+ purpose: z.ZodString;
1027
+ tags: z.ZodArray<z.ZodString, "many">;
1028
+ documentType: z.ZodDefault<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
1029
+ }, "strict", z.ZodTypeAny, {
1030
+ itemId: string;
1031
+ name: string;
1032
+ purpose: string;
1033
+ tags: string[];
1034
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1035
+ }, {
1036
+ itemId: string;
1037
+ name: string;
1038
+ purpose: string;
1039
+ tags: string[];
1040
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1041
+ }>, "many">, {
1042
+ itemId: string;
1043
+ name: string;
1044
+ purpose: string;
1045
+ tags: string[];
1046
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1047
+ }[], {
1048
+ itemId: string;
1049
+ name: string;
1050
+ purpose: string;
1051
+ tags: string[];
1052
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1053
+ }[]>;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ entries: {
1056
+ itemId: string;
1057
+ name: string;
1058
+ purpose: string;
1059
+ tags: string[];
1060
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1061
+ }[];
1062
+ expectedRevision: number;
1063
+ sourceHashes?: Record<string, string> | undefined;
1064
+ }, {
1065
+ entries: {
1066
+ itemId: string;
1067
+ name: string;
1068
+ purpose: string;
1069
+ tags: string[];
1070
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1071
+ }[];
1072
+ expectedRevision: number;
1073
+ sourceHashes?: Record<string, string> | undefined;
1074
+ }>;
1075
+ readonly response: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1076
+ readonly method: "POST";
1077
+ readonly path: "/selections/:id/proposal";
1078
+ };
1079
+ readonly save: {
1080
+ readonly request: z.ZodObject<Omit<{
1081
+ expectedRevision: z.ZodNumber;
1082
+ sourceHashes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1083
+ entries: z.ZodEffects<z.ZodArray<z.ZodObject<{
1084
+ itemId: z.ZodString;
1085
+ name: z.ZodString;
1086
+ purpose: z.ZodString;
1087
+ tags: z.ZodArray<z.ZodString, "many">;
1088
+ documentType: z.ZodDefault<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
1089
+ }, "strict", z.ZodTypeAny, {
1090
+ itemId: string;
1091
+ name: string;
1092
+ purpose: string;
1093
+ tags: string[];
1094
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1095
+ }, {
1096
+ itemId: string;
1097
+ name: string;
1098
+ purpose: string;
1099
+ tags: string[];
1100
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1101
+ }>, "many">, {
1102
+ itemId: string;
1103
+ name: string;
1104
+ purpose: string;
1105
+ tags: string[];
1106
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1107
+ }[], {
1108
+ itemId: string;
1109
+ name: string;
1110
+ purpose: string;
1111
+ tags: string[];
1112
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1113
+ }[]>;
1114
+ }, "sourceHashes"> & {
1115
+ requestId: z.ZodString;
1116
+ }, "strict", z.ZodTypeAny, {
1117
+ entries: {
1118
+ itemId: string;
1119
+ name: string;
1120
+ purpose: string;
1121
+ tags: string[];
1122
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1123
+ }[];
1124
+ expectedRevision: number;
1125
+ requestId: string;
1126
+ }, {
1127
+ entries: {
1128
+ itemId: string;
1129
+ name: string;
1130
+ purpose: string;
1131
+ tags: string[];
1132
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1133
+ }[];
1134
+ expectedRevision: number;
1135
+ requestId: string;
1136
+ }>;
1137
+ readonly response: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1138
+ readonly method: "POST";
1139
+ readonly path: "/selections/:id/save";
1140
+ };
1141
+ readonly cancel: {
1142
+ readonly response: z.ZodObject<{
1143
+ cancelled: z.ZodBoolean;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ cancelled: boolean;
1146
+ }, {
1147
+ cancelled: boolean;
1148
+ }>;
1149
+ readonly method: "POST";
1150
+ readonly path: "/selections/:id/cancel";
1151
+ };
1152
+ readonly listReferences: {
1153
+ readonly query: z.ZodObject<{
1154
+ limit: z.ZodDefault<z.ZodNumber>;
1155
+ offset: z.ZodDefault<z.ZodNumber>;
1156
+ query: z.ZodOptional<z.ZodString>;
1157
+ documentType: z.ZodOptional<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
1158
+ provider: z.ZodOptional<z.ZodEnum<["confluence", "github"]>>;
1159
+ activeOnly: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1160
+ enabled: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ limit: number;
1163
+ offset: number;
1164
+ provider?: "confluence" | "github" | undefined;
1165
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1166
+ enabled?: "true" | "false" | undefined;
1167
+ query?: string | undefined;
1168
+ activeOnly?: "true" | "false" | undefined;
1169
+ }, {
1170
+ limit?: number | undefined;
1171
+ provider?: "confluence" | "github" | undefined;
1172
+ offset?: number | undefined;
1173
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
1174
+ enabled?: "true" | "false" | undefined;
1175
+ query?: string | undefined;
1176
+ activeOnly?: "true" | "false" | undefined;
1177
+ }>;
1178
+ readonly response: z.ZodObject<{
1179
+ references: z.ZodArray<z.ZodEffects<z.ZodObject<{
1180
+ schemaVersion: z.ZodLiteral<1>;
1181
+ referenceId: z.ZodString;
1182
+ accountId: z.ZodString;
1183
+ workspaceId: z.ZodString;
1184
+ connectionId: z.ZodString;
1185
+ provider: z.ZodEnum<["confluence", "github"]>;
1186
+ locator: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1187
+ provider: z.ZodLiteral<"confluence">;
1188
+ siteNamespace: z.ZodString;
1189
+ pageId: z.ZodString;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ provider: "confluence";
1192
+ siteNamespace: string;
1193
+ pageId: string;
1194
+ }, {
1195
+ provider: "confluence";
1196
+ siteNamespace: string;
1197
+ pageId: string;
1198
+ }>, z.ZodObject<{
1199
+ provider: z.ZodLiteral<"github">;
1200
+ repositoryId: z.ZodNumber;
1201
+ branch: z.ZodString;
1202
+ path: z.ZodEffects<z.ZodString, string, string>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ path: string;
1205
+ provider: "github";
1206
+ repositoryId: number;
1207
+ branch: string;
1208
+ }, {
1209
+ path: string;
1210
+ provider: "github";
1211
+ repositoryId: number;
1212
+ branch: string;
1213
+ }>]>;
1214
+ sourceKey: z.ZodString;
1215
+ sourceNamespace: z.ZodString;
1216
+ objectKind: z.ZodString;
1217
+ name: z.ZodString;
1218
+ purpose: z.ZodString;
1219
+ tags: z.ZodArray<z.ZodString, "many">;
1220
+ documentType: z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>;
1221
+ enabled: z.ZodBoolean;
1222
+ removed: z.ZodBoolean;
1223
+ sourceTitle: z.ZodString;
1224
+ sourceUrl: z.ZodString;
1225
+ revision: z.ZodNumber;
1226
+ provenance: z.ZodObject<{
1227
+ selectionId: z.ZodString;
1228
+ sourceRevision: z.ZodString;
1229
+ contentHash: z.ZodString;
1230
+ readAt: z.ZodString;
1231
+ warnings: z.ZodArray<z.ZodEnum<["images_not_read", "attachments_or_macros_not_expanded", "freshness_changed"]>, "many">;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ sourceRevision: string;
1234
+ contentHash: string;
1235
+ readAt: string;
1236
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1237
+ selectionId: string;
1238
+ }, {
1239
+ sourceRevision: string;
1240
+ contentHash: string;
1241
+ readAt: string;
1242
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1243
+ selectionId: string;
1244
+ }>;
1245
+ createdAt: z.ZodString;
1246
+ updatedAt: z.ZodString;
1247
+ createdBy: z.ZodString;
1248
+ updatedBy: z.ZodOptional<z.ZodString>;
1249
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
1250
+ revision: z.ZodNumber;
1251
+ name: z.ZodString;
1252
+ purpose: z.ZodString;
1253
+ tags: z.ZodArray<z.ZodString, "many">;
1254
+ documentType: z.ZodString;
1255
+ enabled: z.ZodBoolean;
1256
+ changedAt: z.ZodString;
1257
+ changedBy: z.ZodString;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ name: string;
1260
+ purpose: string;
1261
+ tags: string[];
1262
+ documentType: string;
1263
+ enabled: boolean;
1264
+ revision: number;
1265
+ changedAt: string;
1266
+ changedBy: string;
1267
+ }, {
1268
+ name: string;
1269
+ purpose: string;
1270
+ tags: string[];
1271
+ documentType: string;
1272
+ enabled: boolean;
1273
+ revision: number;
1274
+ changedAt: string;
1275
+ changedBy: string;
1276
+ }>, "many">>;
1277
+ lastUpdateRequestId: z.ZodOptional<z.ZodString>;
1278
+ lastUpdateDigest: z.ZodOptional<z.ZodString>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ connectionId: string;
1281
+ provider: "confluence" | "github";
1282
+ locator: {
1283
+ provider: "confluence";
1284
+ siteNamespace: string;
1285
+ pageId: string;
1286
+ } | {
1287
+ path: string;
1288
+ provider: "github";
1289
+ repositoryId: number;
1290
+ branch: string;
1291
+ };
1292
+ referenceId: string;
1293
+ schemaVersion: 1;
1294
+ accountId: string;
1295
+ workspaceId: string;
1296
+ sourceKey: string;
1297
+ sourceNamespace: string;
1298
+ objectKind: string;
1299
+ name: string;
1300
+ purpose: string;
1301
+ tags: string[];
1302
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1303
+ enabled: boolean;
1304
+ removed: boolean;
1305
+ sourceTitle: string;
1306
+ sourceUrl: string;
1307
+ revision: number;
1308
+ provenance: {
1309
+ sourceRevision: string;
1310
+ contentHash: string;
1311
+ readAt: string;
1312
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1313
+ selectionId: string;
1314
+ };
1315
+ createdAt: string;
1316
+ updatedAt: string;
1317
+ createdBy: string;
1318
+ updatedBy?: string | undefined;
1319
+ history?: {
1320
+ name: string;
1321
+ purpose: string;
1322
+ tags: string[];
1323
+ documentType: string;
1324
+ enabled: boolean;
1325
+ revision: number;
1326
+ changedAt: string;
1327
+ changedBy: string;
1328
+ }[] | undefined;
1329
+ lastUpdateRequestId?: string | undefined;
1330
+ lastUpdateDigest?: string | undefined;
1331
+ }, {
1332
+ connectionId: string;
1333
+ provider: "confluence" | "github";
1334
+ locator: {
1335
+ provider: "confluence";
1336
+ siteNamespace: string;
1337
+ pageId: string;
1338
+ } | {
1339
+ path: string;
1340
+ provider: "github";
1341
+ repositoryId: number;
1342
+ branch: string;
1343
+ };
1344
+ referenceId: string;
1345
+ schemaVersion: 1;
1346
+ accountId: string;
1347
+ workspaceId: string;
1348
+ sourceKey: string;
1349
+ sourceNamespace: string;
1350
+ objectKind: string;
1351
+ name: string;
1352
+ purpose: string;
1353
+ tags: string[];
1354
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1355
+ enabled: boolean;
1356
+ removed: boolean;
1357
+ sourceTitle: string;
1358
+ sourceUrl: string;
1359
+ revision: number;
1360
+ provenance: {
1361
+ sourceRevision: string;
1362
+ contentHash: string;
1363
+ readAt: string;
1364
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1365
+ selectionId: string;
1366
+ };
1367
+ createdAt: string;
1368
+ updatedAt: string;
1369
+ createdBy: string;
1370
+ updatedBy?: string | undefined;
1371
+ history?: {
1372
+ name: string;
1373
+ purpose: string;
1374
+ tags: string[];
1375
+ documentType: string;
1376
+ enabled: boolean;
1377
+ revision: number;
1378
+ changedAt: string;
1379
+ changedBy: string;
1380
+ }[] | undefined;
1381
+ lastUpdateRequestId?: string | undefined;
1382
+ lastUpdateDigest?: string | undefined;
1383
+ }>, {
1384
+ connectionId: string;
1385
+ provider: "confluence" | "github";
1386
+ locator: {
1387
+ provider: "confluence";
1388
+ siteNamespace: string;
1389
+ pageId: string;
1390
+ } | {
1391
+ path: string;
1392
+ provider: "github";
1393
+ repositoryId: number;
1394
+ branch: string;
1395
+ };
1396
+ referenceId: string;
1397
+ schemaVersion: 1;
1398
+ accountId: string;
1399
+ workspaceId: string;
1400
+ sourceKey: string;
1401
+ sourceNamespace: string;
1402
+ objectKind: string;
1403
+ name: string;
1404
+ purpose: string;
1405
+ tags: string[];
1406
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1407
+ enabled: boolean;
1408
+ removed: boolean;
1409
+ sourceTitle: string;
1410
+ sourceUrl: string;
1411
+ revision: number;
1412
+ provenance: {
1413
+ sourceRevision: string;
1414
+ contentHash: string;
1415
+ readAt: string;
1416
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1417
+ selectionId: string;
1418
+ };
1419
+ createdAt: string;
1420
+ updatedAt: string;
1421
+ createdBy: string;
1422
+ updatedBy?: string | undefined;
1423
+ history?: {
1424
+ name: string;
1425
+ purpose: string;
1426
+ tags: string[];
1427
+ documentType: string;
1428
+ enabled: boolean;
1429
+ revision: number;
1430
+ changedAt: string;
1431
+ changedBy: string;
1432
+ }[] | undefined;
1433
+ lastUpdateRequestId?: string | undefined;
1434
+ lastUpdateDigest?: string | undefined;
1435
+ }, {
1436
+ connectionId: string;
1437
+ provider: "confluence" | "github";
1438
+ locator: {
1439
+ provider: "confluence";
1440
+ siteNamespace: string;
1441
+ pageId: string;
1442
+ } | {
1443
+ path: string;
1444
+ provider: "github";
1445
+ repositoryId: number;
1446
+ branch: string;
1447
+ };
1448
+ referenceId: string;
1449
+ schemaVersion: 1;
1450
+ accountId: string;
1451
+ workspaceId: string;
1452
+ sourceKey: string;
1453
+ sourceNamespace: string;
1454
+ objectKind: string;
1455
+ name: string;
1456
+ purpose: string;
1457
+ tags: string[];
1458
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1459
+ enabled: boolean;
1460
+ removed: boolean;
1461
+ sourceTitle: string;
1462
+ sourceUrl: string;
1463
+ revision: number;
1464
+ provenance: {
1465
+ sourceRevision: string;
1466
+ contentHash: string;
1467
+ readAt: string;
1468
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1469
+ selectionId: string;
1470
+ };
1471
+ createdAt: string;
1472
+ updatedAt: string;
1473
+ createdBy: string;
1474
+ updatedBy?: string | undefined;
1475
+ history?: {
1476
+ name: string;
1477
+ purpose: string;
1478
+ tags: string[];
1479
+ documentType: string;
1480
+ enabled: boolean;
1481
+ revision: number;
1482
+ changedAt: string;
1483
+ changedBy: string;
1484
+ }[] | undefined;
1485
+ lastUpdateRequestId?: string | undefined;
1486
+ lastUpdateDigest?: string | undefined;
1487
+ }>, "many">;
1488
+ total: z.ZodNumber;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ references: {
1491
+ connectionId: string;
1492
+ provider: "confluence" | "github";
1493
+ locator: {
1494
+ provider: "confluence";
1495
+ siteNamespace: string;
1496
+ pageId: string;
1497
+ } | {
1498
+ path: string;
1499
+ provider: "github";
1500
+ repositoryId: number;
1501
+ branch: string;
1502
+ };
1503
+ referenceId: string;
1504
+ schemaVersion: 1;
1505
+ accountId: string;
1506
+ workspaceId: string;
1507
+ sourceKey: string;
1508
+ sourceNamespace: string;
1509
+ objectKind: string;
1510
+ name: string;
1511
+ purpose: string;
1512
+ tags: string[];
1513
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1514
+ enabled: boolean;
1515
+ removed: boolean;
1516
+ sourceTitle: string;
1517
+ sourceUrl: string;
1518
+ revision: number;
1519
+ provenance: {
1520
+ sourceRevision: string;
1521
+ contentHash: string;
1522
+ readAt: string;
1523
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1524
+ selectionId: string;
1525
+ };
1526
+ createdAt: string;
1527
+ updatedAt: string;
1528
+ createdBy: string;
1529
+ updatedBy?: string | undefined;
1530
+ history?: {
1531
+ name: string;
1532
+ purpose: string;
1533
+ tags: string[];
1534
+ documentType: string;
1535
+ enabled: boolean;
1536
+ revision: number;
1537
+ changedAt: string;
1538
+ changedBy: string;
1539
+ }[] | undefined;
1540
+ lastUpdateRequestId?: string | undefined;
1541
+ lastUpdateDigest?: string | undefined;
1542
+ }[];
1543
+ total: number;
1544
+ }, {
1545
+ references: {
1546
+ connectionId: string;
1547
+ provider: "confluence" | "github";
1548
+ locator: {
1549
+ provider: "confluence";
1550
+ siteNamespace: string;
1551
+ pageId: string;
1552
+ } | {
1553
+ path: string;
1554
+ provider: "github";
1555
+ repositoryId: number;
1556
+ branch: string;
1557
+ };
1558
+ referenceId: string;
1559
+ schemaVersion: 1;
1560
+ accountId: string;
1561
+ workspaceId: string;
1562
+ sourceKey: string;
1563
+ sourceNamespace: string;
1564
+ objectKind: string;
1565
+ name: string;
1566
+ purpose: string;
1567
+ tags: string[];
1568
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1569
+ enabled: boolean;
1570
+ removed: boolean;
1571
+ sourceTitle: string;
1572
+ sourceUrl: string;
1573
+ revision: number;
1574
+ provenance: {
1575
+ sourceRevision: string;
1576
+ contentHash: string;
1577
+ readAt: string;
1578
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1579
+ selectionId: string;
1580
+ };
1581
+ createdAt: string;
1582
+ updatedAt: string;
1583
+ createdBy: string;
1584
+ updatedBy?: string | undefined;
1585
+ history?: {
1586
+ name: string;
1587
+ purpose: string;
1588
+ tags: string[];
1589
+ documentType: string;
1590
+ enabled: boolean;
1591
+ revision: number;
1592
+ changedAt: string;
1593
+ changedBy: string;
1594
+ }[] | undefined;
1595
+ lastUpdateRequestId?: string | undefined;
1596
+ lastUpdateDigest?: string | undefined;
1597
+ }[];
1598
+ total: number;
1599
+ }>;
1600
+ readonly method: "GET";
1601
+ readonly path: "/references";
1602
+ };
1603
+ readonly getReference: {
1604
+ readonly response: z.ZodEffects<z.ZodObject<{
1605
+ schemaVersion: z.ZodLiteral<1>;
1606
+ referenceId: z.ZodString;
1607
+ accountId: z.ZodString;
1608
+ workspaceId: z.ZodString;
1609
+ connectionId: z.ZodString;
1610
+ provider: z.ZodEnum<["confluence", "github"]>;
1611
+ locator: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1612
+ provider: z.ZodLiteral<"confluence">;
1613
+ siteNamespace: z.ZodString;
1614
+ pageId: z.ZodString;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ provider: "confluence";
1617
+ siteNamespace: string;
1618
+ pageId: string;
1619
+ }, {
1620
+ provider: "confluence";
1621
+ siteNamespace: string;
1622
+ pageId: string;
1623
+ }>, z.ZodObject<{
1624
+ provider: z.ZodLiteral<"github">;
1625
+ repositoryId: z.ZodNumber;
1626
+ branch: z.ZodString;
1627
+ path: z.ZodEffects<z.ZodString, string, string>;
1628
+ }, "strip", z.ZodTypeAny, {
1629
+ path: string;
1630
+ provider: "github";
1631
+ repositoryId: number;
1632
+ branch: string;
1633
+ }, {
1634
+ path: string;
1635
+ provider: "github";
1636
+ repositoryId: number;
1637
+ branch: string;
1638
+ }>]>;
1639
+ sourceKey: z.ZodString;
1640
+ sourceNamespace: z.ZodString;
1641
+ objectKind: z.ZodString;
1642
+ name: z.ZodString;
1643
+ purpose: z.ZodString;
1644
+ tags: z.ZodArray<z.ZodString, "many">;
1645
+ documentType: z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>;
1646
+ enabled: z.ZodBoolean;
1647
+ removed: z.ZodBoolean;
1648
+ sourceTitle: z.ZodString;
1649
+ sourceUrl: z.ZodString;
1650
+ revision: z.ZodNumber;
1651
+ provenance: z.ZodObject<{
1652
+ selectionId: z.ZodString;
1653
+ sourceRevision: z.ZodString;
1654
+ contentHash: z.ZodString;
1655
+ readAt: z.ZodString;
1656
+ warnings: z.ZodArray<z.ZodEnum<["images_not_read", "attachments_or_macros_not_expanded", "freshness_changed"]>, "many">;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ sourceRevision: string;
1659
+ contentHash: string;
1660
+ readAt: string;
1661
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1662
+ selectionId: string;
1663
+ }, {
1664
+ sourceRevision: string;
1665
+ contentHash: string;
1666
+ readAt: string;
1667
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1668
+ selectionId: string;
1669
+ }>;
1670
+ createdAt: z.ZodString;
1671
+ updatedAt: z.ZodString;
1672
+ createdBy: z.ZodString;
1673
+ updatedBy: z.ZodOptional<z.ZodString>;
1674
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
1675
+ revision: z.ZodNumber;
1676
+ name: z.ZodString;
1677
+ purpose: z.ZodString;
1678
+ tags: z.ZodArray<z.ZodString, "many">;
1679
+ documentType: z.ZodString;
1680
+ enabled: z.ZodBoolean;
1681
+ changedAt: z.ZodString;
1682
+ changedBy: z.ZodString;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ name: string;
1685
+ purpose: string;
1686
+ tags: string[];
1687
+ documentType: string;
1688
+ enabled: boolean;
1689
+ revision: number;
1690
+ changedAt: string;
1691
+ changedBy: string;
1692
+ }, {
1693
+ name: string;
1694
+ purpose: string;
1695
+ tags: string[];
1696
+ documentType: string;
1697
+ enabled: boolean;
1698
+ revision: number;
1699
+ changedAt: string;
1700
+ changedBy: string;
1701
+ }>, "many">>;
1702
+ lastUpdateRequestId: z.ZodOptional<z.ZodString>;
1703
+ lastUpdateDigest: z.ZodOptional<z.ZodString>;
1704
+ }, "strip", z.ZodTypeAny, {
1705
+ connectionId: string;
1706
+ provider: "confluence" | "github";
1707
+ locator: {
1708
+ provider: "confluence";
1709
+ siteNamespace: string;
1710
+ pageId: string;
1711
+ } | {
1712
+ path: string;
1713
+ provider: "github";
1714
+ repositoryId: number;
1715
+ branch: string;
1716
+ };
1717
+ referenceId: string;
1718
+ schemaVersion: 1;
1719
+ accountId: string;
1720
+ workspaceId: string;
1721
+ sourceKey: string;
1722
+ sourceNamespace: string;
1723
+ objectKind: string;
1724
+ name: string;
1725
+ purpose: string;
1726
+ tags: string[];
1727
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1728
+ enabled: boolean;
1729
+ removed: boolean;
1730
+ sourceTitle: string;
1731
+ sourceUrl: string;
1732
+ revision: number;
1733
+ provenance: {
1734
+ sourceRevision: string;
1735
+ contentHash: string;
1736
+ readAt: string;
1737
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1738
+ selectionId: string;
1739
+ };
1740
+ createdAt: string;
1741
+ updatedAt: string;
1742
+ createdBy: string;
1743
+ updatedBy?: string | undefined;
1744
+ history?: {
1745
+ name: string;
1746
+ purpose: string;
1747
+ tags: string[];
1748
+ documentType: string;
1749
+ enabled: boolean;
1750
+ revision: number;
1751
+ changedAt: string;
1752
+ changedBy: string;
1753
+ }[] | undefined;
1754
+ lastUpdateRequestId?: string | undefined;
1755
+ lastUpdateDigest?: string | undefined;
1756
+ }, {
1757
+ connectionId: string;
1758
+ provider: "confluence" | "github";
1759
+ locator: {
1760
+ provider: "confluence";
1761
+ siteNamespace: string;
1762
+ pageId: string;
1763
+ } | {
1764
+ path: string;
1765
+ provider: "github";
1766
+ repositoryId: number;
1767
+ branch: string;
1768
+ };
1769
+ referenceId: string;
1770
+ schemaVersion: 1;
1771
+ accountId: string;
1772
+ workspaceId: string;
1773
+ sourceKey: string;
1774
+ sourceNamespace: string;
1775
+ objectKind: string;
1776
+ name: string;
1777
+ purpose: string;
1778
+ tags: string[];
1779
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1780
+ enabled: boolean;
1781
+ removed: boolean;
1782
+ sourceTitle: string;
1783
+ sourceUrl: string;
1784
+ revision: number;
1785
+ provenance: {
1786
+ sourceRevision: string;
1787
+ contentHash: string;
1788
+ readAt: string;
1789
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1790
+ selectionId: string;
1791
+ };
1792
+ createdAt: string;
1793
+ updatedAt: string;
1794
+ createdBy: string;
1795
+ updatedBy?: string | undefined;
1796
+ history?: {
1797
+ name: string;
1798
+ purpose: string;
1799
+ tags: string[];
1800
+ documentType: string;
1801
+ enabled: boolean;
1802
+ revision: number;
1803
+ changedAt: string;
1804
+ changedBy: string;
1805
+ }[] | undefined;
1806
+ lastUpdateRequestId?: string | undefined;
1807
+ lastUpdateDigest?: string | undefined;
1808
+ }>, {
1809
+ connectionId: string;
1810
+ provider: "confluence" | "github";
1811
+ locator: {
1812
+ provider: "confluence";
1813
+ siteNamespace: string;
1814
+ pageId: string;
1815
+ } | {
1816
+ path: string;
1817
+ provider: "github";
1818
+ repositoryId: number;
1819
+ branch: string;
1820
+ };
1821
+ referenceId: string;
1822
+ schemaVersion: 1;
1823
+ accountId: string;
1824
+ workspaceId: string;
1825
+ sourceKey: string;
1826
+ sourceNamespace: string;
1827
+ objectKind: string;
1828
+ name: string;
1829
+ purpose: string;
1830
+ tags: string[];
1831
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1832
+ enabled: boolean;
1833
+ removed: boolean;
1834
+ sourceTitle: string;
1835
+ sourceUrl: string;
1836
+ revision: number;
1837
+ provenance: {
1838
+ sourceRevision: string;
1839
+ contentHash: string;
1840
+ readAt: string;
1841
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1842
+ selectionId: string;
1843
+ };
1844
+ createdAt: string;
1845
+ updatedAt: string;
1846
+ createdBy: string;
1847
+ updatedBy?: string | undefined;
1848
+ history?: {
1849
+ name: string;
1850
+ purpose: string;
1851
+ tags: string[];
1852
+ documentType: string;
1853
+ enabled: boolean;
1854
+ revision: number;
1855
+ changedAt: string;
1856
+ changedBy: string;
1857
+ }[] | undefined;
1858
+ lastUpdateRequestId?: string | undefined;
1859
+ lastUpdateDigest?: string | undefined;
1860
+ }, {
1861
+ connectionId: string;
1862
+ provider: "confluence" | "github";
1863
+ locator: {
1864
+ provider: "confluence";
1865
+ siteNamespace: string;
1866
+ pageId: string;
1867
+ } | {
1868
+ path: string;
1869
+ provider: "github";
1870
+ repositoryId: number;
1871
+ branch: string;
1872
+ };
1873
+ referenceId: string;
1874
+ schemaVersion: 1;
1875
+ accountId: string;
1876
+ workspaceId: string;
1877
+ sourceKey: string;
1878
+ sourceNamespace: string;
1879
+ objectKind: string;
1880
+ name: string;
1881
+ purpose: string;
1882
+ tags: string[];
1883
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
1884
+ enabled: boolean;
1885
+ removed: boolean;
1886
+ sourceTitle: string;
1887
+ sourceUrl: string;
1888
+ revision: number;
1889
+ provenance: {
1890
+ sourceRevision: string;
1891
+ contentHash: string;
1892
+ readAt: string;
1893
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
1894
+ selectionId: string;
1895
+ };
1896
+ createdAt: string;
1897
+ updatedAt: string;
1898
+ createdBy: string;
1899
+ updatedBy?: string | undefined;
1900
+ history?: {
1901
+ name: string;
1902
+ purpose: string;
1903
+ tags: string[];
1904
+ documentType: string;
1905
+ enabled: boolean;
1906
+ revision: number;
1907
+ changedAt: string;
1908
+ changedBy: string;
1909
+ }[] | undefined;
1910
+ lastUpdateRequestId?: string | undefined;
1911
+ lastUpdateDigest?: string | undefined;
1912
+ }>;
1913
+ readonly method: "GET";
1914
+ readonly path: "/references/:id";
1915
+ };
1916
+ readonly readReference: {
1917
+ readonly query: z.ZodObject<{
1918
+ offset: z.ZodDefault<z.ZodNumber>;
1919
+ contentHash: z.ZodOptional<z.ZodString>;
1920
+ }, "strip", z.ZodTypeAny, {
1921
+ offset: number;
1922
+ contentHash?: string | undefined;
1923
+ }, {
1924
+ contentHash?: string | undefined;
1925
+ offset?: number | undefined;
1926
+ }>;
1927
+ readonly response: z.ZodObject<{
1928
+ outcome: z.ZodLiteral<"read">;
1929
+ title: z.ZodString;
1930
+ content: z.ZodString;
1931
+ contentFormat: z.ZodEnum<["confluence_storage", "markdown"]>;
1932
+ citation: z.ZodEffects<z.ZodObject<{
1933
+ provider: z.ZodEnum<["confluence", "github"]>;
1934
+ locator: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1935
+ provider: z.ZodLiteral<"confluence">;
1936
+ siteNamespace: z.ZodString;
1937
+ pageId: z.ZodString;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ provider: "confluence";
1940
+ siteNamespace: string;
1941
+ pageId: string;
1942
+ }, {
1943
+ provider: "confluence";
1944
+ siteNamespace: string;
1945
+ pageId: string;
1946
+ }>, z.ZodObject<{
1947
+ provider: z.ZodLiteral<"github">;
1948
+ repositoryId: z.ZodNumber;
1949
+ branch: z.ZodString;
1950
+ path: z.ZodEffects<z.ZodString, string, string>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ path: string;
1953
+ provider: "github";
1954
+ repositoryId: number;
1955
+ branch: string;
1956
+ }, {
1957
+ path: string;
1958
+ provider: "github";
1959
+ repositoryId: number;
1960
+ branch: string;
1961
+ }>]>;
1962
+ itemId: z.ZodString;
1963
+ title: z.ZodString;
1964
+ href: z.ZodString;
1965
+ sourceRevision: z.ZodString;
1966
+ contentHash: z.ZodString;
1967
+ readAt: z.ZodString;
1968
+ referenceId: z.ZodOptional<z.ZodString>;
1969
+ }, "strip", z.ZodTypeAny, {
1970
+ title: string;
1971
+ provider: "confluence" | "github";
1972
+ locator: {
1973
+ provider: "confluence";
1974
+ siteNamespace: string;
1975
+ pageId: string;
1976
+ } | {
1977
+ path: string;
1978
+ provider: "github";
1979
+ repositoryId: number;
1980
+ branch: string;
1981
+ };
1982
+ itemId: string;
1983
+ href: string;
1984
+ sourceRevision: string;
1985
+ contentHash: string;
1986
+ readAt: string;
1987
+ referenceId?: string | undefined;
1988
+ }, {
1989
+ title: string;
1990
+ provider: "confluence" | "github";
1991
+ locator: {
1992
+ provider: "confluence";
1993
+ siteNamespace: string;
1994
+ pageId: string;
1995
+ } | {
1996
+ path: string;
1997
+ provider: "github";
1998
+ repositoryId: number;
1999
+ branch: string;
2000
+ };
2001
+ itemId: string;
2002
+ href: string;
2003
+ sourceRevision: string;
2004
+ contentHash: string;
2005
+ readAt: string;
2006
+ referenceId?: string | undefined;
2007
+ }>, {
2008
+ title: string;
2009
+ provider: "confluence" | "github";
2010
+ locator: {
2011
+ provider: "confluence";
2012
+ siteNamespace: string;
2013
+ pageId: string;
2014
+ } | {
2015
+ path: string;
2016
+ provider: "github";
2017
+ repositoryId: number;
2018
+ branch: string;
2019
+ };
2020
+ itemId: string;
2021
+ href: string;
2022
+ sourceRevision: string;
2023
+ contentHash: string;
2024
+ readAt: string;
2025
+ referenceId?: string | undefined;
2026
+ }, {
2027
+ title: string;
2028
+ provider: "confluence" | "github";
2029
+ locator: {
2030
+ provider: "confluence";
2031
+ siteNamespace: string;
2032
+ pageId: string;
2033
+ } | {
2034
+ path: string;
2035
+ provider: "github";
2036
+ repositoryId: number;
2037
+ branch: string;
2038
+ };
2039
+ itemId: string;
2040
+ href: string;
2041
+ sourceRevision: string;
2042
+ contentHash: string;
2043
+ readAt: string;
2044
+ referenceId?: string | undefined;
2045
+ }>;
2046
+ coverage: z.ZodObject<{
2047
+ offset: z.ZodNumber;
2048
+ end: z.ZodNumber;
2049
+ totalCharacters: z.ZodNumber;
2050
+ complete: z.ZodBoolean;
2051
+ nextOffset: z.ZodNullable<z.ZodNumber>;
2052
+ }, "strip", z.ZodTypeAny, {
2053
+ offset: number;
2054
+ end: number;
2055
+ totalCharacters: number;
2056
+ complete: boolean;
2057
+ nextOffset: number | null;
2058
+ }, {
2059
+ offset: number;
2060
+ end: number;
2061
+ totalCharacters: number;
2062
+ complete: boolean;
2063
+ nextOffset: number | null;
2064
+ }>;
2065
+ warnings: z.ZodArray<z.ZodEnum<["images_not_read", "attachments_or_macros_not_expanded", "freshness_changed"]>, "many">;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ title: string;
2068
+ coverage: {
2069
+ offset: number;
2070
+ end: number;
2071
+ totalCharacters: number;
2072
+ complete: boolean;
2073
+ nextOffset: number | null;
2074
+ };
2075
+ outcome: "read";
2076
+ content: string;
2077
+ contentFormat: "confluence_storage" | "markdown";
2078
+ citation: {
2079
+ title: string;
2080
+ provider: "confluence" | "github";
2081
+ locator: {
2082
+ provider: "confluence";
2083
+ siteNamespace: string;
2084
+ pageId: string;
2085
+ } | {
2086
+ path: string;
2087
+ provider: "github";
2088
+ repositoryId: number;
2089
+ branch: string;
2090
+ };
2091
+ itemId: string;
2092
+ href: string;
2093
+ sourceRevision: string;
2094
+ contentHash: string;
2095
+ readAt: string;
2096
+ referenceId?: string | undefined;
2097
+ };
2098
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2099
+ }, {
2100
+ title: string;
2101
+ coverage: {
2102
+ offset: number;
2103
+ end: number;
2104
+ totalCharacters: number;
2105
+ complete: boolean;
2106
+ nextOffset: number | null;
2107
+ };
2108
+ outcome: "read";
2109
+ content: string;
2110
+ contentFormat: "confluence_storage" | "markdown";
2111
+ citation: {
2112
+ title: string;
2113
+ provider: "confluence" | "github";
2114
+ locator: {
2115
+ provider: "confluence";
2116
+ siteNamespace: string;
2117
+ pageId: string;
2118
+ } | {
2119
+ path: string;
2120
+ provider: "github";
2121
+ repositoryId: number;
2122
+ branch: string;
2123
+ };
2124
+ itemId: string;
2125
+ href: string;
2126
+ sourceRevision: string;
2127
+ contentHash: string;
2128
+ readAt: string;
2129
+ referenceId?: string | undefined;
2130
+ };
2131
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2132
+ }>;
2133
+ readonly method: "GET";
2134
+ readonly path: "/references/:id/read";
2135
+ };
2136
+ readonly patchReference: {
2137
+ readonly request: z.ZodObject<{
2138
+ expectedRevision: z.ZodNumber;
2139
+ name: z.ZodOptional<z.ZodString>;
2140
+ purpose: z.ZodOptional<z.ZodString>;
2141
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2142
+ documentType: z.ZodOptional<z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>>;
2143
+ enabled: z.ZodOptional<z.ZodBoolean>;
2144
+ requestId: z.ZodOptional<z.ZodString>;
2145
+ }, "strict", z.ZodTypeAny, {
2146
+ expectedRevision: number;
2147
+ name?: string | undefined;
2148
+ purpose?: string | undefined;
2149
+ tags?: string[] | undefined;
2150
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
2151
+ enabled?: boolean | undefined;
2152
+ requestId?: string | undefined;
2153
+ }, {
2154
+ expectedRevision: number;
2155
+ name?: string | undefined;
2156
+ purpose?: string | undefined;
2157
+ tags?: string[] | undefined;
2158
+ documentType?: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference" | undefined;
2159
+ enabled?: boolean | undefined;
2160
+ requestId?: string | undefined;
2161
+ }>;
2162
+ readonly response: z.ZodEffects<z.ZodObject<{
2163
+ schemaVersion: z.ZodLiteral<1>;
2164
+ referenceId: z.ZodString;
2165
+ accountId: z.ZodString;
2166
+ workspaceId: z.ZodString;
2167
+ connectionId: z.ZodString;
2168
+ provider: z.ZodEnum<["confluence", "github"]>;
2169
+ locator: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
2170
+ provider: z.ZodLiteral<"confluence">;
2171
+ siteNamespace: z.ZodString;
2172
+ pageId: z.ZodString;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ provider: "confluence";
2175
+ siteNamespace: string;
2176
+ pageId: string;
2177
+ }, {
2178
+ provider: "confluence";
2179
+ siteNamespace: string;
2180
+ pageId: string;
2181
+ }>, z.ZodObject<{
2182
+ provider: z.ZodLiteral<"github">;
2183
+ repositoryId: z.ZodNumber;
2184
+ branch: z.ZodString;
2185
+ path: z.ZodEffects<z.ZodString, string, string>;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ path: string;
2188
+ provider: "github";
2189
+ repositoryId: number;
2190
+ branch: string;
2191
+ }, {
2192
+ path: string;
2193
+ provider: "github";
2194
+ repositoryId: number;
2195
+ branch: string;
2196
+ }>]>;
2197
+ sourceKey: z.ZodString;
2198
+ sourceNamespace: z.ZodString;
2199
+ objectKind: z.ZodString;
2200
+ name: z.ZodString;
2201
+ purpose: z.ZodString;
2202
+ tags: z.ZodArray<z.ZodString, "many">;
2203
+ documentType: z.ZodEnum<["sop", "runbook", "playbook", "incident_report", "architecture", "reference", "unknown"]>;
2204
+ enabled: z.ZodBoolean;
2205
+ removed: z.ZodBoolean;
2206
+ sourceTitle: z.ZodString;
2207
+ sourceUrl: z.ZodString;
2208
+ revision: z.ZodNumber;
2209
+ provenance: z.ZodObject<{
2210
+ selectionId: z.ZodString;
2211
+ sourceRevision: z.ZodString;
2212
+ contentHash: z.ZodString;
2213
+ readAt: z.ZodString;
2214
+ warnings: z.ZodArray<z.ZodEnum<["images_not_read", "attachments_or_macros_not_expanded", "freshness_changed"]>, "many">;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ sourceRevision: string;
2217
+ contentHash: string;
2218
+ readAt: string;
2219
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2220
+ selectionId: string;
2221
+ }, {
2222
+ sourceRevision: string;
2223
+ contentHash: string;
2224
+ readAt: string;
2225
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2226
+ selectionId: string;
2227
+ }>;
2228
+ createdAt: z.ZodString;
2229
+ updatedAt: z.ZodString;
2230
+ createdBy: z.ZodString;
2231
+ updatedBy: z.ZodOptional<z.ZodString>;
2232
+ history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2233
+ revision: z.ZodNumber;
2234
+ name: z.ZodString;
2235
+ purpose: z.ZodString;
2236
+ tags: z.ZodArray<z.ZodString, "many">;
2237
+ documentType: z.ZodString;
2238
+ enabled: z.ZodBoolean;
2239
+ changedAt: z.ZodString;
2240
+ changedBy: z.ZodString;
2241
+ }, "strip", z.ZodTypeAny, {
2242
+ name: string;
2243
+ purpose: string;
2244
+ tags: string[];
2245
+ documentType: string;
2246
+ enabled: boolean;
2247
+ revision: number;
2248
+ changedAt: string;
2249
+ changedBy: string;
2250
+ }, {
2251
+ name: string;
2252
+ purpose: string;
2253
+ tags: string[];
2254
+ documentType: string;
2255
+ enabled: boolean;
2256
+ revision: number;
2257
+ changedAt: string;
2258
+ changedBy: string;
2259
+ }>, "many">>;
2260
+ lastUpdateRequestId: z.ZodOptional<z.ZodString>;
2261
+ lastUpdateDigest: z.ZodOptional<z.ZodString>;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ connectionId: string;
2264
+ provider: "confluence" | "github";
2265
+ locator: {
2266
+ provider: "confluence";
2267
+ siteNamespace: string;
2268
+ pageId: string;
2269
+ } | {
2270
+ path: string;
2271
+ provider: "github";
2272
+ repositoryId: number;
2273
+ branch: string;
2274
+ };
2275
+ referenceId: string;
2276
+ schemaVersion: 1;
2277
+ accountId: string;
2278
+ workspaceId: string;
2279
+ sourceKey: string;
2280
+ sourceNamespace: string;
2281
+ objectKind: string;
2282
+ name: string;
2283
+ purpose: string;
2284
+ tags: string[];
2285
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
2286
+ enabled: boolean;
2287
+ removed: boolean;
2288
+ sourceTitle: string;
2289
+ sourceUrl: string;
2290
+ revision: number;
2291
+ provenance: {
2292
+ sourceRevision: string;
2293
+ contentHash: string;
2294
+ readAt: string;
2295
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2296
+ selectionId: string;
2297
+ };
2298
+ createdAt: string;
2299
+ updatedAt: string;
2300
+ createdBy: string;
2301
+ updatedBy?: string | undefined;
2302
+ history?: {
2303
+ name: string;
2304
+ purpose: string;
2305
+ tags: string[];
2306
+ documentType: string;
2307
+ enabled: boolean;
2308
+ revision: number;
2309
+ changedAt: string;
2310
+ changedBy: string;
2311
+ }[] | undefined;
2312
+ lastUpdateRequestId?: string | undefined;
2313
+ lastUpdateDigest?: string | undefined;
2314
+ }, {
2315
+ connectionId: string;
2316
+ provider: "confluence" | "github";
2317
+ locator: {
2318
+ provider: "confluence";
2319
+ siteNamespace: string;
2320
+ pageId: string;
2321
+ } | {
2322
+ path: string;
2323
+ provider: "github";
2324
+ repositoryId: number;
2325
+ branch: string;
2326
+ };
2327
+ referenceId: string;
2328
+ schemaVersion: 1;
2329
+ accountId: string;
2330
+ workspaceId: string;
2331
+ sourceKey: string;
2332
+ sourceNamespace: string;
2333
+ objectKind: string;
2334
+ name: string;
2335
+ purpose: string;
2336
+ tags: string[];
2337
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
2338
+ enabled: boolean;
2339
+ removed: boolean;
2340
+ sourceTitle: string;
2341
+ sourceUrl: string;
2342
+ revision: number;
2343
+ provenance: {
2344
+ sourceRevision: string;
2345
+ contentHash: string;
2346
+ readAt: string;
2347
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2348
+ selectionId: string;
2349
+ };
2350
+ createdAt: string;
2351
+ updatedAt: string;
2352
+ createdBy: string;
2353
+ updatedBy?: string | undefined;
2354
+ history?: {
2355
+ name: string;
2356
+ purpose: string;
2357
+ tags: string[];
2358
+ documentType: string;
2359
+ enabled: boolean;
2360
+ revision: number;
2361
+ changedAt: string;
2362
+ changedBy: string;
2363
+ }[] | undefined;
2364
+ lastUpdateRequestId?: string | undefined;
2365
+ lastUpdateDigest?: string | undefined;
2366
+ }>, {
2367
+ connectionId: string;
2368
+ provider: "confluence" | "github";
2369
+ locator: {
2370
+ provider: "confluence";
2371
+ siteNamespace: string;
2372
+ pageId: string;
2373
+ } | {
2374
+ path: string;
2375
+ provider: "github";
2376
+ repositoryId: number;
2377
+ branch: string;
2378
+ };
2379
+ referenceId: string;
2380
+ schemaVersion: 1;
2381
+ accountId: string;
2382
+ workspaceId: string;
2383
+ sourceKey: string;
2384
+ sourceNamespace: string;
2385
+ objectKind: string;
2386
+ name: string;
2387
+ purpose: string;
2388
+ tags: string[];
2389
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
2390
+ enabled: boolean;
2391
+ removed: boolean;
2392
+ sourceTitle: string;
2393
+ sourceUrl: string;
2394
+ revision: number;
2395
+ provenance: {
2396
+ sourceRevision: string;
2397
+ contentHash: string;
2398
+ readAt: string;
2399
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2400
+ selectionId: string;
2401
+ };
2402
+ createdAt: string;
2403
+ updatedAt: string;
2404
+ createdBy: string;
2405
+ updatedBy?: string | undefined;
2406
+ history?: {
2407
+ name: string;
2408
+ purpose: string;
2409
+ tags: string[];
2410
+ documentType: string;
2411
+ enabled: boolean;
2412
+ revision: number;
2413
+ changedAt: string;
2414
+ changedBy: string;
2415
+ }[] | undefined;
2416
+ lastUpdateRequestId?: string | undefined;
2417
+ lastUpdateDigest?: string | undefined;
2418
+ }, {
2419
+ connectionId: string;
2420
+ provider: "confluence" | "github";
2421
+ locator: {
2422
+ provider: "confluence";
2423
+ siteNamespace: string;
2424
+ pageId: string;
2425
+ } | {
2426
+ path: string;
2427
+ provider: "github";
2428
+ repositoryId: number;
2429
+ branch: string;
2430
+ };
2431
+ referenceId: string;
2432
+ schemaVersion: 1;
2433
+ accountId: string;
2434
+ workspaceId: string;
2435
+ sourceKey: string;
2436
+ sourceNamespace: string;
2437
+ objectKind: string;
2438
+ name: string;
2439
+ purpose: string;
2440
+ tags: string[];
2441
+ documentType: "unknown" | "sop" | "runbook" | "playbook" | "incident_report" | "architecture" | "reference";
2442
+ enabled: boolean;
2443
+ removed: boolean;
2444
+ sourceTitle: string;
2445
+ sourceUrl: string;
2446
+ revision: number;
2447
+ provenance: {
2448
+ sourceRevision: string;
2449
+ contentHash: string;
2450
+ readAt: string;
2451
+ warnings: ("images_not_read" | "attachments_or_macros_not_expanded" | "freshness_changed")[];
2452
+ selectionId: string;
2453
+ };
2454
+ createdAt: string;
2455
+ updatedAt: string;
2456
+ createdBy: string;
2457
+ updatedBy?: string | undefined;
2458
+ history?: {
2459
+ name: string;
2460
+ purpose: string;
2461
+ tags: string[];
2462
+ documentType: string;
2463
+ enabled: boolean;
2464
+ revision: number;
2465
+ changedAt: string;
2466
+ changedBy: string;
2467
+ }[] | undefined;
2468
+ lastUpdateRequestId?: string | undefined;
2469
+ lastUpdateDigest?: string | undefined;
2470
+ }>;
2471
+ readonly method: "PATCH";
2472
+ readonly path: "/references/:id";
2473
+ };
2474
+ readonly deleteReference: {
2475
+ readonly request: z.ZodObject<{
2476
+ expectedRevision: z.ZodNumber;
2477
+ }, "strict", z.ZodTypeAny, {
2478
+ expectedRevision: number;
2479
+ }, {
2480
+ expectedRevision: number;
2481
+ }>;
2482
+ readonly response: z.ZodObject<{
2483
+ removed: z.ZodBoolean;
2484
+ }, "strip", z.ZodTypeAny, {
2485
+ removed: boolean;
2486
+ }, {
2487
+ removed: boolean;
2488
+ }>;
2489
+ readonly method: "DELETE";
2490
+ readonly path: "/references/:id";
2491
+ };
2492
+ readonly getSettings: {
2493
+ readonly response: z.ZodObject<{
2494
+ default: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
2495
+ provider: z.ZodLiteral<"confluence">;
2496
+ connectionId: z.ZodString;
2497
+ spaceId: z.ZodOptional<z.ZodString>;
2498
+ parentId: z.ZodOptional<z.ZodString>;
2499
+ parentType: z.ZodOptional<z.ZodEnum<["page", "folder"]>>;
2500
+ }, "strict", z.ZodTypeAny, {
2501
+ connectionId: string;
2502
+ provider: "confluence";
2503
+ parentId?: string | undefined;
2504
+ parentType?: "folder" | "page" | undefined;
2505
+ spaceId?: string | undefined;
2506
+ }, {
2507
+ connectionId: string;
2508
+ provider: "confluence";
2509
+ parentId?: string | undefined;
2510
+ parentType?: "folder" | "page" | undefined;
2511
+ spaceId?: string | undefined;
2512
+ }>, {
2513
+ connectionId: string;
2514
+ provider: "confluence";
2515
+ parentId?: string | undefined;
2516
+ parentType?: "folder" | "page" | undefined;
2517
+ spaceId?: string | undefined;
2518
+ }, {
2519
+ connectionId: string;
2520
+ provider: "confluence";
2521
+ parentId?: string | undefined;
2522
+ parentType?: "folder" | "page" | undefined;
2523
+ spaceId?: string | undefined;
2524
+ }>, z.ZodObject<{
2525
+ provider: z.ZodLiteral<"github">;
2526
+ connectionId: z.ZodString;
2527
+ repositoryId: z.ZodNumber;
2528
+ branch: z.ZodEffects<z.ZodString, string, string>;
2529
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2530
+ }, "strict", z.ZodTypeAny, {
2531
+ connectionId: string;
2532
+ provider: "github";
2533
+ repositoryId: number;
2534
+ branch: string;
2535
+ path?: string | undefined;
2536
+ }, {
2537
+ connectionId: string;
2538
+ provider: "github";
2539
+ repositoryId: number;
2540
+ branch: string;
2541
+ path?: string | undefined;
2542
+ }>]>>;
2543
+ revision: z.ZodNumber;
2544
+ available: z.ZodBoolean;
2545
+ }, "strip", z.ZodTypeAny, {
2546
+ revision: number;
2547
+ default: {
2548
+ connectionId: string;
2549
+ provider: "confluence";
2550
+ parentId?: string | undefined;
2551
+ parentType?: "folder" | "page" | undefined;
2552
+ spaceId?: string | undefined;
2553
+ } | {
2554
+ connectionId: string;
2555
+ provider: "github";
2556
+ repositoryId: number;
2557
+ branch: string;
2558
+ path?: string | undefined;
2559
+ } | null;
2560
+ available: boolean;
2561
+ }, {
2562
+ revision: number;
2563
+ default: {
2564
+ connectionId: string;
2565
+ provider: "confluence";
2566
+ parentId?: string | undefined;
2567
+ parentType?: "folder" | "page" | undefined;
2568
+ spaceId?: string | undefined;
2569
+ } | {
2570
+ connectionId: string;
2571
+ provider: "github";
2572
+ repositoryId: number;
2573
+ branch: string;
2574
+ path?: string | undefined;
2575
+ } | null;
2576
+ available: boolean;
2577
+ }>;
2578
+ readonly method: "GET";
2579
+ readonly path: "/settings";
2580
+ };
2581
+ readonly putSettings: {
2582
+ readonly request: z.ZodObject<{
2583
+ expectedRevision: z.ZodNumber;
2584
+ default: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
2585
+ provider: z.ZodLiteral<"confluence">;
2586
+ connectionId: z.ZodString;
2587
+ spaceId: z.ZodOptional<z.ZodString>;
2588
+ parentId: z.ZodOptional<z.ZodString>;
2589
+ parentType: z.ZodOptional<z.ZodEnum<["page", "folder"]>>;
2590
+ }, "strict", z.ZodTypeAny, {
2591
+ connectionId: string;
2592
+ provider: "confluence";
2593
+ parentId?: string | undefined;
2594
+ parentType?: "folder" | "page" | undefined;
2595
+ spaceId?: string | undefined;
2596
+ }, {
2597
+ connectionId: string;
2598
+ provider: "confluence";
2599
+ parentId?: string | undefined;
2600
+ parentType?: "folder" | "page" | undefined;
2601
+ spaceId?: string | undefined;
2602
+ }>, {
2603
+ connectionId: string;
2604
+ provider: "confluence";
2605
+ parentId?: string | undefined;
2606
+ parentType?: "folder" | "page" | undefined;
2607
+ spaceId?: string | undefined;
2608
+ }, {
2609
+ connectionId: string;
2610
+ provider: "confluence";
2611
+ parentId?: string | undefined;
2612
+ parentType?: "folder" | "page" | undefined;
2613
+ spaceId?: string | undefined;
2614
+ }>, z.ZodObject<{
2615
+ provider: z.ZodLiteral<"github">;
2616
+ connectionId: z.ZodString;
2617
+ repositoryId: z.ZodNumber;
2618
+ branch: z.ZodEffects<z.ZodString, string, string>;
2619
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2620
+ }, "strict", z.ZodTypeAny, {
2621
+ connectionId: string;
2622
+ provider: "github";
2623
+ repositoryId: number;
2624
+ branch: string;
2625
+ path?: string | undefined;
2626
+ }, {
2627
+ connectionId: string;
2628
+ provider: "github";
2629
+ repositoryId: number;
2630
+ branch: string;
2631
+ path?: string | undefined;
2632
+ }>]>>;
2633
+ }, "strict", z.ZodTypeAny, {
2634
+ expectedRevision: number;
2635
+ default: {
2636
+ connectionId: string;
2637
+ provider: "confluence";
2638
+ parentId?: string | undefined;
2639
+ parentType?: "folder" | "page" | undefined;
2640
+ spaceId?: string | undefined;
2641
+ } | {
2642
+ connectionId: string;
2643
+ provider: "github";
2644
+ repositoryId: number;
2645
+ branch: string;
2646
+ path?: string | undefined;
2647
+ } | null;
2648
+ }, {
2649
+ expectedRevision: number;
2650
+ default: {
2651
+ connectionId: string;
2652
+ provider: "confluence";
2653
+ parentId?: string | undefined;
2654
+ parentType?: "folder" | "page" | undefined;
2655
+ spaceId?: string | undefined;
2656
+ } | {
2657
+ connectionId: string;
2658
+ provider: "github";
2659
+ repositoryId: number;
2660
+ branch: string;
2661
+ path?: string | undefined;
2662
+ } | null;
2663
+ }>;
2664
+ readonly response: z.ZodObject<{
2665
+ default: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
2666
+ provider: z.ZodLiteral<"confluence">;
2667
+ connectionId: z.ZodString;
2668
+ spaceId: z.ZodOptional<z.ZodString>;
2669
+ parentId: z.ZodOptional<z.ZodString>;
2670
+ parentType: z.ZodOptional<z.ZodEnum<["page", "folder"]>>;
2671
+ }, "strict", z.ZodTypeAny, {
2672
+ connectionId: string;
2673
+ provider: "confluence";
2674
+ parentId?: string | undefined;
2675
+ parentType?: "folder" | "page" | undefined;
2676
+ spaceId?: string | undefined;
2677
+ }, {
2678
+ connectionId: string;
2679
+ provider: "confluence";
2680
+ parentId?: string | undefined;
2681
+ parentType?: "folder" | "page" | undefined;
2682
+ spaceId?: string | undefined;
2683
+ }>, {
2684
+ connectionId: string;
2685
+ provider: "confluence";
2686
+ parentId?: string | undefined;
2687
+ parentType?: "folder" | "page" | undefined;
2688
+ spaceId?: string | undefined;
2689
+ }, {
2690
+ connectionId: string;
2691
+ provider: "confluence";
2692
+ parentId?: string | undefined;
2693
+ parentType?: "folder" | "page" | undefined;
2694
+ spaceId?: string | undefined;
2695
+ }>, z.ZodObject<{
2696
+ provider: z.ZodLiteral<"github">;
2697
+ connectionId: z.ZodString;
2698
+ repositoryId: z.ZodNumber;
2699
+ branch: z.ZodEffects<z.ZodString, string, string>;
2700
+ path: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2701
+ }, "strict", z.ZodTypeAny, {
2702
+ connectionId: string;
2703
+ provider: "github";
2704
+ repositoryId: number;
2705
+ branch: string;
2706
+ path?: string | undefined;
2707
+ }, {
2708
+ connectionId: string;
2709
+ provider: "github";
2710
+ repositoryId: number;
2711
+ branch: string;
2712
+ path?: string | undefined;
2713
+ }>]>>;
2714
+ revision: z.ZodNumber;
2715
+ available: z.ZodBoolean;
2716
+ }, "strip", z.ZodTypeAny, {
2717
+ revision: number;
2718
+ default: {
2719
+ connectionId: string;
2720
+ provider: "confluence";
2721
+ parentId?: string | undefined;
2722
+ parentType?: "folder" | "page" | undefined;
2723
+ spaceId?: string | undefined;
2724
+ } | {
2725
+ connectionId: string;
2726
+ provider: "github";
2727
+ repositoryId: number;
2728
+ branch: string;
2729
+ path?: string | undefined;
2730
+ } | null;
2731
+ available: boolean;
2732
+ }, {
2733
+ revision: number;
2734
+ default: {
2735
+ connectionId: string;
2736
+ provider: "confluence";
2737
+ parentId?: string | undefined;
2738
+ parentType?: "folder" | "page" | undefined;
2739
+ spaceId?: string | undefined;
2740
+ } | {
2741
+ connectionId: string;
2742
+ provider: "github";
2743
+ repositoryId: number;
2744
+ branch: string;
2745
+ path?: string | undefined;
2746
+ } | null;
2747
+ available: boolean;
2748
+ }>;
2749
+ readonly method: "PUT";
2750
+ readonly path: "/settings";
2751
+ };
2752
+ };