@structured-id/ui-core 0.1.5

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 (156) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +47 -0
  3. package/dist/browser-vp/index.cjs +349 -0
  4. package/dist/browser-vp/index.d.cts +287 -0
  5. package/dist/browser-vp/index.d.ts +287 -0
  6. package/dist/browser-vp/index.js +349 -0
  7. package/dist/chunk-C3Q766CY.cjs +125 -0
  8. package/dist/chunk-J5YXRXB5.js +125 -0
  9. package/dist/index.cjs +19360 -0
  10. package/dist/index.d.cts +9536 -0
  11. package/dist/index.d.ts +9536 -0
  12. package/dist/index.js +19360 -0
  13. package/dist/storage-4CB2JTLW.cjs +22 -0
  14. package/dist/storage-THRWREZP.js +22 -0
  15. package/package.json +93 -0
  16. package/src/browser-vp/crypto.ts +254 -0
  17. package/src/browser-vp/index.test.ts +10 -0
  18. package/src/browser-vp/index.ts +118 -0
  19. package/src/browser-vp/prf.ts +181 -0
  20. package/src/browser-vp/storage.test.ts +9 -0
  21. package/src/browser-vp/storage.ts +165 -0
  22. package/src/browser-vp/types.ts +97 -0
  23. package/src/browser-vp/vp.test.ts +43 -0
  24. package/src/browser-vp/vp.ts +113 -0
  25. package/src/components/SidAvatar.vue +106 -0
  26. package/src/components/SidConfirmDialog.vue +125 -0
  27. package/src/components/SidStatusBadge.vue +71 -0
  28. package/src/components/index.ts +5 -0
  29. package/src/composables/index.ts +10 -0
  30. package/src/composables/useAuth.ts +40 -0
  31. package/src/composables/useBffAuth.ts +147 -0
  32. package/src/composables/useGrpc.test.ts +196 -0
  33. package/src/composables/useGrpc.ts +120 -0
  34. package/src/composables/useSession.ts +80 -0
  35. package/src/generated/google/api/http.ts +687 -0
  36. package/src/generated/google/protobuf/descriptor.ts +4865 -0
  37. package/src/generated/google/protobuf/duration.ts +230 -0
  38. package/src/generated/google/protobuf/empty.ts +94 -0
  39. package/src/generated/google/protobuf/struct.ts +484 -0
  40. package/src/generated/google/protobuf/timestamp.ts +287 -0
  41. package/src/generated/sid/v1/account/account.client.ts +527 -0
  42. package/src/generated/sid/v1/account/account.ts +3261 -0
  43. package/src/generated/sid/v1/admin/admin.client.ts +136 -0
  44. package/src/generated/sid/v1/admin/admin.ts +846 -0
  45. package/src/generated/sid/v1/admin/admin_roles.client.ts +181 -0
  46. package/src/generated/sid/v1/admin/admin_roles.ts +1606 -0
  47. package/src/generated/sid/v1/admin/analytics.client.ts +106 -0
  48. package/src/generated/sid/v1/admin/analytics.ts +1017 -0
  49. package/src/generated/sid/v1/admin/branding.client.ts +166 -0
  50. package/src/generated/sid/v1/admin/branding.ts +1906 -0
  51. package/src/generated/sid/v1/admin/enrollment.client.ts +165 -0
  52. package/src/generated/sid/v1/admin/enrollment.ts +1704 -0
  53. package/src/generated/sid/v1/admin/events.client.ts +195 -0
  54. package/src/generated/sid/v1/admin/events.ts +1900 -0
  55. package/src/generated/sid/v1/admin/flow.client.ts +183 -0
  56. package/src/generated/sid/v1/admin/flow.ts +1552 -0
  57. package/src/generated/sid/v1/admin/keys.client.ts +107 -0
  58. package/src/generated/sid/v1/admin/keys.ts +931 -0
  59. package/src/generated/sid/v1/admin/login_experience.client.ts +160 -0
  60. package/src/generated/sid/v1/admin/login_experience.ts +1061 -0
  61. package/src/generated/sid/v1/admin/migration.client.ts +127 -0
  62. package/src/generated/sid/v1/admin/migration.ts +1948 -0
  63. package/src/generated/sid/v1/admin/notifications.client.ts +128 -0
  64. package/src/generated/sid/v1/admin/notifications.ts +1332 -0
  65. package/src/generated/sid/v1/admin/operations.client.ts +241 -0
  66. package/src/generated/sid/v1/admin/operations.ts +2648 -0
  67. package/src/generated/sid/v1/admin/organizations.client.ts +57 -0
  68. package/src/generated/sid/v1/admin/organizations.ts +349 -0
  69. package/src/generated/sid/v1/admin/scopes.client.ts +171 -0
  70. package/src/generated/sid/v1/admin/scopes.ts +1324 -0
  71. package/src/generated/sid/v1/admin/security.client.ts +412 -0
  72. package/src/generated/sid/v1/admin/security.ts +4086 -0
  73. package/src/generated/sid/v1/admin/sessions.client.ts +114 -0
  74. package/src/generated/sid/v1/admin/sessions.ts +923 -0
  75. package/src/generated/sid/v1/admin/settings.client.ts +340 -0
  76. package/src/generated/sid/v1/admin/settings.ts +2395 -0
  77. package/src/generated/sid/v1/admin/user_profile.client.ts +57 -0
  78. package/src/generated/sid/v1/admin/user_profile.ts +730 -0
  79. package/src/generated/sid/v1/admin/webhooks.client.ts +269 -0
  80. package/src/generated/sid/v1/admin/webhooks.ts +2804 -0
  81. package/src/generated/sid/v1/attestation/attestation.client.ts +115 -0
  82. package/src/generated/sid/v1/attestation/attestation.ts +813 -0
  83. package/src/generated/sid/v1/authn/auth.client.ts +900 -0
  84. package/src/generated/sid/v1/authn/auth.ts +9287 -0
  85. package/src/generated/sid/v1/authn/flows.client.ts +413 -0
  86. package/src/generated/sid/v1/authn/flows.ts +3217 -0
  87. package/src/generated/sid/v1/authz/authz.client.ts +459 -0
  88. package/src/generated/sid/v1/authz/authz.ts +5343 -0
  89. package/src/generated/sid/v1/authz/governance.client.ts +102 -0
  90. package/src/generated/sid/v1/authz/governance.ts +818 -0
  91. package/src/generated/sid/v1/common/errors.ts +184 -0
  92. package/src/generated/sid/v1/common/pagination.ts +152 -0
  93. package/src/generated/sid/v1/common/transport.ts +227 -0
  94. package/src/generated/sid/v1/common/types.ts +151 -0
  95. package/src/generated/sid/v1/events/event_stream.client.ts +67 -0
  96. package/src/generated/sid/v1/events/event_stream.ts +374 -0
  97. package/src/generated/sid/v1/federation/upstream.client.ts +142 -0
  98. package/src/generated/sid/v1/federation/upstream.ts +1736 -0
  99. package/src/generated/sid/v1/identity/identity.client.ts +467 -0
  100. package/src/generated/sid/v1/identity/identity.ts +5613 -0
  101. package/src/generated/sid/v1/machine/machine_user.client.ts +219 -0
  102. package/src/generated/sid/v1/machine/machine_user.ts +2400 -0
  103. package/src/generated/sid/v1/machine/pat.client.ts +147 -0
  104. package/src/generated/sid/v1/machine/pat.ts +1268 -0
  105. package/src/generated/sid/v1/projects/projects.client.ts +286 -0
  106. package/src/generated/sid/v1/projects/projects.ts +2714 -0
  107. package/src/generated/sid/v1/scim/scim.client.ts +274 -0
  108. package/src/generated/sid/v1/scim/scim.ts +3043 -0
  109. package/src/generated/sid/v1/test/test.client.ts +232 -0
  110. package/src/generated/sid/v1/test/test.ts +1136 -0
  111. package/src/i18n/index.ts +40 -0
  112. package/src/index.ts +157 -0
  113. package/src/profile/auth.ts +15 -0
  114. package/src/profile/components/ConsentManager.vue +88 -0
  115. package/src/profile/components/ProfileEditor.vue +146 -0
  116. package/src/profile/components/SecuritySettings.vue +170 -0
  117. package/src/profile/components/SessionList.vue +100 -0
  118. package/src/profile/components/SidLoginForm.test.ts +80 -0
  119. package/src/profile/components/SidLoginForm.vue +230 -0
  120. package/src/profile/components/SidMfaChallenge.test.ts +127 -0
  121. package/src/profile/components/SidMfaChallenge.vue +243 -0
  122. package/src/profile/components/SidRegistrationForm.test.ts +79 -0
  123. package/src/profile/components/SidRegistrationForm.vue +317 -0
  124. package/src/profile/components/index.ts +11 -0
  125. package/src/profile/composables/index.ts +6 -0
  126. package/src/profile/composables/useAccountApi.ts +203 -0
  127. package/src/profile/composables/useAuthApi.opaque.test.ts +140 -0
  128. package/src/profile/composables/useAuthApi.ts +617 -0
  129. package/src/profile/composables/useIdentityApi.ts +123 -0
  130. package/src/profile/composables/useLoginSuccess.test.ts +112 -0
  131. package/src/profile/composables/useLoginSuccess.ts +65 -0
  132. package/src/profile/composables/useOpaqueAuth.test.ts +290 -0
  133. package/src/profile/composables/useOpaqueAuth.ts +191 -0
  134. package/src/profile/composables/useSecurityLevel.test.ts +198 -0
  135. package/src/profile/composables/useSecurityLevel.ts +324 -0
  136. package/src/profile/index.ts +18 -0
  137. package/src/quasar/SidPrincipalInput.vue +209 -0
  138. package/src/quasar/index.ts +8 -0
  139. package/src/stores/auth.test.ts +83 -0
  140. package/src/stores/auth.ts +92 -0
  141. package/src/stores/index.ts +1 -0
  142. package/src/transport/adaptive.test.ts +728 -0
  143. package/src/transport/adaptive.ts +308 -0
  144. package/src/transport/framing.test.ts +227 -0
  145. package/src/transport/framing.ts +98 -0
  146. package/src/transport/webtransport.test.ts +728 -0
  147. package/src/transport/webtransport.ts +323 -0
  148. package/src/types/auth.ts +58 -0
  149. package/src/types/index.ts +1 -0
  150. package/src/utils/formatters.test.ts +26 -0
  151. package/src/utils/formatters.ts +69 -0
  152. package/src/utils/index.ts +16 -0
  153. package/src/utils/normalizePrincipal.test.ts +188 -0
  154. package/src/utils/normalizePrincipal.ts +159 -0
  155. package/src/utils/validators.test.ts +75 -0
  156. package/src/utils/validators.ts +36 -0
