@structured-id/ui-core 2.0.0 → 3.0.0
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/README.md +22 -10
- package/package.json +25 -43
- package/src/components/SidStatusBadge.vue +1 -5
- package/src/composables/useAccountTransport.test.ts +2 -1
- package/src/composables/useGrpc.test.ts +17 -14
- package/src/composables/useGrpc.ts +4 -2
- package/src/index.ts +2 -120
- package/src/profile/components/ConsentManager.vue +5 -1
- package/src/profile/components/ProfileEditor.vue +1 -1
- package/src/profile/components/SecuritySettings.vue +5 -1
- package/src/profile/components/SessionList.vue +2 -1
- package/src/profile/components/SidRegistrationForm.test.ts +173 -1
- package/src/profile/components/SidRegistrationForm.vue +88 -32
- package/src/profile/components/index.ts +1 -4
- package/src/profile/composables/index.ts +1 -0
- package/src/profile/composables/operationPlan.test.ts +155 -0
- package/src/profile/composables/operationPlan.ts +218 -0
- package/src/profile/composables/useAccountApi.ts +4 -4
- package/src/profile/composables/useAuth.test.ts +312 -31
- package/src/profile/composables/useAuth.ts +176 -30
- package/src/profile/composables/useAuthApi.opaque.test.ts +13 -6
- package/src/profile/composables/useAuthApi.ts +40 -18
- package/src/profile/composables/useCurrentPasswordRequirement.test.ts +196 -0
- package/src/profile/composables/useCurrentPasswordRequirement.ts +95 -0
- package/src/profile/composables/useEnrollmentApi.test.ts +7 -3
- package/src/profile/composables/useEnrollmentApi.ts +3 -5
- package/src/profile/composables/useIdentityApi.ts +4 -4
- package/src/profile/composables/useSecurityLevel.test.ts +1 -1
- package/src/profile/composables/useSecurityLevel.ts +1 -1
- package/src/quasar/SidPasswordCeremony.test.ts +253 -0
- package/src/quasar/SidPasswordCeremony.vue +456 -0
- package/src/quasar/index.ts +2 -0
- package/src/utils/rpcRefusal.test.ts +4 -4
- package/src/utils/rpcRefusal.ts +8 -4
- package/dist/browser-vp/index.cjs +0 -349
- package/dist/browser-vp/index.d.cts +0 -276
- package/dist/browser-vp/index.d.ts +0 -276
- package/dist/browser-vp/index.js +0 -349
- package/dist/chunk-C3Q766CY.cjs +0 -125
- package/dist/chunk-J5YXRXB5.js +0 -125
- package/dist/index.cjs +0 -23581
- package/dist/index.d.cts +0 -11539
- package/dist/index.d.ts +0 -11539
- package/dist/index.js +0 -23581
- package/dist/storage-4CB2JTLW.cjs +0 -22
- package/dist/storage-THRWREZP.js +0 -22
- package/src/browser-vp/crypto.ts +0 -253
- package/src/browser-vp/index.test.ts +0 -10
- package/src/browser-vp/index.ts +0 -116
- package/src/browser-vp/prf.ts +0 -179
- package/src/browser-vp/storage.test.ts +0 -9
- package/src/browser-vp/storage.ts +0 -163
- package/src/browser-vp/types.ts +0 -95
- package/src/browser-vp/vp.test.ts +0 -43
- package/src/browser-vp/vp.ts +0 -111
- package/src/generated/google/api/http.ts +0 -687
- package/src/generated/google/api/httpbody.ts +0 -159
- package/src/generated/google/protobuf/any.ts +0 -326
- package/src/generated/google/protobuf/descriptor.ts +0 -4865
- package/src/generated/google/protobuf/duration.ts +0 -230
- package/src/generated/google/protobuf/empty.ts +0 -94
- package/src/generated/google/protobuf/struct.ts +0 -484
- package/src/generated/google/protobuf/timestamp.ts +0 -287
- package/src/generated/google/rpc/error_details.ts +0 -1386
- package/src/generated/google/rpc/status.ts +0 -127
- package/src/generated/sid/v1/account/account.client.ts +0 -527
- package/src/generated/sid/v1/account/account.ts +0 -3261
- package/src/generated/sid/v1/admin/admin.client.ts +0 -139
- package/src/generated/sid/v1/admin/admin.ts +0 -781
- package/src/generated/sid/v1/admin/admin_roles.client.ts +0 -181
- package/src/generated/sid/v1/admin/admin_roles.ts +0 -1606
- package/src/generated/sid/v1/admin/analytics.client.ts +0 -106
- package/src/generated/sid/v1/admin/analytics.ts +0 -1017
- package/src/generated/sid/v1/admin/branding.client.ts +0 -166
- package/src/generated/sid/v1/admin/branding.ts +0 -1906
- package/src/generated/sid/v1/admin/enrollment.client.ts +0 -177
- package/src/generated/sid/v1/admin/enrollment.ts +0 -1766
- package/src/generated/sid/v1/admin/events.client.ts +0 -195
- package/src/generated/sid/v1/admin/events.ts +0 -1900
- package/src/generated/sid/v1/admin/flow.client.ts +0 -183
- package/src/generated/sid/v1/admin/flow.ts +0 -1552
- package/src/generated/sid/v1/admin/keys.client.ts +0 -107
- package/src/generated/sid/v1/admin/keys.ts +0 -931
- package/src/generated/sid/v1/admin/login_experience.client.ts +0 -160
- package/src/generated/sid/v1/admin/login_experience.ts +0 -1061
- package/src/generated/sid/v1/admin/migration.client.ts +0 -127
- package/src/generated/sid/v1/admin/migration.ts +0 -1948
- package/src/generated/sid/v1/admin/notifications.client.ts +0 -134
- package/src/generated/sid/v1/admin/notifications.ts +0 -1273
- package/src/generated/sid/v1/admin/operations.client.ts +0 -241
- package/src/generated/sid/v1/admin/operations.ts +0 -2633
- package/src/generated/sid/v1/admin/organizations.client.ts +0 -57
- package/src/generated/sid/v1/admin/organizations.ts +0 -332
- package/src/generated/sid/v1/admin/provisioning.client.ts +0 -232
- package/src/generated/sid/v1/admin/provisioning.ts +0 -1383
- package/src/generated/sid/v1/admin/scopes.client.ts +0 -171
- package/src/generated/sid/v1/admin/scopes.ts +0 -1324
- package/src/generated/sid/v1/admin/security.client.ts +0 -410
- package/src/generated/sid/v1/admin/security.ts +0 -4077
- package/src/generated/sid/v1/admin/sessions.client.ts +0 -114
- package/src/generated/sid/v1/admin/sessions.ts +0 -923
- package/src/generated/sid/v1/admin/settings.client.ts +0 -351
- package/src/generated/sid/v1/admin/settings.ts +0 -2458
- package/src/generated/sid/v1/admin/user_profile.client.ts +0 -57
- package/src/generated/sid/v1/admin/user_profile.ts +0 -730
- package/src/generated/sid/v1/admin/webhooks.client.ts +0 -269
- package/src/generated/sid/v1/admin/webhooks.ts +0 -2804
- package/src/generated/sid/v1/attestation/attestation.client.ts +0 -115
- package/src/generated/sid/v1/attestation/attestation.ts +0 -813
- package/src/generated/sid/v1/authn/auth.client.ts +0 -943
- package/src/generated/sid/v1/authn/auth.ts +0 -9719
- package/src/generated/sid/v1/authn/flows.client.ts +0 -413
- package/src/generated/sid/v1/authn/flows.ts +0 -3205
- package/src/generated/sid/v1/authn/issuer.client.ts +0 -489
- package/src/generated/sid/v1/authn/issuer.ts +0 -1600
- package/src/generated/sid/v1/authn/password_history.client.ts +0 -57
- package/src/generated/sid/v1/authn/password_history.ts +0 -578
- package/src/generated/sid/v1/authn/system_integration.client.ts +0 -73
- package/src/generated/sid/v1/authn/system_integration.ts +0 -218
- package/src/generated/sid/v1/authz/authz.client.ts +0 -459
- package/src/generated/sid/v1/authz/authz.ts +0 -6524
- package/src/generated/sid/v1/authz/forward_auth.client.ts +0 -97
- package/src/generated/sid/v1/authz/forward_auth.ts +0 -79
- package/src/generated/sid/v1/authz/governance.client.ts +0 -102
- package/src/generated/sid/v1/authz/governance.ts +0 -875
- package/src/generated/sid/v1/common/errors.ts +0 -710
- package/src/generated/sid/v1/common/pagination.ts +0 -152
- package/src/generated/sid/v1/common/transport.ts +0 -227
- package/src/generated/sid/v1/common/types.ts +0 -151
- package/src/generated/sid/v1/events/event_stream.client.ts +0 -67
- package/src/generated/sid/v1/events/event_stream.ts +0 -375
- package/src/generated/sid/v1/federation/upstream.client.ts +0 -142
- package/src/generated/sid/v1/federation/upstream.ts +0 -1736
- package/src/generated/sid/v1/identity/identity.client.ts +0 -467
- package/src/generated/sid/v1/identity/identity.ts +0 -5676
- package/src/generated/sid/v1/ids/ids.ts +0 -395
- package/src/generated/sid/v1/machine/machine_user.client.ts +0 -219
- package/src/generated/sid/v1/machine/machine_user.ts +0 -2364
- package/src/generated/sid/v1/machine/pat.client.ts +0 -130
- package/src/generated/sid/v1/machine/pat.ts +0 -1083
- package/src/generated/sid/v1/projects/projects.client.ts +0 -404
- package/src/generated/sid/v1/projects/projects.ts +0 -4446
- package/src/generated/sid/v1/scim/scim.client.ts +0 -520
- package/src/generated/sid/v1/scim/scim.ts +0 -3182
- package/src/generated/sid/v1/test/test.client.ts +0 -232
- package/src/generated/sid/v1/test/test.ts +0 -1136
- package/src/transport/adaptive.test.ts +0 -728
- package/src/transport/adaptive.ts +0 -308
- package/src/transport/framing.test.ts +0 -227
- package/src/transport/framing.ts +0 -98
- package/src/transport/webtransport.test.ts +0 -728
- package/src/transport/webtransport.ts +0 -323
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authz/forward_auth.proto" (package "sid.v1.authz", 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 { ForwardAuthService } from "./forward_auth";
|
|
7
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
-
import type { HttpBody } from "../../../google/api/httpbody";
|
|
9
|
-
import type { VerifyRequest } from "./forward_auth";
|
|
10
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf service sid.v1.authz.ForwardAuthService
|
|
14
|
-
*/
|
|
15
|
-
export interface IForwardAuthServiceClient {
|
|
16
|
-
/**
|
|
17
|
-
* Decide whether the original request may reach `application`.
|
|
18
|
-
*
|
|
19
|
-
* The reverse proxy sub-requests `/auth/verify/{application}` with the
|
|
20
|
-
* original request's method, so the rule binds every method. The
|
|
21
|
-
* application comes from the address the proxy is configured with, never
|
|
22
|
-
* from anything the client sends; it names a protected application of the
|
|
23
|
-
* route configuration, which pins the registered resource (exact issuer
|
|
24
|
-
* and resource indicator) its access tokens must be issued for.
|
|
25
|
-
*
|
|
26
|
-
* Request metadata, as the proxy forwards the original request:
|
|
27
|
-
* `authorization` (`Bearer`, RFC 6750 §2.1, or `DPoP`, RFC 9449 §7.1),
|
|
28
|
-
* `dpop` (the proof, RFC 9449 §4), `x-original-uri` or `x-forwarded-uri`
|
|
29
|
-
* (path and query), `x-original-method` or `x-forwarded-method`.
|
|
30
|
-
*
|
|
31
|
-
* The decision is the HTTP answer the proxy acts on, carried in the
|
|
32
|
-
* `x-http-code` response metadata with an empty body:
|
|
33
|
-
* - 200: allowed; response metadata carries the identity headers of the
|
|
34
|
-
* route (`x-forwarded-user` = the token's recipient-scoped `sub`,
|
|
35
|
-
* `x-auth-request-*` for disclosed claims), which the proxy copies to
|
|
36
|
-
* the upstream request after removing any client-supplied copies;
|
|
37
|
-
* - 401: no acceptable access token for this application, with
|
|
38
|
-
* `www-authenticate` (a DPoP challenge when a sender constraint failed,
|
|
39
|
-
* RFC 9449 §7.1) and, when a login URL is configured, `location`;
|
|
40
|
-
* - 403: authenticated but not allowed, or the application's resource is
|
|
41
|
-
* not registered or not active.
|
|
42
|
-
* An application not in the route configuration is NOT_FOUND (ErrorInfo
|
|
43
|
-
* reason FORWARD_AUTH_APPLICATION_NOT_FOUND, ResourceInfo naming it); a
|
|
44
|
-
* registry or revocation check that cannot be answered is UNAVAILABLE. The
|
|
45
|
-
* proxy denies on both.
|
|
46
|
-
*
|
|
47
|
-
* @generated from protobuf rpc: Verify
|
|
48
|
-
*/
|
|
49
|
-
verify(input: VerifyRequest, options?: RpcOptions): UnaryCall<VerifyRequest, HttpBody>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @generated from protobuf service sid.v1.authz.ForwardAuthService
|
|
53
|
-
*/
|
|
54
|
-
export class ForwardAuthServiceClient implements IForwardAuthServiceClient, ServiceInfo {
|
|
55
|
-
typeName = ForwardAuthService.typeName;
|
|
56
|
-
methods = ForwardAuthService.methods;
|
|
57
|
-
options = ForwardAuthService.options;
|
|
58
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Decide whether the original request may reach `application`.
|
|
62
|
-
*
|
|
63
|
-
* The reverse proxy sub-requests `/auth/verify/{application}` with the
|
|
64
|
-
* original request's method, so the rule binds every method. The
|
|
65
|
-
* application comes from the address the proxy is configured with, never
|
|
66
|
-
* from anything the client sends; it names a protected application of the
|
|
67
|
-
* route configuration, which pins the registered resource (exact issuer
|
|
68
|
-
* and resource indicator) its access tokens must be issued for.
|
|
69
|
-
*
|
|
70
|
-
* Request metadata, as the proxy forwards the original request:
|
|
71
|
-
* `authorization` (`Bearer`, RFC 6750 §2.1, or `DPoP`, RFC 9449 §7.1),
|
|
72
|
-
* `dpop` (the proof, RFC 9449 §4), `x-original-uri` or `x-forwarded-uri`
|
|
73
|
-
* (path and query), `x-original-method` or `x-forwarded-method`.
|
|
74
|
-
*
|
|
75
|
-
* The decision is the HTTP answer the proxy acts on, carried in the
|
|
76
|
-
* `x-http-code` response metadata with an empty body:
|
|
77
|
-
* - 200: allowed; response metadata carries the identity headers of the
|
|
78
|
-
* route (`x-forwarded-user` = the token's recipient-scoped `sub`,
|
|
79
|
-
* `x-auth-request-*` for disclosed claims), which the proxy copies to
|
|
80
|
-
* the upstream request after removing any client-supplied copies;
|
|
81
|
-
* - 401: no acceptable access token for this application, with
|
|
82
|
-
* `www-authenticate` (a DPoP challenge when a sender constraint failed,
|
|
83
|
-
* RFC 9449 §7.1) and, when a login URL is configured, `location`;
|
|
84
|
-
* - 403: authenticated but not allowed, or the application's resource is
|
|
85
|
-
* not registered or not active.
|
|
86
|
-
* An application not in the route configuration is NOT_FOUND (ErrorInfo
|
|
87
|
-
* reason FORWARD_AUTH_APPLICATION_NOT_FOUND, ResourceInfo naming it); a
|
|
88
|
-
* registry or revocation check that cannot be answered is UNAVAILABLE. The
|
|
89
|
-
* proxy denies on both.
|
|
90
|
-
*
|
|
91
|
-
* @generated from protobuf rpc: Verify
|
|
92
|
-
*/
|
|
93
|
-
verify(input: VerifyRequest, options?: RpcOptions): UnaryCall<VerifyRequest, HttpBody> {
|
|
94
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
95
|
-
return stackIntercept<VerifyRequest, HttpBody>("unary", this._transport, method, opt, input);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authz/forward_auth.proto" (package "sid.v1.authz", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { HttpBody } from "../../../google/api/httpbody";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
/**
|
|
16
|
-
* @generated from protobuf message sid.v1.authz.VerifyRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface VerifyRequest {
|
|
19
|
-
/**
|
|
20
|
-
* Name of the protected application in the route configuration: letters,
|
|
21
|
-
* digits, '-' and '_'. Set by the reverse proxy's configured address.
|
|
22
|
-
*
|
|
23
|
-
* @generated from protobuf field: string application = 1
|
|
24
|
-
*/
|
|
25
|
-
application: string;
|
|
26
|
-
}
|
|
27
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
28
|
-
class VerifyRequest$Type extends MessageType<VerifyRequest> {
|
|
29
|
-
constructor() {
|
|
30
|
-
super("sid.v1.authz.VerifyRequest", [
|
|
31
|
-
{ no: 1, name: "application", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
32
|
-
]);
|
|
33
|
-
}
|
|
34
|
-
create(value?: PartialMessage<VerifyRequest>): VerifyRequest {
|
|
35
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
36
|
-
message.application = "";
|
|
37
|
-
if (value !== undefined)
|
|
38
|
-
reflectionMergePartial<VerifyRequest>(this, message, value);
|
|
39
|
-
return message;
|
|
40
|
-
}
|
|
41
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VerifyRequest): VerifyRequest {
|
|
42
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
43
|
-
while (reader.pos < end) {
|
|
44
|
-
let [fieldNo, wireType] = reader.tag();
|
|
45
|
-
switch (fieldNo) {
|
|
46
|
-
case /* string application */ 1:
|
|
47
|
-
message.application = reader.string();
|
|
48
|
-
break;
|
|
49
|
-
default:
|
|
50
|
-
let u = options.readUnknownField;
|
|
51
|
-
if (u === "throw")
|
|
52
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
53
|
-
let d = reader.skip(wireType);
|
|
54
|
-
if (u !== false)
|
|
55
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return message;
|
|
59
|
-
}
|
|
60
|
-
internalBinaryWrite(message: VerifyRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
61
|
-
/* string application = 1; */
|
|
62
|
-
if (message.application !== "")
|
|
63
|
-
writer.tag(1, WireType.LengthDelimited).string(message.application);
|
|
64
|
-
let u = options.writeUnknownFields;
|
|
65
|
-
if (u !== false)
|
|
66
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
67
|
-
return writer;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @generated MessageType for protobuf message sid.v1.authz.VerifyRequest
|
|
72
|
-
*/
|
|
73
|
-
export const VerifyRequest = new VerifyRequest$Type();
|
|
74
|
-
/**
|
|
75
|
-
* @generated ServiceType for protobuf service sid.v1.authz.ForwardAuthService
|
|
76
|
-
*/
|
|
77
|
-
export const ForwardAuthService = new ServiceType("sid.v1.authz.ForwardAuthService", [
|
|
78
|
-
{ name: "Verify", options: { "google.api.http": { custom: { kind: "*", path: "/auth/verify/{application}" } } }, I: VerifyRequest, O: HttpBody }
|
|
79
|
-
]);
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authz/governance.proto" (package "sid.v1.authz", 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 { GovernanceService } from "./governance";
|
|
7
|
-
import type { GrantTemporaryRoleResponse } from "./governance";
|
|
8
|
-
import type { GrantTemporaryRoleRequest } from "./governance";
|
|
9
|
-
import type { DecideRequestResponse } from "./governance";
|
|
10
|
-
import type { DecideRequestRequest } from "./governance";
|
|
11
|
-
import type { ListPendingRequestsResponse } from "./governance";
|
|
12
|
-
import type { ListPendingRequestsRequest } from "./governance";
|
|
13
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
14
|
-
import type { AccessRequestResponse } from "./governance";
|
|
15
|
-
import type { AccessRequestMessage } from "./governance";
|
|
16
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
17
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
18
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
19
|
-
// GovernanceService: access lifecycle (4 RPCs)
|
|
20
|
-
// SoD checks + role assignment listing → AuthzService (authz.proto)
|
|
21
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf service sid.v1.authz.GovernanceService
|
|
25
|
-
*/
|
|
26
|
-
export interface IGovernanceServiceClient {
|
|
27
|
-
/**
|
|
28
|
-
* Request access to a role/permission.
|
|
29
|
-
*
|
|
30
|
-
* @generated from protobuf rpc: RequestAccess
|
|
31
|
-
*/
|
|
32
|
-
requestAccess(input: AccessRequestMessage, options?: RpcOptions): UnaryCall<AccessRequestMessage, AccessRequestResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* List pending access requests (for approver dashboard).
|
|
35
|
-
*
|
|
36
|
-
* @generated from protobuf rpc: ListPendingRequests
|
|
37
|
-
*/
|
|
38
|
-
listPendingRequests(input: ListPendingRequestsRequest, options?: RpcOptions): UnaryCall<ListPendingRequestsRequest, ListPendingRequestsResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* Approve or deny an access request.
|
|
41
|
-
*
|
|
42
|
-
* @generated from protobuf rpc: DecideRequest
|
|
43
|
-
*/
|
|
44
|
-
decideRequest(input: DecideRequestRequest, options?: RpcOptions): UnaryCall<DecideRequestRequest, DecideRequestResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Grant temporary role with auto-expiry.
|
|
47
|
-
*
|
|
48
|
-
* @generated from protobuf rpc: GrantTemporaryRole
|
|
49
|
-
*/
|
|
50
|
-
grantTemporaryRole(input: GrantTemporaryRoleRequest, options?: RpcOptions): UnaryCall<GrantTemporaryRoleRequest, GrantTemporaryRoleResponse>;
|
|
51
|
-
}
|
|
52
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
53
|
-
// GovernanceService: access lifecycle (4 RPCs)
|
|
54
|
-
// SoD checks + role assignment listing → AuthzService (authz.proto)
|
|
55
|
-
// ────────────────────────────────────────────────────────────────────────────
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @generated from protobuf service sid.v1.authz.GovernanceService
|
|
59
|
-
*/
|
|
60
|
-
export class GovernanceServiceClient implements IGovernanceServiceClient, ServiceInfo {
|
|
61
|
-
typeName = GovernanceService.typeName;
|
|
62
|
-
methods = GovernanceService.methods;
|
|
63
|
-
options = GovernanceService.options;
|
|
64
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Request access to a role/permission.
|
|
68
|
-
*
|
|
69
|
-
* @generated from protobuf rpc: RequestAccess
|
|
70
|
-
*/
|
|
71
|
-
requestAccess(input: AccessRequestMessage, options?: RpcOptions): UnaryCall<AccessRequestMessage, AccessRequestResponse> {
|
|
72
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
73
|
-
return stackIntercept<AccessRequestMessage, AccessRequestResponse>("unary", this._transport, method, opt, input);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* List pending access requests (for approver dashboard).
|
|
77
|
-
*
|
|
78
|
-
* @generated from protobuf rpc: ListPendingRequests
|
|
79
|
-
*/
|
|
80
|
-
listPendingRequests(input: ListPendingRequestsRequest, options?: RpcOptions): UnaryCall<ListPendingRequestsRequest, ListPendingRequestsResponse> {
|
|
81
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
82
|
-
return stackIntercept<ListPendingRequestsRequest, ListPendingRequestsResponse>("unary", this._transport, method, opt, input);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Approve or deny an access request.
|
|
86
|
-
*
|
|
87
|
-
* @generated from protobuf rpc: DecideRequest
|
|
88
|
-
*/
|
|
89
|
-
decideRequest(input: DecideRequestRequest, options?: RpcOptions): UnaryCall<DecideRequestRequest, DecideRequestResponse> {
|
|
90
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
91
|
-
return stackIntercept<DecideRequestRequest, DecideRequestResponse>("unary", this._transport, method, opt, input);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Grant temporary role with auto-expiry.
|
|
95
|
-
*
|
|
96
|
-
* @generated from protobuf rpc: GrantTemporaryRole
|
|
97
|
-
*/
|
|
98
|
-
grantTemporaryRole(input: GrantTemporaryRoleRequest, options?: RpcOptions): UnaryCall<GrantTemporaryRoleRequest, GrantTemporaryRoleResponse> {
|
|
99
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
100
|
-
return stackIntercept<GrantTemporaryRoleRequest, GrantTemporaryRoleResponse>("unary", this._transport, method, opt, input);
|
|
101
|
-
}
|
|
102
|
-
}
|