@platfformx/proto-contracts 1.0.8 → 1.0.10
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/gen/ts/auth-service/account.js +11 -9
- package/dist/gen/ts/auth-service/auth.js +13 -11
- package/dist/index.js +43 -0
- package/dist/src/paths/index.js +17 -2
- package/dist/src/paths/proto-paths.js +7 -5
- package/dist/src/registry/grpc.registry.js +0 -1
- package/index.ts +4 -0
- package/package.json +3 -3
- package/tsconfig.json +7 -12
- package/dist/gen/ts/auth-service/account.d.ts +0 -93
- package/dist/gen/ts/auth-service/account.js.map +0 -1
- package/dist/gen/ts/auth-service/auth.d.ts +0 -77
- package/dist/gen/ts/auth-service/auth.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -4
- package/dist/src/index.js.map +0 -1
- package/dist/src/paths/index.d.ts +0 -1
- package/dist/src/paths/index.js.map +0 -1
- package/dist/src/paths/proto-paths.d.ts +0 -4
- package/dist/src/paths/proto-paths.js.map +0 -1
- package/dist/src/registry/grpc.registry.d.ts +0 -0
- package/dist/src/registry/grpc.registry.js.map +0 -1
- package/src/index.ts +0 -3
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.11.8
|
|
4
5
|
// protoc v7.34.0
|
|
5
6
|
// source: auth-service/account.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ACCOUNT_SERVICE_NAME = exports.AUTH_SERVICE_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AccountServiceControllerMethods = AccountServiceControllerMethods;
|
|
6
10
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export function AccountServiceControllerMethods() {
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "auth_service.v1";
|
|
13
|
+
exports.AUTH_SERVICE_V1_PACKAGE_NAME = "auth_service.v1";
|
|
14
|
+
function AccountServiceControllerMethods() {
|
|
12
15
|
return function (constructor) {
|
|
13
16
|
const grpcMethods = [
|
|
14
17
|
"getAccount",
|
|
@@ -21,14 +24,13 @@ export function AccountServiceControllerMethods() {
|
|
|
21
24
|
];
|
|
22
25
|
for (const method of grpcMethods) {
|
|
23
26
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
GrpcMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
27
|
+
(0, microservices_1.GrpcMethod)("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
25
28
|
}
|
|
26
29
|
const grpcStreamMethods = [];
|
|
27
30
|
for (const method of grpcStreamMethods) {
|
|
28
31
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
GrpcStreamMethod("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
32
|
+
(0, microservices_1.GrpcStreamMethod)("AccountService", method)(constructor.prototype[method], method, descriptor);
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=account.js.map
|
|
36
|
+
exports.ACCOUNT_SERVICE_NAME = "AccountService";
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
3
|
// versions:
|
|
3
4
|
// protoc-gen-ts_proto v2.11.8
|
|
4
5
|
// protoc v7.34.0
|
|
5
6
|
// source: auth-service/auth.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AUTH_SERVICE_NAME = exports.AUTH_SERVICE_V1_PACKAGE_NAME = exports.OAuthProvider = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
6
10
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const protobufPackage = "auth_service.v1";
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "auth_service.v1";
|
|
10
13
|
/** Shared */
|
|
11
|
-
|
|
14
|
+
var OAuthProvider;
|
|
12
15
|
(function (OAuthProvider) {
|
|
13
16
|
OAuthProvider[OAuthProvider["OAUTH_PROVIDER_UNSPECIFIED"] = 0] = "OAUTH_PROVIDER_UNSPECIFIED";
|
|
14
17
|
OAuthProvider[OAuthProvider["OAUTH_PROVIDER_GOOGLE"] = 1] = "OAUTH_PROVIDER_GOOGLE";
|
|
15
18
|
OAuthProvider[OAuthProvider["OAUTH_PROVIDER_GITHUB"] = 2] = "OAUTH_PROVIDER_GITHUB";
|
|
16
19
|
OAuthProvider[OAuthProvider["OAUTH_PROVIDER_TELEGRAM"] = 3] = "OAUTH_PROVIDER_TELEGRAM";
|
|
17
20
|
OAuthProvider[OAuthProvider["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
-
})(OAuthProvider || (OAuthProvider = {}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
22
|
+
exports.AUTH_SERVICE_V1_PACKAGE_NAME = "auth_service.v1";
|
|
23
|
+
function AuthServiceControllerMethods() {
|
|
21
24
|
return function (constructor) {
|
|
22
25
|
const grpcMethods = ["createAccount", "authenticate", "authenticateWithOAuth", "refreshTokens"];
|
|
23
26
|
for (const method of grpcMethods) {
|
|
24
27
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
-
GrpcMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
28
|
+
(0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
26
29
|
}
|
|
27
30
|
const grpcStreamMethods = [];
|
|
28
31
|
for (const method of grpcStreamMethods) {
|
|
29
32
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
30
|
-
GrpcStreamMethod("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
33
|
+
(0, microservices_1.GrpcStreamMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
31
34
|
}
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=auth.js.map
|
|
37
|
+
exports.AUTH_SERVICE_NAME = "AuthService";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Account = exports.Auth = void 0;
|
|
40
|
+
__exportStar(require("./src/paths/index"), exports);
|
|
41
|
+
__exportStar(require("./src/paths/proto-paths"), exports);
|
|
42
|
+
exports.Auth = __importStar(require("./gen/ts/auth-service/auth"));
|
|
43
|
+
exports.Account = __importStar(require("./gen/ts/auth-service/account"));
|
package/dist/src/paths/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./proto-paths"), exports);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PROTO_PATHS = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
exports.PROTO_PATHS = {
|
|
6
|
+
ACCOUNT: (0, path_1.join)(__dirname, '../../proto/auth-service/account.proto'),
|
|
7
|
+
AUTH: (0, path_1.join)(__dirname, '../../proto/auth-service/auth.proto'),
|
|
5
8
|
};
|
|
6
|
-
//# sourceMappingURL=proto-paths.js.map
|
package/index.ts
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platfformx/proto-contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"types": "dist/
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"module": "
|
|
4
|
-
"
|
|
5
|
-
"target": "esnext",
|
|
6
|
-
"types": ["node"],
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"declaration": true,
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"target": "es2024",
|
|
9
5
|
"outDir": "./dist",
|
|
10
|
-
"rootDir": ".",
|
|
11
|
-
"strictNullChecks": false,
|
|
12
|
-
"noUncheckedIndexedAccess": true,
|
|
13
6
|
"strict": true,
|
|
14
|
-
"
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
10
|
"strictNullChecks": false,
|
|
16
|
-
"
|
|
11
|
+
"types": ["node"]
|
|
17
12
|
},
|
|
18
|
-
"include": ["src/**/*", "gen/**/*"]
|
|
13
|
+
"include": ["src/**/*", "gen/**/*", "index.ts"]
|
|
19
14
|
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
export declare const protobufPackage = "auth_service.v1";
|
|
3
|
-
export interface GetAccountRequest {
|
|
4
|
-
userId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface GetAccountResponse {
|
|
7
|
-
userId: string;
|
|
8
|
-
email?: string | undefined;
|
|
9
|
-
phone?: string | undefined;
|
|
10
|
-
username?: string | undefined;
|
|
11
|
-
isPhoneVerified: boolean;
|
|
12
|
-
isEmailVerified: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface InitEmailChangeRequest {
|
|
15
|
-
userId: string;
|
|
16
|
-
email: string;
|
|
17
|
-
}
|
|
18
|
-
export interface InitEmailChangeResponse {
|
|
19
|
-
verificationId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface InitPhoneChangeRequest {
|
|
22
|
-
userId: string;
|
|
23
|
-
phone: string;
|
|
24
|
-
}
|
|
25
|
-
export interface InitPhoneChangeResponse {
|
|
26
|
-
verificationId: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ConfirmEmailChangeRequest {
|
|
29
|
-
userId: string;
|
|
30
|
-
email: string;
|
|
31
|
-
verificationId: string;
|
|
32
|
-
code: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ConfirmEmailChangeResponse {
|
|
35
|
-
}
|
|
36
|
-
export interface ConfirmPhoneChangeRequest {
|
|
37
|
-
userId: string;
|
|
38
|
-
phone: string;
|
|
39
|
-
verificationId: string;
|
|
40
|
-
code: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ConfirmPhoneChangeResponse {
|
|
43
|
-
}
|
|
44
|
-
export interface PatchAccountRequest {
|
|
45
|
-
userId: string;
|
|
46
|
-
username?: string | undefined;
|
|
47
|
-
displayName?: string | undefined;
|
|
48
|
-
email?: string | undefined;
|
|
49
|
-
phone?: string | undefined;
|
|
50
|
-
}
|
|
51
|
-
export interface PatchAccountResponse {
|
|
52
|
-
userId: string;
|
|
53
|
-
username?: string | undefined;
|
|
54
|
-
displayName?: string | undefined;
|
|
55
|
-
phone?: string | undefined;
|
|
56
|
-
email?: string | undefined;
|
|
57
|
-
isPhoneVerified: boolean;
|
|
58
|
-
isEmailVerified: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface ChangePasswordRequest {
|
|
61
|
-
userId: string;
|
|
62
|
-
oldPassword: string;
|
|
63
|
-
newPasword: string;
|
|
64
|
-
}
|
|
65
|
-
export interface ChangePasswordResponse {
|
|
66
|
-
}
|
|
67
|
-
export interface LinkOAuthRequest {
|
|
68
|
-
userId: string;
|
|
69
|
-
oauthToken: string;
|
|
70
|
-
}
|
|
71
|
-
export interface LinkOAuthResponse {
|
|
72
|
-
}
|
|
73
|
-
export declare const AUTH_SERVICE_V1_PACKAGE_NAME = "auth_service.v1";
|
|
74
|
-
export interface AccountServiceClient {
|
|
75
|
-
getAccount(request: GetAccountRequest): Observable<GetAccountResponse>;
|
|
76
|
-
patchAccount(request: PatchAccountRequest): Observable<PatchAccountResponse>;
|
|
77
|
-
initEmailChange(request: InitEmailChangeRequest): Observable<InitEmailChangeResponse>;
|
|
78
|
-
initPhoneChange(request: InitPhoneChangeRequest): Observable<InitPhoneChangeResponse>;
|
|
79
|
-
confirmEmailChange(request: ConfirmEmailChangeRequest): Observable<ConfirmEmailChangeResponse>;
|
|
80
|
-
confirmPhoneChange(request: ConfirmPhoneChangeRequest): Observable<ConfirmPhoneChangeResponse>;
|
|
81
|
-
linkOAuth(request: LinkOAuthRequest): Observable<LinkOAuthResponse>;
|
|
82
|
-
}
|
|
83
|
-
export interface AccountServiceController {
|
|
84
|
-
getAccount(request: GetAccountRequest): Promise<GetAccountResponse> | Observable<GetAccountResponse> | GetAccountResponse;
|
|
85
|
-
patchAccount(request: PatchAccountRequest): Promise<PatchAccountResponse> | Observable<PatchAccountResponse> | PatchAccountResponse;
|
|
86
|
-
initEmailChange(request: InitEmailChangeRequest): Promise<InitEmailChangeResponse> | Observable<InitEmailChangeResponse> | InitEmailChangeResponse;
|
|
87
|
-
initPhoneChange(request: InitPhoneChangeRequest): Promise<InitPhoneChangeResponse> | Observable<InitPhoneChangeResponse> | InitPhoneChangeResponse;
|
|
88
|
-
confirmEmailChange(request: ConfirmEmailChangeRequest): Promise<ConfirmEmailChangeResponse> | Observable<ConfirmEmailChangeResponse> | ConfirmEmailChangeResponse;
|
|
89
|
-
confirmPhoneChange(request: ConfirmPhoneChangeRequest): Promise<ConfirmPhoneChangeResponse> | Observable<ConfirmPhoneChangeResponse> | ConfirmPhoneChangeResponse;
|
|
90
|
-
linkOAuth(request: LinkOAuthRequest): Promise<LinkOAuthResponse> | Observable<LinkOAuthResponse> | LinkOAuthResponse;
|
|
91
|
-
}
|
|
92
|
-
export declare function AccountServiceControllerMethods(): (constructor: Function) => void;
|
|
93
|
-
export declare const ACCOUNT_SERVICE_NAME = "AccountService";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../gen/ts/auth-service/account.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,qCAAqC;AAErC,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAwFjD,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AA8C9D,MAAM,UAAU,+BAA+B;IAC7C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa;YAC5B,YAAY;YACZ,cAAc;YACd,iBAAiB;YACjB,iBAAiB;YACjB,oBAAoB;YACpB,oBAAoB;YACpB,WAAW;SACZ,CAAC;QACF,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;YACjC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,UAAU,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC1F,CAAC;QACD,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,KAAK,MAAM,MAAM,IAAI,iBAAiB,EAAE,CAAC;YACvC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAChG,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
export declare const protobufPackage = "auth_service.v1";
|
|
3
|
-
/** Shared */
|
|
4
|
-
export declare enum OAuthProvider {
|
|
5
|
-
OAUTH_PROVIDER_UNSPECIFIED = 0,
|
|
6
|
-
OAUTH_PROVIDER_GOOGLE = 1,
|
|
7
|
-
OAUTH_PROVIDER_GITHUB = 2,
|
|
8
|
-
OAUTH_PROVIDER_TELEGRAM = 3,
|
|
9
|
-
UNRECOGNIZED = -1
|
|
10
|
-
}
|
|
11
|
-
/** Create account */
|
|
12
|
-
export interface CreateAccountRequest {
|
|
13
|
-
credentials: UserCredentials | undefined;
|
|
14
|
-
}
|
|
15
|
-
export interface CreateAccountResponse {
|
|
16
|
-
userId: string;
|
|
17
|
-
accessToken: string;
|
|
18
|
-
refreshToken: string;
|
|
19
|
-
user: UserProfile | undefined;
|
|
20
|
-
}
|
|
21
|
-
/** Authenticate credentials */
|
|
22
|
-
export interface AuthenticationRequest {
|
|
23
|
-
credentials: UserCredentials | undefined;
|
|
24
|
-
}
|
|
25
|
-
export interface AuthenticationResponse {
|
|
26
|
-
userId: string;
|
|
27
|
-
accessToken: string;
|
|
28
|
-
refreshToken: string;
|
|
29
|
-
user: UserProfile | undefined;
|
|
30
|
-
}
|
|
31
|
-
/** AuthenticateWithOAuth */
|
|
32
|
-
export interface OAuthSessionRequest {
|
|
33
|
-
provider: OAuthProvider;
|
|
34
|
-
token: string;
|
|
35
|
-
}
|
|
36
|
-
export interface OAuthSessionResponse {
|
|
37
|
-
userId: string;
|
|
38
|
-
accessToken: string;
|
|
39
|
-
refreshToken: string;
|
|
40
|
-
user: UserProfile | undefined;
|
|
41
|
-
isNewUser: boolean;
|
|
42
|
-
}
|
|
43
|
-
/** Tokens */
|
|
44
|
-
export interface TokenRefreshRequest {
|
|
45
|
-
refreshToken: string;
|
|
46
|
-
}
|
|
47
|
-
export interface TokenRefreshResponse {
|
|
48
|
-
accessToken: string;
|
|
49
|
-
refreshToken: string;
|
|
50
|
-
}
|
|
51
|
-
export interface UserCredentials {
|
|
52
|
-
email?: string | undefined;
|
|
53
|
-
phone?: string | undefined;
|
|
54
|
-
username?: string | undefined;
|
|
55
|
-
password: string;
|
|
56
|
-
}
|
|
57
|
-
export interface UserProfile {
|
|
58
|
-
email?: string | undefined;
|
|
59
|
-
phone?: string | undefined;
|
|
60
|
-
username?: string | undefined;
|
|
61
|
-
displayName?: string | undefined;
|
|
62
|
-
}
|
|
63
|
-
export declare const AUTH_SERVICE_V1_PACKAGE_NAME = "auth_service.v1";
|
|
64
|
-
export interface AuthServiceClient {
|
|
65
|
-
createAccount(request: CreateAccountRequest): Observable<CreateAccountResponse>;
|
|
66
|
-
authenticate(request: AuthenticationRequest): Observable<AuthenticationResponse>;
|
|
67
|
-
authenticateWithOAuth(request: OAuthSessionRequest): Observable<OAuthSessionResponse>;
|
|
68
|
-
refreshTokens(request: TokenRefreshRequest): Observable<TokenRefreshResponse>;
|
|
69
|
-
}
|
|
70
|
-
export interface AuthServiceController {
|
|
71
|
-
createAccount(request: CreateAccountRequest): Promise<CreateAccountResponse> | Observable<CreateAccountResponse> | CreateAccountResponse;
|
|
72
|
-
authenticate(request: AuthenticationRequest): Promise<AuthenticationResponse> | Observable<AuthenticationResponse> | AuthenticationResponse;
|
|
73
|
-
authenticateWithOAuth(request: OAuthSessionRequest): Promise<OAuthSessionResponse> | Observable<OAuthSessionResponse> | OAuthSessionResponse;
|
|
74
|
-
refreshTokens(request: TokenRefreshRequest): Promise<TokenRefreshResponse> | Observable<TokenRefreshResponse> | TokenRefreshResponse;
|
|
75
|
-
}
|
|
76
|
-
export declare function AuthServiceControllerMethods(): (constructor: Function) => void;
|
|
77
|
-
export declare const AUTH_SERVICE_NAME = "AuthService";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../gen/ts/auth-service/auth.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,kCAAkC;AAElC,oBAAoB;AACpB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEjD,aAAa;AACb,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,6FAA8B,CAAA;IAC9B,mFAAyB,CAAA;IACzB,mFAAyB,CAAA;IACzB,uFAA2B,CAAA;IAC3B,kEAAiB,CAAA;AACnB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AAgED,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AA8B9D,MAAM,UAAU,4BAA4B;IAC1C,OAAO,UAAU,WAAqB;QACpC,MAAM,WAAW,GAAa,CAAC,eAAe,EAAE,cAAc,EAAE,uBAAuB,EAAE,eAAe,CAAC,CAAC;QAC1G,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;YACjC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QACvF,CAAC;QACD,MAAM,iBAAiB,GAAa,EAAE,CAAC;QACvC,KAAK,MAAM,MAAM,IAAI,iBAAiB,EAAE,CAAC;YACvC,MAAM,UAAU,GAAQ,OAAO,CAAC,wBAAwB,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YACxF,gBAAgB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;QAC7F,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC"}
|
package/dist/src/index.d.ts
DELETED
package/dist/src/index.js
DELETED
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,IAAI,MAAM,6BAA6B,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './proto-paths';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/paths/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proto-paths.js","sourceRoot":"","sources":["../../../src/paths/proto-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,wCAAwC,CAAC;IAClE,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,qCAAqC,CAAC;CACpD,CAAC"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grpc.registry.js","sourceRoot":"","sources":["../../../src/registry/grpc.registry.ts"],"names":[],"mappings":""}
|
package/src/index.ts
DELETED