@@ -0,0 +1,195 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
2
+ // @generated from protobuf file "sid/v1/admin/events.proto" (package "sid.v1.admin", syntax proto3)
3
+ // tslint:disable
4
+ import { AuditService } from "./events";
5
+ import type { ExportAuditTrailResponse } from "./events";
6
+ import type { ExportAuditTrailRequest } from "./events";
7
+ import type { VerifyChainResponse } from "./events";
8
+ import type { VerifyChainRequest } from "./events";
9
+ import type { GetAuditTrailResponse } from "./events";
10
+ import type { GetAuditTrailRequest } from "./events";
11
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
12
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
13
+ import { EventService } from "./events";
14
+ import type { EventConfig } from "./events";
15
+ import type { Empty } from "../../../google/protobuf/empty";
16
+ import type { AdminEvent } from "./events";
17
+ import type { GetAdminEventRequest } from "./events";
18
+ import type { ListAdminEventsResponse } from "./events";
19
+ import type { ListAdminEventsRequest } from "./events";
20
+ import type { GetUserTimelineRequest } from "./events";
21
+ import type { Event } from "./events";
22
+ import type { GetEventRequest } from "./events";
23
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
24
+ import type { ListEventsResponse } from "./events";
25
+ import type { ListEventsRequest } from "./events";
26
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
27
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
28
+ // ────────────────────────────────────────────────────────────────────────────
29
+ // EventService — user & admin event log, event configuration
30
+ // ────────────────────────────────────────────────────────────────────────────
31
+
32
+ /**
33
+ * ── User Events (Page 9.1) ──
34
+ *
35
+ * @generated from protobuf service sid.v1.admin.EventService
36
+ */
37
+ export interface IEventServiceClient {
38
+ /**
39
+ * @generated from protobuf rpc: ListEvents
40
+ */
41
+ listEvents(input: ListEventsRequest, options?: RpcOptions): UnaryCall<ListEventsRequest, ListEventsResponse>;
42
+ /**
43
+ * @generated from protobuf rpc: GetEvent
44
+ */
45
+ getEvent(input: GetEventRequest, options?: RpcOptions): UnaryCall<GetEventRequest, Event>;
46
+ /**
47
+ * @generated from protobuf rpc: GetUserTimeline
48
+ */
49
+ getUserTimeline(input: GetUserTimelineRequest, options?: RpcOptions): UnaryCall<GetUserTimelineRequest, ListEventsResponse>;
50
+ // ── Admin Events (Page 9.2) ──
51
+
52
+ /**
53
+ * @generated from protobuf rpc: ListAdminEvents
54
+ */
55
+ listAdminEvents(input: ListAdminEventsRequest, options?: RpcOptions): UnaryCall<ListAdminEventsRequest, ListAdminEventsResponse>;
56
+ /**
57
+ * @generated from protobuf rpc: GetAdminEvent
58
+ */
59
+ getAdminEvent(input: GetAdminEventRequest, options?: RpcOptions): UnaryCall<GetAdminEventRequest, AdminEvent>;
60
+ // ── Event Config (Page 9.3) ──
61
+
62
+ /**
63
+ * @generated from protobuf rpc: GetEventConfig
64
+ */
65
+ getEventConfig(input: Empty, options?: RpcOptions): UnaryCall<Empty, EventConfig>;
66
+ /**
67
+ * @generated from protobuf rpc: UpdateEventConfig
68
+ */
69
+ updateEventConfig(input: EventConfig, options?: RpcOptions): UnaryCall<EventConfig, EventConfig>;
70
+ }
71
+ // ────────────────────────────────────────────────────────────────────────────
72
+ // EventService — user & admin event log, event configuration
73
+ // ────────────────────────────────────────────────────────────────────────────
74
+
75
+ /**
76
+ * ── User Events (Page 9.1) ──
77
+ *
78
+ * @generated from protobuf service sid.v1.admin.EventService
79
+ */
80
+ export class EventServiceClient implements IEventServiceClient, ServiceInfo {
81
+ typeName = EventService.typeName;
82
+ methods = EventService.methods;
83
+ options = EventService.options;
84
+ constructor(private readonly _transport: RpcTransport) {
85
+ }
86
+ /**
87
+ * @generated from protobuf rpc: ListEvents
88
+ */
89
+ listEvents(input: ListEventsRequest, options?: RpcOptions): UnaryCall<ListEventsRequest, ListEventsResponse> {
90
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
91
+ return stackIntercept<ListEventsRequest, ListEventsResponse>("unary", this._transport, method, opt, input);
92
+ }
93
+ /**
94
+ * @generated from protobuf rpc: GetEvent
95
+ */
96
+ getEvent(input: GetEventRequest, options?: RpcOptions): UnaryCall<GetEventRequest, Event> {
97
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
98
+ return stackIntercept<GetEventRequest, Event>("unary", this._transport, method, opt, input);
99
+ }
100
+ /**
101
+ * @generated from protobuf rpc: GetUserTimeline
102
+ */
103
+ getUserTimeline(input: GetUserTimelineRequest, options?: RpcOptions): UnaryCall<GetUserTimelineRequest, ListEventsResponse> {
104
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
105
+ return stackIntercept<GetUserTimelineRequest, ListEventsResponse>("unary", this._transport, method, opt, input);
106
+ }
107
+ // ── Admin Events (Page 9.2) ──
108
+
109
+ /**
110
+ * @generated from protobuf rpc: ListAdminEvents
111
+ */
112
+ listAdminEvents(input: ListAdminEventsRequest, options?: RpcOptions): UnaryCall<ListAdminEventsRequest, ListAdminEventsResponse> {
113
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
114
+ return stackIntercept<ListAdminEventsRequest, ListAdminEventsResponse>("unary", this._transport, method, opt, input);
115
+ }
116
+ /**
117
+ * @generated from protobuf rpc: GetAdminEvent
118
+ */
119
+ getAdminEvent(input: GetAdminEventRequest, options?: RpcOptions): UnaryCall<GetAdminEventRequest, AdminEvent> {
120
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
121
+ return stackIntercept<GetAdminEventRequest, AdminEvent>("unary", this._transport, method, opt, input);
122
+ }
123
+ // ── Event Config (Page 9.3) ──
124
+
125
+ /**
126
+ * @generated from protobuf rpc: GetEventConfig
127
+ */
128
+ getEventConfig(input: Empty, options?: RpcOptions): UnaryCall<Empty, EventConfig> {
129
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
130
+ return stackIntercept<Empty, EventConfig>("unary", this._transport, method, opt, input);
131
+ }
132
+ /**
133
+ * @generated from protobuf rpc: UpdateEventConfig
134
+ */
135
+ updateEventConfig(input: EventConfig, options?: RpcOptions): UnaryCall<EventConfig, EventConfig> {
136
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
137
+ return stackIntercept<EventConfig, EventConfig>("unary", this._transport, method, opt, input);
138
+ }
139
+ }
140
+ // ────────────────────────────────────────────────────────────────────────────
141
+ // AuditService — tamper-evident audit trail (Page 23.2)
142
+ // ────────────────────────────────────────────────────────────────────────────
143
+
144
+ /**
145
+ * @generated from protobuf service sid.v1.admin.AuditService
146
+ */
147
+ export interface IAuditServiceClient {
148
+ /**
149
+ * @generated from protobuf rpc: GetAuditTrail
150
+ */
151
+ getAuditTrail(input: GetAuditTrailRequest, options?: RpcOptions): UnaryCall<GetAuditTrailRequest, GetAuditTrailResponse>;
152
+ /**
153
+ * @generated from protobuf rpc: VerifyChain
154
+ */
155
+ verifyChain(input: VerifyChainRequest, options?: RpcOptions): UnaryCall<VerifyChainRequest, VerifyChainResponse>;
156
+ /**
157
+ * @generated from protobuf rpc: ExportAuditTrail
158
+ */
159
+ exportAuditTrail(input: ExportAuditTrailRequest, options?: RpcOptions): UnaryCall<ExportAuditTrailRequest, ExportAuditTrailResponse>;
160
+ }
161
+ // ────────────────────────────────────────────────────────────────────────────
162
+ // AuditService — tamper-evident audit trail (Page 23.2)
163
+ // ────────────────────────────────────────────────────────────────────────────
164
+
165
+ /**
166
+ * @generated from protobuf service sid.v1.admin.AuditService
167
+ */
168
+ export class AuditServiceClient implements IAuditServiceClient, ServiceInfo {
169
+ typeName = AuditService.typeName;
170
+ methods = AuditService.methods;
171
+ options = AuditService.options;
172
+ constructor(private readonly _transport: RpcTransport) {
173
+ }
174
+ /**
175
+ * @generated from protobuf rpc: GetAuditTrail
176
+ */
177
+ getAuditTrail(input: GetAuditTrailRequest, options?: RpcOptions): UnaryCall<GetAuditTrailRequest, GetAuditTrailResponse> {
178
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
179
+ return stackIntercept<GetAuditTrailRequest, GetAuditTrailResponse>("unary", this._transport, method, opt, input);
180
+ }
181
+ /**
182
+ * @generated from protobuf rpc: VerifyChain
183
+ */
184
+ verifyChain(input: VerifyChainRequest, options?: RpcOptions): UnaryCall<VerifyChainRequest, VerifyChainResponse> {
185
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
186
+ return stackIntercept<VerifyChainRequest, VerifyChainResponse>("unary", this._transport, method, opt, input);
187
+ }
188
+ /**
189
+ * @generated from protobuf rpc: ExportAuditTrail
190
+ */
191
+ exportAuditTrail(input: ExportAuditTrailRequest, options?: RpcOptions): UnaryCall<ExportAuditTrailRequest, ExportAuditTrailResponse> {
192
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
193
+ return stackIntercept<ExportAuditTrailRequest, ExportAuditTrailResponse>("unary", this._transport, method, opt, input);
194
+ }
195
+ }