@link-assistant/router 0.0.0-stage → 1.26.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 (161) hide show
  1. package/README.md +35 -2
  2. package/catalog.json +68542 -0
  3. package/index.d.ts +5932 -0
  4. package/index.js +224 -0
  5. package/native.d.ts +106 -0
  6. package/package.json +62 -4
  7. package/portable/policy.mjs +117 -0
  8. package/schemas/accounts-list.v1.json +323 -0
  9. package/schemas/accounts-pause.v1.json +97 -0
  10. package/schemas/accounts-policy.v1.json +214 -0
  11. package/schemas/accounts-resume.v1.json +97 -0
  12. package/schemas/auth-claude.v1.json +97 -0
  13. package/schemas/auth-clear.v1.json +97 -0
  14. package/schemas/auth-codex.v1.json +97 -0
  15. package/schemas/auth-gh.v1.json +97 -0
  16. package/schemas/auth-import.v1.json +167 -0
  17. package/schemas/auth-status.v1.json +387 -0
  18. package/schemas/cli-error.v1.json +97 -0
  19. package/schemas/clients-backup-create.v1.json +97 -0
  20. package/schemas/clients-backup-list.v1.json +234 -0
  21. package/schemas/clients-backup-restore.v1.json +97 -0
  22. package/schemas/clients-backup-verify.v1.json +125 -0
  23. package/schemas/clients-doctor.v1.json +249 -0
  24. package/schemas/clients-install.v1.json +164 -0
  25. package/schemas/clients-list.v1.json +194 -0
  26. package/schemas/clients-reinstall.v1.json +164 -0
  27. package/schemas/clients-remove.v1.json +97 -0
  28. package/schemas/clients-repair.v1.json +109 -0
  29. package/schemas/clients-reset.v1.json +113 -0
  30. package/schemas/clients-setup.v1.json +97 -0
  31. package/schemas/clients-show.v1.json +191 -0
  32. package/schemas/clients-update.v1.json +164 -0
  33. package/schemas/configure.v1.json +97 -0
  34. package/schemas/contracts.v1.json +106 -0
  35. package/schemas/data-backup.v1.json +32 -0
  36. package/schemas/deploy.v1.json +546 -0
  37. package/schemas/doctor.v1.json +324 -0
  38. package/schemas/local-deployment.v1.json +364 -0
  39. package/schemas/logs-anomalies.v1.json +112 -0
  40. package/schemas/logs-show.v1.json +127 -0
  41. package/schemas/logs-summary.v1.json +129 -0
  42. package/schemas/model-catalog.v1.json +117 -0
  43. package/schemas/models-explain.v1.json +325 -0
  44. package/schemas/preservation.v1.json +47 -0
  45. package/schemas/providers-add.v1.json +185 -0
  46. package/schemas/providers-import.v1.json +97 -0
  47. package/schemas/providers-list.v1.json +182 -0
  48. package/schemas/providers-remove.v1.json +97 -0
  49. package/schemas/providers-show.v1.json +179 -0
  50. package/schemas/serve.v1.json +97 -0
  51. package/schemas/server-claim.v1.json +97 -0
  52. package/schemas/server-reap.v1.json +97 -0
  53. package/schemas/server-remove.v1.json +97 -0
  54. package/schemas/server-start.v1.json +97 -0
  55. package/schemas/server-status.v1.json +197 -0
  56. package/schemas/server-stop.v1.json +97 -0
  57. package/schemas/server-use.v1.json +97 -0
  58. package/schemas/staging.v1.json +47 -0
  59. package/schemas/tls-ca.v1.json +97 -0
  60. package/schemas/tls-generate.v1.json +97 -0
  61. package/schemas/tokens-expire.v1.json +97 -0
  62. package/schemas/tokens-import.v1.json +192 -0
  63. package/schemas/tokens-issue.v1.json +94 -0
  64. package/schemas/tokens-list.v1.json +272 -0
  65. package/schemas/tokens-recover-admin.v1.json +116 -0
  66. package/schemas/tokens-revoke.v1.json +97 -0
  67. package/schemas/tokens-rotate.v1.json +94 -0
  68. package/schemas/tokens-show.v1.json +269 -0
  69. package/schemas/tunnel-down.v1.json +97 -0
  70. package/schemas/tunnel-status.v1.json +165 -0
  71. package/schemas/tunnel-up.v1.json +97 -0
  72. package/schemas/usage.v1.json +621 -0
  73. package/schemas/verification.v1.json +254 -0
  74. package/schemas/verify.v1.json +338 -0
  75. package/schemas/version.v1.json +103 -0
  76. package/schemas/with.v1.json +105 -0
  77. package/src/accounts.mjs +233 -0
  78. package/src/activitypub.mjs +23 -0
  79. package/src/admin-assets.mjs +16 -0
  80. package/src/admin.mjs +108 -0
  81. package/src/affinities.mjs +180 -0
  82. package/src/affinity-schema-descriptor.mjs +2 -0
  83. package/src/affinity-schema.mjs +185 -0
  84. package/src/assets/admin/assets/app.js +1 -0
  85. package/src/assets/admin/assets/react.js +9 -0
  86. package/src/assets/admin/assets/rolldown-runtime.js +1 -0
  87. package/src/assets/admin/assets/ui-vendor.js +3 -0
  88. package/src/assets/admin/index.html +16 -0
  89. package/src/auth-service.mjs +149 -0
  90. package/src/claude-process-session.mjs +26 -0
  91. package/src/cli-output.mjs +21 -0
  92. package/src/cli.mjs +84 -0
  93. package/src/client-ca.mjs +8 -0
  94. package/src/client-catalog.mjs +52 -0
  95. package/src/client-codex-catalog.mjs +18 -0
  96. package/src/client-configure.mjs +72 -0
  97. package/src/client-files.mjs +82 -0
  98. package/src/client-global-repair.mjs +19 -0
  99. package/src/client-global-state.mjs +19 -0
  100. package/src/client-global.mjs +43 -0
  101. package/src/client-json.mjs +54 -0
  102. package/src/client-launch-plan.mjs +28 -0
  103. package/src/client-launch.mjs +35 -0
  104. package/src/client-persistent.mjs +66 -0
  105. package/src/client-process-profile.mjs +52 -0
  106. package/src/client-process-settings.mjs +36 -0
  107. package/src/client-process.mjs +44 -0
  108. package/src/client-profile-backup.mjs +29 -0
  109. package/src/client-remote-health.mjs +7 -0
  110. package/src/client-remote.mjs +55 -0
  111. package/src/client-run-credential.mjs +38 -0
  112. package/src/client-setup.mjs +97 -0
  113. package/src/client-status.mjs +102 -0
  114. package/src/client-toml-cst.mjs +71 -0
  115. package/src/client-transaction.mjs +48 -0
  116. package/src/codex-login.mjs +121 -0
  117. package/src/codex-loopback-transport.mjs +34 -0
  118. package/src/codex-loopback.mjs +60 -0
  119. package/src/config.mjs +198 -0
  120. package/src/core.mjs +198 -0
  121. package/src/credential-operations.mjs +119 -0
  122. package/src/doublets.mjs +157 -0
  123. package/src/emergency-auth.mjs +91 -0
  124. package/src/file-lock.mjs +107 -0
  125. package/src/gemini-protocol.mjs +133 -0
  126. package/src/geolocation.mjs +46 -0
  127. package/src/git-proxy.mjs +52 -0
  128. package/src/github-proxy.mjs +74 -0
  129. package/src/http-management.mjs +36 -0
  130. package/src/http-route-contract.mjs +479 -0
  131. package/src/index.mjs +4 -0
  132. package/src/local-router-discovery.mjs +31 -0
  133. package/src/managed-server.mjs +411 -0
  134. package/src/management-access.mjs +76 -0
  135. package/src/native-service.mjs +392 -0
  136. package/src/oauth.mjs +547 -0
  137. package/src/operation-input.mjs +20 -0
  138. package/src/operations.mjs +378 -0
  139. package/src/protocols.mjs +229 -0
  140. package/src/provider-manifest.mjs +46 -0
  141. package/src/provider-provision.mjs +24 -0
  142. package/src/remote-operations.mjs +166 -0
  143. package/src/request-log.mjs +99 -0
  144. package/src/resources.mjs +290 -0
  145. package/src/response-contracts.mjs +147 -0
  146. package/src/responses.mjs +103 -0
  147. package/src/routing.mjs +40 -0
  148. package/src/runtime-config.mjs +133 -0
  149. package/src/runtime-payload.mjs +190 -0
  150. package/src/sensitive-data-sse.mjs +121 -0
  151. package/src/sensitive-data.mjs +254 -0
  152. package/src/server.mjs +552 -0
  153. package/src/storage.mjs +367 -0
  154. package/src/streams.mjs +232 -0
  155. package/src/token-import.mjs +68 -0
  156. package/src/token-reservation.mjs +8 -0
  157. package/src/tokens.mjs +172 -0
  158. package/src/usage.mjs +54 -0
  159. package/src/websocket-relay.mjs +131 -0
  160. package/testing.d.ts +7 -0
  161. package/testing.js +57 -0
