@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.
- package/README.md +35 -2
- package/catalog.json +68542 -0
- package/index.d.ts +5932 -0
- package/index.js +224 -0
- package/native.d.ts +106 -0
- package/package.json +62 -4
- package/portable/policy.mjs +117 -0
- package/schemas/accounts-list.v1.json +323 -0
- package/schemas/accounts-pause.v1.json +97 -0
- package/schemas/accounts-policy.v1.json +214 -0
- package/schemas/accounts-resume.v1.json +97 -0
- package/schemas/auth-claude.v1.json +97 -0
- package/schemas/auth-clear.v1.json +97 -0
- package/schemas/auth-codex.v1.json +97 -0
- package/schemas/auth-gh.v1.json +97 -0
- package/schemas/auth-import.v1.json +167 -0
- package/schemas/auth-status.v1.json +387 -0
- package/schemas/cli-error.v1.json +97 -0
- package/schemas/clients-backup-create.v1.json +97 -0
- package/schemas/clients-backup-list.v1.json +234 -0
- package/schemas/clients-backup-restore.v1.json +97 -0
- package/schemas/clients-backup-verify.v1.json +125 -0
- package/schemas/clients-doctor.v1.json +249 -0
- package/schemas/clients-install.v1.json +164 -0
- package/schemas/clients-list.v1.json +194 -0
- package/schemas/clients-reinstall.v1.json +164 -0
- package/schemas/clients-remove.v1.json +97 -0
- package/schemas/clients-repair.v1.json +109 -0
- package/schemas/clients-reset.v1.json +113 -0
- package/schemas/clients-setup.v1.json +97 -0
- package/schemas/clients-show.v1.json +191 -0
- package/schemas/clients-update.v1.json +164 -0
- package/schemas/configure.v1.json +97 -0
- package/schemas/contracts.v1.json +106 -0
- package/schemas/data-backup.v1.json +32 -0
- package/schemas/deploy.v1.json +546 -0
- package/schemas/doctor.v1.json +324 -0
- package/schemas/local-deployment.v1.json +364 -0
- package/schemas/logs-anomalies.v1.json +112 -0
- package/schemas/logs-show.v1.json +127 -0
- package/schemas/logs-summary.v1.json +129 -0
- package/schemas/model-catalog.v1.json +117 -0
- package/schemas/models-explain.v1.json +325 -0
- package/schemas/preservation.v1.json +47 -0
- package/schemas/providers-add.v1.json +185 -0
- package/schemas/providers-import.v1.json +97 -0
- package/schemas/providers-list.v1.json +182 -0
- package/schemas/providers-remove.v1.json +97 -0
- package/schemas/providers-show.v1.json +179 -0
- package/schemas/serve.v1.json +97 -0
- package/schemas/server-claim.v1.json +97 -0
- package/schemas/server-reap.v1.json +97 -0
- package/schemas/server-remove.v1.json +97 -0
- package/schemas/server-start.v1.json +97 -0
- package/schemas/server-status.v1.json +197 -0
- package/schemas/server-stop.v1.json +97 -0
- package/schemas/server-use.v1.json +97 -0
- package/schemas/staging.v1.json +47 -0
- package/schemas/tls-ca.v1.json +97 -0
- package/schemas/tls-generate.v1.json +97 -0
- package/schemas/tokens-expire.v1.json +97 -0
- package/schemas/tokens-import.v1.json +192 -0
- package/schemas/tokens-issue.v1.json +94 -0
- package/schemas/tokens-list.v1.json +272 -0
- package/schemas/tokens-recover-admin.v1.json +116 -0
- package/schemas/tokens-revoke.v1.json +97 -0
- package/schemas/tokens-rotate.v1.json +94 -0
- package/schemas/tokens-show.v1.json +269 -0
- package/schemas/tunnel-down.v1.json +97 -0
- package/schemas/tunnel-status.v1.json +165 -0
- package/schemas/tunnel-up.v1.json +97 -0
- package/schemas/usage.v1.json +621 -0
- package/schemas/verification.v1.json +254 -0
- package/schemas/verify.v1.json +338 -0
- package/schemas/version.v1.json +103 -0
- package/schemas/with.v1.json +105 -0
- package/src/accounts.mjs +233 -0
- package/src/activitypub.mjs +23 -0
- package/src/admin-assets.mjs +16 -0
- package/src/admin.mjs +108 -0
- package/src/affinities.mjs +180 -0
- package/src/affinity-schema-descriptor.mjs +2 -0
- package/src/affinity-schema.mjs +185 -0
- package/src/assets/admin/assets/app.js +1 -0
- package/src/assets/admin/assets/react.js +9 -0
- package/src/assets/admin/assets/rolldown-runtime.js +1 -0
- package/src/assets/admin/assets/ui-vendor.js +3 -0
- package/src/assets/admin/index.html +16 -0
- package/src/auth-service.mjs +149 -0
- package/src/claude-process-session.mjs +26 -0
- package/src/cli-output.mjs +21 -0
- package/src/cli.mjs +84 -0
- package/src/client-ca.mjs +8 -0
- package/src/client-catalog.mjs +52 -0
- package/src/client-codex-catalog.mjs +18 -0
- package/src/client-configure.mjs +72 -0
- package/src/client-files.mjs +82 -0
- package/src/client-global-repair.mjs +19 -0
- package/src/client-global-state.mjs +19 -0
- package/src/client-global.mjs +43 -0
- package/src/client-json.mjs +54 -0
- package/src/client-launch-plan.mjs +28 -0
- package/src/client-launch.mjs +35 -0
- package/src/client-persistent.mjs +66 -0
- package/src/client-process-profile.mjs +52 -0
- package/src/client-process-settings.mjs +36 -0
- package/src/client-process.mjs +44 -0
- package/src/client-profile-backup.mjs +29 -0
- package/src/client-remote-health.mjs +7 -0
- package/src/client-remote.mjs +55 -0
- package/src/client-run-credential.mjs +38 -0
- package/src/client-setup.mjs +97 -0
- package/src/client-status.mjs +102 -0
- package/src/client-toml-cst.mjs +71 -0
- package/src/client-transaction.mjs +48 -0
- package/src/codex-login.mjs +121 -0
- package/src/codex-loopback-transport.mjs +34 -0
- package/src/codex-loopback.mjs +60 -0
- package/src/config.mjs +198 -0
- package/src/core.mjs +198 -0
- package/src/credential-operations.mjs +119 -0
- package/src/doublets.mjs +157 -0
- package/src/emergency-auth.mjs +91 -0
- package/src/file-lock.mjs +107 -0
- package/src/gemini-protocol.mjs +133 -0
- package/src/geolocation.mjs +46 -0
- package/src/git-proxy.mjs +52 -0
- package/src/github-proxy.mjs +74 -0
- package/src/http-management.mjs +36 -0
- package/src/http-route-contract.mjs +479 -0
- package/src/index.mjs +4 -0
- package/src/local-router-discovery.mjs +31 -0
- package/src/managed-server.mjs +411 -0
- package/src/management-access.mjs +76 -0
- package/src/native-service.mjs +392 -0
- package/src/oauth.mjs +547 -0
- package/src/operation-input.mjs +20 -0
- package/src/operations.mjs +378 -0
- package/src/protocols.mjs +229 -0
- package/src/provider-manifest.mjs +46 -0
- package/src/provider-provision.mjs +24 -0
- package/src/remote-operations.mjs +166 -0
- package/src/request-log.mjs +99 -0
- package/src/resources.mjs +290 -0
- package/src/response-contracts.mjs +147 -0
- package/src/responses.mjs +103 -0
- package/src/routing.mjs +40 -0
- package/src/runtime-config.mjs +133 -0
- package/src/runtime-payload.mjs +190 -0
- package/src/sensitive-data-sse.mjs +121 -0
- package/src/sensitive-data.mjs +254 -0
- package/src/server.mjs +552 -0
- package/src/storage.mjs +367 -0
- package/src/streams.mjs +232 -0
- package/src/token-import.mjs +68 -0
- package/src/token-reservation.mjs +8 -0
- package/src/tokens.mjs +172 -0
- package/src/usage.mjs +54 -0
- package/src/websocket-relay.mjs +131 -0
- package/testing.d.ts +7 -0
- package/testing.js +57 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
// Canonical HTTP inventory derived from openapi/router.yaml; no parity claim.
|
|
2
|
+
export const HTTP_ROUTES = [
|
|
3
|
+
{"method":"GET","path":"/"},
|
|
4
|
+
{"method":"HEAD","path":"/"},
|
|
5
|
+
{"method":"POST","path":"/api/graphql"},
|
|
6
|
+
{"method":"GET","path":"/api/health"},
|
|
7
|
+
{"method":"HEAD","path":"/api/health"},
|
|
8
|
+
{"method":"GET","path":"/api/management/accounts"},
|
|
9
|
+
{"method":"HEAD","path":"/api/management/accounts"},
|
|
10
|
+
{"method":"POST","path":"/api/management/accounts/{name}/pause"},
|
|
11
|
+
{"method":"GET","path":"/api/management/accounts/{name}/policy"},
|
|
12
|
+
{"method":"HEAD","path":"/api/management/accounts/{name}/policy"},
|
|
13
|
+
{"method":"POST","path":"/api/management/accounts/{name}/policy"},
|
|
14
|
+
{"method":"POST","path":"/api/management/accounts/{name}/resume"},
|
|
15
|
+
{"method":"POST","path":"/api/management/admin/bootstrap"},
|
|
16
|
+
{"method":"POST","path":"/api/management/admin/bootstrap/confirm"},
|
|
17
|
+
{"method":"POST","path":"/api/management/admin/rotate"},
|
|
18
|
+
{"method":"GET","path":"/api/management/admin/status"},
|
|
19
|
+
{"method":"HEAD","path":"/api/management/admin/status"},
|
|
20
|
+
{"method":"GET","path":"/api/management/admin/summary"},
|
|
21
|
+
{"method":"HEAD","path":"/api/management/admin/summary"},
|
|
22
|
+
{"method":"GET","path":"/api/management/auth/diagnostics"},
|
|
23
|
+
{"method":"HEAD","path":"/api/management/auth/diagnostics"},
|
|
24
|
+
{"method":"GET","path":"/api/management/auth/status"},
|
|
25
|
+
{"method":"HEAD","path":"/api/management/auth/status"},
|
|
26
|
+
{"method":"GET","path":"/api/management/emergency-auth"},
|
|
27
|
+
{"method":"HEAD","path":"/api/management/emergency-auth"},
|
|
28
|
+
{"method":"POST","path":"/api/management/emergency-auth/disable"},
|
|
29
|
+
{"method":"GET","path":"/api/management/health/subscriptions"},
|
|
30
|
+
{"method":"HEAD","path":"/api/management/health/subscriptions"},
|
|
31
|
+
{"method":"PATCH","path":"/api/management/logging"},
|
|
32
|
+
{"method":"POST","path":"/api/management/login"},
|
|
33
|
+
{"method":"DELETE","path":"/api/management/login/{id}"},
|
|
34
|
+
{"method":"GET","path":"/api/management/login/{id}"},
|
|
35
|
+
{"method":"HEAD","path":"/api/management/login/{id}"},
|
|
36
|
+
{"method":"POST","path":"/api/management/login/{id}/code"},
|
|
37
|
+
{"method":"DELETE","path":"/api/management/logs"},
|
|
38
|
+
{"method":"GET","path":"/api/management/logs/errors"},
|
|
39
|
+
{"method":"HEAD","path":"/api/management/logs/errors"},
|
|
40
|
+
{"method":"GET","path":"/api/management/logs/errors/{name}"},
|
|
41
|
+
{"method":"HEAD","path":"/api/management/logs/errors/{name}"},
|
|
42
|
+
{"method":"GET","path":"/api/management/logs/requests/{id}"},
|
|
43
|
+
{"method":"HEAD","path":"/api/management/logs/requests/{id}"},
|
|
44
|
+
{"method":"GET","path":"/api/management/metrics"},
|
|
45
|
+
{"method":"HEAD","path":"/api/management/metrics"},
|
|
46
|
+
{"method":"GET","path":"/api/management/providers"},
|
|
47
|
+
{"method":"HEAD","path":"/api/management/providers"},
|
|
48
|
+
{"method":"POST","path":"/api/management/providers"},
|
|
49
|
+
{"method":"DELETE","path":"/api/management/providers/{name}"},
|
|
50
|
+
{"method":"GET","path":"/api/management/providers/{name}"},
|
|
51
|
+
{"method":"HEAD","path":"/api/management/providers/{name}"},
|
|
52
|
+
{"method":"PATCH","path":"/api/management/routing"},
|
|
53
|
+
{"method":"POST","path":"/api/management/routing/cooldown/reset"},
|
|
54
|
+
{"method":"GET","path":"/api/management/routing/model-definitions/{channel}"},
|
|
55
|
+
{"method":"HEAD","path":"/api/management/routing/model-definitions/{channel}"},
|
|
56
|
+
{"method":"GET","path":"/api/management/server/latest-version"},
|
|
57
|
+
{"method":"HEAD","path":"/api/management/server/latest-version"},
|
|
58
|
+
{"method":"GET","path":"/api/management/tokens"},
|
|
59
|
+
{"method":"HEAD","path":"/api/management/tokens"},
|
|
60
|
+
{"method":"POST","path":"/api/management/tokens"},
|
|
61
|
+
{"method":"POST","path":"/api/management/tokens/client"},
|
|
62
|
+
{"method":"POST","path":"/api/management/tokens/revoke"},
|
|
63
|
+
{"method":"POST","path":"/api/management/tokens/rotate"},
|
|
64
|
+
{"method":"POST","path":"/api/management/tokens/rotate-client"},
|
|
65
|
+
{"method":"GET","path":"/api/management/usage"},
|
|
66
|
+
{"method":"HEAD","path":"/api/management/usage"},
|
|
67
|
+
{"method":"GET","path":"/api/management/usage/queue"},
|
|
68
|
+
{"method":"HEAD","path":"/api/management/usage/queue"},
|
|
69
|
+
{"method":"GET","path":"/api/models"},
|
|
70
|
+
{"method":"HEAD","path":"/api/models"},
|
|
71
|
+
{"method":"POST","path":"/api/run-lease"},
|
|
72
|
+
{"method":"GET","path":"/api/services/activitypub/activities/follow-problemsets-code-001"},
|
|
73
|
+
{"method":"HEAD","path":"/api/services/activitypub/activities/follow-problemsets-code-001"},
|
|
74
|
+
{"method":"GET","path":"/api/services/activitypub/actor/code"},
|
|
75
|
+
{"method":"HEAD","path":"/api/services/activitypub/actor/code"},
|
|
76
|
+
{"method":"GET","path":"/api/services/activitypub/actors/code/followers"},
|
|
77
|
+
{"method":"HEAD","path":"/api/services/activitypub/actors/code/followers"},
|
|
78
|
+
{"method":"POST","path":"/api/services/activitypub/inbox/code"},
|
|
79
|
+
{"method":"GET","path":"/api/services/activitypub/outbox/code"},
|
|
80
|
+
{"method":"HEAD","path":"/api/services/activitypub/outbox/code"},
|
|
81
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files"},
|
|
82
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/files"},
|
|
83
|
+
{"method":"POST","path":"/api/services/anthropic/v1/files"},
|
|
84
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/files/{file_id}"},
|
|
85
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files/{file_id}"},
|
|
86
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/files/{file_id}"},
|
|
87
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files/{file_id}/content"},
|
|
88
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/files/{file_id}/content"},
|
|
89
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages"},
|
|
90
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches"},
|
|
91
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/messages/batches"},
|
|
92
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages/batches"},
|
|
93
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/messages/batches/{batch_id}"},
|
|
94
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches/{batch_id}"},
|
|
95
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/messages/batches/{batch_id}"},
|
|
96
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages/batches/{batch_id}/cancel"},
|
|
97
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches/{batch_id}/results"},
|
|
98
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/messages/batches/{batch_id}/results"},
|
|
99
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages/count_tokens"},
|
|
100
|
+
{"method":"GET","path":"/api/services/anthropic/v1/models"},
|
|
101
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/models"},
|
|
102
|
+
{"method":"GET","path":"/api/services/anthropic/v1/models/{model_id}"},
|
|
103
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/models/{model_id}"},
|
|
104
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills"},
|
|
105
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/skills"},
|
|
106
|
+
{"method":"POST","path":"/api/services/anthropic/v1/skills"},
|
|
107
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/skills/{skill_id}"},
|
|
108
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}"},
|
|
109
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/skills/{skill_id}"},
|
|
110
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions"},
|
|
111
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/skills/{skill_id}/versions"},
|
|
112
|
+
{"method":"POST","path":"/api/services/anthropic/v1/skills/{skill_id}/versions"},
|
|
113
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}"},
|
|
114
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}"},
|
|
115
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}"},
|
|
116
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}/content"},
|
|
117
|
+
{"method":"HEAD","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}/content"},
|
|
118
|
+
{"method":"POST","path":"/api/services/bedrock/invoke"},
|
|
119
|
+
{"method":"POST","path":"/api/services/bedrock/invoke-with-response-stream"},
|
|
120
|
+
{"method":"GET","path":"/api/services/codex/backend-api/accounts/verified_access"},
|
|
121
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/accounts/verified_access"},
|
|
122
|
+
{"method":"POST","path":"/api/services/codex/backend-api/codex/analytics-events/events"},
|
|
123
|
+
{"method":"GET","path":"/api/services/codex/backend-api/connectors/directory/list"},
|
|
124
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/connectors/directory/list"},
|
|
125
|
+
{"method":"GET","path":"/api/services/codex/backend-api/connectors/directory/list_workspace"},
|
|
126
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/connectors/directory/list_workspace"},
|
|
127
|
+
{"method":"POST","path":"/api/services/codex/backend-api/files"},
|
|
128
|
+
{"method":"POST","path":"/api/services/codex/backend-api/files/{file_id}/uploaded"},
|
|
129
|
+
{"method":"GET","path":"/api/services/codex/backend-api/plugins/featured"},
|
|
130
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/plugins/featured"},
|
|
131
|
+
{"method":"POST","path":"/api/services/codex/backend-api/plugins/{plugin_id}/enable"},
|
|
132
|
+
{"method":"POST","path":"/api/services/codex/backend-api/plugins/{plugin_id}/uninstall"},
|
|
133
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/apps/batch"},
|
|
134
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
135
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
136
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
137
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
138
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/installed"},
|
|
139
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/installed"},
|
|
140
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/list"},
|
|
141
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/list"},
|
|
142
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/search"},
|
|
143
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/search"},
|
|
144
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/suggested/codex"},
|
|
145
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/suggested/codex"},
|
|
146
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/workspace/created"},
|
|
147
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/workspace/created"},
|
|
148
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/workspace/shared"},
|
|
149
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/workspace/shared"},
|
|
150
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}"},
|
|
151
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}"},
|
|
152
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/install"},
|
|
153
|
+
{"method":"PUT","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/shares"},
|
|
154
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/skills/{skill}"},
|
|
155
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/skills/{skill}"},
|
|
156
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/uninstall"},
|
|
157
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace"},
|
|
158
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace/upload-url"},
|
|
159
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/public/plugins/workspace/{plugin_id}"},
|
|
160
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace/{plugin_id}"},
|
|
161
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/accounts/check"},
|
|
162
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/accounts/check"},
|
|
163
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/accounts/send_add_credits_nudge_email"},
|
|
164
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/config/bundle"},
|
|
165
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/config/bundle"},
|
|
166
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/profiles/me"},
|
|
167
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/profiles/me"},
|
|
168
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/rate-limit-reset-credits"},
|
|
169
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/rate-limit-reset-credits"},
|
|
170
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/rate-limit-reset-credits/consume"},
|
|
171
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/remote/control/environments/{environment_id}/clients"},
|
|
172
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/remote/control/environments/{environment_id}/clients"},
|
|
173
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/wham/remote/control/environments/{environment_id}/clients/{client_id}"},
|
|
174
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/remote/control/server"},
|
|
175
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/remote/control/server"},
|
|
176
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/enroll"},
|
|
177
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/pair"},
|
|
178
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/pair/status"},
|
|
179
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/refresh"},
|
|
180
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/settings/user"},
|
|
181
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/settings/user"},
|
|
182
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/usage"},
|
|
183
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/usage"},
|
|
184
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/usage/thread-estimates/query"},
|
|
185
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/usage/thread_usage/query"},
|
|
186
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/workspace-messages"},
|
|
187
|
+
{"method":"HEAD","path":"/api/services/codex/backend-api/wham/workspace-messages"},
|
|
188
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/list_items"},
|
|
189
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/list_windows"},
|
|
190
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/read_item"},
|
|
191
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/search_contents"},
|
|
192
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/append_to_file"},
|
|
193
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/list_files_by_prefix"},
|
|
194
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/read_file"},
|
|
195
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/search_contents"},
|
|
196
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/thread_hint"},
|
|
197
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/write_file"},
|
|
198
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/search"},
|
|
199
|
+
{"method":"GET","path":"/api/services/codex/v1/chat/completions"},
|
|
200
|
+
{"method":"HEAD","path":"/api/services/codex/v1/chat/completions"},
|
|
201
|
+
{"method":"POST","path":"/api/services/codex/v1/chat/completions"},
|
|
202
|
+
{"method":"DELETE","path":"/api/services/codex/v1/chat/completions/{completion_id}"},
|
|
203
|
+
{"method":"GET","path":"/api/services/codex/v1/chat/completions/{completion_id}"},
|
|
204
|
+
{"method":"HEAD","path":"/api/services/codex/v1/chat/completions/{completion_id}"},
|
|
205
|
+
{"method":"POST","path":"/api/services/codex/v1/chat/completions/{completion_id}"},
|
|
206
|
+
{"method":"GET","path":"/api/services/codex/v1/chat/completions/{completion_id}/messages"},
|
|
207
|
+
{"method":"HEAD","path":"/api/services/codex/v1/chat/completions/{completion_id}/messages"},
|
|
208
|
+
{"method":"POST","path":"/api/services/codex/v1/conversations"},
|
|
209
|
+
{"method":"DELETE","path":"/api/services/codex/v1/conversations/{conversation_id}"},
|
|
210
|
+
{"method":"GET","path":"/api/services/codex/v1/conversations/{conversation_id}"},
|
|
211
|
+
{"method":"HEAD","path":"/api/services/codex/v1/conversations/{conversation_id}"},
|
|
212
|
+
{"method":"PATCH","path":"/api/services/codex/v1/conversations/{conversation_id}"},
|
|
213
|
+
{"method":"GET","path":"/api/services/codex/v1/conversations/{conversation_id}/items"},
|
|
214
|
+
{"method":"HEAD","path":"/api/services/codex/v1/conversations/{conversation_id}/items"},
|
|
215
|
+
{"method":"POST","path":"/api/services/codex/v1/conversations/{conversation_id}/items"},
|
|
216
|
+
{"method":"DELETE","path":"/api/services/codex/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
217
|
+
{"method":"GET","path":"/api/services/codex/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
218
|
+
{"method":"HEAD","path":"/api/services/codex/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
219
|
+
{"method":"POST","path":"/api/services/codex/v1/images/edits"},
|
|
220
|
+
{"method":"POST","path":"/api/services/codex/v1/images/generations"},
|
|
221
|
+
{"method":"GET","path":"/api/services/codex/v1/live"},
|
|
222
|
+
{"method":"HEAD","path":"/api/services/codex/v1/live"},
|
|
223
|
+
{"method":"POST","path":"/api/services/codex/v1/live"},
|
|
224
|
+
{"method":"GET","path":"/api/services/codex/v1/live/{call_id}"},
|
|
225
|
+
{"method":"HEAD","path":"/api/services/codex/v1/live/{call_id}"},
|
|
226
|
+
{"method":"GET","path":"/api/services/codex/v1/models"},
|
|
227
|
+
{"method":"HEAD","path":"/api/services/codex/v1/models"},
|
|
228
|
+
{"method":"GET","path":"/api/services/codex/v1/models/{model_id}"},
|
|
229
|
+
{"method":"HEAD","path":"/api/services/codex/v1/models/{model_id}"},
|
|
230
|
+
{"method":"GET","path":"/api/services/codex/v1/realtime"},
|
|
231
|
+
{"method":"HEAD","path":"/api/services/codex/v1/realtime"},
|
|
232
|
+
{"method":"POST","path":"/api/services/codex/v1/realtime/calls"},
|
|
233
|
+
{"method":"GET","path":"/api/services/codex/v1/responses"},
|
|
234
|
+
{"method":"HEAD","path":"/api/services/codex/v1/responses"},
|
|
235
|
+
{"method":"POST","path":"/api/services/codex/v1/responses"},
|
|
236
|
+
{"method":"POST","path":"/api/services/codex/v1/responses/compact"},
|
|
237
|
+
{"method":"DELETE","path":"/api/services/codex/v1/responses/{response_id}"},
|
|
238
|
+
{"method":"GET","path":"/api/services/codex/v1/responses/{response_id}"},
|
|
239
|
+
{"method":"HEAD","path":"/api/services/codex/v1/responses/{response_id}"},
|
|
240
|
+
{"method":"POST","path":"/api/services/codex/v1/responses/{response_id}/cancel"},
|
|
241
|
+
{"method":"GET","path":"/api/services/codex/v1/responses/{response_id}/input_items"},
|
|
242
|
+
{"method":"HEAD","path":"/api/services/codex/v1/responses/{response_id}/input_items"},
|
|
243
|
+
{"method":"GET","path":"/api/services/codex/v1/user-auth-credential/whoami"},
|
|
244
|
+
{"method":"HEAD","path":"/api/services/codex/v1/user-auth-credential/whoami"},
|
|
245
|
+
{"method":"GET","path":"/api/services/gemini/v1beta/models"},
|
|
246
|
+
{"method":"HEAD","path":"/api/services/gemini/v1beta/models"},
|
|
247
|
+
{"method":"GET","path":"/api/services/gemini/v1beta/models/{model}"},
|
|
248
|
+
{"method":"HEAD","path":"/api/services/gemini/v1beta/models/{model}"},
|
|
249
|
+
{"method":"POST","path":"/api/services/gemini/v1beta/models/{model}"},
|
|
250
|
+
{"method":"POST","path":"/api/services/github/api/graphql"},
|
|
251
|
+
{"method":"DELETE","path":"/api/services/github/api/v3/{path}"},
|
|
252
|
+
{"method":"GET","path":"/api/services/github/api/v3/{path}"},
|
|
253
|
+
{"method":"HEAD","path":"/api/services/github/api/v3/{path}"},
|
|
254
|
+
{"method":"OPTIONS","path":"/api/services/github/api/v3/{path}"},
|
|
255
|
+
{"method":"PATCH","path":"/api/services/github/api/v3/{path}"},
|
|
256
|
+
{"method":"POST","path":"/api/services/github/api/v3/{path}"},
|
|
257
|
+
{"method":"PUT","path":"/api/services/github/api/v3/{path}"},
|
|
258
|
+
{"method":"DELETE","path":"/api/services/github/git/{path}"},
|
|
259
|
+
{"method":"GET","path":"/api/services/github/git/{path}"},
|
|
260
|
+
{"method":"HEAD","path":"/api/services/github/git/{path}"},
|
|
261
|
+
{"method":"OPTIONS","path":"/api/services/github/git/{path}"},
|
|
262
|
+
{"method":"PATCH","path":"/api/services/github/git/{path}"},
|
|
263
|
+
{"method":"POST","path":"/api/services/github/git/{path}"},
|
|
264
|
+
{"method":"PUT","path":"/api/services/github/git/{path}"},
|
|
265
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/speech"},
|
|
266
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/transcriptions"},
|
|
267
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/translations"},
|
|
268
|
+
{"method":"GET","path":"/api/services/openai/v1/chat/completions"},
|
|
269
|
+
{"method":"HEAD","path":"/api/services/openai/v1/chat/completions"},
|
|
270
|
+
{"method":"POST","path":"/api/services/openai/v1/chat/completions"},
|
|
271
|
+
{"method":"DELETE","path":"/api/services/openai/v1/chat/completions/{completion_id}"},
|
|
272
|
+
{"method":"GET","path":"/api/services/openai/v1/chat/completions/{completion_id}"},
|
|
273
|
+
{"method":"HEAD","path":"/api/services/openai/v1/chat/completions/{completion_id}"},
|
|
274
|
+
{"method":"POST","path":"/api/services/openai/v1/chat/completions/{completion_id}"},
|
|
275
|
+
{"method":"GET","path":"/api/services/openai/v1/chat/completions/{completion_id}/messages"},
|
|
276
|
+
{"method":"HEAD","path":"/api/services/openai/v1/chat/completions/{completion_id}/messages"},
|
|
277
|
+
{"method":"POST","path":"/api/services/openai/v1/conversations"},
|
|
278
|
+
{"method":"DELETE","path":"/api/services/openai/v1/conversations/{conversation_id}"},
|
|
279
|
+
{"method":"GET","path":"/api/services/openai/v1/conversations/{conversation_id}"},
|
|
280
|
+
{"method":"HEAD","path":"/api/services/openai/v1/conversations/{conversation_id}"},
|
|
281
|
+
{"method":"PATCH","path":"/api/services/openai/v1/conversations/{conversation_id}"},
|
|
282
|
+
{"method":"GET","path":"/api/services/openai/v1/conversations/{conversation_id}/items"},
|
|
283
|
+
{"method":"HEAD","path":"/api/services/openai/v1/conversations/{conversation_id}/items"},
|
|
284
|
+
{"method":"POST","path":"/api/services/openai/v1/conversations/{conversation_id}/items"},
|
|
285
|
+
{"method":"DELETE","path":"/api/services/openai/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
286
|
+
{"method":"GET","path":"/api/services/openai/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
287
|
+
{"method":"HEAD","path":"/api/services/openai/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
288
|
+
{"method":"POST","path":"/api/services/openai/v1/images/edits"},
|
|
289
|
+
{"method":"POST","path":"/api/services/openai/v1/images/generations"},
|
|
290
|
+
{"method":"POST","path":"/api/services/openai/v1/images/variations"},
|
|
291
|
+
{"method":"GET","path":"/api/services/openai/v1/models"},
|
|
292
|
+
{"method":"HEAD","path":"/api/services/openai/v1/models"},
|
|
293
|
+
{"method":"GET","path":"/api/services/openai/v1/models/{model_id}"},
|
|
294
|
+
{"method":"HEAD","path":"/api/services/openai/v1/models/{model_id}"},
|
|
295
|
+
{"method":"GET","path":"/api/services/openai/v1/realtime"},
|
|
296
|
+
{"method":"HEAD","path":"/api/services/openai/v1/realtime"},
|
|
297
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls"},
|
|
298
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/accept"},
|
|
299
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/hangup"},
|
|
300
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/refer"},
|
|
301
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/reject"},
|
|
302
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/client_secrets"},
|
|
303
|
+
{"method":"GET","path":"/api/services/openai/v1/responses"},
|
|
304
|
+
{"method":"HEAD","path":"/api/services/openai/v1/responses"},
|
|
305
|
+
{"method":"POST","path":"/api/services/openai/v1/responses"},
|
|
306
|
+
{"method":"POST","path":"/api/services/openai/v1/responses/compact"},
|
|
307
|
+
{"method":"POST","path":"/api/services/openai/v1/responses/input_tokens"},
|
|
308
|
+
{"method":"DELETE","path":"/api/services/openai/v1/responses/{response_id}"},
|
|
309
|
+
{"method":"GET","path":"/api/services/openai/v1/responses/{response_id}"},
|
|
310
|
+
{"method":"HEAD","path":"/api/services/openai/v1/responses/{response_id}"},
|
|
311
|
+
{"method":"POST","path":"/api/services/openai/v1/responses/{response_id}/cancel"},
|
|
312
|
+
{"method":"GET","path":"/api/services/openai/v1/responses/{response_id}/input_items"},
|
|
313
|
+
{"method":"HEAD","path":"/api/services/openai/v1/responses/{response_id}/input_items"},
|
|
314
|
+
{"method":"GET","path":"/api/services/qwen/v1/chat/completions"},
|
|
315
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/chat/completions"},
|
|
316
|
+
{"method":"POST","path":"/api/services/qwen/v1/chat/completions"},
|
|
317
|
+
{"method":"DELETE","path":"/api/services/qwen/v1/chat/completions/{completion_id}"},
|
|
318
|
+
{"method":"GET","path":"/api/services/qwen/v1/chat/completions/{completion_id}"},
|
|
319
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/chat/completions/{completion_id}"},
|
|
320
|
+
{"method":"POST","path":"/api/services/qwen/v1/chat/completions/{completion_id}"},
|
|
321
|
+
{"method":"GET","path":"/api/services/qwen/v1/chat/completions/{completion_id}/messages"},
|
|
322
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/chat/completions/{completion_id}/messages"},
|
|
323
|
+
{"method":"POST","path":"/api/services/qwen/v1/conversations"},
|
|
324
|
+
{"method":"DELETE","path":"/api/services/qwen/v1/conversations/{conversation_id}"},
|
|
325
|
+
{"method":"GET","path":"/api/services/qwen/v1/conversations/{conversation_id}"},
|
|
326
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/conversations/{conversation_id}"},
|
|
327
|
+
{"method":"PATCH","path":"/api/services/qwen/v1/conversations/{conversation_id}"},
|
|
328
|
+
{"method":"GET","path":"/api/services/qwen/v1/conversations/{conversation_id}/items"},
|
|
329
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/conversations/{conversation_id}/items"},
|
|
330
|
+
{"method":"POST","path":"/api/services/qwen/v1/conversations/{conversation_id}/items"},
|
|
331
|
+
{"method":"DELETE","path":"/api/services/qwen/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
332
|
+
{"method":"GET","path":"/api/services/qwen/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
333
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/conversations/{conversation_id}/items/{item_id}"},
|
|
334
|
+
{"method":"GET","path":"/api/services/qwen/v1/models"},
|
|
335
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/models"},
|
|
336
|
+
{"method":"GET","path":"/api/services/qwen/v1/models/{model_id}"},
|
|
337
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/models/{model_id}"},
|
|
338
|
+
{"method":"GET","path":"/api/services/qwen/v1/responses"},
|
|
339
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/responses"},
|
|
340
|
+
{"method":"POST","path":"/api/services/qwen/v1/responses"},
|
|
341
|
+
{"method":"DELETE","path":"/api/services/qwen/v1/responses/{response_id}"},
|
|
342
|
+
{"method":"GET","path":"/api/services/qwen/v1/responses/{response_id}"},
|
|
343
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/responses/{response_id}"},
|
|
344
|
+
{"method":"POST","path":"/api/services/qwen/v1/responses/{response_id}/cancel"},
|
|
345
|
+
{"method":"GET","path":"/api/services/qwen/v1/responses/{response_id}/input_items"},
|
|
346
|
+
{"method":"HEAD","path":"/api/services/qwen/v1/responses/{response_id}/input_items"},
|
|
347
|
+
{"method":"POST","path":"/api/services/vertex/v1/projects/{project}/locations/{location}/publishers/anthropic/models/{model_action}"},
|
|
348
|
+
{"method":"POST","path":"/api/services/vertex/v1/{path}"},
|
|
349
|
+
{"method":"GET","path":"/api/usage"},
|
|
350
|
+
{"method":"HEAD","path":"/api/usage"},
|
|
351
|
+
{"method":"GET","path":"/api/usage/{provider}"},
|
|
352
|
+
{"method":"HEAD","path":"/api/usage/{provider}"},
|
|
353
|
+
{"method":"DELETE","path":"/api/v3/{path}"},
|
|
354
|
+
{"method":"GET","path":"/api/v3/{path}"},
|
|
355
|
+
{"method":"HEAD","path":"/api/v3/{path}"},
|
|
356
|
+
{"method":"OPTIONS","path":"/api/v3/{path}"},
|
|
357
|
+
{"method":"PATCH","path":"/api/v3/{path}"},
|
|
358
|
+
{"method":"POST","path":"/api/v3/{path}"},
|
|
359
|
+
{"method":"PUT","path":"/api/v3/{path}"},
|
|
360
|
+
{"method":"DELETE","path":"/git/{path}"},
|
|
361
|
+
{"method":"GET","path":"/git/{path}"},
|
|
362
|
+
{"method":"HEAD","path":"/git/{path}"},
|
|
363
|
+
{"method":"OPTIONS","path":"/git/{path}"},
|
|
364
|
+
{"method":"PATCH","path":"/git/{path}"},
|
|
365
|
+
{"method":"POST","path":"/git/{path}"},
|
|
366
|
+
{"method":"PUT","path":"/git/{path}"},
|
|
367
|
+
{"method":"TRACE","path":"/api/services/github/api/v3/{path}"},
|
|
368
|
+
{"method":"TRACE","path":"/api/services/github/git/{path}"},
|
|
369
|
+
{"method":"TRACE","path":"/api/v3/{path}"},
|
|
370
|
+
{"method":"TRACE","path":"/git/{path}"},
|
|
371
|
+
];
|
|
372
|
+
const escape = value => value.replace(/[.*+?^$()|[\]\\]/g, '\\$&');
|
|
373
|
+
const patterns = HTTP_ROUTES.map(route => ({ ...route, pattern: new RegExp('^' + route.path.split(/(\{[^}]+\})/).map(part => part.startsWith('{') ? (part === '{path}' ? '.+' : '[^/]+') : escape(part)).join('') + '$') }));
|
|
374
|
+
export function matchHTTPRoute(method, path) { return patterns.find(route => route.method === method && route.pattern.test(path)); }
|
|
375
|
+
|
|
376
|
+
// Exact opaque route IDs from src/route_contract_native.rs, excluding structured inference.
|
|
377
|
+
export const OPAQUE_NATIVE_ROUTES = [
|
|
378
|
+
{"method":"POST","path":"/api/services/openai/v1/responses/compact"},
|
|
379
|
+
{"method":"POST","path":"/api/services/openai/v1/responses/input_tokens"},
|
|
380
|
+
{"method":"POST","path":"/api/services/openai/v1/images/generations"},
|
|
381
|
+
{"method":"POST","path":"/api/services/openai/v1/images/edits"},
|
|
382
|
+
{"method":"POST","path":"/api/services/openai/v1/images/variations"},
|
|
383
|
+
{"method":"GET","path":"/api/services/openai/v1/realtime"},
|
|
384
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/client_secrets"},
|
|
385
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls"},
|
|
386
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/accept"},
|
|
387
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/hangup"},
|
|
388
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/refer"},
|
|
389
|
+
{"method":"POST","path":"/api/services/openai/v1/realtime/calls/{call_id}/reject"},
|
|
390
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/speech"},
|
|
391
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/transcriptions"},
|
|
392
|
+
{"method":"POST","path":"/api/services/openai/v1/audio/translations"},
|
|
393
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files"},
|
|
394
|
+
{"method":"POST","path":"/api/services/anthropic/v1/files"},
|
|
395
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files/{file_id}"},
|
|
396
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/files/{file_id}"},
|
|
397
|
+
{"method":"GET","path":"/api/services/anthropic/v1/files/{file_id}/content"},
|
|
398
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches"},
|
|
399
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages/batches"},
|
|
400
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches/{batch_id}"},
|
|
401
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/messages/batches/{batch_id}"},
|
|
402
|
+
{"method":"POST","path":"/api/services/anthropic/v1/messages/batches/{batch_id}/cancel"},
|
|
403
|
+
{"method":"GET","path":"/api/services/anthropic/v1/messages/batches/{batch_id}/results"},
|
|
404
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills"},
|
|
405
|
+
{"method":"POST","path":"/api/services/anthropic/v1/skills"},
|
|
406
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}"},
|
|
407
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/skills/{skill_id}"},
|
|
408
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions"},
|
|
409
|
+
{"method":"POST","path":"/api/services/anthropic/v1/skills/{skill_id}/versions"},
|
|
410
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}"},
|
|
411
|
+
{"method":"DELETE","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}"},
|
|
412
|
+
{"method":"GET","path":"/api/services/anthropic/v1/skills/{skill_id}/versions/{version}/content"},
|
|
413
|
+
{"method":"POST","path":"/api/services/codex/v1/responses/compact"},
|
|
414
|
+
{"method":"POST","path":"/api/services/codex/v1/images/generations"},
|
|
415
|
+
{"method":"POST","path":"/api/services/codex/v1/images/edits"},
|
|
416
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/search"},
|
|
417
|
+
{"method":"GET","path":"/api/services/codex/v1/realtime"},
|
|
418
|
+
{"method":"POST","path":"/api/services/codex/v1/realtime/calls"},
|
|
419
|
+
{"method":"GET","path":"/api/services/codex/v1/live"},
|
|
420
|
+
{"method":"POST","path":"/api/services/codex/v1/live"},
|
|
421
|
+
{"method":"GET","path":"/api/services/codex/v1/live/{call_id}"},
|
|
422
|
+
{"method":"GET","path":"/api/services/codex/v1/user-auth-credential/whoami"},
|
|
423
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/list_windows"},
|
|
424
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/list_items"},
|
|
425
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/read_item"},
|
|
426
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/history/v2/search_contents"},
|
|
427
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/thread_hint"},
|
|
428
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/list_files_by_prefix"},
|
|
429
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/read_file"},
|
|
430
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/search_contents"},
|
|
431
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/append_to_file"},
|
|
432
|
+
{"method":"POST","path":"/api/services/codex/v1/alpha/notes/v2/write_file"},
|
|
433
|
+
{"method":"POST","path":"/api/services/codex/backend-api/files"},
|
|
434
|
+
{"method":"POST","path":"/api/services/codex/backend-api/files/{file_id}/uploaded"},
|
|
435
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/config/bundle"},
|
|
436
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/usage"},
|
|
437
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/rate-limit-reset-credits"},
|
|
438
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/rate-limit-reset-credits/consume"},
|
|
439
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/profiles/me"},
|
|
440
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/usage/thread_usage/query"},
|
|
441
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/usage/thread-estimates/query"},
|
|
442
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/settings/user"},
|
|
443
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/workspace-messages"},
|
|
444
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/accounts/check"},
|
|
445
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/accounts/send_add_credits_nudge_email"},
|
|
446
|
+
{"method":"GET","path":"/api/services/codex/backend-api/accounts/verified_access"},
|
|
447
|
+
{"method":"GET","path":"/api/services/codex/backend-api/connectors/directory/list"},
|
|
448
|
+
{"method":"GET","path":"/api/services/codex/backend-api/connectors/directory/list_workspace"},
|
|
449
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/apps/batch"},
|
|
450
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
451
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
452
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/ps/mcp"},
|
|
453
|
+
{"method":"GET","path":"/api/services/codex/backend-api/plugins/featured"},
|
|
454
|
+
{"method":"POST","path":"/api/services/codex/backend-api/plugins/{plugin_id}/enable"},
|
|
455
|
+
{"method":"POST","path":"/api/services/codex/backend-api/plugins/{plugin_id}/uninstall"},
|
|
456
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/suggested/codex"},
|
|
457
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/list"},
|
|
458
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/workspace/shared"},
|
|
459
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/installed"},
|
|
460
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/search"},
|
|
461
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}"},
|
|
462
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/skills/{skill}"},
|
|
463
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/install"},
|
|
464
|
+
{"method":"POST","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/uninstall"},
|
|
465
|
+
{"method":"GET","path":"/api/services/codex/backend-api/ps/plugins/workspace/created"},
|
|
466
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace/upload-url"},
|
|
467
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace"},
|
|
468
|
+
{"method":"POST","path":"/api/services/codex/backend-api/public/plugins/workspace/{plugin_id}"},
|
|
469
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/public/plugins/workspace/{plugin_id}"},
|
|
470
|
+
{"method":"PUT","path":"/api/services/codex/backend-api/ps/plugins/{plugin_id}/shares"},
|
|
471
|
+
{"method":"POST","path":"/api/services/codex/backend-api/codex/analytics-events/events"},
|
|
472
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/remote/control/server"},
|
|
473
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/enroll"},
|
|
474
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/refresh"},
|
|
475
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/pair"},
|
|
476
|
+
{"method":"POST","path":"/api/services/codex/backend-api/wham/remote/control/server/pair/status"},
|
|
477
|
+
{"method":"GET","path":"/api/services/codex/backend-api/wham/remote/control/environments/{environment_id}/clients"},
|
|
478
|
+
{"method":"DELETE","path":"/api/services/codex/backend-api/wham/remote/control/environments/{environment_id}/clients/{client_id}"},
|
|
479
|
+
];
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { NativeRouter, NativeRouterError, createNativeRouter, catalog, version, operationNames, nativeOperationSupport, operationResult, validateNativeResult } from './operations.mjs';
|
|
2
|
+
export { createRouterCore, RouterCore } from './core.mjs';
|
|
3
|
+
export { createNativeRouter as createNativeServerRouter, startNativeServer } from './server.mjs';
|
|
4
|
+
export { ResponsesStore, responseOwner, normalizeResponseInput } from './responses.mjs';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Bounded local discovery: candidate ports are DATA; TCP plus Router health is required. */
|
|
2
|
+
import {spawn} from 'node:child_process';
|
|
3
|
+
import {connect} from 'node:net';
|
|
4
|
+
import {verifyRemoteClientHealth} from './client-remote-health.mjs';
|
|
5
|
+
const port=(value)=>{if(typeof value!=='number'&&(typeof value!=='string'||!/^\d{1,5}$/u.test(value.trim())))return null;const number=Number(value);return Number.isInteger(number)&&number>0&&number<=65535?number:null;};
|
|
6
|
+
export function publishedLocalRouterPorts(listing){
|
|
7
|
+
if(typeof listing!=='string'||Buffer.byteLength(listing)>65536)return [];const ports=[];
|
|
8
|
+
for(const value of listing.split(/[,\n]/u)){const match=/^\s*(127\.0\.0\.1|0\.0\.0\.0|\[::\]|):(\d{1,5})->\d{1,5}\/(?:tcp|udp)\s*$/u.exec(value);if(!match||value.trim().endsWith('/udp'))continue;const candidate=port(match[2]);if(candidate!==null&&!ports.includes(candidate))ports.push(candidate);if(ports.length===64)break;}return ports;
|
|
9
|
+
}
|
|
10
|
+
async function dockerPorts(deadline,signal){
|
|
11
|
+
if(signal?.aborted||performance.now()>=deadline)return [];return new Promise(done=>{
|
|
12
|
+
let child,timer,settled=false,bytes=0;const chunks=[];
|
|
13
|
+
const finish=(ports)=>{if(settled)return;settled=true;clearTimeout(timer);signal?.removeEventListener('abort',cancel);done(ports);};
|
|
14
|
+
const cancel=()=>{child?.kill('SIGKILL');finish([]);};
|
|
15
|
+
try{child=spawn('docker',['ps','--format','{{.Ports}}'],{stdio:['ignore','pipe','ignore'],shell:false});}catch{finish([]);return;}
|
|
16
|
+
child.once('error',()=>finish([]));child.stdout?.on('data',(chunk)=>{bytes+=chunk.length;if(bytes>65536){cancel();return;}chunks.push(chunk);});child.once('close',(code)=>finish(code===0?publishedLocalRouterPorts(Buffer.concat(chunks).toString('utf8')):[]));
|
|
17
|
+
timer=setTimeout(cancel,Math.max(1,Math.min(1000,deadline-performance.now())));signal?.addEventListener('abort',cancel,{once:true});if(signal?.aborted)cancel();
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
async function accepts(port,budget,signal){
|
|
21
|
+
if(signal?.aborted||budget<=0)return false;return new Promise(done=>{
|
|
22
|
+
const socket=connect({host:'127.0.0.1',port});let settled=false;const finish=(answer)=>{if(settled)return;settled=true;clearTimeout(timer);signal?.removeEventListener('abort',cancel);socket.destroy();done(answer);},cancel=()=>finish(false),timer=setTimeout(cancel,Math.min(150,budget));socket.once('connect',()=>finish(true));socket.once('error',()=>finish(false));signal?.addEventListener('abort',cancel,{once:true});if(signal?.aborted)cancel();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export async function discoverLocalRouter(context={}){
|
|
26
|
+
const deadline=performance.now()+3000,signal=context.invocation?.signal,seen=new Set(),conventional=[];
|
|
27
|
+
const inputs=context.candidatePorts??[context.env?.ROUTER_PORT,8080,context.managedPort];if(!Array.isArray(inputs)||inputs.length>64)throw new TypeError('Bounded local candidate port DATA required');
|
|
28
|
+
for(const value of inputs){const candidate=port(value);if(candidate!==null&&!conventional.includes(candidate))conventional.push(candidate);}
|
|
29
|
+
const probe=async(candidates)=>{for(const candidate of candidates){if(seen.has(candidate))continue;seen.add(candidate);if(signal?.aborted||performance.now()>=deadline)return null;if(!await accepts(candidate,deadline-performance.now(),signal))continue;const server='http://127.0.0.1:'+candidate;try{await verifyRemoteClientHealth({...context,healthDeadlineMs:Math.max(1,Math.min(1000,deadline-performance.now()))},{server});if(signal?.aborted||performance.now()>deadline)return null;const token=context.env?.LINK_ASSISTANT_ROUTER_TOKEN??context.env?.LINK_ASSISTANT_TOKEN;return {server,managementServer:server,source:'already-running local server',...(token?{token}:{})};}catch{if(signal?.aborted)return null;}}return null;};
|
|
30
|
+
const conventionalTarget=await probe(conventional);if(conventionalTarget)return conventionalTarget;if(signal?.aborted||performance.now()>=deadline)return null;const candidates=context.dockerListing===undefined?await dockerPorts(deadline,signal):publishedLocalRouterPorts(context.dockerListing);return probe(candidates);
|
|
31
|
+
}
|