@treeseed/treedx 0.1.1

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 (121) hide show
  1. package/README.md +208 -0
  2. package/dist/treedx/adapters/admin.d.ts +20 -0
  3. package/dist/treedx/adapters/admin.js +22 -0
  4. package/dist/treedx/adapters/artifacts.d.ts +9 -0
  5. package/dist/treedx/adapters/artifacts.js +11 -0
  6. package/dist/treedx/adapters/audit.d.ts +6 -0
  7. package/dist/treedx/adapters/audit.js +8 -0
  8. package/dist/treedx/adapters/blobs.d.ts +15 -0
  9. package/dist/treedx/adapters/blobs.js +16 -0
  10. package/dist/treedx/adapters/common.d.ts +7 -0
  11. package/dist/treedx/adapters/common.js +11 -0
  12. package/dist/treedx/adapters/context.d.ts +7 -0
  13. package/dist/treedx/adapters/context.js +9 -0
  14. package/dist/treedx/adapters/exec.d.ts +6 -0
  15. package/dist/treedx/adapters/exec.js +8 -0
  16. package/dist/treedx/adapters/federation-internal.d.ts +9 -0
  17. package/dist/treedx/adapters/federation-internal.js +11 -0
  18. package/dist/treedx/adapters/federation.d.ts +20 -0
  19. package/dist/treedx/adapters/federation.js +22 -0
  20. package/dist/treedx/adapters/files.d.ts +14 -0
  21. package/dist/treedx/adapters/files.js +16 -0
  22. package/dist/treedx/adapters/graph.d.ts +14 -0
  23. package/dist/treedx/adapters/graph.js +16 -0
  24. package/dist/treedx/adapters/index.d.ts +21 -0
  25. package/dist/treedx/adapters/index.js +21 -0
  26. package/dist/treedx/adapters/migrations.d.ts +7 -0
  27. package/dist/treedx/adapters/migrations.js +9 -0
  28. package/dist/treedx/adapters/mirrors.d.ts +10 -0
  29. package/dist/treedx/adapters/mirrors.js +12 -0
  30. package/dist/treedx/adapters/observability.d.ts +9 -0
  31. package/dist/treedx/adapters/observability.js +11 -0
  32. package/dist/treedx/adapters/policy.d.ts +9 -0
  33. package/dist/treedx/adapters/policy.js +11 -0
  34. package/dist/treedx/adapters/query.d.ts +9 -0
  35. package/dist/treedx/adapters/query.js +11 -0
  36. package/dist/treedx/adapters/registry.d.ts +9 -0
  37. package/dist/treedx/adapters/registry.js +11 -0
  38. package/dist/treedx/adapters/repositories.d.ts +14 -0
  39. package/dist/treedx/adapters/repositories.js +16 -0
  40. package/dist/treedx/adapters/search-index.d.ts +8 -0
  41. package/dist/treedx/adapters/search-index.js +10 -0
  42. package/dist/treedx/adapters/snapshots.d.ts +7 -0
  43. package/dist/treedx/adapters/snapshots.js +9 -0
  44. package/dist/treedx/adapters/workspaces.d.ts +8 -0
  45. package/dist/treedx/adapters/workspaces.js +10 -0
  46. package/dist/treedx/client/TreeDxClient.d.ts +41 -0
  47. package/dist/treedx/client/TreeDxClient.js +83 -0
  48. package/dist/treedx/client/TreeDxFederatedClient.d.ts +7 -0
  49. package/dist/treedx/client/TreeDxFederatedClient.js +10 -0
  50. package/dist/treedx/client/TreeDxRegistryClient.d.ts +7 -0
  51. package/dist/treedx/client/TreeDxRegistryClient.js +10 -0
  52. package/dist/treedx/client/auth.d.ts +8 -0
  53. package/dist/treedx/client/auth.js +26 -0
  54. package/dist/treedx/client/binary.d.ts +4 -0
  55. package/dist/treedx/client/binary.js +39 -0
  56. package/dist/treedx/client/errors.d.ts +17 -0
  57. package/dist/treedx/client/errors.js +35 -0
  58. package/dist/treedx/client/index.d.ts +8 -0
  59. package/dist/treedx/client/index.js +8 -0
  60. package/dist/treedx/client/pagination.d.ts +4 -0
  61. package/dist/treedx/client/pagination.js +15 -0
  62. package/dist/treedx/client/transport.d.ts +15 -0
  63. package/dist/treedx/client/transport.js +61 -0
  64. package/dist/treedx/conformance/adapter.d.ts +28 -0
  65. package/dist/treedx/conformance/adapter.js +43 -0
  66. package/dist/treedx/conformance/index.d.ts +1 -0
  67. package/dist/treedx/conformance/index.js +1 -0
  68. package/dist/treedx/generated/index.d.ts +1 -0
  69. package/dist/treedx/generated/index.js +1 -0
  70. package/dist/treedx/generated/openapi-types.d.ts +348 -0
  71. package/dist/treedx/generated/openapi-types.js +117 -0
  72. package/dist/treedx/index.d.ts +5 -0
  73. package/dist/treedx/index.js +5 -0
  74. package/dist/treedx/ports/admin-port.d.ts +1 -0
  75. package/dist/treedx/ports/admin-port.js +1 -0
  76. package/dist/treedx/ports/artifact-port.d.ts +2 -0
  77. package/dist/treedx/ports/artifact-port.js +1 -0
  78. package/dist/treedx/ports/audit-port.d.ts +1 -0
  79. package/dist/treedx/ports/audit-port.js +1 -0
  80. package/dist/treedx/ports/auth-provider.d.ts +1 -0
  81. package/dist/treedx/ports/auth-provider.js +1 -0
  82. package/dist/treedx/ports/blob-port.d.ts +2 -0
  83. package/dist/treedx/ports/blob-port.js +1 -0
  84. package/dist/treedx/ports/context-port.d.ts +2 -0
  85. package/dist/treedx/ports/context-port.js +1 -0
  86. package/dist/treedx/ports/exec-port.d.ts +2 -0
  87. package/dist/treedx/ports/exec-port.js +1 -0
  88. package/dist/treedx/ports/federation-internal-port.d.ts +1 -0
  89. package/dist/treedx/ports/federation-internal-port.js +1 -0
  90. package/dist/treedx/ports/federation-port.d.ts +2 -0
  91. package/dist/treedx/ports/federation-port.js +1 -0
  92. package/dist/treedx/ports/file-port.d.ts +2 -0
  93. package/dist/treedx/ports/file-port.js +1 -0
  94. package/dist/treedx/ports/graph-port.d.ts +2 -0
  95. package/dist/treedx/ports/graph-port.js +1 -0
  96. package/dist/treedx/ports/index.d.ts +21 -0
  97. package/dist/treedx/ports/index.js +21 -0
  98. package/dist/treedx/ports/migration-port.d.ts +2 -0
  99. package/dist/treedx/ports/migration-port.js +1 -0
  100. package/dist/treedx/ports/mirror-port.d.ts +2 -0
  101. package/dist/treedx/ports/mirror-port.js +1 -0
  102. package/dist/treedx/ports/policy-port.d.ts +1 -0
  103. package/dist/treedx/ports/policy-port.js +1 -0
  104. package/dist/treedx/ports/query-port.d.ts +2 -0
  105. package/dist/treedx/ports/query-port.js +1 -0
  106. package/dist/treedx/ports/registry-port.d.ts +2 -0
  107. package/dist/treedx/ports/registry-port.js +1 -0
  108. package/dist/treedx/ports/repository-port.d.ts +2 -0
  109. package/dist/treedx/ports/repository-port.js +1 -0
  110. package/dist/treedx/ports/search-index-port.d.ts +1 -0
  111. package/dist/treedx/ports/search-index-port.js +1 -0
  112. package/dist/treedx/ports/snapshot-port.d.ts +2 -0
  113. package/dist/treedx/ports/snapshot-port.js +1 -0
  114. package/dist/treedx/ports/transport.d.ts +1 -0
  115. package/dist/treedx/ports/transport.js +1 -0
  116. package/dist/treedx/ports/workspace-port.d.ts +2 -0
  117. package/dist/treedx/ports/workspace-port.js +1 -0
  118. package/dist/treedx/types/index.d.ts +55 -0
  119. package/dist/treedx/types/index.js +1 -0
  120. package/package.json +66 -0
  121. package/sdk-manifest.yaml +64 -0
