@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,323 @@
1
+ {
2
+ "$defs": {
3
+ "AccountRoutingPolicy": {
4
+ "additionalProperties": false,
5
+ "description": "Backward-compatible per-credential traffic policy.",
6
+ "properties": {
7
+ "disable_cooling": {
8
+ "default": false,
9
+ "type": "boolean"
10
+ },
11
+ "excluded_models": {
12
+ "description": "Case-sensitive glob patterns: `*` matches any sequence, `?` one character.",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "type": "array"
17
+ },
18
+ "headers": {
19
+ "additionalProperties": {
20
+ "type": "string"
21
+ },
22
+ "description": "Static values, or `$Header-Name` copies from the reviewed allow-list.",
23
+ "type": "object"
24
+ },
25
+ "model_aliases": {
26
+ "items": {
27
+ "$ref": "#/$defs/AccountRoutingPolicy_ModelAlias"
28
+ },
29
+ "type": "array"
30
+ },
31
+ "prefix": {
32
+ "default": null,
33
+ "type": [
34
+ "string",
35
+ "null"
36
+ ]
37
+ },
38
+ "request_retry": {
39
+ "default": null,
40
+ "description": "Number of retries after the first attempt. Zero disables retries.",
41
+ "format": "uint32",
42
+ "minimum": 0,
43
+ "type": [
44
+ "integer",
45
+ "null"
46
+ ]
47
+ },
48
+ "request_scoped_errors": {
49
+ "items": {
50
+ "$ref": "#/$defs/AccountRoutingPolicy_RequestScopedError"
51
+ },
52
+ "type": "array"
53
+ },
54
+ "weight": {
55
+ "default": 1,
56
+ "format": "int32",
57
+ "type": "integer"
58
+ }
59
+ },
60
+ "title": "AccountRoutingPolicy",
61
+ "type": "object"
62
+ },
63
+ "AccountRoutingPolicy_ErrorAction": {
64
+ "description": "Action of the first matching request-scoped error rule.",
65
+ "oneOf": [
66
+ {
67
+ "const": "cooldown",
68
+ "description": "Cool this account and relay the response.",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "const": "retry-next",
73
+ "description": "Try another eligible account before returning any response bytes.",
74
+ "type": "string"
75
+ },
76
+ {
77
+ "const": "relay",
78
+ "description": "Relay unchanged, suppressing automatic cooldown and retry.",
79
+ "type": "string"
80
+ }
81
+ ]
82
+ },
83
+ "AccountRoutingPolicy_ModelAlias": {
84
+ "additionalProperties": false,
85
+ "description": "One explicitly configured account model alias.",
86
+ "properties": {
87
+ "alias": {
88
+ "description": "Client-facing name.",
89
+ "type": "string"
90
+ },
91
+ "fork": {
92
+ "default": false,
93
+ "description": "Keep the upstream name visible as well as the alias.",
94
+ "type": "boolean"
95
+ },
96
+ "model": {
97
+ "description": "Exact upstream model, which must appear in the account's live catalog.",
98
+ "type": "string"
99
+ }
100
+ },
101
+ "required": [
102
+ "model",
103
+ "alias"
104
+ ],
105
+ "type": "object"
106
+ },
107
+ "AccountRoutingPolicy_RequestScopedError": {
108
+ "additionalProperties": false,
109
+ "description": "Upstream status and a literal body substring, evaluated in declaration order.",
110
+ "properties": {
111
+ "action": {
112
+ "$ref": "#/$defs/AccountRoutingPolicy_ErrorAction"
113
+ },
114
+ "match": {
115
+ "type": "string"
116
+ },
117
+ "status": {
118
+ "format": "uint16",
119
+ "maximum": 65535,
120
+ "minimum": 0,
121
+ "type": "integer"
122
+ }
123
+ },
124
+ "required": [
125
+ "status",
126
+ "match",
127
+ "action"
128
+ ],
129
+ "type": "object"
130
+ },
131
+ "Accounts": {
132
+ "additionalProperties": false,
133
+ "properties": {
134
+ "accounts": {
135
+ "items": {
136
+ "additionalProperties": false,
137
+ "properties": {
138
+ "cooldown_reason": {},
139
+ "cooldown_remaining_seconds": {},
140
+ "cooldown_until_unix": {},
141
+ "credential": {},
142
+ "healthy": {},
143
+ "home": {},
144
+ "last_error": {},
145
+ "model_cooldowns": {},
146
+ "name": {},
147
+ "pause": {},
148
+ "paused": {},
149
+ "remaining_requests": {},
150
+ "request_limit": {},
151
+ "routing_policy": {
152
+ "$ref": "#/$defs/AccountRoutingPolicy"
153
+ },
154
+ "routing_policy_error": {
155
+ "type": "string"
156
+ },
157
+ "used": {},
158
+ "windows": {}
159
+ },
160
+ "required": [
161
+ "name",
162
+ "healthy"
163
+ ],
164
+ "type": "object"
165
+ },
166
+ "type": "array"
167
+ },
168
+ "credentials": {
169
+ "items": {
170
+ "additionalProperties": false,
171
+ "properties": {
172
+ "credential": {
173
+ "type": "string"
174
+ },
175
+ "healthy": {
176
+ "type": "boolean"
177
+ },
178
+ "home": {
179
+ "type": "string"
180
+ },
181
+ "name": {
182
+ "type": "string"
183
+ }
184
+ },
185
+ "required": [
186
+ "name",
187
+ "healthy"
188
+ ],
189
+ "type": "object"
190
+ },
191
+ "type": "array"
192
+ },
193
+ "note": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "required": [
198
+ "accounts"
199
+ ],
200
+ "type": "object"
201
+ }
202
+ },
203
+ "$id": "link-assistant-router/accounts-list/v1",
204
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
205
+ "additionalProperties": false,
206
+ "allOf": [
207
+ {
208
+ "else": {
209
+ "properties": {
210
+ "exit_code": {
211
+ "minimum": 1,
212
+ "type": "integer"
213
+ }
214
+ }
215
+ },
216
+ "if": {
217
+ "properties": {
218
+ "success": {
219
+ "const": true
220
+ }
221
+ }
222
+ },
223
+ "then": {
224
+ "properties": {
225
+ "exit_code": {
226
+ "const": 0
227
+ }
228
+ }
229
+ }
230
+ }
231
+ ],
232
+ "properties": {
233
+ "data": {
234
+ "anyOf": [
235
+ {
236
+ "anyOf": [
237
+ {
238
+ "items": {
239
+ "additionalProperties": false,
240
+ "properties": {
241
+ "cooldown_reason": {},
242
+ "cooldown_remaining_seconds": {},
243
+ "cooldown_until_unix": {},
244
+ "credential": {},
245
+ "healthy": {},
246
+ "home": {},
247
+ "last_error": {},
248
+ "model_cooldowns": {},
249
+ "name": {},
250
+ "pause": {},
251
+ "paused": {},
252
+ "remaining_requests": {},
253
+ "request_limit": {},
254
+ "routing_policy": {
255
+ "$ref": "#/$defs/AccountRoutingPolicy"
256
+ },
257
+ "routing_policy_error": {
258
+ "type": "string"
259
+ },
260
+ "used": {},
261
+ "windows": {}
262
+ },
263
+ "required": [
264
+ "name",
265
+ "healthy"
266
+ ],
267
+ "type": "object"
268
+ },
269
+ "type": "array"
270
+ },
271
+ {
272
+ "$ref": "#/$defs/Accounts"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "additionalProperties": false,
278
+ "properties": {
279
+ "output": {
280
+ "items": {
281
+ "type": "string"
282
+ },
283
+ "type": "array"
284
+ }
285
+ },
286
+ "required": [
287
+ "output"
288
+ ],
289
+ "type": "object"
290
+ }
291
+ ]
292
+ },
293
+ "diagnostics": {
294
+ "items": {
295
+ "type": "string"
296
+ },
297
+ "type": "array"
298
+ },
299
+ "exit_code": {
300
+ "maximum": 255,
301
+ "minimum": 0,
302
+ "type": "integer"
303
+ },
304
+ "operation": {
305
+ "const": "accounts.list"
306
+ },
307
+ "schema": {
308
+ "const": "link-assistant-router/accounts-list/v1"
309
+ },
310
+ "success": {
311
+ "type": "boolean"
312
+ }
313
+ },
314
+ "required": [
315
+ "schema",
316
+ "operation",
317
+ "success",
318
+ "exit_code",
319
+ "data",
320
+ "diagnostics"
321
+ ],
322
+ "type": "object"
323
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$defs": {},
3
+ "$id": "link-assistant-router/accounts-pause/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": "accounts.pause"
80
+ },
81
+ "schema": {
82
+ "const": "link-assistant-router/accounts-pause/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
+ }
@@ -0,0 +1,214 @@
1
+ {
2
+ "$defs": {
3
+ "AccountRoutingPolicy": {
4
+ "additionalProperties": false,
5
+ "description": "Backward-compatible per-credential traffic policy.",
6
+ "properties": {
7
+ "disable_cooling": {
8
+ "default": false,
9
+ "type": "boolean"
10
+ },
11
+ "excluded_models": {
12
+ "description": "Case-sensitive glob patterns: `*` matches any sequence, `?` one character.",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "type": "array"
17
+ },
18
+ "headers": {
19
+ "additionalProperties": {
20
+ "type": "string"
21
+ },
22
+ "description": "Static values, or `$Header-Name` copies from the reviewed allow-list.",
23
+ "type": "object"
24
+ },
25
+ "model_aliases": {
26
+ "items": {
27
+ "$ref": "#/$defs/AccountRoutingPolicy_ModelAlias"
28
+ },
29
+ "type": "array"
30
+ },
31
+ "prefix": {
32
+ "default": null,
33
+ "type": [
34
+ "string",
35
+ "null"
36
+ ]
37
+ },
38
+ "request_retry": {
39
+ "default": null,
40
+ "description": "Number of retries after the first attempt. Zero disables retries.",
41
+ "format": "uint32",
42
+ "minimum": 0,
43
+ "type": [
44
+ "integer",
45
+ "null"
46
+ ]
47
+ },
48
+ "request_scoped_errors": {
49
+ "items": {
50
+ "$ref": "#/$defs/AccountRoutingPolicy_RequestScopedError"
51
+ },
52
+ "type": "array"
53
+ },
54
+ "weight": {
55
+ "default": 1,
56
+ "format": "int32",
57
+ "type": "integer"
58
+ }
59
+ },
60
+ "title": "AccountRoutingPolicy",
61
+ "type": "object"
62
+ },
63
+ "AccountRoutingPolicy_ErrorAction": {
64
+ "description": "Action of the first matching request-scoped error rule.",
65
+ "oneOf": [
66
+ {
67
+ "const": "cooldown",
68
+ "description": "Cool this account and relay the response.",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "const": "retry-next",
73
+ "description": "Try another eligible account before returning any response bytes.",
74
+ "type": "string"
75
+ },
76
+ {
77
+ "const": "relay",
78
+ "description": "Relay unchanged, suppressing automatic cooldown and retry.",
79
+ "type": "string"
80
+ }
81
+ ]
82
+ },
83
+ "AccountRoutingPolicy_ModelAlias": {
84
+ "additionalProperties": false,
85
+ "description": "One explicitly configured account model alias.",
86
+ "properties": {
87
+ "alias": {
88
+ "description": "Client-facing name.",
89
+ "type": "string"
90
+ },
91
+ "fork": {
92
+ "default": false,
93
+ "description": "Keep the upstream name visible as well as the alias.",
94
+ "type": "boolean"
95
+ },
96
+ "model": {
97
+ "description": "Exact upstream model, which must appear in the account's live catalog.",
98
+ "type": "string"
99
+ }
100
+ },
101
+ "required": [
102
+ "model",
103
+ "alias"
104
+ ],
105
+ "type": "object"
106
+ },
107
+ "AccountRoutingPolicy_RequestScopedError": {
108
+ "additionalProperties": false,
109
+ "description": "Upstream status and a literal body substring, evaluated in declaration order.",
110
+ "properties": {
111
+ "action": {
112
+ "$ref": "#/$defs/AccountRoutingPolicy_ErrorAction"
113
+ },
114
+ "match": {
115
+ "type": "string"
116
+ },
117
+ "status": {
118
+ "format": "uint16",
119
+ "maximum": 65535,
120
+ "minimum": 0,
121
+ "type": "integer"
122
+ }
123
+ },
124
+ "required": [
125
+ "status",
126
+ "match",
127
+ "action"
128
+ ],
129
+ "type": "object"
130
+ }
131
+ },
132
+ "$id": "link-assistant-router/accounts-policy/v1",
133
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
134
+ "additionalProperties": false,
135
+ "allOf": [
136
+ {
137
+ "else": {
138
+ "properties": {
139
+ "exit_code": {
140
+ "minimum": 1,
141
+ "type": "integer"
142
+ }
143
+ }
144
+ },
145
+ "if": {
146
+ "properties": {
147
+ "success": {
148
+ "const": true
149
+ }
150
+ }
151
+ },
152
+ "then": {
153
+ "properties": {
154
+ "exit_code": {
155
+ "const": 0
156
+ }
157
+ }
158
+ }
159
+ }
160
+ ],
161
+ "properties": {
162
+ "data": {
163
+ "anyOf": [
164
+ {
165
+ "$ref": "#/$defs/AccountRoutingPolicy"
166
+ },
167
+ {
168
+ "additionalProperties": false,
169
+ "properties": {
170
+ "output": {
171
+ "items": {
172
+ "type": "string"
173
+ },
174
+ "type": "array"
175
+ }
176
+ },
177
+ "required": [
178
+ "output"
179
+ ],
180
+ "type": "object"
181
+ }
182
+ ]
183
+ },
184
+ "diagnostics": {
185
+ "items": {
186
+ "type": "string"
187
+ },
188
+ "type": "array"
189
+ },
190
+ "exit_code": {
191
+ "maximum": 255,
192
+ "minimum": 0,
193
+ "type": "integer"
194
+ },
195
+ "operation": {
196
+ "const": "accounts.policy"
197
+ },
198
+ "schema": {
199
+ "const": "link-assistant-router/accounts-policy/v1"
200
+ },
201
+ "success": {
202
+ "type": "boolean"
203
+ }
204
+ },
205
+ "required": [
206
+ "schema",
207
+ "operation",
208
+ "success",
209
+ "exit_code",
210
+ "data",
211
+ "diagnostics"
212
+ ],
213
+ "type": "object"
214
+ }