@acequants/aegis-contracts 0.1.21 → 0.1.22

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,114 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,64 +0,0 @@
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
- }
@@ -1,44 +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.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
@@ -1 +0,0 @@
1
- {"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../../../../src/gen/ops/v1/ops.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE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E,eAAe,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;CAClD"}
@@ -1,108 +0,0 @@
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
- };
@@ -1,5 +0,0 @@
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";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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 DELETED
@@ -1,4 +0,0 @@
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";