@servora/proto-utils 0.1.9 → 0.1.11
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/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/gen/servora/audit/v1/index.d.ts +0 -18
- package/dist/gen/servora/audit/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/audit/v1/index.js +0 -9
- package/dist/gen/servora/audit/v1/index.js.map +1 -1
- package/dist/gen/servora/cloudevents/v1/index.d.ts +0 -17
- package/dist/gen/servora/cloudevents/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/cloudevents/v1/index.js +0 -9
- package/dist/gen/servora/cloudevents/v1/index.js.map +1 -1
- package/dist/gen/servora/conf/v1/index.d.ts +0 -22
- package/dist/gen/servora/conf/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/conf/v1/index.js +0 -9
- package/dist/gen/servora/conf/v1/index.js.map +1 -1
- package/dist/gen/servora/contrib/db/redis/v1/index.d.ts +7 -17
- package/dist/gen/servora/contrib/db/redis/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/contrib/db/redis/v1/index.js +0 -9
- package/dist/gen/servora/contrib/db/redis/v1/index.js.map +1 -1
- package/dist/gen/servora/contrib/kafka/v1/index.d.ts +0 -17
- package/dist/gen/servora/contrib/kafka/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/contrib/kafka/v1/index.js +0 -9
- package/dist/gen/servora/contrib/kafka/v1/index.js.map +1 -1
- package/dist/gen/servora/core/v1/index.d.ts +31 -18
- package/dist/gen/servora/core/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/core/v1/index.js +0 -9
- package/dist/gen/servora/core/v1/index.js.map +1 -1
- package/dist/gen/servora/crud/v1/index.d.ts +0 -17
- package/dist/gen/servora/crud/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/crud/v1/index.js +0 -9
- package/dist/gen/servora/crud/v1/index.js.map +1 -1
- package/dist/gen/servora/errors/v1/index.d.ts +0 -18
- package/dist/gen/servora/errors/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/errors/v1/index.js +1 -10
- package/dist/gen/servora/errors/v1/index.js.map +1 -1
- package/dist/gen/servora/example/v1/index.d.ts +1 -17
- package/dist/gen/servora/example/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/example/v1/index.js +1 -9
- package/dist/gen/servora/example/v1/index.js.map +1 -1
- package/dist/gen/servora/obs/audit/v1/index.d.ts +0 -18
- package/dist/gen/servora/obs/audit/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/obs/audit/v1/index.js +0 -9
- package/dist/gen/servora/obs/audit/v1/index.js.map +1 -1
- package/dist/gen/servora/redact/v3/index.d.ts +32 -0
- package/dist/gen/servora/redact/v3/index.d.ts.map +1 -0
- package/dist/gen/servora/redact/v3/index.js +5 -0
- package/dist/gen/servora/redact/v3/index.js.map +1 -0
- package/dist/gen/servora/security/tls/v1/index.d.ts +0 -18
- package/dist/gen/servora/security/tls/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/security/tls/v1/index.js +0 -9
- package/dist/gen/servora/security/tls/v1/index.js.map +1 -1
- package/dist/gen/servora/transport/http/apidocs/v1/index.d.ts +32 -0
- package/dist/gen/servora/transport/http/apidocs/v1/index.d.ts.map +1 -0
- package/dist/gen/servora/transport/http/apidocs/v1/index.js +5 -0
- package/dist/gen/servora/transport/http/apidocs/v1/index.js.map +1 -0
- package/dist/gen/servora/transport/http/cors/v1/index.d.ts +0 -17
- package/dist/gen/servora/transport/http/cors/v1/index.d.ts.map +1 -1
- package/dist/gen/servora/transport/http/cors/v1/index.js +0 -9
- package/dist/gen/servora/transport/http/cors/v1/index.js.map +1 -1
- package/dist/transport.d.ts +21 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +7 -0
- package/dist/transport.js.map +1 -0
- package/package.json +6 -2
- package/src/errors.ts +1 -1
- package/src/gen/servora/audit/v1/index.ts +0 -37
- package/src/gen/servora/cloudevents/v1/index.ts +0 -37
- package/src/gen/servora/conf/v1/index.ts +4 -53
- package/src/gen/servora/contrib/db/redis/v1/index.ts +8 -37
- package/src/gen/servora/contrib/kafka/v1/index.ts +0 -37
- package/src/gen/servora/core/v1/index.ts +45 -40
- package/src/gen/servora/crud/v1/index.ts +0 -37
- package/src/gen/servora/errors/v1/index.ts +0 -37
- package/src/gen/servora/example/v1/index.ts +3 -43
- package/src/gen/servora/obs/audit/v1/index.ts +0 -37
- package/src/gen/servora/redact/v3/index.ts +39 -0
- package/src/gen/servora/security/tls/v1/index.ts +0 -37
- package/src/gen/servora/transport/http/apidocs/v1/index.ts +49 -0
- package/src/gen/servora/transport/http/cors/v1/index.ts +0 -37
- package/src/transport.ts +41 -0
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.d.ts +0 -39
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.js +0 -14
- package/dist/gen/servora/contrib/db/clickhouse/v1/index.js.map +0 -1
- package/dist/gen/servora/contrib/mail/v1/index.d.ts +0 -37
- package/dist/gen/servora/contrib/mail/v1/index.d.ts.map +0 -1
- package/dist/gen/servora/contrib/mail/v1/index.js +0 -14
- package/dist/gen/servora/contrib/mail/v1/index.js.map +0 -1
- package/src/client/.gitkeep +0 -0
- package/src/gen/servora/contrib/db/clickhouse/v1/index.ts +0 -69
- package/src/gen/servora/contrib/mail/v1/index.ts +0 -68
package/dist/errors.d.ts
CHANGED
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAExE,qBAAa,QAAS,SAAQ,KAAK;IACjC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,OAAO,EAAE;QACnB,IAAI,EAAE,YAAY,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CASF;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAoBD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CAiB3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,eAAe,GAAG,IAAI,CAGxE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAEvE"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type AuditMode = 'AUDIT_MODE_DISABLED' | 'AUDIT_MODE_ENABLED' | 'AUDIT_MODE_UNSPECIFIED';
|
|
19
2
|
export type AuditRule = {
|
|
20
3
|
mode?: AuditMode;
|
|
21
4
|
};
|
|
22
|
-
export {};
|
|
23
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAEjB,qBAAqB,GAErB,oBAAoB,GAGpB,wBAAwB,CAAC;AAI7B,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/audit/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AAmB/F,gDAAgD"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type CloudEvent = {
|
|
19
2
|
attributes?: {
|
|
20
3
|
[key: string]: CloudEvent_CloudEventAttributeValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/cloudevents/v1/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/cloudevents/v1/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG;IAEvB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mCAAmC,CAAA;KAAE,CAAC;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,kBAAkB,GAAG,MAAM,CAAC;AAOjC,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACvB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/cloudevents/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/cloudevents/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AA8C/F,gDAAgD"}
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
|
-
export type SectionRule = {
|
|
19
|
-
key?: string;
|
|
20
|
-
optional?: boolean;
|
|
21
|
-
};
|
|
22
1
|
export type FieldRule = {
|
|
23
2
|
default?: string;
|
|
24
3
|
required?: boolean;
|
|
25
4
|
};
|
|
26
|
-
export {};
|
|
27
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/conf/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/conf/v1/index.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GAAG;IAMtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/conf/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/conf/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AAiB/F,gDAAgD"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type Redis = {
|
|
19
2
|
addr?: string;
|
|
20
3
|
db?: number;
|
|
@@ -22,9 +5,16 @@ export type Redis = {
|
|
|
22
5
|
network?: string;
|
|
23
6
|
password?: string;
|
|
24
7
|
readTimeout?: wellKnownDuration;
|
|
8
|
+
tls?: servorasecuritytlsv1_TLS;
|
|
25
9
|
userName?: string;
|
|
26
10
|
writeTimeout?: wellKnownDuration;
|
|
27
11
|
};
|
|
28
12
|
type wellKnownDuration = string;
|
|
13
|
+
export type servorasecuritytlsv1_TLS = {
|
|
14
|
+
caPath?: string;
|
|
15
|
+
certPath?: string;
|
|
16
|
+
enable?: boolean;
|
|
17
|
+
keyPath?: string;
|
|
18
|
+
};
|
|
29
19
|
export {};
|
|
30
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/gen/servora/contrib/db/redis/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AA4B/F,gDAAgD"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type Kafka = {
|
|
19
2
|
brokers?: string[];
|
|
20
3
|
clientId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,CAAC;AAMF,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/gen/servora/contrib/kafka/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AAsC/F,gDAAgD"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type Bootstrap = {
|
|
19
2
|
app?: App;
|
|
20
3
|
data?: Data;
|
|
@@ -38,6 +21,7 @@ export type Server = {
|
|
|
38
21
|
};
|
|
39
22
|
export type Server_HTTP = {
|
|
40
23
|
advertise?: Server_Advertise;
|
|
24
|
+
apiDocs?: servoratransporthttpapidocsv1_APIDocs;
|
|
41
25
|
listen?: Server_Listen;
|
|
42
26
|
tls?: servorasecuritytlsv1_TLS;
|
|
43
27
|
};
|
|
@@ -57,6 +41,36 @@ export type Server_Advertise = {
|
|
|
57
41
|
endpoint?: string;
|
|
58
42
|
host?: string;
|
|
59
43
|
};
|
|
44
|
+
export type servoratransporthttpapidocsv1_APIDocs = {
|
|
45
|
+
basePath?: string;
|
|
46
|
+
documents?: servoratransporthttpapidocsv1_Document[];
|
|
47
|
+
enable?: boolean;
|
|
48
|
+
path?: string;
|
|
49
|
+
scalar?: servoratransporthttpapidocsv1_Scalar;
|
|
50
|
+
scriptUrl?: string;
|
|
51
|
+
title?: string;
|
|
52
|
+
};
|
|
53
|
+
export type servoratransporthttpapidocsv1_Document = {
|
|
54
|
+
data?: string;
|
|
55
|
+
path?: string;
|
|
56
|
+
slug?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
url?: string;
|
|
59
|
+
};
|
|
60
|
+
export type servoratransporthttpapidocsv1_Scalar = {
|
|
61
|
+
darkMode?: boolean;
|
|
62
|
+
extra?: wellKnownStruct;
|
|
63
|
+
hideTestRequestButton?: boolean;
|
|
64
|
+
layout?: string;
|
|
65
|
+
persistAuth?: boolean;
|
|
66
|
+
proxyUrl?: string;
|
|
67
|
+
searchHotKey?: string;
|
|
68
|
+
showSidebar?: boolean;
|
|
69
|
+
telemetry?: boolean;
|
|
70
|
+
theme?: string;
|
|
71
|
+
withDefaultFonts?: boolean;
|
|
72
|
+
};
|
|
73
|
+
type wellKnownStruct = Record<string, unknown>;
|
|
60
74
|
export type Server_GRPC = {
|
|
61
75
|
advertise?: Server_Advertise;
|
|
62
76
|
listen?: Server_Listen;
|
|
@@ -84,7 +98,6 @@ export type Data_Client_Endpoint = {
|
|
|
84
98
|
timeout?: wellKnownDuration;
|
|
85
99
|
tls?: servorasecuritytlsv1_TLS;
|
|
86
100
|
};
|
|
87
|
-
type wellKnownStruct = Record<string, unknown>;
|
|
88
101
|
export type Registry = {
|
|
89
102
|
consul?: Consul;
|
|
90
103
|
etcd?: Etcd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/core/v1/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/core/v1/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,QAAQ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AAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,wBAAwB,CAAC;AAC7B,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,6BAA6B,GAC7B,2BAA2B,CAAC;AAChC,MAAM,MAAM,eAAe,GAAG,EAC7B,CAAC;AAGF,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/core/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/core/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AAoQ/F,gDAAgD"}
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
1
|
export type CrudErrorReason = 'CRUD_ERROR_REASON_INTERNAL' | 'CRUD_ERROR_REASON_INVALID_FIELD_MASK' | 'CRUD_ERROR_REASON_INVALID_FIELD_VALUE' | 'CRUD_ERROR_REASON_INVALID_FILTER' | 'CRUD_ERROR_REASON_INVALID_ORDER_BY' | 'CRUD_ERROR_REASON_INVALID_PAGE_TOKEN' | 'CRUD_ERROR_REASON_INVALID_RESOURCE_NAME' | 'CRUD_ERROR_REASON_UNSPECIFIED';
|
|
19
2
|
export type PageTokenPayload = {
|
|
20
3
|
contextFingerprint?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/crud/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/crud/v1/index.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAEvB,4BAA4B,GAE5B,sCAAsC,GAEtC,uCAAuC,GAEvC,kCAAkC,GAElC,oCAAoC,GAEpC,sCAAsC,GAEtC,yCAAyC,GACzC,+BAA+B,CAAC;AAGpC,MAAM,MAAM,gBAAgB,GAAG;IAE7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IAEvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAIF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAEpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAKF,KAAK,kBAAkB,GAAG,MAAM,CAAC;AAMjC,KAAK,iBAAiB,GAAG,MAAM,CAAC;AAEhC,KAAK,kBAAkB,GAAG,IAAI,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
3
|
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/crud/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/crud/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;;AAiE/F,gDAAgD"}
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
interface TransportMeta {
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
1
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/errors/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/errors/v1/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
3
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
function encodePathSegment(value) {
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
13
4
|
// @@protoc_insertion_point(typescript-http-eof)
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/errors/v1/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,+FAA+F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/gen/servora/errors/v1/index.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,+FAA+F;AAG/F,gDAAgD"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
service: string;
|
|
3
|
-
method: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ClientTransport {
|
|
6
|
-
unary<T>(path: string, method: string, body: null | string, meta: TransportMeta): Promise<T>;
|
|
7
|
-
serverStream<T>(path: string, meta: TransportMeta): ServerStream<T>;
|
|
8
|
-
duplexStream<TIn, TOut>(path: string, meta: TransportMeta): DuplexStream<TIn, TOut>;
|
|
9
|
-
}
|
|
10
|
-
export interface ServerStream<T> {
|
|
11
|
-
onEvent(listener: (data: T) => void): () => void;
|
|
12
|
-
onError(handler: (error: Error) => void): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
}
|
|
15
|
-
export interface DuplexStream<TIn, TOut> extends ServerStream<TOut> {
|
|
16
|
-
send(data: TIn): void;
|
|
17
|
-
}
|
|
1
|
+
import type { ClientTransport } from '@servora/proto-utils/transport';
|
|
18
2
|
export type User = {
|
|
19
3
|
createTime?: wellKnownTimestamp;
|
|
20
4
|
deleteTime?: wellKnownTimestamp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/example/v1/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/gen/servora/example/v1/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE,MAAM,MAAM,IAAI,GAAG;IAIjB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAIhC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAIhC,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAI/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAI3B,UAAU,CAAC,EAAE,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IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,WAAW,WAAW;IAE1B,OAAO,CACL,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,SAAS,CACP,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE9B,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,UAAU,CACR,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,YAAY,CACV,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,eAAe,GACzB,WAAW,CA2Jb;AACD,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,YAAY,CAAC,CAAc;gBAEvB,SAAS,EAAE,eAAe;IAItC,IAAI,WAAW,IAAI,WAAW,CAE7B;CACF;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,CAErE"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable no-use-before-define, @typescript-eslint/no-unused-vars, prettier/prettier */
|
|
3
|
-
|
|
4
|
-
return encodeURIComponent(String(value)).replace(/[!'()*]/g, (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
5
|
-
}
|
|
6
|
-
function encodeMultiSegmentPath(value) {
|
|
7
|
-
return String(value)
|
|
8
|
-
.split('/')
|
|
9
|
-
.map(encodePathSegment)
|
|
10
|
-
.join('/');
|
|
11
|
-
}
|
|
3
|
+
import { encodeMultiSegmentPath } from '@servora/proto-utils/transport';
|
|
12
4
|
export function createUserServiceClient(transport) {
|
|
13
5
|
return {
|
|
14
6
|
GetUser(request) {
|