@treeseed/sdk 0.10.28 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +207 -6
  2. package/dist/capacity-provider.d.ts +3 -1
  3. package/dist/capacity-provider.js +25 -5
  4. package/dist/control-plane.d.ts +1 -0
  5. package/dist/control-plane.js +38 -13
  6. package/dist/db/market-schema.d.ts +8860 -6172
  7. package/dist/db/market-schema.js +108 -0
  8. package/dist/db/node-sqlite.js +7 -2
  9. package/dist/hosting/apps.d.ts +12 -0
  10. package/dist/hosting/apps.js +107 -0
  11. package/dist/hosting/builtins.d.ts +25 -0
  12. package/dist/hosting/builtins.js +791 -0
  13. package/dist/hosting/contracts.d.ts +207 -0
  14. package/dist/hosting/contracts.js +0 -0
  15. package/dist/hosting/graph.d.ts +192 -0
  16. package/dist/hosting/graph.js +1106 -0
  17. package/dist/hosting/index.d.ts +4 -0
  18. package/dist/hosting/index.js +4 -0
  19. package/dist/index.d.ts +10 -3
  20. package/dist/index.js +63 -6
  21. package/dist/managed-dependencies.js +1 -2
  22. package/dist/market-client.d.ts +63 -3
  23. package/dist/market-client.js +83 -11
  24. package/dist/operations/services/bootstrap-runner.d.ts +3 -1
  25. package/dist/operations/services/bootstrap-runner.js +22 -2
  26. package/dist/operations/services/config-runtime.d.ts +10 -5
  27. package/dist/operations/services/config-runtime.js +209 -66
  28. package/dist/operations/services/deploy.d.ts +70 -7
  29. package/dist/operations/services/deploy.js +579 -64
  30. package/dist/operations/services/deployment-readiness.d.ts +30 -0
  31. package/dist/operations/services/deployment-readiness.js +175 -0
  32. package/dist/operations/services/git-workflow.d.ts +2 -1
  33. package/dist/operations/services/git-workflow.js +9 -3
  34. package/dist/operations/services/github-actions-verification.d.ts +1 -0
  35. package/dist/operations/services/github-actions-verification.js +1 -0
  36. package/dist/operations/services/github-api.js +1 -1
  37. package/dist/operations/services/github-automation.d.ts +1 -1
  38. package/dist/operations/services/github-automation.js +4 -3
  39. package/dist/operations/services/github-credentials.d.ts +13 -0
  40. package/dist/operations/services/github-credentials.js +58 -0
  41. package/dist/operations/services/hosted-service-checks.d.ts +63 -0
  42. package/dist/operations/services/hosted-service-checks.js +327 -0
  43. package/dist/operations/services/hub-provider-launch.js +3 -3
  44. package/dist/operations/services/live-hosted-service-checks.d.ts +25 -0
  45. package/dist/operations/services/live-hosted-service-checks.js +350 -0
  46. package/dist/operations/services/managed-host-security.js +1 -1
  47. package/dist/operations/services/operations-runner-smoke.d.ts +30 -0
  48. package/dist/operations/services/operations-runner-smoke.js +180 -0
  49. package/dist/operations/services/package-adapters.d.ts +95 -0
  50. package/dist/operations/services/package-adapters.js +288 -0
  51. package/dist/operations/services/package-reference-policy.d.ts +1 -0
  52. package/dist/operations/services/package-reference-policy.js +15 -2
  53. package/dist/operations/services/project-platform.d.ts +80 -22
  54. package/dist/operations/services/project-platform.js +49 -8
  55. package/dist/operations/services/project-web-monitor.js +26 -4
  56. package/dist/operations/services/railway-api.d.ts +88 -5
  57. package/dist/operations/services/railway-api.js +626 -35
  58. package/dist/operations/services/railway-deploy.d.ts +46 -40
  59. package/dist/operations/services/railway-deploy.js +261 -293
  60. package/dist/operations/services/release-candidate.d.ts +19 -0
  61. package/dist/operations/services/release-candidate.js +375 -38
  62. package/dist/operations/services/repository-save-orchestrator.d.ts +3 -1
  63. package/dist/operations/services/repository-save-orchestrator.js +279 -66
  64. package/dist/operations/services/runtime-tools.d.ts +1 -0
  65. package/dist/operations/services/runtime-tools.js +10 -9
  66. package/dist/operations/services/verification-cache.d.ts +25 -0
  67. package/dist/operations/services/verification-cache.js +71 -0
  68. package/dist/operations/services/workspace-dependency-mode.js +9 -1
  69. package/dist/operations/services/workspace-save.js +1 -1
  70. package/dist/operations/services/workspace-tools.js +2 -1
  71. package/dist/platform/contracts.d.ts +32 -1
  72. package/dist/platform/deploy-config.js +73 -8
  73. package/dist/platform/env.yaml +163 -35
  74. package/dist/platform/environment.d.ts +1 -0
  75. package/dist/platform/environment.js +74 -5
  76. package/dist/platform/plugin.d.ts +9 -0
  77. package/dist/platform-operation-store.js +2 -2
  78. package/dist/platform-operations.js +1 -1
  79. package/dist/reconcile/bootstrap-systems.js +2 -2
  80. package/dist/reconcile/builtin-adapters.js +372 -189
  81. package/dist/reconcile/contracts.d.ts +9 -5
  82. package/dist/reconcile/desired-state.d.ts +1 -0
  83. package/dist/reconcile/desired-state.js +5 -5
  84. package/dist/reconcile/engine.d.ts +5 -2
  85. package/dist/reconcile/engine.js +53 -32
  86. package/dist/reconcile/index.d.ts +2 -0
  87. package/dist/reconcile/index.js +2 -0
  88. package/dist/reconcile/live-acceptance.d.ts +79 -0
  89. package/dist/reconcile/live-acceptance.js +1615 -0
  90. package/dist/reconcile/platform.d.ts +104 -0
  91. package/dist/reconcile/platform.js +100 -0
  92. package/dist/reconcile/state.js +4 -4
  93. package/dist/reconcile/units.js +2 -2
  94. package/dist/scripts/deployment-readiness.js +20 -0
  95. package/dist/scripts/generate-treedx-openapi-types.js +186 -0
  96. package/dist/scripts/operations-runner-smoke.js +16 -0
  97. package/dist/scripts/release-verify.js +4 -1
  98. package/dist/scripts/tenant-workflow-action.js +10 -1
  99. package/dist/sdk-types.d.ts +169 -4
  100. package/dist/sdk-types.js +20 -2
  101. package/dist/sdk.d.ts +35 -24
  102. package/dist/sdk.js +186 -17
  103. package/dist/template-launch-requirements.js +9 -0
  104. package/dist/treedx/adapters.d.ts +6 -0
  105. package/dist/treedx/adapters.js +36 -0
  106. package/dist/treedx/client.d.ts +222 -0
  107. package/dist/treedx/client.js +871 -0
  108. package/dist/treedx/errors.d.ts +13 -0
  109. package/dist/treedx/errors.js +17 -0
  110. package/dist/treedx/federated-client.d.ts +27 -0
  111. package/dist/treedx/federated-client.js +158 -0
  112. package/dist/treedx/generated/openapi-types.d.ts +3558 -0
  113. package/dist/treedx/generated/openapi-types.js +0 -0
  114. package/dist/treedx/graph-adapter.d.ts +33 -0
  115. package/dist/treedx/graph-adapter.js +156 -0
  116. package/dist/treedx/index.d.ts +14 -0
  117. package/dist/treedx/index.js +48 -0
  118. package/dist/treedx/market-integration.d.ts +27 -0
  119. package/dist/treedx/market-integration.js +131 -0
  120. package/dist/treedx/ports.d.ts +166 -0
  121. package/dist/treedx/ports.js +231 -0
  122. package/dist/treedx/query-adapter.d.ts +19 -0
  123. package/dist/treedx/query-adapter.js +62 -0
  124. package/dist/treedx/registry-client.d.ts +11 -0
  125. package/dist/treedx/registry-client.js +19 -0
  126. package/dist/treedx/repository-adapter.d.ts +45 -0
  127. package/dist/treedx/repository-adapter.js +308 -0
  128. package/dist/treedx/sdk-integration.d.ts +27 -0
  129. package/dist/treedx/sdk-integration.js +63 -0
  130. package/dist/treedx/types.d.ts +1084 -0
  131. package/dist/treedx/types.js +8 -0
  132. package/dist/treedx/workspace-adapter.d.ts +27 -0
  133. package/dist/treedx/workspace-adapter.js +65 -0
  134. package/dist/treedx-backends.d.ts +218 -0
  135. package/dist/treedx-backends.js +632 -0
  136. package/dist/treedx-client.d.ts +86 -0
  137. package/dist/treedx-client.js +175 -0
  138. package/dist/treeseed/template-catalog/catalog.fixture.json +23 -23
  139. package/dist/workflow/operations.d.ts +119 -13
  140. package/dist/workflow/operations.js +309 -53
  141. package/dist/workflow-state.d.ts +13 -0
  142. package/dist/workflow-state.js +43 -26
  143. package/dist/workflow-support.d.ts +11 -3
  144. package/dist/workflow-support.js +67 -3
  145. package/dist/workflow.d.ts +5 -0
  146. package/drizzle/market/0004_treedx_market_integration.sql +99 -0
  147. package/package.json +34 -3
  148. package/templates/github/deploy-web.workflow.yml +39 -6
