@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,325 @@
1
+ {
2
+ "$defs": {
3
+ "ModelExplanationReport": {
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "capability_provenance": true,
7
+ "client_representation": {
8
+ "$ref": "#/$defs/ModelExplanationReport_ClientRepresentation"
9
+ },
10
+ "contract_version": {
11
+ "format": "uint32",
12
+ "minimum": 0,
13
+ "type": "integer"
14
+ },
15
+ "health": {
16
+ "$ref": "#/$defs/ModelExplanationReport_ModelHealth"
17
+ },
18
+ "model_descriptor": {
19
+ "$ref": "#/$defs/ModelExplanationReport_ModelTruthDescriptor"
20
+ },
21
+ "model_policy": true,
22
+ "output": {
23
+ "items": {
24
+ "type": "string"
25
+ },
26
+ "type": "array"
27
+ },
28
+ "requested_selector": {
29
+ "type": "string"
30
+ },
31
+ "route_scope": true,
32
+ "routing": {
33
+ "$ref": "#/$defs/ModelExplanationReport_ModelRouting"
34
+ },
35
+ "selector_kind": {
36
+ "type": "string"
37
+ },
38
+ "served_identity": {
39
+ "type": [
40
+ "string",
41
+ "null"
42
+ ]
43
+ }
44
+ },
45
+ "required": [
46
+ "contract_version",
47
+ "model_descriptor",
48
+ "requested_selector",
49
+ "selector_kind",
50
+ "client_representation",
51
+ "route_scope",
52
+ "capability_provenance",
53
+ "model_policy",
54
+ "health",
55
+ "routing",
56
+ "output"
57
+ ],
58
+ "title": "ModelExplanationReport",
59
+ "type": "object"
60
+ },
61
+ "ModelExplanationReport_ClientRepresentation": {
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "advertisements": {
65
+ "items": true,
66
+ "type": "array"
67
+ },
68
+ "client": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "client",
74
+ "advertisements"
75
+ ],
76
+ "type": "object"
77
+ },
78
+ "ModelExplanationReport_ModelHealth": {
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "degraded_providers": {
82
+ "items": {
83
+ "type": "string"
84
+ },
85
+ "type": "array"
86
+ },
87
+ "degraded_reasons": true,
88
+ "healthy_providers": {
89
+ "items": {
90
+ "type": "string"
91
+ },
92
+ "type": "array"
93
+ },
94
+ "starting_providers": {
95
+ "items": {
96
+ "type": "string"
97
+ },
98
+ "type": "array"
99
+ }
100
+ },
101
+ "required": [
102
+ "healthy_providers",
103
+ "starting_providers",
104
+ "degraded_providers",
105
+ "degraded_reasons"
106
+ ],
107
+ "type": "object"
108
+ },
109
+ "ModelExplanationReport_ModelRouteScope": {
110
+ "additionalProperties": false,
111
+ "description": "Exact routing scope for one model observation or exchange.",
112
+ "properties": {
113
+ "account": {
114
+ "type": [
115
+ "string",
116
+ "null"
117
+ ]
118
+ },
119
+ "endpoint": {
120
+ "type": [
121
+ "string",
122
+ "null"
123
+ ]
124
+ },
125
+ "protocols": {
126
+ "items": {
127
+ "type": "string"
128
+ },
129
+ "type": "array"
130
+ },
131
+ "provider": {
132
+ "type": [
133
+ "string",
134
+ "null"
135
+ ]
136
+ }
137
+ },
138
+ "required": [
139
+ "protocols"
140
+ ],
141
+ "type": "object"
142
+ },
143
+ "ModelExplanationReport_ModelRouting": {
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "candidate_count": {
147
+ "format": "uint",
148
+ "minimum": 0,
149
+ "type": "integer"
150
+ },
151
+ "catalog_conflicts": {
152
+ "items": {
153
+ "type": "string"
154
+ },
155
+ "type": "array"
156
+ },
157
+ "state": {
158
+ "type": "string"
159
+ }
160
+ },
161
+ "required": [
162
+ "state",
163
+ "candidate_count",
164
+ "catalog_conflicts"
165
+ ],
166
+ "type": "object"
167
+ },
168
+ "ModelExplanationReport_ModelSelectorKind": {
169
+ "description": "Kind of selector a caller supplied. Dynamic aliases are factual only when\nthe authenticated provider catalog advertised that exact spelling.\n\nThis is the one wire contract for `selector_kind`: every producer\nserializes the canonical `snake_case` spelling, and every consumer \u2014\ncatalog projection, `router model` diagnostics and the wrapper's typed\ncatalog rows \u2014 reads through [`Self::from_wire`]. Router once emitted\n`provider_advertised_exact_id` for live z.ai rows while the wrapper's\nderived parser accepted only the canonical names, so one such row made\n`router with` reject the whole catalog (issue #620). A spelling this\nbuild does not know is `Unknown`, never a parse failure: an older wrapper\nmust degrade to \"no alias evidence\", not to \"no models\".",
170
+ "enum": [
171
+ "concrete",
172
+ "provider_dynamic_alias",
173
+ "operator_alias",
174
+ "unknown"
175
+ ],
176
+ "type": "string"
177
+ },
178
+ "ModelExplanationReport_ModelTruthDescriptor": {
179
+ "additionalProperties": false,
180
+ "description": "Canonical truth descriptor used by model diagnostics and boundary logs.\n\n`None` is intentionally serialized as JSON `null`: it means unknown, not\nthat Router may fill the field from a nearby selector.",
181
+ "properties": {
182
+ "allow_substitution": {
183
+ "type": "boolean"
184
+ },
185
+ "capabilities": true,
186
+ "capability_provenance": true,
187
+ "requested_selector": {
188
+ "type": [
189
+ "string",
190
+ "null"
191
+ ]
192
+ },
193
+ "route": {
194
+ "$ref": "#/$defs/ModelExplanationReport_ModelRouteScope"
195
+ },
196
+ "selector_kind": {
197
+ "$ref": "#/$defs/ModelExplanationReport_ModelSelectorKind"
198
+ },
199
+ "substitution_source": {
200
+ "type": [
201
+ "string",
202
+ "null"
203
+ ]
204
+ },
205
+ "upstream_request_model": {
206
+ "type": [
207
+ "string",
208
+ "null"
209
+ ]
210
+ },
211
+ "upstream_served_model": {
212
+ "type": [
213
+ "string",
214
+ "null"
215
+ ]
216
+ }
217
+ },
218
+ "required": [
219
+ "selector_kind",
220
+ "route",
221
+ "capabilities",
222
+ "capability_provenance",
223
+ "allow_substitution"
224
+ ],
225
+ "type": "object"
226
+ }
227
+ },
228
+ "$id": "link-assistant-router/models-explain/v1",
229
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
230
+ "additionalProperties": false,
231
+ "allOf": [
232
+ {
233
+ "else": {
234
+ "properties": {
235
+ "exit_code": {
236
+ "minimum": 1,
237
+ "type": "integer"
238
+ }
239
+ }
240
+ },
241
+ "if": {
242
+ "properties": {
243
+ "success": {
244
+ "const": true
245
+ }
246
+ }
247
+ },
248
+ "then": {
249
+ "properties": {
250
+ "exit_code": {
251
+ "const": 0
252
+ }
253
+ }
254
+ }
255
+ }
256
+ ],
257
+ "properties": {
258
+ "data": {
259
+ "anyOf": [
260
+ {
261
+ "additionalProperties": false,
262
+ "properties": {
263
+ "output": {
264
+ "items": {
265
+ "type": "string"
266
+ },
267
+ "type": "array"
268
+ }
269
+ },
270
+ "required": [
271
+ "output"
272
+ ],
273
+ "type": "object"
274
+ },
275
+ {
276
+ "additionalProperties": false,
277
+ "properties": {
278
+ "output": {
279
+ "items": {
280
+ "type": "string"
281
+ },
282
+ "type": "array"
283
+ }
284
+ },
285
+ "required": [
286
+ "output"
287
+ ],
288
+ "type": "object"
289
+ },
290
+ {
291
+ "$ref": "#/$defs/ModelExplanationReport"
292
+ }
293
+ ]
294
+ },
295
+ "diagnostics": {
296
+ "items": {
297
+ "type": "string"
298
+ },
299
+ "type": "array"
300
+ },
301
+ "exit_code": {
302
+ "maximum": 255,
303
+ "minimum": 0,
304
+ "type": "integer"
305
+ },
306
+ "operation": {
307
+ "const": "models.explain"
308
+ },
309
+ "schema": {
310
+ "const": "link-assistant-router/models-explain/v1"
311
+ },
312
+ "success": {
313
+ "type": "boolean"
314
+ }
315
+ },
316
+ "required": [
317
+ "schema",
318
+ "operation",
319
+ "success",
320
+ "exit_code",
321
+ "data",
322
+ "diagnostics"
323
+ ],
324
+ "type": "object"
325
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$id": "link-assistant-router/preservation/v1",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
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
+ "const": "link-assistant-router/preservation/v1"
39
+ },
40
+ "serving_health": {},
41
+ "status": {}
42
+ },
43
+ "required": [
44
+ "schema"
45
+ ],
46
+ "type": "object"
47
+ }
@@ -0,0 +1,185 @@
1
+ {
2
+ "$defs": {
3
+ "ProviderProvisionResponse": {
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "api_key_env": {
7
+ "type": [
8
+ "string",
9
+ "null"
10
+ ]
11
+ },
12
+ "base_url": {
13
+ "type": "string"
14
+ },
15
+ "default_model": {
16
+ "type": [
17
+ "string",
18
+ "null"
19
+ ]
20
+ },
21
+ "enabled": {
22
+ "type": "boolean"
23
+ },
24
+ "has_encrypted_api_key": {
25
+ "type": "boolean"
26
+ },
27
+ "intermediary_risk_acknowledged": {
28
+ "type": "boolean"
29
+ },
30
+ "kind": {
31
+ "$ref": "#/$defs/ProviderRecord_ProviderKind"
32
+ },
33
+ "models": {
34
+ "items": {
35
+ "type": "string"
36
+ },
37
+ "type": "array"
38
+ },
39
+ "name": {
40
+ "type": "string"
41
+ },
42
+ "outcome": {
43
+ "enum": [
44
+ "created",
45
+ "replaced",
46
+ "already_present"
47
+ ]
48
+ },
49
+ "subscriber_id": {
50
+ "type": [
51
+ "string",
52
+ "null"
53
+ ]
54
+ },
55
+ "supported_clients": {
56
+ "items": {
57
+ "type": "string"
58
+ },
59
+ "type": "array"
60
+ },
61
+ "unsupported_clients": {
62
+ "items": {
63
+ "type": "string"
64
+ },
65
+ "type": "array"
66
+ }
67
+ },
68
+ "required": [
69
+ "name",
70
+ "kind",
71
+ "base_url",
72
+ "models",
73
+ "supported_clients",
74
+ "has_encrypted_api_key",
75
+ "enabled",
76
+ "intermediary_risk_acknowledged",
77
+ "unsupported_clients",
78
+ "outcome"
79
+ ],
80
+ "type": "object"
81
+ },
82
+ "ProviderRecord_ProviderKind": {
83
+ "description": "Supported persisted provider kinds.",
84
+ "oneOf": [
85
+ {
86
+ "const": "openai-compatible",
87
+ "description": "Generic OpenAI-compatible upstream such as `LiteLLM`.",
88
+ "type": "string"
89
+ },
90
+ {
91
+ "const": "lefine",
92
+ "description": "Lefine `OpenAI` Chat Completions API with live catalog validation.",
93
+ "type": "string"
94
+ },
95
+ {
96
+ "const": "zai-coding-plan",
97
+ "description": "Personal z.ai GLM Coding Plan with client/subscriber policy gates.",
98
+ "type": "string"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "$id": "link-assistant-router/providers-add/v1",
104
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
105
+ "additionalProperties": false,
106
+ "allOf": [
107
+ {
108
+ "else": {
109
+ "properties": {
110
+ "exit_code": {
111
+ "minimum": 1,
112
+ "type": "integer"
113
+ }
114
+ }
115
+ },
116
+ "if": {
117
+ "properties": {
118
+ "success": {
119
+ "const": true
120
+ }
121
+ }
122
+ },
123
+ "then": {
124
+ "properties": {
125
+ "exit_code": {
126
+ "const": 0
127
+ }
128
+ }
129
+ }
130
+ }
131
+ ],
132
+ "properties": {
133
+ "data": {
134
+ "anyOf": [
135
+ {
136
+ "$ref": "#/$defs/ProviderProvisionResponse"
137
+ },
138
+ {
139
+ "additionalProperties": false,
140
+ "properties": {
141
+ "output": {
142
+ "items": {
143
+ "type": "string"
144
+ },
145
+ "type": "array"
146
+ }
147
+ },
148
+ "required": [
149
+ "output"
150
+ ],
151
+ "type": "object"
152
+ }
153
+ ]
154
+ },
155
+ "diagnostics": {
156
+ "items": {
157
+ "type": "string"
158
+ },
159
+ "type": "array"
160
+ },
161
+ "exit_code": {
162
+ "maximum": 255,
163
+ "minimum": 0,
164
+ "type": "integer"
165
+ },
166
+ "operation": {
167
+ "const": "providers.add"
168
+ },
169
+ "schema": {
170
+ "const": "link-assistant-router/providers-add/v1"
171
+ },
172
+ "success": {
173
+ "type": "boolean"
174
+ }
175
+ },
176
+ "required": [
177
+ "schema",
178
+ "operation",
179
+ "success",
180
+ "exit_code",
181
+ "data",
182
+ "diagnostics"
183
+ ],
184
+ "type": "object"
185
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$defs": {},
3
+ "$id": "link-assistant-router/providers-import/v1",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "additionalProperties": false,
6
+ "allOf": [
7
+ {
8
+ "else": {
9
+ "properties": {
10
+ "exit_code": {
11
+ "minimum": 1,
12
+ "type": "integer"
13
+ }
14
+ }
15
+ },
16
+ "if": {
17
+ "properties": {
18
+ "success": {
19
+ "const": true
20
+ }
21
+ }
22
+ },
23
+ "then": {
24
+ "properties": {
25
+ "exit_code": {
26
+ "const": 0
27
+ }
28
+ }
29
+ }
30
+ }
31
+ ],
32
+ "properties": {
33
+ "data": {
34
+ "anyOf": [
35
+ {
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "output": {
39
+ "items": {
40
+ "type": "string"
41
+ },
42
+ "type": "array"
43
+ }
44
+ },
45
+ "required": [
46
+ "output"
47
+ ],
48
+ "type": "object"
49
+ },
50
+ {
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "output": {
54
+ "items": {
55
+ "type": "string"
56
+ },
57
+ "type": "array"
58
+ }
59
+ },
60
+ "required": [
61
+ "output"
62
+ ],
63
+ "type": "object"
64
+ }
65
+ ]
66
+ },
67
+ "diagnostics": {
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "type": "array"
72
+ },
73
+ "exit_code": {
74
+ "maximum": 255,
75
+ "minimum": 0,
76
+ "type": "integer"
77
+ },
78
+ "operation": {
79
+ "const": "providers.import"
80
+ },
81
+ "schema": {
82
+ "const": "link-assistant-router/providers-import/v1"
83
+ },
84
+ "success": {
85
+ "type": "boolean"
86
+ }
87
+ },
88
+ "required": [
89
+ "schema",
90
+ "operation",
91
+ "success",
92
+ "exit_code",
93
+ "data",
94
+ "diagnostics"
95
+ ],
96
+ "type": "object"
97
+ }