@ssoeasy-dev/proto 1.1.1-beta.1 → 1.1.1-beta.2

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.
Files changed (46) hide show
  1. package/gen/ts/auth/v1/auth.ts +648 -233
  2. package/gen/ts/auth/v1/common.ts +120 -0
  3. package/gen/ts/{companies/v1/models/employee_company.ts → auth/v1/permission.ts} +63 -35
  4. package/gen/ts/auth/v1/user_policy.ts +454 -0
  5. package/gen/ts/auth/v1/verification.ts +389 -102
  6. package/gen/ts/common/v1/types.ts +25 -67
  7. package/gen/ts/companies/v1/owner.ts +41 -284
  8. package/gen/ts/companies/v1/service.ts +150 -0
  9. package/gen/ts/index.auth.ts +1 -1
  10. package/gen/ts/index.auth.v1.ts +4 -1
  11. package/gen/ts/index.common.ts +1 -1
  12. package/gen/ts/index.common.v1.ts +1 -1
  13. package/gen/ts/index.companies.ts +1 -1
  14. package/gen/ts/index.companies.v1.ts +2 -2
  15. package/gen/ts/index.ts +2 -5
  16. package/package.json +1 -1
  17. package/proto/auth/v1/auth.proto +47 -19
  18. package/proto/auth/v1/common.proto +8 -0
  19. package/proto/auth/v1/permission.proto +15 -0
  20. package/proto/auth/v1/user_policy.proto +30 -0
  21. package/proto/auth/v1/verification.proto +32 -9
  22. package/proto/common/v1/types.proto +2 -5
  23. package/proto/companies/v1/owner.proto +4 -19
  24. package/proto/companies/v1/service.proto +14 -0
  25. package/gen/ts/abac/v1/employee_attribute.ts +0 -501
  26. package/gen/ts/abac/v1/models/employee_attribute.ts +0 -190
  27. package/gen/ts/companies/v1/models/company.ts +0 -204
  28. package/gen/ts/companies/v1/models/employee.ts +0 -175
  29. package/gen/ts/companies/v1/models/subscription.ts +0 -166
  30. package/gen/ts/google/protobuf/timestamp.ts +0 -233
  31. package/gen/ts/index.abac.ts +0 -8
  32. package/gen/ts/index.abac.v1.models.ts +0 -8
  33. package/gen/ts/index.abac.v1.ts +0 -9
  34. package/gen/ts/index.companies.v1.models.ts +0 -11
  35. package/gen/ts/index.google.protobuf.ts +0 -8
  36. package/gen/ts/index.google.ts +0 -8
  37. package/gen/ts/index.services.ts +0 -8
  38. package/gen/ts/index.services.v1.ts +0 -8
  39. package/gen/ts/services/v1/services.ts +0 -293
  40. package/proto/abac/v1/employee_attribute.proto +0 -31
  41. package/proto/abac/v1/models/employee_attribute.proto +0 -11
  42. package/proto/companies/v1/models/company.proto +0 -12
  43. package/proto/companies/v1/models/employee.proto +0 -11
  44. package/proto/companies/v1/models/employee_company.proto +0 -9
  45. package/proto/companies/v1/models/subscription.proto +0 -10
  46. package/proto/services/v1/services.proto +0 -19
@@ -1,101 +1,106 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.11.2
3
+ // protoc-gen-ts_proto v2.11.4
4
4
  // protoc unknown
5
5
  // source: auth/v1/auth.proto
6
6
 
7
7
  /* eslint-disable */
8
8
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
9
  import type { CallContext, CallOptions } from "nice-grpc-common";
10
+ import { StatusResponse } from "../../common/v1/types";
11
+ import { Tokens } from "./common";
12
+ import { UserPolicyRequest, UserPolicyResponse } from "./user_policy";
10
13
  import {
14
+ Verification,
11
15
  VerificationType,
12
16
  verificationTypeFromJSON,
13
17
  verificationTypeToJSON,
14
18
  verificationTypeToNumber,
15
19
  } from "./verification";
16
20
 
21
+ export interface AuthCode {
22
+ $type: "auth.v1.AuthCode";
23
+ id: string;
24
+ value: string;
25
+ expiresAt: number;
26
+ }
27
+
17
28
  export interface RegistrationRequest {
18
29
  $type: "auth.v1.RegistrationRequest";
19
- userId: string;
20
- serviceId: string;
21
- companyId: string;
22
- attributeName: string;
23
- attributeValue: string;
24
- contact: string;
25
- verificationType: VerificationType;
30
+ login: string;
26
31
  password: string;
32
+ verificationType?: VerificationType | undefined;
33
+ policies: UserPolicyRequest[];
27
34
  }
28
35
 
29
36
  export interface RegistrationResponse {
30
37
  $type: "auth.v1.RegistrationResponse";
38
+ userId: string;
31
39
  credentialId: string;
32
- attributeId: string;
33
- verificationId: string;
34
- value: string;
35
- expiresAt: number;
40
+ policies: UserPolicyResponse[];
41
+ verification?: Verification | undefined;
36
42
  }
37
43
 
38
44
  export interface RegistrationCompensateRequest {
39
45
  $type: "auth.v1.RegistrationCompensateRequest";
46
+ userId: string;
40
47
  credentialId: string;
41
- verificationId: string;
42
- userAttributeId: string;
48
+ verificationId?: string | undefined;
49
+ policyIds: string[];
43
50
  }
44
51
 
