@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,73 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authn/system_integration.proto" (package "sid.v1.authn", 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 { SystemIntegrationService } from "./system_integration";
|
|
7
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
8
|
-
import type { AccountConnection } from "./system_integration";
|
|
9
|
-
import type { GetAccountConnectionRequest } from "./system_integration";
|
|
10
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
11
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
12
|
-
/**
|
|
13
|
-
* SystemIntegrationService gives a system integration's backend its
|
|
14
|
-
* connection details, so an operator never copies issuer handles or client
|
|
15
|
-
* identifiers by hand.
|
|
16
|
-
*
|
|
17
|
-
* Internal only, no HTTP annotation: the account BFF calls it over the
|
|
18
|
-
* deployment's gRPC channel to SID.
|
|
19
|
-
*
|
|
20
|
-
* @generated from protobuf service sid.v1.authn.SystemIntegrationService
|
|
21
|
-
*/
|
|
22
|
-
export interface ISystemIntegrationServiceClient {
|
|
23
|
-
/**
|
|
24
|
-
* The connection details of the account integration (SID's own account
|
|
25
|
-
* UI), for its BFF. The request proves possession of one of the account
|
|
26
|
-
* client's registered keys; the answer is public metadata only, no secret
|
|
27
|
-
* is distributed and the private key never leaves the BFF.
|
|
28
|
-
*
|
|
29
|
-
* An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED
|
|
30
|
-
* (TOKEN_INVALID). An integration that is not provisioned, or whose client
|
|
31
|
-
* an administrator disabled, is FAILED_PRECONDITION
|
|
32
|
-
* (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no
|
|
33
|
-
* sign-in until it is.
|
|
34
|
-
*
|
|
35
|
-
* @generated from protobuf rpc: GetAccountConnection
|
|
36
|
-
*/
|
|
37
|
-
getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection>;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* SystemIntegrationService gives a system integration's backend its
|
|
41
|
-
* connection details, so an operator never copies issuer handles or client
|
|
42
|
-
* identifiers by hand.
|
|
43
|
-
*
|
|
44
|
-
* Internal only, no HTTP annotation: the account BFF calls it over the
|
|
45
|
-
* deployment's gRPC channel to SID.
|
|
46
|
-
*
|
|
47
|
-
* @generated from protobuf service sid.v1.authn.SystemIntegrationService
|
|
48
|
-
*/
|
|
49
|
-
export class SystemIntegrationServiceClient implements ISystemIntegrationServiceClient, ServiceInfo {
|
|
50
|
-
typeName = SystemIntegrationService.typeName;
|
|
51
|
-
methods = SystemIntegrationService.methods;
|
|
52
|
-
options = SystemIntegrationService.options;
|
|
53
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* The connection details of the account integration (SID's own account
|
|
57
|
-
* UI), for its BFF. The request proves possession of one of the account
|
|
58
|
-
* client's registered keys; the answer is public metadata only, no secret
|
|
59
|
-
* is distributed and the private key never leaves the BFF.
|
|
60
|
-
*
|
|
61
|
-
* An invalid, expired, replayed or unregistered proof is UNAUTHENTICATED
|
|
62
|
-
* (TOKEN_INVALID). An integration that is not provisioned, or whose client
|
|
63
|
-
* an administrator disabled, is FAILED_PRECONDITION
|
|
64
|
-
* (SYSTEM_INTEGRATION_UNAVAILABLE): the BFF is not ready and serves no
|
|
65
|
-
* sign-in until it is.
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf rpc: GetAccountConnection
|
|
68
|
-
*/
|
|
69
|
-
getAccountConnection(input: GetAccountConnectionRequest, options?: RpcOptions): UnaryCall<GetAccountConnectionRequest, AccountConnection> {
|
|
70
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
71
|
-
return stackIntercept<GetAccountConnectionRequest, AccountConnection>("unary", this._transport, method, opt, input);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authn/system_integration.proto" (package "sid.v1.authn", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
7
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
8
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
10
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
11
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
14
|
-
/**
|
|
15
|
-
* @generated from protobuf message sid.v1.authn.GetAccountConnectionRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface GetAccountConnectionRequest {
|
|
18
|
-
/**
|
|
19
|
-
* A JWT (RFC 7519) the BFF signs, per request, with the private key of one
|
|
20
|
-
* of the account client's registered keys, named by the JWS `kid` header.
|
|
21
|
-
* Claims: `iss` and `sub` both equal that `kid`; `aud` is the installation
|
|
22
|
-
* URL followed by `/account/connection`; `exp` at most five minutes ahead;
|
|
23
|
-
* a unique `jti`, accepted once. Carries no secret.
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf field: string proof = 1
|
|
26
|
-
*/
|
|
27
|
-
proof: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* What the account BFF needs to sign users in and call the account API.
|
|
31
|
-
*
|
|
32
|
-
* @generated from protobuf message sid.v1.authn.AccountConnection
|
|
33
|
-
*/
|
|
34
|
-
export interface AccountConnection {
|
|
35
|
-
/**
|
|
36
|
-
* Exact issuer identifier the account client is registered under, the
|
|
37
|
-
* canonical URL `https://<host>/i/<handle>`. The BFF discovers its
|
|
38
|
-
* endpoints at `<issuer>/.well-known/openid-configuration` and accepts only
|
|
39
|
-
* authorization responses and tokens naming this issuer (RFC 9207 §2.4).
|
|
40
|
-
*
|
|
41
|
-
* @generated from protobuf field: string issuer = 1
|
|
42
|
-
*/
|
|
43
|
-
issuer: string;
|
|
44
|
-
/**
|
|
45
|
-
* The account web client's `client_id`, assigned at provisioning and never
|
|
46
|
-
* changed; the `iss` and `sub` of its token endpoint assertions.
|
|
47
|
-
*
|
|
48
|
-
* @generated from protobuf field: string client_id = 2
|
|
49
|
-
*/
|
|
50
|
-
clientId: string;
|
|
51
|
-
/**
|
|
52
|
-
* Resource indicator of the account API (RFC 8707 §2): the `resource` the
|
|
53
|
-
* BFF requests and the `aud` of the access tokens it obtains.
|
|
54
|
-
*
|
|
55
|
-
* @generated from protobuf field: string resource = 3
|
|
56
|
-
*/
|
|
57
|
-
resource: string;
|
|
58
|
-
/**
|
|
59
|
-
* Scopes the BFF requests: sign-in scopes and the account API's.
|
|
60
|
-
*
|
|
61
|
-
* @generated from protobuf field: repeated string scopes = 4
|
|
62
|
-
*/
|
|
63
|
-
scopes: string[];
|
|
64
|
-
/**
|
|
65
|
-
* The client's registered redirect URI, the BFF's callback on the account
|
|
66
|
-
* origin; an authorization request naming another is refused.
|
|
67
|
-
*
|
|
68
|
-
* @generated from protobuf field: string redirect_uri = 5
|
|
69
|
-
*/
|
|
70
|
-
redirectUri: string;
|
|
71
|
-
/**
|
|
72
|
-
* How the client authenticates at the token endpoint (RFC 7591 §2):
|
|
73
|
-
* always `private_key_jwt`.
|
|
74
|
-
*
|
|
75
|
-
* @generated from protobuf field: string token_endpoint_auth_method = 6
|
|
76
|
-
*/
|
|
77
|
-
tokenEndpointAuthMethod: string;
|
|
78
|
-
}
|
|
79
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
80
|
-
class GetAccountConnectionRequest$Type extends MessageType<GetAccountConnectionRequest> {
|
|
81
|
-
constructor() {
|
|
82
|
-
super("sid.v1.authn.GetAccountConnectionRequest", [
|
|
83
|
-
{ no: 1, name: "proof", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
84
|
-
]);
|
|
85
|
-
}
|
|
86
|
-
create(value?: PartialMessage<GetAccountConnectionRequest>): GetAccountConnectionRequest {
|
|
87
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
88
|
-
message.proof = "";
|
|
89
|
-
if (value !== undefined)
|
|
90
|
-
reflectionMergePartial<GetAccountConnectionRequest>(this, message, value);
|
|
91
|
-
return message;
|
|
92
|
-
}
|
|
93
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAccountConnectionRequest): GetAccountConnectionRequest {
|
|
94
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
95
|
-
while (reader.pos < end) {
|
|
96
|
-
let [fieldNo, wireType] = reader.tag();
|
|
97
|
-
switch (fieldNo) {
|
|
98
|
-
case /* string proof */ 1:
|
|
99
|
-
message.proof = reader.string();
|
|
100
|
-
break;
|
|
101
|
-
default:
|
|
102
|
-
let u = options.readUnknownField;
|
|
103
|
-
if (u === "throw")
|
|
104
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
105
|
-
let d = reader.skip(wireType);
|
|
106
|
-
if (u !== false)
|
|
107
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return message;
|
|
111
|
-
}
|
|
112
|
-
internalBinaryWrite(message: GetAccountConnectionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
113
|
-
/* string proof = 1; */
|
|
114
|
-
if (message.proof !== "")
|
|
115
|
-
writer.tag(1, WireType.LengthDelimited).string(message.proof);
|
|
116
|
-
let u = options.writeUnknownFields;
|
|
117
|
-
if (u !== false)
|
|
118
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
119
|
-
return writer;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* @generated MessageType for protobuf message sid.v1.authn.GetAccountConnectionRequest
|
|
124
|
-
*/
|
|
125
|
-
export const GetAccountConnectionRequest = new GetAccountConnectionRequest$Type();
|
|
126
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
127
|
-
class AccountConnection$Type extends MessageType<AccountConnection> {
|
|
128
|
-
constructor() {
|
|
129
|
-
super("sid.v1.authn.AccountConnection", [
|
|
130
|
-
{ no: 1, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
131
|
-
{ no: 2, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
132
|
-
{ no: 3, name: "resource", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
133
|
-
{ no: 4, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
134
|
-
{ no: 5, name: "redirect_uri", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
135
|
-
{ no: 6, name: "token_endpoint_auth_method", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
136
|
-
]);
|
|
137
|
-
}
|
|
138
|
-
create(value?: PartialMessage<AccountConnection>): AccountConnection {
|
|
139
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
140
|
-
message.issuer = "";
|
|
141
|
-
message.clientId = "";
|
|
142
|
-
message.resource = "";
|
|
143
|
-
message.scopes = [];
|
|
144
|
-
message.redirectUri = "";
|
|
145
|
-
message.tokenEndpointAuthMethod = "";
|
|
146
|
-
if (value !== undefined)
|
|
147
|
-
reflectionMergePartial<AccountConnection>(this, message, value);
|
|
148
|
-
return message;
|
|
149
|
-
}
|
|
150
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AccountConnection): AccountConnection {
|
|
151
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
152
|
-
while (reader.pos < end) {
|
|
153
|
-
let [fieldNo, wireType] = reader.tag();
|
|
154
|
-
switch (fieldNo) {
|
|
155
|
-
case /* string issuer */ 1:
|
|
156
|
-
message.issuer = reader.string();
|
|
157
|
-
break;
|
|
158
|
-
case /* string client_id */ 2:
|
|
159
|
-
message.clientId = reader.string();
|
|
160
|
-
break;
|
|
161
|
-
case /* string resource */ 3:
|
|
162
|
-
message.resource = reader.string();
|
|
163
|
-
break;
|
|
164
|
-
case /* repeated string scopes */ 4:
|
|
165
|
-
message.scopes.push(reader.string());
|
|
166
|
-
break;
|
|
167
|
-
case /* string redirect_uri */ 5:
|
|
168
|
-
message.redirectUri = reader.string();
|
|
169
|
-
break;
|
|
170
|
-
case /* string token_endpoint_auth_method */ 6:
|
|
171
|
-
message.tokenEndpointAuthMethod = reader.string();
|
|
172
|
-
break;
|
|
173
|
-
default:
|
|
174
|
-
let u = options.readUnknownField;
|
|
175
|
-
if (u === "throw")
|
|
176
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
177
|
-
let d = reader.skip(wireType);
|
|
178
|
-
if (u !== false)
|
|
179
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return message;
|
|
183
|
-
}
|
|
184
|
-
internalBinaryWrite(message: AccountConnection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
185
|
-
/* string issuer = 1; */
|
|
186
|
-
if (message.issuer !== "")
|
|
187
|
-
writer.tag(1, WireType.LengthDelimited).string(message.issuer);
|
|
188
|
-
/* string client_id = 2; */
|
|
189
|
-
if (message.clientId !== "")
|
|
190
|
-
writer.tag(2, WireType.LengthDelimited).string(message.clientId);
|
|
191
|
-
/* string resource = 3; */
|
|
192
|
-
if (message.resource !== "")
|
|
193
|
-
writer.tag(3, WireType.LengthDelimited).string(message.resource);
|
|
194
|
-
/* repeated string scopes = 4; */
|
|
195
|
-
for (let i = 0; i < message.scopes.length; i++)
|
|
196
|
-
writer.tag(4, WireType.LengthDelimited).string(message.scopes[i]);
|
|
197
|
-
/* string redirect_uri = 5; */
|
|
198
|
-
if (message.redirectUri !== "")
|
|
199
|
-
writer.tag(5, WireType.LengthDelimited).string(message.redirectUri);
|
|
200
|
-
/* string token_endpoint_auth_method = 6; */
|
|
201
|
-
if (message.tokenEndpointAuthMethod !== "")
|
|
202
|
-
writer.tag(6, WireType.LengthDelimited).string(message.tokenEndpointAuthMethod);
|
|
203
|
-
let u = options.writeUnknownFields;
|
|
204
|
-
if (u !== false)
|
|
205
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
206
|
-
return writer;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* @generated MessageType for protobuf message sid.v1.authn.AccountConnection
|
|
211
|
-
*/
|
|
212
|
-
export const AccountConnection = new AccountConnection$Type();
|
|
213
|
-
/**
|
|
214
|
-
* @generated ServiceType for protobuf service sid.v1.authn.SystemIntegrationService
|
|
215
|
-
*/
|
|
216
|
-
export const SystemIntegrationService = new ServiceType("sid.v1.authn.SystemIntegrationService", [
|
|
217
|
-
{ name: "GetAccountConnection", options: {}, I: GetAccountConnectionRequest, O: AccountConnection }
|
|
218
|
-
]);
|