| 1 | package types |
| 2 | |
| 3 | const ( |
| 4 | PathRoot = "/" |
| 5 | PathAPIPrefix = "/api" |
| 6 | PathHealthz = PathAPIPrefix + "/healthz" |
| 7 | PathState = PathAPIPrefix + "/state" |
| 8 | |
| 9 | PathAdmin = PathAPIPrefix + "/admin" |
| 10 | PathAdminPrefix = PathAdmin + "/" |
| 11 | PathAdminAuthLogin = PathAdmin + "/auth/login" |
| 12 | PathAdminLogout = PathAdmin + "/auth/logout" |
| 13 | PathAdminAuthStatus = PathAdmin + "/auth/status" |
| 14 | |
| 15 | PathPolicy = PathAPIPrefix + "/policy" |
| 16 | PathPolicyPrefix = PathPolicy + "/" |
| 17 | PathPolicyState = PathPolicy + "/state" |
| 18 | PathPolicyLeases = PathPolicy + "/leases" |
| 19 | PathPolicyIPs = PathPolicy + "/ips" |
| 20 | |
| 21 | PathInstallShell = PathAPIPrefix + "/install.sh" |
| 22 | PathInstallPowerShell = PathAPIPrefix + "/install.ps1" |
| 23 | PathInstallBinPrefix = PathAPIPrefix + "/install/bin/" |
| 24 | |
| 25 | PathX402Facilitator = PathAPIPrefix + "/x402" |
| 26 | X402SupportedPath = PathX402Facilitator + "/supported" |
| 27 | X402VerifyPath = PathX402Facilitator + "/verify" |
| 28 | X402SettlePath = PathX402Facilitator + "/settle" |
| 29 | |
| 30 | PathV1Sign = "/v1/sign" |
| 31 | |
| 32 | PathSDKPrefix = "/sdk" |
| 33 | PathSDKDomain = PathSDKPrefix + "/domain" |
| 34 | PathSDKRegisterChallenge = PathSDKPrefix + "/register/challenge" |
| 35 | PathSDKRegister = PathSDKPrefix + "/register" |
| 36 | PathSDKRenew = PathSDKPrefix + "/renew" |
| 37 | PathSDKUnregister = PathSDKPrefix + "/unregister" |
| 38 | PathSDKHop = PathSDKPrefix + "/hop" |
| 39 | PathSDKConnect = PathSDKPrefix + "/connect" |
| 40 | |
| 41 | PathDiscovery = "/discovery" |
| 42 | PathDiscoveryAnnounce = PathDiscovery + "/announce" |
| 43 | ) |
| 44 | |
| 45 | const ( |
| 46 | X402PreparePath = "/x402/prepare" |
| 47 | X402ClientPath = "/x402/client.js" |
| 48 | |
| 49 | PathAgentPrefix = "/agent" |
| 50 | PathAgentStatus = PathAgentPrefix + "/status" |
| 51 | PathAgentShutdown = PathAgentPrefix + "/shutdown" |
| 52 | PathAgentTunnels = PathAgentPrefix + "/tunnels" |
| 53 | PathAgentTunnelsPrefix = PathAgentPrefix + "/tunnels/" |
| 54 | PathAgentAuthChallenge = PathAgentPrefix + "/auth/challenge" |
| 55 | PathAgentAuthLogin = PathAgentPrefix + "/auth/login" |
| 56 | PathAgentAuthLogout = PathAgentPrefix + "/auth/logout" |
| 57 | PathAgentAuthStatus = PathAgentPrefix + "/auth/status" |
| 58 | ) |