@acequants/aegis-contracts 0.1.5 → 0.1.7
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/{user/v1/user.d.ts → agent/v1/agent.d.ts} +6 -6
- package/dist/src/gen/agent/v1/agent.d.ts.map +1 -0
- package/dist/src/gen/{user/v1/user.js → agent/v1/agent.js} +6 -6
- package/dist/src/gen/analytics/v1/analytics.d.ts +44 -0
- package/dist/src/gen/analytics/v1/analytics.d.ts.map +1 -0
- package/dist/src/gen/{admin/v1/admin.js → analytics/v1/analytics.js} +21 -21
- package/dist/src/gen/auth/v1/auth.d.ts +113 -0
- package/dist/src/gen/auth/v1/auth.d.ts.map +1 -1
- package/dist/src/gen/auth/v1/auth.js +369 -1
- package/dist/src/gen/ops/v1/ops.d.ts +44 -0
- package/dist/src/gen/ops/v1/ops.d.ts.map +1 -0
- package/dist/src/gen/ops/v1/ops.js +108 -0
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -28
- package/package.json +1 -1
- package/proto/{user/v1/user.proto → agent/v1/agent.proto} +1 -1
- package/proto/analytics/v1/analytics.proto +18 -0
- package/proto/auth/v1/auth.proto +59 -4
- package/proto/ops/v1/ops.proto +18 -0
- package/dist/src/gen/admin/v1/admin.d.ts +0 -48
- package/dist/src/gen/admin/v1/admin.d.ts.map +0 -1
- package/dist/src/gen/user/v1/user.d.ts.map +0 -1
- package/proto/admin/v1/admin.proto +0 -20
|
@@ -2,7 +2,7 @@ import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-j
|
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
5
|
-
export declare const protobufPackage = "aegis.
|
|
5
|
+
export declare const protobufPackage = "aegis.agent.v1";
|
|
6
6
|
export interface InputGetUsers {
|
|
7
7
|
page: number;
|
|
8
8
|
pageSize: number;
|
|
@@ -42,7 +42,7 @@ export interface DtoUsers {
|
|
|
42
42
|
items: DtoUser[];
|
|
43
43
|
meta?: DtoPaginationMeta | undefined;
|
|
44
44
|
}
|
|
45
|
-
export declare const
|
|
45
|
+
export declare const AEGIS_AGENT_V1_PACKAGE_NAME = "aegis.agent.v1";
|
|
46
46
|
export declare const InputGetUsers: {
|
|
47
47
|
encode(message: InputGetUsers, writer?: _m0.Writer): _m0.Writer;
|
|
48
48
|
decode(input: _m0.Reader | Uint8Array, length?: number): InputGetUsers;
|
|
@@ -85,7 +85,7 @@ export declare const USER_SERVICE_NAME = "UserService";
|
|
|
85
85
|
export type UserServiceService = typeof UserServiceService;
|
|
86
86
|
export declare const UserServiceService: {
|
|
87
87
|
readonly getUsers: {
|
|
88
|
-
readonly path: "/aegis.
|
|
88
|
+
readonly path: "/aegis.agent.v1.UserService/GetUsers";
|
|
89
89
|
readonly requestStream: false;
|
|
90
90
|
readonly responseStream: false;
|
|
91
91
|
readonly requestSerialize: (value: InputGetUsers) => Buffer<ArrayBuffer>;
|
|
@@ -94,7 +94,7 @@ export declare const UserServiceService: {
|
|
|
94
94
|
readonly responseDeserialize: (value: Buffer) => DtoUsers;
|
|
95
95
|
};
|
|
96
96
|
readonly getUser: {
|
|
97
|
-
readonly path: "/aegis.
|
|
97
|
+
readonly path: "/aegis.agent.v1.UserService/GetUser";
|
|
98
98
|
readonly requestStream: false;
|
|
99
99
|
readonly responseStream: false;
|
|
100
100
|
readonly requestSerialize: (value: InputGetUser) => Buffer<ArrayBuffer>;
|
|
@@ -103,7 +103,7 @@ export declare const UserServiceService: {
|
|
|
103
103
|
readonly responseDeserialize: (value: Buffer) => DtoUser;
|
|
104
104
|
};
|
|
105
105
|
readonly register: {
|
|
106
|
-
readonly path: "/aegis.
|
|
106
|
+
readonly path: "/aegis.agent.v1.UserService/Register";
|
|
107
107
|
readonly requestStream: false;
|
|
108
108
|
readonly responseStream: false;
|
|
109
109
|
readonly requestSerialize: (value: InputRegisterUser) => Buffer<ArrayBuffer>;
|
|
@@ -117,4 +117,4 @@ export interface UserServiceServer extends UntypedServiceImplementation {
|
|
|
117
117
|
getUser: handleUnaryCall<InputGetUser, DtoUser>;
|
|
118
118
|
register: handleUnaryCall<InputRegisterUser, DtoUser>;
|
|
119
119
|
}
|
|
120
|
-
//# sourceMappingURL=
|
|
120
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/gen/agent/v1/agent.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,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,iCAAiC;AACjC,MAAM,W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MAAM,kBAAkB;;;;;2CAKD,aAAa;6CACX,MAAM;4CACP,QAAQ;8CACN,MAAM;;;;;;2CAMT,YAAY;6CACV,MAAM;4CACP,OAAO;8CACL,MAAM;;;;;;2CAMT,iBAAiB;6CACf,MAAM;4CACP,OAAO;8CACL,MAAM;;CAE7B,CAAC;AAEX,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;IACrE,QAAQ,EAAE,eAAe,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACnD,OAAO,EAAE,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,EAAE,eAAe,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;CACvD"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// versions:
|
|
3
3
|
// protoc-gen-ts_proto v1.181.2
|
|
4
4
|
// protoc v6.32.0
|
|
5
|
-
// source:
|
|
5
|
+
// source: agent/v1/agent.proto
|
|
6
6
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
8
|
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
9
|
-
export const protobufPackage = "aegis.
|
|
10
|
-
export const
|
|
9
|
+
export const protobufPackage = "aegis.agent.v1";
|
|
10
|
+
export const AEGIS_AGENT_V1_PACKAGE_NAME = "aegis.agent.v1";
|
|
11
11
|
function createBaseInputGetUsers() {
|
|
12
12
|
return { page: 0, pageSize: 0 };
|
|
13
13
|
}
|
|
@@ -397,7 +397,7 @@ export function UserServiceControllerMethods() {
|
|
|
397
397
|
export const USER_SERVICE_NAME = "UserService";
|
|
398
398
|
export const UserServiceService = {
|
|
399
399
|
getUsers: {
|
|
400
|
-
path: "/aegis.
|
|
400
|
+
path: "/aegis.agent.v1.UserService/GetUsers",
|
|
401
401
|
requestStream: false,
|
|
402
402
|
responseStream: false,
|
|
403
403
|
requestSerialize: (value) => Buffer.from(InputGetUsers.encode(value).finish()),
|
|
@@ -406,7 +406,7 @@ export const UserServiceService = {
|
|
|
406
406
|
responseDeserialize: (value) => DtoUsers.decode(value),
|
|
407
407
|
},
|
|
408
408
|
getUser: {
|
|
409
|
-
path: "/aegis.
|
|
409
|
+
path: "/aegis.agent.v1.UserService/GetUser",
|
|
410
410
|
requestStream: false,
|
|
411
411
|
responseStream: false,
|
|
412
412
|
requestSerialize: (value) => Buffer.from(InputGetUser.encode(value).finish()),
|
|
@@ -415,7 +415,7 @@ export const UserServiceService = {
|
|
|
415
415
|
responseDeserialize: (value) => DtoUser.decode(value),
|
|
416
416
|
},
|
|
417
417
|
register: {
|
|
418
|
-
path: "/aegis.
|
|
418
|
+
path: "/aegis.agent.v1.UserService/Register",
|
|
419
419
|
requestStream: false,
|
|
420
420
|
responseStream: false,
|
|
421
421
|
requestSerialize: (value) => Buffer.from(InputRegisterUser.encode(value).finish()),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare const protobufPackage = "aegis.analytics.v1";
|
|
5
|
+
export interface StatsRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface StatsResponse {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const AEGIS_ANALYTICS_V1_PACKAGE_NAME = "aegis.analytics.v1";
|
|
13
|
+
export declare const StatsRequest: {
|
|
14
|
+
encode(message: StatsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StatsRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const StatsResponse: {
|
|
18
|
+
encode(message: StatsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StatsResponse;
|
|
20
|
+
};
|
|
21
|
+
export interface AnalyticsServiceClient {
|
|
22
|
+
getStats(request: StatsRequest): Observable<StatsResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface AnalyticsServiceController {
|
|
25
|
+
getStats(request: StatsRequest): Promise<StatsResponse> | Observable<StatsResponse> | StatsResponse;
|
|
26
|
+
}
|
|
27
|
+
export declare function AnalyticsServiceControllerMethods(): (constructor: Function) => void;
|
|
28
|
+
export declare const ANALYTICS_SERVICE_NAME = "AnalyticsService";
|
|
29
|
+
export type AnalyticsServiceService = typeof AnalyticsServiceService;
|
|
30
|
+
export declare const AnalyticsServiceService: {
|
|
31
|
+
readonly getStats: {
|
|
32
|
+
readonly path: "/aegis.analytics.v1.AnalyticsService/GetStats";
|
|
33
|
+
readonly requestStream: false;
|
|
34
|
+
readonly responseStream: false;
|
|
35
|
+
readonly requestSerialize: (value: StatsRequest) => Buffer<ArrayBuffer>;
|
|
36
|
+
readonly requestDeserialize: (value: Buffer) => StatsRequest;
|
|
37
|
+
readonly responseSerialize: (value: StatsResponse) => Buffer<ArrayBuffer>;
|
|
38
|
+
readonly responseDeserialize: (value: Buffer) => StatsResponse;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export interface AnalyticsServiceServer extends UntypedServiceImplementation {
|
|
42
|
+
getStats: handleUnaryCall<StatsRequest, StatsResponse>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../../../src/gen/analytics/v1/analytics.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;AAElC,eAAO,MAAM,eAAe,uBAAuB,CAAC;AAEpD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE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
|
|
6
6
|
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
|
-
export const protobufPackage = "aegis.
|
|
9
|
-
export const
|
|
10
|
-
function
|
|
8
|
+
export const protobufPackage = "aegis.analytics.v1";
|
|
9
|
+
export const AEGIS_ANALYTICS_V1_PACKAGE_NAME = "aegis.analytics.v1";
|
|
10
|
+
function createBaseStatsRequest() {
|
|
11
11
|
return { id: "" };
|
|
12
12
|
}
|
|
13
|
-
export const
|
|
13
|
+
export const StatsRequest = {
|
|
14
14
|
encode(message, writer = _m0.Writer.create()) {
|
|
15
15
|
if (message.id !== "") {
|
|
16
16
|
writer.uint32(10).string(message.id);
|
|
@@ -20,7 +20,7 @@ export const GetServiceRequest = {
|
|
|
20
20
|
decode(input, length) {
|
|
21
21
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22
22
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
-
const message =
|
|
23
|
+
const message = createBaseStatsRequest();
|
|
24
24
|
while (reader.pos < end) {
|
|
25
25
|
const tag = reader.uint32();
|
|
26
26
|
switch (tag >>> 3) {
|
|
@@ -39,10 +39,10 @@ export const GetServiceRequest = {
|
|
|
39
39
|
return message;
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function createBaseStatsResponse() {
|
|
43
43
|
return { id: "", name: "" };
|
|
44
44
|
}
|
|
45
|
-
export const
|
|
45
|
+
export const StatsResponse = {
|
|
46
46
|
encode(message, writer = _m0.Writer.create()) {
|
|
47
47
|
if (message.id !== "") {
|
|
48
48
|
writer.uint32(10).string(message.id);
|
|
@@ -55,7 +55,7 @@ export const GetServiceResponse = {
|
|
|
55
55
|
decode(input, length) {
|
|
56
56
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
57
57
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
-
const message =
|
|
58
|
+
const message = createBaseStatsResponse();
|
|
59
59
|
while (reader.pos < end) {
|
|
60
60
|
const tag = reader.uint32();
|
|
61
61
|
switch (tag >>> 3) {
|
|
@@ -80,29 +80,29 @@ export const GetServiceResponse = {
|
|
|
80
80
|
return message;
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
|
-
export function
|
|
83
|
+
export function AnalyticsServiceControllerMethods() {
|
|
84
84
|
return function (constructor) {
|
|
85
|
-
const grpcMethods = ["
|
|
85
|
+
const grpcMethods = ["getStats"];
|
|
86
86
|
for (const method of grpcMethods) {
|
|
87
87
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
88
|
-
GrpcMethod("
|
|
88
|
+
GrpcMethod("AnalyticsService", method)(constructor.prototype[method], method, descriptor);
|
|
89
89
|
}
|
|
90
90
|
const grpcStreamMethods = [];
|
|
91
91
|
for (const method of grpcStreamMethods) {
|
|
92
92
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
93
|
-
GrpcStreamMethod("
|
|
93
|
+
GrpcStreamMethod("AnalyticsService", method)(constructor.prototype[method], method, descriptor);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
export const
|
|
98
|
-
export const
|
|
99
|
-
|
|
100
|
-
path: "/aegis.
|
|
97
|
+
export const ANALYTICS_SERVICE_NAME = "AnalyticsService";
|
|
98
|
+
export const AnalyticsServiceService = {
|
|
99
|
+
getStats: {
|
|
100
|
+
path: "/aegis.analytics.v1.AnalyticsService/GetStats",
|
|
101
101
|
requestStream: false,
|
|
102
102
|
responseStream: false,
|
|
103
|
-
requestSerialize: (value) => Buffer.from(
|
|
104
|
-
requestDeserialize: (value) =>
|
|
105
|
-
responseSerialize: (value) => Buffer.from(
|
|
106
|
-
responseDeserialize: (value) =>
|
|
103
|
+
requestSerialize: (value) => Buffer.from(StatsRequest.encode(value).finish()),
|
|
104
|
+
requestDeserialize: (value) => StatsRequest.decode(value),
|
|
105
|
+
responseSerialize: (value) => Buffer.from(StatsResponse.encode(value).finish()),
|
|
106
|
+
responseDeserialize: (value) => StatsResponse.decode(value),
|
|
107
107
|
},
|
|
108
108
|
};
|
|
@@ -1,7 +1,20 @@
|
|
|
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";
|
|
4
5
|
export declare const protobufPackage = "aegis.auth.v1";
|
|
6
|
+
export declare enum SortOrder {
|
|
7
|
+
ASC = 0,
|
|
8
|
+
DESC = 1,
|
|
9
|
+
UNRECOGNIZED = -1
|
|
10
|
+
}
|
|
11
|
+
export interface DtoPaginationMeta {
|
|
12
|
+
totalItems: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
currentPage: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
}
|
|
17
|
+
/** ---- AUTH ---- */
|
|
5
18
|
export interface AuthContext {
|
|
6
19
|
sessionPublicId: string;
|
|
7
20
|
userPublicId: string;
|
|
@@ -25,7 +38,39 @@ export interface AuthorizeResponse {
|
|
|
25
38
|
allowed: boolean;
|
|
26
39
|
reason: string;
|
|
27
40
|
}
|
|
41
|
+
/** ---- PERMISSION ---- */
|
|
42
|
+
export interface DtoPermission {
|
|
43
|
+
publicId: string;
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
createdAt?: Timestamp | undefined;
|
|
47
|
+
updatedAt?: Timestamp | undefined;
|
|
48
|
+
deletedAt?: Timestamp | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface DtoPermissions {
|
|
51
|
+
meta?: DtoPaginationMeta | undefined;
|
|
52
|
+
items: DtoPermission[];
|
|
53
|
+
}
|
|
54
|
+
export interface PermissionsRequest {
|
|
55
|
+
page: number;
|
|
56
|
+
pageSize: number;
|
|
57
|
+
sortBy: string;
|
|
58
|
+
sortOrder: SortOrder;
|
|
59
|
+
}
|
|
60
|
+
export interface PermissionRequest {
|
|
61
|
+
publicId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface InputPermission {
|
|
64
|
+
name: string;
|
|
65
|
+
}
|
|
66
|
+
export interface PermissionSeedRequest {
|
|
67
|
+
permissions: InputPermission[];
|
|
68
|
+
}
|
|
28
69
|
export declare const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
70
|
+
export declare const DtoPaginationMeta: {
|
|
71
|
+
encode(message: DtoPaginationMeta, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPaginationMeta;
|
|
73
|
+
};
|
|
29
74
|
export declare const AuthContext: {
|
|
30
75
|
encode(message: AuthContext, writer?: _m0.Writer): _m0.Writer;
|
|
31
76
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthContext;
|
|
@@ -46,18 +91,53 @@ export declare const AuthorizeResponse: {
|
|
|
46
91
|
encode(message: AuthorizeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
47
92
|
decode(input: _m0.Reader | Uint8Array, length?: number): AuthorizeResponse;
|
|
48
93
|
};
|
|
94
|
+
export declare const DtoPermission: {
|
|
95
|
+
encode(message: DtoPermission, writer?: _m0.Writer): _m0.Writer;
|
|
96
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermission;
|
|
97
|
+
};
|
|
98
|
+
export declare const DtoPermissions: {
|
|
99
|
+
encode(message: DtoPermissions, writer?: _m0.Writer): _m0.Writer;
|
|
100
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DtoPermissions;
|
|
101
|
+
};
|
|
102
|
+
export declare const PermissionsRequest: {
|
|
103
|
+
encode(message: PermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
104
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionsRequest;
|
|
105
|
+
};
|
|
106
|
+
export declare const PermissionRequest: {
|
|
107
|
+
encode(message: PermissionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
108
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionRequest;
|
|
109
|
+
};
|
|
110
|
+
export declare const InputPermission: {
|
|
111
|
+
encode(message: InputPermission, writer?: _m0.Writer): _m0.Writer;
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InputPermission;
|
|
113
|
+
};
|
|
114
|
+
export declare const PermissionSeedRequest: {
|
|
115
|
+
encode(message: PermissionSeedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
116
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionSeedRequest;
|
|
117
|
+
};
|
|
49
118
|
export interface AuthServiceClient {
|
|
119
|
+
/** --- Auth --- */
|
|
50
120
|
validateAccess(request: ValidateAccessRequest): Observable<ValidateAccessResponse>;
|
|
51
121
|
authorize(request: AuthorizeRequest): Observable<AuthorizeResponse>;
|
|
122
|
+
/** --- Permission --- */
|
|
123
|
+
permissionSeed(request: PermissionSeedRequest): Observable<DtoPermissions>;
|
|
124
|
+
permissions(request: PermissionsRequest): Observable<DtoPermissions>;
|
|
125
|
+
permission(request: PermissionRequest): Observable<DtoPermission>;
|
|
52
126
|
}
|
|
53
127
|
export interface AuthServiceController {
|
|
128
|
+
/** --- Auth --- */
|
|
54
129
|
validateAccess(request: ValidateAccessRequest): Promise<ValidateAccessResponse> | Observable<ValidateAccessResponse> | ValidateAccessResponse;
|
|
55
130
|
authorize(request: AuthorizeRequest): Promise<AuthorizeResponse> | Observable<AuthorizeResponse> | AuthorizeResponse;
|
|
131
|
+
/** --- Permission --- */
|
|
132
|
+
permissionSeed(request: PermissionSeedRequest): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
133
|
+
permissions(request: PermissionsRequest): Promise<DtoPermissions> | Observable<DtoPermissions> | DtoPermissions;
|
|
134
|
+
permission(request: PermissionRequest): Promise<DtoPermission> | Observable<DtoPermission> | DtoPermission;
|
|
56
135
|
}
|
|
57
136
|
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
58
137
|
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
59
138
|
export type AuthServiceService = typeof AuthServiceService;
|
|
60
139
|
export declare const AuthServiceService: {
|
|
140
|
+
/** --- Auth --- */
|
|
61
141
|
readonly validateAccess: {
|
|
62
142
|
readonly path: "/aegis.auth.v1.AuthService/ValidateAccess";
|
|
63
143
|
readonly requestStream: false;
|
|
@@ -76,9 +156,42 @@ export declare const AuthServiceService: {
|
|
|
76
156
|
readonly responseSerialize: (value: AuthorizeResponse) => Buffer<ArrayBuffer>;
|
|
77
157
|
readonly responseDeserialize: (value: Buffer) => AuthorizeResponse;
|
|
78
158
|
};
|
|
159
|
+
/** --- Permission --- */
|
|
160
|
+
readonly permissionSeed: {
|
|
161
|
+
readonly path: "/aegis.auth.v1.AuthService/PermissionSeed";
|
|
162
|
+
readonly requestStream: false;
|
|
163
|
+
readonly responseStream: false;
|
|
164
|
+
readonly requestSerialize: (value: PermissionSeedRequest) => Buffer<ArrayBuffer>;
|
|
165
|
+
readonly requestDeserialize: (value: Buffer) => PermissionSeedRequest;
|
|
166
|
+
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
167
|
+
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
168
|
+
};
|
|
169
|
+
readonly permissions: {
|
|
170
|
+
readonly path: "/aegis.auth.v1.AuthService/Permissions";
|
|
171
|
+
readonly requestStream: false;
|
|
172
|
+
readonly responseStream: false;
|
|
173
|
+
readonly requestSerialize: (value: PermissionsRequest) => Buffer<ArrayBuffer>;
|
|
174
|
+
readonly requestDeserialize: (value: Buffer) => PermissionsRequest;
|
|
175
|
+
readonly responseSerialize: (value: DtoPermissions) => Buffer<ArrayBuffer>;
|
|
176
|
+
readonly responseDeserialize: (value: Buffer) => DtoPermissions;
|
|
177
|
+
};
|
|
178
|
+
readonly permission: {
|
|
179
|
+
readonly path: "/aegis.auth.v1.AuthService/Permission";
|
|
180
|
+
readonly requestStream: false;
|
|
181
|
+
readonly responseStream: false;
|
|
182
|
+
readonly requestSerialize: (value: PermissionRequest) => Buffer<ArrayBuffer>;
|
|
183
|
+
readonly requestDeserialize: (value: Buffer) => PermissionRequest;
|
|
184
|
+
readonly responseSerialize: (value: DtoPermission) => Buffer<ArrayBuffer>;
|
|
185
|
+
readonly responseDeserialize: (value: Buffer) => DtoPermission;
|
|
186
|
+
};
|
|
79
187
|
};
|
|
80
188
|
export interface AuthServiceServer extends UntypedServiceImplementation {
|
|
189
|
+
/** --- Auth --- */
|
|
81
190
|
validateAccess: handleUnaryCall<ValidateAccessRequest, ValidateAccessResponse>;
|
|
82
191
|
authorize: handleUnaryCall<AuthorizeRequest, AuthorizeResponse>;
|
|
192
|
+
/** --- Permission --- */
|
|
193
|
+
permissionSeed: handleUnaryCall<PermissionSeedRequest, DtoPermissions>;
|
|
194
|
+
permissions: handleUnaryCall<PermissionsRequest, DtoPermissions>;
|
|
195
|
+
permission: handleUnaryCall<PermissionRequest, DtoPermission>;
|
|
83
196
|
}
|
|
84
197
|
//# 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,SAAS,EAAE,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AgB,CAAC;AAE/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,qBAAqB;6CACnB,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,cAAc,EAAE,eAAe,CAAC,qBAAqB,EAAE,cAAc,CAAC,CAAC;IACvE,WAAW,EAAE,eAAe,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;IACjE,UAAU,EAAE,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;CAC/D"}
|
|
@@ -5,8 +5,74 @@
|
|
|
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";
|
|
8
9
|
export const protobufPackage = "aegis.auth.v1";
|
|
10
|
+
export var SortOrder;
|
|
11
|
+
(function (SortOrder) {
|
|
12
|
+
SortOrder[SortOrder["ASC"] = 0] = "ASC";
|
|
13
|
+
SortOrder[SortOrder["DESC"] = 1] = "DESC";
|
|
14
|
+
SortOrder[SortOrder["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
|
+
})(SortOrder || (SortOrder = {}));
|
|
9
16
|
export const AEGIS_AUTH_V1_PACKAGE_NAME = "aegis.auth.v1";
|
|
17
|
+
function createBaseDtoPaginationMeta() {
|
|
18
|
+
return { totalItems: 0, totalPages: 0, currentPage: 0, pageSize: 0 };
|
|
19
|
+
}
|
|
20
|
+
export const DtoPaginationMeta = {
|
|
21
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
22
|
+
if (message.totalItems !== 0) {
|
|
23
|
+
writer.uint32(8).int32(message.totalItems);
|
|
24
|
+
}
|
|
25
|
+
if (message.totalPages !== 0) {
|
|
26
|
+
writer.uint32(16).int32(message.totalPages);
|
|
27
|
+
}
|
|
28
|
+
if (message.currentPage !== 0) {
|
|
29
|
+
writer.uint32(24).int32(message.currentPage);
|
|
30
|
+
}
|
|
31
|
+
if (message.pageSize !== 0) {
|
|
32
|
+
writer.uint32(32).int32(message.pageSize);
|
|
33
|
+
}
|
|
34
|
+
return writer;
|
|
35
|
+
},
|
|
36
|
+
decode(input, length) {
|
|
37
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
38
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39
|
+
const message = createBaseDtoPaginationMeta();
|
|
40
|
+
while (reader.pos < end) {
|
|
41
|
+
const tag = reader.uint32();
|
|
42
|
+
switch (tag >>> 3) {
|
|
43
|
+
case 1:
|
|
44
|
+
if (tag !== 8) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.totalItems = reader.int32();
|
|
48
|
+
continue;
|
|
49
|
+
case 2:
|
|
50
|
+
if (tag !== 16) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
message.totalPages = reader.int32();
|
|
54
|
+
continue;
|
|
55
|
+
case 3:
|
|
56
|
+
if (tag !== 24) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.currentPage = reader.int32();
|
|
60
|
+
continue;
|
|
61
|
+
case 4:
|
|
62
|
+
if (tag !== 32) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
message.pageSize = reader.int32();
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
reader.skipType(tag & 7);
|
|
72
|
+
}
|
|
73
|
+
return message;
|
|
74
|
+
},
|
|
75
|
+
};
|
|
10
76
|
function createBaseAuthContext() {
|
|
11
77
|
return { sessionPublicId: "", userPublicId: "", email: "" };
|
|
12
78
|
}
|
|
@@ -239,9 +305,282 @@ export const AuthorizeResponse = {
|
|
|
239
305
|
return message;
|
|
240
306
|
},
|
|
241
307
|
};
|
|
308
|
+
function createBaseDtoPermission() {
|
|
309
|
+
return { publicId: "", name: "", description: "" };
|
|
310
|
+
}
|
|
311
|
+
export const DtoPermission = {
|
|
312
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
313
|
+
if (message.publicId !== "") {
|
|
314
|
+
writer.uint32(10).string(message.publicId);
|
|
315
|
+
}
|
|
316
|
+
if (message.name !== "") {
|
|
317
|
+
writer.uint32(18).string(message.name);
|
|
318
|
+
}
|
|
319
|
+
if (message.description !== "") {
|
|
320
|
+
writer.uint32(26).string(message.description);
|
|
321
|
+
}
|
|
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
|
+
return writer;
|
|
332
|
+
},
|
|
333
|
+
decode(input, length) {
|
|
334
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
335
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
336
|
+
const message = createBaseDtoPermission();
|
|
337
|
+
while (reader.pos < end) {
|
|
338
|
+
const tag = reader.uint32();
|
|
339
|
+
switch (tag >>> 3) {
|
|
340
|
+
case 1:
|
|
341
|
+
if (tag !== 10) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
message.publicId = reader.string();
|
|
345
|
+
continue;
|
|
346
|
+
case 2:
|
|
347
|
+
if (tag !== 18) {
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
message.name = reader.string();
|
|
351
|
+
continue;
|
|
352
|
+
case 3:
|
|
353
|
+
if (tag !== 26) {
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
message.description = reader.string();
|
|
357
|
+
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
|
+
}
|
|
377
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
reader.skipType(tag & 7);
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
};
|
|
385
|
+
function createBaseDtoPermissions() {
|
|
386
|
+
return { items: [] };
|
|
387
|
+
}
|
|
388
|
+
export const DtoPermissions = {
|
|
389
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
390
|
+
if (message.meta !== undefined) {
|
|
391
|
+
DtoPaginationMeta.encode(message.meta, writer.uint32(10).fork()).ldelim();
|
|
392
|
+
}
|
|
393
|
+
for (const v of message.items) {
|
|
394
|
+
DtoPermission.encode(v, writer.uint32(18).fork()).ldelim();
|
|
395
|
+
}
|
|
396
|
+
return writer;
|
|
397
|
+
},
|
|
398
|
+
decode(input, length) {
|
|
399
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
400
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
401
|
+
const message = createBaseDtoPermissions();
|
|
402
|
+
while (reader.pos < end) {
|
|
403
|
+
const tag = reader.uint32();
|
|
404
|
+
switch (tag >>> 3) {
|
|
405
|
+
case 1:
|
|
406
|
+
if (tag !== 10) {
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
message.meta = DtoPaginationMeta.decode(reader, reader.uint32());
|
|
410
|
+
continue;
|
|
411
|
+
case 2:
|
|
412
|
+
if (tag !== 18) {
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
message.items.push(DtoPermission.decode(reader, reader.uint32()));
|
|
416
|
+
continue;
|
|
417
|
+
}
|
|
418
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
reader.skipType(tag & 7);
|
|
422
|
+
}
|
|
423
|
+
return message;
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
function createBasePermissionsRequest() {
|
|
427
|
+
return { page: 0, pageSize: 0, sortBy: "", sortOrder: 0 };
|
|
428
|
+
}
|
|
429
|
+
export const PermissionsRequest = {
|
|
430
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
431
|
+
if (message.page !== 0) {
|
|
432
|
+
writer.uint32(8).int32(message.page);
|
|
433
|
+
}
|
|
434
|
+
if (message.pageSize !== 0) {
|
|
435
|
+
writer.uint32(16).int32(message.pageSize);
|
|
436
|
+
}
|
|
437
|
+
if (message.sortBy !== "") {
|
|
438
|
+
writer.uint32(26).string(message.sortBy);
|
|
439
|
+
}
|
|
440
|
+
if (message.sortOrder !== 0) {
|
|
441
|
+
writer.uint32(32).int32(message.sortOrder);
|
|
442
|
+
}
|
|
443
|
+
return writer;
|
|
444
|
+
},
|
|
445
|
+
decode(input, length) {
|
|
446
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
447
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
448
|
+
const message = createBasePermissionsRequest();
|
|
449
|
+
while (reader.pos < end) {
|
|
450
|
+
const tag = reader.uint32();
|
|
451
|
+
switch (tag >>> 3) {
|
|
452
|
+
case 1:
|
|
453
|
+
if (tag !== 8) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
message.page = reader.int32();
|
|
457
|
+
continue;
|
|
458
|
+
case 2:
|
|
459
|
+
if (tag !== 16) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
message.pageSize = reader.int32();
|
|
463
|
+
continue;
|
|
464
|
+
case 3:
|
|
465
|
+
if (tag !== 26) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.sortBy = reader.string();
|
|
469
|
+
continue;
|
|
470
|
+
case 4:
|
|
471
|
+
if (tag !== 32) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
message.sortOrder = reader.int32();
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
reader.skipType(tag & 7);
|
|
481
|
+
}
|
|
482
|
+
return message;
|
|
483
|
+
},
|
|
484
|
+
};
|
|
485
|
+
function createBasePermissionRequest() {
|
|
486
|
+
return { publicId: "" };
|
|
487
|
+
}
|
|
488
|
+
export const PermissionRequest = {
|
|
489
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
490
|
+
if (message.publicId !== "") {
|
|
491
|
+
writer.uint32(10).string(message.publicId);
|
|
492
|
+
}
|
|
493
|
+
return writer;
|
|
494
|
+
},
|
|
495
|
+
decode(input, length) {
|
|
496
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
497
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
498
|
+
const message = createBasePermissionRequest();
|
|
499
|
+
while (reader.pos < end) {
|
|
500
|
+
const tag = reader.uint32();
|
|
501
|
+
switch (tag >>> 3) {
|
|
502
|
+
case 1:
|
|
503
|
+
if (tag !== 10) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
message.publicId = reader.string();
|
|
507
|
+
continue;
|
|
508
|
+
}
|
|
509
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
510
|
+
break;
|
|
511
|
+
}
|
|
512
|
+
reader.skipType(tag & 7);
|
|
513
|
+
}
|
|
514
|
+
return message;
|
|
515
|
+
},
|
|
516
|
+
};
|
|
517
|
+
function createBaseInputPermission() {
|
|
518
|
+
return { name: "" };
|
|
519
|
+
}
|
|
520
|
+
export const InputPermission = {
|
|
521
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
522
|
+
if (message.name !== "") {
|
|
523
|
+
writer.uint32(10).string(message.name);
|
|
524
|
+
}
|
|
525
|
+
return writer;
|
|
526
|
+
},
|
|
527
|
+
decode(input, length) {
|
|
528
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
529
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
530
|
+
const message = createBaseInputPermission();
|
|
531
|
+
while (reader.pos < end) {
|
|
532
|
+
const tag = reader.uint32();
|
|
533
|
+
switch (tag >>> 3) {
|
|
534
|
+
case 1:
|
|
535
|
+
if (tag !== 10) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
message.name = reader.string();
|
|
539
|
+
continue;
|
|
540
|
+
}
|
|
541
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
reader.skipType(tag & 7);
|
|
545
|
+
}
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
};
|
|
549
|
+
function createBasePermissionSeedRequest() {
|
|
550
|
+
return { permissions: [] };
|
|
551
|
+
}
|
|
552
|
+
export const PermissionSeedRequest = {
|
|
553
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
554
|
+
for (const v of message.permissions) {
|
|
555
|
+
InputPermission.encode(v, writer.uint32(10).fork()).ldelim();
|
|
556
|
+
}
|
|
557
|
+
return writer;
|
|
558
|
+
},
|
|
559
|
+
decode(input, length) {
|
|
560
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
561
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
562
|
+
const message = createBasePermissionSeedRequest();
|
|
563
|
+
while (reader.pos < end) {
|
|
564
|
+
const tag = reader.uint32();
|
|
565
|
+
switch (tag >>> 3) {
|
|
566
|
+
case 1:
|
|
567
|
+
if (tag !== 10) {
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
message.permissions.push(InputPermission.decode(reader, reader.uint32()));
|
|
571
|
+
continue;
|
|
572
|
+
}
|
|
573
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
reader.skipType(tag & 7);
|
|
577
|
+
}
|
|
578
|
+
return message;
|
|
579
|
+
},
|
|
580
|
+
};
|
|
242
581
|
export function AuthServiceControllerMethods() {
|
|
243
582
|
return function (constructor) {
|
|
244
|
-
const grpcMethods = ["validateAccess", "authorize"];
|
|
583
|
+
const grpcMethods = ["validateAccess", "authorize", "permissionSeed", "permissions", "permission"];
|
|
245
584
|
for (const method of grpcMethods) {
|
|
246
585
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
247
586
|
GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
@@ -255,6 +594,7 @@ export function AuthServiceControllerMethods() {
|
|
|
255
594
|
}
|
|
256
595
|
export const AUTH_SERVICE_NAME = "AuthService";
|
|
257
596
|
export const AuthServiceService = {
|
|
597
|
+
/** --- Auth --- */
|
|
258
598
|
validateAccess: {
|
|
259
599
|
path: "/aegis.auth.v1.AuthService/ValidateAccess",
|
|
260
600
|
requestStream: false,
|
|
@@ -273,4 +613,32 @@ export const AuthServiceService = {
|
|
|
273
613
|
responseSerialize: (value) => Buffer.from(AuthorizeResponse.encode(value).finish()),
|
|
274
614
|
responseDeserialize: (value) => AuthorizeResponse.decode(value),
|
|
275
615
|
},
|
|
616
|
+
/** --- Permission --- */
|
|
617
|
+
permissionSeed: {
|
|
618
|
+
path: "/aegis.auth.v1.AuthService/PermissionSeed",
|
|
619
|
+
requestStream: false,
|
|
620
|
+
responseStream: false,
|
|
621
|
+
requestSerialize: (value) => Buffer.from(PermissionSeedRequest.encode(value).finish()),
|
|
622
|
+
requestDeserialize: (value) => PermissionSeedRequest.decode(value),
|
|
623
|
+
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
624
|
+
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
625
|
+
},
|
|
626
|
+
permissions: {
|
|
627
|
+
path: "/aegis.auth.v1.AuthService/Permissions",
|
|
628
|
+
requestStream: false,
|
|
629
|
+
responseStream: false,
|
|
630
|
+
requestSerialize: (value) => Buffer.from(PermissionsRequest.encode(value).finish()),
|
|
631
|
+
requestDeserialize: (value) => PermissionsRequest.decode(value),
|
|
632
|
+
responseSerialize: (value) => Buffer.from(DtoPermissions.encode(value).finish()),
|
|
633
|
+
responseDeserialize: (value) => DtoPermissions.decode(value),
|
|
634
|
+
},
|
|
635
|
+
permission: {
|
|
636
|
+
path: "/aegis.auth.v1.AuthService/Permission",
|
|
637
|
+
requestStream: false,
|
|
638
|
+
responseStream: false,
|
|
639
|
+
requestSerialize: (value) => Buffer.from(PermissionRequest.encode(value).finish()),
|
|
640
|
+
requestDeserialize: (value) => PermissionRequest.decode(value),
|
|
641
|
+
responseSerialize: (value) => Buffer.from(DtoPermission.encode(value).finish()),
|
|
642
|
+
responseDeserialize: (value) => DtoPermission.decode(value),
|
|
643
|
+
},
|
|
276
644
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export declare const protobufPackage = "aegis.ops.v1";
|
|
5
|
+
export interface OpsRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OpsResponse {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const AEGIS_OPS_V1_PACKAGE_NAME = "aegis.ops.v1";
|
|
13
|
+
export declare const OpsRequest: {
|
|
14
|
+
encode(message: OpsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpsRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const OpsResponse: {
|
|
18
|
+
encode(message: OpsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpsResponse;
|
|
20
|
+
};
|
|
21
|
+
export interface OpsServiceClient {
|
|
22
|
+
getOps(request: OpsRequest): Observable<OpsResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface OpsServiceController {
|
|
25
|
+
getOps(request: OpsRequest): Promise<OpsResponse> | Observable<OpsResponse> | OpsResponse;
|
|
26
|
+
}
|
|
27
|
+
export declare function OpsServiceControllerMethods(): (constructor: Function) => void;
|
|
28
|
+
export declare const OPS_SERVICE_NAME = "OpsService";
|
|
29
|
+
export type OpsServiceService = typeof OpsServiceService;
|
|
30
|
+
export declare const OpsServiceService: {
|
|
31
|
+
readonly getOps: {
|
|
32
|
+
readonly path: "/aegis.ops.v1.OpsService/GetOps";
|
|
33
|
+
readonly requestStream: false;
|
|
34
|
+
readonly responseStream: false;
|
|
35
|
+
readonly requestSerialize: (value: OpsRequest) => Buffer<ArrayBuffer>;
|
|
36
|
+
readonly requestDeserialize: (value: Buffer) => OpsRequest;
|
|
37
|
+
readonly responseSerialize: (value: OpsResponse) => Buffer<ArrayBuffer>;
|
|
38
|
+
readonly responseDeserialize: (value: Buffer) => OpsResponse;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export interface OpsServiceServer extends UntypedServiceImplementation {
|
|
42
|
+
getOps: handleUnaryCall<OpsRequest, OpsResponse>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=ops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../../../../src/gen/ops/v1/ops.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;AAElC,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAMxD,eAAO,MAAM,UAAU;oBACL,UAAU,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAOnE,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,UAAU;CAsBpE,CAAC;AAMF,eAAO,MAAM,WAAW;oBACN,WAAW,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAUpE,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,WAAW;CA6BrE,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;CAC3F;AAED,wBAAgB,2BAA2B,KACxB,aAAa,QAAQ,UAYvC;AAED,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AACzD,eAAO,MAAM,iBAAiB;;;;;2CAKA,UAAU;6CACR,MAAM;4CACP,WAAW;8CACT,MAAM;;CAE7B,CAAC;AAEX,MAAM,WAAW,gBAAiB,SAAQ,4BAA4B;IACpE,MAAM,EAAE,eAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;CAClD"}
|
|
@@ -0,0 +1,108 @@
|
|
|
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: ops/v1/ops.proto
|
|
6
|
+
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
7
|
+
import _m0 from "protobufjs/minimal";
|
|
8
|
+
export const protobufPackage = "aegis.ops.v1";
|
|
9
|
+
export const AEGIS_OPS_V1_PACKAGE_NAME = "aegis.ops.v1";
|
|
10
|
+
function createBaseOpsRequest() {
|
|
11
|
+
return { id: "" };
|
|
12
|
+
}
|
|
13
|
+
export const OpsRequest = {
|
|
14
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
15
|
+
if (message.id !== "") {
|
|
16
|
+
writer.uint32(10).string(message.id);
|
|
17
|
+
}
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBaseOpsRequest();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1:
|
|
28
|
+
if (tag !== 10) {
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
message.id = reader.string();
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
reader.skipType(tag & 7);
|
|
38
|
+
}
|
|
39
|
+
return message;
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
function createBaseOpsResponse() {
|
|
43
|
+
return { id: "", name: "" };
|
|
44
|
+
}
|
|
45
|
+
export const OpsResponse = {
|
|
46
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
47
|
+
if (message.id !== "") {
|
|
48
|
+
writer.uint32(10).string(message.id);
|
|
49
|
+
}
|
|
50
|
+
if (message.name !== "") {
|
|
51
|
+
writer.uint32(18).string(message.name);
|
|
52
|
+
}
|
|
53
|
+
return writer;
|
|
54
|
+
},
|
|
55
|
+
decode(input, length) {
|
|
56
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
57
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
+
const message = createBaseOpsResponse();
|
|
59
|
+
while (reader.pos < end) {
|
|
60
|
+
const tag = reader.uint32();
|
|
61
|
+
switch (tag >>> 3) {
|
|
62
|
+
case 1:
|
|
63
|
+
if (tag !== 10) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.id = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
case 2:
|
|
69
|
+
if (tag !== 18) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.name = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
reader.skipType(tag & 7);
|
|
79
|
+
}
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
export function OpsServiceControllerMethods() {
|
|
84
|
+
return function (constructor) {
|
|
85
|
+
const grpcMethods = ["getOps"];
|
|
86
|
+
for (const method of grpcMethods) {
|
|
87
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
88
|
+
GrpcMethod("OpsService", method)(constructor.prototype[method], method, descriptor);
|
|
89
|
+
}
|
|
90
|
+
const grpcStreamMethods = [];
|
|
91
|
+
for (const method of grpcStreamMethods) {
|
|
92
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
93
|
+
GrpcStreamMethod("OpsService", method)(constructor.prototype[method], method, descriptor);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export const OPS_SERVICE_NAME = "OpsService";
|
|
98
|
+
export const OpsServiceService = {
|
|
99
|
+
getOps: {
|
|
100
|
+
path: "/aegis.ops.v1.OpsService/GetOps",
|
|
101
|
+
requestStream: false,
|
|
102
|
+
responseStream: false,
|
|
103
|
+
requestSerialize: (value) => Buffer.from(OpsRequest.encode(value).finish()),
|
|
104
|
+
requestDeserialize: (value) => OpsRequest.decode(value),
|
|
105
|
+
responseSerialize: (value) => Buffer.from(OpsResponse.encode(value).finish()),
|
|
106
|
+
responseDeserialize: (value) => OpsResponse.decode(value),
|
|
107
|
+
},
|
|
108
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
1
|
+
export * as v1Agent from "./gen/agent/v1/agent";
|
|
2
|
+
export * as v1Analytics from "./gen/analytics/v1/analytics";
|
|
3
|
+
export * as v1Auth from "./gen/auth/v1/auth";
|
|
4
|
+
export * as v1Ops from "./gen/ops/v1/ops";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
3
|
-
export * as
|
|
4
|
-
|
|
5
|
-
// export * from './gen/admin/v1/admin';
|
|
6
|
-
// export * from './gen/auth/v1/auth';
|
|
7
|
-
// optionally, export helpers
|
|
8
|
-
// export { PROTO_PATHS } from "./proto-paths";
|
|
9
|
-
/*
|
|
10
|
-
|
|
11
|
-
npm i
|
|
12
|
-
npm run gen
|
|
13
|
-
npm build
|
|
14
|
-
|
|
15
|
-
npm login
|
|
16
|
-
npm publish --access public
|
|
17
|
-
|
|
18
|
-
# Consumers
|
|
19
|
-
|
|
20
|
-
npm i @acequants/aegis-contracts @grpc/grpc-js protobufjs
|
|
21
|
-
|
|
22
|
-
---------------------------------------------------------
|
|
23
|
-
.npmrc (for private publishing)
|
|
24
|
-
|
|
25
|
-
@acequants:registry=https://registry.npmjs.org/
|
|
26
|
-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
|
|
27
|
-
|
|
28
|
-
*/
|
|
1
|
+
export * as v1Agent from "./gen/agent/v1/agent";
|
|
2
|
+
export * as v1Analytics from "./gen/analytics/v1/analytics";
|
|
3
|
+
export * as v1Auth from "./gen/auth/v1/auth";
|
|
4
|
+
export * as v1Ops from "./gen/ops/v1/ops";
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package aegis.analytics.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
|
|
7
|
+
message StatsRequest {
|
|
8
|
+
string id = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message StatsResponse {
|
|
12
|
+
string id = 1;
|
|
13
|
+
string name = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
service AnalyticsService {
|
|
17
|
+
rpc GetStats (StatsRequest) returns (StatsResponse);
|
|
18
|
+
}
|
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -4,11 +4,21 @@ package aegis.auth.v1;
|
|
|
4
4
|
|
|
5
5
|
option java_multiple_files = true;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
enum SortOrder {
|
|
10
|
+
ASC = 0;
|
|
11
|
+
DESC = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message DtoPaginationMeta {
|
|
15
|
+
int32 total_items = 1;
|
|
16
|
+
int32 total_pages = 2;
|
|
17
|
+
int32 current_page = 3;
|
|
18
|
+
int32 page_size = 4;
|
|
10
19
|
}
|
|
11
20
|
|
|
21
|
+
// ---- AUTH ----
|
|
12
22
|
message AuthContext {
|
|
13
23
|
string session_public_id = 1;
|
|
14
24
|
string user_public_id = 2;
|
|
@@ -35,4 +45,49 @@ message AuthorizeRequest {
|
|
|
35
45
|
message AuthorizeResponse {
|
|
36
46
|
bool allowed = 1;
|
|
37
47
|
string reason = 2;
|
|
38
|
-
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ---- PERMISSION ----
|
|
51
|
+
message DtoPermission {
|
|
52
|
+
string public_id = 1;
|
|
53
|
+
string name = 2;
|
|
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;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message DtoPermissions {
|
|
61
|
+
DtoPaginationMeta meta = 1;
|
|
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 PermissionSeedRequest {
|
|
81
|
+
repeated InputPermission permissions = 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
service AuthService {
|
|
85
|
+
// --- Auth ---
|
|
86
|
+
rpc ValidateAccess (ValidateAccessRequest) returns (ValidateAccessResponse);
|
|
87
|
+
rpc Authorize (AuthorizeRequest) returns (AuthorizeResponse);
|
|
88
|
+
|
|
89
|
+
// --- Permission ---
|
|
90
|
+
rpc PermissionSeed (PermissionSeedRequest) returns (DtoPermissions);
|
|
91
|
+
rpc Permissions (PermissionsRequest) returns (DtoPermissions);
|
|
92
|
+
rpc Permission (PermissionRequest) returns (DtoPermission);
|
|
93
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package aegis.ops.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
|
|
7
|
+
message OpsRequest {
|
|
8
|
+
string id = 1;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message OpsResponse {
|
|
12
|
+
string id = 1;
|
|
13
|
+
string name = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
service OpsService {
|
|
17
|
+
rpc GetOps (OpsRequest) returns (OpsResponse);
|
|
18
|
+
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare const protobufPackage = "aegis.admin.v1";
|
|
5
|
-
/** ---- Messages ---- */
|
|
6
|
-
export interface GetServiceRequest {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetServiceResponse {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const AEGIS_ADMIN_V1_PACKAGE_NAME = "aegis.admin.v1";
|
|
14
|
-
export declare const GetServiceRequest: {
|
|
15
|
-
encode(message: GetServiceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetServiceRequest;
|
|
17
|
-
};
|
|
18
|
-
export declare const GetServiceResponse: {
|
|
19
|
-
encode(message: GetServiceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetServiceResponse;
|
|
21
|
-
};
|
|
22
|
-
/** ---- Service ---- */
|
|
23
|
-
export interface AdminServiceClient {
|
|
24
|
-
getService(request: GetServiceRequest): Observable<GetServiceResponse>;
|
|
25
|
-
}
|
|
26
|
-
/** ---- Service ---- */
|
|
27
|
-
export interface AdminServiceController {
|
|
28
|
-
getService(request: GetServiceRequest): Promise<GetServiceResponse> | Observable<GetServiceResponse> | GetServiceResponse;
|
|
29
|
-
}
|
|
30
|
-
export declare function AdminServiceControllerMethods(): (constructor: Function) => void;
|
|
31
|
-
export declare const ADMIN_SERVICE_NAME = "AdminService";
|
|
32
|
-
/** ---- Service ---- */
|
|
33
|
-
export type AdminServiceService = typeof AdminServiceService;
|
|
34
|
-
export declare const AdminServiceService: {
|
|
35
|
-
readonly getService: {
|
|
36
|
-
readonly path: "/aegis.admin.v1.AdminService/GetService";
|
|
37
|
-
readonly requestStream: false;
|
|
38
|
-
readonly responseStream: false;
|
|
39
|
-
readonly requestSerialize: (value: GetServiceRequest) => Buffer<ArrayBuffer>;
|
|
40
|
-
readonly requestDeserialize: (value: Buffer) => GetServiceRequest;
|
|
41
|
-
readonly responseSerialize: (value: GetServiceResponse) => Buffer<ArrayBuffer>;
|
|
42
|
-
readonly responseDeserialize: (value: Buffer) => GetServiceResponse;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export interface AdminServiceServer extends UntypedServiceImplementation {
|
|
46
|
-
getService: handleUnaryCall<GetServiceRequest, GetServiceResponse>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../../../src/gen/admin/v1/admin.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;AAElC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,yBAAyB;AACzB,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAM5D,eAAO,MAAM,iBAAiB;oBACZ,iBAAiB,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAO1E,GAAG,CAAC,MAA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equest {
|
|
9
|
-
string id = 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message GetServiceResponse {
|
|
13
|
-
string id = 1;
|
|
14
|
-
string name = 2;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// ---- Service ----
|
|
18
|
-
service AdminService {
|
|
19
|
-
rpc GetService (GetServiceRequest) returns (GetServiceResponse);
|
|
20
|
-
}
|