@@ -0,0 +1,1084 @@
1
+ import type { SdkContextPack, SdkContextPackRequest, SdkGraphDslParseResult, SdkGraphEdge, SdkGraphNode, SdkGraphQueryRequest, SdkGraphQueryResult, SdkGraphRefreshPayload, SdkGraphRefreshRequest, SdkGraphSearchOptions, SdkGraphSearchResult, SdkGraphTraversalResult } from '../sdk-types.ts';
2
+ import type { components, operations, paths } from './generated/openapi-types.ts';
3
+ export interface TreeDxActor {
4
+ actorId: string;
5
+ tenantId: string;
6
+ }
7
+ export interface TreeDxClientOptions {
8
+ baseUrl: string;
9
+ token?: string;
10
+ repoId?: string;
11
+ fetch?: typeof fetch;
12
+ defaultRef?: string;
13
+ defaultActor?: TreeDxActor;
14
+ timeoutMs?: number;
15
+ }
16
+ export type TreeDxErrorCode = components['schemas']['TreeDxErrorCode'] | 'missing_repo_id' | 'missing_token' | 'invalid_response' | 'treedx_api_error' | 'model_not_content_backed' | 'operation_not_allowed' | 'missing_content_path_mapping' | 'not_implemented' | 'workspace_required' | 'node_not_configured' | 'unsupported_treedx_graph_operation' | (string & {});
17
+ export interface TreeDxOkEnvelope<T> {
18
+ ok: true;
19
+ [key: string]: unknown;
20
+ }
21
+ export interface TreeDxErrorBody {
22
+ code: string;
23
+ message: string;
24
+ details?: Record<string, unknown>;
25
+ }
26
+ export interface TreeDxErrorEnvelope {
27
+ ok: false;
28
+ error: TreeDxErrorBody;
29
+ }
30
+ export declare function assertTreeDxOk<T extends Record<string, unknown>>(value: unknown, label?: string): asserts value is T & {
31
+ ok: true;
32
+ };
33
+ export interface TreeDxHealth {
34
+ status: string;
35
+ service: string;
36
+ dataDir?: string;
37
+ }
38
+ export type TreeDxReadiness = components['schemas']['TreeDxReadiness'];
39
+ export type TreeDxDeepHealth = components['schemas']['TreeDxHealthSummary'];
40
+ export type TreeDxMetrics = components['schemas']['TreeDxMetrics'];
41
+ export interface TreeDxVersion {
42
+ service: string;
43
+ version: string;
44
+ apiVersion: string;
45
+ }
46
+ export interface TreeDxPrincipal {
47
+ actorId: string;
48
+ tenantId: string;
49
+ authMode?: string;
50
+ }
51
+ export interface TreeDxWhoami {
52
+ authenticated: boolean;
53
+ principal: TreeDxPrincipal | null;
54
+ }
55
+ export interface TreeDxEffectiveScopeRequest {
56
+ repoId?: string;
57
+ }
58
+ export interface TreeDxEffectiveScope {
59
+ actorId: string;
60
+ tenantIds: string[];
61
+ repoId?: string | null;
62
+ capabilities: string[];
63
+ refs: string[];
64
+ paths: string[];
65
+ policyVersion?: string;
66
+ policyHash?: string;
67
+ }
68
+ export interface TreeDxAuthMode {
69
+ mode: 'dev' | 'connected';
70
+ connected: boolean;
71
+ verifier?: {
72
+ type: 'jwt_hs256' | 'hs256_dev' | 'jwks_oidc' | 'trusted_internal';
73
+ issuer?: string;
74
+ jwksUrl?: string;
75
+ };
76
+ }
77
+ export interface TreeDxCapabilityGrant {
78
+ id?: string;
79
+ actorId: string;
80
+ tenantId: string;
81
+ repoIds: string[];
82
+ capabilities: string[];
83
+ refs: string[];
84
+ paths: string[];
85
+ expiresAt?: string | null;
86
+ revokedAt?: string | null;
87
+ revokedByActorId?: string | null;
88
+ revocationReason?: string | null;
89
+ }
90
+ export interface TreeDxAuditEvent {
91
+ id: string;
92
+ eventType: string;
93
+ actorId?: string | null;
94
+ tenantId?: string | null;
95
+ repoId?: string | null;
96
+ nodeId?: string | null;
97
+ workspaceId?: string | null;
98
+ operation?: string | null;
99
+ status?: string | null;
100
+ requestId?: string | null;
101
+ requestedScope?: Record<string, unknown> | null;
102
+ effectiveScope?: Record<string, unknown> | null;
103
+ data: Record<string, unknown>;
104
+ recordedAt: string;
105
+ }
106
+ export interface TreeDxFederationQueryPlanRequest {
107
+ repoIds: string[];
108
+ refs?: Record<string, string>;
109
+ paths?: Record<string, string[]>;
110
+ queryType?: string;
111
+ capabilities?: string[];
112
+ }
113
+ export interface TreeDxFederationQueryPlan {
114
+ requestedScope: Record<string, unknown>;
115
+ effectiveScope: Record<string, unknown>;
116
+ rejected: Array<Record<string, unknown>>;
117
+ executable: false;
118
+ reason: string;
119
+ }
120
+ export interface TreeDxNode {
121
+ id: string;
122
+ baseUrl: string;
123
+ role: string;
124
+ health: string;
125
+ }
126
+ export interface TreeDxRepositoryPlacement {
127
+ repositoryId?: string;
128
+ repoId?: string;
129
+ primaryNodeId: string;
130
+ mirrorNodeIds: string[];
131
+ readPolicy: string;
132
+ writePolicy: string;
133
+ migrationState: string;
134
+ }
135
+ export interface TreeDxMirror {
136
+ id?: string;
137
+ repositoryId?: string;
138
+ repoId?: string;
139
+ sourceNodeId: string;
140
+ targetNodeId: string;
141
+ mode: string;
142
+ lastSeenCommit?: string | null;
143
+ behindBy?: number | null;
144
+ status: string;
145
+ }
146
+ export interface TreeDxRepository {
147
+ repoId: string;
148
+ name: string;
149
+ defaultRef: string;
150
+ status: string;
151
+ remoteUrl?: string | null;
152
+ }
153
+ export interface TreeDxRef {
154
+ name: string;
155
+ target?: string | null;
156
+ sha?: string | null;
157
+ kind: string;
158
+ }
159
+ export interface TreeDxRemote {
160
+ name: string;
161
+ url?: string | null;
162
+ }
163
+ export interface TreeDxRepositoryStatus {
164
+ repo: TreeDxRepository;
165
+ git: Record<string, unknown>;
166
+ placement?: TreeDxRepositoryPlacement | null;
167
+ }
168
+ export interface TreeDxCreateWorkspaceRequest {
169
+ repoId?: string;
170
+ baseRef?: string;
171
+ branchName?: string;
172
+ mode?: 'writable' | 'read_only';
173
+ allowedPaths?: string[];
174
+ ttlSeconds?: number;
175
+ }
176
+ export interface TreeDxWorkspace {
177
+ workspaceId: string;
178
+ repoId: string;
179
+ baseRef: string;
180
+ baseCommitSha: string;
181
+ branchName?: string | null;
182
+ mode: 'writable' | 'read_only';
183
+ status: string;
184
+ allowedPaths: string[];
185
+ commitSha?: string | null;
186
+ policyVersion?: string;
187
+ policyHash?: string;
188
+ revokedAt?: string | null;
189
+ revokedReason?: string | null;
190
+ }
191
+ export interface TreeDxWorkspaceRequest {
192
+ workspaceId: string;
193
+ }
194
+ export interface TreeDxListTreeRequest extends TreeDxWorkspaceRequest {
195
+ path?: string;
196
+ includeDeleted?: boolean;
197
+ }
198
+ export interface TreeDxTreeEntry {
199
+ path: string;
200
+ name: string;
201
+ kind: 'blob' | 'tree';
202
+ status?: string;
203
+ source?: 'base' | 'overlay';
204
+ objectId?: string | null;
205
+ contentHash?: string | null;
206
+ }
207
+ export interface TreeDxReadFileRequest extends TreeDxWorkspaceRequest {
208
+ path: string;
209
+ allowProtected?: boolean;
210
+ }
211
+ export interface TreeDxFile {
212
+ path: string;
213
+ encoding: 'utf8' | 'base64';
214
+ content: string;
215
+ sha: string;
216
+ source: 'base' | 'overlay';
217
+ stat?: {
218
+ size: number;
219
+ mtime?: string | null;
220
+ };
221
+ }
222
+ export interface TreeDxWriteFileRequest extends TreeDxWorkspaceRequest {
223
+ path: string;
224
+ encoding?: 'utf8';
225
+ content: string;
226
+ expectedSha?: string;
227
+ allowProtected?: boolean;
228
+ }
229
+ export interface TreeDxPatchFileRequest extends TreeDxWorkspaceRequest {
230
+ path: string;
231
+ patch: string;
232
+ expectedSha?: string;
233
+ allowProtected?: boolean;
234
+ }
235
+ export interface TreeDxDeleteFileRequest extends TreeDxWorkspaceRequest {
236
+ path: string;
237
+ expectedSha?: string;
238
+ allowProtected?: boolean;
239
+ }
240
+ export interface TreeDxFileMutationResult {
241
+ path: string;
242
+ status?: string;
243
+ file?: {
244
+ path: string;
245
+ encoding?: string;
246
+ sha?: string;
247
+ size?: number;
248
+ source?: string;
249
+ };
250
+ }
251
+ export interface TreeDxBlobReadRequest {
252
+ repoId?: string;
253
+ ref?: string;
254
+ path: string;
255
+ encoding?: 'base64';
256
+ expectedContentHash?: string;
257
+ allowProtected?: boolean;
258
+ }
259
+ export interface TreeDxBlobWriteRequest extends TreeDxWorkspaceRequest {
260
+ path: string;
261
+ encoding?: 'base64';
262
+ contentBase64: string;
263
+ contentType?: string;
264
+ expectedSha?: string;
265
+ expectedContentHash?: string;
266
+ allowProtected?: boolean;
267
+ }
268
+ export interface TreeDxBlobDeleteRequest extends TreeDxWorkspaceRequest {
269
+ path: string;
270
+ expectedSha?: string;
271
+ allowProtected?: boolean;
272
+ }
273
+ export interface TreeDxBlobDownloadRequest extends TreeDxWorkspaceRequest {
274
+ path: string;
275
+ allowProtected?: boolean;
276
+ }
277
+ export interface TreeDxBlobUploadRequest extends TreeDxWorkspaceRequest {
278
+ path: string;
279
+ content: ArrayBuffer | Uint8Array | Blob;
280
+ contentType?: string;
281
+ expectedSha?: string;
282
+ expectedContentHash?: string;
283
+ allowProtected?: boolean;
284
+ }
285
+ export interface TreeDxBlob {
286
+ path: string;
287
+ encoding: 'base64';
288
+ contentBase64: string;
289
+ objectId?: string | null;
290
+ sha?: string | null;
291
+ contentHash: string;
292
+ byteLength: number;
293
+ contentType: string;
294
+ source: 'base' | 'workspace';
295
+ }
296
+ export interface TreeDxBlobMutationResult {
297
+ workspaceId: string;
298
+ path: string;
299
+ op: 'put' | 'delete';
300
+ encoding?: 'base64';
301
+ contentHash?: string | null;
302
+ byteLength?: number;
303
+ contentType?: string | null;
304
+ }
305
+ export interface TreeDxBlobDownload {
306
+ content: ArrayBuffer;
307
+ contentType: string | null;
308
+ contentHash?: string;
309
+ objectId?: string;
310
+ source?: 'base' | 'workspace';
311
+ }
312
+ export interface TreeDxBlobUploadSession {
313
+ uploadId: string;
314
+ workspaceId: string;
315
+ path: string;
316
+ contentType?: string | null;
317
+ expectedContentHash?: string | null;
318
+ expectedSha?: string | null;
319
+ createdAt: string;
320
+ expiresAt: string;
321
+ status: 'open' | 'completed' | 'aborted' | string;
322
+ }
323
+ export interface TreeDxBlobUploadCreateRequest extends TreeDxWorkspaceRequest {
324
+ path: string;
325
+ contentType?: string;
326
+ expectedSha?: string;
327
+ expectedContentHash?: string;
328
+ allowProtected?: boolean;
329
+ }
330
+ export interface TreeDxBlobUploadPartRequest extends TreeDxWorkspaceRequest {
331
+ uploadId: string;
332
+ partNumber: number;
333
+ content: ArrayBuffer | Uint8Array | Blob;
334
+ }
335
+ export interface TreeDxBlobUploadCompleteRequest extends TreeDxWorkspaceRequest {
336
+ uploadId: string;
337
+ expectedSha?: string;
338
+ expectedContentHash?: string;
339
+ allowProtected?: boolean;
340
+ contentType?: string;
341
+ }
342
+ export interface TreeDxBlobUploadAbortRequest extends TreeDxWorkspaceRequest {
343
+ uploadId: string;
344
+ }
345
+ export interface TreeDxBlobUploadPart {
346
+ uploadId: string;
347
+ workspaceId: string;
348
+ partNumber: number;
349
+ byteLength: number;
350
+ contentHash: string;
351
+ createdAt: string;
352
+ }
353
+ export interface TreeDxSearchRequest extends TreeDxWorkspaceRequest {
354
+ query: string;
355
+ path?: string;
356
+ limit?: number;
357
+ caseSensitive?: boolean;
358
+ }
359
+ export interface TreeDxSearchResult {
360
+ results: Array<{
361
+ path: string;
362
+ line: number;
363
+ column: number;
364
+ snippet: string;
365
+ source: 'base' | 'overlay';
366
+ }>;
367
+ truncated?: boolean;
368
+ }
369
+ export interface TreeDxStatus {
370
+ workspaceId: string;
371
+ status: string;
372
+ changes: Array<Record<string, unknown>>;
373
+ }
374
+ export interface TreeDxDiff {
375
+ workspaceId: string;
376
+ diff: string;
377
+ changedPaths: string[];
378
+ }
379
+ export interface TreeDxCommitRequest extends TreeDxWorkspaceRequest {
380
+ message: string;
381
+ author: {
382
+ name: string;
383
+ email: string;
384
+ };
385
+ indexPolicy?: string;
386
+ }
387
+ export interface TreeDxCommitResult {
388
+ repoId: string;
389
+ workspaceId: string;
390
+ branchName: string;
391
+ commitSha: string;
392
+ changedPaths: string[];
393
+ status: 'committed';
394
+ }
395
+ export interface TreeDxExecRequest extends TreeDxWorkspaceRequest {
396
+ cmd: string;
397
+ mode?: 'read_only' | 'verification' | 'write_limited';
398
+ timeoutMs?: number;
399
+ maxOutputBytes?: number;
400
+ network?: 'none' | 'host';
401
+ resourceLimits?: {
402
+ cpu?: number;
403
+ memoryMb?: number;
404
+ pids?: number;
405
+ };
406
+ }
407
+ export interface TreeDxExecResult {
408
+ exitCode: number;
409
+ stdout: string;
410
+ stderr: string;
411
+ elapsedMs: number;
412
+ truncated: boolean;
413
+ changedPaths: string[];
414
+ sandbox?: {
415
+ backend: 'direct_dev' | 'container_sandbox' | 'external_worker' | string;
416
+ network: string;
417
+ resourceLimits?: {
418
+ cpu?: number;
419
+ memoryMb?: number;
420
+ pids?: number;
421
+ };
422
+ isolated: boolean;
423
+ };
424
+ }
425
+ export interface TreeDxRepositoryReadRequest {
426
+ repoId?: string;
427
+ ref?: string;
428
+ path?: string;
429
+ paths?: string[];
430
+ encoding?: 'utf8' | 'base64';
431
+ parseFrontmatter?: boolean;
432
+ allowProtected?: boolean;
433
+ }
434
+ export interface TreeDxRepositoryPathsRequest {
435
+ repoId?: string;
436
+ ref?: string;
437
+ paths?: string[];
438
+ kinds?: Array<'blob' | 'tree'>;
439
+ extensions?: string[];
440
+ limit?: number;
441
+ cursor?: string | null;
442
+ allowProtected?: boolean;
443
+ }
444
+ export interface TreeDxRepositorySearchRequest {
445
+ repoId?: string;
446
+ ref?: string;
447
+ paths?: string[];
448
+ query: string;
449
+ filters?: Array<{
450
+ field: string;
451
+ op: string;
452
+ value: unknown;
453
+ }>;
454
+ sort?: Array<{
455
+ field: string;
456
+ direction?: 'asc' | 'desc';
457
+ }>;
458
+ limit?: number;
459
+ cursor?: string | null;
460
+ caseSensitive?: boolean;
461
+ includeBody?: boolean;
462
+ includeFrontmatter?: boolean;
463
+ allowProtected?: boolean;
464
+ includeDiagnostics?: boolean;
465
+ diagnosticsLevel?: 'none' | 'summary' | 'ranking';
466
+ }
467
+ export interface TreeDxRepositoryQueryRequest {
468
+ repoId?: string;
469
+ ref?: string;
470
+ type?: 'path' | 'text' | 'frontmatter' | 'section' | 'link' | 'changed_path' | 'combined';
471
+ paths?: string[];
472
+ path?: string;
473
+ query?: string;
474
+ filters?: Array<{
475
+ field: string;
476
+ op: string;
477
+ value: unknown;
478
+ }>;
479
+ sort?: Array<{
480
+ field: string;
481
+ direction?: 'asc' | 'desc';
482
+ }>;
483
+ limit?: number;
484
+ cursor?: string | null;
485
+ baseRef?: string;
486
+ allowProtected?: boolean;
487
+ includeBody?: boolean;
488
+ includeFrontmatter?: boolean;
489
+ parseFrontmatter?: boolean;
490
+ encoding?: 'utf8' | 'base64';
491
+ includeDiagnostics?: boolean;
492
+ diagnosticsLevel?: 'none' | 'summary' | 'ranking';
493
+ }
494
+ export interface TreeDxRankingDiagnostics {
495
+ level: 'none' | 'summary' | 'ranking';
496
+ authorizedResultCount: number;
497
+ returnedResultCount: number;
498
+ searchedPatterns?: string[];
499
+ scoreFactors?: unknown;
500
+ }
501
+ export interface TreeDxRepositoryQueryResult {
502
+ repoId: string;
503
+ ref: string;
504
+ resolvedRef: string;
505
+ query?: string;
506
+ results?: unknown[];
507
+ entries?: unknown[];
508
+ file?: unknown;
509
+ files?: unknown[];
510
+ diagnostics?: TreeDxRankingDiagnostics;
511
+ page?: {
512
+ limit: number;
513
+ nextCursor: string | null;
514
+ hasMore: boolean;
515
+ };
516
+ }
517
+ export interface TreeDxGraphRefreshRequest extends SdkGraphRefreshRequest {
518
+ repoId?: string;
519
+ ref?: string;
520
+ allowProtected?: boolean;
521
+ force?: boolean;
522
+ incremental?: boolean;
523
+ changedPaths?: string[];
524
+ baseGraphVersion?: string;
525
+ forceFull?: boolean;
526
+ }
527
+ export type TreeDxGraphRefreshResult = SdkGraphRefreshPayload & {
528
+ repoId: string;
529
+ ref: string;
530
+ resolvedRef: string;
531
+ graphVersion: string;
532
+ jobId?: string;
533
+ refreshMode?: 'full' | 'incremental';
534
+ fallbackReason?: string | null;
535
+ changedPathCount?: number;
536
+ indexedPathCount?: number;
537
+ removedPathCount?: number;
538
+ stale?: boolean;
539
+ };
540
+ export interface TreeDxGraphRefreshJobRequest {
541
+ repoId?: string;
542
+ ref?: string;
543
+ jobId: string;
544
+ }
545
+ export interface TreeDxGraphRefreshJob {
546
+ jobId: string;
547
+ repoId: string;
548
+ ref: string;
549
+ requestedPaths: string[];
550
+ changedPaths: string[];
551
+ baseGraphVersion?: string | null;
552
+ graphVersion?: string | null;
553
+ refreshMode: 'full' | 'incremental';
554
+ fallbackReason?: string | null;
555
+ stale: boolean;
556
+ status: 'running' | 'completed' | 'failed';
557
+ startedAt: string;
558
+ completedAt?: string | null;
559
+ indexedPathCount: number;
560
+ removedPathCount: number;
561
+ errorCode?: string | null;
562
+ }
563
+ export type TreeDxContextMode = 'brief' | 'detailed' | 'citations' | 'mixed';
564
+ export interface TreeDxContextBudgetDiagnostics {
565
+ requestedMaxNodes: number;
566
+ usedNodes: number;
567
+ requestedMaxTokens: number;
568
+ estimatedTokens: number;
569
+ truncated: boolean;
570
+ }
571
+ export interface TreeDxSearchIndexRefreshRequest {
572
+ repoId?: string;
573
+ ref?: string;
574
+ paths?: string[];
575
+ allowProtected?: boolean;
576
+ }
577
+ export interface TreeDxSearchIndexRefreshResult {
578
+ repoId: string;
579
+ ref: string;
580
+ resolvedRef: string;
581
+ indexVersion: string;
582
+ graphVersion?: string | null;
583
+ segmentIds: string[];
584
+ indexedPathCount: number;
585
+ sourceCommit?: string | null;
586
+ stale: boolean;
587
+ }
588
+ export interface TreeDxSearchIndexStatusRequest {
589
+ repoId?: string;
590
+ ref?: string;
591
+ }
592
+ export interface TreeDxSearchIndexStatus {
593
+ repoId: string;
594
+ ref: string;
595
+ resolvedRef: string;
596
+ ready: boolean;
597
+ indexVersion?: string | null;
598
+ graphVersion?: string | null;
599
+ segmentIds: string[];
600
+ indexedPathCount: number;
601
+ segmentCount: number;
602
+ sourceCommit?: string | null;
603
+ stale: boolean;
604
+ }
605
+ export interface TreeDxSearchIndexCompactRequest {
606
+ repoId?: string;
607
+ ref?: string;
608
+ dryRun?: boolean;
609
+ }
610
+ export interface TreeDxSearchIndexCompactResult {
611
+ repoId: string;
612
+ ref: string;
613
+ dryRun: boolean;
614
+ segmentsBefore: number;
615
+ segmentsAfter: number;
616
+ compacted: boolean;
617
+ }
618
+ export interface TreeDxGraphSearchRequest {
619
+ repoId?: string;
620
+ ref?: string;
621
+ query: string;
622
+ limit?: number;
623
+ options?: SdkGraphSearchOptions;
624
+ }
625
+ export interface TreeDxGraphNodeRequest {
626
+ repoId?: string;
627
+ ref?: string;
628
+ nodeId: string;
629
+ }
630
+ export interface TreeDxGraphRelatedRequest {
631
+ repoId?: string;
632
+ ref?: string;
633
+ nodeId: string;
634
+ relations?: string[];
635
+ options?: Record<string, unknown>;
636
+ }
637
+ export interface TreeDxGraphSubgraphRequest {
638
+ repoId?: string;
639
+ ref?: string;
640
+ seedIds: string[];
641
+ options?: Record<string, unknown>;
642
+ }
643
+ export interface TreeDxGraphQueryRequest extends SdkGraphQueryRequest {
644
+ repoId?: string;
645
+ ref?: string;
646
+ }
647
+ export type TreeDxGraphQueryResult = SdkGraphQueryResult & {
648
+ repoId: string;
649
+ graphVersion: string;
650
+ };
651
+ export interface TreeDxContextRequest extends SdkContextPackRequest {
652
+ repoId?: string;
653
+ ref?: string;
654
+ mode?: TreeDxContextMode;
655
+ }
656
+ export type TreeDxContextResult = SdkContextPack & {
657
+ repoId: string;
658
+ graphVersion: string;
659
+ mode?: TreeDxContextMode;
660
+ diagnostics?: {
661
+ mode?: TreeDxContextMode;
662
+ budget?: TreeDxContextBudgetDiagnostics;
663
+ provenancePaths?: string[];
664
+ [key: string]: unknown;
665
+ };
666
+ };
667
+ export interface TreeDxCtxParseRequest {
668
+ repoId?: string;
669
+ ref?: string;
670
+ source: string;
671
+ }
672
+ export type TreeDxCtxParseResult = SdkGraphDslParseResult;
673
+ export interface TreeDxFederatedScopeInput {
674
+ repoIds?: string[];
675
+ refs?: Record<string, string>;
676
+ paths?: Record<string, string[]>;
677
+ includeErrors?: boolean;
678
+ timeoutMs?: number;
679
+ limit?: number;
680
+ cursor?: string | null;
681
+ }
682
+ export interface TreeDxFederatedError {
683
+ repoId?: string;
684
+ nodeId?: string;
685
+ code: string;
686
+ message: string;
687
+ status?: number;
688
+ }
689
+ export interface TreeDxFederatedDiagnostics {
690
+ requestedRepoCount: number;
691
+ executedRepoCount: number;
692
+ rejectedRepoCount: number;
693
+ partialFailureCount: number;
694
+ routing: Array<{
695
+ repoId?: string;
696
+ nodeId?: string;
697
+ source: 'local' | 'remote';
698
+ status: 'ok' | 'rejected' | 'partial_failure';
699
+ error?: {
700
+ code: string;
701
+ };
702
+ }>;
703
+ }
704
+ export interface TreeDxFederatedSearchRequest extends TreeDxFederatedScopeInput {
705
+ repoId?: string;
706
+ query: string;
707
+ filters?: unknown[];
708
+ sort?: Array<{
709
+ field: string;
710
+ direction: 'asc' | 'desc';
711
+ }>;
712
+ }
713
+ export interface TreeDxFederatedSearchResult {
714
+ query: string;
715
+ results: Array<Record<string, unknown> & {
716
+ repoId: string;
717
+ ref: string;
718
+ source: 'local' | 'remote';
719
+ }>;
720
+ page: {
721
+ limit: number;
722
+ hasMore: boolean;
723
+ cursor?: string | null;
724
+ };
725
+ diagnostics: TreeDxFederatedDiagnostics;
726
+ errors?: TreeDxFederatedError[];
727
+ }
728
+ export interface TreeDxFederatedQueryRequest extends TreeDxFederatedScopeInput {
729
+ repoId?: string;
730
+ type: 'path' | 'text' | 'frontmatter' | 'section' | 'link' | 'changed_path' | 'combined';
731
+ query?: string;
732
+ filters?: unknown[];
733
+ sort?: Array<{
734
+ field: string;
735
+ direction: 'asc' | 'desc';
736
+ }>;
737
+ }
738
+ export interface TreeDxFederatedQueryResult {
739
+ type: string;
740
+ results: Array<Record<string, unknown> & {
741
+ repoId: string;
742
+ ref: string;
743
+ source: 'local' | 'remote';
744
+ }>;
745
+ page: {
746
+ limit: number;
747
+ hasMore: boolean;
748
+ cursor?: string | null;
749
+ };
750
+ diagnostics: TreeDxFederatedDiagnostics;
751
+ errors?: TreeDxFederatedError[];
752
+ }
753
+ export interface TreeDxFederatedContextRequest extends TreeDxFederatedScopeInput {
754
+ query?: string;
755
+ seedIds?: string[];
756
+ seeds?: unknown[];
757
+ relations?: unknown[];
758
+ scopePaths?: string[];
759
+ budget?: Record<string, unknown>;
760
+ }
761
+ export interface TreeDxFederatedContextResult {
762
+ nodes: unknown[];
763
+ edges: unknown[];
764
+ files?: unknown[];
765
+ sections?: unknown[];
766
+ diagnostics: TreeDxFederatedDiagnostics & Record<string, unknown>;
767
+ errors?: TreeDxFederatedError[];
768
+ }
769
+ export interface TreeDxFederatedGraphRequest extends TreeDxFederatedScopeInput {
770
+ query?: string;
771
+ seedIds?: string[];
772
+ seeds?: unknown[];
773
+ relations?: unknown[];
774
+ scopePaths?: string[];
775
+ options?: Record<string, unknown>;
776
+ }
777
+ export interface TreeDxFederatedGraphResult {
778
+ nodes: unknown[];
779
+ edges: unknown[];
780
+ diagnostics: TreeDxFederatedDiagnostics & {
781
+ crossRepoEdgeCount?: number;
782
+ };
783
+ errors?: TreeDxFederatedError[];
784
+ }
785
+ export type TreeDxSnapshotKind = 'repository_snapshot' | 'index_snapshot' | 'graph_snapshot' | 'search_snapshot' | 'audit_export';
786
+ export interface TreeDxSnapshotFile {
787
+ path: string;
788
+ objectId: string;
789
+ size: number;
790
+ contentHash: string;
791
+ }
792
+ export interface TreeDxArtifact {
793
+ artifactId: string;
794
+ snapshotId: string;
795
+ repoId: string;
796
+ format: 'tar.zst';
797
+ size: number;
798
+ checksum: string;
799
+ uri: string;
800
+ downloadUrl?: string;
801
+ createdAt?: string;
802
+ status?: string;
803
+ }
804
+ export interface TreeDxArtifactListRequest {
805
+ repoId?: string;
806
+ }
807
+ export interface TreeDxArtifactGetRequest {
808
+ repoId?: string;
809
+ artifactId: string;
810
+ }
811
+ export interface TreeDxArtifactDeleteRequest {
812
+ repoId?: string;
813
+ artifactId: string;
814
+ }
815
+ export interface TreeDxArtifactCleanupRequest {
816
+ retentionDays?: number;
817
+ }
818
+ export interface TreeDxArtifactCleanupResult {
819
+ deletedCount: number;
820
+ retentionDays: number;
821
+ }
822
+ export interface TreeDxSnapshot {
823
+ snapshotId: string;
824
+ repoId: string;
825
+ ref: string;
826
+ commitSha: string;
827
+ kind: TreeDxSnapshotKind;
828
+ includedPaths: string[];
829
+ graphVersion?: string | null;
830
+ fileCount: number;
831
+ totalBytes: number;
832
+ files?: TreeDxSnapshotFile[];
833
+ checksums: Record<string, unknown>;
834
+ artifact?: TreeDxArtifact | null;
835
+ createdAt: string;
836
+ }
837
+ export interface TreeDxSnapshotBuildRequest {
838
+ repoId?: string;
839
+ ref?: string;
840
+ kind?: TreeDxSnapshotKind;
841
+ paths?: string[];
842
+ allowProtected?: boolean;
843
+ includeGraph?: boolean;
844
+ }
845
+ export interface TreeDxArtifactExportRequest extends TreeDxSnapshotBuildRequest {
846
+ snapshotId?: string;
847
+ }
848
+ export interface TreeDxArtifactDownload {
849
+ content: ArrayBuffer;
850
+ contentType: string | null;
851
+ filename?: string;
852
+ checksum?: string;
853
+ snapshotId?: string;
854
+ }
855
+ export interface TreeDxMirrorSyncRequest {
856
+ repoId?: string;
857
+ mirrorId: string;
858
+ remoteName?: string;
859
+ remoteUrl?: string;
860
+ credentialId?: string;
861
+ refspecs?: string[];
862
+ dryRun?: boolean;
863
+ }
864
+ export interface TreeDxMirrorSyncResult {
865
+ mirror: TreeDxMirror;
866
+ sync: Record<string, unknown>;
867
+ }
868
+ export interface TreeDxFetchRemoteRequest {
869
+ repoId?: string;
870
+ remoteName?: string;
871
+ remoteUrl?: string;
872
+ credentialId?: string;
873
+ refspecs?: string[];
874
+ dryRun?: boolean;
875
+ }
876
+ export interface TreeDxFetchRemoteResult {
877
+ fetch: {
878
+ repoId?: string;
879
+ remoteName: string;
880
+ remoteUrl?: string | null;
881
+ refspecs: string[];
882
+ updatedRefs: string[];
883
+ receivedPack?: boolean;
884
+ beforeHead?: string | null;
885
+ afterHead?: string | null;
886
+ status: string;
887
+ };
888
+ }
889
+ export interface TreeDxPushRequest extends TreeDxFetchRemoteRequest {
890
+ refspecs: string[];
891
+ expectedRemoteHead?: string | null;
892
+ }
893
+ export interface TreeDxPushResult {
894
+ repoId?: string;
895
+ remoteName: string;
896
+ remoteUrl?: string | null;
897
+ refspecs: string[];
898
+ dryRun?: boolean;
899
+ backend: string;
900
+ status: 'dry_run' | 'pushed' | string;
901
+ updatedRefs: string[];
902
+ rejectedRefs: string[];
903
+ beforeHead?: string | null;
904
+ afterHead?: string | null;
905
+ }
906
+ export interface TreeDxMirrorHealthRequest {
907
+ repoId?: string;
908
+ mirrorId: string;
909
+ }
910
+ export interface TreeDxMirrorHealthResult {
911
+ health: {
912
+ mirrorId: string;
913
+ repoId: string;
914
+ status: 'healthy' | 'degraded' | 'unhealthy' | string;
915
+ mirrorStatus?: string;
916
+ behindBy?: number | null;
917
+ lastSeenCommit?: string | null;
918
+ };
919
+ }
920
+ export interface TreeDxMirrorPromotionRequest {
921
+ repoId?: string;
922
+ mirrorId: string;
923
+ dryRun?: boolean;
924
+ requireSynced?: boolean;
925
+ }
926
+ export interface TreeDxMirrorPromotionResult {
927
+ promotion: {
928
+ mirrorId: string;
929
+ repoId: string;
930
+ dryRun: boolean;
931
+ status: 'planned' | 'promoted' | string;
932
+ previousPlacement?: TreeDxRepositoryPlacement | null;
933
+ resultingPlacement?: TreeDxRepositoryPlacement | null;
934
+ };
935
+ }
936
+ export interface TreeDxStorageCompactRequest {
937
+ logs?: string[];
938
+ dryRun?: boolean;
939
+ backupBefore?: boolean;
940
+ }
941
+ export interface TreeDxStorageCompactResult {
942
+ compact: {
943
+ status: string;
944
+ dryRun: boolean;
945
+ backupId?: string | null;
946
+ files: Array<{
947
+ file: string;
948
+ recordsBefore: number;
949
+ recordsAfter: number;
950
+ bytesBefore: number;
951
+ bytesAfter: number;
952
+ compacted: boolean;
953
+ }>;
954
+ };
955
+ }
956
+ export interface TreeDxStorageBackupRequest {
957
+ include?: string[];
958
+ verify?: boolean;
959
+ }
960
+ export interface TreeDxStorageBackupResult {
961
+ backup: {
962
+ backupId: string;
963
+ format: 'tar.zst';
964
+ uri: string;
965
+ checksum: string;
966
+ byteLength: number;
967
+ verified: boolean;
968
+ };
969
+ }
970
+ export interface TreeDxStorageMigration {
971
+ migrationId: string;
972
+ fromVersion?: string;
973
+ toVersion?: string;
974
+ dryRun?: boolean;
975
+ reversible?: boolean;
976
+ logs?: string[];
977
+ status: string;
978
+ backupId?: string | null;
979
+ startedAt?: string;
980
+ completedAt?: string;
981
+ }
982
+ export interface TreeDxStorageMigrationPlanRequest {
983
+ targetVersion?: string;
984
+ backupBefore?: boolean;
985
+ }
986
+ export interface TreeDxStorageMigrationRollbackRequest {
987
+ migrationId: string;
988
+ }
989
+ export interface TreeDxStorageRestoreVerifyRequest {
990
+ backupId: string;
991
+ }
992
+ export interface TreeDxStorageRestoreRequest extends TreeDxStorageRestoreVerifyRequest {
993
+ dryRun?: boolean;
994
+ backupBeforeRestore?: boolean;
995
+ force?: boolean;
996
+ }
997
+ export interface TreeDxStorageRestoreResult {
998
+ restore: {
999
+ restoreId?: string;
1000
+ backupId: string;
1001
+ dryRun: boolean;
1002
+ verified?: boolean;
1003
+ backupBeforeRestore?: boolean;
1004
+ preRestoreBackupId?: string | null;
1005
+ status?: string;
1006
+ uri: string;
1007
+ };
1008
+ }
1009
+ export interface TreeDxMigrationRequest {
1010
+ repoId?: string;
1011
+ targetNodeId: string;
1012
+ sourceNodeId?: string;
1013
+ mode?: 'primary_transfer' | 'mirror_promotion';
1014
+ dryRun?: boolean;
1015
+ requireMirrorSynced?: boolean;
1016
+ }
1017
+ export interface TreeDxMigration {
1018
+ id: string;
1019
+ repositoryId: string;
1020
+ sourceNodeId: string;
1021
+ targetNodeId: string;
1022
+ mode: string;
1023
+ status: string;
1024
+ dryRun: boolean;
1025
+ requireMirrorSynced: boolean;
1026
+ previousPlacement?: TreeDxRepositoryPlacement | null;
1027
+ resultingPlacement?: TreeDxRepositoryPlacement | null;
1028
+ createdAt: string;
1029
+ completedAt?: string | null;
1030
+ }
1031
+ export type { components as TreeDxOpenApiComponents, operations as TreeDxOpenApiOperations, paths as TreeDxOpenApiPaths, SdkContextPack, SdkContextPackRequest, SdkGraphDslParseResult, SdkGraphEdge, SdkGraphNode, SdkGraphQueryRequest, SdkGraphQueryResult, SdkGraphRefreshPayload, SdkGraphRefreshRequest, SdkGraphSearchOptions, SdkGraphSearchResult, SdkGraphTraversalResult, };
1032
+ export type TreeDxWhoamiResponse = components['schemas']['TreeDxGetWhoamiResponse'];
1033
+ export type TreeDxReadinessResponse = components['schemas']['TreeDxReadinessResponse'];
1034
+ export type TreeDxDeepHealthResponse = components['schemas']['TreeDxDeepHealthResponse'];
1035
+ export type TreeDxMetricsResponse = components['schemas']['TreeDxMetricsResponse'];
1036
+ export type TreeDxAuthModeResponse = components['schemas']['TreeDxGetAuthModeResponse'];
1037
+ export type TreeDxDevTokenResponse = components['schemas']['TreeDxCreateDevTokenResponse'];
1038
+ export type TreeDxEffectiveScopeResponse = components['schemas']['TreeDxGetEffectiveScopeResponse'];
1039
+ export type TreeDxPolicyRefreshResponse = components['schemas']['TreeDxRefreshPolicyResponse'];
1040
+ export type TreeDxCapabilityGrantResponse = components['schemas']['TreeDxPutCapabilityGrantResponse'];
1041
+ export type TreeDxCapabilityGrantListResponse = components['schemas']['TreeDxListCapabilityGrantsResponse'];
1042
+ export type TreeDxAuditEventListResponse = components['schemas']['TreeDxListAuditEventsResponse'];
1043
+ export type TreeDxNodeResponse = components['schemas']['TreeDxGetLocalNodeResponse'];
1044
+ export type TreeDxNodeListResponse = components['schemas']['TreeDxListRegistryNodesResponse'];
1045
+ export type TreeDxRepositoryPlacementResponse = components['schemas']['TreeDxGetRepositoryPlacementResponse'];
1046
+ export type TreeDxRepositoryResponse = components['schemas']['TreeDxGetRepositoryResponse'];
1047
+ export type TreeDxRepositoryListResponse = components['schemas']['TreeDxListRepositoriesResponse'];
1048
+ export type TreeDxRepositoryStatusResponse = components['schemas']['TreeDxGetRepositoryStatusResponse'];
1049
+ export type TreeDxRepositoryRefListResponse = components['schemas']['TreeDxListRepositoryRefsResponse'];
1050
+ export type TreeDxRepositoryRemoteListResponse = components['schemas']['TreeDxListRepositoryRemotesResponse'];
1051
+ export type TreeDxFetchRemoteResponse = components['schemas']['TreeDxSyncRepositoryResponse'];
1052
+ export type TreeDxPushResponse = components['schemas']['TreeDxPushRepositoryResponse'];
1053
+ export type TreeDxWorkspaceResponse = components['schemas']['TreeDxGetWorkspaceResponse'];
1054
+ export type TreeDxWorkspaceClosedResponse = components['schemas']['TreeDxCloseWorkspaceResponse'];
1055
+ export type TreeDxTreeResponse = components['schemas']['TreeDxListWorkspaceTreeResponse'];
1056
+ export type TreeDxFileResponse = components['schemas']['TreeDxReadWorkspaceFileResponse'];
1057
+ export type TreeDxFileMutationResponse = components['schemas']['TreeDxWriteWorkspaceFileResponse'];
1058
+ export type TreeDxBlobResponse = components['schemas']['TreeDxReadRepositoryBlobResponse'];
1059
+ export type TreeDxBlobMutationResponse = components['schemas']['TreeDxWriteWorkspaceBlobResponse'];
1060
+ export type TreeDxBlobUploadSessionResponse = components['schemas']['TreeDxCreateWorkspaceBlobUploadResponse'];
1061
+ export type TreeDxBlobUploadPartResponse = components['schemas']['TreeDxUploadWorkspaceBlobPartResponse'];
1062
+ export type TreeDxRepositoryQueryResponse = components['schemas']['TreeDxQueryRepositoryResponse'];
1063
+ export type TreeDxGraphRefreshResponse = components['schemas']['TreeDxRefreshRepositoryGraphResponse'];
1064
+ export type TreeDxGraphRefreshJobResponse = components['schemas']['TreeDxGetGraphRefreshJobResponse'];
1065
+ export type TreeDxGraphQueryResponse = components['schemas']['TreeDxQueryRepositoryGraphResponse'];
1066
+ export type TreeDxGraphSearchResponse = components['schemas']['TreeDxSearchGraphFilesResponse'];
1067
+ export type TreeDxGraphNodeResponse = components['schemas']['TreeDxGetGraphNodeResponse'];
1068
+ export type TreeDxGraphTraversalResponse = components['schemas']['TreeDxGetRelatedGraphNodesResponse'];
1069
+ export type TreeDxContextResponse = components['schemas']['TreeDxBuildContextResponse'];
1070
+ export type TreeDxCtxParseResponse = components['schemas']['TreeDxParseContextQueryResponse'];
1071
+ export type TreeDxSnapshotResponse = components['schemas']['TreeDxGetSnapshotResponse'];
1072
+ export type TreeDxArtifactResponse = components['schemas']['TreeDxGetArtifactResponse'];
1073
+ export type TreeDxArtifactListResponse = components['schemas']['TreeDxListArtifactsResponse'];
1074
+ export type TreeDxMirrorListResponse = components['schemas']['TreeDxListMirrorsResponse'];
1075
+ export type TreeDxMirrorResponse = components['schemas']['TreeDxPutMirrorResponse'];
1076
+ export type TreeDxMigrationResponse = components['schemas']['TreeDxGetMigrationResponse'];
1077
+ export type TreeDxFederationQueryPlanResponse = components['schemas']['TreeDxPlanFederationQueryResponse'];
1078
+ export type TreeDxFederatedSearchResponse = components['schemas']['TreeDxFederatedSearchResponse'];
1079
+ export type TreeDxFederatedQueryResponse = components['schemas']['TreeDxFederatedQueryResponse'];
1080
+ export type TreeDxFederatedContextResponse = components['schemas']['TreeDxFederatedContextBuildResponse'];
1081
+ export type TreeDxFederatedGraphResponse = components['schemas']['TreeDxFederatedGraphQueryResponse'];
1082
+ export type TreeDxStorageHealthResponse = components['schemas']['TreeDxGetAdminStorageHealthResponse'];
1083
+ export type TreeDxStorageCheckResponse = components['schemas']['TreeDxCheckAdminStorageResponse'];
1084
+ export type TreeDxStorageMigrationListResponse = components['schemas']['TreeDxListStorageMigrationsResponse'];