45
- export interface StatusResponse {
46
- $type: "auth.v1.StatusResponse";
47
- success: boolean;
52
+ export interface LoginRequest {
53
+ $type: "auth.v1.LoginRequest";
54
+ login: string;
55
+ password: string;
56
+ codeChallenge: string;
57
+ serviceId: string;
58
+ verificationType?: VerificationType | undefined;
48
59
  }
49
60
 
50
- function createBaseRegistrationRequest(): RegistrationRequest {
51
- return {
52
- $type: "auth.v1.RegistrationRequest",
53
- userId: "",
54
- serviceId: "",
55
- companyId: "",
56
- attributeName: "",
57
- attributeValue: "",
58
- contact: "",
59
- verificationType: VerificationType.email_code,
60
- password: "",
61
- };
61
+ export interface LoginResponse {
62
+ $type: "auth.v1.LoginResponse";
63
+ code?: AuthCode | undefined;
64
+ verification?: Verification | undefined;
62
65
  }
63
66
 
64
- export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.RegistrationRequest"> = {
65
- $type: "auth.v1.RegistrationRequest" as const,
67
+ export interface CodeVerifier {
68
+ $type: "auth.v1.CodeVerifier";
69
+ code: string;
70
+ verifier: string;
71
+ }
66
72
 
67
- encode(message: RegistrationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
68
- if (message.userId !== "") {
69
- writer.uint32(10).string(message.userId);
70
- }
71
- if (message.serviceId !== "") {
72
- writer.uint32(18).string(message.serviceId);
73
- }
74
- if (message.companyId !== "") {
75
- writer.uint32(26).string(message.companyId);
76
- }
77
- if (message.attributeName !== "") {
78
- writer.uint32(34).string(message.attributeName);
79
- }
80
- if (message.attributeValue !== "") {
81
- writer.uint32(42).string(message.attributeValue);
82
- }
83
- if (message.contact !== "") {
84
- writer.uint32(50).string(message.contact);
73
+ export interface AuthorizeRequest {
74
+ $type: "auth.v1.AuthorizeRequest";
75
+ serviceId: string;
76
+ tokens?: Tokens | undefined;
77
+ code?: CodeVerifier | undefined;
78
+ }
79
+
80
+ function createBaseAuthCode(): AuthCode {
81
+ return { $type: "auth.v1.AuthCode", id: "", value: "", expiresAt: 0 };
82
+ }
83
+
84
+ export const AuthCode: MessageFns<AuthCode, "auth.v1.AuthCode"> = {
85
+ $type: "auth.v1.AuthCode" as const,
86
+
87
+ encode(message: AuthCode, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
88
+ if (message.id !== "") {
89
+ writer.uint32(10).string(message.id);
85
90
  }
86
- if (message.verificationType !== VerificationType.email_code) {
87
- writer.uint32(56).int32(verificationTypeToNumber(message.verificationType));
91
+ if (message.value !== "") {
92
+ writer.uint32(18).string(message.value);
88
93
  }
89
- if (message.password !== "") {
90
- writer.uint32(66).string(message.password);
94
+ if (message.expiresAt !== 0) {
95
+ writer.uint32(24).int64(message.expiresAt);
91
96
  }
92
97
  return writer;
93
98
  },
94
99
 
95
- decode(input: BinaryReader | Uint8Array, length?: number): RegistrationRequest {
100
+ decode(input: BinaryReader | Uint8Array, length?: number): AuthCode {
96
101
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
97
102
  const end = length === undefined ? reader.len : reader.pos + length;
98
- const message = createBaseRegistrationRequest();
103
+ const message = createBaseAuthCode();
99
104
  while (reader.pos < end) {
100
105
  const tag = reader.uint32();
101
106
  switch (tag >>> 3) {
@@ -104,7 +109,7 @@ export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.Regis
104
109
  break;
105
110
  }
106
111
 
107
- message.userId = reader.string();
112
+ message.id = reader.string();
108
113
  continue;
109
114
  }
110
115
  case 2: {
@@ -112,55 +117,125 @@ export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.Regis
112
117
  break;
113
118
  }
114
119
 
115
- message.serviceId = reader.string();
120
+ message.value = reader.string();
116
121
  continue;
117
122
  }
118
123
  case 3: {
119
- if (tag !== 26) {
124
+ if (tag !== 24) {
120
125
  break;
121
126
  }
122
127
 
123
- message.companyId = reader.string();
128
+ message.expiresAt = longToNumber(reader.int64());
124
129
  continue;
125
130
  }
126
- case 4: {
127
- if (tag !== 34) {
128
- break;
129
- }
131
+ }
132
+ if ((tag & 7) === 4 || tag === 0) {
133
+ break;
134
+ }
135
+ reader.skip(tag & 7);
136
+ }
137
+ return message;
138
+ },
130
139
 
131
- message.attributeName = reader.string();
132
- continue;
133
- }
134
- case 5: {
135
- if (tag !== 42) {
140
+ fromJSON(object: any): AuthCode {
141
+ return {
142
+ $type: AuthCode.$type,
143
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
144
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
145
+ expiresAt: isSet(object.expiresAt)
146
+ ? globalThis.Number(object.expiresAt)
147
+ : isSet(object.expires_at)
148
+ ? globalThis.Number(object.expires_at)
149
+ : 0,
150
+ };
151
+ },
152
+
153
+ toJSON(message: AuthCode): unknown {
154
+ const obj: any = {};
155
+ if (message.id !== "") {
156
+ obj.id = message.id;
157
+ }
158
+ if (message.value !== "") {
159
+ obj.value = message.value;
160
+ }
161
+ if (message.expiresAt !== 0) {
162
+ obj.expiresAt = Math.round(message.expiresAt);
163
+ }
164
+ return obj;
165
+ },
166
+
167
+ create<I extends Exact<DeepPartial<AuthCode>, I>>(base?: I): AuthCode {
168
+ return AuthCode.fromPartial(base ?? ({} as any));
169
+ },
170
+ fromPartial<I extends Exact<DeepPartial<AuthCode>, I>>(object: I): AuthCode {
171
+ const message = createBaseAuthCode();
172
+ message.id = object.id ?? "";
173
+ message.value = object.value ?? "";
174
+ message.expiresAt = object.expiresAt ?? 0;
175
+ return message;
176
+ },
177
+ };
178
+
179
+ function createBaseRegistrationRequest(): RegistrationRequest {
180
+ return { $type: "auth.v1.RegistrationRequest", login: "", password: "", verificationType: undefined, policies: [] };
181
+ }
182
+
183
+ export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.RegistrationRequest"> = {
184
+ $type: "auth.v1.RegistrationRequest" as const,
185
+
186
+ encode(message: RegistrationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
187
+ if (message.login !== "") {
188
+ writer.uint32(10).string(message.login);
189
+ }
190
+ if (message.password !== "") {
191
+ writer.uint32(18).string(message.password);
192
+ }
193
+ if (message.verificationType !== undefined) {
194
+ writer.uint32(24).int32(verificationTypeToNumber(message.verificationType));
195
+ }
196
+ for (const v of message.policies) {
197
+ UserPolicyRequest.encode(v!, writer.uint32(34).fork()).join();
198
+ }
199
+ return writer;
200
+ },
201
+
202
+ decode(input: BinaryReader | Uint8Array, length?: number): RegistrationRequest {
203
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
204
+ const end = length === undefined ? reader.len : reader.pos + length;
205
+ const message = createBaseRegistrationRequest();
206
+ while (reader.pos < end) {
207
+ const tag = reader.uint32();
208
+ switch (tag >>> 3) {
209
+ case 1: {
210
+ if (tag !== 10) {
136
211
  break;
137
212
  }
138
213
 
139
- message.attributeValue = reader.string();
214
+ message.login = reader.string();
140
215
  continue;
141
216
  }
142
- case 6: {
143
- if (tag !== 50) {
217
+ case 2: {
218
+ if (tag !== 18) {
144
219
  break;
145
220
  }
146
221
 
147
- message.contact = reader.string();
222
+ message.password = reader.string();
148
223
  continue;
149
224
  }
150
- case 7: {
151
- if (tag !== 56) {
225
+ case 3: {
226
+ if (tag !== 24) {
152
227
  break;
153
228
  }
154
229
 
155
230
  message.verificationType = verificationTypeFromJSON(reader.int32());
156
231
  continue;
157
232
  }
158
- case 8: {
159
- if (tag !== 66) {
233
+ case 4: {
234
+ if (tag !== 34) {
160
235
  break;
161
236
  }
162
237
 
163
- message.password = reader.string();
238
+ message.policies.push(UserPolicyRequest.decode(reader, reader.uint32()));
164
239
  continue;
165
240
  }
166
241
  }
@@ -175,66 +250,32 @@ export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.Regis
175
250
  fromJSON(object: any): RegistrationRequest {
176
251
  return {
177
252
  $type: RegistrationRequest.$type,
178
- userId: isSet(object.userId)
179
- ? globalThis.String(object.userId)
180
- : isSet(object.user_id)
181
- ? globalThis.String(object.user_id)
182
- : "",
183
- serviceId: isSet(object.serviceId)
184
- ? globalThis.String(object.serviceId)
185
- : isSet(object.service_id)
186
- ? globalThis.String(object.service_id)
187
- : "",
188
- companyId: isSet(object.companyId)
189
- ? globalThis.String(object.companyId)
190
- : isSet(object.company_id)
191
- ? globalThis.String(object.company_id)
192
- : "",
193
- attributeName: isSet(object.attributeName)
194
- ? globalThis.String(object.attributeName)
195
- : isSet(object.attribute_name)
196
- ? globalThis.String(object.attribute_name)
197
- : "",
198
- attributeValue: isSet(object.attributeValue)
199
- ? globalThis.String(object.attributeValue)
200
- : isSet(object.attribute_value)
201
- ? globalThis.String(object.attribute_value)
202
- : "",
203
- contact: isSet(object.contact) ? globalThis.String(object.contact) : "",
253
+ login: isSet(object.login) ? globalThis.String(object.login) : "",
254
+ password: isSet(object.password) ? globalThis.String(object.password) : "",
204
255
  verificationType: isSet(object.verificationType)
205
256
  ? verificationTypeFromJSON(object.verificationType)
206
257
  : isSet(object.verification_type)
207
258
  ? verificationTypeFromJSON(object.verification_type)
208
- : VerificationType.email_code,
209
- password: isSet(object.password) ? globalThis.String(object.password) : "",
259
+ : undefined,
260
+ policies: globalThis.Array.isArray(object?.policies)
261
+ ? object.policies.map((e: any) => UserPolicyRequest.fromJSON(e))
262
+ : [],
210
263
  };
211
264
  },
212
265
 
213
266
  toJSON(message: RegistrationRequest): unknown {
214
267
  const obj: any = {};
215
- if (message.userId !== "") {
216
- obj.userId = message.userId;
268
+ if (message.login !== "") {
269
+ obj.login = message.login;
217
270
  }
218
- if (message.serviceId !== "") {
219
- obj.serviceId = message.serviceId;
220
- }
221
- if (message.companyId !== "") {
222
- obj.companyId = message.companyId;
223
- }
224
- if (message.attributeName !== "") {
225
- obj.attributeName = message.attributeName;
226
- }
227
- if (message.attributeValue !== "") {
228
- obj.attributeValue = message.attributeValue;
229
- }
230
- if (message.contact !== "") {
231
- obj.contact = message.contact;
271
+ if (message.password !== "") {
272
+ obj.password = message.password;
232
273
  }
233
- if (message.verificationType !== VerificationType.email_code) {
274
+ if (message.verificationType !== undefined) {
234
275
  obj.verificationType = verificationTypeToJSON(message.verificationType);
235
276
  }
236
- if (message.password !== "") {
237
- obj.password = message.password;
277
+ if (message.policies?.length) {
278
+ obj.policies = message.policies.map((e) => UserPolicyRequest.toJSON(e));
238
279
  }
239
280
  return obj;
240
281
  },
@@ -244,47 +285,33 @@ export const RegistrationRequest: MessageFns<RegistrationRequest, "auth.v1.Regis
244
285
  },
245
286
  fromPartial<I extends Exact<DeepPartial<RegistrationRequest>, I>>(object: I): RegistrationRequest {
246
287
  const message = createBaseRegistrationRequest();
247
- message.userId = object.userId ?? "";
248
- message.serviceId = object.serviceId ?? "";
249
- message.companyId = object.companyId ?? "";
250
- message.attributeName = object.attributeName ?? "";
251
- message.attributeValue = object.attributeValue ?? "";
252
- message.contact = object.contact ?? "";
253
- message.verificationType = object.verificationType ?? VerificationType.email_code;
288
+ message.login = object.login ?? "";
254
289
  message.password = object.password ?? "";
290
+ message.verificationType = object.verificationType ?? undefined;
291
+ message.policies = object.policies?.map((e) => UserPolicyRequest.fromPartial(e)) || [];
255
292
  return message;
256
293
  },
257
294
  };
258
295
 
259
296
  function createBaseRegistrationResponse(): RegistrationResponse {
260
- return {
261
- $type: "auth.v1.RegistrationResponse",
262
- credentialId: "",
263
- attributeId: "",
264
- verificationId: "",
265
- value: "",
266
- expiresAt: 0,
267
- };
297
+ return { $type: "auth.v1.RegistrationResponse", userId: "", credentialId: "", policies: [], verification: undefined };
268
298
  }
269
299
 
270
300
  export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.RegistrationResponse"> = {
271
301
  $type: "auth.v1.RegistrationResponse" as const,
272
302
 
273
303
  encode(message: RegistrationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
274
- if (message.credentialId !== "") {
275
- writer.uint32(10).string(message.credentialId);
276
- }
277
- if (message.attributeId !== "") {
278
- writer.uint32(18).string(message.attributeId);
304
+ if (message.userId !== "") {
305
+ writer.uint32(10).string(message.userId);
279
306
  }
280
- if (message.verificationId !== "") {
281
- writer.uint32(26).string(message.verificationId);
307
+ if (message.credentialId !== "") {
308
+ writer.uint32(18).string(message.credentialId);
282
309
  }
283
- if (message.value !== "") {
284
- writer.uint32(34).string(message.value);
310
+ for (const v of message.policies) {
311
+ UserPolicyResponse.encode(v!, writer.uint32(26).fork()).join();
285
312
  }
286
- if (message.expiresAt !== 0) {
287
- writer.uint32(40).int64(message.expiresAt);
313
+ if (message.verification !== undefined) {
314
+ Verification.encode(message.verification, writer.uint32(34).fork()).join();
288
315
  }
289
316
  return writer;
290
317
  },
@@ -301,7 +328,7 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
301
328
  break;
302
329
  }
303
330
 
304
- message.credentialId = reader.string();
331
+ message.userId = reader.string();
305
332
  continue;
306
333
  }
307
334
  case 2: {
@@ -309,7 +336,7 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
309
336
  break;
310
337
  }
311
338
 
312
- message.attributeId = reader.string();
339
+ message.credentialId = reader.string();
313
340
  continue;
314
341
  }
315
342
  case 3: {
@@ -317,7 +344,7 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
317
344
  break;
318
345
  }
319
346
 
320
- message.verificationId = reader.string();
347
+ message.policies.push(UserPolicyResponse.decode(reader, reader.uint32()));
321
348
  continue;
322
349
  }
323
350
  case 4: {
@@ -325,15 +352,7 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
325
352
  break;
326
353
  }
327
354
 
328
- message.value = reader.string();
329
- continue;
330
- }
331
- case 5: {
332
- if (tag !== 40) {
333
- break;
334
- }
335
-
336
- message.expiresAt = longToNumber(reader.int64());
355
+ message.verification = Verification.decode(reader, reader.uint32());
337
356
  continue;
338
357
  }
339
358
  }
@@ -348,46 +367,36 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
348
367
  fromJSON(object: any): RegistrationResponse {
349
368
  return {
350
369
  $type: RegistrationResponse.$type,
370
+ userId: isSet(object.userId)
371
+ ? globalThis.String(object.userId)
372
+ : isSet(object.user_id)
373
+ ? globalThis.String(object.user_id)
374
+ : "",
351
375
  credentialId: isSet(object.credentialId)
352
376
  ? globalThis.String(object.credentialId)
353
377
  : isSet(object.credential_id)
354
378
  ? globalThis.String(object.credential_id)
355
379
  : "",
356
- attributeId: isSet(object.attributeId)
357
- ? globalThis.String(object.attributeId)
358
- : isSet(object.attribute_id)
359
- ? globalThis.String(object.attribute_id)
360
- : "",
361
- verificationId: isSet(object.verificationId)
362
- ? globalThis.String(object.verificationId)
363
- : isSet(object.verification_id)
364
- ? globalThis.String(object.verification_id)
365
- : "",
366
- value: isSet(object.value) ? globalThis.String(object.value) : "",
367
- expiresAt: isSet(object.expiresAt)
368
- ? globalThis.Number(object.expiresAt)
369
- : isSet(object.expires_at)
370
- ? globalThis.Number(object.expires_at)
371
- : 0,
380
+ policies: globalThis.Array.isArray(object?.policies)
381
+ ? object.policies.map((e: any) => UserPolicyResponse.fromJSON(e))
382
+ : [],
383
+ verification: isSet(object.verification) ? Verification.fromJSON(object.verification) : undefined,
372
384
  };
373
385
  },
374
386
 
375
387
  toJSON(message: RegistrationResponse): unknown {
376
388
  const obj: any = {};
389
+ if (message.userId !== "") {
390
+ obj.userId = message.userId;
391
+ }
377
392
  if (message.credentialId !== "") {
378
393
  obj.credentialId = message.credentialId;
379
394
  }
380
- if (message.attributeId !== "") {
381
- obj.attributeId = message.attributeId;
382
- }
383
- if (message.verificationId !== "") {
384
- obj.verificationId = message.verificationId;
385
- }
386
- if (message.value !== "") {
387
- obj.value = message.value;
395
+ if (message.policies?.length) {
396
+ obj.policies = message.policies.map((e) => UserPolicyResponse.toJSON(e));
388
397
  }
389
- if (message.expiresAt !== 0) {
390
- obj.expiresAt = Math.round(message.expiresAt);
398
+ if (message.verification !== undefined) {
399
+ obj.verification = Verification.toJSON(message.verification);
391
400
  }
392
401
  return obj;
393
402
  },
@@ -397,17 +406,24 @@ export const RegistrationResponse: MessageFns<RegistrationResponse, "auth.v1.Reg
397
406
  },
398
407
  fromPartial<I extends Exact<DeepPartial<RegistrationResponse>, I>>(object: I): RegistrationResponse {
399
408
  const message = createBaseRegistrationResponse();
409
+ message.userId = object.userId ?? "";
400
410
  message.credentialId = object.credentialId ?? "";
401
- message.attributeId = object.attributeId ?? "";
402
- message.verificationId = object.verificationId ?? "";
403
- message.value = object.value ?? "";
404
- message.expiresAt = object.expiresAt ?? 0;
411
+ message.policies = object.policies?.map((e) => UserPolicyResponse.fromPartial(e)) || [];
412
+ message.verification = (object.verification !== undefined && object.verification !== null)
413
+ ? Verification.fromPartial(object.verification)
414
+ : undefined;
405
415
  return message;
406
416
  },
407
417
  };
408
418
 
409
419
  function createBaseRegistrationCompensateRequest(): RegistrationCompensateRequest {
410
- return { $type: "auth.v1.RegistrationCompensateRequest", credentialId: "", verificationId: "", userAttributeId: "" };
420
+ return {
421
+ $type: "auth.v1.RegistrationCompensateRequest",
422
+ userId: "",
423
+ credentialId: "",
424
+ verificationId: undefined,
425
+ policyIds: [],
426
+ };
411
427
  }
412
428
 
413
429
  export const RegistrationCompensateRequest: MessageFns<
@@ -417,14 +433,17 @@ export const RegistrationCompensateRequest: MessageFns<
417
433
  $type: "auth.v1.RegistrationCompensateRequest" as const,
418
434
 
419
435
  encode(message: RegistrationCompensateRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
436
+ if (message.userId !== "") {
437
+ writer.uint32(10).string(message.userId);
438
+ }
420
439
  if (message.credentialId !== "") {
421
- writer.uint32(10).string(message.credentialId);
440
+ writer.uint32(18).string(message.credentialId);
422
441
  }
423
- if (message.verificationId !== "") {
424
- writer.uint32(18).string(message.verificationId);
442
+ if (message.verificationId !== undefined) {
443
+ writer.uint32(26).string(message.verificationId);
425
444
  }
426
- if (message.userAttributeId !== "") {
427
- writer.uint32(26).string(message.userAttributeId);
445
+ for (const v of message.policyIds) {
446
+ writer.uint32(34).string(v!);
428
447
  }
429
448
  return writer;
430
449
  },
@@ -441,7 +460,7 @@ export const RegistrationCompensateRequest: MessageFns<
441
460
  break;
442
461
  }
443
462
 
444
- message.credentialId = reader.string();
463
+ message.userId = reader.string();
445
464
  continue;
446
465
  }
447
466
  case 2: {
@@ -449,7 +468,7 @@ export const RegistrationCompensateRequest: MessageFns<
449
468
  break;
450
469
  }
451
470
 
452
- message.verificationId = reader.string();
471
+ message.credentialId = reader.string();
453
472
  continue;
454
473
  }
455
474
  case 3: {
@@ -457,7 +476,15 @@ export const RegistrationCompensateRequest: MessageFns<
457
476
  break;
458
477
  }
459
478
 
460
- message.userAttributeId = reader.string();
479
+ message.verificationId = reader.string();
480
+ continue;
481
+ }
482
+ case 4: {
483
+ if (tag !== 34) {
484
+ break;
485
+ }
486
+
487
+ message.policyIds.push(reader.string());
461
488
  continue;
462
489
  }
463
490
  }
@@ -472,6 +499,11 @@ export const RegistrationCompensateRequest: MessageFns<
472
499
  fromJSON(object: any): RegistrationCompensateRequest {
473
500
  return {
474
501
  $type: RegistrationCompensateRequest.$type,
502
+ userId: isSet(object.userId)
503
+ ? globalThis.String(object.userId)
504
+ : isSet(object.user_id)
505
+ ? globalThis.String(object.user_id)
506
+ : "",
475
507
  credentialId: isSet(object.credentialId)
476
508
  ? globalThis.String(object.credentialId)
477
509
  : isSet(object.credential_id)
@@ -481,25 +513,28 @@ export const RegistrationCompensateRequest: MessageFns<
481
513
  ? globalThis.String(object.verificationId)
482
514
  : isSet(object.verification_id)
483
515
  ? globalThis.String(object.verification_id)
484
- : "",
485
- userAttributeId: isSet(object.userAttributeId)
486
- ? globalThis.String(object.userAttributeId)
487
- : isSet(object.user_attribute_id)
488
- ? globalThis.String(object.user_attribute_id)
489
- : "",
516
+ : undefined,
517
+ policyIds: globalThis.Array.isArray(object?.policyIds)
518
+ ? object.policyIds.map((e: any) => globalThis.String(e))
519
+ : globalThis.Array.isArray(object?.policy_ids)
520
+ ? object.policy_ids.map((e: any) => globalThis.String(e))
521
+ : [],
490
522
  };
491
523
  },
492
524
 
493
525
  toJSON(message: RegistrationCompensateRequest): unknown {
494
526
  const obj: any = {};
527
+ if (message.userId !== "") {
528
+ obj.userId = message.userId;
529
+ }
495
530
  if (message.credentialId !== "") {
496
531
  obj.credentialId = message.credentialId;
497
532
  }
498
- if (message.verificationId !== "") {
533
+ if (message.verificationId !== undefined) {
499
534
  obj.verificationId = message.verificationId;
500
535
  }
501
- if (message.userAttributeId !== "") {
502
- obj.userAttributeId = message.userAttributeId;
536
+ if (message.policyIds?.length) {
537
+ obj.policyIds = message.policyIds;
503
538
  }
504
539
  return obj;
505
540
  },
@@ -511,40 +546,279 @@ export const RegistrationCompensateRequest: MessageFns<
511
546
  object: I,
512
547
  ): RegistrationCompensateRequest {
513
548
  const message = createBaseRegistrationCompensateRequest();
549
+ message.userId = object.userId ?? "";
514
550
  message.credentialId = object.credentialId ?? "";
515
- message.verificationId = object.verificationId ?? "";
516
- message.userAttributeId = object.userAttributeId ?? "";
551
+ message.verificationId = object.verificationId ?? undefined;
552
+ message.policyIds = object.policyIds?.map((e) => e) || [];
517
553
  return message;
518
554
  },
519
555
  };
520
556
 
521
- function createBaseStatusResponse(): StatusResponse {
522
- return { $type: "auth.v1.StatusResponse", success: false };
557
+ function createBaseLoginRequest(): LoginRequest {
558
+ return {
559
+ $type: "auth.v1.LoginRequest",
560
+ login: "",
561
+ password: "",
562
+ codeChallenge: "",
563
+ serviceId: "",
564
+ verificationType: undefined,
565
+ };
523
566
  }
524
567
 
525
- export const StatusResponse: MessageFns<StatusResponse, "auth.v1.StatusResponse"> = {
526
- $type: "auth.v1.StatusResponse" as const,
568
+ export const LoginRequest: MessageFns<LoginRequest, "auth.v1.LoginRequest"> = {
569
+ $type: "auth.v1.LoginRequest" as const,
527
570
 
528
- encode(message: StatusResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
529
- if (message.success !== false) {
530
- writer.uint32(8).bool(message.success);
571
+ encode(message: LoginRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
572
+ if (message.login !== "") {
573
+ writer.uint32(10).string(message.login);
574
+ }
575
+ if (message.password !== "") {
576
+ writer.uint32(18).string(message.password);
577
+ }
578
+ if (message.codeChallenge !== "") {
579
+ writer.uint32(26).string(message.codeChallenge);
580
+ }
581
+ if (message.serviceId !== "") {
582
+ writer.uint32(34).string(message.serviceId);
583
+ }
584
+ if (message.verificationType !== undefined) {
585
+ writer.uint32(40).int32(verificationTypeToNumber(message.verificationType));
586
+ }
587
+ return writer;
588
+ },
589
+
590
+ decode(input: BinaryReader | Uint8Array, length?: number): LoginRequest {
591
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
592
+ const end = length === undefined ? reader.len : reader.pos + length;
593
+ const message = createBaseLoginRequest();
594
+ while (reader.pos < end) {
595
+ const tag = reader.uint32();
596
+ switch (tag >>> 3) {
597
+ case 1: {
598
+ if (tag !== 10) {
599
+ break;
600
+ }
601
+
602
+ message.login = reader.string();
603
+ continue;
604
+ }
605
+ case 2: {
606
+ if (tag !== 18) {
607
+ break;
608
+ }
609
+
610
+ message.password = reader.string();
611
+ continue;
612
+ }
613
+ case 3: {
614
+ if (tag !== 26) {
615
+ break;
616
+ }
617
+
618
+ message.codeChallenge = reader.string();
619
+ continue;
620
+ }
621
+ case 4: {
622
+ if (tag !== 34) {
623
+ break;
624
+ }
625
+
626
+ message.serviceId = reader.string();
627
+ continue;
628
+ }
629
+ case 5: {
630
+ if (tag !== 40) {
631
+ break;
632
+ }
633
+
634
+ message.verificationType = verificationTypeFromJSON(reader.int32());
635
+ continue;
636
+ }
637
+ }
638
+ if ((tag & 7) === 4 || tag === 0) {
639
+ break;
640
+ }
641
+ reader.skip(tag & 7);
642
+ }
643
+ return message;
644
+ },
645
+
646
+ fromJSON(object: any): LoginRequest {
647
+ return {
648
+ $type: LoginRequest.$type,
649
+ login: isSet(object.login) ? globalThis.String(object.login) : "",
650
+ password: isSet(object.password) ? globalThis.String(object.password) : "",
651
+ codeChallenge: isSet(object.codeChallenge)
652
+ ? globalThis.String(object.codeChallenge)
653
+ : isSet(object.code_challenge)
654
+ ? globalThis.String(object.code_challenge)
655
+ : "",
656
+ serviceId: isSet(object.serviceId)
657
+ ? globalThis.String(object.serviceId)
658
+ : isSet(object.service_id)
659
+ ? globalThis.String(object.service_id)
660
+ : "",
661
+ verificationType: isSet(object.verificationType)
662
+ ? verificationTypeFromJSON(object.verificationType)
663
+ : isSet(object.verification_type)
664
+ ? verificationTypeFromJSON(object.verification_type)
665
+ : undefined,
666
+ };
667
+ },
668
+
669
+ toJSON(message: LoginRequest): unknown {
670
+ const obj: any = {};
671
+ if (message.login !== "") {
672
+ obj.login = message.login;
673
+ }
674
+ if (message.password !== "") {
675
+ obj.password = message.password;
676
+ }
677
+ if (message.codeChallenge !== "") {
678
+ obj.codeChallenge = message.codeChallenge;
679
+ }
680
+ if (message.serviceId !== "") {
681
+ obj.serviceId = message.serviceId;
682
+ }
683
+ if (message.verificationType !== undefined) {
684
+ obj.verificationType = verificationTypeToJSON(message.verificationType);
685
+ }
686
+ return obj;
687
+ },
688
+
689
+ create<I extends Exact<DeepPartial<LoginRequest>, I>>(base?: I): LoginRequest {
690
+ return LoginRequest.fromPartial(base ?? ({} as any));
691
+ },
692
+ fromPartial<I extends Exact<DeepPartial<LoginRequest>, I>>(object: I): LoginRequest {
693
+ const message = createBaseLoginRequest();
694
+ message.login = object.login ?? "";
695
+ message.password = object.password ?? "";
696
+ message.codeChallenge = object.codeChallenge ?? "";
697
+ message.serviceId = object.serviceId ?? "";
698
+ message.verificationType = object.verificationType ?? undefined;
699
+ return message;
700
+ },
701
+ };
702
+
703
+ function createBaseLoginResponse(): LoginResponse {
704
+ return { $type: "auth.v1.LoginResponse", code: undefined, verification: undefined };
705
+ }
706
+
707
+ export const LoginResponse: MessageFns<LoginResponse, "auth.v1.LoginResponse"> = {
708
+ $type: "auth.v1.LoginResponse" as const,
709
+
710
+ encode(message: LoginResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
711
+ if (message.code !== undefined) {
712
+ AuthCode.encode(message.code, writer.uint32(10).fork()).join();
713
+ }
714
+ if (message.verification !== undefined) {
715
+ Verification.encode(message.verification, writer.uint32(18).fork()).join();
716
+ }
717
+ return writer;
718
+ },
719
+
720
+ decode(input: BinaryReader | Uint8Array, length?: number): LoginResponse {
721
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
722
+ const end = length === undefined ? reader.len : reader.pos + length;
723
+ const message = createBaseLoginResponse();
724
+ while (reader.pos < end) {
725
+ const tag = reader.uint32();
726
+ switch (tag >>> 3) {
727
+ case 1: {
728
+ if (tag !== 10) {
729
+ break;
730
+ }
731
+
732
+ message.code = AuthCode.decode(reader, reader.uint32());
733
+ continue;
734
+ }
735
+ case 2: {
736
+ if (tag !== 18) {
737
+ break;
738
+ }
739
+
740
+ message.verification = Verification.decode(reader, reader.uint32());
741
+ continue;
742
+ }
743
+ }
744
+ if ((tag & 7) === 4 || tag === 0) {
745
+ break;
746
+ }
747
+ reader.skip(tag & 7);
748
+ }
749
+ return message;
750
+ },
751
+
752
+ fromJSON(object: any): LoginResponse {
753
+ return {
754
+ $type: LoginResponse.$type,
755
+ code: isSet(object.code) ? AuthCode.fromJSON(object.code) : undefined,
756
+ verification: isSet(object.verification) ? Verification.fromJSON(object.verification) : undefined,
757
+ };
758
+ },
759
+
760
+ toJSON(message: LoginResponse): unknown {
761
+ const obj: any = {};
762
+ if (message.code !== undefined) {
763
+ obj.code = AuthCode.toJSON(message.code);
764
+ }
765
+ if (message.verification !== undefined) {
766
+ obj.verification = Verification.toJSON(message.verification);
767
+ }
768
+ return obj;
769
+ },
770
+
771
+ create<I extends Exact<DeepPartial<LoginResponse>, I>>(base?: I): LoginResponse {
772
+ return LoginResponse.fromPartial(base ?? ({} as any));
773
+ },
774
+ fromPartial<I extends Exact<DeepPartial<LoginResponse>, I>>(object: I): LoginResponse {
775
+ const message = createBaseLoginResponse();
776
+ message.code = (object.code !== undefined && object.code !== null) ? AuthCode.fromPartial(object.code) : undefined;
777
+ message.verification = (object.verification !== undefined && object.verification !== null)
778
+ ? Verification.fromPartial(object.verification)
779
+ : undefined;
780
+ return message;
781
+ },
782
+ };
783
+
784
+ function createBaseCodeVerifier(): CodeVerifier {
785
+ return { $type: "auth.v1.CodeVerifier", code: "", verifier: "" };
786
+ }
787
+
788
+ export const CodeVerifier: MessageFns<CodeVerifier, "auth.v1.CodeVerifier"> = {
789
+ $type: "auth.v1.CodeVerifier" as const,
790
+
791
+ encode(message: CodeVerifier, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
792
+ if (message.code !== "") {
793
+ writer.uint32(10).string(message.code);
794
+ }
795
+ if (message.verifier !== "") {
796
+ writer.uint32(18).string(message.verifier);
531
797
  }
532
798
  return writer;
533
799
  },
534
800
 
535
- decode(input: BinaryReader | Uint8Array, length?: number): StatusResponse {
801
+ decode(input: BinaryReader | Uint8Array, length?: number): CodeVerifier {
536
802
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
537
803
  const end = length === undefined ? reader.len : reader.pos + length;
538
- const message = createBaseStatusResponse();
804
+ const message = createBaseCodeVerifier();
539
805
  while (reader.pos < end) {
540
806
  const tag = reader.uint32();
541
807
  switch (tag >>> 3) {
542
808
  case 1: {
543
- if (tag !== 8) {
809
+ if (tag !== 10) {
544
810
  break;
545
811
  }
546
812
 
547
- message.success = reader.bool();
813
+ message.code = reader.string();
814
+ continue;
815
+ }
816
+ case 2: {
817
+ if (tag !== 18) {
818
+ break;
819
+ }
820
+
821
+ message.verifier = reader.string();
548
822
  continue;
549
823
  }
550
824
  }
@@ -556,24 +830,135 @@ export const StatusResponse: MessageFns<StatusResponse, "auth.v1.StatusResponse"
556
830
  return message;
557
831
  },
558
832
 
559
- fromJSON(object: any): StatusResponse {
560
- return { $type: StatusResponse.$type, success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
833
+ fromJSON(object: any): CodeVerifier {
834
+ return {
835
+ $type: CodeVerifier.$type,
836
+ code: isSet(object.code) ? globalThis.String(object.code) : "",
837
+ verifier: isSet(object.verifier) ? globalThis.String(object.verifier) : "",
838
+ };
561
839
  },
562
840
 
563
- toJSON(message: StatusResponse): unknown {
841
+ toJSON(message: CodeVerifier): unknown {
564
842
  const obj: any = {};
565
- if (message.success !== false) {
566
- obj.success = message.success;
843
+ if (message.code !== "") {
844
+ obj.code = message.code;
845
+ }
846
+ if (message.verifier !== "") {
847
+ obj.verifier = message.verifier;
567
848
  }
568
849
  return obj;
569
850
  },
570
851
 
571
- create<I extends Exact<DeepPartial<StatusResponse>, I>>(base?: I): StatusResponse {
572
- return StatusResponse.fromPartial(base ?? ({} as any));
852
+ create<I extends Exact<DeepPartial<CodeVerifier>, I>>(base?: I): CodeVerifier {
853
+ return CodeVerifier.fromPartial(base ?? ({} as any));
573
854
  },
574
- fromPartial<I extends Exact<DeepPartial<StatusResponse>, I>>(object: I): StatusResponse {
575
- const message = createBaseStatusResponse();
576
- message.success = object.success ?? false;
855
+ fromPartial<I extends Exact<DeepPartial<CodeVerifier>, I>>(object: I): CodeVerifier {
856
+ const message = createBaseCodeVerifier();
857
+ message.code = object.code ?? "";
858
+ message.verifier = object.verifier ?? "";
859
+ return message;
860
+ },
861
+ };
862
+
863
+ function createBaseAuthorizeRequest(): AuthorizeRequest {
864
+ return { $type: "auth.v1.AuthorizeRequest", serviceId: "", tokens: undefined, code: undefined };
865
+ }
866
+
867
+ export const AuthorizeRequest: MessageFns<AuthorizeRequest, "auth.v1.AuthorizeRequest"> = {
868
+ $type: "auth.v1.AuthorizeRequest" as const,
869
+
870
+ encode(message: AuthorizeRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
871
+ if (message.serviceId !== "") {
872
+ writer.uint32(10).string(message.serviceId);
873
+ }
874
+ if (message.tokens !== undefined) {
875
+ Tokens.encode(message.tokens, writer.uint32(18).fork()).join();
876
+ }
877
+ if (message.code !== undefined) {
878
+ CodeVerifier.encode(message.code, writer.uint32(26).fork()).join();
879
+ }
880
+ return writer;
881
+ },
882
+
883
+ decode(input: BinaryReader | Uint8Array, length?: number): AuthorizeRequest {
884
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
885
+ const end = length === undefined ? reader.len : reader.pos + length;
886
+ const message = createBaseAuthorizeRequest();
887
+ while (reader.pos < end) {
888
+ const tag = reader.uint32();
889
+ switch (tag >>> 3) {
890
+ case 1: {
891
+ if (tag !== 10) {
892
+ break;
893
+ }
894
+
895
+ message.serviceId = reader.string();
896
+ continue;
897
+ }
898
+ case 2: {
899
+ if (tag !== 18) {
900
+ break;
901
+ }
902
+
903
+ message.tokens = Tokens.decode(reader, reader.uint32());
904
+ continue;
905
+ }
906
+ case 3: {
907
+ if (tag !== 26) {
908
+ break;
909
+ }
910
+
911
+ message.code = CodeVerifier.decode(reader, reader.uint32());
912
+ continue;
913
+ }
914
+ }
915
+ if ((tag & 7) === 4 || tag === 0) {
916
+ break;
917
+ }
918
+ reader.skip(tag & 7);
919
+ }
920
+ return message;
921
+ },
922
+
923
+ fromJSON(object: any): AuthorizeRequest {
924
+ return {
925
+ $type: AuthorizeRequest.$type,
926
+ serviceId: isSet(object.serviceId)
927
+ ? globalThis.String(object.serviceId)
928
+ : isSet(object.service_id)
929
+ ? globalThis.String(object.service_id)
930
+ : "",
931
+ tokens: isSet(object.tokens) ? Tokens.fromJSON(object.tokens) : undefined,
932
+ code: isSet(object.code) ? CodeVerifier.fromJSON(object.code) : undefined,
933
+ };
934
+ },
935
+
936
+ toJSON(message: AuthorizeRequest): unknown {
937
+ const obj: any = {};
938
+ if (message.serviceId !== "") {
939
+ obj.serviceId = message.serviceId;
940
+ }
941
+ if (message.tokens !== undefined) {
942
+ obj.tokens = Tokens.toJSON(message.tokens);
943
+ }
944
+ if (message.code !== undefined) {
945
+ obj.code = CodeVerifier.toJSON(message.code);
946
+ }
947
+ return obj;
948
+ },
949
+
950
+ create<I extends Exact<DeepPartial<AuthorizeRequest>, I>>(base?: I): AuthorizeRequest {
951
+ return AuthorizeRequest.fromPartial(base ?? ({} as any));
952
+ },
953
+ fromPartial<I extends Exact<DeepPartial<AuthorizeRequest>, I>>(object: I): AuthorizeRequest {
954
+ const message = createBaseAuthorizeRequest();
955
+ message.serviceId = object.serviceId ?? "";
956
+ message.tokens = (object.tokens !== undefined && object.tokens !== null)
957
+ ? Tokens.fromPartial(object.tokens)
958
+ : undefined;
959
+ message.code = (object.code !== undefined && object.code !== null)
960
+ ? CodeVerifier.fromPartial(object.code)
961
+ : undefined;
577
962
  return message;
578
963
  },
579
964
  };
@@ -599,6 +984,30 @@ export const AuthServiceDefinition = {
599
984
  responseStream: false,
600
985
  options: {},
601
986
  },
987
+ login: {
988
+ name: "Login",
989
+ requestType: LoginRequest,
990
+ requestStream: false,
991
+ responseType: LoginResponse,
992
+ responseStream: false,
993
+ options: {},
994
+ },
995
+ authorize: {
996
+ name: "Authorize",
997
+ requestType: AuthorizeRequest,
998
+ requestStream: false,
999
+ responseType: Tokens,
1000
+ responseStream: false,
1001
+ options: {},
1002
+ },
1003
+ logout: {
1004
+ name: "Logout",
1005
+ requestType: Tokens,
1006
+ requestStream: false,
1007
+ responseType: StatusResponse,
1008
+ responseStream: false,
1009
+ options: {},
1010
+ },
602
1011
  },
603
1012
  } as const;
604
1013
 
@@ -611,6 +1020,9 @@ export interface AuthServiceImplementation<CallContextExt = {}> {
611
1020
  request: RegistrationCompensateRequest,
612
1021
  context: CallContext & CallContextExt,
613
1022
  ): Promise<DeepPartial<StatusResponse>>;
1023
+ login(request: LoginRequest, context: CallContext & CallContextExt): Promise<DeepPartial<LoginResponse>>;
1024
+ authorize(request: AuthorizeRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Tokens>>;
1025
+ logout(request: Tokens, context: CallContext & CallContextExt): Promise<DeepPartial<StatusResponse>>;
614
1026
  }
615
1027
 
616
1028
  export interface AuthServiceClient<CallOptionsExt = {}> {
@@ -622,6 +1034,9 @@ export interface AuthServiceClient<CallOptionsExt = {}> {
622
1034
  request: DeepPartial<RegistrationCompensateRequest>,
623
1035
  options?: CallOptions & CallOptionsExt,
624
1036
  ): Promise<StatusResponse>;
1037
+ login(request: DeepPartial<LoginRequest>, options?: CallOptions & CallOptionsExt): Promise<LoginResponse>;
1038
+ authorize(request: DeepPartial<AuthorizeRequest>, options?: CallOptions & CallOptionsExt): Promise<Tokens>;
1039
+ logout(request: DeepPartial<Tokens>, options?: CallOptions & CallOptionsExt): Promise<StatusResponse>;
625
1040
  }
626
1041
 
627
1042
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;