@acequants/aegis-contracts 0.1.7 → 0.1.9
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.
|
@@ -1,7 +1,6 @@
|
|
|
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 { Timestamp } from "../../google/protobuf/timestamp";
|
|
5
4
|
export declare const protobufPackage = "aegis.auth.v1";
|
|
6
5
|
export declare enum SortOrder {
|
|
7
6
|
ASC = 0,
|
|
@@ -42,10 +41,12 @@ export interface AuthorizeResponse {
|
|
|
42
41
|
export interface DtoPermission {
|
|
43
42
|
publicId: string;
|
|
44
43
|
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* google.protobuf.Timestamp created_at = 6;
|
|
46
|
+
* google.protobuf.Timestamp updated_at = 7;
|
|
47
|
+
* google.protobuf.Timestamp deleted_at = 8;
|
|
48
|
+
*/
|
|
45
49
|
description: string;
|
|
46
|
-
createdAt?: Timestamp | undefined;
|
|
47
|
-
updatedAt?: Timestamp | undefined;
|
|
48
|
-
deletedAt?: Timestamp | undefined;
|
|
49
50
|
}
|
|
50
51
|
export interface DtoPermissions {
|
|
51
52
|
meta?: DtoPaginationMeta | undefined;
|
|
@@ -63,7 +64,7 @@ export interface PermissionRequest {
|
|
|
63
64
|
export interface InputPermission {
|
|
64
65
|
name: string;
|
|
65
66
|
}
|
|
66
|
-
export interface
|
|
67
|
+
export interface PermissionsSeedRequest {
|
|
67
68
|
permissions: InputPermission[];
|
|
68
69
|
}
|
|
69
70
|
export declare const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
@@ -111,16 +112,16 @@ export declare const InputPermission: {
|
|
|
111
112
|
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
112
113
|
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
113
114
|
};
|
|
114
|
-
export declare const
|
|
115
|
-
encode(message:
|
|
116
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
115
|
+
export declare const PermissionsSeedRequest: {
|
|
116
|
+
encode(message: PermissionsSeedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionsSeedRequest;
|
|
117
118
|
};
|
|
118
119
|
export interface AuthServiceClient {
|
|
119
120
|
/** --- Auth --- */
|
|
120
121
|
validateAccess(request: ValidateAccessRequest): Observable<ValidateAccessResponse>;
|
|
121
122
|
authorize(request: AuthorizeRequest): Observable<AuthorizeResponse>;
|
|
122
123
|
/** --- Permission --- */
|
|
123
|
-
|
|
124
|
+
permissionsSeed(request: PermissionsSeedRequest): Observable<DtoPermissions>;
|
|
124
125
|
permissions(request: PermissionsRequest): Observable<DtoPermissions>;
|
|
125
126
|
permission(request: PermissionRequest): Observable<DtoPermission>;
|
|
126
127
|
}
|
|
@@ -129,7 +130,7 @@ export interface AuthServiceController {
|
|
|
129
130
|
validateAccess(request: ValidateAccessRequest): Promise<ValidateAccessResponse> | Observable<ValidateAccessResponse> | ValidateAccessResponse;
|
|
130
131
|
authorize(request: AuthorizeRequest): Promise<AuthorizeResponse> | Observable<AuthorizeResponse> | AuthorizeResponse;
|
|
131
132
|
/** --- Permission --- */
|
|
132
|
-
|
|
133
|
+
permissionsSeed(request: PermissionsSeedRequest): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
133
134
|
permissions(request: PermissionsRequest): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
134
135
|
permission(request: PermissionRequest): Promise<DtoPermission> | Observable<DtoPermission> | DtoPermission;
|
|
135
136
|
}
|
|
@@ -157,12 +158,12 @@ export declare const AuthServiceService: {
|
|
|
157
158
|
readonly responseDeserialize: (value: Buffer) => AuthorizeResponse;
|
|
158
159
|
};
|
|
159
160
|
/** --- Permission --- */
|
|
160
|
-
readonly
|
|
161
|
-
readonly path: "/aegis.auth.v1.AuthService/
|
|
161
|
+
readonly permissionsSeed: {
|
|
162
|
+
readonly path: "/aegis.auth.v1.AuthService/PermissionsSeed";
|
|
162
163
|
readonly requestStream: false;
|
|
163
164
|
readonly responseStream: false;
|
|
164
|
-
readonly requestSerialize: (value:
|
|
165
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
165
|
+
readonly requestSerialize: (value: PermissionsSeedRequest) => Buffer<ArrayBuffer>;
|
|
166
|
+
readonly requestDeserialize: (value: Buffer) => PermissionsSeedRequest;
|
|
166
167
|
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
167
168
|
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
168
169
|
};
|
|
@@ -190,7 +191,7 @@ export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
|
190
191
|
validateAccess: handleUnaryCall<ValidateAccessRequest, ValidateAccessResponse>;
|
|
191
192
|
authorize: handleUnaryCall<AuthorizeRequest, AuthorizeResponse>;
|
|
192
193
|
/** --- Permission --- */
|
|
193
|
-
|
|
194
|
+
permissionsSeed: handleUnaryCall<PermissionsSeedRequest, DtoPermissions>;
|
|
194
195
|
permissions: handleUnaryCall<PermissionsRequest, DtoPermissions>;
|
|
195
196
|
permission: handleUnaryCall<PermissionRequest, DtoPermission>;
|
|
196
197
|
}
|
|
@@ -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,KAA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E/C,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAC3D,eAAO,MAAM,kBAAkB;IAC7B,mBAAmB;;;;;2CAKS,qBAAqB;6CACnB,MAAM;4CACP,sBAAsB;8CACpB,MAAM;;;;;;2CAMT,gBAAgB;6CACd,MAAM;4CACP,iBAAiB;8CACf,MAAM;;IAErC,yBAAyB;;;;;2CAKG,sBAAsB;6CACpB,MAAM;4CACP,cAAc;8CACZ,MAAM;;;;;;2CAMT,kBAAkB;6CAChB,MAAM;4CACP,cAAc;8CACZ,MAAM;;;;;;2CAMT,iBAAiB;6CACf,MAAM;4CACP,aAAa;8CACX,MAAM;;CAE7B,CAAC;AAEX,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;IACrE,mBAAmB;IACnB,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,sBAAsB,EAAE,cAAc,CAAC,CAAC;IACzE,WAAW,EAAE,eAAe,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;IACjE,UAAU,EAAE,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;CAC/D"}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
// source: auth/v1/auth.proto
|
|
6
6
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
|
-
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
9
8
|
export const protobufPackage = "aegis.auth.v1";
|
|
10
9
|
export var SortOrder;
|
|
11
10
|
(function (SortOrder) {
|
|
@@ -319,15 +318,6 @@ export const DtoPermission = {
|
|
|
319
318
|
if (message.description !== "") {
|
|
320
319
|
writer.uint32(26).string(message.description);
|
|
321
320
|
}
|
|
322
|
-
if (message.createdAt !== undefined) {
|
|
323
|
-
Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim();
|
|
324
|
-
}
|
|
325
|
-
if (message.updatedAt !== undefined) {
|
|
326
|
-
Timestamp.encode(message.updatedAt, writer.uint32(58).fork()).ldelim();
|
|
327
|
-
}
|
|
328
|
-
if (message.deletedAt !== undefined) {
|
|
329
|
-
Timestamp.encode(message.deletedAt, writer.uint32(66).fork()).ldelim();
|
|
330
|
-
}
|
|
331
321
|
return writer;
|
|
332
322
|
},
|
|
333
323
|
decode(input, length) {
|
|
@@ -355,24 +345,6 @@ export const DtoPermission = {
|
|
|
355
345
|
}
|
|
356
346
|
message.description = reader.string();
|
|
357
347
|
continue;
|
|
358
|
-
case 6:
|
|
359
|
-
if (tag !== 50) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
message.createdAt = Timestamp.decode(reader, reader.uint32());
|
|
363
|
-
continue;
|
|
364
|
-
case 7:
|
|
365
|
-
if (tag !== 58) {
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
message.updatedAt = Timestamp.decode(reader, reader.uint32());
|
|
369
|
-
continue;
|
|
370
|
-
case 8:
|
|
371
|
-
if (tag !== 66) {
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
message.deletedAt = Timestamp.decode(reader, reader.uint32());
|
|
375
|
-
continue;
|
|
376
348
|
}
|
|
377
349
|
if ((tag & 7) === 4 || tag === 0) {
|
|
378
350
|
break;
|
|
@@ -546,10 +518,10 @@ export const InputPermission = {
|
|
|
546
518
|
return message;
|
|
547
519
|
},
|
|
548
520
|
};
|
|
549
|
-
function
|
|
521
|
+
function createBasePermissionsSeedRequest() {
|
|
550
522
|
return { permissions: [] };
|
|
551
523
|
}
|
|
552
|
-
export const
|
|
524
|
+
export const PermissionsSeedRequest = {
|
|
553
525
|
encode(message, writer = _m0.Writer.create()) {
|
|
554
526
|
for (const v of message.permissions) {
|
|
555
527
|
InputPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
@@ -559,7 +531,7 @@ export const PermissionSeedRequest = {
|
|
|
559
531
|
decode(input, length) {
|
|
560
532
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
561
533
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
562
|
-
const message =
|
|
534
|
+
const message = createBasePermissionsSeedRequest();
|
|
563
535
|
while (reader.pos < end) {
|
|
564
536
|
const tag = reader.uint32();
|
|
565
537
|
switch (tag >>> 3) {
|
|
@@ -580,7 +552,7 @@ export const PermissionSeedRequest = {
|
|
|
580
552
|
};
|
|
581
553
|
export function AuthServiceControllerMethods() {
|
|
582
554
|
return function (constructor) {
|
|
583
|
-
const grpcMethods = ["validateAccess", "authorize", "
|
|
555
|
+
const grpcMethods = ["validateAccess", "authorize", "permissionsSeed", "permissions", "permission"];
|
|
584
556
|
for (const method of grpcMethods) {
|
|
585
557
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
586
558
|
GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -614,12 +586,12 @@ export const AuthServiceService = {
|
|
|
614
586
|
responseDeserialize: (value) => AuthorizeResponse.decode(value),
|
|
615
587
|
},
|
|
616
588
|
/** --- Permission --- */
|
|
617
|
-
|
|
618
|
-
path: "/aegis.auth.v1.AuthService/
|
|
589
|
+
permissionsSeed: {
|
|
590
|
+
path: "/aegis.auth.v1.AuthService/PermissionsSeed",
|
|
619
591
|
requestStream: false,
|
|
620
592
|
responseStream: false,
|
|
621
|
-
requestSerialize: (value) => Buffer.from(
|
|
622
|
-
requestDeserialize: (value) =>
|
|
593
|
+
requestSerialize: (value) => Buffer.from(PermissionsSeedRequest.encode(value).finish()),
|
|
594
|
+
requestDeserialize: (value) => PermissionsSeedRequest.decode(value),
|
|
623
595
|
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
624
596
|
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
625
597
|
},
|
package/package.json
CHANGED
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -4,7 +4,7 @@ package aegis.auth.v1;
|
|
|
4
4
|
|
|
5
5
|
option java_multiple_files = true;
|
|
6
6
|
|
|
7
|
-
import "google/protobuf/timestamp.proto";
|
|
7
|
+
// import "google/protobuf/timestamp.proto";
|
|
8
8
|
|
|
9
9
|
enum SortOrder {
|
|
10
10
|
ASC = 0;
|
|
@@ -52,9 +52,9 @@ message DtoPermission {
|
|
|
52
52
|
string public_id = 1;
|
|
53
53
|
string name = 2;
|
|
54
54
|
string description = 3;
|
|
55
|
-
google.protobuf.Timestamp created_at = 6;
|
|
56
|
-
google.protobuf.Timestamp updated_at = 7;
|
|
57
|
-
google.protobuf.Timestamp deleted_at = 8;
|
|
55
|
+
// google.protobuf.Timestamp created_at = 6;
|
|
56
|
+
// google.protobuf.Timestamp updated_at = 7;
|
|
57
|
+
// google.protobuf.Timestamp deleted_at = 8;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
message DtoPermissions {
|
|
@@ -77,7 +77,7 @@ message InputPermission {
|
|
|
77
77
|
string name = 1;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
message
|
|
80
|
+
message PermissionsSeedRequest {
|
|
81
81
|
repeated InputPermission permissions = 1;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -87,7 +87,7 @@ service AuthService {
|
|
|
87
87
|
rpc Authorize (AuthorizeRequest) returns (AuthorizeResponse);
|
|
88
88
|
|
|
89
89
|
// --- Permission ---
|
|
90
|
-
rpc
|
|
90
|
+
rpc PermissionsSeed (PermissionsSeedRequest) returns (DtoPermissions);
|
|
91
91
|
rpc Permissions (PermissionsRequest) returns (DtoPermissions);
|
|
92
92
|
rpc Permission (PermissionRequest) returns (DtoPermission);
|
|
93
93
|
}
|