@structured-id/proto 0.0.0-stage → 0.1.1

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 (293) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +56 -0
  4. package/README.md +159 -2
  5. package/dist/generated/google/api/http.d.ts +455 -0
  6. package/dist/generated/google/api/http.js +247 -0
  7. package/dist/generated/google/api/http.js.map +1 -0
  8. package/dist/generated/google/api/httpbody.d.ts +86 -0
  9. package/dist/generated/google/api/httpbody.js +69 -0
  10. package/dist/generated/google/api/httpbody.js.map +1 -0
  11. package/dist/generated/google/protobuf/any.d.ts +124 -0
  12. package/dist/generated/google/protobuf/any.js +152 -0
  13. package/dist/generated/google/protobuf/any.js.map +1 -0
  14. package/dist/generated/google/protobuf/descriptor.d.ts +2506 -0
  15. package/dist/generated/google/protobuf/descriptor.js +3279 -0
  16. package/dist/generated/google/protobuf/descriptor.js.map +1 -0
  17. package/dist/generated/google/protobuf/duration.d.ts +112 -0
  18. package/dist/generated/google/protobuf/duration.js +105 -0
  19. package/dist/generated/google/protobuf/duration.js.map +1 -0
  20. package/dist/generated/google/protobuf/empty.d.ts +31 -0
  21. package/dist/generated/google/protobuf/empty.js +42 -0
  22. package/dist/generated/google/protobuf/empty.js.map +1 -0
  23. package/dist/generated/google/protobuf/struct.d.ts +197 -0
  24. package/dist/generated/google/protobuf/struct.js +343 -0
  25. package/dist/generated/google/protobuf/struct.js.map +1 -0
  26. package/dist/generated/google/protobuf/timestamp.d.ts +156 -0
  27. package/dist/generated/google/protobuf/timestamp.js +133 -0
  28. package/dist/generated/google/protobuf/timestamp.js.map +1 -0
  29. package/dist/generated/google/rpc/error_details.d.ts +653 -0
  30. package/dist/generated/google/rpc/error_details.js +861 -0
  31. package/dist/generated/google/rpc/error_details.js.map +1 -0
  32. package/dist/generated/google/rpc/status.d.ts +54 -0
  33. package/dist/generated/google/rpc/status.js +69 -0
  34. package/dist/generated/google/rpc/status.js.map +1 -0
  35. package/dist/generated/sid/v1/account/account.client.d.ts +404 -0
  36. package/dist/generated/sid/v1/account/account.client.js +282 -0
  37. package/dist/generated/sid/v1/account/account.client.js.map +1 -0
  38. package/dist/generated/sid/v1/account/account.d.ts +1202 -0
  39. package/dist/generated/sid/v1/account/account.js +2561 -0
  40. package/dist/generated/sid/v1/account/account.js.map +1 -0
  41. package/dist/generated/sid/v1/admin/admin.client.d.ts +111 -0
  42. package/dist/generated/sid/v1/admin/admin.client.js +76 -0
  43. package/dist/generated/sid/v1/admin/admin.client.js.map +1 -0
  44. package/dist/generated/sid/v1/admin/admin.d.ts +276 -0
  45. package/dist/generated/sid/v1/admin/admin.js +619 -0
  46. package/dist/generated/sid/v1/admin/admin.js.map +1 -0
  47. package/dist/generated/sid/v1/admin/admin_roles.client.d.ts +137 -0
  48. package/dist/generated/sid/v1/admin/admin_roles.client.js +100 -0
  49. package/dist/generated/sid/v1/admin/admin_roles.client.js.map +1 -0
  50. package/dist/generated/sid/v1/admin/admin_roles.d.ts +639 -0
  51. package/dist/generated/sid/v1/admin/admin_roles.js +1256 -0
  52. package/dist/generated/sid/v1/admin/admin_roles.js.map +1 -0
  53. package/dist/generated/sid/v1/admin/analytics.client.d.ts +88 -0
  54. package/dist/generated/sid/v1/admin/analytics.client.js +60 -0
  55. package/dist/generated/sid/v1/admin/analytics.client.js.map +1 -0
  56. package/dist/generated/sid/v1/admin/analytics.d.ts +387 -0
  57. package/dist/generated/sid/v1/admin/analytics.js +803 -0
  58. package/dist/generated/sid/v1/admin/analytics.js.map +1 -0
  59. package/dist/generated/sid/v1/admin/branding.client.d.ts +139 -0
  60. package/dist/generated/sid/v1/admin/branding.client.js +92 -0
  61. package/dist/generated/sid/v1/admin/branding.client.js.map +1 -0
  62. package/dist/generated/sid/v1/admin/branding.d.ts +699 -0
  63. package/dist/generated/sid/v1/admin/branding.js +1471 -0
  64. package/dist/generated/sid/v1/admin/branding.js.map +1 -0
  65. package/dist/generated/sid/v1/admin/enrollment.client.d.ts +142 -0
  66. package/dist/generated/sid/v1/admin/enrollment.client.js +95 -0
  67. package/dist/generated/sid/v1/admin/enrollment.client.js.map +1 -0
  68. package/dist/generated/sid/v1/admin/enrollment.d.ts +735 -0
  69. package/dist/generated/sid/v1/admin/enrollment.js +1314 -0
  70. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -0
  71. package/dist/generated/sid/v1/admin/events.client.d.ts +139 -0
  72. package/dist/generated/sid/v1/admin/events.client.js +112 -0
  73. package/dist/generated/sid/v1/admin/events.client.js.map +1 -0
  74. package/dist/generated/sid/v1/admin/events.d.ts +725 -0
  75. package/dist/generated/sid/v1/admin/events.js +1463 -0
  76. package/dist/generated/sid/v1/admin/events.js.map +1 -0
  77. package/dist/generated/sid/v1/admin/flow.client.d.ts +157 -0
  78. package/dist/generated/sid/v1/admin/flow.client.js +109 -0
  79. package/dist/generated/sid/v1/admin/flow.client.js.map +1 -0
  80. package/dist/generated/sid/v1/admin/flow.d.ts +629 -0
  81. package/dist/generated/sid/v1/admin/flow.js +1184 -0
  82. package/dist/generated/sid/v1/admin/flow.js.map +1 -0
  83. package/dist/generated/sid/v1/admin/keys.client.d.ts +82 -0
  84. package/dist/generated/sid/v1/admin/keys.client.js +60 -0
  85. package/dist/generated/sid/v1/admin/keys.client.js.map +1 -0
  86. package/dist/generated/sid/v1/admin/keys.d.ts +371 -0
  87. package/dist/generated/sid/v1/admin/keys.js +735 -0
  88. package/dist/generated/sid/v1/admin/keys.js.map +1 -0
  89. package/dist/generated/sid/v1/admin/login_experience.client.d.ts +120 -0
  90. package/dist/generated/sid/v1/admin/login_experience.client.js +85 -0
  91. package/dist/generated/sid/v1/admin/login_experience.client.js.map +1 -0
  92. package/dist/generated/sid/v1/admin/login_experience.d.ts +353 -0
  93. package/dist/generated/sid/v1/admin/login_experience.js +839 -0
  94. package/dist/generated/sid/v1/admin/login_experience.js.map +1 -0
  95. package/dist/generated/sid/v1/admin/migration.client.d.ts +95 -0
  96. package/dist/generated/sid/v1/admin/migration.client.js +68 -0
  97. package/dist/generated/sid/v1/admin/migration.client.js.map +1 -0
  98. package/dist/generated/sid/v1/admin/migration.d.ts +800 -0
  99. package/dist/generated/sid/v1/admin/migration.js +1541 -0
  100. package/dist/generated/sid/v1/admin/migration.js.map +1 -0
  101. package/dist/generated/sid/v1/admin/notifications.client.d.ts +113 -0
  102. package/dist/generated/sid/v1/admin/notifications.client.js +74 -0
  103. package/dist/generated/sid/v1/admin/notifications.client.js.map +1 -0
  104. package/dist/generated/sid/v1/admin/notifications.d.ts +471 -0
  105. package/dist/generated/sid/v1/admin/notifications.js +950 -0
  106. package/dist/generated/sid/v1/admin/notifications.js.map +1 -0
  107. package/dist/generated/sid/v1/admin/operations.client.d.ts +186 -0
  108. package/dist/generated/sid/v1/admin/operations.client.js +146 -0
  109. package/dist/generated/sid/v1/admin/operations.client.js.map +1 -0
  110. package/dist/generated/sid/v1/admin/operations.d.ts +1017 -0
  111. package/dist/generated/sid/v1/admin/operations.js +2051 -0
  112. package/dist/generated/sid/v1/admin/operations.js.map +1 -0
  113. package/dist/generated/sid/v1/admin/organizations.client.d.ts +48 -0
  114. package/dist/generated/sid/v1/admin/organizations.client.js +33 -0
  115. package/dist/generated/sid/v1/admin/organizations.client.js.map +1 -0
  116. package/dist/generated/sid/v1/admin/organizations.d.ts +120 -0
  117. package/dist/generated/sid/v1/admin/organizations.js +259 -0
  118. package/dist/generated/sid/v1/admin/organizations.js.map +1 -0
  119. package/dist/generated/sid/v1/admin/provisioning.client.d.ts +195 -0
  120. package/dist/generated/sid/v1/admin/provisioning.client.js +125 -0
  121. package/dist/generated/sid/v1/admin/provisioning.client.js.map +1 -0
  122. package/dist/generated/sid/v1/admin/provisioning.d.ts +602 -0
  123. package/dist/generated/sid/v1/admin/provisioning.js +1097 -0
  124. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -0
  125. package/dist/generated/sid/v1/admin/scopes.client.d.ts +127 -0
  126. package/dist/generated/sid/v1/admin/scopes.client.js +96 -0
  127. package/dist/generated/sid/v1/admin/scopes.client.js.map +1 -0
  128. package/dist/generated/sid/v1/admin/scopes.d.ts +493 -0
  129. package/dist/generated/sid/v1/admin/scopes.js +1031 -0
  130. package/dist/generated/sid/v1/admin/scopes.js.map +1 -0
  131. package/dist/generated/sid/v1/admin/security.client.d.ts +292 -0
  132. package/dist/generated/sid/v1/admin/security.client.js +218 -0
  133. package/dist/generated/sid/v1/admin/security.client.js.map +1 -0
  134. package/dist/generated/sid/v1/admin/security.d.ts +1549 -0
  135. package/dist/generated/sid/v1/admin/security.js +3184 -0
  136. package/dist/generated/sid/v1/admin/security.js.map +1 -0
  137. package/dist/generated/sid/v1/admin/sessions.client.d.ts +96 -0
  138. package/dist/generated/sid/v1/admin/sessions.client.js +63 -0
  139. package/dist/generated/sid/v1/admin/sessions.client.js.map +1 -0
  140. package/dist/generated/sid/v1/admin/sessions.d.ts +340 -0
  141. package/dist/generated/sid/v1/admin/sessions.js +718 -0
  142. package/dist/generated/sid/v1/admin/sessions.js.map +1 -0
  143. package/dist/generated/sid/v1/admin/settings.client.d.ts +246 -0
  144. package/dist/generated/sid/v1/admin/settings.client.js +199 -0
  145. package/dist/generated/sid/v1/admin/settings.client.js.map +1 -0
  146. package/dist/generated/sid/v1/admin/settings.d.ts +924 -0
  147. package/dist/generated/sid/v1/admin/settings.js +1879 -0
  148. package/dist/generated/sid/v1/admin/settings.js.map +1 -0
  149. package/dist/generated/sid/v1/admin/user_profile.client.d.ts +48 -0
  150. package/dist/generated/sid/v1/admin/user_profile.client.js +33 -0
  151. package/dist/generated/sid/v1/admin/user_profile.client.js.map +1 -0
  152. package/dist/generated/sid/v1/admin/user_profile.d.ts +303 -0
  153. package/dist/generated/sid/v1/admin/user_profile.js +565 -0
  154. package/dist/generated/sid/v1/admin/user_profile.js.map +1 -0
  155. package/dist/generated/sid/v1/admin/webhooks.client.d.ts +207 -0
  156. package/dist/generated/sid/v1/admin/webhooks.client.js +155 -0
  157. package/dist/generated/sid/v1/admin/webhooks.client.js.map +1 -0
  158. package/dist/generated/sid/v1/admin/webhooks.d.ts +1008 -0
  159. package/dist/generated/sid/v1/admin/webhooks.js +2154 -0
  160. package/dist/generated/sid/v1/admin/webhooks.js.map +1 -0
  161. package/dist/generated/sid/v1/attestation/attestation.client.d.ts +93 -0
  162. package/dist/generated/sid/v1/attestation/attestation.client.js +63 -0
  163. package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -0
  164. package/dist/generated/sid/v1/attestation/attestation.d.ts +369 -0
  165. package/dist/generated/sid/v1/attestation/attestation.js +654 -0
  166. package/dist/generated/sid/v1/attestation/attestation.js.map +1 -0
  167. package/dist/generated/sid/v1/authn/auth.client.d.ts +706 -0
  168. package/dist/generated/sid/v1/authn/auth.client.js +490 -0
  169. package/dist/generated/sid/v1/authn/auth.client.js.map +1 -0
  170. package/dist/generated/sid/v1/authn/auth.d.ts +3745 -0
  171. package/dist/generated/sid/v1/authn/auth.js +7046 -0
  172. package/dist/generated/sid/v1/authn/auth.js.map +1 -0
  173. package/dist/generated/sid/v1/authn/flows.client.d.ts +302 -0
  174. package/dist/generated/sid/v1/authn/flows.client.js +240 -0
  175. package/dist/generated/sid/v1/authn/flows.client.js.map +1 -0
  176. package/dist/generated/sid/v1/authn/flows.d.ts +1176 -0
  177. package/dist/generated/sid/v1/authn/flows.js +2527 -0
  178. package/dist/generated/sid/v1/authn/flows.js.map +1 -0
  179. package/dist/generated/sid/v1/authn/issuer.client.d.ts +401 -0
  180. package/dist/generated/sid/v1/authn/issuer.client.js +275 -0
  181. package/dist/generated/sid/v1/authn/issuer.client.js.map +1 -0
  182. package/dist/generated/sid/v1/authn/issuer.d.ts +686 -0
  183. package/dist/generated/sid/v1/authn/issuer.js +1059 -0
  184. package/dist/generated/sid/v1/authn/issuer.js.map +1 -0
  185. package/dist/generated/sid/v1/authn/password_history.client.d.ts +51 -0
  186. package/dist/generated/sid/v1/authn/password_history.client.js +32 -0
  187. package/dist/generated/sid/v1/authn/password_history.client.js.map +1 -0
  188. package/dist/generated/sid/v1/authn/password_history.d.ts +251 -0
  189. package/dist/generated/sid/v1/authn/password_history.js +407 -0
  190. package/dist/generated/sid/v1/authn/password_history.js.map +1 -0
  191. package/dist/generated/sid/v1/authn/system_integration.client.d.ts +67 -0
  192. package/dist/generated/sid/v1/authn/system_integration.client.js +40 -0
  193. package/dist/generated/sid/v1/authn/system_integration.client.js.map +1 -0
  194. package/dist/generated/sid/v1/authn/system_integration.d.ts +97 -0
  195. package/dist/generated/sid/v1/authn/system_integration.js +150 -0
  196. package/dist/generated/sid/v1/authn/system_integration.js.map +1 -0
  197. package/dist/generated/sid/v1/authz/authz.client.d.ts +361 -0
  198. package/dist/generated/sid/v1/authz/authz.client.js +245 -0
  199. package/dist/generated/sid/v1/authz/authz.client.js.map +1 -0
  200. package/dist/generated/sid/v1/authz/authz.d.ts +2585 -0
  201. package/dist/generated/sid/v1/authz/authz.js +4868 -0
  202. package/dist/generated/sid/v1/authz/authz.js.map +1 -0
  203. package/dist/generated/sid/v1/authz/forward_auth.client.d.ts +91 -0
  204. package/dist/generated/sid/v1/authz/forward_auth.client.js +52 -0
  205. package/dist/generated/sid/v1/authz/forward_auth.client.js.map +1 -0
  206. package/dist/generated/sid/v1/authz/forward_auth.d.ts +34 -0
  207. package/dist/generated/sid/v1/authz/forward_auth.js +64 -0
  208. package/dist/generated/sid/v1/authz/forward_auth.js.map +1 -0
  209. package/dist/generated/sid/v1/authz/governance.client.d.ts +77 -0
  210. package/dist/generated/sid/v1/authz/governance.client.js +55 -0
  211. package/dist/generated/sid/v1/authz/governance.client.js.map +1 -0
  212. package/dist/generated/sid/v1/authz/governance.d.ts +345 -0
  213. package/dist/generated/sid/v1/authz/governance.js +658 -0
  214. package/dist/generated/sid/v1/authz/governance.js.map +1 -0
  215. package/dist/generated/sid/v1/common/errors.d.ts +634 -0
  216. package/dist/generated/sid/v1/common/errors.js +662 -0
  217. package/dist/generated/sid/v1/common/errors.js.map +1 -0
  218. package/dist/generated/sid/v1/common/pagination.d.ts +57 -0
  219. package/dist/generated/sid/v1/common/pagination.js +115 -0
  220. package/dist/generated/sid/v1/common/pagination.js.map +1 -0
  221. package/dist/generated/sid/v1/common/transport.d.ts +86 -0
  222. package/dist/generated/sid/v1/common/transport.js +163 -0
  223. package/dist/generated/sid/v1/common/transport.js.map +1 -0
  224. package/dist/generated/sid/v1/common/types.d.ts +58 -0
  225. package/dist/generated/sid/v1/common/types.js +114 -0
  226. package/dist/generated/sid/v1/common/types.js.map +1 -0
  227. package/dist/generated/sid/v1/events/event_stream.client.d.ts +50 -0
  228. package/dist/generated/sid/v1/events/event_stream.client.js +37 -0
  229. package/dist/generated/sid/v1/events/event_stream.client.js.map +1 -0
  230. package/dist/generated/sid/v1/events/event_stream.d.ts +146 -0
  231. package/dist/generated/sid/v1/events/event_stream.js +260 -0
  232. package/dist/generated/sid/v1/events/event_stream.js.map +1 -0
  233. package/dist/generated/sid/v1/federation/upstream.client.d.ts +115 -0
  234. package/dist/generated/sid/v1/federation/upstream.client.js +79 -0
  235. package/dist/generated/sid/v1/federation/upstream.client.js.map +1 -0
  236. package/dist/generated/sid/v1/federation/upstream.d.ts +642 -0
  237. package/dist/generated/sid/v1/federation/upstream.js +1336 -0
  238. package/dist/generated/sid/v1/federation/upstream.js.map +1 -0
  239. package/dist/generated/sid/v1/identity/identity.client.d.ts +371 -0
  240. package/dist/generated/sid/v1/identity/identity.client.js +254 -0
  241. package/dist/generated/sid/v1/identity/identity.client.js.map +1 -0
  242. package/dist/generated/sid/v1/identity/identity.d.ts +2367 -0
  243. package/dist/generated/sid/v1/identity/identity.js +4410 -0
  244. package/dist/generated/sid/v1/identity/identity.js.map +1 -0
  245. package/dist/generated/sid/v1/ids/ids.d.ts +14 -0
  246. package/dist/generated/sid/v1/ids/ids.js +8 -0
  247. package/dist/generated/sid/v1/ids/ids.js.map +1 -0
  248. package/dist/generated/sid/v1/machine/machine_user.client.d.ts +174 -0
  249. package/dist/generated/sid/v1/machine/machine_user.client.js +121 -0
  250. package/dist/generated/sid/v1/machine/machine_user.client.js.map +1 -0
  251. package/dist/generated/sid/v1/machine/machine_user.d.ts +882 -0
  252. package/dist/generated/sid/v1/machine/machine_user.js +1886 -0
  253. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -0
  254. package/dist/generated/sid/v1/machine/pat.client.d.ts +106 -0
  255. package/dist/generated/sid/v1/machine/pat.client.js +72 -0
  256. package/dist/generated/sid/v1/machine/pat.client.js.map +1 -0
  257. package/dist/generated/sid/v1/machine/pat.d.ts +388 -0
  258. package/dist/generated/sid/v1/machine/pat.js +863 -0
  259. package/dist/generated/sid/v1/machine/pat.js.map +1 -0
  260. package/dist/generated/sid/v1/projects/projects.client.d.ts +323 -0
  261. package/dist/generated/sid/v1/projects/projects.client.js +224 -0
  262. package/dist/generated/sid/v1/projects/projects.client.js.map +1 -0
  263. package/dist/generated/sid/v1/projects/projects.d.ts +1767 -0
  264. package/dist/generated/sid/v1/projects/projects.js +3242 -0
  265. package/dist/generated/sid/v1/projects/projects.js.map +1 -0
  266. package/dist/generated/sid/v1/scim/scim.client.d.ts +426 -0
  267. package/dist/generated/sid/v1/scim/scim.client.js +300 -0
  268. package/dist/generated/sid/v1/scim/scim.client.js.map +1 -0
  269. package/dist/generated/sid/v1/scim/scim.d.ts +1129 -0
  270. package/dist/generated/sid/v1/scim/scim.js +2396 -0
  271. package/dist/generated/sid/v1/scim/scim.js.map +1 -0
  272. package/dist/generated/sid/v1/test/test.client.d.ts +189 -0
  273. package/dist/generated/sid/v1/test/test.client.js +129 -0
  274. package/dist/generated/sid/v1/test/test.client.js.map +1 -0
  275. package/dist/generated/sid/v1/test/test.d.ts +413 -0
  276. package/dist/generated/sid/v1/test/test.js +878 -0
  277. package/dist/generated/sid/v1/test/test.js.map +1 -0
  278. package/dist/transport/adaptive.d.ts +72 -0
  279. package/dist/transport/adaptive.js +223 -0
  280. package/dist/transport/adaptive.js.map +1 -0
  281. package/dist/transport/framing.d.ts +33 -0
  282. package/dist/transport/framing.js +81 -0
  283. package/dist/transport/framing.js.map +1 -0
  284. package/dist/transport/index.d.ts +7 -0
  285. package/dist/transport/index.js +8 -0
  286. package/dist/transport/index.js.map +1 -0
  287. package/dist/transport/transport-failure.d.ts +7 -0
  288. package/dist/transport/transport-failure.js +17 -0
  289. package/dist/transport/transport-failure.js.map +1 -0
  290. package/dist/transport/webtransport.d.ts +56 -0
  291. package/dist/transport/webtransport.js +278 -0
  292. package/dist/transport/webtransport.js.map +1 -0
  293. package/package.json +78 -3
