@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,57 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/organizations.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 { SiteService } from "./organizations";
|
|
7
|
-
import type { UpdateSiteNameRequest } from "./organizations";
|
|
8
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
9
|
-
import type { SiteInfo } from "./organizations";
|
|
10
|
-
import type { GetSiteInfoRequest } from "./organizations";
|
|
11
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
12
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
13
|
-
/**
|
|
14
|
-
* @generated from protobuf service sid.v1.admin.SiteService
|
|
15
|
-
*/
|
|
16
|
-
export interface ISiteServiceClient {
|
|
17
|
-
/**
|
|
18
|
-
* Get site summary info.
|
|
19
|
-
*
|
|
20
|
-
* @generated from protobuf rpc: GetSiteInfo
|
|
21
|
-
*/
|
|
22
|
-
getSiteInfo(input: GetSiteInfoRequest, options?: RpcOptions): UnaryCall<GetSiteInfoRequest, SiteInfo>;
|
|
23
|
-
/**
|
|
24
|
-
* Update site name.
|
|
25
|
-
*
|
|
26
|
-
* @generated from protobuf rpc: UpdateSiteName
|
|
27
|
-
*/
|
|
28
|
-
updateSiteName(input: UpdateSiteNameRequest, options?: RpcOptions): UnaryCall<UpdateSiteNameRequest, SiteInfo>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf service sid.v1.admin.SiteService
|
|
32
|
-
*/
|
|
33
|
-
export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
|
34
|
-
typeName = SiteService.typeName;
|
|
35
|
-
methods = SiteService.methods;
|
|
36
|
-
options = SiteService.options;
|
|
37
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get site summary info.
|
|
41
|
-
*
|
|
42
|
-
* @generated from protobuf rpc: GetSiteInfo
|
|
43
|
-
*/
|
|
44
|
-
getSiteInfo(input: GetSiteInfoRequest, options?: RpcOptions): UnaryCall<GetSiteInfoRequest, SiteInfo> {
|
|
45
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
46
|
-
return stackIntercept<GetSiteInfoRequest, SiteInfo>("unary", this._transport, method, opt, input);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Update site name.
|
|
50
|
-
*
|
|
51
|
-
* @generated from protobuf rpc: UpdateSiteName
|
|
52
|
-
*/
|
|
53
|
-
updateSiteName(input: UpdateSiteNameRequest, options?: RpcOptions): UnaryCall<UpdateSiteNameRequest, SiteInfo> {
|
|
54
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
55
|
-
return stackIntercept<UpdateSiteNameRequest, SiteInfo>("unary", this._transport, method, opt, input);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/organizations.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } 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
|
-
// ── Messages ──
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @generated from protobuf message sid.v1.admin.GetSiteInfoRequest
|
|
18
|
-
*/
|
|
19
|
-
export interface GetSiteInfoRequest {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf message sid.v1.admin.SiteInfo
|
|
23
|
-
*/
|
|
24
|
-
export interface SiteInfo {
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: string site_name = 1
|
|
27
|
-
*/
|
|
28
|
-
siteName: string;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: string version = 2
|
|
31
|
-
*/
|
|
32
|
-
version: string;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: string primary_domain = 4
|
|
35
|
-
*/
|
|
36
|
-
primaryDomain: string;
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: string admin_contact = 5
|
|
39
|
-
*/
|
|
40
|
-
adminContact: string;
|
|
41
|
-
/**
|
|
42
|
-
* Quick stats.
|
|
43
|
-
*
|
|
44
|
-
* @generated from protobuf field: sid.v1.admin.SiteStats stats = 6
|
|
45
|
-
*/
|
|
46
|
-
stats?: SiteStats;
|
|
47
|
-
/**
|
|
48
|
-
* Name of the server build serving the site (InstanceInfo.edition).
|
|
49
|
-
*
|
|
50
|
-
* @generated from protobuf field: string edition = 7
|
|
51
|
-
*/
|
|
52
|
-
edition: string;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf message sid.v1.admin.SiteStats
|
|
56
|
-
*/
|
|
57
|
-
export interface SiteStats {
|
|
58
|
-
/**
|
|
59
|
-
* @generated from protobuf field: uint64 total_users = 1
|
|
60
|
-
*/
|
|
61
|
-
totalUsers: bigint;
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf field: uint64 active_sessions = 2
|
|
64
|
-
*/
|
|
65
|
-
activeSessions: bigint;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: uint64 applications_count = 3
|
|
68
|
-
*/
|
|
69
|
-
applicationsCount: bigint;
|
|
70
|
-
/**
|
|
71
|
-
* @generated from protobuf field: uint64 external_users = 4
|
|
72
|
-
*/
|
|
73
|
-
externalUsers: bigint;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf message sid.v1.admin.UpdateSiteNameRequest
|
|
77
|
-
*/
|
|
78
|
-
export interface UpdateSiteNameRequest {
|
|
79
|
-
/**
|
|
80
|
-
* @generated from protobuf field: string site_name = 1
|
|
81
|
-
*/
|
|
82
|
-
siteName: string;
|
|
83
|
-
}
|
|
84
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
85
|
-
class GetSiteInfoRequest$Type extends MessageType<GetSiteInfoRequest> {
|
|
86
|
-
constructor() {
|
|
87
|
-
super("sid.v1.admin.GetSiteInfoRequest", []);
|
|
88
|
-
}
|
|
89
|
-
create(value?: PartialMessage<GetSiteInfoRequest>): GetSiteInfoRequest {
|
|
90
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
91
|
-
if (value !== undefined)
|
|
92
|
-
reflectionMergePartial<GetSiteInfoRequest>(this, message, value);
|
|
93
|
-
return message;
|
|
94
|
-
}
|
|
95
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteInfoRequest): GetSiteInfoRequest {
|
|
96
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
97
|
-
while (reader.pos < end) {
|
|
98
|
-
let [fieldNo, wireType] = reader.tag();
|
|
99
|
-
switch (fieldNo) {
|
|
100
|
-
default:
|
|
101
|
-
let u = options.readUnknownField;
|
|
102
|
-
if (u === "throw")
|
|
103
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
104
|
-
let d = reader.skip(wireType);
|
|
105
|
-
if (u !== false)
|
|
106
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return message;
|
|
110
|
-
}
|
|
111
|
-
internalBinaryWrite(message: GetSiteInfoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
112
|
-
let u = options.writeUnknownFields;
|
|
113
|
-
if (u !== false)
|
|
114
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
115
|
-
return writer;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetSiteInfoRequest
|
|
120
|
-
*/
|
|
121
|
-
export const GetSiteInfoRequest = new GetSiteInfoRequest$Type();
|
|
122
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
123
|
-
class SiteInfo$Type extends MessageType<SiteInfo> {
|
|
124
|
-
constructor() {
|
|
125
|
-
super("sid.v1.admin.SiteInfo", [
|
|
126
|
-
{ no: 1, name: "site_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
127
|
-
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
128
|
-
{ no: 4, name: "primary_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
129
|
-
{ no: 5, name: "admin_contact", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
130
|
-
{ no: 6, name: "stats", kind: "message", T: () => SiteStats },
|
|
131
|
-
{ no: 7, name: "edition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
132
|
-
]);
|
|
133
|
-
}
|
|
134
|
-
create(value?: PartialMessage<SiteInfo>): SiteInfo {
|
|
135
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
136
|
-
message.siteName = "";
|
|
137
|
-
message.version = "";
|
|
138
|
-
message.primaryDomain = "";
|
|
139
|
-
message.adminContact = "";
|
|
140
|
-
message.edition = "";
|
|
141
|
-
if (value !== undefined)
|
|
142
|
-
reflectionMergePartial<SiteInfo>(this, message, value);
|
|
143
|
-
return message;
|
|
144
|
-
}
|
|
145
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteInfo): SiteInfo {
|
|
146
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
147
|
-
while (reader.pos < end) {
|
|
148
|
-
let [fieldNo, wireType] = reader.tag();
|
|
149
|
-
switch (fieldNo) {
|
|
150
|
-
case /* string site_name */ 1:
|
|
151
|
-
message.siteName = reader.string();
|
|
152
|
-
break;
|
|
153
|
-
case /* string version */ 2:
|
|
154
|
-
message.version = reader.string();
|
|
155
|
-
break;
|
|
156
|
-
case /* string primary_domain */ 4:
|
|
157
|
-
message.primaryDomain = reader.string();
|
|
158
|
-
break;
|
|
159
|
-
case /* string admin_contact */ 5:
|
|
160
|
-
message.adminContact = reader.string();
|
|
161
|
-
break;
|
|
162
|
-
case /* sid.v1.admin.SiteStats stats */ 6:
|
|
163
|
-
message.stats = SiteStats.internalBinaryRead(reader, reader.uint32(), options, message.stats);
|
|
164
|
-
break;
|
|
165
|
-
case /* string edition */ 7:
|
|
166
|
-
message.edition = reader.string();
|
|
167
|
-
break;
|
|
168
|
-
default:
|
|
169
|
-
let u = options.readUnknownField;
|
|
170
|
-
if (u === "throw")
|
|
171
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
172
|
-
let d = reader.skip(wireType);
|
|
173
|
-
if (u !== false)
|
|
174
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return message;
|
|
178
|
-
}
|
|
179
|
-
internalBinaryWrite(message: SiteInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
180
|
-
/* string site_name = 1; */
|
|
181
|
-
if (message.siteName !== "")
|
|
182
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteName);
|
|
183
|
-
/* string version = 2; */
|
|
184
|
-
if (message.version !== "")
|
|
185
|
-
writer.tag(2, WireType.LengthDelimited).string(message.version);
|
|
186
|
-
/* string primary_domain = 4; */
|
|
187
|
-
if (message.primaryDomain !== "")
|
|
188
|
-
writer.tag(4, WireType.LengthDelimited).string(message.primaryDomain);
|
|
189
|
-
/* string admin_contact = 5; */
|
|
190
|
-
if (message.adminContact !== "")
|
|
191
|
-
writer.tag(5, WireType.LengthDelimited).string(message.adminContact);
|
|
192
|
-
/* sid.v1.admin.SiteStats stats = 6; */
|
|
193
|
-
if (message.stats)
|
|
194
|
-
SiteStats.internalBinaryWrite(message.stats, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
195
|
-
/* string edition = 7; */
|
|
196
|
-
if (message.edition !== "")
|
|
197
|
-
writer.tag(7, WireType.LengthDelimited).string(message.edition);
|
|
198
|
-
let u = options.writeUnknownFields;
|
|
199
|
-
if (u !== false)
|
|
200
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
201
|
-
return writer;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @generated MessageType for protobuf message sid.v1.admin.SiteInfo
|
|
206
|
-
*/
|
|
207
|
-
export const SiteInfo = new SiteInfo$Type();
|
|
208
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
209
|
-
class SiteStats$Type extends MessageType<SiteStats> {
|
|
210
|
-
constructor() {
|
|
211
|
-
super("sid.v1.admin.SiteStats", [
|
|
212
|
-
{ no: 1, name: "total_users", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
213
|
-
{ no: 2, name: "active_sessions", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
214
|
-
{ no: 3, name: "applications_count", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
215
|
-
{ no: 4, name: "external_users", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
216
|
-
]);
|
|
217
|
-
}
|
|
218
|
-
create(value?: PartialMessage<SiteStats>): SiteStats {
|
|
219
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
220
|
-
message.totalUsers = 0n;
|
|
221
|
-
message.activeSessions = 0n;
|
|
222
|
-
message.applicationsCount = 0n;
|
|
223
|
-
message.externalUsers = 0n;
|
|
224
|
-
if (value !== undefined)
|
|
225
|
-
reflectionMergePartial<SiteStats>(this, message, value);
|
|
226
|
-
return message;
|
|
227
|
-
}
|
|
228
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteStats): SiteStats {
|
|
229
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
230
|
-
while (reader.pos < end) {
|
|
231
|
-
let [fieldNo, wireType] = reader.tag();
|
|
232
|
-
switch (fieldNo) {
|
|
233
|
-
case /* uint64 total_users */ 1:
|
|
234
|
-
message.totalUsers = reader.uint64().toBigInt();
|
|
235
|
-
break;
|
|
236
|
-
case /* uint64 active_sessions */ 2:
|
|
237
|
-
message.activeSessions = reader.uint64().toBigInt();
|
|
238
|
-
break;
|
|
239
|
-
case /* uint64 applications_count */ 3:
|
|
240
|
-
message.applicationsCount = reader.uint64().toBigInt();
|
|
241
|
-
break;
|
|
242
|
-
case /* uint64 external_users */ 4:
|
|
243
|
-
message.externalUsers = reader.uint64().toBigInt();
|
|
244
|
-
break;
|
|
245
|
-
default:
|
|
246
|
-
let u = options.readUnknownField;
|
|
247
|
-
if (u === "throw")
|
|
248
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
249
|
-
let d = reader.skip(wireType);
|
|
250
|
-
if (u !== false)
|
|
251
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return message;
|
|
255
|
-
}
|
|
256
|
-
internalBinaryWrite(message: SiteStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
257
|
-
/* uint64 total_users = 1; */
|
|
258
|
-
if (message.totalUsers !== 0n)
|
|
259
|
-
writer.tag(1, WireType.Varint).uint64(message.totalUsers);
|
|
260
|
-
/* uint64 active_sessions = 2; */
|
|
261
|
-
if (message.activeSessions !== 0n)
|
|
262
|
-
writer.tag(2, WireType.Varint).uint64(message.activeSessions);
|
|
263
|
-
/* uint64 applications_count = 3; */
|
|
264
|
-
if (message.applicationsCount !== 0n)
|
|
265
|
-
writer.tag(3, WireType.Varint).uint64(message.applicationsCount);
|
|
266
|
-
/* uint64 external_users = 4; */
|
|
267
|
-
if (message.externalUsers !== 0n)
|
|
268
|
-
writer.tag(4, WireType.Varint).uint64(message.externalUsers);
|
|
269
|
-
let u = options.writeUnknownFields;
|
|
270
|
-
if (u !== false)
|
|
271
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
272
|
-
return writer;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* @generated MessageType for protobuf message sid.v1.admin.SiteStats
|
|
277
|
-
*/
|
|
278
|
-
export const SiteStats = new SiteStats$Type();
|
|
279
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
280
|
-
class UpdateSiteNameRequest$Type extends MessageType<UpdateSiteNameRequest> {
|
|
281
|
-
constructor() {
|
|
282
|
-
super("sid.v1.admin.UpdateSiteNameRequest", [
|
|
283
|
-
{ no: 1, name: "site_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
284
|
-
]);
|
|
285
|
-
}
|
|
286
|
-
create(value?: PartialMessage<UpdateSiteNameRequest>): UpdateSiteNameRequest {
|
|
287
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
288
|
-
message.siteName = "";
|
|
289
|
-
if (value !== undefined)
|
|
290
|
-
reflectionMergePartial<UpdateSiteNameRequest>(this, message, value);
|
|
291
|
-
return message;
|
|
292
|
-
}
|
|
293
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSiteNameRequest): UpdateSiteNameRequest {
|
|
294
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
295
|
-
while (reader.pos < end) {
|
|
296
|
-
let [fieldNo, wireType] = reader.tag();
|
|
297
|
-
switch (fieldNo) {
|
|
298
|
-
case /* string site_name */ 1:
|
|
299
|
-
message.siteName = reader.string();
|
|
300
|
-
break;
|
|
301
|
-
default:
|
|
302
|
-
let u = options.readUnknownField;
|
|
303
|
-
if (u === "throw")
|
|
304
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
305
|
-
let d = reader.skip(wireType);
|
|
306
|
-
if (u !== false)
|
|
307
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
return message;
|
|
311
|
-
}
|
|
312
|
-
internalBinaryWrite(message: UpdateSiteNameRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
313
|
-
/* string site_name = 1; */
|
|
314
|
-
if (message.siteName !== "")
|
|
315
|
-
writer.tag(1, WireType.LengthDelimited).string(message.siteName);
|
|
316
|
-
let u = options.writeUnknownFields;
|
|
317
|
-
if (u !== false)
|
|
318
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
319
|
-
return writer;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @generated MessageType for protobuf message sid.v1.admin.UpdateSiteNameRequest
|
|
324
|
-
*/
|
|
325
|
-
export const UpdateSiteNameRequest = new UpdateSiteNameRequest$Type();
|
|
326
|
-
/**
|
|
327
|
-
* @generated ServiceType for protobuf service sid.v1.admin.SiteService
|
|
328
|
-
*/
|
|
329
|
-
export const SiteService = new ServiceType("sid.v1.admin.SiteService", [
|
|
330
|
-
{ name: "GetSiteInfo", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/site" } }, I: GetSiteInfoRequest, O: SiteInfo },
|
|
331
|
-
{ name: "UpdateSiteName", options: { "google.api.http": { patch: "/v1/admin/site/name", body: "*" } }, I: UpdateSiteNameRequest, O: SiteInfo }
|
|
332
|
-
]);
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/provisioning.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 { ProvisioningService } from "./provisioning";
|
|
7
|
-
import type { Empty } from "../../../google/protobuf/empty";
|
|
8
|
-
import type { RevokeConnectorCredentialRequest } from "./provisioning";
|
|
9
|
-
import type { RotateConnectorCredentialRequest } from "./provisioning";
|
|
10
|
-
import type { IssuedConnectorCredential } from "./provisioning";
|
|
11
|
-
import type { CreateConnectorCredentialRequest } from "./provisioning";
|
|
12
|
-
import type { ListConnectorCredentialsResponse } from "./provisioning";
|
|
13
|
-
import type { ListConnectorCredentialsRequest } from "./provisioning";
|
|
14
|
-
import type { ScimInboundConfig } from "./provisioning";
|
|
15
|
-
import type { GetScimInboundConfigRequest } from "./provisioning";
|
|
16
|
-
import type { ChangeProvisioningConnectorStateRequest } from "./provisioning";
|
|
17
|
-
import type { RenameProvisioningConnectorRequest } from "./provisioning";
|
|
18
|
-
import type { GetProvisioningConnectorRequest } from "./provisioning";
|
|
19
|
-
import type { ProvisioningConnector } from "./provisioning";
|
|
20
|
-
import type { CreateInboundConnectorRequest } from "./provisioning";
|
|
21
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
22
|
-
import type { ListProvisioningConnectorsResponse } from "./provisioning";
|
|
23
|
-
import type { ListProvisioningConnectorsRequest } from "./provisioning";
|
|
24
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
25
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
26
|
-
/**
|
|
27
|
-
* ProvisioningService manages provisioning connectors and their credentials.
|
|
28
|
-
*
|
|
29
|
-
* ── Connectors ──
|
|
30
|
-
*
|
|
31
|
-
* @generated from protobuf service sid.v1.admin.ProvisioningService
|
|
32
|
-
*/
|
|
33
|
-
export interface IProvisioningServiceClient {
|
|
34
|
-
/**
|
|
35
|
-
* Every connector of the organization, retired ones included, newest first.
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf rpc: ListProvisioningConnectors
|
|
38
|
-
*/
|
|
39
|
-
listProvisioningConnectors(input: ListProvisioningConnectorsRequest, options?: RpcOptions): UnaryCall<ListProvisioningConnectorsRequest, ListProvisioningConnectorsResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Register an inbound connector: a directory source that will send SCIM to
|
|
42
|
-
* this organization. It starts active, with no credential and no grant.
|
|
43
|
-
* Keyed: a retry with the same idempotency key returns the connector the
|
|
44
|
-
* first attempt created.
|
|
45
|
-
*
|
|
46
|
-
* @generated from protobuf rpc: CreateInboundConnector
|
|
47
|
-
*/
|
|
48
|
-
createInboundConnector(input: CreateInboundConnectorRequest, options?: RpcOptions): UnaryCall<CreateInboundConnectorRequest, ProvisioningConnector>;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf rpc: GetProvisioningConnector
|
|
51
|
-
*/
|
|
52
|
-
getProvisioningConnector(input: GetProvisioningConnectorRequest, options?: RpcOptions): UnaryCall<GetProvisioningConnectorRequest, ProvisioningConnector>;
|
|
53
|
-
/**
|
|
54
|
-
* Rename a connector still at `revision`; its identity and credentials stay.
|
|
55
|
-
* A changed connector is ABORTED (CONCURRENT_MODIFICATION), a retired one
|
|
56
|
-
* FAILED_PRECONDITION.
|
|
57
|
-
*
|
|
58
|
-
* @generated from protobuf rpc: RenameProvisioningConnector
|
|
59
|
-
*/
|
|
60
|
-
renameProvisioningConnector(input: RenameProvisioningConnectorRequest, options?: RpcOptions): UnaryCall<RenameProvisioningConnectorRequest, ProvisioningConnector>;
|
|
61
|
-
/**
|
|
62
|
-
* Disable, enable again, or retire a connector. Disabling stops every
|
|
63
|
-
* request of it at once, its credentials kept; it deactivates no user.
|
|
64
|
-
* Retiring is final and revokes its credentials. A step that is no
|
|
65
|
-
* lifecycle transition is FAILED_PRECONDITION; moving to the state it
|
|
66
|
-
* already has returns it unchanged.
|
|
67
|
-
*
|
|
68
|
-
* @generated from protobuf rpc: ChangeProvisioningConnectorState
|
|
69
|
-
*/
|
|
70
|
-
changeProvisioningConnectorState(input: ChangeProvisioningConnectorStateRequest, options?: RpcOptions): UnaryCall<ChangeProvisioningConnectorStateRequest, ProvisioningConnector>;
|
|
71
|
-
/**
|
|
72
|
-
* What an inbound connector's SCIM client is configured with.
|
|
73
|
-
*
|
|
74
|
-
* @generated from protobuf rpc: GetScimInboundConfig
|
|
75
|
-
*/
|
|
76
|
-
getScimInboundConfig(input: GetScimInboundConfigRequest, options?: RpcOptions): UnaryCall<GetScimInboundConfigRequest, ScimInboundConfig>;
|
|
77
|
-
// ── Credentials of an inbound connector ──
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* A connector's credentials, revoked ones included: metadata only.
|
|
81
|
-
*
|
|
82
|
-
* @generated from protobuf rpc: ListConnectorCredentials
|
|
83
|
-
*/
|
|
84
|
-
listConnectorCredentials(input: ListConnectorCredentialsRequest, options?: RpcOptions): UnaryCall<ListConnectorCredentialsRequest, ListConnectorCredentialsResponse>;
|
|
85
|
-
/**
|
|
86
|
-
* Issue a credential of an active inbound connector; the secret is in the
|
|
87
|
-
* response only. A connector holds at most two usable credentials
|
|
88
|
-
* (RESOURCE_EXHAUSTED beyond). Keyed: a retry with the same idempotency
|
|
89
|
-
* key returns the credential the first attempt created, without its
|
|
90
|
-
* secret; a lost secret is replaced through RotateConnectorCredential.
|
|
91
|
-
*
|
|
92
|
-
* @generated from protobuf rpc: CreateConnectorCredential
|
|
93
|
-
*/
|
|
94
|
-
createConnectorCredential(input: CreateConnectorCredentialRequest, options?: RpcOptions): UnaryCall<CreateConnectorCredentialRequest, IssuedConnectorCredential>;
|
|
95
|
-
/**
|
|
96
|
-
* Replace an active credential: a new one is issued (its secret in the
|
|
97
|
-
* response only) and the old one keeps working for the rotation grace
|
|
98
|
-
* period, so the client can switch without an outage. Keyed like
|
|
99
|
-
* CreateConnectorCredential.
|
|
100
|
-
*
|
|
101
|
-
* @generated from protobuf rpc: RotateConnectorCredential
|
|
102
|
-
*/
|
|
103
|
-
rotateConnectorCredential(input: RotateConnectorCredentialRequest, options?: RpcOptions): UnaryCall<RotateConnectorCredentialRequest, IssuedConnectorCredential>;
|
|
104
|
-
/**
|
|
105
|
-
* Revoke a credential at once, with no grace. Revoking one already
|
|
106
|
-
* revoked is a no-op.
|
|
107
|
-
*
|
|
108
|
-
* @generated from protobuf rpc: RevokeConnectorCredential
|
|
109
|
-
*/
|
|
110
|
-
revokeConnectorCredential(input: RevokeConnectorCredentialRequest, options?: RpcOptions): UnaryCall<RevokeConnectorCredentialRequest, Empty>;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* ProvisioningService manages provisioning connectors and their credentials.
|
|
114
|
-
*
|
|
115
|
-
* ── Connectors ──
|
|
116
|
-
*
|
|
117
|
-
* @generated from protobuf service sid.v1.admin.ProvisioningService
|
|
118
|
-
*/
|
|
119
|
-
export class ProvisioningServiceClient implements IProvisioningServiceClient, ServiceInfo {
|
|
120
|
-
typeName = ProvisioningService.typeName;
|
|
121
|
-
methods = ProvisioningService.methods;
|
|
122
|
-
options = ProvisioningService.options;
|
|
123
|
-
constructor(private readonly _transport: RpcTransport) {
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Every connector of the organization, retired ones included, newest first.
|
|
127
|
-
*
|
|
128
|
-
* @generated from protobuf rpc: ListProvisioningConnectors
|
|
129
|
-
*/
|
|
130
|
-
listProvisioningConnectors(input: ListProvisioningConnectorsRequest, options?: RpcOptions): UnaryCall<ListProvisioningConnectorsRequest, ListProvisioningConnectorsResponse> {
|
|
131
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
132
|
-
return stackIntercept<ListProvisioningConnectorsRequest, ListProvisioningConnectorsResponse>("unary", this._transport, method, opt, input);
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Register an inbound connector: a directory source that will send SCIM to
|
|
136
|
-
* this organization. It starts active, with no credential and no grant.
|
|
137
|
-
* Keyed: a retry with the same idempotency key returns the connector the
|
|
138
|
-
* first attempt created.
|
|
139
|
-
*
|
|
140
|
-
* @generated from protobuf rpc: CreateInboundConnector
|
|
141
|
-
*/
|
|
142
|
-
createInboundConnector(input: CreateInboundConnectorRequest, options?: RpcOptions): UnaryCall<CreateInboundConnectorRequest, ProvisioningConnector> {
|
|
143
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
144
|
-
return stackIntercept<CreateInboundConnectorRequest, ProvisioningConnector>("unary", this._transport, method, opt, input);
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* @generated from protobuf rpc: GetProvisioningConnector
|
|
148
|
-
*/
|
|
149
|
-
getProvisioningConnector(input: GetProvisioningConnectorRequest, options?: RpcOptions): UnaryCall<GetProvisioningConnectorRequest, ProvisioningConnector> {
|
|
150
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
151
|
-
return stackIntercept<GetProvisioningConnectorRequest, ProvisioningConnector>("unary", this._transport, method, opt, input);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Rename a connector still at `revision`; its identity and credentials stay.
|
|
155
|
-
* A changed connector is ABORTED (CONCURRENT_MODIFICATION), a retired one
|
|
156
|
-
* FAILED_PRECONDITION.
|
|
157
|
-
*
|
|
158
|
-
* @generated from protobuf rpc: RenameProvisioningConnector
|
|
159
|
-
*/
|
|
160
|
-
renameProvisioningConnector(input: RenameProvisioningConnectorRequest, options?: RpcOptions): UnaryCall<RenameProvisioningConnectorRequest, ProvisioningConnector> {
|
|
161
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
162
|
-
return stackIntercept<RenameProvisioningConnectorRequest, ProvisioningConnector>("unary", this._transport, method, opt, input);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Disable, enable again, or retire a connector. Disabling stops every
|
|
166
|
-
* request of it at once, its credentials kept; it deactivates no user.
|
|
167
|
-
* Retiring is final and revokes its credentials. A step that is no
|
|
168
|
-
* lifecycle transition is FAILED_PRECONDITION; moving to the state it
|
|
169
|
-
* already has returns it unchanged.
|
|
170
|
-
*
|
|
171
|
-
* @generated from protobuf rpc: ChangeProvisioningConnectorState
|
|
172
|
-
*/
|
|
173
|
-
changeProvisioningConnectorState(input: ChangeProvisioningConnectorStateRequest, options?: RpcOptions): UnaryCall<ChangeProvisioningConnectorStateRequest, ProvisioningConnector> {
|
|
174
|
-
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
175
|
-
return stackIntercept<ChangeProvisioningConnectorStateRequest, ProvisioningConnector>("unary", this._transport, method, opt, input);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* What an inbound connector's SCIM client is configured with.
|
|
179
|
-
*
|
|
180
|
-
* @generated from protobuf rpc: GetScimInboundConfig
|
|
181
|
-
*/
|
|
182
|
-
getScimInboundConfig(input: GetScimInboundConfigRequest, options?: RpcOptions): UnaryCall<GetScimInboundConfigRequest, ScimInboundConfig> {
|
|
183
|
-
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
184
|
-
return stackIntercept<GetScimInboundConfigRequest, ScimInboundConfig>("unary", this._transport, method, opt, input);
|
|
185
|
-
}
|
|
186
|
-
// ── Credentials of an inbound connector ──
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* A connector's credentials, revoked ones included: metadata only.
|
|
190
|
-
*
|
|
191
|
-
* @generated from protobuf rpc: ListConnectorCredentials
|
|
192
|
-
*/
|
|
193
|
-
listConnectorCredentials(input: ListConnectorCredentialsRequest, options?: RpcOptions): UnaryCall<ListConnectorCredentialsRequest, ListConnectorCredentialsResponse> {
|
|
194
|
-
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
195
|
-
return stackIntercept<ListConnectorCredentialsRequest, ListConnectorCredentialsResponse>("unary", this._transport, method, opt, input);
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Issue a credential of an active inbound connector; the secret is in the
|
|
199
|
-
* response only. A connector holds at most two usable credentials
|
|
200
|
-
* (RESOURCE_EXHAUSTED beyond). Keyed: a retry with the same idempotency
|
|
201
|
-
* key returns the credential the first attempt created, without its
|
|
202
|
-
* secret; a lost secret is replaced through RotateConnectorCredential.
|
|
203
|
-
*
|
|
204
|
-
* @generated from protobuf rpc: CreateConnectorCredential
|
|
205
|
-
*/
|
|
206
|
-
createConnectorCredential(input: CreateConnectorCredentialRequest, options?: RpcOptions): UnaryCall<CreateConnectorCredentialRequest, IssuedConnectorCredential> {
|
|
207
|
-
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
208
|
-
return stackIntercept<CreateConnectorCredentialRequest, IssuedConnectorCredential>("unary", this._transport, method, opt, input);
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Replace an active credential: a new one is issued (its secret in the
|
|
212
|
-
* response only) and the old one keeps working for the rotation grace
|
|
213
|
-
* period, so the client can switch without an outage. Keyed like
|
|
214
|
-
* CreateConnectorCredential.
|
|
215
|
-
*
|
|
216
|
-
* @generated from protobuf rpc: RotateConnectorCredential
|
|
217
|
-
*/
|
|
218
|
-
rotateConnectorCredential(input: RotateConnectorCredentialRequest, options?: RpcOptions): UnaryCall<RotateConnectorCredentialRequest, IssuedConnectorCredential> {
|
|
219
|
-
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
|
220
|
-
return stackIntercept<RotateConnectorCredentialRequest, IssuedConnectorCredential>("unary", this._transport, method, opt, input);
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Revoke a credential at once, with no grace. Revoking one already
|
|
224
|
-
* revoked is a no-op.
|
|
225
|
-
*
|
|
226
|
-
* @generated from protobuf rpc: RevokeConnectorCredential
|
|
227
|
-
*/
|
|
228
|
-
revokeConnectorCredential(input: RevokeConnectorCredentialRequest, options?: RpcOptions): UnaryCall<RevokeConnectorCredentialRequest, Empty> {
|
|
229
|
-
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
|
230
|
-
return stackIntercept<RevokeConnectorCredentialRequest, Empty>("unary", this._transport, method, opt, input);
|
|
231
|
-
}
|
|
232
|
-
}
|