@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
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 (2026-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * **typescript:** add the @structured-id/proto package ([#7](https://github.com/structured-id/sdk/issues/7)) ([a17ea4d](https://github.com/structured-id/sdk/commit/a17ea4da15aa2a053d084296fbe722322b2f8e64)), closes [#6](https://github.com/structured-id/sdk/issues/6)
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,56 @@
1
+ @structured-id/proto
2
+ Copyright (C) Dmitry Prudnikov
3
+
4
+ StructuredID public sid.v1 API for TypeScript: messages and clients generated
5
+ from the StructuredID proto definitions, and the browser gRPC-web /
6
+ WebTransport transport.
7
+
8
+ LICENSE
9
+ -------
10
+ This software is distributed under the Apache License, version 2.0. See the
11
+ LICENSE file.
12
+
13
+ Contact: oss@structured.id
14
+
15
+ Third-party definitions
16
+ -----------------------
17
+ dist/generated/google/api and dist/generated/google/rpc are generated from
18
+ the Google APIs definitions (https://github.com/googleapis/googleapis),
19
+ Copyright Google LLC, distributed under the Apache License, version 2.0.
20
+
21
+ dist/generated/google/protobuf is generated from the Protocol Buffers
22
+ well-known types (https://github.com/protocolbuffers/protobuf), distributed
23
+ under the following license:
24
+
25
+ Copyright 2008 Google Inc. All rights reserved.
26
+
27
+ Redistribution and use in source and binary forms, with or without
28
+ modification, are permitted provided that the following conditions are
29
+ met:
30
+
31
+ * Redistributions of source code must retain the above copyright
32
+ notice, this list of conditions and the following disclaimer.
33
+ * Redistributions in binary form must reproduce the above
34
+ copyright notice, this list of conditions and the following disclaimer
35
+ in the documentation and/or other materials provided with the
36
+ distribution.
37
+ * Neither the name of Google Inc. nor the names of its
38
+ contributors may be used to endorse or promote products derived from
39
+ this software without specific prior written permission.
40
+
41
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
44
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
45
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
49
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
51
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52
+
53
+ Code generated by the Protocol Buffer compiler is owned by the owner
54
+ of the input file used when generating it. This code is not
55
+ standalone and requires a support library to be linked with it. This
56
+ support library is itself covered by the above license.
package/README.md CHANGED
@@ -1,3 +1,160 @@
1
- # Temporary Holding Version
1
+ # @structured-id/proto
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The public StructuredID `sid.v1` API for TypeScript: the messages and service
4
+ clients generated from the [proto definitions](https://github.com/structured-id/proto)
5
+ with [protobuf-ts](https://github.com/timostamm/protobuf-ts), the
6
+ `google.rpc` error model, and a browser transport that speaks gRPC-web and,
7
+ where the server offers it, WebTransport.
8
+
9
+ It carries no UI code and no framework dependency: a Vue, React or plain
10
+ TypeScript application, a worker or a Node script use the same modules.
11
+
12
+ ## Use
13
+
14
+ ```sh
15
+ npm install @structured-id/proto
16
+ ```
17
+
18
+ Every schema file is its own module, under the path of the `.proto` file:
19
+
20
+ ```ts
21
+ import { IdentityServiceClient } from "@structured-id/proto/sid/v1/identity/identity.client";
22
+ import { GetCurrentProfileRequest } from "@structured-id/proto/sid/v1/identity/identity";
23
+ import { Status } from "@structured-id/proto/google/rpc/status";
24
+ import { AdaptiveRpcTransport } from "@structured-id/proto/transport";
25
+
26
+ const transport = new AdaptiveRpcTransport({
27
+ grpcWebUrl: "https://sid.example.com",
28
+ // Optional: WebTransport (HTTP/3) with per-call fallback to gRPC-web.
29
+ webTransportUrl: "https://sid.example.com:4433",
30
+ // Send the session cookie of a backend-for-frontend.
31
+ fetchInit: { credentials: "include" },
32
+ });
33
+ await transport.init();
34
+
35
+ const identity = new IdentityServiceClient(transport);
36
+ const { response } = await identity.getCurrentProfile(GetCurrentProfileRequest.create());
37
+ ```
38
+
39
+ A refusal arrives as an `RpcError` whose `grpc-status-details-bin` metadata
40
+ holds a `google.rpc.Status`; decode it with `Status.fromBinary` and branch on
41
+ the `google.rpc.ErrorInfo` reason and domain in its details, never on the
42
+ message text.
43
+
44
+ ### Transport
45
+
46
+ `AdaptiveRpcTransport` sends every unary call over WebTransport while the
47
+ connection is up. A locally observed connection or stream I/O failure retries
48
+ that call over gRPC-web and reconnects WebTransport in the background. Server
49
+ statuses, including `UNAVAILABLE`, `CANCELLED` and `UNKNOWN`, are returned as is:
50
+ a status code alone is not evidence of a failed connection. Malformed protobuf
51
+ responses report `DATA_LOSS`; local encoding errors report `INTERNAL`. Neither
52
+ triggers failover. A server error status rejects the call's headers, response,
53
+ status and trailers promises, preserving its metadata on `RpcError`.
54
+ Server streaming always goes over
55
+ gRPC-web. Without a `webTransportUrl`, or where the runtime has no
56
+ `WebTransport`, it is plain gRPC-web.
57
+
58
+ `RpcOptions.abort` cancels an active stream and prevents a fallback attempt for
59
+ that cancelled call. `close()` stops background reconnects, including an
60
+ attempt already in progress. Transport-change callbacks are observers: an
61
+ exception in one cannot change connection health or the call's result.
62
+ Remote closure also switches to gRPC-web and starts recovery when no RPC is
63
+ active. A late failure from a retired connection cannot disable its replacement.
64
+
65
+ `WebTransportRpcTransport`, `WebTransportConnection` and the frame helpers are
66
+ exported for applications that manage the connection themselves.
67
+
68
+ The declarations use the DOM types (`WebTransport`, streams, `RequestInit`):
69
+ a TypeScript project compiling against them includes the `DOM` library.
70
+
71
+ ### Identifiers
72
+
73
+ The `sid.v1.ids` messages are those of
74
+ [`@structured-id/ids`](https://www.npmjs.com/package/@structured-id/ids): a
75
+ field such as `ProtectedResourceTarget.id` decodes into its `wire` type, and
76
+ converts with that package's validation:
77
+
78
+ ```ts
79
+ import { ResourceId, required } from "@structured-id/ids";
80
+
81
+ const id = required(ResourceId, target.id); // throws on a missing or invalid identifier
82
+ ```
83
+
84
+ ### Modules
85
+
86
+ ES modules only. Node loads them from CommonJS through `require` (Node 20.19
87
+ and later).
88
+
89
+ ### Other TypeScript protobuf clients
90
+
91
+ There is no message-key rewriting layer. The protobuf-ts generator uses its
92
+ standard lowerCamelCase local field names and numeric TypeScript enums. On
93
+ binary transports, fields are identified by number, `bytes` remain `Uint8Array`,
94
+ 64-bit integers remain `bigint`, and timestamps retain `{ seconds: bigint,
95
+ nanos: number }`. The finishing script only reuses the identifier message
96
+ objects and adds `.js` to relative module imports.
97
+
98
+ Use message `toJson`/`fromJson` for ProtoJSON, rather than `JSON.stringify`
99
+ on a message object. ProtoJSON uses decimal strings for 64-bit integers,
100
+ base64 for bytes, full schema names for enums, and RFC 3339 timestamps.
101
+ Explicit schema `json_name` is honored: `UserInfo.givenName` becomes
102
+ `given_name` at the OIDC JSON boundary; ordinary fields use lowerCamelCase.
103
+
104
+ For independent [ts-proto](https://github.com/stephenh/ts-proto) clients, this
105
+ tested generator profile preserves binary values without Date conversion:
106
+
107
+ ```text
108
+ forceLong=bigint,useDate=false,snakeToCamel=keys_json,useJsonName=false,stringEnums=false
109
+ ```
110
+
111
+ `useDate=false` gives the matching seconds/nanos structure. In ts-proto
112
+ 2.13.0, that option's default JSON conversion goes through `Date` and loses
113
+ sub-millisecond precision; it is not a lossless Timestamp ProtoJSON bridge.
114
+ The `string-nano` alternative tested with nano-date 4.1.0 also failed
115
+ pre-epoch and calendar-boundary round trips. Keep timestamps structured on
116
+ binary transports, and use the SDK's standard Timestamp ProtoJSON codec when
117
+ exact JSON interchange is needed. `useJsonTimestamp=raw` emits an object
118
+ instead of the standard RFC 3339 string and is not an equivalent REST contract.
119
+ JavaScript `Date` should only be a display conversion when that precision is
120
+ not needed.
121
+
122
+ Local enum constant names can differ between generators; use named constants
123
+ from your own generated module. Both codecs preserve unknown enum numbers in
124
+ binary protobuf. ts-proto 2.13.0's generated JSON enum helpers map unknown
125
+ values to `UNRECOGNIZED`; that path does not preserve future numeric values.
126
+ The interop suite checks both codecs against the actual SID schema, in both
127
+ directions for binary values and for JSON scalars, including 64-bit boundaries,
128
+ nanosecond calendar boundaries, optional zero/false values and explicit OIDC
129
+ JSON field names. Timestamp JSON precision is checked against the SDK codec;
130
+ the ts-proto limitations above are not declared compatible. The independent
131
+ codec is test-only, outside this package's runtime closure.
132
+
133
+ ## Verify
134
+
135
+ From the `typescript/` directory of the SDK repository, with its `proto`
136
+ submodule checked out:
137
+
138
+ ```sh
139
+ yarn install
140
+ yarn build
141
+ yarn test
142
+ ci/check-package.sh
143
+ ```
144
+
145
+ The release workflow checks every runtime dependency range in the **packed
146
+ archive** against npm before publishing. Missing dependencies or registry
147
+ errors fail the job before a registry write; rerun the existing release's
148
+ publish job after the dependency is available. This applies even when different
149
+ package releases execute in concurrent workflows.
150
+ Within a run, one publish job processes release tags sequentially, with `ids`
151
+ before `proto`; a failed publication stops the sequence. Each package is built
152
+ from its own immutable release tag.
153
+
154
+ The registry bootstrap already published `0.1.0`. The first automated release
155
+ starts at `0.1.1`, so it publishes the reviewed implementation rather than
156
+ skipping an immutable version that already exists in npm.
157
+
158
+ ## License
159
+
160
+ Apache License, version 2.0. See `LICENSE` and `NOTICE`.