@@ -0,0 +1,546 @@
1
+ {
2
+ "$defs": {
3
+ "DeploymentEvent": {
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "access_loss_explicitly_accepted": {},
7
+ "active_port_owners": {},
8
+ "blocker": {},
9
+ "catalog_comparison": {},
10
+ "catalogs": {},
11
+ "checkpoint": {},
12
+ "checkpoint_scope": {},
13
+ "cleanup_scope": {},
14
+ "control_health": {},
15
+ "credential_source": {},
16
+ "credentials_copied": {},
17
+ "data_restore_proven": {},
18
+ "data_retained": {},
19
+ "global_atomic_snapshot": {},
20
+ "issued_bound_tokens": {},
21
+ "mode": {},
22
+ "namespace": {},
23
+ "oauth_copied": {},
24
+ "oauth_ownership": {},
25
+ "oauth_restored": {},
26
+ "origin": {},
27
+ "parity": {},
28
+ "port_ownership": {},
29
+ "previous_checkpoint": {},
30
+ "primary_preservation": {},
31
+ "profiles_projects_sessions": {},
32
+ "real_claude_models_and_picker": {},
33
+ "reason": {},
34
+ "resource_limits": {},
35
+ "rollback_scope": {},
36
+ "root": {},
37
+ "schema": {},
38
+ "serving_health": {},
39
+ "status": {}
40
+ },
41
+ "required": [
42
+ "schema"
43
+ ],
44
+ "type": "object"
45
+ },
46
+ "LocalDeployment": {
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "backend": {
50
+ "anyOf": [
51
+ {
52
+ "additionalProperties": false,
53
+ "properties": {
54
+ "image": {
55
+ "anyOf": [
56
+ {
57
+ "type": "string"
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ]
63
+ },
64
+ "name": {
65
+ "type": "string"
66
+ },
67
+ "running": {
68
+ "type": "boolean"
69
+ }
70
+ },
71
+ "required": [
72
+ "name",
73
+ "image",
74
+ "running"
75
+ ],
76
+ "type": "object"
77
+ },
78
+ {
79
+ "type": "null"
80
+ }
81
+ ]
82
+ },
83
+ "blockers": {
84
+ "items": {
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "forceable": {
88
+ "type": "boolean"
89
+ },
90
+ "name": {
91
+ "type": "string"
92
+ },
93
+ "reason": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ "required": [
98
+ "name",
99
+ "reason",
100
+ "forceable"
101
+ ],
102
+ "type": "object"
103
+ },
104
+ "type": "array"
105
+ },
106
+ "candidate_image": {
107
+ "type": "string"
108
+ },
109
+ "connections": {
110
+ "anyOf": [
111
+ {
112
+ "type": "integer"
113
+ },
114
+ {
115
+ "type": "null"
116
+ }
117
+ ]
118
+ },
119
+ "converged": {
120
+ "anyOf": [
121
+ {
122
+ "type": "boolean"
123
+ },
124
+ {
125
+ "type": "null"
126
+ }
127
+ ]
128
+ },
129
+ "deployment_root": {
130
+ "type": "string"
131
+ },
132
+ "force_update_interrupts": {
133
+ "type": "boolean"
134
+ },
135
+ "host_process": {
136
+ "anyOf": [
137
+ {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "executable": {
141
+ "type": "string"
142
+ },
143
+ "pid": {
144
+ "type": "integer"
145
+ },
146
+ "port": {
147
+ "type": "integer"
148
+ },
149
+ "serving": {
150
+ "type": "boolean"
151
+ },
152
+ "version": {
153
+ "type": "string"
154
+ }
155
+ },
156
+ "required": [
157
+ "pid",
158
+ "port",
159
+ "version",
160
+ "executable",
161
+ "serving"
162
+ ],
163
+ "type": "object"
164
+ },
165
+ {
166
+ "type": "null"
167
+ }
168
+ ]
169
+ },
170
+ "host_router": {
171
+ "anyOf": [
172
+ {
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "executable": {
176
+ "type": "string"
177
+ },
178
+ "version": {
179
+ "type": "string"
180
+ }
181
+ },
182
+ "required": [
183
+ "executable",
184
+ "version"
185
+ ],
186
+ "type": "object"
187
+ },
188
+ {
189
+ "type": "null"
190
+ }
191
+ ]
192
+ },
193
+ "listener": {
194
+ "additionalProperties": false,
195
+ "properties": {
196
+ "host": {
197
+ "type": "string"
198
+ },
199
+ "port": {
200
+ "type": "integer"
201
+ }
202
+ },
203
+ "required": [
204
+ "host",
205
+ "port"
206
+ ],
207
+ "type": "object"
208
+ },
209
+ "mode": {
210
+ "enum": [
211
+ "host",
212
+ "container"
213
+ ]
214
+ },
215
+ "relay": {
216
+ "anyOf": [
217
+ {
218
+ "additionalProperties": false,
219
+ "properties": {
220
+ "name": {
221
+ "type": "string"
222
+ },
223
+ "port": {
224
+ "type": "integer"
225
+ },
226
+ "running": {
227
+ "type": "boolean"
228
+ }
229
+ },
230
+ "required": [
231
+ "name",
232
+ "port",
233
+ "running"
234
+ ],
235
+ "type": "object"
236
+ },
237
+ {
238
+ "type": "null"
239
+ }
240
+ ]
241
+ },
242
+ "rollback_command": {
243
+ "anyOf": [
244
+ {
245
+ "type": "string"
246
+ },
247
+ {
248
+ "type": "null"
249
+ }
250
+ ]
251
+ },
252
+ "runs": {
253
+ "anyOf": [
254
+ {
255
+ "items": {
256
+ "additionalProperties": false,
257
+ "properties": {
258
+ "id": {
259
+ "type": "string"
260
+ },
261
+ "label": {
262
+ "type": "string"
263
+ },
264
+ "lease_expires_at": {
265
+ "anyOf": [
266
+ {
267
+ "type": "integer"
268
+ },
269
+ {
270
+ "type": "null"
271
+ }
272
+ ]
273
+ },
274
+ "state": {
275
+ "type": "string"
276
+ }
277
+ },
278
+ "required": [
279
+ "id",
280
+ "label",
281
+ "state",
282
+ "lease_expires_at"
283
+ ],
284
+ "type": "object"
285
+ },
286
+ "type": "array"
287
+ },
288
+ {
289
+ "type": "null"
290
+ }
291
+ ]
292
+ },
293
+ "schema": {
294
+ "const": "link-assistant-router/local-deployment/v1"
295
+ },
296
+ "status": {
297
+ "enum": [
298
+ "absent",
299
+ "legacy",
300
+ "managed",
301
+ "planned",
302
+ "inconsistent",
303
+ "interrupted"
304
+ ]
305
+ },
306
+ "status_is_read_only": {
307
+ "type": "boolean"
308
+ },
309
+ "token_secret": {
310
+ "anyOf": [
311
+ {
312
+ "type": "string"
313
+ },
314
+ {
315
+ "type": "null"
316
+ }
317
+ ]
318
+ },
319
+ "transaction": {
320
+ "anyOf": [
321
+ {
322
+ "additionalProperties": false,
323
+ "properties": {
324
+ "candidate": {
325
+ "type": "string"
326
+ },
327
+ "image_id": {
328
+ "type": "string"
329
+ },
330
+ "image_ref": {
331
+ "type": "string"
332
+ },
333
+ "phase": {
334
+ "type": "string"
335
+ },
336
+ "port": {
337
+ "type": "integer"
338
+ },
339
+ "previous": {
340
+ "anyOf": [
341
+ {
342
+ "type": "string"
343
+ },
344
+ {
345
+ "type": "null"
346
+ }
347
+ ]
348
+ },
349
+ "previous_kind": {
350
+ "type": "string"
351
+ },
352
+ "previous_port": {
353
+ "anyOf": [
354
+ {
355
+ "type": "integer"
356
+ },
357
+ {
358
+ "type": "null"
359
+ }
360
+ ]
361
+ },
362
+ "version": {
363
+ "type": "integer"
364
+ }
365
+ },
366
+ "required": [
367
+ "version",
368
+ "phase",
369
+ "previous",
370
+ "previous_kind",
371
+ "previous_port",
372
+ "candidate",
373
+ "image_ref",
374
+ "image_id",
375
+ "port"
376
+ ],
377
+ "type": "object"
378
+ },
379
+ {
380
+ "type": "null"
381
+ }
382
+ ]
383
+ }
384
+ },
385
+ "required": [
386
+ "schema",
387
+ "mode",
388
+ "status",
389
+ "deployment_root",
390
+ "candidate_image",
391
+ "listener",
392
+ "host_router",
393
+ "host_process",
394
+ "backend",
395
+ "relay",
396
+ "converged",
397
+ "connections",
398
+ "runs",
399
+ "blockers",
400
+ "force_update_interrupts",
401
+ "token_secret",
402
+ "rollback_command",
403
+ "status_is_read_only",
404
+ "transaction"
405
+ ],
406
+ "type": "object"
407
+ },
408
+ "RemoteDeployment": {
409
+ "additionalProperties": false,
410
+ "properties": {
411
+ "deploy_token": {},
412
+ "env": {},
413
+ "exit_code": {},
414
+ "instance": {},
415
+ "mode": {},
416
+ "output": {},
417
+ "provider_keys": {},
418
+ "schema": {},
419
+ "seed_credentials": {},
420
+ "server": {},
421
+ "status": {},
422
+ "steps": {},
423
+ "subprocesses": {},
424
+ "target": {},
425
+ "timings": {},
426
+ "verification": {}
427
+ },
428
+ "required": [
429
+ "schema",
430
+ "target",
431
+ "server",
432
+ "mode",
433
+ "status",
434
+ "exit_code"
435
+ ],
436
+ "type": "object"
437
+ }
438
+ },
439
+ "$id": "link-assistant-router/deploy/v1",
440
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
441
+ "additionalProperties": false,
442
+ "allOf": [
443
+ {
444
+ "else": {
445
+ "properties": {
446
+ "exit_code": {
447
+ "minimum": 1,
448
+ "type": "integer"
449
+ }
450
+ }
451
+ },
452
+ "if": {
453
+ "properties": {
454
+ "success": {
455
+ "const": true
456
+ }
457
+ }
458
+ },
459
+ "then": {
460
+ "properties": {
461
+ "exit_code": {
462
+ "const": 0
463
+ }
464
+ }
465
+ }
466
+ }
467
+ ],
468
+ "properties": {
469
+ "data": {
470
+ "anyOf": [
471
+ {
472
+ "anyOf": [
473
+ {
474
+ "$ref": "#/$defs/DeploymentEvent"
475
+ },
476
+ {
477
+ "$ref": "#/$defs/RemoteDeployment"
478
+ },
479
+ {
480
+ "$ref": "#/$defs/LocalDeployment"
481
+ },
482
+ {
483
+ "additionalProperties": false,
484
+ "properties": {
485
+ "output": {
486
+ "items": {
487
+ "type": "string"
488
+ },
489
+ "type": "array"
490
+ }
491
+ },
492
+ "required": [
493
+ "output"
494
+ ],
495
+ "type": "object"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ "additionalProperties": false,
501
+ "properties": {
502
+ "output": {
503
+ "items": {
504
+ "type": "string"
505
+ },
506
+ "type": "array"
507
+ }
508
+ },
509
+ "required": [
510
+ "output"
511
+ ],
512
+ "type": "object"
513
+ }
514
+ ]
515
+ },
516
+ "diagnostics": {
517
+ "items": {
518
+ "type": "string"
519
+ },
520
+ "type": "array"
521
+ },
522
+ "exit_code": {
523
+ "maximum": 255,
524
+ "minimum": 0,
525
+ "type": "integer"
526
+ },
527
+ "operation": {
528
+ "const": "deploy"
529
+ },
530
+ "schema": {
531
+ "const": "link-assistant-router/deploy/v1"
532
+ },
533
+ "success": {
534
+ "type": "boolean"
535
+ }
536
+ },
537
+ "required": [
538
+ "schema",
539
+ "operation",
540
+ "success",
541
+ "exit_code",
542
+ "data",
543
+ "diagnostics"
544
+ ],
545
+ "type": "object"
546
+ }