@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.
- package/LICENSE +661 -0
- package/README.md +47 -0
- package/dist/browser-vp/index.cjs +349 -0
- package/dist/browser-vp/index.d.cts +287 -0
- package/dist/browser-vp/index.d.ts +287 -0
- package/dist/browser-vp/index.js +349 -0
- package/dist/chunk-C3Q766CY.cjs +125 -0
- package/dist/chunk-J5YXRXB5.js +125 -0
- package/dist/index.cjs +19360 -0
- package/dist/index.d.cts +9536 -0
- package/dist/index.d.ts +9536 -0
- package/dist/index.js +19360 -0
- package/dist/storage-4CB2JTLW.cjs +22 -0
- package/dist/storage-THRWREZP.js +22 -0
- package/package.json +93 -0
- package/src/browser-vp/crypto.ts +254 -0
- package/src/browser-vp/index.test.ts +10 -0
- package/src/browser-vp/index.ts +118 -0
- package/src/browser-vp/prf.ts +181 -0
- package/src/browser-vp/storage.test.ts +9 -0
- package/src/browser-vp/storage.ts +165 -0
- package/src/browser-vp/types.ts +97 -0
- package/src/browser-vp/vp.test.ts +43 -0
- package/src/browser-vp/vp.ts +113 -0
- package/src/components/SidAvatar.vue +106 -0
- package/src/components/SidConfirmDialog.vue +125 -0
- package/src/components/SidStatusBadge.vue +71 -0
- package/src/components/index.ts +5 -0
- package/src/composables/index.ts +10 -0
- package/src/composables/useAuth.ts +40 -0
- package/src/composables/useBffAuth.ts +147 -0
- package/src/composables/useGrpc.test.ts +196 -0
- package/src/composables/useGrpc.ts +120 -0
- package/src/composables/useSession.ts +80 -0
- package/src/generated/google/api/http.ts +687 -0
- package/src/generated/google/protobuf/descriptor.ts +4865 -0
- package/src/generated/google/protobuf/duration.ts +230 -0
- package/src/generated/google/protobuf/empty.ts +94 -0
- package/src/generated/google/protobuf/struct.ts +484 -0
- package/src/generated/google/protobuf/timestamp.ts +287 -0
- package/src/generated/sid/v1/account/account.client.ts +527 -0
- package/src/generated/sid/v1/account/account.ts +3261 -0
- package/src/generated/sid/v1/admin/admin.client.ts +136 -0
- package/src/generated/sid/v1/admin/admin.ts +846 -0
- package/src/generated/sid/v1/admin/admin_roles.client.ts +181 -0
- package/src/generated/sid/v1/admin/admin_roles.ts +1606 -0
- package/src/generated/sid/v1/admin/analytics.client.ts +106 -0
- package/src/generated/sid/v1/admin/analytics.ts +1017 -0
- package/src/generated/sid/v1/admin/branding.client.ts +166 -0
- package/src/generated/sid/v1/admin/branding.ts +1906 -0
- package/src/generated/sid/v1/admin/enrollment.client.ts +165 -0
- package/src/generated/sid/v1/admin/enrollment.ts +1704 -0
- package/src/generated/sid/v1/admin/events.client.ts +195 -0
- package/src/generated/sid/v1/admin/events.ts +1900 -0
- package/src/generated/sid/v1/admin/flow.client.ts +183 -0
- package/src/generated/sid/v1/admin/flow.ts +1552 -0
- package/src/generated/sid/v1/admin/keys.client.ts +107 -0
- package/src/generated/sid/v1/admin/keys.ts +931 -0
- package/src/generated/sid/v1/admin/login_experience.client.ts +160 -0
- package/src/generated/sid/v1/admin/login_experience.ts +1061 -0
- package/src/generated/sid/v1/admin/migration.client.ts +127 -0
- package/src/generated/sid/v1/admin/migration.ts +1948 -0
- package/src/generated/sid/v1/admin/notifications.client.ts +128 -0
- package/src/generated/sid/v1/admin/notifications.ts +1332 -0
- package/src/generated/sid/v1/admin/operations.client.ts +241 -0
- package/src/generated/sid/v1/admin/operations.ts +2648 -0
- package/src/generated/sid/v1/admin/organizations.client.ts +57 -0
- package/src/generated/sid/v1/admin/organizations.ts +349 -0
- package/src/generated/sid/v1/admin/scopes.client.ts +171 -0
- package/src/generated/sid/v1/admin/scopes.ts +1324 -0
- package/src/generated/sid/v1/admin/security.client.ts +412 -0
- package/src/generated/sid/v1/admin/security.ts +4086 -0
- package/src/generated/sid/v1/admin/sessions.client.ts +114 -0
- package/src/generated/sid/v1/admin/sessions.ts +923 -0
- package/src/generated/sid/v1/admin/settings.client.ts +340 -0
- package/src/generated/sid/v1/admin/settings.ts +2395 -0
- package/src/generated/sid/v1/admin/user_profile.client.ts +57 -0
- package/src/generated/sid/v1/admin/user_profile.ts +730 -0
- package/src/generated/sid/v1/admin/webhooks.client.ts +269 -0
- package/src/generated/sid/v1/admin/webhooks.ts +2804 -0
- package/src/generated/sid/v1/attestation/attestation.client.ts +115 -0
- package/src/generated/sid/v1/attestation/attestation.ts +813 -0
- package/src/generated/sid/v1/authn/auth.client.ts +900 -0
- package/src/generated/sid/v1/authn/auth.ts +9287 -0
- package/src/generated/sid/v1/authn/flows.client.ts +413 -0
- package/src/generated/sid/v1/authn/flows.ts +3217 -0
- package/src/generated/sid/v1/authz/authz.client.ts +459 -0
- package/src/generated/sid/v1/authz/authz.ts +5343 -0
- package/src/generated/sid/v1/authz/governance.client.ts +102 -0
- package/src/generated/sid/v1/authz/governance.ts +818 -0
- package/src/generated/sid/v1/common/errors.ts +184 -0
- package/src/generated/sid/v1/common/pagination.ts +152 -0
- package/src/generated/sid/v1/common/transport.ts +227 -0
- package/src/generated/sid/v1/common/types.ts +151 -0
- package/src/generated/sid/v1/events/event_stream.client.ts +67 -0
- package/src/generated/sid/v1/events/event_stream.ts +374 -0
- package/src/generated/sid/v1/federation/upstream.client.ts +142 -0
- package/src/generated/sid/v1/federation/upstream.ts +1736 -0
- package/src/generated/sid/v1/identity/identity.client.ts +467 -0
- package/src/generated/sid/v1/identity/identity.ts +5613 -0
- package/src/generated/sid/v1/machine/machine_user.client.ts +219 -0
- package/src/generated/sid/v1/machine/machine_user.ts +2400 -0
- package/src/generated/sid/v1/machine/pat.client.ts +147 -0
- package/src/generated/sid/v1/machine/pat.ts +1268 -0
- package/src/generated/sid/v1/projects/projects.client.ts +286 -0
- package/src/generated/sid/v1/projects/projects.ts +2714 -0
- package/src/generated/sid/v1/scim/scim.client.ts +274 -0
- package/src/generated/sid/v1/scim/scim.ts +3043 -0
- package/src/generated/sid/v1/test/test.client.ts +232 -0
- package/src/generated/sid/v1/test/test.ts +1136 -0
- package/src/i18n/index.ts +40 -0
- package/src/index.ts +157 -0
- package/src/profile/auth.ts +15 -0
- package/src/profile/components/ConsentManager.vue +88 -0
- package/src/profile/components/ProfileEditor.vue +146 -0
- package/src/profile/components/SecuritySettings.vue +170 -0
- package/src/profile/components/SessionList.vue +100 -0
- package/src/profile/components/SidLoginForm.test.ts +80 -0
- package/src/profile/components/SidLoginForm.vue +230 -0
- package/src/profile/components/SidMfaChallenge.test.ts +127 -0
- package/src/profile/components/SidMfaChallenge.vue +243 -0
- package/src/profile/components/SidRegistrationForm.test.ts +79 -0
- package/src/profile/components/SidRegistrationForm.vue +317 -0
- package/src/profile/components/index.ts +11 -0
- package/src/profile/composables/index.ts +6 -0
- package/src/profile/composables/useAccountApi.ts +203 -0
- package/src/profile/composables/useAuthApi.opaque.test.ts +140 -0
- package/src/profile/composables/useAuthApi.ts +617 -0
- package/src/profile/composables/useIdentityApi.ts +123 -0
- package/src/profile/composables/useLoginSuccess.test.ts +112 -0
- package/src/profile/composables/useLoginSuccess.ts +65 -0
- package/src/profile/composables/useOpaqueAuth.test.ts +290 -0
- package/src/profile/composables/useOpaqueAuth.ts +191 -0
- package/src/profile/composables/useSecurityLevel.test.ts +198 -0
- package/src/profile/composables/useSecurityLevel.ts +324 -0
- package/src/profile/index.ts +18 -0
- package/src/quasar/SidPrincipalInput.vue +209 -0
- package/src/quasar/index.ts +8 -0
- package/src/stores/auth.test.ts +83 -0
- package/src/stores/auth.ts +92 -0
- package/src/stores/index.ts +1 -0
- package/src/transport/adaptive.test.ts +728 -0
- package/src/transport/adaptive.ts +308 -0
- package/src/transport/framing.test.ts +227 -0
- package/src/transport/framing.ts +98 -0
- package/src/transport/webtransport.test.ts +728 -0
- package/src/transport/webtransport.ts +323 -0
- package/src/types/auth.ts +58 -0
- package/src/types/index.ts +1 -0
- package/src/utils/formatters.test.ts +26 -0
- package/src/utils/formatters.ts +69 -0
- package/src/utils/index.ts +16 -0
- package/src/utils/normalizePrincipal.test.ts +188 -0
- package/src/utils/normalizePrincipal.ts +159 -0
- package/src/utils/validators.test.ts +75 -0
- package/src/utils/validators.ts +36 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
+
// @generated from protobuf file "sid/v1/admin/admin.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
|
+
import { AdminService } from "./admin";
|
|
7
|
+
import type { Empty } from "../../../google/protobuf/empty";
|
|
8
|
+
import type { DeleteProfileMetadataRequest } from "./admin";
|
|
9
|
+
import type { SetProfileMetadataRequest } from "./admin";
|
|
10
|
+
import type { ProfileMetadataEntry } from "./admin";
|
|
11
|
+
import type { GetProfileMetadataRequest } from "./admin";
|
|
12
|
+
import type { ListProfileMetadataResponse } from "./admin";
|
|
13
|
+
import type { ListProfileMetadataRequest } from "./admin";
|
|
14
|
+
import type { RevokeAllSessionsResponse } from "./admin";
|
|
15
|
+
import type { RevokeAllSessionsRequest } from "./admin";
|
|
16
|
+
import type { AdminUpdateProfileResponse } from "./admin";
|
|
17
|
+
import type { AdminUpdateProfileRequest } from "./admin";
|
|
18
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
19
|
+
import type { BootstrapResponse } from "./admin";
|
|
20
|
+
import type { BootstrapRequest } from "./admin";
|
|
21
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
22
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
23
|
+
/**
|
|
24
|
+
* AdminService provides privileged operations for instance administrators.
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf service sid.v1.admin.AdminService
|
|
27
|
+
*/
|
|
28
|
+
export interface IAdminServiceClient {
|
|
29
|
+
/**
|
|
30
|
+
* Create the first admin profile. Only works when no admin profiles exist.
|
|
31
|
+
* No authentication required — returns ALREADY_EXISTS if admin exists.
|
|
32
|
+
*
|
|
33
|
+
* @generated from protobuf rpc: Bootstrap
|
|
34
|
+
*/
|
|
35
|
+
bootstrap(input: BootstrapRequest, options?: RpcOptions): UnaryCall<BootstrapRequest, BootstrapResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Update a profile with admin-only fields (status, roles, email verification).
|
|
38
|
+
*
|
|
39
|
+
* @generated from protobuf rpc: AdminUpdateProfile
|
|
40
|
+
*/
|
|
41
|
+
adminUpdateProfile(input: AdminUpdateProfileRequest, options?: RpcOptions): UnaryCall<AdminUpdateProfileRequest, AdminUpdateProfileResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Revoke all sessions for a profile (force logout).
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf rpc: RevokeAllSessions
|
|
46
|
+
*/
|
|
47
|
+
revokeAllSessions(input: RevokeAllSessionsRequest, options?: RpcOptions): UnaryCall<RevokeAllSessionsRequest, RevokeAllSessionsResponse>;
|
|
48
|
+
// ── Profile Metadata (free-form key-value storage) ──
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf rpc: ListProfileMetadata
|
|
52
|
+
*/
|
|
53
|
+
listProfileMetadata(input: ListProfileMetadataRequest, options?: RpcOptions): UnaryCall<ListProfileMetadataRequest, ListProfileMetadataResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* @generated from protobuf rpc: GetProfileMetadata
|
|
56
|
+
*/
|
|
57
|
+
getProfileMetadata(input: GetProfileMetadataRequest, options?: RpcOptions): UnaryCall<GetProfileMetadataRequest, ProfileMetadataEntry>;
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf rpc: SetProfileMetadata
|
|
60
|
+
*/
|
|
61
|
+
setProfileMetadata(input: SetProfileMetadataRequest, options?: RpcOptions): UnaryCall<SetProfileMetadataRequest, ProfileMetadataEntry>;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf rpc: DeleteProfileMetadata
|
|
64
|
+
*/
|
|
65
|
+
deleteProfileMetadata(input: DeleteProfileMetadataRequest, options?: RpcOptions): UnaryCall<DeleteProfileMetadataRequest, Empty>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* AdminService provides privileged operations for instance administrators.
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf service sid.v1.admin.AdminService
|
|
71
|
+
*/
|
|
72
|
+
export class AdminServiceClient implements IAdminServiceClient, ServiceInfo {
|
|
73
|
+
typeName = AdminService.typeName;
|
|
74
|
+
methods = AdminService.methods;
|
|
75
|
+
options = AdminService.options;
|
|
76
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create the first admin profile. Only works when no admin profiles exist.
|
|
80
|
+
* No authentication required — returns ALREADY_EXISTS if admin exists.
|
|
81
|
+
*
|
|
82
|
+
* @generated from protobuf rpc: Bootstrap
|
|
83
|
+
*/
|
|
84
|
+
bootstrap(input: BootstrapRequest, options?: RpcOptions): UnaryCall<BootstrapRequest, BootstrapResponse> {
|
|
85
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
86
|
+
return stackIntercept<BootstrapRequest, BootstrapResponse>("unary", this._transport, method, opt, input);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Update a profile with admin-only fields (status, roles, email verification).
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf rpc: AdminUpdateProfile
|
|
92
|
+
*/
|
|
93
|
+
adminUpdateProfile(input: AdminUpdateProfileRequest, options?: RpcOptions): UnaryCall<AdminUpdateProfileRequest, AdminUpdateProfileResponse> {
|
|
94
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
95
|
+
return stackIntercept<AdminUpdateProfileRequest, AdminUpdateProfileResponse>("unary", this._transport, method, opt, input);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Revoke all sessions for a profile (force logout).
|
|
99
|
+
*
|
|
100
|
+
* @generated from protobuf rpc: RevokeAllSessions
|
|
101
|
+
*/
|
|
102
|
+
revokeAllSessions(input: RevokeAllSessionsRequest, options?: RpcOptions): UnaryCall<RevokeAllSessionsRequest, RevokeAllSessionsResponse> {
|
|
103
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
104
|
+
return stackIntercept<RevokeAllSessionsRequest, RevokeAllSessionsResponse>("unary", this._transport, method, opt, input);
|
|
105
|
+
}
|
|
106
|
+
// ── Profile Metadata (free-form key-value storage) ──
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf rpc: ListProfileMetadata
|
|
110
|
+
*/
|
|
111
|
+
listProfileMetadata(input: ListProfileMetadataRequest, options?: RpcOptions): UnaryCall<ListProfileMetadataRequest, ListProfileMetadataResponse> {
|
|
112
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
113
|
+
return stackIntercept<ListProfileMetadataRequest, ListProfileMetadataResponse>("unary", this._transport, method, opt, input);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @generated from protobuf rpc: GetProfileMetadata
|
|
117
|
+
*/
|
|
118
|
+
getProfileMetadata(input: GetProfileMetadataRequest, options?: RpcOptions): UnaryCall<GetProfileMetadataRequest, ProfileMetadataEntry> {
|
|
119
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
120
|
+
return stackIntercept<GetProfileMetadataRequest, ProfileMetadataEntry>("unary", this._transport, method, opt, input);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf rpc: SetProfileMetadata
|
|
124
|
+
*/
|
|
125
|
+
setProfileMetadata(input: SetProfileMetadataRequest, options?: RpcOptions): UnaryCall<SetProfileMetadataRequest, ProfileMetadataEntry> {
|
|
126
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
127
|
+
return stackIntercept<SetProfileMetadataRequest, ProfileMetadataEntry>("unary", this._transport, method, opt, input);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @generated from protobuf rpc: DeleteProfileMetadata
|
|
131
|
+
*/
|
|
132
|
+
deleteProfileMetadata(input: DeleteProfileMetadataRequest, options?: RpcOptions): UnaryCall<DeleteProfileMetadataRequest, Empty> {
|
|
133
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
134
|
+
return stackIntercept<DeleteProfileMetadataRequest, Empty>("unary", this._transport, method, opt, input);
|
|
135
|
+
}
|
|
136
|
+
}
|