@acequants/aegis-contracts 0.1.9 → 0.1.10
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/dist/src/gen/auth/v1/auth.d.ts +42 -68
- package/dist/src/gen/auth/v1/auth.d.ts.map +1 -1
- package/dist/src/gen/auth/v1/auth.js +50 -182
- package/dist/src/gen/google/protobuf/empty.d.ts +19 -0
- package/dist/src/gen/google/protobuf/empty.d.ts.map +1 -0
- package/dist/src/gen/google/protobuf/empty.js +32 -0
- package/package.json +1 -1
- package/proto/auth/v1/auth.proto +29 -35
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { Empty } from "../../google/protobuf/empty";
|
|
4
5
|
export declare const protobufPackage = "aegis.auth.v1";
|
|
5
|
-
export declare enum SortOrder {
|
|
6
|
-
ASC = 0,
|
|
7
|
-
DESC = 1,
|
|
8
|
-
UNRECOGNIZED = -1
|
|
9
|
-
}
|
|
10
|
-
export interface DtoPaginationMeta {
|
|
11
|
-
totalItems: number;
|
|
12
|
-
totalPages: number;
|
|
13
|
-
currentPage: number;
|
|
14
|
-
pageSize: number;
|
|
15
|
-
}
|
|
16
6
|
/** ---- AUTH ---- */
|
|
17
7
|
export interface AuthContext {
|
|
18
8
|
sessionPublicId: string;
|
|
@@ -37,7 +27,15 @@ export interface AuthorizeResponse {
|
|
|
37
27
|
allowed: boolean;
|
|
38
28
|
reason: string;
|
|
39
29
|
}
|
|
40
|
-
|
|
30
|
+
export interface InputPermission {
|
|
31
|
+
publicId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface InputSeedPermission {
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
export interface InputSeedPermissions {
|
|
37
|
+
permissions: InputSeedPermission[];
|
|
38
|
+
}
|
|
41
39
|
export interface DtoPermission {
|
|
42
40
|
publicId: string;
|
|
43
41
|
name: string;
|
|
@@ -49,29 +47,9 @@ export interface DtoPermission {
|
|
|
49
47
|
description: string;
|
|
50
48
|
}
|
|
51
49
|
export interface DtoPermissions {
|
|
52
|
-
|
|
53
|
-
items: DtoPermission[];
|
|
54
|
-
}
|
|
55
|
-
export interface PermissionsRequest {
|
|
56
|
-
page: number;
|
|
57
|
-
pageSize: number;
|
|
58
|
-
sortBy: string;
|
|
59
|
-
sortOrder: SortOrder;
|
|
60
|
-
}
|
|
61
|
-
export interface PermissionRequest {
|
|
62
|
-
publicId: string;
|
|
63
|
-
}
|
|
64
|
-
export interface InputPermission {
|
|
65
|
-
name: string;
|
|
66
|
-
}
|
|
67
|
-
export interface PermissionsSeedRequest {
|
|
68
|
-
permissions: InputPermission[];
|
|
50
|
+
permissions: DtoPermission[];
|
|
69
51
|
}
|
|
70
52
|
export declare const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
71
|
-
export declare const DtoPaginationMeta: {
|
|
72
|
-
encode(message: DtoPaginationMeta, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPaginationMeta;
|
|
74
|
-
};
|
|
75
53
|
export declare const AuthContext: {
|
|
76
54
|
encode(message: AuthContext, writer?: _m0.Writer): _m0.Writer;
|
|
77
55
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthContext;
|
|
@@ -92,6 +70,18 @@ export declare const AuthorizeResponse: {
|
|
|
92
70
|
encode(message: AuthorizeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
93
71
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthorizeResponse;
|
|
94
72
|
};
|
|
73
|
+
export declare const InputPermission: {
|
|
74
|
+
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
76
|
+
};
|
|
77
|
+
export declare const InputSeedPermission: {
|
|
78
|
+
encode(message: InputSeedPermission, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputSeedPermission;
|
|
80
|
+
};
|
|
81
|
+
export declare const InputSeedPermissions: {
|
|
82
|
+
encode(message: InputSeedPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
83
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputSeedPermissions;
|
|
84
|
+
};
|
|
95
85
|
export declare const DtoPermission: {
|
|
96
86
|
encode(message: DtoPermission, writer?: _m0.Writer): _m0.Writer;
|
|
97
87
|
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermission;
|
|
@@ -100,45 +90,29 @@ export declare const DtoPermissions: {
|
|
|
100
90
|
encode(message: DtoPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
101
91
|
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermissions;
|
|
102
92
|
};
|
|
103
|
-
export declare const PermissionsRequest: {
|
|
104
|
-
encode(message: PermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
105
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionsRequest;
|
|
106
|
-
};
|
|
107
|
-
export declare const PermissionRequest: {
|
|
108
|
-
encode(message: PermissionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionRequest;
|
|
110
|
-
};
|
|
111
|
-
export declare const InputPermission: {
|
|
112
|
-
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
113
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
114
|
-
};
|
|
115
|
-
export declare const PermissionsSeedRequest: {
|
|
116
|
-
encode(message: PermissionsSeedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionsSeedRequest;
|
|
118
|
-
};
|
|
119
93
|
export interface AuthServiceClient {
|
|
120
|
-
/** ---
|
|
94
|
+
/** --- Authentication --- */
|
|
121
95
|
validateAccess(request: ValidateAccessRequest): Observable<ValidateAccessResponse>;
|
|
122
96
|
authorize(request: AuthorizeRequest): Observable<AuthorizeResponse>;
|
|
123
97
|
/** --- Permission --- */
|
|
124
|
-
permissionsSeed(request:
|
|
125
|
-
permissions(request:
|
|
126
|
-
permission(request:
|
|
98
|
+
permissionsSeed(request: InputSeedPermissions): Observable<DtoPermissions>;
|
|
99
|
+
permissions(request: Empty): Observable<DtoPermissions>;
|
|
100
|
+
permission(request: InputPermission): Observable<DtoPermission>;
|
|
127
101
|
}
|
|
128
102
|
export interface AuthServiceController {
|
|
129
|
-
/** ---
|
|
103
|
+
/** --- Authentication --- */
|
|
130
104
|
validateAccess(request: ValidateAccessRequest): Promise<ValidateAccessResponse> | Observable<ValidateAccessResponse> | ValidateAccessResponse;
|
|
131
105
|
authorize(request: AuthorizeRequest): Promise<AuthorizeResponse> | Observable<AuthorizeResponse> | AuthorizeResponse;
|
|
132
106
|
/** --- Permission --- */
|
|
133
|
-
permissionsSeed(request:
|
|
134
|
-
permissions(request:
|
|
135
|
-
permission(request:
|
|
107
|
+
permissionsSeed(request: InputSeedPermissions): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
108
|
+
permissions(request: Empty): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
109
|
+
permission(request: InputPermission): Promise<DtoPermission> | Observable<DtoPermission> | DtoPermission;
|
|
136
110
|
}
|
|
137
111
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
138
112
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
139
113
|
export type AuthServiceService = typeof AuthServiceService;
|
|
140
114
|
export declare const AuthServiceService: {
|
|
141
|
-
/** ---
|
|
115
|
+
/** --- Authentication --- */
|
|
142
116
|
readonly validateAccess: {
|
|
143
117
|
readonly path: "/aegis.auth.v1.AuthService/ValidateAccess";
|
|
144
118
|
readonly requestStream: false;
|
|
@@ -162,8 +136,8 @@ export declare const AuthServiceService: {
|
|
|
162
136
|
readonly path: "/aegis.auth.v1.AuthService/PermissionsSeed";
|
|
163
137
|
readonly requestStream: false;
|
|
164
138
|
readonly responseStream: false;
|
|
165
|
-
readonly requestSerialize: (value:
|
|
166
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
139
|
+
readonly requestSerialize: (value: InputSeedPermissions) => Buffer<ArrayBuffer>;
|
|
140
|
+
readonly requestDeserialize: (value: Buffer) => InputSeedPermissions;
|
|
167
141
|
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
168
142
|
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
169
143
|
};
|
|
@@ -171,8 +145,8 @@ export declare const AuthServiceService: {
|
|
|
171
145
|
readonly path: "/aegis.auth.v1.AuthService/Permissions";
|
|
172
146
|
readonly requestStream: false;
|
|
173
147
|
readonly responseStream: false;
|
|
174
|
-
readonly requestSerialize: (value:
|
|
175
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
148
|
+
readonly requestSerialize: (value: Empty) => Buffer<ArrayBuffer>;
|
|
149
|
+
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
176
150
|
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
177
151
|
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
178
152
|
};
|
|
@@ -180,19 +154,19 @@ export declare const AuthServiceService: {
|
|
|
180
154
|
readonly path: "/aegis.auth.v1.AuthService/Permission";
|
|
181
155
|
readonly requestStream: false;
|
|
182
156
|
readonly responseStream: false;
|
|
183
|
-
readonly requestSerialize: (value:
|
|
184
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
157
|
+
readonly requestSerialize: (value: InputPermission) => Buffer<ArrayBuffer>;
|
|
158
|
+
readonly requestDeserialize: (value: Buffer) => InputPermission;
|
|
185
159
|
readonly responseSerialize: (value: DtoPermission) => Buffer<ArrayBuffer>;
|
|
186
160
|
readonly responseDeserialize: (value: Buffer) => DtoPermission;
|
|
187
161
|
};
|
|
188
162
|
};
|
|
189
163
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
190
|
-
/** ---
|
|
164
|
+
/** --- Authentication --- */
|
|
191
165
|
validateAccess: handleUnaryCall<ValidateAccessRequest, ValidateAccessResponse>;
|
|
192
166
|
authorize: handleUnaryCall<AuthorizeRequest, AuthorizeResponse>;
|
|
193
167
|
/** --- Permission --- */
|
|
194
|
-
permissionsSeed: handleUnaryCall<
|
|
195
|
-
permissions: handleUnaryCall<
|
|
196
|
-
permission: handleUnaryCall<
|
|
168
|
+
permissionsSeed: handleUnaryCall<InputSeedPermissions, DtoPermissions>;
|
|
169
|
+
permissions: handleUnaryCall<Empty, DtoPermissions>;
|
|
170
|
+
permission: handleUnaryCall<InputPermission, DtoPermission>;
|
|
197
171
|
}
|
|
198
172
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/gen/auth/v1/auth.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/gen/auth/v1/auth.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEpD,eAAO,MAAM,eAAe,kBAAkB,CAAC;AAE/C,qBAAqB;AACrB,MAAM,WAAW,WAAW;I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C;IAEnG,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;CAC1G;AAED,wBAAgB,4BAA4B,KACzB,aAAa,QAAQ,UAYvC;AAED,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAC3D,eAAO,MAAM,kBAAkB;IAC7B,6BAA6B;;;;;2CAKD,qBAAqB;6CACnB,MAAM;4CACP,sBAAsB;8CACpB,MAAM;;;;;;2CAMT,gBAAgB;6CACd,MAAM;4CACP,iBAAiB;8CACf,MAAM;;IAErC,yBAAyB;;;;;2CAKG,oBAAoB;6CAClB,MAAM;4CACP,cAAc;8CACZ,MAAM;;;;;;2CAMT,KAAK;6CACH,MAAM;4CACP,cAAc;8CACZ,MAAM;;;;;;2CAMT,eAAe;6CACb,MAAM;4CACP,aAAa;8CACX,MAAM;;CAE7B,CAAC;AAEX,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;IACrE,6BAA6B;IAC7B,cAAc,EAAE,eAAe,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;IAC/E,SAAS,EAAE,eAAe,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAChE,yBAAyB;IACzB,eAAe,EAAE,eAAe,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC;IACvE,WAAW,EAAE,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IACpD,UAAU,EAAE,eAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;CAC7D"}
|
|
@@ -5,73 +5,9 @@
|
|
|
5
5
|
// source: auth/v1/auth.proto
|
|
6
6
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
|
+
import { Empty } from "../../google/protobuf/empty";
|
|
8
9
|
export const protobufPackage = "aegis.auth.v1";
|
|
9
|
-
export var SortOrder;
|
|
10
|
-
(function (SortOrder) {
|
|
11
|
-
SortOrder[SortOrder["ASC"] = 0] = "ASC";
|
|
12
|
-
SortOrder[SortOrder["DESC"] = 1] = "DESC";
|
|
13
|
-
SortOrder[SortOrder["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
-
})(SortOrder || (SortOrder = {}));
|
|
15
10
|
export const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
16
|
-
function createBaseDtoPaginationMeta() {
|
|
17
|
-
return { totalItems: 0, totalPages: 0, currentPage: 0, pageSize: 0 };
|
|
18
|
-
}
|
|
19
|
-
export const DtoPaginationMeta = {
|
|
20
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
21
|
-
if (message.totalItems !== 0) {
|
|
22
|
-
writer.uint32(8).int32(message.totalItems);
|
|
23
|
-
}
|
|
24
|
-
if (message.totalPages !== 0) {
|
|
25
|
-
writer.uint32(16).int32(message.totalPages);
|
|
26
|
-
}
|
|
27
|
-
if (message.currentPage !== 0) {
|
|
28
|
-
writer.uint32(24).int32(message.currentPage);
|
|
29
|
-
}
|
|
30
|
-
if (message.pageSize !== 0) {
|
|
31
|
-
writer.uint32(32).int32(message.pageSize);
|
|
32
|
-
}
|
|
33
|
-
return writer;
|
|
34
|
-
},
|
|
35
|
-
decode(input, length) {
|
|
36
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
|
-
const message = createBaseDtoPaginationMeta();
|
|
39
|
-
while (reader.pos < end) {
|
|
40
|
-
const tag = reader.uint32();
|
|
41
|
-
switch (tag >>> 3) {
|
|
42
|
-
case 1:
|
|
43
|
-
if (tag !== 8) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.totalItems = reader.int32();
|
|
47
|
-
continue;
|
|
48
|
-
case 2:
|
|
49
|
-
if (tag !== 16) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
message.totalPages = reader.int32();
|
|
53
|
-
continue;
|
|
54
|
-
case 3:
|
|
55
|
-
if (tag !== 24) {
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
message.currentPage = reader.int32();
|
|
59
|
-
continue;
|
|
60
|
-
case 4:
|
|
61
|
-
if (tag !== 32) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.pageSize = reader.int32();
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
reader.skipType(tag & 7);
|
|
71
|
-
}
|
|
72
|
-
return message;
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
11
|
function createBaseAuthContext() {
|
|
76
12
|
return { sessionPublicId: "", userPublicId: "", email: "" };
|
|
77
13
|
}
|
|
@@ -304,26 +240,20 @@ export const AuthorizeResponse = {
|
|
|
304
240
|
return message;
|
|
305
241
|
},
|
|
306
242
|
};
|
|
307
|
-
function
|
|
308
|
-
return { publicId: ""
|
|
243
|
+
function createBaseInputPermission() {
|
|
244
|
+
return { publicId: "" };
|
|
309
245
|
}
|
|
310
|
-
export const
|
|
246
|
+
export const InputPermission = {
|
|
311
247
|
encode(message, writer = _m0.Writer.create()) {
|
|
312
248
|
if (message.publicId !== "") {
|
|
313
249
|
writer.uint32(10).string(message.publicId);
|
|
314
250
|
}
|
|
315
|
-
if (message.name !== "") {
|
|
316
|
-
writer.uint32(18).string(message.name);
|
|
317
|
-
}
|
|
318
|
-
if (message.description !== "") {
|
|
319
|
-
writer.uint32(26).string(message.description);
|
|
320
|
-
}
|
|
321
251
|
return writer;
|
|
322
252
|
},
|
|
323
253
|
decode(input, length) {
|
|
324
254
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
325
255
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
326
|
-
const message =
|
|
256
|
+
const message = createBaseInputPermission();
|
|
327
257
|
while (reader.pos < end) {
|
|
328
258
|
const tag = reader.uint32();
|
|
329
259
|
switch (tag >>> 3) {
|
|
@@ -333,18 +263,6 @@ export const DtoPermission = {
|
|
|
333
263
|
}
|
|
334
264
|
message.publicId = reader.string();
|
|
335
265
|
continue;
|
|
336
|
-
case 2:
|
|
337
|
-
if (tag !== 18) {
|
|
338
|
-
break;
|
|
339
|
-
}
|
|
340
|
-
message.name = reader.string();
|
|
341
|
-
continue;
|
|
342
|
-
case 3:
|
|
343
|
-
if (tag !== 26) {
|
|
344
|
-
break;
|
|
345
|
-
}
|
|
346
|
-
message.description = reader.string();
|
|
347
|
-
continue;
|
|
348
266
|
}
|
|
349
267
|
if ((tag & 7) === 4 || tag === 0) {
|
|
350
268
|
break;
|
|
@@ -354,23 +272,20 @@ export const DtoPermission = {
|
|
|
354
272
|
return message;
|
|
355
273
|
},
|
|
356
274
|
};
|
|
357
|
-
function
|
|
358
|
-
return {
|
|
275
|
+
function createBaseInputSeedPermission() {
|
|
276
|
+
return { name: "" };
|
|
359
277
|
}
|
|
360
|
-
export const
|
|
278
|
+
export const InputSeedPermission = {
|
|
361
279
|
encode(message, writer = _m0.Writer.create()) {
|
|
362
|
-
if (message.
|
|
363
|
-
|
|
364
|
-
}
|
|
365
|
-
for (const v of message.items) {
|
|
366
|
-
DtoPermission.encode(v, writer.uint32(18).fork()).ldelim();
|
|
280
|
+
if (message.name !== "") {
|
|
281
|
+
writer.uint32(10).string(message.name);
|
|
367
282
|
}
|
|
368
283
|
return writer;
|
|
369
284
|
},
|
|
370
285
|
decode(input, length) {
|
|
371
286
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
372
287
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
373
|
-
const message =
|
|
288
|
+
const message = createBaseInputSeedPermission();
|
|
374
289
|
while (reader.pos < end) {
|
|
375
290
|
const tag = reader.uint32();
|
|
376
291
|
switch (tag >>> 3) {
|
|
@@ -378,13 +293,7 @@ export const DtoPermissions = {
|
|
|
378
293
|
if (tag !== 10) {
|
|
379
294
|
break;
|
|
380
295
|
}
|
|
381
|
-
message.
|
|
382
|
-
continue;
|
|
383
|
-
case 2:
|
|
384
|
-
if (tag !== 18) {
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
message.items.push(DtoPermission.decode(reader, reader.uint32()));
|
|
296
|
+
message.name = reader.string();
|
|
388
297
|
continue;
|
|
389
298
|
}
|
|
390
299
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -395,55 +304,28 @@ export const DtoPermissions = {
|
|
|
395
304
|
return message;
|
|
396
305
|
},
|
|
397
306
|
};
|
|
398
|
-
function
|
|
399
|
-
return {
|
|
307
|
+
function createBaseInputSeedPermissions() {
|
|
308
|
+
return { permissions: [] };
|
|
400
309
|
}
|
|
401
|
-
export const
|
|
310
|
+
export const InputSeedPermissions = {
|
|
402
311
|
encode(message, writer = _m0.Writer.create()) {
|
|
403
|
-
|
|
404
|
-
writer.uint32(
|
|
405
|
-
}
|
|
406
|
-
if (message.pageSize !== 0) {
|
|
407
|
-
writer.uint32(16).int32(message.pageSize);
|
|
408
|
-
}
|
|
409
|
-
if (message.sortBy !== "") {
|
|
410
|
-
writer.uint32(26).string(message.sortBy);
|
|
411
|
-
}
|
|
412
|
-
if (message.sortOrder !== 0) {
|
|
413
|
-
writer.uint32(32).int32(message.sortOrder);
|
|
312
|
+
for (const v of message.permissions) {
|
|
313
|
+
InputSeedPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
414
314
|
}
|
|
415
315
|
return writer;
|
|
416
316
|
},
|
|
417
317
|
decode(input, length) {
|
|
418
318
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
419
319
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
420
|
-
const message =
|
|
320
|
+
const message = createBaseInputSeedPermissions();
|
|
421
321
|
while (reader.pos < end) {
|
|
422
322
|
const tag = reader.uint32();
|
|
423
323
|
switch (tag >>> 3) {
|
|
424
324
|
case 1:
|
|
425
|
-
if (tag !==
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
message.page = reader.int32();
|
|
429
|
-
continue;
|
|
430
|
-
case 2:
|
|
431
|
-
if (tag !== 16) {
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
message.pageSize = reader.int32();
|
|
435
|
-
continue;
|
|
436
|
-
case 3:
|
|
437
|
-
if (tag !== 26) {
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
message.sortBy = reader.string();
|
|
441
|
-
continue;
|
|
442
|
-
case 4:
|
|
443
|
-
if (tag !== 32) {
|
|
325
|
+
if (tag !== 10) {
|
|
444
326
|
break;
|
|
445
327
|
}
|
|
446
|
-
message.
|
|
328
|
+
message.permissions.push(InputSeedPermission.decode(reader, reader.uint32()));
|
|
447
329
|
continue;
|
|
448
330
|
}
|
|
449
331
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -454,20 +336,26 @@ export const PermissionsRequest = {
|
|
|
454
336
|
return message;
|
|
455
337
|
},
|
|
456
338
|
};
|
|
457
|
-
function
|
|
458
|
-
return { publicId: "" };
|
|
339
|
+
function createBaseDtoPermission() {
|
|
340
|
+
return { publicId: "", name: "", description: "" };
|
|
459
341
|
}
|
|
460
|
-
export const
|
|
342
|
+
export const DtoPermission = {
|
|
461
343
|
encode(message, writer = _m0.Writer.create()) {
|
|
462
344
|
if (message.publicId !== "") {
|
|
463
345
|
writer.uint32(10).string(message.publicId);
|
|
464
346
|
}
|
|
347
|
+
if (message.name !== "") {
|
|
348
|
+
writer.uint32(18).string(message.name);
|
|
349
|
+
}
|
|
350
|
+
if (message.description !== "") {
|
|
351
|
+
writer.uint32(26).string(message.description);
|
|
352
|
+
}
|
|
465
353
|
return writer;
|
|
466
354
|
},
|
|
467
355
|
decode(input, length) {
|
|
468
356
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
469
357
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
-
const message =
|
|
358
|
+
const message = createBaseDtoPermission();
|
|
471
359
|
while (reader.pos < end) {
|
|
472
360
|
const tag = reader.uint32();
|
|
473
361
|
switch (tag >>> 3) {
|
|
@@ -477,38 +365,18 @@ export const PermissionRequest = {
|
|
|
477
365
|
}
|
|
478
366
|
message.publicId = reader.string();
|
|
479
367
|
continue;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
break;
|
|
483
|
-
}
|
|
484
|
-
reader.skipType(tag & 7);
|
|
485
|
-
}
|
|
486
|
-
return message;
|
|
487
|
-
},
|
|
488
|
-
};
|
|
489
|
-
function createBaseInputPermission() {
|
|
490
|
-
return { name: "" };
|
|
491
|
-
}
|
|
492
|
-
export const InputPermission = {
|
|
493
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
494
|
-
if (message.name !== "") {
|
|
495
|
-
writer.uint32(10).string(message.name);
|
|
496
|
-
}
|
|
497
|
-
return writer;
|
|
498
|
-
},
|
|
499
|
-
decode(input, length) {
|
|
500
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
501
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
502
|
-
const message = createBaseInputPermission();
|
|
503
|
-
while (reader.pos < end) {
|
|
504
|
-
const tag = reader.uint32();
|
|
505
|
-
switch (tag >>> 3) {
|
|
506
|
-
case 1:
|
|
507
|
-
if (tag !== 10) {
|
|
368
|
+
case 2:
|
|
369
|
+
if (tag !== 18) {
|
|
508
370
|
break;
|
|
509
371
|
}
|
|
510
372
|
message.name = reader.string();
|
|
511
373
|
continue;
|
|
374
|
+
case 3:
|
|
375
|
+
if (tag !== 26) {
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
message.description = reader.string();
|
|
379
|
+
continue;
|
|
512
380
|
}
|
|
513
381
|
if ((tag & 7) === 4 || tag === 0) {
|
|
514
382
|
break;
|
|
@@ -518,20 +386,20 @@ export const InputPermission = {
|
|
|
518
386
|
return message;
|
|
519
387
|
},
|
|
520
388
|
};
|
|
521
|
-
function
|
|
389
|
+
function createBaseDtoPermissions() {
|
|
522
390
|
return { permissions: [] };
|
|
523
391
|
}
|
|
524
|
-
export const
|
|
392
|
+
export const DtoPermissions = {
|
|
525
393
|
encode(message, writer = _m0.Writer.create()) {
|
|
526
394
|
for (const v of message.permissions) {
|
|
527
|
-
|
|
395
|
+
DtoPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
528
396
|
}
|
|
529
397
|
return writer;
|
|
530
398
|
},
|
|
531
399
|
decode(input, length) {
|
|
532
400
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
533
401
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
534
|
-
const message =
|
|
402
|
+
const message = createBaseDtoPermissions();
|
|
535
403
|
while (reader.pos < end) {
|
|
536
404
|
const tag = reader.uint32();
|
|
537
405
|
switch (tag >>> 3) {
|
|
@@ -539,7 +407,7 @@ export const PermissionsSeedRequest = {
|
|
|
539
407
|
if (tag !== 10) {
|
|
540
408
|
break;
|
|
541
409
|
}
|
|
542
|
-
message.permissions.push(
|
|
410
|
+
message.permissions.push(DtoPermission.decode(reader, reader.uint32()));
|
|
543
411
|
continue;
|
|
544
412
|
}
|
|
545
413
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -566,7 +434,7 @@ export function AuthServiceControllerMethods() {
|
|
|
566
434
|
}
|
|
567
435
|
export const AUTH_SERVICE_NAME = "AuthService";
|
|
568
436
|
export const AuthServiceService = {
|
|
569
|
-
/** ---
|
|
437
|
+
/** --- Authentication --- */
|
|
570
438
|
validateAccess: {
|
|
571
439
|
path: "/aegis.auth.v1.AuthService/ValidateAccess",
|
|
572
440
|
requestStream: false,
|
|
@@ -590,8 +458,8 @@ export const AuthServiceService = {
|
|
|
590
458
|
path: "/aegis.auth.v1.AuthService/PermissionsSeed",
|
|
591
459
|
requestStream: false,
|
|
592
460
|
responseStream: false,
|
|
593
|
-
requestSerialize: (value) => Buffer.from(
|
|
594
|
-
requestDeserialize: (value) =>
|
|
461
|
+
requestSerialize: (value) => Buffer.from(InputSeedPermissions.encode(value).finish()),
|
|
462
|
+
requestDeserialize: (value) => InputSeedPermissions.decode(value),
|
|
595
463
|
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
596
464
|
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
597
465
|
},
|
|
@@ -599,8 +467,8 @@ export const AuthServiceService = {
|
|
|
599
467
|
path: "/aegis.auth.v1.AuthService/Permissions",
|
|
600
468
|
requestStream: false,
|
|
601
469
|
responseStream: false,
|
|
602
|
-
requestSerialize: (value) => Buffer.from(
|
|
603
|
-
requestDeserialize: (value) =>
|
|
470
|
+
requestSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
|
|
471
|
+
requestDeserialize: (value) => Empty.decode(value),
|
|
604
472
|
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
605
473
|
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
606
474
|
},
|
|
@@ -608,8 +476,8 @@ export const AuthServiceService = {
|
|
|
608
476
|
path: "/aegis.auth.v1.AuthService/Permission",
|
|
609
477
|
requestStream: false,
|
|
610
478
|
responseStream: false,
|
|
611
|
-
requestSerialize: (value) => Buffer.from(
|
|
612
|
-
requestDeserialize: (value) =>
|
|
479
|
+
requestSerialize: (value) => Buffer.from(InputPermission.encode(value).finish()),
|
|
480
|
+
requestDeserialize: (value) => InputPermission.decode(value),
|
|
613
481
|
responseSerialize: (value) => Buffer.from(DtoPermission.encode(value).finish()),
|
|
614
482
|
responseDeserialize: (value) => DtoPermission.decode(value),
|
|
615
483
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
5
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
6
|
+
* or the response type of an API method. For instance:
|
|
7
|
+
*
|
|
8
|
+
* service Foo {
|
|
9
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface Empty {
|
|
13
|
+
}
|
|
14
|
+
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
15
|
+
export declare const Empty: {
|
|
16
|
+
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=empty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../../../src/gen/google/protobuf/empty.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,WAAW,KAAK;CACrB;AAED,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAM9D,eAAO,MAAM,KAAK;cACN,KAAK,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAIxD,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,KAAK;CAe/D,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v6.32.0
|
|
5
|
+
// source: google/protobuf/empty.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import _m0 from "protobufjs/minimal";
|
|
8
|
+
export const protobufPackage = "google.protobuf";
|
|
9
|
+
export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
10
|
+
function createBaseEmpty() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
export const Empty = {
|
|
14
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
15
|
+
return writer;
|
|
16
|
+
},
|
|
17
|
+
decode(input, length) {
|
|
18
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
19
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
|
+
const message = createBaseEmpty();
|
|
21
|
+
while (reader.pos < end) {
|
|
22
|
+
const tag = reader.uint32();
|
|
23
|
+
switch (tag >>> 3) {
|
|
24
|
+
}
|
|
25
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
reader.skipType(tag & 7);
|
|
29
|
+
}
|
|
30
|
+
return message;
|
|
31
|
+
},
|
|
32
|
+
};
|
package/package.json
CHANGED
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -4,19 +4,20 @@ package aegis.auth.v1;
|
|
|
4
4
|
|
|
5
5
|
option java_multiple_files = true;
|
|
6
6
|
|
|
7
|
+
import "google/protobuf/empty.proto";
|
|
7
8
|
// import "google/protobuf/timestamp.proto";
|
|
8
9
|
|
|
9
|
-
enum SortOrder {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
10
|
+
// enum SortOrder {
|
|
11
|
+
// ASC = 0;
|
|
12
|
+
// DESC = 1;
|
|
13
|
+
// }
|
|
13
14
|
|
|
14
|
-
message DtoPaginationMeta {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
15
|
+
// message DtoPaginationMeta {
|
|
16
|
+
// int32 total_items = 1;
|
|
17
|
+
// int32 total_pages = 2;
|
|
18
|
+
// int32 current_page = 3;
|
|
19
|
+
// int32 page_size = 4;
|
|
20
|
+
// }
|
|
20
21
|
|
|
21
22
|
// ---- AUTH ----
|
|
22
23
|
message AuthContext {
|
|
@@ -48,6 +49,19 @@ message AuthorizeResponse {
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
// ---- PERMISSION ----
|
|
52
|
+
|
|
53
|
+
message InputPermission {
|
|
54
|
+
string publicId = 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message InputSeedPermission {
|
|
58
|
+
string name = 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message InputSeedPermissions {
|
|
62
|
+
repeated InputSeedPermission permissions = 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
51
65
|
message DtoPermission {
|
|
52
66
|
string public_id = 1;
|
|
53
67
|
string name = 2;
|
|
@@ -58,36 +72,16 @@ message DtoPermission {
|
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
message DtoPermissions {
|
|
61
|
-
|
|
62
|
-
repeated DtoPermission items = 2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message PermissionsRequest {
|
|
66
|
-
int32 page = 1;
|
|
67
|
-
int32 pageSize = 2;
|
|
68
|
-
string sortBy = 3;
|
|
69
|
-
SortOrder sortOrder = 4;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message PermissionRequest {
|
|
73
|
-
string publicId = 1;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message InputPermission {
|
|
77
|
-
string name = 1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message PermissionsSeedRequest {
|
|
81
|
-
repeated InputPermission permissions = 1;
|
|
75
|
+
repeated DtoPermission permissions = 1;
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
service AuthService {
|
|
85
|
-
// ---
|
|
79
|
+
// --- Authentication ---
|
|
86
80
|
rpc ValidateAccess (ValidateAccessRequest) returns (ValidateAccessResponse);
|
|
87
81
|
rpc Authorize (AuthorizeRequest) returns (AuthorizeResponse);
|
|
88
82
|
|
|
89
83
|
// --- Permission ---
|
|
90
|
-
rpc PermissionsSeed (
|
|
91
|
-
rpc Permissions (
|
|
92
|
-
rpc Permission (
|
|
84
|
+
rpc PermissionsSeed (InputSeedPermissions) returns (DtoPermissions);
|
|
85
|
+
rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
|
|
86
|
+
rpc Permission (InputPermission) returns (DtoPermission);
|
|
93
87
|
}
|