@structured-id/ui-core 1.3.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,923 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/sessions.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
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
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
16
|
-
// ── Messages ──
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @generated from protobuf message sid.v1.admin.AdminSession
|
|
20
|
-
*/
|
|
21
|
-
export interface AdminSession {
|
|
22
|
-
/**
|
|
23
|
-
* @generated from protobuf field: string session_id = 1
|
|
24
|
-
*/
|
|
25
|
-
sessionId: string;
|
|
26
|
-
/**
|
|
27
|
-
* @generated from protobuf field: string profile_id = 2
|
|
28
|
-
*/
|
|
29
|
-
profileId: string;
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf field: string display_name = 3
|
|
32
|
-
*/
|
|
33
|
-
displayName: string;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf field: string email = 4
|
|
36
|
-
*/
|
|
37
|
-
email: string;
|
|
38
|
-
/**
|
|
39
|
-
* Application (client) that initiated the session.
|
|
40
|
-
*
|
|
41
|
-
* @generated from protobuf field: string client_id = 5
|
|
42
|
-
*/
|
|
43
|
-
clientId: string;
|
|
44
|
-
/**
|
|
45
|
-
* @generated from protobuf field: string client_name = 6
|
|
46
|
-
*/
|
|
47
|
-
clientName: string;
|
|
48
|
-
/**
|
|
49
|
-
* @generated from protobuf field: string ip_address = 7
|
|
50
|
-
*/
|
|
51
|
-
ipAddress: string;
|
|
52
|
-
/**
|
|
53
|
-
* @generated from protobuf field: string user_agent = 8
|
|
54
|
-
*/
|
|
55
|
-
userAgent: string;
|
|
56
|
-
/**
|
|
57
|
-
* @generated from protobuf field: sid.v1.admin.SessionAuthMethod auth_method = 9
|
|
58
|
-
*/
|
|
59
|
-
authMethod: SessionAuthMethod;
|
|
60
|
-
/**
|
|
61
|
-
* @generated from protobuf field: google.protobuf.Timestamp started_at = 10
|
|
62
|
-
*/
|
|
63
|
-
startedAt?: Timestamp;
|
|
64
|
-
/**
|
|
65
|
-
* @generated from protobuf field: google.protobuf.Timestamp last_activity = 11
|
|
66
|
-
*/
|
|
67
|
-
lastActivity?: Timestamp;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @generated from protobuf message sid.v1.admin.SessionStats
|
|
71
|
-
*/
|
|
72
|
-
export interface SessionStats {
|
|
73
|
-
/**
|
|
74
|
-
* @generated from protobuf field: uint32 total_active = 1
|
|
75
|
-
*/
|
|
76
|
-
totalActive: number;
|
|
77
|
-
/**
|
|
78
|
-
* @generated from protobuf field: uint32 active_users = 2
|
|
79
|
-
*/
|
|
80
|
-
activeUsers: number;
|
|
81
|
-
/**
|
|
82
|
-
* @generated from protobuf field: uint32 peak_today = 3
|
|
83
|
-
*/
|
|
84
|
-
peakToday: number;
|
|
85
|
-
/**
|
|
86
|
-
* @generated from protobuf field: repeated sid.v1.admin.ClientSessionCount by_client = 4
|
|
87
|
-
*/
|
|
88
|
-
byClient: ClientSessionCount[];
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @generated from protobuf message sid.v1.admin.ClientSessionCount
|
|
92
|
-
*/
|
|
93
|
-
export interface ClientSessionCount {
|
|
94
|
-
/**
|
|
95
|
-
* @generated from protobuf field: string client_id = 1
|
|
96
|
-
*/
|
|
97
|
-
clientId: string;
|
|
98
|
-
/**
|
|
99
|
-
* @generated from protobuf field: string client_name = 2
|
|
100
|
-
*/
|
|
101
|
-
clientName: string;
|
|
102
|
-
/**
|
|
103
|
-
* @generated from protobuf field: uint32 active_sessions = 3
|
|
104
|
-
*/
|
|
105
|
-
activeSessions: number;
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf field: uint32 unique_users = 4
|
|
108
|
-
*/
|
|
109
|
-
uniqueUsers: number;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @generated from protobuf message sid.v1.admin.RevokeSessionsResult
|
|
113
|
-
*/
|
|
114
|
-
export interface RevokeSessionsResult {
|
|
115
|
-
/**
|
|
116
|
-
* @generated from protobuf field: uint32 revoked_count = 1
|
|
117
|
-
*/
|
|
118
|
-
revokedCount: number;
|
|
119
|
-
}
|
|
120
|
-
// ── Requests ──
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @generated from protobuf message sid.v1.admin.AdminListSessionsRequest
|
|
124
|
-
*/
|
|
125
|
-
export interface AdminListSessionsRequest {
|
|
126
|
-
/**
|
|
127
|
-
* Pagination.
|
|
128
|
-
*
|
|
129
|
-
* @generated from protobuf field: uint32 page_size = 1
|
|
130
|
-
*/
|
|
131
|
-
pageSize: number;
|
|
132
|
-
/**
|
|
133
|
-
* @generated from protobuf field: string page_token = 2
|
|
134
|
-
*/
|
|
135
|
-
pageToken: string;
|
|
136
|
-
/**
|
|
137
|
-
* Filters.
|
|
138
|
-
*
|
|
139
|
-
* @generated from protobuf field: string client_id = 3
|
|
140
|
-
*/
|
|
141
|
-
clientId: string;
|
|
142
|
-
/**
|
|
143
|
-
* @generated from protobuf field: string profile_id = 4
|
|
144
|
-
*/
|
|
145
|
-
profileId: string;
|
|
146
|
-
/**
|
|
147
|
-
* @generated from protobuf field: string ip_address = 5
|
|
148
|
-
*/
|
|
149
|
-
ipAddress: string;
|
|
150
|
-
/**
|
|
151
|
-
* @generated from protobuf field: sid.v1.admin.SessionAuthMethod auth_method = 6
|
|
152
|
-
*/
|
|
153
|
-
authMethod: SessionAuthMethod;
|
|
154
|
-
/**
|
|
155
|
-
* @generated from protobuf field: google.protobuf.Timestamp started_after = 7
|
|
156
|
-
*/
|
|
157
|
-
startedAfter?: Timestamp;
|
|
158
|
-
/**
|
|
159
|
-
* @generated from protobuf field: google.protobuf.Timestamp started_before = 8
|
|
160
|
-
*/
|
|
161
|
-
startedBefore?: Timestamp;
|
|
162
|
-
/**
|
|
163
|
-
* @generated from protobuf field: string search = 9
|
|
164
|
-
*/
|
|
165
|
-
search: string;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* @generated from protobuf message sid.v1.admin.AdminListSessionsResponse
|
|
169
|
-
*/
|
|
170
|
-
export interface AdminListSessionsResponse {
|
|
171
|
-
/**
|
|
172
|
-
* @generated from protobuf field: repeated sid.v1.admin.AdminSession sessions = 1
|
|
173
|
-
*/
|
|
174
|
-
sessions: AdminSession[];
|
|
175
|
-
/**
|
|
176
|
-
* @generated from protobuf field: string next_page_token = 2
|
|
177
|
-
*/
|
|
178
|
-
nextPageToken: string;
|
|
179
|
-
/**
|
|
180
|
-
* @generated from protobuf field: uint32 total_count = 3
|
|
181
|
-
*/
|
|
182
|
-
totalCount: number;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* @generated from protobuf message sid.v1.admin.GetSessionStatsRequest
|
|
186
|
-
*/
|
|
187
|
-
export interface GetSessionStatsRequest {
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @generated from protobuf message sid.v1.admin.AdminRevokeSessionRequest
|
|
191
|
-
*/
|
|
192
|
-
export interface AdminRevokeSessionRequest {
|
|
193
|
-
/**
|
|
194
|
-
* @generated from protobuf field: string session_id = 1
|
|
195
|
-
*/
|
|
196
|
-
sessionId: string;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf message sid.v1.admin.RevokeApplicationSessionsRequest
|
|
200
|
-
*/
|
|
201
|
-
export interface RevokeApplicationSessionsRequest {
|
|
202
|
-
/**
|
|
203
|
-
* @generated from protobuf field: string client_id = 1
|
|
204
|
-
*/
|
|
205
|
-
clientId: string;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @generated from protobuf message sid.v1.admin.RevokeRealmSessionsRequest
|
|
209
|
-
*/
|
|
210
|
-
export interface RevokeRealmSessionsRequest {
|
|
211
|
-
/**
|
|
212
|
-
* Confirmation text — must be "REVOKE ALL SESSIONS" to proceed.
|
|
213
|
-
*
|
|
214
|
-
* @generated from protobuf field: string confirmation = 1
|
|
215
|
-
*/
|
|
216
|
-
confirmation: string;
|
|
217
|
-
}
|
|
218
|
-
// ── Enums ──
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* @generated from protobuf enum sid.v1.admin.SessionAuthMethod
|
|
222
|
-
*/
|
|
223
|
-
export enum SessionAuthMethod {
|
|
224
|
-
/**
|
|
225
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_UNSPECIFIED = 0;
|
|
226
|
-
*/
|
|
227
|
-
UNSPECIFIED = 0,
|
|
228
|
-
/**
|
|
229
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_PASSWORD = 1;
|
|
230
|
-
*/
|
|
231
|
-
PASSWORD = 1,
|
|
232
|
-
/**
|
|
233
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_MFA = 2;
|
|
234
|
-
*/
|
|
235
|
-
MFA = 2,
|
|
236
|
-
/**
|
|
237
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_SSO = 3;
|
|
238
|
-
*/
|
|
239
|
-
SSO = 3,
|
|
240
|
-
/**
|
|
241
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_PASSKEY = 4;
|
|
242
|
-
*/
|
|
243
|
-
PASSKEY = 4,
|
|
244
|
-
/**
|
|
245
|
-
* @generated from protobuf enum value: SESSION_AUTH_METHOD_MAGIC_LINK = 5;
|
|
246
|
-
*/
|
|
247
|
-
MAGIC_LINK = 5
|
|
248
|
-
}
|
|
249
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
250
|
-
class AdminSession$Type extends MessageType<AdminSession> {
|
|
251
|
-
constructor() {
|
|
252
|
-
super("sid.v1.admin.AdminSession", [
|
|
253
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
254
|
-
{ no: 2, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
255
|
-
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
256
|
-
{ no: 4, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
257
|
-
{ no: 5, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
258
|
-
{ no: 6, name: "client_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
259
|
-
{ no: 7, name: "ip_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
260
|
-
{ no: 8, name: "user_agent", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
261
|
-
{ no: 9, name: "auth_method", kind: "enum", T: () => ["sid.v1.admin.SessionAuthMethod", SessionAuthMethod, "SESSION_AUTH_METHOD_"] },
|
|
262
|
-
{ no: 10, name: "started_at", kind: "message", T: () => Timestamp },
|
|
263
|
-
{ no: 11, name: "last_activity", kind: "message", T: () => Timestamp }
|
|
264
|
-
]);
|
|
265
|
-
}
|
|
266
|
-
create(value?: PartialMessage<AdminSession>): AdminSession {
|
|
267
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
268
|
-
message.sessionId = "";
|
|
269
|
-
message.profileId = "";
|
|
270
|
-
message.displayName = "";
|
|
271
|
-
message.email = "";
|
|
272
|
-
message.clientId = "";
|
|
273
|
-
message.clientName = "";
|
|
274
|
-
message.ipAddress = "";
|
|
275
|
-
message.userAgent = "";
|
|
276
|
-
message.authMethod = 0;
|
|
277
|
-
if (value !== undefined)
|
|
278
|
-
reflectionMergePartial<AdminSession>(this, message, value);
|
|
279
|
-
return message;
|
|
280
|
-
}
|
|
281
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminSession): AdminSession {
|
|
282
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
283
|
-
while (reader.pos < end) {
|
|
284
|
-
let [fieldNo, wireType] = reader.tag();
|
|
285
|
-
switch (fieldNo) {
|
|
286
|
-
case /* string session_id */ 1:
|
|
287
|
-
message.sessionId = reader.string();
|
|
288
|
-
break;
|
|
289
|
-
case /* string profile_id */ 2:
|
|
290
|
-
message.profileId = reader.string();
|
|
291
|
-
break;
|
|
292
|
-
case /* string display_name */ 3:
|
|
293
|
-
message.displayName = reader.string();
|
|
294
|
-
break;
|
|
295
|
-
case /* string email */ 4:
|
|
296
|
-
message.email = reader.string();
|
|
297
|
-
break;
|
|
298
|
-
case /* string client_id */ 5:
|
|
299
|
-
message.clientId = reader.string();
|
|
300
|
-
break;
|
|
301
|
-
case /* string client_name */ 6:
|
|
302
|
-
message.clientName = reader.string();
|
|
303
|
-
break;
|
|
304
|
-
case /* string ip_address */ 7:
|
|
305
|
-
message.ipAddress = reader.string();
|
|
306
|
-
break;
|
|
307
|
-
case /* string user_agent */ 8:
|
|
308
|
-
message.userAgent = reader.string();
|
|
309
|
-
break;
|
|
310
|
-
case /* sid.v1.admin.SessionAuthMethod auth_method */ 9:
|
|
311
|
-
message.authMethod = reader.int32();
|
|
312
|
-
break;
|
|
313
|
-
case /* google.protobuf.Timestamp started_at */ 10:
|
|
314
|
-
message.startedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
315
|
-
break;
|
|
316
|
-
case /* google.protobuf.Timestamp last_activity */ 11:
|
|
317
|
-
message.lastActivity = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastActivity);
|
|
318
|
-
break;
|
|
319
|
-
default:
|
|
320
|
-
let u = options.readUnknownField;
|
|
321
|
-
if (u === "throw")
|
|
322
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
323
|
-
let d = reader.skip(wireType);
|
|
324
|
-
if (u !== false)
|
|
325
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
return message;
|
|
329
|
-
}
|
|
330
|
-
internalBinaryWrite(message: AdminSession, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
331
|
-
/* string session_id = 1; */
|
|
332
|
-
if (message.sessionId !== "")
|
|
333
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
334
|
-
/* string profile_id = 2; */
|
|
335
|
-
if (message.profileId !== "")
|
|
336
|
-
writer.tag(2, WireType.LengthDelimited).string(message.profileId);
|
|
337
|
-
/* string display_name = 3; */
|
|
338
|
-
if (message.displayName !== "")
|
|
339
|
-
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
340
|
-
/* string email = 4; */
|
|
341
|
-
if (message.email !== "")
|
|
342
|
-
writer.tag(4, WireType.LengthDelimited).string(message.email);
|
|
343
|
-
/* string client_id = 5; */
|
|
344
|
-
if (message.clientId !== "")
|
|
345
|
-
writer.tag(5, WireType.LengthDelimited).string(message.clientId);
|
|
346
|
-
/* string client_name = 6; */
|
|
347
|
-
if (message.clientName !== "")
|
|
348
|
-
writer.tag(6, WireType.LengthDelimited).string(message.clientName);
|
|
349
|
-
/* string ip_address = 7; */
|
|
350
|
-
if (message.ipAddress !== "")
|
|
351
|
-
writer.tag(7, WireType.LengthDelimited).string(message.ipAddress);
|
|
352
|
-
/* string user_agent = 8; */
|
|
353
|
-
if (message.userAgent !== "")
|
|
354
|
-
writer.tag(8, WireType.LengthDelimited).string(message.userAgent);
|
|
355
|
-
/* sid.v1.admin.SessionAuthMethod auth_method = 9; */
|
|
356
|
-
if (message.authMethod !== 0)
|
|
357
|
-
writer.tag(9, WireType.Varint).int32(message.authMethod);
|
|
358
|
-
/* google.protobuf.Timestamp started_at = 10; */
|
|
359
|
-
if (message.startedAt)
|
|
360
|
-
Timestamp.internalBinaryWrite(message.startedAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
361
|
-
/* google.protobuf.Timestamp last_activity = 11; */
|
|
362
|
-
if (message.lastActivity)
|
|
363
|
-
Timestamp.internalBinaryWrite(message.lastActivity, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
364
|
-
let u = options.writeUnknownFields;
|
|
365
|
-
if (u !== false)
|
|
366
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
367
|
-
return writer;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminSession
|
|
372
|
-
*/
|
|
373
|
-
export const AdminSession = new AdminSession$Type();
|
|
374
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
375
|
-
class SessionStats$Type extends MessageType<SessionStats> {
|
|
376
|
-
constructor() {
|
|
377
|
-
super("sid.v1.admin.SessionStats", [
|
|
378
|
-
{ no: 1, name: "total_active", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
379
|
-
{ no: 2, name: "active_users", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
380
|
-
{ no: 3, name: "peak_today", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
381
|
-
{ no: 4, name: "by_client", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClientSessionCount }
|
|
382
|
-
]);
|
|
383
|
-
}
|
|
384
|
-
create(value?: PartialMessage<SessionStats>): SessionStats {
|
|
385
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
386
|
-
message.totalActive = 0;
|
|
387
|
-
message.activeUsers = 0;
|
|
388
|
-
message.peakToday = 0;
|
|
389
|
-
message.byClient = [];
|
|
390
|
-
if (value !== undefined)
|
|
391
|
-
reflectionMergePartial<SessionStats>(this, message, value);
|
|
392
|
-
return message;
|
|
393
|
-
}
|
|
394
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SessionStats): SessionStats {
|
|
395
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
396
|
-
while (reader.pos < end) {
|
|
397
|
-
let [fieldNo, wireType] = reader.tag();
|
|
398
|
-
switch (fieldNo) {
|
|
399
|
-
case /* uint32 total_active */ 1:
|
|
400
|
-
message.totalActive = reader.uint32();
|
|
401
|
-
break;
|
|
402
|
-
case /* uint32 active_users */ 2:
|
|
403
|
-
message.activeUsers = reader.uint32();
|
|
404
|
-
break;
|
|
405
|
-
case /* uint32 peak_today */ 3:
|
|
406
|
-
message.peakToday = reader.uint32();
|
|
407
|
-
break;
|
|
408
|
-
case /* repeated sid.v1.admin.ClientSessionCount by_client */ 4:
|
|
409
|
-
message.byClient.push(ClientSessionCount.internalBinaryRead(reader, reader.uint32(), options));
|
|
410
|
-
break;
|
|
411
|
-
default:
|
|
412
|
-
let u = options.readUnknownField;
|
|
413
|
-
if (u === "throw")
|
|
414
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
415
|
-
let d = reader.skip(wireType);
|
|
416
|
-
if (u !== false)
|
|
417
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
return message;
|
|
421
|
-
}
|
|
422
|
-
internalBinaryWrite(message: SessionStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
423
|
-
/* uint32 total_active = 1; */
|
|
424
|
-
if (message.totalActive !== 0)
|
|
425
|
-
writer.tag(1, WireType.Varint).uint32(message.totalActive);
|
|
426
|
-
/* uint32 active_users = 2; */
|
|
427
|
-
if (message.activeUsers !== 0)
|
|
428
|
-
writer.tag(2, WireType.Varint).uint32(message.activeUsers);
|
|
429
|
-
/* uint32 peak_today = 3; */
|
|
430
|
-
if (message.peakToday !== 0)
|
|
431
|
-
writer.tag(3, WireType.Varint).uint32(message.peakToday);
|
|
432
|
-
/* repeated sid.v1.admin.ClientSessionCount by_client = 4; */
|
|
433
|
-
for (let i = 0; i < message.byClient.length; i++)
|
|
434
|
-
ClientSessionCount.internalBinaryWrite(message.byClient[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
435
|
-
let u = options.writeUnknownFields;
|
|
436
|
-
if (u !== false)
|
|
437
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
438
|
-
return writer;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* @generated MessageType for protobuf message sid.v1.admin.SessionStats
|
|
443
|
-
*/
|
|
444
|
-
export const SessionStats = new SessionStats$Type();
|
|
445
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
446
|
-
class ClientSessionCount$Type extends MessageType<ClientSessionCount> {
|
|
447
|
-
constructor() {
|
|
448
|
-
super("sid.v1.admin.ClientSessionCount", [
|
|
449
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
450
|
-
{ no: 2, name: "client_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
451
|
-
{ no: 3, name: "active_sessions", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
452
|
-
{ no: 4, name: "unique_users", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
453
|
-
]);
|
|
454
|
-
}
|
|
455
|
-
create(value?: PartialMessage<ClientSessionCount>): ClientSessionCount {
|
|
456
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
457
|
-
message.clientId = "";
|
|
458
|
-
message.clientName = "";
|
|
459
|
-
message.activeSessions = 0;
|
|
460
|
-
message.uniqueUsers = 0;
|
|
461
|
-
if (value !== undefined)
|
|
462
|
-
reflectionMergePartial<ClientSessionCount>(this, message, value);
|
|
463
|
-
return message;
|
|
464
|
-
}
|
|
465
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClientSessionCount): ClientSessionCount {
|
|
466
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
467
|
-
while (reader.pos < end) {
|
|
468
|
-
let [fieldNo, wireType] = reader.tag();
|
|
469
|
-
switch (fieldNo) {
|
|
470
|
-
case /* string client_id */ 1:
|
|
471
|
-
message.clientId = reader.string();
|
|
472
|
-
break;
|
|
473
|
-
case /* string client_name */ 2:
|
|
474
|
-
message.clientName = reader.string();
|
|
475
|
-
break;
|
|
476
|
-
case /* uint32 active_sessions */ 3:
|
|
477
|
-
message.activeSessions = reader.uint32();
|
|
478
|
-
break;
|
|
479
|
-
case /* uint32 unique_users */ 4:
|
|
480
|
-
message.uniqueUsers = reader.uint32();
|
|
481
|
-
break;
|
|
482
|
-
default:
|
|
483
|
-
let u = options.readUnknownField;
|
|
484
|
-
if (u === "throw")
|
|
485
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
486
|
-
let d = reader.skip(wireType);
|
|
487
|
-
if (u !== false)
|
|
488
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
return message;
|
|
492
|
-
}
|
|
493
|
-
internalBinaryWrite(message: ClientSessionCount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
494
|
-
/* string client_id = 1; */
|
|
495
|
-
if (message.clientId !== "")
|
|
496
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
497
|
-
/* string client_name = 2; */
|
|
498
|
-
if (message.clientName !== "")
|
|
499
|
-
writer.tag(2, WireType.LengthDelimited).string(message.clientName);
|
|
500
|
-
/* uint32 active_sessions = 3; */
|
|
501
|
-
if (message.activeSessions !== 0)
|
|
502
|
-
writer.tag(3, WireType.Varint).uint32(message.activeSessions);
|
|
503
|
-
/* uint32 unique_users = 4; */
|
|
504
|
-
if (message.uniqueUsers !== 0)
|
|
505
|
-
writer.tag(4, WireType.Varint).uint32(message.uniqueUsers);
|
|
506
|
-
let u = options.writeUnknownFields;
|
|
507
|
-
if (u !== false)
|
|
508
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
509
|
-
return writer;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* @generated MessageType for protobuf message sid.v1.admin.ClientSessionCount
|
|
514
|
-
*/
|
|
515
|
-
export const ClientSessionCount = new ClientSessionCount$Type();
|
|
516
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
517
|
-
class RevokeSessionsResult$Type extends MessageType<RevokeSessionsResult> {
|
|
518
|
-
constructor() {
|
|
519
|
-
super("sid.v1.admin.RevokeSessionsResult", [
|
|
520
|
-
{ no: 1, name: "revoked_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
521
|
-
]);
|
|
522
|
-
}
|
|
523
|
-
create(value?: PartialMessage<RevokeSessionsResult>): RevokeSessionsResult {
|
|
524
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
525
|
-
message.revokedCount = 0;
|
|
526
|
-
if (value !== undefined)
|
|
527
|
-
reflectionMergePartial<RevokeSessionsResult>(this, message, value);
|
|
528
|
-
return message;
|
|
529
|
-
}
|
|
530
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeSessionsResult): RevokeSessionsResult {
|
|
531
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
532
|
-
while (reader.pos < end) {
|
|
533
|
-
let [fieldNo, wireType] = reader.tag();
|
|
534
|
-
switch (fieldNo) {
|
|
535
|
-
case /* uint32 revoked_count */ 1:
|
|
536
|
-
message.revokedCount = reader.uint32();
|
|
537
|
-
break;
|
|
538
|
-
default:
|
|
539
|
-
let u = options.readUnknownField;
|
|
540
|
-
if (u === "throw")
|
|
541
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
542
|
-
let d = reader.skip(wireType);
|
|
543
|
-
if (u !== false)
|
|
544
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
return message;
|
|
548
|
-
}
|
|
549
|
-
internalBinaryWrite(message: RevokeSessionsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
550
|
-
/* uint32 revoked_count = 1; */
|
|
551
|
-
if (message.revokedCount !== 0)
|
|
552
|
-
writer.tag(1, WireType.Varint).uint32(message.revokedCount);
|
|
553
|
-
let u = options.writeUnknownFields;
|
|
554
|
-
if (u !== false)
|
|
555
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
556
|
-
return writer;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeSessionsResult
|
|
561
|
-
*/
|
|
562
|
-
export const RevokeSessionsResult = new RevokeSessionsResult$Type();
|
|
563
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
564
|
-
class AdminListSessionsRequest$Type extends MessageType<AdminListSessionsRequest> {
|
|
565
|
-
constructor() {
|
|
566
|
-
super("sid.v1.admin.AdminListSessionsRequest", [
|
|
567
|
-
{ no: 1, name: "page_size", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
568
|
-
{ no: 2, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
569
|
-
{ no: 3, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
570
|
-
{ no: 4, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
571
|
-
{ no: 5, name: "ip_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
572
|
-
{ no: 6, name: "auth_method", kind: "enum", T: () => ["sid.v1.admin.SessionAuthMethod", SessionAuthMethod, "SESSION_AUTH_METHOD_"] },
|
|
573
|
-
{ no: 7, name: "started_after", kind: "message", T: () => Timestamp },
|
|
574
|
-
{ no: 8, name: "started_before", kind: "message", T: () => Timestamp },
|
|
575
|
-
{ no: 9, name: "search", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
576
|
-
]);
|
|
577
|
-
}
|
|
578
|
-
create(value?: PartialMessage<AdminListSessionsRequest>): AdminListSessionsRequest {
|
|
579
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
580
|
-
message.pageSize = 0;
|
|
581
|
-
message.pageToken = "";
|
|
582
|
-
message.clientId = "";
|
|
583
|
-
message.profileId = "";
|
|
584
|
-
message.ipAddress = "";
|
|
585
|
-
message.authMethod = 0;
|
|
586
|
-
message.search = "";
|
|
587
|
-
if (value !== undefined)
|
|
588
|
-
reflectionMergePartial<AdminListSessionsRequest>(this, message, value);
|
|
589
|
-
return message;
|
|
590
|
-
}
|
|
591
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminListSessionsRequest): AdminListSessionsRequest {
|
|
592
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
593
|
-
while (reader.pos < end) {
|
|
594
|
-
let [fieldNo, wireType] = reader.tag();
|
|
595
|
-
switch (fieldNo) {
|
|
596
|
-
case /* uint32 page_size */ 1:
|
|
597
|
-
message.pageSize = reader.uint32();
|
|
598
|
-
break;
|
|
599
|
-
case /* string page_token */ 2:
|
|
600
|
-
message.pageToken = reader.string();
|
|
601
|
-
break;
|
|
602
|
-
case /* string client_id */ 3:
|
|
603
|
-
message.clientId = reader.string();
|
|
604
|
-
break;
|
|
605
|
-
case /* string profile_id */ 4:
|
|
606
|
-
message.profileId = reader.string();
|
|
607
|
-
break;
|
|
608
|
-
case /* string ip_address */ 5:
|
|
609
|
-
message.ipAddress = reader.string();
|
|
610
|
-
break;
|
|
611
|
-
case /* sid.v1.admin.SessionAuthMethod auth_method */ 6:
|
|
612
|
-
message.authMethod = reader.int32();
|
|
613
|
-
break;
|
|
614
|
-
case /* google.protobuf.Timestamp started_after */ 7:
|
|
615
|
-
message.startedAfter = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAfter);
|
|
616
|
-
break;
|
|
617
|
-
case /* google.protobuf.Timestamp started_before */ 8:
|
|
618
|
-
message.startedBefore = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedBefore);
|
|
619
|
-
break;
|
|
620
|
-
case /* string search */ 9:
|
|
621
|
-
message.search = reader.string();
|
|
622
|
-
break;
|
|
623
|
-
default:
|
|
624
|
-
let u = options.readUnknownField;
|
|
625
|
-
if (u === "throw")
|
|
626
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
627
|
-
let d = reader.skip(wireType);
|
|
628
|
-
if (u !== false)
|
|
629
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
return message;
|
|
633
|
-
}
|
|
634
|
-
internalBinaryWrite(message: AdminListSessionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
635
|
-
/* uint32 page_size = 1; */
|
|
636
|
-
if (message.pageSize !== 0)
|
|
637
|
-
writer.tag(1, WireType.Varint).uint32(message.pageSize);
|
|
638
|
-
/* string page_token = 2; */
|
|
639
|
-
if (message.pageToken !== "")
|
|
640
|
-
writer.tag(2, WireType.LengthDelimited).string(message.pageToken);
|
|
641
|
-
/* string client_id = 3; */
|
|
642
|
-
if (message.clientId !== "")
|
|
643
|
-
writer.tag(3, WireType.LengthDelimited).string(message.clientId);
|
|
644
|
-
/* string profile_id = 4; */
|
|
645
|
-
if (message.profileId !== "")
|
|
646
|
-
writer.tag(4, WireType.LengthDelimited).string(message.profileId);
|
|
647
|
-
/* string ip_address = 5; */
|
|
648
|
-
if (message.ipAddress !== "")
|
|
649
|
-
writer.tag(5, WireType.LengthDelimited).string(message.ipAddress);
|
|
650
|
-
/* sid.v1.admin.SessionAuthMethod auth_method = 6; */
|
|
651
|
-
if (message.authMethod !== 0)
|
|
652
|
-
writer.tag(6, WireType.Varint).int32(message.authMethod);
|
|
653
|
-
/* google.protobuf.Timestamp started_after = 7; */
|
|
654
|
-
if (message.startedAfter)
|
|
655
|
-
Timestamp.internalBinaryWrite(message.startedAfter, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
656
|
-
/* google.protobuf.Timestamp started_before = 8; */
|
|
657
|
-
if (message.startedBefore)
|
|
658
|
-
Timestamp.internalBinaryWrite(message.startedBefore, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
659
|
-
/* string search = 9; */
|
|
660
|
-
if (message.search !== "")
|
|
661
|
-
writer.tag(9, WireType.LengthDelimited).string(message.search);
|
|
662
|
-
let u = options.writeUnknownFields;
|
|
663
|
-
if (u !== false)
|
|
664
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
665
|
-
return writer;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminListSessionsRequest
|
|
670
|
-
*/
|
|
671
|
-
export const AdminListSessionsRequest = new AdminListSessionsRequest$Type();
|
|
672
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
673
|
-
class AdminListSessionsResponse$Type extends MessageType<AdminListSessionsResponse> {
|
|
674
|
-
constructor() {
|
|
675
|
-
super("sid.v1.admin.AdminListSessionsResponse", [
|
|
676
|
-
{ no: 1, name: "sessions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AdminSession },
|
|
677
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
678
|
-
{ no: 3, name: "total_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
679
|
-
]);
|
|
680
|
-
}
|
|
681
|
-
create(value?: PartialMessage<AdminListSessionsResponse>): AdminListSessionsResponse {
|
|
682
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
683
|
-
message.sessions = [];
|
|
684
|
-
message.nextPageToken = "";
|
|
685
|
-
message.totalCount = 0;
|
|
686
|
-
if (value !== undefined)
|
|
687
|
-
reflectionMergePartial<AdminListSessionsResponse>(this, message, value);
|
|
688
|
-
return message;
|
|
689
|
-
}
|
|
690
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminListSessionsResponse): AdminListSessionsResponse {
|
|
691
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
692
|
-
while (reader.pos < end) {
|
|
693
|
-
let [fieldNo, wireType] = reader.tag();
|
|
694
|
-
switch (fieldNo) {
|
|
695
|
-
case /* repeated sid.v1.admin.AdminSession sessions */ 1:
|
|
696
|
-
message.sessions.push(AdminSession.internalBinaryRead(reader, reader.uint32(), options));
|
|
697
|
-
break;
|
|
698
|
-
case /* string next_page_token */ 2:
|
|
699
|
-
message.nextPageToken = reader.string();
|
|
700
|
-
break;
|
|
701
|
-
case /* uint32 total_count */ 3:
|
|
702
|
-
message.totalCount = reader.uint32();
|
|
703
|
-
break;
|
|
704
|
-
default:
|
|
705
|
-
let u = options.readUnknownField;
|
|
706
|
-
if (u === "throw")
|
|
707
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
708
|
-
let d = reader.skip(wireType);
|
|
709
|
-
if (u !== false)
|
|
710
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
return message;
|
|
714
|
-
}
|
|
715
|
-
internalBinaryWrite(message: AdminListSessionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
716
|
-
/* repeated sid.v1.admin.AdminSession sessions = 1; */
|
|
717
|
-
for (let i = 0; i < message.sessions.length; i++)
|
|
718
|
-
AdminSession.internalBinaryWrite(message.sessions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
719
|
-
/* string next_page_token = 2; */
|
|
720
|
-
if (message.nextPageToken !== "")
|
|
721
|
-
writer.tag(2, WireType.LengthDelimited).string(message.nextPageToken);
|
|
722
|
-
/* uint32 total_count = 3; */
|
|
723
|
-
if (message.totalCount !== 0)
|
|
724
|
-
writer.tag(3, WireType.Varint).uint32(message.totalCount);
|
|
725
|
-
let u = options.writeUnknownFields;
|
|
726
|
-
if (u !== false)
|
|
727
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
728
|
-
return writer;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
/**
|
|
732
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminListSessionsResponse
|
|
733
|
-
*/
|
|
734
|
-
export const AdminListSessionsResponse = new AdminListSessionsResponse$Type();
|
|
735
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
736
|
-
class GetSessionStatsRequest$Type extends MessageType<GetSessionStatsRequest> {
|
|
737
|
-
constructor() {
|
|
738
|
-
super("sid.v1.admin.GetSessionStatsRequest", []);
|
|
739
|
-
}
|
|
740
|
-
create(value?: PartialMessage<GetSessionStatsRequest>): GetSessionStatsRequest {
|
|
741
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
742
|
-
if (value !== undefined)
|
|
743
|
-
reflectionMergePartial<GetSessionStatsRequest>(this, message, value);
|
|
744
|
-
return message;
|
|
745
|
-
}
|
|
746
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSessionStatsRequest): GetSessionStatsRequest {
|
|
747
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
748
|
-
while (reader.pos < end) {
|
|
749
|
-
let [fieldNo, wireType] = reader.tag();
|
|
750
|
-
switch (fieldNo) {
|
|
751
|
-
default:
|
|
752
|
-
let u = options.readUnknownField;
|
|
753
|
-
if (u === "throw")
|
|
754
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
755
|
-
let d = reader.skip(wireType);
|
|
756
|
-
if (u !== false)
|
|
757
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
return message;
|
|
761
|
-
}
|
|
762
|
-
internalBinaryWrite(message: GetSessionStatsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
763
|
-
let u = options.writeUnknownFields;
|
|
764
|
-
if (u !== false)
|
|
765
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
766
|
-
return writer;
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetSessionStatsRequest
|
|
771
|
-
*/
|
|
772
|
-
export const GetSessionStatsRequest = new GetSessionStatsRequest$Type();
|
|
773
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
774
|
-
class AdminRevokeSessionRequest$Type extends MessageType<AdminRevokeSessionRequest> {
|
|
775
|
-
constructor() {
|
|
776
|
-
super("sid.v1.admin.AdminRevokeSessionRequest", [
|
|
777
|
-
{ no: 1, name: "session_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
778
|
-
]);
|
|
779
|
-
}
|
|
780
|
-
create(value?: PartialMessage<AdminRevokeSessionRequest>): AdminRevokeSessionRequest {
|
|
781
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
782
|
-
message.sessionId = "";
|
|
783
|
-
if (value !== undefined)
|
|
784
|
-
reflectionMergePartial<AdminRevokeSessionRequest>(this, message, value);
|
|
785
|
-
return message;
|
|
786
|
-
}
|
|
787
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdminRevokeSessionRequest): AdminRevokeSessionRequest {
|
|
788
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
789
|
-
while (reader.pos < end) {
|
|
790
|
-
let [fieldNo, wireType] = reader.tag();
|
|
791
|
-
switch (fieldNo) {
|
|
792
|
-
case /* string session_id */ 1:
|
|
793
|
-
message.sessionId = reader.string();
|
|
794
|
-
break;
|
|
795
|
-
default:
|
|
796
|
-
let u = options.readUnknownField;
|
|
797
|
-
if (u === "throw")
|
|
798
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
799
|
-
let d = reader.skip(wireType);
|
|
800
|
-
if (u !== false)
|
|
801
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
return message;
|
|
805
|
-
}
|
|
806
|
-
internalBinaryWrite(message: AdminRevokeSessionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
807
|
-
/* string session_id = 1; */
|
|
808
|
-
if (message.sessionId !== "")
|
|
809
|
-
writer.tag(1, WireType.LengthDelimited).string(message.sessionId);
|
|
810
|
-
let u = options.writeUnknownFields;
|
|
811
|
-
if (u !== false)
|
|
812
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
813
|
-
return writer;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @generated MessageType for protobuf message sid.v1.admin.AdminRevokeSessionRequest
|
|
818
|
-
*/
|
|
819
|
-
export const AdminRevokeSessionRequest = new AdminRevokeSessionRequest$Type();
|
|
820
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
821
|
-
class RevokeApplicationSessionsRequest$Type extends MessageType<RevokeApplicationSessionsRequest> {
|
|
822
|
-
constructor() {
|
|
823
|
-
super("sid.v1.admin.RevokeApplicationSessionsRequest", [
|
|
824
|
-
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
825
|
-
]);
|
|
826
|
-
}
|
|
827
|
-
create(value?: PartialMessage<RevokeApplicationSessionsRequest>): RevokeApplicationSessionsRequest {
|
|
828
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
829
|
-
message.clientId = "";
|
|
830
|
-
if (value !== undefined)
|
|
831
|
-
reflectionMergePartial<RevokeApplicationSessionsRequest>(this, message, value);
|
|
832
|
-
return message;
|
|
833
|
-
}
|
|
834
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeApplicationSessionsRequest): RevokeApplicationSessionsRequest {
|
|
835
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
836
|
-
while (reader.pos < end) {
|
|
837
|
-
let [fieldNo, wireType] = reader.tag();
|
|
838
|
-
switch (fieldNo) {
|
|
839
|
-
case /* string client_id */ 1:
|
|
840
|
-
message.clientId = reader.string();
|
|
841
|
-
break;
|
|
842
|
-
default:
|
|
843
|
-
let u = options.readUnknownField;
|
|
844
|
-
if (u === "throw")
|
|
845
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
846
|
-
let d = reader.skip(wireType);
|
|
847
|
-
if (u !== false)
|
|
848
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
return message;
|
|
852
|
-
}
|
|
853
|
-
internalBinaryWrite(message: RevokeApplicationSessionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
854
|
-
/* string client_id = 1; */
|
|
855
|
-
if (message.clientId !== "")
|
|
856
|
-
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
857
|
-
let u = options.writeUnknownFields;
|
|
858
|
-
if (u !== false)
|
|
859
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
860
|
-
return writer;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeApplicationSessionsRequest
|
|
865
|
-
*/
|
|
866
|
-
export const RevokeApplicationSessionsRequest = new RevokeApplicationSessionsRequest$Type();
|
|
867
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
868
|
-
class RevokeRealmSessionsRequest$Type extends MessageType<RevokeRealmSessionsRequest> {
|
|
869
|
-
constructor() {
|
|
870
|
-
super("sid.v1.admin.RevokeRealmSessionsRequest", [
|
|
871
|
-
{ no: 1, name: "confirmation", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
872
|
-
]);
|
|
873
|
-
}
|
|
874
|
-
create(value?: PartialMessage<RevokeRealmSessionsRequest>): RevokeRealmSessionsRequest {
|
|
875
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
876
|
-
message.confirmation = "";
|
|
877
|
-
if (value !== undefined)
|
|
878
|
-
reflectionMergePartial<RevokeRealmSessionsRequest>(this, message, value);
|
|
879
|
-
return message;
|
|
880
|
-
}
|
|
881
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RevokeRealmSessionsRequest): RevokeRealmSessionsRequest {
|
|
882
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
883
|
-
while (reader.pos < end) {
|
|
884
|
-
let [fieldNo, wireType] = reader.tag();
|
|
885
|
-
switch (fieldNo) {
|
|
886
|
-
case /* string confirmation */ 1:
|
|
887
|
-
message.confirmation = reader.string();
|
|
888
|
-
break;
|
|
889
|
-
default:
|
|
890
|
-
let u = options.readUnknownField;
|
|
891
|
-
if (u === "throw")
|
|
892
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
893
|
-
let d = reader.skip(wireType);
|
|
894
|
-
if (u !== false)
|
|
895
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
return message;
|
|
899
|
-
}
|
|
900
|
-
internalBinaryWrite(message: RevokeRealmSessionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
901
|
-
/* string confirmation = 1; */
|
|
902
|
-
if (message.confirmation !== "")
|
|
903
|
-
writer.tag(1, WireType.LengthDelimited).string(message.confirmation);
|
|
904
|
-
let u = options.writeUnknownFields;
|
|
905
|
-
if (u !== false)
|
|
906
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
907
|
-
return writer;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* @generated MessageType for protobuf message sid.v1.admin.RevokeRealmSessionsRequest
|
|
912
|
-
*/
|
|
913
|
-
export const RevokeRealmSessionsRequest = new RevokeRealmSessionsRequest$Type();
|
|
914
|
-
/**
|
|
915
|
-
* @generated ServiceType for protobuf service sid.v1.admin.SessionService
|
|
916
|
-
*/
|
|
917
|
-
export const SessionService = new ServiceType("sid.v1.admin.SessionService", [
|
|
918
|
-
{ name: "ListSessions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/sessions" } }, I: AdminListSessionsRequest, O: AdminListSessionsResponse },
|
|
919
|
-
{ name: "GetSessionStats", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/sessions/stats" } }, I: GetSessionStatsRequest, O: SessionStats },
|
|
920
|
-
{ name: "RevokeSession", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/sessions/{session_id}" } }, I: AdminRevokeSessionRequest, O: Empty },
|
|
921
|
-
{ name: "RevokeApplicationSessions", options: { "google.api.http": { post: "/v1/admin/sessions/revoke-by-app", body: "*" } }, I: RevokeApplicationSessionsRequest, O: RevokeSessionsResult },
|
|
922
|
-
{ name: "RevokeRealmSessions", options: { "google.api.http": { post: "/v1/admin/sessions/revoke-all", body: "*" } }, I: RevokeRealmSessionsRequest, O: RevokeSessionsResult }
|
|
923
|
-
]);
|