@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 @@
1
+ {"version":3,"file":"password_history.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/password_history.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,8GAA8G;AAC9G,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAyKpD,2FAA2F;AAC3F,MAAM,2BAA4B,SAAQ,WAAmC;IACzE;QACI,KAAK,CAAC,qCAAqC,EAAE;YACzC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE;YAC9E,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,oBAAoB,EAAE;YAC3E,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,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,2BAA2B;QAC3B,IAAI,OAAO,CAAC,SAAS,CAAC,MAAM;YACxB,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACrE,mCAAmC;QACnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE;YAC7C,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,IAAI,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,8BAA8B,EAAE,CAAC;AAC9E;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,WAAW,CAAC,8CAA8C,EAAE;IAC3G,EAAE,IAAI,EAAE,yBAAyB,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,oCAAoC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,8BAA8B,EAAE,CAAC,EAAE,+BAA+B,EAAE;CACnO,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/password_history.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\nimport { PasswordOperationId } from \"../ids/ids.js\";\n/**\n * What a client needs to build its history request and proof for one\n * password operation. Returned by the step that prepares the operation\n * (registration start, password-change challenge, password-reset verification).\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryContext\n */\nexport interface PasswordHistoryContext {\n /**\n * The operation this context belongs to. Every later step of the operation\n * (evaluation, OPAQUE start, finish) and every retry carries it. Issued by\n * the server when it prepares the operation.\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The owner's history input domain: 32 bytes, a Pallas base-field element in\n * little-endian canonical form. The client hashes the password under it into\n * the history input it blinds. Server-derived from the credential owner;\n * opaque to the client and unlinkable across installations and owners.\n *\n * @generated from protobuf field: bytes owner_domain = 2\n */\n ownerDomain: Uint8Array;\n /**\n * The comparison domains the operation must produce a tag for, in the order\n * the evaluations and the proof's tags follow. Server-selected from the\n * owner's retained history; at least one. The client cannot omit or reorder\n * one: the proof commits to this list.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryDomain domains = 3\n */\n domains: PasswordHistoryDomain[];\n /**\n * Password policy version the registration proof must be made for; the\n * verifying key of that version and domain count checks it.\n *\n * @generated from protobuf field: uint32 policy_version = 4\n */\n policyVersion: number;\n}\n/**\n * One comparison domain: the epoch, key and format under which a tag is\n * compared with the entries retained in it.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryDomain\n */\nexport interface PasswordHistoryDomain {\n /**\n * The domain element: 32 bytes, a Pallas base-field element in little-endian\n * canonical form. Enters the tag derivation, so tags of different domains\n * never compare equal.\n *\n * @generated from protobuf field: bytes comparison_domain = 1\n */\n comparisonDomain: Uint8Array;\n /**\n * The evaluator's public key for this domain, k·G: a compressed Pallas point,\n * 32 bytes. The client checks each evaluation proof against it before\n * proving, so a wrong or missing key fails before the costly proof.\n *\n * @generated from protobuf field: bytes evaluator_public_key = 2\n */\n evaluatorPublicKey: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryRequest\n */\nexport interface EvaluatePasswordHistoryRequest {\n /**\n * The operation whose required domains are evaluated (from PasswordHistoryContext).\n *\n * @generated from protobuf field: sid.v1.ids.PasswordOperationId operation_id = 1\n */\n operationId?: PasswordOperationId;\n /**\n * The blinded history input B = r·H(u): a compressed Pallas point, 32 bytes,\n * not the identity. Client-computed from the password under the operation's\n * owner domain with a fresh nonzero blind r; reveals nothing about the password.\n *\n * @generated from protobuf field: bytes blinded_input = 2\n */\n blindedInput: Uint8Array;\n}\n/**\n * @generated from protobuf message sid.v1.authn.EvaluatePasswordHistoryResponse\n */\nexport interface EvaluatePasswordHistoryResponse {\n /**\n * One evaluation per required comparison domain, in the order of\n * PasswordHistoryContext.domains. Either all are present or the call fails.\n *\n * @generated from protobuf field: repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1\n */\n evaluations: PasswordHistoryEvaluation[];\n}\n/**\n * The evaluator's answer for one comparison domain.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluation\n */\nexport interface PasswordHistoryEvaluation {\n /**\n * Z = k·B under this domain's key: a compressed Pallas point, 32 bytes.\n *\n * @generated from protobuf field: bytes evaluated_element = 1\n */\n evaluatedElement: Uint8Array;\n /**\n * Proof that Z uses the key behind this domain's evaluator_public_key\n * (Chaum-Pedersen DLEQ, RFC 9497 §2.2), bound to the operation.\n *\n * @generated from protobuf field: sid.v1.authn.PasswordHistoryEvaluationProof proof = 2\n */\n proof?: PasswordHistoryEvaluationProof;\n}\n/**\n * Chaum-Pedersen proof of log_G(pk) = log_B(Z). Each domain has its own key,\n * so each evaluation carries its own proof.\n *\n * @generated from protobuf message sid.v1.authn.PasswordHistoryEvaluationProof\n */\nexport interface PasswordHistoryEvaluationProof {\n /**\n * Challenge c: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes challenge = 1\n */\n challenge: Uint8Array;\n /**\n * Response s = nonce − c·k: a Pallas scalar, 32 bytes little-endian.\n *\n * @generated from protobuf field: bytes response = 2\n */\n response: Uint8Array;\n}\n/**\n * A registration proof for the password being installed: its policy, breach\n * and history relation, and that the operation's OPAQUE registration element\n * is the blinded hash of that password. The operation ID and the registration\n * request bytes enter the proof transcript, so it verifies for no other\n * operation or request. Sent with the final registration record, where the\n * history checker verifies it and commits the credential. Absent when the\n * client cannot prove; the credential then installs policy-unverified and does\n * not advance trusted history.\n *\n * @generated from protobuf message sid.v1.authn.PasswordRegistrationProof\n */\nexport interface PasswordRegistrationProof {\n /**\n * Halo2 proof bytes. Client-generated with the OPAQUE registration request.\n *\n * @generated from protobuf field: bytes zkpp_proof = 1\n */\n zkppProof: Uint8Array;\n /**\n * The proof's public instances, 32 bytes each (Pallas base field,\n * little-endian): the OPAQUE registration element M = blind·H(P) (x, y), the\n * owner domain, the comparison domains, the blinded history input (x, y), and\n * per domain the evaluated element (x, y) and the tag. The server checks each\n * against the operation and its registration request; none is accepted from\n * the client on trust.\n *\n * @generated from protobuf field: repeated bytes instances = 2\n */\n instances: Uint8Array[];\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryContext$Type extends MessageType<PasswordHistoryContext> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryContext\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"owner_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 3, name: \"domains\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryDomain },\n { no: 4, name: \"policy_version\", kind: \"scalar\", T: 13 /*ScalarType.UINT32*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryContext>): PasswordHistoryContext {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.ownerDomain = new Uint8Array(0);\n message.domains = [];\n message.policyVersion = 0;\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryContext>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryContext): PasswordHistoryContext {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes owner_domain */ 2:\n message.ownerDomain = reader.bytes();\n break;\n case /* repeated sid.v1.authn.PasswordHistoryDomain domains */ 3:\n message.domains.push(PasswordHistoryDomain.internalBinaryRead(reader, reader.uint32(), options));\n break;\n case /* uint32 policy_version */ 4:\n message.policyVersion = reader.uint32();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PasswordHistoryContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes owner_domain = 2; */\n if (message.ownerDomain.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.ownerDomain);\n /* repeated sid.v1.authn.PasswordHistoryDomain domains = 3; */\n for (let i = 0; i < message.domains.length; i++)\n PasswordHistoryDomain.internalBinaryWrite(message.domains[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();\n /* uint32 policy_version = 4; */\n if (message.policyVersion !== 0)\n writer.tag(4, WireType.Varint).uint32(message.policyVersion);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryContext\n */\nexport const PasswordHistoryContext = new PasswordHistoryContext$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryDomain$Type extends MessageType<PasswordHistoryDomain> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryDomain\", [\n { no: 1, name: \"comparison_domain\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"evaluator_public_key\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryDomain>): PasswordHistoryDomain {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.comparisonDomain = new Uint8Array(0);\n message.evaluatorPublicKey = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryDomain>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryDomain): PasswordHistoryDomain {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes comparison_domain */ 1:\n message.comparisonDomain = reader.bytes();\n break;\n case /* bytes evaluator_public_key */ 2:\n message.evaluatorPublicKey = reader.bytes();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PasswordHistoryDomain, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes comparison_domain = 1; */\n if (message.comparisonDomain.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.comparisonDomain);\n /* bytes evaluator_public_key = 2; */\n if (message.evaluatorPublicKey.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.evaluatorPublicKey);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryDomain\n */\nexport const PasswordHistoryDomain = new PasswordHistoryDomain$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryRequest$Type extends MessageType<EvaluatePasswordHistoryRequest> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryRequest\", [\n { no: 1, name: \"operation_id\", kind: \"message\", T: () => PasswordOperationId },\n { no: 2, name: \"blinded_input\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryRequest>): EvaluatePasswordHistoryRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.blindedInput = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryRequest): EvaluatePasswordHistoryRequest {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* sid.v1.ids.PasswordOperationId operation_id */ 1:\n message.operationId = PasswordOperationId.internalBinaryRead(reader, reader.uint32(), options, message.operationId);\n break;\n case /* bytes blinded_input */ 2:\n message.blindedInput = reader.bytes();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: EvaluatePasswordHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* sid.v1.ids.PasswordOperationId operation_id = 1; */\n if (message.operationId)\n PasswordOperationId.internalBinaryWrite(message.operationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n /* bytes blinded_input = 2; */\n if (message.blindedInput.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.blindedInput);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.EvaluatePasswordHistoryRequest\n */\nexport const EvaluatePasswordHistoryRequest = new EvaluatePasswordHistoryRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass EvaluatePasswordHistoryResponse$Type extends MessageType<EvaluatePasswordHistoryResponse> {\n constructor() {\n super(\"sid.v1.authn.EvaluatePasswordHistoryResponse\", [\n { no: 1, name: \"evaluations\", kind: \"message\", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PasswordHistoryEvaluation }\n ]);\n }\n create(value?: PartialMessage<EvaluatePasswordHistoryResponse>): EvaluatePasswordHistoryResponse {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluations = [];\n if (value !== undefined)\n reflectionMergePartial<EvaluatePasswordHistoryResponse>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EvaluatePasswordHistoryResponse): EvaluatePasswordHistoryResponse {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations */ 1:\n message.evaluations.push(PasswordHistoryEvaluation.internalBinaryRead(reader, reader.uint32(), options));\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: EvaluatePasswordHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* repeated sid.v1.authn.PasswordHistoryEvaluation evaluations = 1; */\n for (let i = 0; i < message.evaluations.length; i++)\n PasswordHistoryEvaluation.internalBinaryWrite(message.evaluations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.EvaluatePasswordHistoryResponse\n */\nexport const EvaluatePasswordHistoryResponse = new EvaluatePasswordHistoryResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluation$Type extends MessageType<PasswordHistoryEvaluation> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluation\", [\n { no: 1, name: \"evaluated_element\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"proof\", kind: \"message\", T: () => PasswordHistoryEvaluationProof }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluation>): PasswordHistoryEvaluation {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.evaluatedElement = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluation>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluation): PasswordHistoryEvaluation {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes evaluated_element */ 1:\n message.evaluatedElement = reader.bytes();\n break;\n case /* sid.v1.authn.PasswordHistoryEvaluationProof proof */ 2:\n message.proof = PasswordHistoryEvaluationProof.internalBinaryRead(reader, reader.uint32(), options, message.proof);\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PasswordHistoryEvaluation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes evaluated_element = 1; */\n if (message.evaluatedElement.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.evaluatedElement);\n /* sid.v1.authn.PasswordHistoryEvaluationProof proof = 2; */\n if (message.proof)\n PasswordHistoryEvaluationProof.internalBinaryWrite(message.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryEvaluation\n */\nexport const PasswordHistoryEvaluation = new PasswordHistoryEvaluation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordHistoryEvaluationProof$Type extends MessageType<PasswordHistoryEvaluationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordHistoryEvaluationProof\", [\n { no: 1, name: \"challenge\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"response\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordHistoryEvaluationProof>): PasswordHistoryEvaluationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.challenge = new Uint8Array(0);\n message.response = new Uint8Array(0);\n if (value !== undefined)\n reflectionMergePartial<PasswordHistoryEvaluationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordHistoryEvaluationProof): PasswordHistoryEvaluationProof {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes challenge */ 1:\n message.challenge = reader.bytes();\n break;\n case /* bytes response */ 2:\n message.response = reader.bytes();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PasswordHistoryEvaluationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes challenge = 1; */\n if (message.challenge.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.challenge);\n /* bytes response = 2; */\n if (message.response.length)\n writer.tag(2, WireType.LengthDelimited).bytes(message.response);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.PasswordHistoryEvaluationProof\n */\nexport const PasswordHistoryEvaluationProof = new PasswordHistoryEvaluationProof$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PasswordRegistrationProof$Type extends MessageType<PasswordRegistrationProof> {\n constructor() {\n super(\"sid.v1.authn.PasswordRegistrationProof\", [\n { no: 1, name: \"zkpp_proof\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ },\n { no: 2, name: \"instances\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n create(value?: PartialMessage<PasswordRegistrationProof>): PasswordRegistrationProof {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.zkppProof = new Uint8Array(0);\n message.instances = [];\n if (value !== undefined)\n reflectionMergePartial<PasswordRegistrationProof>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordRegistrationProof): PasswordRegistrationProof {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* bytes zkpp_proof */ 1:\n message.zkppProof = reader.bytes();\n break;\n case /* repeated bytes instances */ 2:\n message.instances.push(reader.bytes());\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: PasswordRegistrationProof, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* bytes zkpp_proof = 1; */\n if (message.zkppProof.length)\n writer.tag(1, WireType.LengthDelimited).bytes(message.zkppProof);\n /* repeated bytes instances = 2; */\n for (let i = 0; i < message.instances.length; i++)\n writer.tag(2, WireType.LengthDelimited).bytes(message.instances[i]);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.PasswordRegistrationProof\n */\nexport const PasswordRegistrationProof = new PasswordRegistrationProof$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.PasswordHistoryEvaluatorService\n */\nexport const PasswordHistoryEvaluatorService = new ServiceType(\"sid.v1.authn.PasswordHistoryEvaluatorService\", [\n { name: \"EvaluatePasswordHistory\", idempotency: \"IDEMPOTENT\", options: { \"google.api.http\": { post: \"/v1/auth/password-history/evaluate\", body: \"*\" } }, I: EvaluatePasswordHistoryRequest, O: EvaluatePasswordHistoryResponse }\n]);\n"]}
@@ -0,0 +1,67 @@
1
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
2
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
3
+ import type { AccountConnection } from "./system_integration.js";
4
+ import type { GetAccountConnectionRequest } from "./system_integration.js";
5
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
6
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
7
+ /**
8
+ * SystemIntegrationService gives a system integration's backend its
9
+ * connection details, so an operator never copies issuer handles or client
10
+ * identifiers by hand.
11
+ *
12
+ * Internal only, no HTTP annotation: the account BFF calls it over the
13
+ * deployment's gRPC channel to SID.
14
+ *
15
+ * @generated from protobuf service sid.v1.authn.SystemIntegrationService
16
+ */
17
+ export interface ISystemIntegrationServiceClient {
18
+ /**
19
+ * The connection details of the account integration (SID's own account
20
+ * UI), for its BFF. The request proves possession of one of the account
21
+ * client's registered keys; the answer is public metadata only, no secret
22
+ * is distributed and the private key never leaves the BFF.
23
+ *
24
+ * An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED
25
+ * (TOKEN_INVALID). An integration that is not provisioned, or whose client
26
+ * an administrator disabled, is FAILED_PRECONDITION
27
+ * (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no
28
+ * sign-in until it is.
29
+ *
30
+ * @generated from protobuf rpc: GetAccountConnection
31
+ */
32
+ getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection>;
33
+ }
34
+ /**
35
+ * SystemIntegrationService gives a system integration's backend its
36
+ * connection details, so an operator never copies issuer handles or client
37
+ * identifiers by hand.
38
+ *
39
+ * Internal only, no HTTP annotation: the account BFF calls it over the
40
+ * deployment's gRPC channel to SID.
41
+ *
42
+ * @generated from protobuf service sid.v1.authn.SystemIntegrationService
43
+ */
44
+ export declare class SystemIntegrationServiceClient implements ISystemIntegrationServiceClient, ServiceInfo {
45
+ private readonly _transport;
46
+ typeName: string;
47
+ methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
48
+ options: {
49
+ [extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
50
+ };
51
+ constructor(_transport: RpcTransport);
52
+ /**
53
+ * The connection details of the account integration (SID's own account
54
+ * UI), for its BFF. The request proves possession of one of the account
55
+ * client's registered keys; the answer is public metadata only, no secret
56
+ * is distributed and the private key never leaves the BFF.
57
+ *
58
+ * An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED
59
+ * (TOKEN_INVALID). An integration that is not provisioned, or whose client
60
+ * an administrator disabled, is FAILED_PRECONDITION
61
+ * (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no
62
+ * sign-in until it is.
63
+ *
64
+ * @generated from protobuf rpc: GetAccountConnection
65
+ */
66
+ getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection>;
67
+ }
@@ -0,0 +1,40 @@
1
+ import { SystemIntegrationService } from "./system_integration.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ /**
4
+ * SystemIntegrationService gives a system integration's backend its
5
+ * connection details, so an operator never copies issuer handles or client
6
+ * identifiers by hand.
7
+ *
8
+ * Internal only, no HTTP annotation: the account BFF calls it over the
9
+ * deployment's gRPC channel to SID.
10
+ *
11
+ * @generated from protobuf service sid.v1.authn.SystemIntegrationService
12
+ */
13
+ export class SystemIntegrationServiceClient {
14
+ _transport;
15
+ typeName = SystemIntegrationService.typeName;
16
+ methods = SystemIntegrationService.methods;
17
+ options = SystemIntegrationService.options;
18
+ constructor(_transport) {
19
+ this._transport = _transport;
20
+ }
21
+ /**
22
+ * The connection details of the account integration (SID's own account
23
+ * UI), for its BFF. The request proves possession of one of the account
24
+ * client's registered keys; the answer is public metadata only, no secret
25
+ * is distributed and the private key never leaves the BFF.
26
+ *
27
+ * An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED
28
+ * (TOKEN_INVALID). An integration that is not provisioned, or whose client
29
+ * an administrator disabled, is FAILED_PRECONDITION
30
+ * (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no
31
+ * sign-in until it is.
32
+ *
33
+ * @generated from protobuf rpc: GetAccountConnection
34
+ */
35
+ getAccountConnection(input, options) {
36
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
37
+ return stackIntercept("unary", this._transport, method, opt, input);
38
+ }
39
+ }
40
+ //# sourceMappingURL=system_integration.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system_integration.client.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/system_integration.client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAgC1D;;;;;;;;;GASG;AACH,MAAM,OAAO,8BAA8B;IAIV;IAH7B,QAAQ,GAAG,wBAAwB,CAAC,QAAQ,CAAC;IAC7C,OAAO,GAAG,wBAAwB,CAAC,OAAO,CAAC;IAC3C,OAAO,GAAG,wBAAwB,CAAC,OAAO,CAAC;IAC3C,YAA6B,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IACrD,CAAC;IACD;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,KAAkC,EAAE,OAAoB;QACzE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAC5E,OAAO,cAAc,CAAiD,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACxH,CAAC;CACJ","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/system_integration.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport type { RpcTransport } from \"@protobuf-ts/runtime-rpc\";\nimport type { ServiceInfo } from \"@protobuf-ts/runtime-rpc\";\nimport { SystemIntegrationService } from \"./system_integration.js\";\nimport { stackIntercept } from \"@protobuf-ts/runtime-rpc\";\nimport type { AccountConnection } from \"./system_integration.js\";\nimport type { GetAccountConnectionRequest } from \"./system_integration.js\";\nimport type { UnaryCall } from \"@protobuf-ts/runtime-rpc\";\nimport type { RpcOptions } from \"@protobuf-ts/runtime-rpc\";\n/**\n * SystemIntegrationService gives a system integration's backend its\n * connection details, so an operator never copies issuer handles or client\n * identifiers by hand.\n *\n * Internal only, no HTTP annotation: the account BFF calls it over the\n * deployment's gRPC channel to SID.\n *\n * @generated from protobuf service sid.v1.authn.SystemIntegrationService\n */\nexport interface ISystemIntegrationServiceClient {\n /**\n * The connection details of the account integration (SID's own account\n * UI), for its BFF. The request proves possession of one of the account\n * client's registered keys; the answer is public metadata only, no secret\n * is distributed and the private key never leaves the BFF.\n *\n * An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED\n * (TOKEN_INVALID). An integration that is not provisioned, or whose client\n * an administrator disabled, is FAILED_PRECONDITION\n * (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no\n * sign-in until it is.\n *\n * @generated from protobuf rpc: GetAccountConnection\n */\n getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection>;\n}\n/**\n * SystemIntegrationService gives a system integration's backend its\n * connection details, so an operator never copies issuer handles or client\n * identifiers by hand.\n *\n * Internal only, no HTTP annotation: the account BFF calls it over the\n * deployment's gRPC channel to SID.\n *\n * @generated from protobuf service sid.v1.authn.SystemIntegrationService\n */\nexport class SystemIntegrationServiceClient implements ISystemIntegrationServiceClient, ServiceInfo {\n typeName = SystemIntegrationService.typeName;\n methods = SystemIntegrationService.methods;\n options = SystemIntegrationService.options;\n constructor(private readonly _transport: RpcTransport) {\n }\n /**\n * The connection details of the account integration (SID's own account\n * UI), for its BFF. The request proves possession of one of the account\n * client's registered keys; the answer is public metadata only, no secret\n * is distributed and the private key never leaves the BFF.\n *\n * An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED\n * (TOKEN_INVALID). An integration that is not provisioned, or whose client\n * an administrator disabled, is FAILED_PRECONDITION\n * (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no\n * sign-in until it is.\n *\n * @generated from protobuf rpc: GetAccountConnection\n */\n getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection> {\n const method = this.methods[0], opt = this._transport.mergeOptions(options);\n return stackIntercept<GetAccountConnectionRequest, AccountConnection>(\"unary\", this._transport, method, opt, input);\n }\n}\n"]}
@@ -0,0 +1,97 @@
1
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
6
+ import type { PartialMessage } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
8
+ /**
9
+ * @generated from protobuf message sid.v1.authn.GetAccountConnectionRequest
10
+ */
11
+ export interface GetAccountConnectionRequest {
12
+ /**
13
+ * A JWT (RFC 7519) the BFF signs, per request, with the private key of one
14
+ * of the account client's registered keys, named by the JWS `kid` header.
15
+ * Claims: `iss` and `sub` both equal that `kid`; `aud` is the installation
16
+ * URL followed by `/account/connection`; `exp` at most five minutes ahead;
17
+ * a unique `jti`, accepted once. Carries no secret.
18
+ *
19
+ * @generated from protobuf field: string proof = 1
20
+ */
21
+ proof: string;
22
+ }
23
+ /**
24
+ * What the account BFF needs to sign users in and call the account API.
25
+ *
26
+ * @generated from protobuf message sid.v1.authn.AccountConnection
27
+ */
28
+ export interface AccountConnection {
29
+ /**
30
+ * Exact issuer identifier the account client is registered under, the
31
+ * canonical URL `https://<host>/i/<handle>`. The BFF discovers its
32
+ * endpoints at `<issuer>/.well-known/openid-configuration` and accepts only
33
+ * authorization responses and tokens naming this issuer (RFC 9207 §2.4).
34
+ *
35
+ * @generated from protobuf field: string issuer = 1
36
+ */
37
+ issuer: string;
38
+ /**
39
+ * The account web client's `client_id`, assigned at provisioning and never
40
+ * changed; the `iss` and `sub` of its token endpoint assertions.
41
+ *
42
+ * @generated from protobuf field: string client_id = 2
43
+ */
44
+ clientId: string;
45
+ /**
46
+ * Resource indicator of the account API (RFC 8707 §2): the `resource` the
47
+ * BFF requests and the `aud` of the access tokens it obtains.
48
+ *
49
+ * @generated from protobuf field: string resource = 3
50
+ */
51
+ resource: string;
52
+ /**
53
+ * Scopes the BFF requests: sign-in scopes and the account API's.
54
+ *
55
+ * @generated from protobuf field: repeated string scopes = 4
56
+ */
57
+ scopes: string[];
58
+ /**
59
+ * The client's registered redirect URI, the BFF's callback on the account
60
+ * origin; an authorization request naming another is refused.
61
+ *
62
+ * @generated from protobuf field: string redirect_uri = 5
63
+ */
64
+ redirectUri: string;
65
+ /**
66
+ * How the client authenticates at the token endpoint (RFC 7591 §2):
67
+ * always `private_key_jwt`.
68
+ *
69
+ * @generated from protobuf field: string token_endpoint_auth_method = 6
70
+ */
71
+ tokenEndpointAuthMethod: string;
72
+ }
73
+ declare class GetAccountConnectionRequest$Type extends MessageType<GetAccountConnectionRequest> {
74
+ constructor();
75
+ create(value?: PartialMessage<GetAccountConnectionRequest>): GetAccountConnectionRequest;
76
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountConnectionRequest): GetAccountConnectionRequest;
77
+ internalBinaryWrite(message: GetAccountConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
78
+ }
79
+ /**
80
+ * @generated MessageType for protobuf message sid.v1.authn.GetAccountConnectionRequest
81
+ */
82
+ export declare const GetAccountConnectionRequest: GetAccountConnectionRequest$Type;
83
+ declare class AccountConnection$Type extends MessageType<AccountConnection> {
84
+ constructor();
85
+ create(value?: PartialMessage<AccountConnection>): AccountConnection;
86
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountConnection): AccountConnection;
87
+ internalBinaryWrite(message: AccountConnection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
88
+ }
89
+ /**
90
+ * @generated MessageType for protobuf message sid.v1.authn.AccountConnection
91
+ */
92
+ export declare const AccountConnection: AccountConnection$Type;
93
+ /**
94
+ * @generated ServiceType for protobuf service sid.v1.authn.SystemIntegrationService
95
+ */
96
+ export declare const SystemIntegrationService: ServiceType;
97
+ export {};
@@ -0,0 +1,150 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck
2
+ // @generated from protobuf file "sid/v1/authn/system_integration.proto" (package "sid.v1.authn", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
8
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ // @generated message type with reflection information, may provide speed optimized methods
11
+ class GetAccountConnectionRequest$Type extends MessageType {
12
+ constructor() {
13
+ super("sid.v1.authn.GetAccountConnectionRequest", [
14
+ { no: 1, name: "proof", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
15
+ ]);
16
+ }
17
+ create(value) {
18
+ const message = globalThis.Object.create((this.messagePrototype));
19
+ message.proof = "";
20
+ if (value !== undefined)
21
+ reflectionMergePartial(this, message, value);
22
+ return message;
23
+ }
24
+ internalBinaryRead(reader, length, options, target) {
25
+ let message = target ?? this.create(), end = reader.pos + length;
26
+ while (reader.pos < end) {
27
+ let [fieldNo, wireType] = reader.tag();
28
+ switch (fieldNo) {
29
+ case /* string proof */ 1:
30
+ message.proof = reader.string();
31
+ break;
32
+ default:
33
+ let u = options.readUnknownField;
34
+ if (u === "throw")
35
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
36
+ let d = reader.skip(wireType);
37
+ if (u !== false)
38
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
39
+ }
40
+ }
41
+ return message;
42
+ }
43
+ internalBinaryWrite(message, writer, options) {
44
+ /* string proof = 1; */
45
+ if (message.proof !== "")
46
+ writer.tag(1, WireType.LengthDelimited).string(message.proof);
47
+ let u = options.writeUnknownFields;
48
+ if (u !== false)
49
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
50
+ return writer;
51
+ }
52
+ }
53
+ /**
54
+ * @generated MessageType for protobuf message sid.v1.authn.GetAccountConnectionRequest
55
+ */
56
+ export const GetAccountConnectionRequest = new GetAccountConnectionRequest$Type();
57
+ // @generated message type with reflection information, may provide speed optimized methods
58
+ class AccountConnection$Type extends MessageType {
59
+ constructor() {
60
+ super("sid.v1.authn.AccountConnection", [
61
+ { no: 1, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
62
+ { no: 2, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
63
+ { no: 3, name: "resource", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
64
+ { no: 4, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
65
+ { no: 5, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
66
+ { no: 6, name: "token_endpoint_auth_method", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
67
+ ]);
68
+ }
69
+ create(value) {
70
+ const message = globalThis.Object.create((this.messagePrototype));
71
+ message.issuer = "";
72
+ message.clientId = "";
73
+ message.resource = "";
74
+ message.scopes = [];
75
+ message.redirectUri = "";
76
+ message.tokenEndpointAuthMethod = "";
77
+ if (value !== undefined)
78
+ reflectionMergePartial(this, message, value);
79
+ return message;
80
+ }
81
+ internalBinaryRead(reader, length, options, target) {
82
+ let message = target ?? this.create(), end = reader.pos + length;
83
+ while (reader.pos < end) {
84
+ let [fieldNo, wireType] = reader.tag();
85
+ switch (fieldNo) {
86
+ case /* string issuer */ 1:
87
+ message.issuer = reader.string();
88
+ break;
89
+ case /* string client_id */ 2:
90
+ message.clientId = reader.string();
91
+ break;
92
+ case /* string resource */ 3:
93
+ message.resource = reader.string();
94
+ break;
95
+ case /* repeated string scopes */ 4:
96
+ message.scopes.push(reader.string());
97
+ break;
98
+ case /* string redirect_uri */ 5:
99
+ message.redirectUri = reader.string();
100
+ break;
101
+ case /* string token_endpoint_auth_method */ 6:
102
+ message.tokenEndpointAuthMethod = reader.string();
103
+ break;
104
+ default:
105
+ let u = options.readUnknownField;
106
+ if (u === "throw")
107
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
108
+ let d = reader.skip(wireType);
109
+ if (u !== false)
110
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
111
+ }
112
+ }
113
+ return message;
114
+ }
115
+ internalBinaryWrite(message, writer, options) {
116
+ /* string issuer = 1; */
117
+ if (message.issuer !== "")
118
+ writer.tag(1, WireType.LengthDelimited).string(message.issuer);
119
+ /* string client_id = 2; */
120
+ if (message.clientId !== "")
121
+ writer.tag(2, WireType.LengthDelimited).string(message.clientId);
122
+ /* string resource = 3; */
123
+ if (message.resource !== "")
124
+ writer.tag(3, WireType.LengthDelimited).string(message.resource);
125
+ /* repeated string scopes = 4; */
126
+ for (let i = 0; i < message.scopes.length; i++)
127
+ writer.tag(4, WireType.LengthDelimited).string(message.scopes[i]);
128
+ /* string redirect_uri = 5; */
129
+ if (message.redirectUri !== "")
130
+ writer.tag(5, WireType.LengthDelimited).string(message.redirectUri);
131
+ /* string token_endpoint_auth_method = 6; */
132
+ if (message.tokenEndpointAuthMethod !== "")
133
+ writer.tag(6, WireType.LengthDelimited).string(message.tokenEndpointAuthMethod);
134
+ let u = options.writeUnknownFields;
135
+ if (u !== false)
136
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
137
+ return writer;
138
+ }
139
+ }
140
+ /**
141
+ * @generated MessageType for protobuf message sid.v1.authn.AccountConnection
142
+ */
143
+ export const AccountConnection = new AccountConnection$Type();
144
+ /**
145
+ * @generated ServiceType for protobuf service sid.v1.authn.SystemIntegrationService
146
+ */
147
+ export const SystemIntegrationService = new ServiceType("sid.v1.authn.SystemIntegrationService", [
148
+ { name: "GetAccountConnection", options: {}, I: GetAccountConnectionRequest, O: AccountConnection }
149
+ ]);
150
+ //# sourceMappingURL=system_integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system_integration.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/authn/system_integration.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gHAAgH;AAChH,iBAAiB;AACjB,cAAc;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkEnD,2FAA2F;AAC3F,MAAM,gCAAiC,SAAQ,WAAwC;IACnF;QACI,KAAK,CAAC,0CAA0C,EAAE;YAC9C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI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AO,CAAC,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,KAAK;YACX,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AACD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,sBAAsB,EAAE,CAAC;AAC9D;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,WAAW,CAAC,uCAAuC,EAAE;IAC7F,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,2BAA2B,EAAE,CAAC,EAAE,iBAAiB,EAAE;CACtG,CAAC,CAAC","sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies,ts_nocheck\n// @generated from protobuf file \"sid/v1/authn/system_integration.proto\" (package \"sid.v1.authn\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\nimport { ServiceType } from \"@protobuf-ts/runtime-rpc\";\nimport type { BinaryWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryWriter } from \"@protobuf-ts/runtime\";\nimport { WireType } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IBinaryReader } from \"@protobuf-ts/runtime\";\nimport { UnknownFieldHandler } from \"@protobuf-ts/runtime\";\nimport type { PartialMessage } from \"@protobuf-ts/runtime\";\nimport { reflectionMergePartial } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * @generated from protobuf message sid.v1.authn.GetAccountConnectionRequest\n */\nexport interface GetAccountConnectionRequest {\n /**\n * A JWT (RFC 7519) the BFF signs, per request, with the private key of one\n * of the account client's registered keys, named by the JWS `kid` header.\n * Claims: `iss` and `sub` both equal that `kid`; `aud` is the installation\n * URL followed by `/account/connection`; `exp` at most five minutes ahead;\n * a unique `jti`, accepted once. Carries no secret.\n *\n * @generated from protobuf field: string proof = 1\n */\n proof: string;\n}\n/**\n * What the account BFF needs to sign users in and call the account API.\n *\n * @generated from protobuf message sid.v1.authn.AccountConnection\n */\nexport interface AccountConnection {\n /**\n * Exact issuer identifier the account client is registered under, the\n * canonical URL `https://<host>/i/<handle>`. The BFF discovers its\n * endpoints at `<issuer>/.well-known/openid-configuration` and accepts only\n * authorization responses and tokens naming this issuer (RFC 9207 §2.4).\n *\n * @generated from protobuf field: string issuer = 1\n */\n issuer: string;\n /**\n * The account web client's `client_id`, assigned at provisioning and never\n * changed; the `iss` and `sub` of its token endpoint assertions.\n *\n * @generated from protobuf field: string client_id = 2\n */\n clientId: string;\n /**\n * Resource indicator of the account API (RFC 8707 §2): the `resource` the\n * BFF requests and the `aud` of the access tokens it obtains.\n *\n * @generated from protobuf field: string resource = 3\n */\n resource: string;\n /**\n * Scopes the BFF requests: sign-in scopes and the account API's.\n *\n * @generated from protobuf field: repeated string scopes = 4\n */\n scopes: string[];\n /**\n * The client's registered redirect URI, the BFF's callback on the account\n * origin; an authorization request naming another is refused.\n *\n * @generated from protobuf field: string redirect_uri = 5\n */\n redirectUri: string;\n /**\n * How the client authenticates at the token endpoint (RFC 7591 §2):\n * always `private_key_jwt`.\n *\n * @generated from protobuf field: string token_endpoint_auth_method = 6\n */\n tokenEndpointAuthMethod: string;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass GetAccountConnectionRequest$Type extends MessageType<GetAccountConnectionRequest> {\n constructor() {\n super(\"sid.v1.authn.GetAccountConnectionRequest\", [\n { no: 1, name: \"proof\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<GetAccountConnectionRequest>): GetAccountConnectionRequest {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.proof = \"\";\n if (value !== undefined)\n reflectionMergePartial<GetAccountConnectionRequest>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountConnectionRequest): GetAccountConnectionRequest {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string proof */ 1:\n message.proof = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: GetAccountConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string proof = 1; */\n if (message.proof !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.proof);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.GetAccountConnectionRequest\n */\nexport const GetAccountConnectionRequest = new GetAccountConnectionRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass AccountConnection$Type extends MessageType<AccountConnection> {\n constructor() {\n super(\"sid.v1.authn.AccountConnection\", [\n { no: 1, name: \"issuer\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"client_id\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 3, name: \"resource\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 4, name: \"scopes\", kind: \"scalar\", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },\n { no: 5, name: \"redirect_uri\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 6, name: \"token_endpoint_auth_method\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ }\n ]);\n }\n create(value?: PartialMessage<AccountConnection>): AccountConnection {\n const message = globalThis.Object.create((this.messagePrototype!));\n message.issuer = \"\";\n message.clientId = \"\";\n message.resource = \"\";\n message.scopes = [];\n message.redirectUri = \"\";\n message.tokenEndpointAuthMethod = \"\";\n if (value !== undefined)\n reflectionMergePartial<AccountConnection>(this, message, value);\n return message;\n }\n internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountConnection): AccountConnection {\n let message = target ?? this.create(), end = reader.pos + length;\n while (reader.pos < end) {\n let [fieldNo, wireType] = reader.tag();\n switch (fieldNo) {\n case /* string issuer */ 1:\n message.issuer = reader.string();\n break;\n case /* string client_id */ 2:\n message.clientId = reader.string();\n break;\n case /* string resource */ 3:\n message.resource = reader.string();\n break;\n case /* repeated string scopes */ 4:\n message.scopes.push(reader.string());\n break;\n case /* string redirect_uri */ 5:\n message.redirectUri = reader.string();\n break;\n case /* string token_endpoint_auth_method */ 6:\n message.tokenEndpointAuthMethod = reader.string();\n break;\n default:\n let u = options.readUnknownField;\n if (u === \"throw\")\n throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);\n let d = reader.skip(wireType);\n if (u !== false)\n (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);\n }\n }\n return message;\n }\n internalBinaryWrite(message: AccountConnection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {\n /* string issuer = 1; */\n if (message.issuer !== \"\")\n writer.tag(1, WireType.LengthDelimited).string(message.issuer);\n /* string client_id = 2; */\n if (message.clientId !== \"\")\n writer.tag(2, WireType.LengthDelimited).string(message.clientId);\n /* string resource = 3; */\n if (message.resource !== \"\")\n writer.tag(3, WireType.LengthDelimited).string(message.resource);\n /* repeated string scopes = 4; */\n for (let i = 0; i < message.scopes.length; i++)\n writer.tag(4, WireType.LengthDelimited).string(message.scopes[i]);\n /* string redirect_uri = 5; */\n if (message.redirectUri !== \"\")\n writer.tag(5, WireType.LengthDelimited).string(message.redirectUri);\n /* string token_endpoint_auth_method = 6; */\n if (message.tokenEndpointAuthMethod !== \"\")\n writer.tag(6, WireType.LengthDelimited).string(message.tokenEndpointAuthMethod);\n let u = options.writeUnknownFields;\n if (u !== false)\n (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);\n return writer;\n }\n}\n/**\n * @generated MessageType for protobuf message sid.v1.authn.AccountConnection\n */\nexport const AccountConnection = new AccountConnection$Type();\n/**\n * @generated ServiceType for protobuf service sid.v1.authn.SystemIntegrationService\n */\nexport const SystemIntegrationService = new ServiceType(\"sid.v1.authn.SystemIntegrationService\", [\n { name: \"GetAccountConnection\", options: {}, I: GetAccountConnectionRequest, O: AccountConnection }\n]);\n"]}