@@ -0,0 +1,43 @@
1
+ export class TreeDxConformanceAdapter {
2
+ options;
3
+ constructor(options) {
4
+ this.options = options;
5
+ }
6
+ async runScenario(scenario) {
7
+ if (!this.options.serverConfigured) {
8
+ return {
9
+ scenarioId: scenario.id,
10
+ status: 'not_configured',
11
+ message: 'TreeDX server is not configured for TypeScript conformance execution'
12
+ };
13
+ }
14
+ try {
15
+ for (const endpointRef of scenario.endpointRefs) {
16
+ const [method, path] = endpointRef.split(' ', 2);
17
+ await this.options.client.operation(method, path, {
18
+ pathParams: {
19
+ repo_id: process.env.TREEDX_CONFORMANCE_REPO_ID ?? 'repo_conformance',
20
+ workspace_id: process.env.TREEDX_CONFORMANCE_WORKSPACE_ID ?? 'workspace_conformance',
21
+ node_id: process.env.TREEDX_CONFORMANCE_NODE_ID ?? 'node_conformance',
22
+ job_id: process.env.TREEDX_CONFORMANCE_JOB_ID ?? 'job_conformance',
23
+ snapshot_id: process.env.TREEDX_CONFORMANCE_SNAPSHOT_ID ?? 'snapshot_conformance',
24
+ artifact_id: process.env.TREEDX_CONFORMANCE_ARTIFACT_ID ?? 'artifact_conformance',
25
+ mirror_id: process.env.TREEDX_CONFORMANCE_MIRROR_ID ?? 'mirror_conformance',
26
+ migration_id: process.env.TREEDX_CONFORMANCE_MIGRATION_ID ?? 'migration_conformance',
27
+ upload_id: process.env.TREEDX_CONFORMANCE_UPLOAD_ID ?? 'upload_conformance',
28
+ part_number: process.env.TREEDX_CONFORMANCE_PART_NUMBER ?? 1
29
+ },
30
+ body: method === 'GET' || method === 'DELETE' ? undefined : { dryRun: true }
31
+ });
32
+ }
33
+ return { scenarioId: scenario.id, status: 'passed' };
34
+ }
35
+ catch (error) {
36
+ return {
37
+ scenarioId: scenario.id,
38
+ status: 'failed',
39
+ message: error instanceof Error ? error.message : 'TreeDX conformance scenario failed'
40
+ };
41
+ }
42
+ }
43
+ }
@@ -0,0 +1 @@
1
+ export * from './adapter.js';
@@ -0,0 +1 @@
1
+ export * from './adapter.js';
@@ -0,0 +1 @@
1
+ export * from './openapi-types.js';
@@ -0,0 +1 @@
1
+ export * from './openapi-types.js';
@@ -0,0 +1,348 @@
1
+ export type TreeDxOpenApiMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2
+ export interface TreeDxOpenApiOperation {
3
+ method: TreeDxOpenApiMethod;
4
+ path: string;
5
+ }
6
+ export type TreeDxOpenApiPath = typeof TREEDX_OPENAPI_OPERATIONS[number]["path"];
7
+ export type TreeDxOpenApiOperationKey = `${TreeDxOpenApiMethod} ${TreeDxOpenApiPath}`;
8
+ export declare const TREEDX_OPENAPI_OPERATION_COUNT: 113;
9
+ export declare const TREEDX_OPENAPI_OPERATIONS: readonly [{
10
+ readonly method: "DELETE";
11
+ readonly path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}";
12
+ }, {
13
+ readonly method: "DELETE";
14
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}";
15
+ }, {
16
+ readonly method: "DELETE";
17
+ readonly path: "/api/v1/workspaces/{workspace_id}/files";
18
+ }, {
19
+ readonly method: "GET";
20
+ readonly path: "/api/v1/admin/health/deep";
21
+ }, {
22
+ readonly method: "GET";
23
+ readonly path: "/api/v1/admin/storage/health";
24
+ }, {
25
+ readonly method: "GET";
26
+ readonly path: "/api/v1/admin/storage/migrations";
27
+ }, {
28
+ readonly method: "GET";
29
+ readonly path: "/api/v1/admin/workspaces/quarantined";
30
+ }, {
31
+ readonly method: "GET";
32
+ readonly path: "/api/v1/audit/events";
33
+ }, {
34
+ readonly method: "GET";
35
+ readonly path: "/api/v1/auth/mode";
36
+ }, {
37
+ readonly method: "GET";
38
+ readonly path: "/api/v1/auth/whoami";
39
+ }, {
40
+ readonly method: "GET";
41
+ readonly path: "/api/v1/federation/catalog";
42
+ }, {
43
+ readonly method: "GET";
44
+ readonly path: "/api/v1/federation/peers";
45
+ }, {
46
+ readonly method: "GET";
47
+ readonly path: "/api/v1/federation/peers/{node_id}";
48
+ }, {
49
+ readonly method: "GET";
50
+ readonly path: "/api/v1/federation/routes";
51
+ }, {
52
+ readonly method: "GET";
53
+ readonly path: "/api/v1/health";
54
+ }, {
55
+ readonly method: "GET";
56
+ readonly path: "/api/v1/health/deep";
57
+ }, {
58
+ readonly method: "GET";
59
+ readonly path: "/api/v1/internal/federation/health";
60
+ }, {
61
+ readonly method: "GET";
62
+ readonly path: "/api/v1/metrics";
63
+ }, {
64
+ readonly method: "GET";
65
+ readonly path: "/api/v1/node";
66
+ }, {
67
+ readonly method: "GET";
68
+ readonly path: "/api/v1/policy/capabilities";
69
+ }, {
70
+ readonly method: "GET";
71
+ readonly path: "/api/v1/policy/effective-scope";
72
+ }, {
73
+ readonly method: "GET";
74
+ readonly path: "/api/v1/policy/grants";
75
+ }, {
76
+ readonly method: "GET";
77
+ readonly path: "/api/v1/ready";
78
+ }, {
79
+ readonly method: "GET";
80
+ readonly path: "/api/v1/registry/nodes";
81
+ }, {
82
+ readonly method: "GET";
83
+ readonly path: "/api/v1/registry/repos/{repo_id}/placement";
84
+ }, {
85
+ readonly method: "GET";
86
+ readonly path: "/api/v1/repos";
87
+ }, {
88
+ readonly method: "GET";
89
+ readonly path: "/api/v1/repos/{repo_id}";
90
+ }, {
91
+ readonly method: "GET";
92
+ readonly path: "/api/v1/repos/{repo_id}/artifacts";
93
+ }, {
94
+ readonly method: "GET";
95
+ readonly path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}";
96
+ }, {
97
+ readonly method: "GET";
98
+ readonly path: "/api/v1/repos/{repo_id}/graph/nodes/{node_id}";
99
+ }, {
100
+ readonly method: "GET";
101
+ readonly path: "/api/v1/repos/{repo_id}/graph/refresh-jobs/{job_id}";
102
+ }, {
103
+ readonly method: "GET";
104
+ readonly path: "/api/v1/repos/{repo_id}/migrations/{migration_id}";
105
+ }, {
106
+ readonly method: "GET";
107
+ readonly path: "/api/v1/repos/{repo_id}/mirrors";
108
+ }, {
109
+ readonly method: "GET";
110
+ readonly path: "/api/v1/repos/{repo_id}/refs";
111
+ }, {
112
+ readonly method: "GET";
113
+ readonly path: "/api/v1/repos/{repo_id}/remotes";
114
+ }, {
115
+ readonly method: "GET";
116
+ readonly path: "/api/v1/repos/{repo_id}/search/index/status";
117
+ }, {
118
+ readonly method: "GET";
119
+ readonly path: "/api/v1/repos/{repo_id}/snapshots/{snapshot_id}";
120
+ }, {
121
+ readonly method: "GET";
122
+ readonly path: "/api/v1/repos/{repo_id}/status";
123
+ }, {
124
+ readonly method: "GET";
125
+ readonly path: "/api/v1/version";
126
+ }, {
127
+ readonly method: "GET";
128
+ readonly path: "/api/v1/workspaces/{workspace_id}";
129
+ }, {
130
+ readonly method: "GET";
131
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/download";
132
+ }, {
133
+ readonly method: "GET";
134
+ readonly path: "/api/v1/workspaces/{workspace_id}/diff";
135
+ }, {
136
+ readonly method: "GET";
137
+ readonly path: "/api/v1/workspaces/{workspace_id}/files";
138
+ }, {
139
+ readonly method: "GET";
140
+ readonly path: "/api/v1/workspaces/{workspace_id}/status";
141
+ }, {
142
+ readonly method: "GET";
143
+ readonly path: "/api/v1/workspaces/{workspace_id}/tree";
144
+ }, {
145
+ readonly method: "PATCH";
146
+ readonly path: "/api/v1/workspaces/{workspace_id}/files";
147
+ }, {
148
+ readonly method: "POST";
149
+ readonly path: "/api/v1/admin/artifacts/cleanup";
150
+ }, {
151
+ readonly method: "POST";
152
+ readonly path: "/api/v1/admin/repos/import-local";
153
+ }, {
154
+ readonly method: "POST";
155
+ readonly path: "/api/v1/admin/storage/backup";
156
+ }, {
157
+ readonly method: "POST";
158
+ readonly path: "/api/v1/admin/storage/check";
159
+ }, {
160
+ readonly method: "POST";
161
+ readonly path: "/api/v1/admin/storage/compact";
162
+ }, {
163
+ readonly method: "POST";
164
+ readonly path: "/api/v1/admin/storage/migrations/apply";
165
+ }, {
166
+ readonly method: "POST";
167
+ readonly path: "/api/v1/admin/storage/migrations/plan";
168
+ }, {
169
+ readonly method: "POST";
170
+ readonly path: "/api/v1/admin/storage/migrations/rollback";
171
+ }, {
172
+ readonly method: "POST";
173
+ readonly path: "/api/v1/admin/storage/recover";
174
+ }, {
175
+ readonly method: "POST";
176
+ readonly path: "/api/v1/admin/storage/restore";
177
+ }, {
178
+ readonly method: "POST";
179
+ readonly path: "/api/v1/admin/storage/restore/verify";
180
+ }, {
181
+ readonly method: "POST";
182
+ readonly path: "/api/v1/auth/dev-token";
183
+ }, {
184
+ readonly method: "POST";
185
+ readonly path: "/api/v1/context/build";
186
+ }, {
187
+ readonly method: "POST";
188
+ readonly path: "/api/v1/federation/catalog/push";
189
+ }, {
190
+ readonly method: "POST";
191
+ readonly path: "/api/v1/federation/catalog/sync";
192
+ }, {
193
+ readonly method: "POST";
194
+ readonly path: "/api/v1/federation/nodes/register";
195
+ }, {
196
+ readonly method: "POST";
197
+ readonly path: "/api/v1/federation/peers/{node_id}/revoke";
198
+ }, {
199
+ readonly method: "POST";
200
+ readonly path: "/api/v1/federation/peers/{node_id}/trust";
201
+ }, {
202
+ readonly method: "POST";
203
+ readonly path: "/api/v1/federation/query/plan";
204
+ }, {
205
+ readonly method: "POST";
206
+ readonly path: "/api/v1/graph/query";
207
+ }, {
208
+ readonly method: "POST";
209
+ readonly path: "/api/v1/internal/federation/proxy";
210
+ }, {
211
+ readonly method: "POST";
212
+ readonly path: "/api/v1/internal/federation/repos/{repo_id}/mirror/export";
213
+ }, {
214
+ readonly method: "POST";
215
+ readonly path: "/api/v1/internal/federation/repos/{repo_id}/mirror/import";
216
+ }, {
217
+ readonly method: "POST";
218
+ readonly path: "/api/v1/policy/grants";
219
+ }, {
220
+ readonly method: "POST";
221
+ readonly path: "/api/v1/policy/refresh";
222
+ }, {
223
+ readonly method: "POST";
224
+ readonly path: "/api/v1/query";
225
+ }, {
226
+ readonly method: "POST";
227
+ readonly path: "/api/v1/registry/repos/{repo_id}/placement";
228
+ }, {
229
+ readonly method: "POST";
230
+ readonly path: "/api/v1/repos";
231
+ }, {
232
+ readonly method: "POST";
233
+ readonly path: "/api/v1/repos/{repo_id}/artifacts/export";
234
+ }, {
235
+ readonly method: "POST";
236
+ readonly path: "/api/v1/repos/{repo_id}/blobs/read";
237
+ }, {
238
+ readonly method: "POST";
239
+ readonly path: "/api/v1/repos/{repo_id}/context/build";
240
+ }, {
241
+ readonly method: "POST";
242
+ readonly path: "/api/v1/repos/{repo_id}/context/parse-ctx";
243
+ }, {
244
+ readonly method: "POST";
245
+ readonly path: "/api/v1/repos/{repo_id}/files/read";
246
+ }, {
247
+ readonly method: "POST";
248
+ readonly path: "/api/v1/repos/{repo_id}/files/search";
249
+ }, {
250
+ readonly method: "POST";
251
+ readonly path: "/api/v1/repos/{repo_id}/graph/query";
252
+ }, {
253
+ readonly method: "POST";
254
+ readonly path: "/api/v1/repos/{repo_id}/graph/refresh";
255
+ }, {
256
+ readonly method: "POST";
257
+ readonly path: "/api/v1/repos/{repo_id}/graph/related";
258
+ }, {
259
+ readonly method: "POST";
260
+ readonly path: "/api/v1/repos/{repo_id}/graph/search-entities";
261
+ }, {
262
+ readonly method: "POST";
263
+ readonly path: "/api/v1/repos/{repo_id}/graph/search-files";
264
+ }, {
265
+ readonly method: "POST";
266
+ readonly path: "/api/v1/repos/{repo_id}/graph/search-sections";
267
+ }, {
268
+ readonly method: "POST";
269
+ readonly path: "/api/v1/repos/{repo_id}/graph/subgraph";
270
+ }, {
271
+ readonly method: "POST";
272
+ readonly path: "/api/v1/repos/{repo_id}/migrations";
273
+ }, {
274
+ readonly method: "POST";
275
+ readonly path: "/api/v1/repos/{repo_id}/mirrors";
276
+ }, {
277
+ readonly method: "POST";
278
+ readonly path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/health";
279
+ }, {
280
+ readonly method: "POST";
281
+ readonly path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/promote";
282
+ }, {
283
+ readonly method: "POST";
284
+ readonly path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/sync";
285
+ }, {
286
+ readonly method: "POST";
287
+ readonly path: "/api/v1/repos/{repo_id}/paths/list";
288
+ }, {
289
+ readonly method: "POST";
290
+ readonly path: "/api/v1/repos/{repo_id}/push";
291
+ }, {
292
+ readonly method: "POST";
293
+ readonly path: "/api/v1/repos/{repo_id}/query";
294
+ }, {
295
+ readonly method: "POST";
296
+ readonly path: "/api/v1/repos/{repo_id}/search/index/compact";
297
+ }, {
298
+ readonly method: "POST";
299
+ readonly path: "/api/v1/repos/{repo_id}/search/index/refresh";
300
+ }, {
301
+ readonly method: "POST";
302
+ readonly path: "/api/v1/repos/{repo_id}/snapshots/build";
303
+ }, {
304
+ readonly method: "POST";
305
+ readonly path: "/api/v1/repos/{repo_id}/sync";
306
+ }, {
307
+ readonly method: "POST";
308
+ readonly path: "/api/v1/repos/{repo_id}/workspaces";
309
+ }, {
310
+ readonly method: "POST";
311
+ readonly path: "/api/v1/repos/register";
312
+ }, {
313
+ readonly method: "POST";
314
+ readonly path: "/api/v1/search";
315
+ }, {
316
+ readonly method: "POST";
317
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/delete";
318
+ }, {
319
+ readonly method: "POST";
320
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/uploads";
321
+ }, {
322
+ readonly method: "POST";
323
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}/complete";
324
+ }, {
325
+ readonly method: "POST";
326
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/write";
327
+ }, {
328
+ readonly method: "POST";
329
+ readonly path: "/api/v1/workspaces/{workspace_id}/close";
330
+ }, {
331
+ readonly method: "POST";
332
+ readonly path: "/api/v1/workspaces/{workspace_id}/commit";
333
+ }, {
334
+ readonly method: "POST";
335
+ readonly path: "/api/v1/workspaces/{workspace_id}/exec";
336
+ }, {
337
+ readonly method: "POST";
338
+ readonly path: "/api/v1/workspaces/{workspace_id}/search";
339
+ }, {
340
+ readonly method: "PUT";
341
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/upload";
342
+ }, {
343
+ readonly method: "PUT";
344
+ readonly path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}/parts/{part_number}";
345
+ }, {
346
+ readonly method: "PUT";
347
+ readonly path: "/api/v1/workspaces/{workspace_id}/files";
348
+ }];
@@ -0,0 +1,117 @@
1
+ // Generated by scripts/generate-treedx-openapi-types.mjs. Do not edit by hand.
2
+ export const TREEDX_OPENAPI_OPERATION_COUNT = 113;
3
+ export const TREEDX_OPENAPI_OPERATIONS = [
4
+ { method: "DELETE", path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}" },
5
+ { method: "DELETE", path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}" },
6
+ { method: "DELETE", path: "/api/v1/workspaces/{workspace_id}/files" },
7
+ { method: "GET", path: "/api/v1/admin/health/deep" },
8
+ { method: "GET", path: "/api/v1/admin/storage/health" },
9
+ { method: "GET", path: "/api/v1/admin/storage/migrations" },
10
+ { method: "GET", path: "/api/v1/admin/workspaces/quarantined" },
11
+ { method: "GET", path: "/api/v1/audit/events" },
12
+ { method: "GET", path: "/api/v1/auth/mode" },
13
+ { method: "GET", path: "/api/v1/auth/whoami" },
14
+ { method: "GET", path: "/api/v1/federation/catalog" },
15
+ { method: "GET", path: "/api/v1/federation/peers" },
16
+ { method: "GET", path: "/api/v1/federation/peers/{node_id}" },
17
+ { method: "GET", path: "/api/v1/federation/routes" },
18
+ { method: "GET", path: "/api/v1/health" },
19
+ { method: "GET", path: "/api/v1/health/deep" },
20
+ { method: "GET", path: "/api/v1/internal/federation/health" },
21
+ { method: "GET", path: "/api/v1/metrics" },
22
+ { method: "GET", path: "/api/v1/node" },
23
+ { method: "GET", path: "/api/v1/policy/capabilities" },
24
+ { method: "GET", path: "/api/v1/policy/effective-scope" },
25
+ { method: "GET", path: "/api/v1/policy/grants" },
26
+ { method: "GET", path: "/api/v1/ready" },
27
+ { method: "GET", path: "/api/v1/registry/nodes" },
28
+ { method: "GET", path: "/api/v1/registry/repos/{repo_id}/placement" },
29
+ { method: "GET", path: "/api/v1/repos" },
30
+ { method: "GET", path: "/api/v1/repos/{repo_id}" },
31
+ { method: "GET", path: "/api/v1/repos/{repo_id}/artifacts" },
32
+ { method: "GET", path: "/api/v1/repos/{repo_id}/artifacts/{artifact_id}" },
33
+ { method: "GET", path: "/api/v1/repos/{repo_id}/graph/nodes/{node_id}" },
34
+ { method: "GET", path: "/api/v1/repos/{repo_id}/graph/refresh-jobs/{job_id}" },
35
+ { method: "GET", path: "/api/v1/repos/{repo_id}/migrations/{migration_id}" },
36
+ { method: "GET", path: "/api/v1/repos/{repo_id}/mirrors" },
37
+ { method: "GET", path: "/api/v1/repos/{repo_id}/refs" },
38
+ { method: "GET", path: "/api/v1/repos/{repo_id}/remotes" },
39
+ { method: "GET", path: "/api/v1/repos/{repo_id}/search/index/status" },
40
+ { method: "GET", path: "/api/v1/repos/{repo_id}/snapshots/{snapshot_id}" },
41
+ { method: "GET", path: "/api/v1/repos/{repo_id}/status" },
42
+ { method: "GET", path: "/api/v1/version" },
43
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}" },
44
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}/blobs/download" },
45
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}/diff" },
46
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}/files" },
47
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}/status" },
48
+ { method: "GET", path: "/api/v1/workspaces/{workspace_id}/tree" },
49
+ { method: "PATCH", path: "/api/v1/workspaces/{workspace_id}/files" },
50
+ { method: "POST", path: "/api/v1/admin/artifacts/cleanup" },
51
+ { method: "POST", path: "/api/v1/admin/repos/import-local" },
52
+ { method: "POST", path: "/api/v1/admin/storage/backup" },
53
+ { method: "POST", path: "/api/v1/admin/storage/check" },
54
+ { method: "POST", path: "/api/v1/admin/storage/compact" },
55
+ { method: "POST", path: "/api/v1/admin/storage/migrations/apply" },
56
+ { method: "POST", path: "/api/v1/admin/storage/migrations/plan" },
57
+ { method: "POST", path: "/api/v1/admin/storage/migrations/rollback" },
58
+ { method: "POST", path: "/api/v1/admin/storage/recover" },
59
+ { method: "POST", path: "/api/v1/admin/storage/restore" },
60
+ { method: "POST", path: "/api/v1/admin/storage/restore/verify" },
61
+ { method: "POST", path: "/api/v1/auth/dev-token" },
62
+ { method: "POST", path: "/api/v1/context/build" },
63
+ { method: "POST", path: "/api/v1/federation/catalog/push" },
64
+ { method: "POST", path: "/api/v1/federation/catalog/sync" },
65
+ { method: "POST", path: "/api/v1/federation/nodes/register" },
66
+ { method: "POST", path: "/api/v1/federation/peers/{node_id}/revoke" },
67
+ { method: "POST", path: "/api/v1/federation/peers/{node_id}/trust" },
68
+ { method: "POST", path: "/api/v1/federation/query/plan" },
69
+ { method: "POST", path: "/api/v1/graph/query" },
70
+ { method: "POST", path: "/api/v1/internal/federation/proxy" },
71
+ { method: "POST", path: "/api/v1/internal/federation/repos/{repo_id}/mirror/export" },
72
+ { method: "POST", path: "/api/v1/internal/federation/repos/{repo_id}/mirror/import" },
73
+ { method: "POST", path: "/api/v1/policy/grants" },
74
+ { method: "POST", path: "/api/v1/policy/refresh" },
75
+ { method: "POST", path: "/api/v1/query" },
76
+ { method: "POST", path: "/api/v1/registry/repos/{repo_id}/placement" },
77
+ { method: "POST", path: "/api/v1/repos" },
78
+ { method: "POST", path: "/api/v1/repos/{repo_id}/artifacts/export" },
79
+ { method: "POST", path: "/api/v1/repos/{repo_id}/blobs/read" },
80
+ { method: "POST", path: "/api/v1/repos/{repo_id}/context/build" },
81
+ { method: "POST", path: "/api/v1/repos/{repo_id}/context/parse-ctx" },
82
+ { method: "POST", path: "/api/v1/repos/{repo_id}/files/read" },
83
+ { method: "POST", path: "/api/v1/repos/{repo_id}/files/search" },
84
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/query" },
85
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/refresh" },
86
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/related" },
87
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/search-entities" },
88
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/search-files" },
89
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/search-sections" },
90
+ { method: "POST", path: "/api/v1/repos/{repo_id}/graph/subgraph" },
91
+ { method: "POST", path: "/api/v1/repos/{repo_id}/migrations" },
92
+ { method: "POST", path: "/api/v1/repos/{repo_id}/mirrors" },
93
+ { method: "POST", path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/health" },
94
+ { method: "POST", path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/promote" },
95
+ { method: "POST", path: "/api/v1/repos/{repo_id}/mirrors/{mirror_id}/sync" },
96
+ { method: "POST", path: "/api/v1/repos/{repo_id}/paths/list" },
97
+ { method: "POST", path: "/api/v1/repos/{repo_id}/push" },
98
+ { method: "POST", path: "/api/v1/repos/{repo_id}/query" },
99
+ { method: "POST", path: "/api/v1/repos/{repo_id}/search/index/compact" },
100
+ { method: "POST", path: "/api/v1/repos/{repo_id}/search/index/refresh" },
101
+ { method: "POST", path: "/api/v1/repos/{repo_id}/snapshots/build" },
102
+ { method: "POST", path: "/api/v1/repos/{repo_id}/sync" },
103
+ { method: "POST", path: "/api/v1/repos/{repo_id}/workspaces" },
104
+ { method: "POST", path: "/api/v1/repos/register" },
105
+ { method: "POST", path: "/api/v1/search" },
106
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/blobs/delete" },
107
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/blobs/uploads" },
108
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}/complete" },
109
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/blobs/write" },
110
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/close" },
111
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/commit" },
112
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/exec" },
113
+ { method: "POST", path: "/api/v1/workspaces/{workspace_id}/search" },
114
+ { method: "PUT", path: "/api/v1/workspaces/{workspace_id}/blobs/upload" },
115
+ { method: "PUT", path: "/api/v1/workspaces/{workspace_id}/blobs/uploads/{upload_id}/parts/{part_number}" },
116
+ { method: "PUT", path: "/api/v1/workspaces/{workspace_id}/files" }
117
+ ];
@@ -0,0 +1,5 @@
1
+ export * from './types/index.js';
2
+ export * from './client/index.js';
3
+ export * from './adapters/index.js';
4
+ export * from './generated/index.js';
5
+ export * from './conformance/index.js';
@@ -0,0 +1,5 @@
1
+ export * from './types/index.js';
2
+ export * from './client/index.js';
3
+ export * from './adapters/index.js';
4
+ export * from './generated/index.js';
5
+ export * from './conformance/index.js';
@@ -0,0 +1 @@
1
+ export type { AdminAdapter as AdminPort } from '../adapters/admin.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ArtifactsAdapter } from '../adapters/index.js';
2
+ export type ArtifactPort = ArtifactsAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { AuditAdapter as AuditPort } from '../adapters/audit.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { AuthProvider } from '../types/index.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { BlobsAdapter } from '../adapters/index.js';
2
+ export type BlobPort = BlobsAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ContextAdapter } from '../adapters/index.js';
2
+ export type ContextPort = ContextAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { ExecAdapter } from '../adapters/index.js';
2
+ export type ExecPort = ExecAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { FederationInternalAdapter as FederationInternalPort } from '../adapters/federation-internal.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { FederationAdapter } from '../adapters/index.js';
2
+ export type FederationPort = FederationAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { FilesAdapter } from '../adapters/index.js';
2
+ export type FilePort = FilesAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { GraphAdapter } from '../adapters/index.js';
2
+ export type GraphPort = GraphAdapter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ export * from './transport.js';
2
+ export * from './auth-provider.js';
3
+ export * from './repository-port.js';
4
+ export * from './workspace-port.js';
5
+ export * from './file-port.js';
6
+ export * from './blob-port.js';
7
+ export * from './query-port.js';
8
+ export * from './graph-port.js';
9
+ export * from './context-port.js';
10
+ export * from './federation-port.js';
11
+ export * from './registry-port.js';
12
+ export * from './snapshot-port.js';
13
+ export * from './artifact-port.js';
14
+ export * from './mirror-port.js';
15
+ export * from './migration-port.js';
16
+ export * from './exec-port.js';
17
+ export * from './admin-port.js';
18
+ export * from './audit-port.js';
19
+ export * from './policy-port.js';
20
+ export * from './search-index-port.js';
21
+ export * from './federation-internal-port.js';