@@ -0,0 +1,401 @@
1
+ import type { ProtectedResourceTarget } from "./issuer.js";
2
+ import type { GetProtectedResourceRequest } from "./issuer.js";
3
+ import type { OidcIssuer } from "./issuer.js";
4
+ import type { GetOidcIssuerRequest } from "./issuer.js";
5
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
+ import type { RegistrationRequest } from "./issuer.js";
8
+ import type { EndSessionRequest } from "./issuer.js";
9
+ import type { ProtocolRequest } from "./issuer.js";
10
+ import type { HttpBody } from "../../../google/api/httpbody.js";
11
+ import type { OAuth2AuthorizeRequest } from "./auth.js";
12
+ import type { UserInfo } from "./issuer.js";
13
+ import type { JsonWebKeySet } from "./issuer.js";
14
+ import type { ProviderMetadata } from "./issuer.js";
15
+ import type { IssuerHandleRequest } from "./issuer.js";
16
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
17
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
18
+ /**
19
+ * OidcProviderService publishes one issuer's metadata and signing keys to its
20
+ * relying parties. Every document belongs to the issuer the handle names; an
21
+ * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and
22
+ * never falls back to another issuer. There is no issuer-less document.
23
+ *
24
+ * @generated from protobuf service sid.v1.authn.OidcProviderService
25
+ */
26
+ export interface IOidcProviderServiceClient {
27
+ /**
28
+ * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).
29
+ * One document answers both discovery algorithms: the OIDC location under
30
+ * the issuer path and the RFC 8414 well-known location with the issuer path
31
+ * appended.
32
+ *
33
+ * @generated from protobuf rpc: GetProviderMetadata
34
+ */
35
+ getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata>;
36
+ /**
37
+ * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify
38
+ * its tokens. The response metadata carries `cache-control` for HTTP caches.
39
+ *
40
+ * @generated from protobuf rpc: GetJwks
41
+ */
42
+ getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet>;
43
+ /**
44
+ * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the
45
+ * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof
46
+ * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are
47
+ * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`
48
+ * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST
49
+ * are separate RPCs because a DPoP proof names the request method.
50
+ *
51
+ * @generated from protobuf rpc: GetUserInfo
52
+ */
53
+ getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;
54
+ /**
55
+ * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.
56
+ *
57
+ * @generated from protobuf rpc: PostUserInfo
58
+ */
59
+ postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;
60
+ /**
61
+ * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query
62
+ * parameters bound to the request fields. The answer is an HTTP redirect
63
+ * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to
64
+ * the client's registered redirect URI with `code` or `error`, `state` and
65
+ * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in
66
+ * page with this request to return to. A request whose client or exact
67
+ * redirect URI is not established is answered with a page and never
68
+ * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a
69
+ * gateway holds one, travels in the `authorization` metadata.
70
+ *
71
+ * @generated from protobuf rpc: GetAuthorize
72
+ */
73
+ getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody>;
74
+ /**
75
+ * The authorization endpoint over POST with a form body (OIDC Core 1.0
76
+ * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know
77
+ * are ignored (RFC 6749 §3.1).
78
+ *
79
+ * @generated from protobuf rpc: PostAuthorize
80
+ */
81
+ postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
82
+ /**
83
+ * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The
84
+ * browser's IdP session is read from its `__Host-sid_session` cookie
85
+ * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the
86
+ * application session it names; when that session reuses the browser's
87
+ * IdP session, single sign-on ends too and the answer clears the cookie.
88
+ * Otherwise ending the browser's IdP session needs the user's confirmation
89
+ * (§2): the answer is a page with a form that confirms it by POST. A
90
+ * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`
91
+ * whose client registered exactly that URI (§3): the answer is then a 303
92
+ * to it with `state`, or, while the browser's IdP session remains, the
93
+ * confirmation page, which returns there after either choice. Otherwise the
94
+ * answer is a page.
95
+ *
96
+ * @generated from protobuf rpc: GetEndSession
97
+ */
98
+ getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody>;
99
+ /**
100
+ * RP-Initiated Logout over POST with a form body: the same parameters as
101
+ * GetEndSession, plus `confirmation`, the one-time value of the
102
+ * confirmation page's form, which ends the browser's IdP session it was
103
+ * issued for and returns to the post-logout redirect URI that page was
104
+ * shown for, if any.
105
+ *
106
+ * @generated from protobuf rpc: PostEndSession
107
+ */
108
+ postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
109
+ /**
110
+ * Token endpoint (RFC 6749 §3.2): every grant, including the device_code
111
+ * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with
112
+ * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5
113
+ * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when
114
+ * the client used HTTP Basic, 400 otherwise.
115
+ *
116
+ * @generated from protobuf rpc: Token
117
+ */
118
+ token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
119
+ /**
120
+ * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{"active":false}`
121
+ * for any token this issuer does not vouch for.
122
+ *
123
+ * @generated from protobuf rpc: Introspect
124
+ */
125
+ introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
126
+ /**
127
+ * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token
128
+ * that is unknown or already revoked (RFC 7009 §2.2).
129
+ *
130
+ * @generated from protobuf rpc: Revoke
131
+ */
132
+ revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
133
+ /**
134
+ * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is
135
+ * RFC 6749 §5.2 JSON as at the token endpoint.
136
+ *
137
+ * @generated from protobuf rpc: DeviceAuthorization
138
+ */
139
+ deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
140
+ /**
141
+ * Client registration (RFC 7591 §3.1). Success is 201 with every
142
+ * registered metadata value, the credentials and the management location
143
+ * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with
144
+ * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a
145
+ * missing or invalid initial access token is 401 (RFC 6750 §3.1).
146
+ *
147
+ * @generated from protobuf rpc: Register
148
+ */
149
+ register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
150
+ /**
151
+ * Read a registration (RFC 7592 §2.1): the client's current metadata as at
152
+ * registration, without its secret. An invalid registration access token,
153
+ * or a client this issuer does not have, is 401 (RFC 7592 §2.1).
154
+ *
155
+ * @generated from protobuf rpc: ReadRegistration
156
+ */
157
+ readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
158
+ /**
159
+ * Update a registration (RFC 7592 §2.2): the body replaces the client's
160
+ * metadata and is validated as a registration; a refused update changes
161
+ * nothing.
162
+ *
163
+ * @generated from protobuf rpc: UpdateRegistration
164
+ */
165
+ updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
166
+ /**
167
+ * Delete a registration (RFC 7592 §2.3): 204 with no body.
168
+ *
169
+ * @generated from protobuf rpc: DeleteRegistration
170
+ */
171
+ deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
172
+ }
173
+ /**
174
+ * OidcProviderService publishes one issuer's metadata and signing keys to its
175
+ * relying parties. Every document belongs to the issuer the handle names; an
176
+ * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and
177
+ * never falls back to another issuer. There is no issuer-less document.
178
+ *
179
+ * @generated from protobuf service sid.v1.authn.OidcProviderService
180
+ */
181
+ export declare class OidcProviderServiceClient implements IOidcProviderServiceClient, ServiceInfo {
182
+ private readonly _transport;
183
+ typeName: string;
184
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
185
+ options: {
186
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
187
+ };
188
+ constructor(_transport: RpcTransport);
189
+ /**
190
+ * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).
191
+ * One document answers both discovery algorithms: the OIDC location under
192
+ * the issuer path and the RFC 8414 well-known location with the issuer path
193
+ * appended.
194
+ *
195
+ * @generated from protobuf rpc: GetProviderMetadata
196
+ */
197
+ getProviderMetadata(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, ProviderMetadata>;
198
+ /**
199
+ * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify
200
+ * its tokens. The response metadata carries `cache-control` for HTTP caches.
201
+ *
202
+ * @generated from protobuf rpc: GetJwks
203
+ */
204
+ getJwks(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, JsonWebKeySet>;
205
+ /**
206
+ * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the
207
+ * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof
208
+ * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are
209
+ * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`
210
+ * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST
211
+ * are separate RPCs because a DPoP proof names the request method.
212
+ *
213
+ * @generated from protobuf rpc: GetUserInfo
214
+ */
215
+ getUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;
216
+ /**
217
+ * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.
218
+ *
219
+ * @generated from protobuf rpc: PostUserInfo
220
+ */
221
+ postUserInfo(input: IssuerHandleRequest, options?: RpcOptions): UnaryCall<IssuerHandleRequest, UserInfo>;
222
+ /**
223
+ * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query
224
+ * parameters bound to the request fields. The answer is an HTTP redirect
225
+ * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to
226
+ * the client's registered redirect URI with `code` or `error`, `state` and
227
+ * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in
228
+ * page with this request to return to. A request whose client or exact
229
+ * redirect URI is not established is answered with a page and never
230
+ * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a
231
+ * gateway holds one, travels in the `authorization` metadata.
232
+ *
233
+ * @generated from protobuf rpc: GetAuthorize
234
+ */
235
+ getAuthorize(input: OAuth2AuthorizeRequest, options?: RpcOptions): UnaryCall<OAuth2AuthorizeRequest, HttpBody>;
236
+ /**
237
+ * The authorization endpoint over POST with a form body (OIDC Core 1.0
238
+ * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know
239
+ * are ignored (RFC 6749 §3.1).
240
+ *
241
+ * @generated from protobuf rpc: PostAuthorize
242
+ */
243
+ postAuthorize(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
244
+ /**
245
+ * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The
246
+ * browser's IdP session is read from its `__Host-sid_session` cookie
247
+ * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the
248
+ * application session it names; when that session reuses the browser's
249
+ * IdP session, single sign-on ends too and the answer clears the cookie.
250
+ * Otherwise ending the browser's IdP session needs the user's confirmation
251
+ * (§2): the answer is a page with a form that confirms it by POST. A
252
+ * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`
253
+ * whose client registered exactly that URI (§3): the answer is then a 303
254
+ * to it with `state`, or, while the browser's IdP session remains, the
255
+ * confirmation page, which returns there after either choice. Otherwise the
256
+ * answer is a page.
257
+ *
258
+ * @generated from protobuf rpc: GetEndSession
259
+ */
260
+ getEndSession(input: EndSessionRequest, options?: RpcOptions): UnaryCall<EndSessionRequest, HttpBody>;
261
+ /**
262
+ * RP-Initiated Logout over POST with a form body: the same parameters as
263
+ * GetEndSession, plus `confirmation`, the one-time value of the
264
+ * confirmation page's form, which ends the browser's IdP session it was
265
+ * issued for and returns to the post-logout redirect URI that page was
266
+ * shown for, if any.
267
+ *
268
+ * @generated from protobuf rpc: PostEndSession
269
+ */
270
+ postEndSession(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
271
+ /**
272
+ * Token endpoint (RFC 6749 §3.2): every grant, including the device_code
273
+ * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with
274
+ * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5
275
+ * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when
276
+ * the client used HTTP Basic, 400 otherwise.
277
+ *
278
+ * @generated from protobuf rpc: Token
279
+ */
280
+ token(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
281
+ /**
282
+ * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{"active":false}`
283
+ * for any token this issuer does not vouch for.
284
+ *
285
+ * @generated from protobuf rpc: Introspect
286
+ */
287
+ introspect(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
288
+ /**
289
+ * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token
290
+ * that is unknown or already revoked (RFC 7009 §2.2).
291
+ *
292
+ * @generated from protobuf rpc: Revoke
293
+ */
294
+ revoke(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
295
+ /**
296
+ * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is
297
+ * RFC 6749 §5.2 JSON as at the token endpoint.
298
+ *
299
+ * @generated from protobuf rpc: DeviceAuthorization
300
+ */
301
+ deviceAuthorization(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
302
+ /**
303
+ * Client registration (RFC 7591 §3.1). Success is 201 with every
304
+ * registered metadata value, the credentials and the management location
305
+ * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with
306
+ * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a
307
+ * missing or invalid initial access token is 401 (RFC 6750 §3.1).
308
+ *
309
+ * @generated from protobuf rpc: Register
310
+ */
311
+ register(input: ProtocolRequest, options?: RpcOptions): UnaryCall<ProtocolRequest, HttpBody>;
312
+ /**
313
+ * Read a registration (RFC 7592 §2.1): the client's current metadata as at
314
+ * registration, without its secret. An invalid registration access token,
315
+ * or a client this issuer does not have, is 401 (RFC 7592 §2.1).
316
+ *
317
+ * @generated from protobuf rpc: ReadRegistration
318
+ */
319
+ readRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
320
+ /**
321
+ * Update a registration (RFC 7592 §2.2): the body replaces the client's
322
+ * metadata and is validated as a registration; a refused update changes
323
+ * nothing.
324
+ *
325
+ * @generated from protobuf rpc: UpdateRegistration
326
+ */
327
+ updateRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
328
+ /**
329
+ * Delete a registration (RFC 7592 §2.3): 204 with no body.
330
+ *
331
+ * @generated from protobuf rpc: DeleteRegistration
332
+ */
333
+ deleteRegistration(input: RegistrationRequest, options?: RpcOptions): UnaryCall<RegistrationRequest, HttpBody>;
334
+ }
335
+ /**
336
+ * OidcIssuerService lets services that verify an issuer's tokens resolve the
337
+ * issuer and its keys by handle, and the registered resource a token must be
338
+ * issued for.
339
+ *
340
+ * Internal only, no HTTP annotation: relying parties use OidcProviderService.
341
+ *
342
+ * @generated from protobuf service sid.v1.authn.OidcIssuerService
343
+ */
344
+ export interface IOidcIssuerServiceClient {
345
+ /**
346
+ * Look up an issuer by handle. An unknown handle is NOT_FOUND with
347
+ * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the
348
+ * handle; the caller refuses the request and never falls back to another
349
+ * issuer.
350
+ *
351
+ * @generated from protobuf rpc: GetOidcIssuer
352
+ */
353
+ getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer>;
354
+ /**
355
+ * Resolve the protected resource a route of the ingress configuration names
356
+ * before a token is accepted for it. The resource must be registered under
357
+ * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo
358
+ * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The
359
+ * caller refuses the route and never falls back to another target.
360
+ *
361
+ * @generated from protobuf rpc: GetProtectedResource
362
+ */
363
+ getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;
364
+ }
365
+ /**
366
+ * OidcIssuerService lets services that verify an issuer's tokens resolve the
367
+ * issuer and its keys by handle, and the registered resource a token must be
368
+ * issued for.
369
+ *
370
+ * Internal only, no HTTP annotation: relying parties use OidcProviderService.
371
+ *
372
+ * @generated from protobuf service sid.v1.authn.OidcIssuerService
373
+ */
374
+ export declare class OidcIssuerServiceClient implements IOidcIssuerServiceClient, ServiceInfo {
375
+ private readonly _transport;
376
+ typeName: string;
377
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
378
+ options: {
379
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
380
+ };
381
+ constructor(_transport: RpcTransport);
382
+ /**
383
+ * Look up an issuer by handle. An unknown handle is NOT_FOUND with
384
+ * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the
385
+ * handle; the caller refuses the request and never falls back to another
386
+ * issuer.
387
+ *
388
+ * @generated from protobuf rpc: GetOidcIssuer
389
+ */
390
+ getOidcIssuer(input: GetOidcIssuerRequest, options?: RpcOptions): UnaryCall<GetOidcIssuerRequest, OidcIssuer>;
391
+ /**
392
+ * Resolve the protected resource a route of the ingress configuration names
393
+ * before a token is accepted for it. The resource must be registered under
394
+ * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo
395
+ * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The
396
+ * caller refuses the route and never falls back to another target.
397
+ *
398
+ * @generated from protobuf rpc: GetProtectedResource
399
+ */
400
+ getProtectedResource(input: GetProtectedResourceRequest, options?: RpcOptions): UnaryCall<GetProtectedResourceRequest, ProtectedResourceTarget>;
401
+ }
@@ -0,0 +1,275 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
2
+ // @generated from protobuf file "sid/v1/authn/issuer.proto" (package "sid.v1.authn", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import { OidcIssuerService } from "./issuer.js";
6
+ import { OidcProviderService } from "./issuer.js";
7
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
8
+ /**
9
+ * OidcProviderService publishes one issuer's metadata and signing keys to its
10
+ * relying parties. Every document belongs to the issuer the handle names; an
11
+ * unknown handle is NOT_FOUND with ErrorInfo reason OIDC_ISSUER_NOT_FOUND and
12
+ * never falls back to another issuer. There is no issuer-less document.
13
+ *
14
+ * @generated from protobuf service sid.v1.authn.OidcProviderService
15
+ */
16
+ export class OidcProviderServiceClient {
17
+ _transport;
18
+ typeName = OidcProviderService.typeName;
19
+ methods = OidcProviderService.methods;
20
+ options = OidcProviderService.options;
21
+ constructor(_transport) {
22
+ this._transport = _transport;
23
+ }
24
+ /**
25
+ * The issuer's metadata (OpenID Connect Discovery 1.0 §3–4, RFC 8414 §2–3).
26
+ * One document answers both discovery algorithms: the OIDC location under
27
+ * the issuer path and the RFC 8414 well-known location with the issuer path
28
+ * appended.
29
+ *
30
+ * @generated from protobuf rpc: GetProviderMetadata
31
+ */
32
+ getProviderMetadata(input, options) {
33
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
34
+ return stackIntercept("unary", this._transport, method, opt, input);
35
+ }
36
+ /**
37
+ * The issuer's JSON Web Key Set (RFC 7517 §5): the public keys that verify
38
+ * its tokens. The response metadata carries `cache-control` for HTTP caches.
39
+ *
40
+ * @generated from protobuf rpc: GetJwks
41
+ */
42
+ getJwks(input, options) {
43
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
44
+ return stackIntercept("unary", this._transport, method, opt, input);
45
+ }
46
+ /**
47
+ * UserInfo (OIDC Core 1.0 §5.3) over GET. The access token travels in the
48
+ * `authorization` metadata, `Bearer` (RFC 6750 §2.1) or `DPoP` with a proof
49
+ * in the `dpop` metadata (RFC 9449 §7.1); only tokens this issuer signed are
50
+ * accepted. A refused token is UNAUTHENTICATED with a `www-authenticate`
51
+ * response metadata challenge (RFC 6750 §3, RFC 9449 §7.1). GET and POST
52
+ * are separate RPCs because a DPoP proof names the request method.
53
+ *
54
+ * @generated from protobuf rpc: GetUserInfo
55
+ */
56
+ getUserInfo(input, options) {
57
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
58
+ return stackIntercept("unary", this._transport, method, opt, input);
59
+ }
60
+ /**
61
+ * UserInfo over POST (OIDC Core 1.0 §5.3.1); the same answer as GetUserInfo.
62
+ *
63
+ * @generated from protobuf rpc: PostUserInfo
64
+ */
65
+ postUserInfo(input, options) {
66
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
67
+ return stackIntercept("unary", this._transport, method, opt, input);
68
+ }
69
+ /**
70
+ * The browser authorization endpoint (RFC 6749 §3.1) over GET, the query
71
+ * parameters bound to the request fields. The answer is an HTTP redirect
72
+ * (`x-http-code` 303 and `location` response metadata, RFC 9700 §4.11): to
73
+ * the client's registered redirect URI with `code` or `error`, `state` and
74
+ * `iss` (RFC 9207 §2), or, when the user must sign in first, to the sign-in
75
+ * page with this request to return to. A request whose client or exact
76
+ * redirect URI is not established is answered with a page and never
77
+ * redirected (RFC 6749 §4.1.2.1). The signed-in user's token, when a
78
+ * gateway holds one, travels in the `authorization` metadata.
79
+ *
80
+ * @generated from protobuf rpc: GetAuthorize
81
+ */
82
+ getAuthorize(input, options) {
83
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
84
+ return stackIntercept("unary", this._transport, method, opt, input);
85
+ }
86
+ /**
87
+ * The authorization endpoint over POST with a form body (OIDC Core 1.0
88
+ * §3.1.2.1); the same answer as GetAuthorize. Parameters it does not know
89
+ * are ignored (RFC 6749 §3.1).
90
+ *
91
+ * @generated from protobuf rpc: PostAuthorize
92
+ */
93
+ postAuthorize(input, options) {
94
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
95
+ return stackIntercept("unary", this._transport, method, opt, input);
96
+ }
97
+ /**
98
+ * RP-Initiated Logout (OIDC RP-Initiated Logout 1.0 §2) over GET. The
99
+ * browser's IdP session is read from its `__Host-sid_session` cookie
100
+ * (`cookie` metadata). A valid `id_token_hint` of this issuer ends the
101
+ * application session it names; when that session reuses the browser's
102
+ * IdP session, single sign-on ends too and the answer clears the cookie.
103
+ * Otherwise ending the browser's IdP session needs the user's confirmation
104
+ * (§2): the answer is a page with a form that confirms it by POST. A
105
+ * `post_logout_redirect_uri` is followed only for a valid `id_token_hint`
106
+ * whose client registered exactly that URI (§3): the answer is then a 303
107
+ * to it with `state`, or, while the browser's IdP session remains, the
108
+ * confirmation page, which returns there after either choice. Otherwise the
109
+ * answer is a page.
110
+ *
111
+ * @generated from protobuf rpc: GetEndSession
112
+ */
113
+ getEndSession(input, options) {
114
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
115
+ return stackIntercept("unary", this._transport, method, opt, input);
116
+ }
117
+ /**
118
+ * RP-Initiated Logout over POST with a form body: the same parameters as
119
+ * GetEndSession, plus `confirmation`, the one-time value of the
120
+ * confirmation page's form, which ends the browser's IdP session it was
121
+ * issued for and returns to the post-logout redirect URI that page was
122
+ * shown for, if any.
123
+ *
124
+ * @generated from protobuf rpc: PostEndSession
125
+ */
126
+ postEndSession(input, options) {
127
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
128
+ return stackIntercept("unary", this._transport, method, opt, input);
129
+ }
130
+ // The endpoints below are the HTTP form of AuthService's OAuth RPCs, with
131
+ // the same logic: the request body is the `application/x-www-form-urlencoded`
132
+ // form the RFC defines, the answer is the RFC's JSON with its HTTP status in
133
+ // the `x-http-code` response metadata and its headers (`cache-control`,
134
+ // `pragma`, `www-authenticate`) as response metadata. A refusal is an OK
135
+ // gRPC call carrying the RFC error body; typed gRPC clients use AuthService.
136
+ // HTTP Basic client authentication travels in the `authorization` metadata,
137
+ // a DPoP proof in `dpop`.
138
+ /**
139
+ * Token endpoint (RFC 6749 §3.2): every grant, including the device_code
140
+ * grant (RFC 8628 §3.4). Success is RFC 6749 §5.1 JSON with
141
+ * `cache-control: no-store`; a refusal is RFC 6749 §5.2 or RFC 8628 §3.5
142
+ * JSON, 401 with a `www-authenticate` challenge for `invalid_client` when
143
+ * the client used HTTP Basic, 400 otherwise.
144
+ *
145
+ * @generated from protobuf rpc: Token
146
+ */
147
+ token(input, options) {
148
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
149
+ return stackIntercept("unary", this._transport, method, opt, input);
150
+ }
151
+ /**
152
+ * Token introspection (RFC 7662 §2): RFC 7662 §2.2 JSON, `{"active":false}`
153
+ * for any token this issuer does not vouch for.
154
+ *
155
+ * @generated from protobuf rpc: Introspect
156
+ */
157
+ introspect(input, options) {
158
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
159
+ return stackIntercept("unary", this._transport, method, opt, input);
160
+ }
161
+ /**
162
+ * Token revocation (RFC 7009 §2): 200 with an empty body, also for a token
163
+ * that is unknown or already revoked (RFC 7009 §2.2).
164
+ *
165
+ * @generated from protobuf rpc: Revoke
166
+ */
167
+ revoke(input, options) {
168
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
169
+ return stackIntercept("unary", this._transport, method, opt, input);
170
+ }
171
+ /**
172
+ * Device authorization (RFC 8628 §3.1): RFC 8628 §3.2 JSON; a refusal is
173
+ * RFC 6749 §5.2 JSON as at the token endpoint.
174
+ *
175
+ * @generated from protobuf rpc: DeviceAuthorization
176
+ */
177
+ deviceAuthorization(input, options) {
178
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
179
+ return stackIntercept("unary", this._transport, method, opt, input);
180
+ }
181
+ // The registration endpoints below are the HTTP form of ProjectService's
182
+ // dynamic registration RPCs, with the same logic. Bodies are
183
+ // `application/json` client metadata (RFC 7591 §2); the initial access
184
+ // token or registration access token travels as a bearer token in the
185
+ // `authorization` metadata. A refusal is an OK gRPC call carrying the RFC
186
+ // error body with its HTTP status in `x-http-code`.
187
+ /**
188
+ * Client registration (RFC 7591 §3.1). Success is 201 with every
189
+ * registered metadata value, the credentials and the management location
190
+ * (RFC 7591 §3.2.1, RFC 7592 §3); invalid metadata is 400 with
191
+ * `invalid_client_metadata` or `invalid_redirect_uri` (RFC 7591 §3.2.2); a
192
+ * missing or invalid initial access token is 401 (RFC 6750 §3.1).
193
+ *
194
+ * @generated from protobuf rpc: Register
195
+ */
196
+ register(input, options) {
197
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
198
+ return stackIntercept("unary", this._transport, method, opt, input);
199
+ }
200
+ /**
201
+ * Read a registration (RFC 7592 §2.1): the client's current metadata as at
202
+ * registration, without its secret. An invalid registration access token,
203
+ * or a client this issuer does not have, is 401 (RFC 7592 §2.1).
204
+ *
205
+ * @generated from protobuf rpc: ReadRegistration
206
+ */
207
+ readRegistration(input, options) {
208
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
209
+ return stackIntercept("unary", this._transport, method, opt, input);
210
+ }
211
+ /**
212
+ * Update a registration (RFC 7592 §2.2): the body replaces the client's
213
+ * metadata and is validated as a registration; a refused update changes
214
+ * nothing.
215
+ *
216
+ * @generated from protobuf rpc: UpdateRegistration
217
+ */
218
+ updateRegistration(input, options) {
219
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
220
+ return stackIntercept("unary", this._transport, method, opt, input);
221
+ }
222
+ /**
223
+ * Delete a registration (RFC 7592 §2.3): 204 with no body.
224
+ *
225
+ * @generated from protobuf rpc: DeleteRegistration
226
+ */
227
+ deleteRegistration(input, options) {
228
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
229
+ return stackIntercept("unary", this._transport, method, opt, input);
230
+ }
231
+ }
232
+ /**
233
+ * OidcIssuerService lets services that verify an issuer's tokens resolve the
234
+ * issuer and its keys by handle, and the registered resource a token must be
235
+ * issued for.
236
+ *
237
+ * Internal only, no HTTP annotation: relying parties use OidcProviderService.
238
+ *
239
+ * @generated from protobuf service sid.v1.authn.OidcIssuerService
240
+ */
241
+ export class OidcIssuerServiceClient {
242
+ _transport;
243
+ typeName = OidcIssuerService.typeName;
244
+ methods = OidcIssuerService.methods;
245
+ options = OidcIssuerService.options;
246
+ constructor(_transport) {
247
+ this._transport = _transport;
248
+ }
249
+ /**
250
+ * Look up an issuer by handle. An unknown handle is NOT_FOUND with
251
+ * ErrorInfo reason OIDC_ISSUER_NOT_FOUND and a ResourceInfo naming the
252
+ * handle; the caller refuses the request and never falls back to another
253
+ * issuer.
254
+ *
255
+ * @generated from protobuf rpc: GetOidcIssuer
256
+ */
257
+ getOidcIssuer(input, options) {
258
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
259
+ return stackIntercept("unary", this._transport, method, opt, input);
260
+ }
261
+ /**
262
+ * Resolve the protected resource a route of the ingress configuration names
263
+ * before a token is accepted for it. The resource must be registered under
264
+ * this issuer: an unknown issuer or indicator is NOT_FOUND with ErrorInfo
265
+ * reason RESOURCE_NOT_FOUND and a ResourceInfo naming the indicator. The
266
+ * caller refuses the route and never falls back to another target.
267
+ *
268
+ * @generated from protobuf rpc: GetProtectedResource
269
+ */
270
+ getProtectedResource(input, options) {
271
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
272
+ return stackIntercept("unary", this._transport, method, opt, input);
273
+ }
274
+ }
275
+ //# sourceMappingURL=issuer.client.js.map