@acequants/aegis-contracts 0.1.22 → 0.1.24
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/agent/v1/agent.d.ts +120 -0
- package/dist/src/gen/agent/v1/agent.d.ts.map +1 -0
- package/dist/src/gen/agent/v1/agent.js +426 -0
- 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/analytics/v1/analytics.js +108 -0
- package/dist/src/gen/auth/v1/auth.d.ts +663 -0
- package/dist/src/gen/auth/v1/auth.d.ts.map +1 -0
- package/dist/src/gen/auth/v1/auth.js +2249 -0
- package/dist/src/gen/google/protobuf/timestamp.d.ts +114 -0
- package/dist/src/gen/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/src/gen/google/protobuf/timestamp.js +64 -0
- 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 +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +4 -0
- package/package.json +1 -1
- package/proto/auth/v1/auth.proto +91 -5
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
|
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
6
|
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
7
|
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
8
|
+
* Gregorian calendar backwards to year one.
|
|
9
|
+
*
|
|
10
|
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
11
|
+
* second table is needed for interpretation, using a [24-hour linear
|
|
12
|
+
* smear](https://developers.google.com/time/smear).
|
|
13
|
+
*
|
|
14
|
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
15
|
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
16
|
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
17
|
+
*
|
|
18
|
+
* # Examples
|
|
19
|
+
*
|
|
20
|
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
21
|
+
*
|
|
22
|
+
* Timestamp timestamp;
|
|
23
|
+
* timestamp.set_seconds(time(NULL));
|
|
24
|
+
* timestamp.set_nanos(0);
|
|
25
|
+
*
|
|
26
|
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
27
|
+
*
|
|
28
|
+
* struct timeval tv;
|
|
29
|
+
* gettimeofday(&tv, NULL);
|
|
30
|
+
*
|
|
31
|
+
* Timestamp timestamp;
|
|
32
|
+
* timestamp.set_seconds(tv.tv_sec);
|
|
33
|
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
34
|
+
*
|
|
35
|
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
36
|
+
*
|
|
37
|
+
* FILETIME ft;
|
|
38
|
+
* GetSystemTimeAsFileTime(&ft);
|
|
39
|
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
40
|
+
*
|
|
41
|
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
42
|
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
43
|
+
* Timestamp timestamp;
|
|
44
|
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
45
|
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
46
|
+
*
|
|
47
|
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
48
|
+
*
|
|
49
|
+
* long millis = System.currentTimeMillis();
|
|
50
|
+
*
|
|
51
|
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
52
|
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
53
|
+
*
|
|
54
|
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
55
|
+
*
|
|
56
|
+
* Instant now = Instant.now();
|
|
57
|
+
*
|
|
58
|
+
* Timestamp timestamp =
|
|
59
|
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
60
|
+
* .setNanos(now.getNano()).build();
|
|
61
|
+
*
|
|
62
|
+
* Example 6: Compute Timestamp from current time in Python.
|
|
63
|
+
*
|
|
64
|
+
* timestamp = Timestamp()
|
|
65
|
+
* timestamp.GetCurrentTime()
|
|
66
|
+
*
|
|
67
|
+
* # JSON Mapping
|
|
68
|
+
*
|
|
69
|
+
* In JSON format, the Timestamp type is encoded as a string in the
|
|
70
|
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
71
|
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
72
|
+
* where {year} is always expressed using four digits while {month}, {day},
|
|
73
|
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
74
|
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
75
|
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
76
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
77
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
78
|
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
79
|
+
*
|
|
80
|
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
81
|
+
* 01:30 UTC on January 15, 2017.
|
|
82
|
+
*
|
|
83
|
+
* In JavaScript, one can convert a Date object to this format using the
|
|
84
|
+
* standard
|
|
85
|
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
86
|
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
87
|
+
* to this format using
|
|
88
|
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
89
|
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
90
|
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
91
|
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
92
|
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
|
+
*/
|
|
94
|
+
export interface Timestamp {
|
|
95
|
+
/**
|
|
96
|
+
* Represents seconds of UTC time since Unix epoch
|
|
97
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
98
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
99
|
+
*/
|
|
100
|
+
seconds: number;
|
|
101
|
+
/**
|
|
102
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
103
|
+
* second values with fractions must still have non-negative nanos values
|
|
104
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
105
|
+
* inclusive.
|
|
106
|
+
*/
|
|
107
|
+
nanos: number;
|
|
108
|
+
}
|
|
109
|
+
export declare const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
110
|
+
export declare const Timestamp: {
|
|
111
|
+
encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../../src/gen/google/protobuf/timestamp.ts"],"names":[],"mappings":"AAQA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAM9D,eAAO,MAAM,SAAS;oBACJ,SAAS,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAUlE,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,SAAS;CA6BnE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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/timestamp.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import Long from "long";
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
export const protobufPackage = "google.protobuf";
|
|
10
|
+
export const GOOGLE_PROTOBUF_PACKAGE_NAME = "google.protobuf";
|
|
11
|
+
function createBaseTimestamp() {
|
|
12
|
+
return { seconds: 0, nanos: 0 };
|
|
13
|
+
}
|
|
14
|
+
export const Timestamp = {
|
|
15
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
16
|
+
if (message.seconds !== 0) {
|
|
17
|
+
writer.uint32(8).int64(message.seconds);
|
|
18
|
+
}
|
|
19
|
+
if (message.nanos !== 0) {
|
|
20
|
+
writer.uint32(16).int32(message.nanos);
|
|
21
|
+
}
|
|
22
|
+
return writer;
|
|
23
|
+
},
|
|
24
|
+
decode(input, length) {
|
|
25
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
26
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
+
const message = createBaseTimestamp();
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
const tag = reader.uint32();
|
|
30
|
+
switch (tag >>> 3) {
|
|
31
|
+
case 1:
|
|
32
|
+
if (tag !== 8) {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
message.seconds = longToNumber(reader.int64());
|
|
36
|
+
continue;
|
|
37
|
+
case 2:
|
|
38
|
+
if (tag !== 16) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
message.nanos = reader.int32();
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
reader.skipType(tag & 7);
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function longToNumber(long) {
|
|
53
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
54
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
55
|
+
}
|
|
56
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
57
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
58
|
+
}
|
|
59
|
+
return long.toNumber();
|
|
60
|
+
}
|
|
61
|
+
if (_m0.util.Long !== Long) {
|
|
62
|
+
_m0.util.Long = Long;
|
|
63
|
+
_m0.configure();
|
|
64
|
+
}
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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/package.json
CHANGED
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -80,7 +80,7 @@ message GrpcDtoPermission {
|
|
|
80
80
|
string description = 3;
|
|
81
81
|
google.protobuf.Timestamp created_at = 4;
|
|
82
82
|
google.protobuf.Timestamp updated_at = 5;
|
|
83
|
-
|
|
83
|
+
google.protobuf.Timestamp deleted_at = 6;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
message GrpcDtoPermissions {
|
|
@@ -89,8 +89,8 @@ message GrpcDtoPermissions {
|
|
|
89
89
|
|
|
90
90
|
message GrpcDtoRolePermission {
|
|
91
91
|
string public_id = 1;
|
|
92
|
-
GrpcDtoPermission permission =
|
|
93
|
-
optional GrpcDtoRole role =
|
|
92
|
+
GrpcDtoPermission permission = 2;
|
|
93
|
+
optional GrpcDtoRole role = 3;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
message GrpcDtoRolePermissions {
|
|
@@ -149,7 +149,7 @@ message GrpcDtoRole {
|
|
|
149
149
|
optional string description = 3;
|
|
150
150
|
google.protobuf.Timestamp created_at = 4;
|
|
151
151
|
google.protobuf.Timestamp updated_at = 5;
|
|
152
|
-
|
|
152
|
+
google.protobuf.Timestamp deleted_at = 6;
|
|
153
153
|
repeated GrpcDtoPermission permissions = 7;
|
|
154
154
|
repeated GrpcDtoUser users = 8;
|
|
155
155
|
}
|
|
@@ -163,6 +163,82 @@ message GrpcDtoPermissionsAdd {
|
|
|
163
163
|
repeated GrpcDtoPermission permissions = 1;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
// ---- CLIENT TYPE ----
|
|
167
|
+
message GrpcInputClientTypeSeed {
|
|
168
|
+
string key = 1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
message GrpcInputClientTypesSeed {
|
|
172
|
+
repeated GrpcInputClientTypeSeed client_types = 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
message GrpcInputClientType {
|
|
176
|
+
string publicId = 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
message GrpcInputClientTypes {
|
|
180
|
+
optional string search = 1;
|
|
181
|
+
optional int32 page = 2;
|
|
182
|
+
optional int32 page_size = 3;
|
|
183
|
+
optional string sort_by = 4;
|
|
184
|
+
optional string sort_order = 5;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message GrpcDtoClientType {
|
|
188
|
+
string public_id = 1;
|
|
189
|
+
string name = 2;
|
|
190
|
+
google.protobuf.Timestamp created_at = 3;
|
|
191
|
+
google.protobuf.Timestamp updated_at = 4;
|
|
192
|
+
google.protobuf.Timestamp deleted_at = 5;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GrpcDtoClientTypesSeed {
|
|
196
|
+
repeated GrpcDtoClientType client_types = 1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message GrpcDtoClientTypes {
|
|
200
|
+
repeated GrpcDtoClientType items = 1;
|
|
201
|
+
GrpcDtoPagination meta = 2;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// ---- USER TYPE ----
|
|
205
|
+
message GrpcInputUserAccountTypeSeed {
|
|
206
|
+
string key = 1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message GrpcInputUserAccountTypesSeed {
|
|
210
|
+
repeated GrpcInputUserAccountTypeSeed user_types = 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message GrpcInputUserAccountType {
|
|
214
|
+
string publicId = 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
message GrpcInputUserAccountTypes {
|
|
218
|
+
optional string search = 1;
|
|
219
|
+
optional int32 page = 2;
|
|
220
|
+
optional int32 page_size = 3;
|
|
221
|
+
optional string sort_by = 4;
|
|
222
|
+
optional string sort_order = 5;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
message GrpcDtoUserAccountType {
|
|
226
|
+
string public_id = 1;
|
|
227
|
+
string name = 2;
|
|
228
|
+
google.protobuf.Timestamp created_at = 3;
|
|
229
|
+
google.protobuf.Timestamp updated_at = 4;
|
|
230
|
+
google.protobuf.Timestamp deleted_at = 5;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message GrpcDtoUserAccountTypesSeed {
|
|
234
|
+
repeated GrpcDtoUserAccountType user_types = 1;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message GrpcDtoUserAccountTypes {
|
|
238
|
+
repeated GrpcDtoUserAccountType items = 1;
|
|
239
|
+
GrpcDtoPagination meta = 2;
|
|
240
|
+
}
|
|
241
|
+
|
|
166
242
|
// --- USER ---
|
|
167
243
|
message GrpcDtoUserRole {
|
|
168
244
|
GrpcDtoRole role = 1;
|
|
@@ -176,7 +252,7 @@ message GrpcDtoUser {
|
|
|
176
252
|
optional string display_name = 5;
|
|
177
253
|
google.protobuf.Timestamp created_at = 6;
|
|
178
254
|
google.protobuf.Timestamp updated_at = 7;
|
|
179
|
-
|
|
255
|
+
google.protobuf.Timestamp deleted_at = 8;
|
|
180
256
|
repeated GrpcDtoUserRole roles = 9;
|
|
181
257
|
}
|
|
182
258
|
|
|
@@ -200,6 +276,16 @@ service AuthService {
|
|
|
200
276
|
rpc RolesRestore (GrpcInputRoleRestore) returns (GrpcDtoMessage);
|
|
201
277
|
rpc RolePermissionsAdd (GrpcInputRolePermissionsAdd) returns (GrpcDtoPermissionsAdd);
|
|
202
278
|
rpc RolePermissionsRemove (GrpcInputRolePermissionsRemove) returns (GrpcDtoMessage);
|
|
279
|
+
|
|
280
|
+
// --- Client Type ---
|
|
281
|
+
rpc ClientTypesSeed (GrpcInputClientTypesSeed) returns (GrpcDtoClientTypesSeed);
|
|
282
|
+
rpc ClientTypes (GrpcInputClientTypes) returns (GrpcDtoClientTypes);
|
|
283
|
+
rpc ClientType (GrpcInputClientType) returns (GrpcDtoClientType);
|
|
284
|
+
|
|
285
|
+
// --- User Account Type ---
|
|
286
|
+
rpc UserAccountTypesSeed (GrpcInputUserAccountTypesSeed) returns (GrpcDtoUserAccountTypesSeed);
|
|
287
|
+
rpc UserAccountTypes (GrpcInputUserAccountTypes) returns (GrpcDtoUserAccountTypes);
|
|
288
|
+
rpc UserAccountType (GrpcInputUserAccountType) returns (GrpcDtoUserAccountType);
|
|
203
289
|
}
|
|
204
290
|
|
|
205
291
|
// rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
|