@atls/auth-rpc 0.0.1

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/buf.gen.yaml +18 -0
  3. package/buf.yaml +10 -0
  4. package/dist/config.d.ts +4 -0
  5. package/dist/config.js +6 -0
  6. package/dist/gen/abstractions/index.d.ts +1 -0
  7. package/dist/gen/abstractions/index.js +1 -0
  8. package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
  9. package/dist/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.js +62 -0
  10. package/dist/gen/connect/index.d.ts +2 -0
  11. package/dist/gen/connect/index.js +2 -0
  12. package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.d.ts +340 -0
  13. package/dist/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.js +723 -0
  14. package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.d.ts +118 -0
  15. package/dist/gen/connect/team/firstfood/auth/v1/auth.service_connect.js +118 -0
  16. package/dist/gen/interfaces/index.d.ts +1 -0
  17. package/dist/gen/interfaces/index.js +1 -0
  18. package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.d.ts +108 -0
  19. package/dist/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.js +6 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1 -0
  22. package/package.json +33 -0
  23. package/src/config.ts +16 -0
  24. package/src/gen/abstractions/index.ts +1 -0
  25. package/src/gen/abstractions/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
  26. package/src/gen/connect/index.ts +2 -0
  27. package/src/gen/connect/team/firstfood/auth/v1/auth.payloads_pb.ts +1523 -0
  28. package/src/gen/connect/team/firstfood/auth/v1/auth.service_connect.ts +170 -0
  29. package/src/gen/interfaces/index.ts +1 -0
  30. package/src/gen/interfaces/team/firstfood/auth/v1/auth.payloads_pb.ts +399 -0
  31. package/src/index.ts +1 -0
  32. package/team/firstfood/auth/v1/auth.payloads.proto +152 -0
  33. package/team/firstfood/auth/v1/auth.service.proto +27 -0
@@ -0,0 +1,118 @@
1
+ import { MethodKind } from '@bufbuild/protobuf';
2
+ import { ConfirmLoginCodeRequest } from './auth.payloads_pb.js';
3
+ import { ConfirmLoginCodeResponse } from './auth.payloads_pb.js';
4
+ import { ConfirmRecoveryCodeRequest } from './auth.payloads_pb.js';
5
+ import { ConfirmRecoveryCodeResponse } from './auth.payloads_pb.js';
6
+ import { ConfirmVerificationCodeRequest } from './auth.payloads_pb.js';
7
+ import { ConfirmVerificationCodeResponse } from './auth.payloads_pb.js';
8
+ import { DeleteUserAccountRequest } from './auth.payloads_pb.js';
9
+ import { DeleteUserAccountResponse } from './auth.payloads_pb.js';
10
+ import { GetUserAccountRequest } from './auth.payloads_pb.js';
11
+ import { GetUserAccountResponse } from './auth.payloads_pb.js';
12
+ import { LoginUserByEmailRequest } from './auth.payloads_pb.js';
13
+ import { LoginUserByEmailResponse } from './auth.payloads_pb.js';
14
+ import { LoginUserByPhoneRequest } from './auth.payloads_pb.js';
15
+ import { LoginUserByPhoneResponse } from './auth.payloads_pb.js';
16
+ import { LoginUserByProviderRequest } from './auth.payloads_pb.js';
17
+ import { LoginUserByProviderResponse } from './auth.payloads_pb.js';
18
+ import { RegisterUserByEmailRequest } from './auth.payloads_pb.js';
19
+ import { RegisterUserByEmailResponse } from './auth.payloads_pb.js';
20
+ import { RegisterUserByPhoneRequest } from './auth.payloads_pb.js';
21
+ import { RegisterUserByPhoneResponse } from './auth.payloads_pb.js';
22
+ import { SendRecoveryCodeRequest } from './auth.payloads_pb.js';
23
+ import { SendRecoveryCodeResponse } from './auth.payloads_pb.js';
24
+ import { SendVerificationCodeRequest } from './auth.payloads_pb.js';
25
+ import { SendVerificationCodeResponse } from './auth.payloads_pb.js';
26
+ import { UpdateUserEmailRequest } from './auth.payloads_pb.js';
27
+ import { UpdateUserEmailResponse } from './auth.payloads_pb.js';
28
+ import { UpdateUserPasswordRequest } from './auth.payloads_pb.js';
29
+ import { UpdateUserPasswordResponse } from './auth.payloads_pb.js';
30
+ export declare const AuthService: {
31
+ readonly typeName: "team.firstfood.auth.v1.AuthService";
32
+ readonly methods: {
33
+ readonly loginUserByEmail: {
34
+ readonly name: "LoginUserByEmail";
35
+ readonly I: typeof LoginUserByEmailRequest;
36
+ readonly O: typeof LoginUserByEmailResponse;
37
+ readonly kind: MethodKind.Unary;
38
+ };
39
+ readonly loginUserByPhone: {
40
+ readonly name: "LoginUserByPhone";
41
+ readonly I: typeof LoginUserByPhoneRequest;
42
+ readonly O: typeof LoginUserByPhoneResponse;
43
+ readonly kind: MethodKind.Unary;
44
+ };
45
+ readonly confirmLoginCode: {
46
+ readonly name: "ConfirmLoginCode";
47
+ readonly I: typeof ConfirmLoginCodeRequest;
48
+ readonly O: typeof ConfirmLoginCodeResponse;
49
+ readonly kind: MethodKind.Unary;
50
+ };
51
+ readonly registerUserByEmail: {
52
+ readonly name: "RegisterUserByEmail";
53
+ readonly I: typeof RegisterUserByEmailRequest;
54
+ readonly O: typeof RegisterUserByEmailResponse;
55
+ readonly kind: MethodKind.Unary;
56
+ };
57
+ readonly registerUserByPhone: {
58
+ readonly name: "RegisterUserByPhone";
59
+ readonly I: typeof RegisterUserByPhoneRequest;
60
+ readonly O: typeof RegisterUserByPhoneResponse;
61
+ readonly kind: MethodKind.Unary;
62
+ };
63
+ readonly sendRecoveryCode: {
64
+ readonly name: "SendRecoveryCode";
65
+ readonly I: typeof SendRecoveryCodeRequest;
66
+ readonly O: typeof SendRecoveryCodeResponse;
67
+ readonly kind: MethodKind.Unary;
68
+ };
69
+ readonly confirmRecoveryCode: {
70
+ readonly name: "ConfirmRecoveryCode";
71
+ readonly I: typeof ConfirmRecoveryCodeRequest;
72
+ readonly O: typeof ConfirmRecoveryCodeResponse;
73
+ readonly kind: MethodKind.Unary;
74
+ };
75
+ readonly sendVerificationCode: {
76
+ readonly name: "SendVerificationCode";
77
+ readonly I: typeof SendVerificationCodeRequest;
78
+ readonly O: typeof SendVerificationCodeResponse;
79
+ readonly kind: MethodKind.Unary;
80
+ };
81
+ readonly confirmVerificationCode: {
82
+ readonly name: "ConfirmVerificationCode";
83
+ readonly I: typeof ConfirmVerificationCodeRequest;
84
+ readonly O: typeof ConfirmVerificationCodeResponse;
85
+ readonly kind: MethodKind.Unary;
86
+ };
87
+ readonly updateUserEmail: {
88
+ readonly name: "UpdateUserEmail";
89
+ readonly I: typeof UpdateUserEmailRequest;
90
+ readonly O: typeof UpdateUserEmailResponse;
91
+ readonly kind: MethodKind.Unary;
92
+ };
93
+ readonly updateUserPassword: {
94
+ readonly name: "UpdateUserPassword";
95
+ readonly I: typeof UpdateUserPasswordRequest;
96
+ readonly O: typeof UpdateUserPasswordResponse;
97
+ readonly kind: MethodKind.Unary;
98
+ };
99
+ readonly deleteUserAccount: {
100
+ readonly name: "DeleteUserAccount";
101
+ readonly I: typeof DeleteUserAccountRequest;
102
+ readonly O: typeof DeleteUserAccountResponse;
103
+ readonly kind: MethodKind.Unary;
104
+ };
105
+ readonly getUserAccount: {
106
+ readonly name: "GetUserAccount";
107
+ readonly I: typeof GetUserAccountRequest;
108
+ readonly O: typeof GetUserAccountResponse;
109
+ readonly kind: MethodKind.Unary;
110
+ };
111
+ readonly loginUserByProvider: {
112
+ readonly name: "LoginUserByProvider";
113
+ readonly I: typeof LoginUserByProviderRequest;
114
+ readonly O: typeof LoginUserByProviderResponse;
115
+ readonly kind: MethodKind.Unary;
116
+ };
117
+ };
118
+ };
@@ -0,0 +1,118 @@
1
+ import { MethodKind } from '@bufbuild/protobuf';
2
+ import { ConfirmLoginCodeRequest } from './auth.payloads_pb.js';
3
+ import { ConfirmLoginCodeResponse } from './auth.payloads_pb.js';
4
+ import { ConfirmRecoveryCodeRequest } from './auth.payloads_pb.js';
5
+ import { ConfirmRecoveryCodeResponse } from './auth.payloads_pb.js';
6
+ import { ConfirmVerificationCodeRequest } from './auth.payloads_pb.js';
7
+ import { ConfirmVerificationCodeResponse } from './auth.payloads_pb.js';
8
+ import { DeleteUserAccountRequest } from './auth.payloads_pb.js';
9
+ import { DeleteUserAccountResponse } from './auth.payloads_pb.js';
10
+ import { GetUserAccountRequest } from './auth.payloads_pb.js';
11
+ import { GetUserAccountResponse } from './auth.payloads_pb.js';
12
+ import { LoginUserByEmailRequest } from './auth.payloads_pb.js';
13
+ import { LoginUserByEmailResponse } from './auth.payloads_pb.js';
14
+ import { LoginUserByPhoneRequest } from './auth.payloads_pb.js';
15
+ import { LoginUserByPhoneResponse } from './auth.payloads_pb.js';
16
+ import { LoginUserByProviderRequest } from './auth.payloads_pb.js';
17
+ import { LoginUserByProviderResponse } from './auth.payloads_pb.js';
18
+ import { RegisterUserByEmailRequest } from './auth.payloads_pb.js';
19
+ import { RegisterUserByEmailResponse } from './auth.payloads_pb.js';
20
+ import { RegisterUserByPhoneRequest } from './auth.payloads_pb.js';
21
+ import { RegisterUserByPhoneResponse } from './auth.payloads_pb.js';
22
+ import { SendRecoveryCodeRequest } from './auth.payloads_pb.js';
23
+ import { SendRecoveryCodeResponse } from './auth.payloads_pb.js';
24
+ import { SendVerificationCodeRequest } from './auth.payloads_pb.js';
25
+ import { SendVerificationCodeResponse } from './auth.payloads_pb.js';
26
+ import { UpdateUserEmailRequest } from './auth.payloads_pb.js';
27
+ import { UpdateUserEmailResponse } from './auth.payloads_pb.js';
28
+ import { UpdateUserPasswordRequest } from './auth.payloads_pb.js';
29
+ import { UpdateUserPasswordResponse } from './auth.payloads_pb.js';
30
+ export const AuthService = {
31
+ typeName: 'team.firstfood.auth.v1.AuthService',
32
+ methods: {
33
+ loginUserByEmail: {
34
+ name: 'LoginUserByEmail',
35
+ I: LoginUserByEmailRequest,
36
+ O: LoginUserByEmailResponse,
37
+ kind: MethodKind.Unary,
38
+ },
39
+ loginUserByPhone: {
40
+ name: 'LoginUserByPhone',
41
+ I: LoginUserByPhoneRequest,
42
+ O: LoginUserByPhoneResponse,
43
+ kind: MethodKind.Unary,
44
+ },
45
+ confirmLoginCode: {
46
+ name: 'ConfirmLoginCode',
47
+ I: ConfirmLoginCodeRequest,
48
+ O: ConfirmLoginCodeResponse,
49
+ kind: MethodKind.Unary,
50
+ },
51
+ registerUserByEmail: {
52
+ name: 'RegisterUserByEmail',
53
+ I: RegisterUserByEmailRequest,
54
+ O: RegisterUserByEmailResponse,
55
+ kind: MethodKind.Unary,
56
+ },
57
+ registerUserByPhone: {
58
+ name: 'RegisterUserByPhone',
59
+ I: RegisterUserByPhoneRequest,
60
+ O: RegisterUserByPhoneResponse,
61
+ kind: MethodKind.Unary,
62
+ },
63
+ sendRecoveryCode: {
64
+ name: 'SendRecoveryCode',
65
+ I: SendRecoveryCodeRequest,
66
+ O: SendRecoveryCodeResponse,
67
+ kind: MethodKind.Unary,
68
+ },
69
+ confirmRecoveryCode: {
70
+ name: 'ConfirmRecoveryCode',
71
+ I: ConfirmRecoveryCodeRequest,
72
+ O: ConfirmRecoveryCodeResponse,
73
+ kind: MethodKind.Unary,
74
+ },
75
+ sendVerificationCode: {
76
+ name: 'SendVerificationCode',
77
+ I: SendVerificationCodeRequest,
78
+ O: SendVerificationCodeResponse,
79
+ kind: MethodKind.Unary,
80
+ },
81
+ confirmVerificationCode: {
82
+ name: 'ConfirmVerificationCode',
83
+ I: ConfirmVerificationCodeRequest,
84
+ O: ConfirmVerificationCodeResponse,
85
+ kind: MethodKind.Unary,
86
+ },
87
+ updateUserEmail: {
88
+ name: 'UpdateUserEmail',
89
+ I: UpdateUserEmailRequest,
90
+ O: UpdateUserEmailResponse,
91
+ kind: MethodKind.Unary,
92
+ },
93
+ updateUserPassword: {
94
+ name: 'UpdateUserPassword',
95
+ I: UpdateUserPasswordRequest,
96
+ O: UpdateUserPasswordResponse,
97
+ kind: MethodKind.Unary,
98
+ },
99
+ deleteUserAccount: {
100
+ name: 'DeleteUserAccount',
101
+ I: DeleteUserAccountRequest,
102
+ O: DeleteUserAccountResponse,
103
+ kind: MethodKind.Unary,
104
+ },
105
+ getUserAccount: {
106
+ name: 'GetUserAccount',
107
+ I: GetUserAccountRequest,
108
+ O: GetUserAccountResponse,
109
+ kind: MethodKind.Unary,
110
+ },
111
+ loginUserByProvider: {
112
+ name: 'LoginUserByProvider',
113
+ I: LoginUserByProviderRequest,
114
+ O: LoginUserByProviderResponse,
115
+ kind: MethodKind.Unary,
116
+ },
117
+ },
118
+ };
@@ -0,0 +1 @@
1
+ export type * from './team/firstfood/auth/v1/auth.payloads_pb.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,108 @@
1
+ export declare enum ProviderType {
2
+ UNSPECIFIED = 0,
3
+ GOOGLE = 1,
4
+ APPLE = 2
5
+ }
6
+ export interface LoginUserByEmailRequest {
7
+ email: string;
8
+ password: string;
9
+ authProcessId?: string;
10
+ }
11
+ export interface LoginUserByEmailResponse {
12
+ sessionToken: string;
13
+ }
14
+ export interface LoginUserByPhoneRequest {
15
+ phone: string;
16
+ }
17
+ export interface LoginUserByPhoneResponse {
18
+ authProcessId: string;
19
+ }
20
+ export interface ConfirmLoginCodeRequest {
21
+ authProcessId: string;
22
+ code: string;
23
+ identifier: string;
24
+ }
25
+ export interface ConfirmLoginCodeResponse {
26
+ sessionToken: string;
27
+ }
28
+ export interface RegisterUserByEmailRequest {
29
+ email: string;
30
+ password: string;
31
+ }
32
+ export interface RegisterUserByEmailResponse {
33
+ authProcessId: string;
34
+ sessionToken: string;
35
+ accountId: string;
36
+ }
37
+ export interface RegisterUserByPhoneRequest {
38
+ phone: string;
39
+ }
40
+ export interface RegisterUserByPhoneResponse {
41
+ authProcessId: string;
42
+ sessionToken: string;
43
+ accountId: string;
44
+ }
45
+ export interface SendRecoveryCodeRequest {
46
+ email: string;
47
+ }
48
+ export interface SendRecoveryCodeResponse {
49
+ authProcessId: string;
50
+ }
51
+ export interface ConfirmRecoveryCodeRequest {
52
+ authProcessId: string;
53
+ code: string;
54
+ }
55
+ export interface ConfirmRecoveryCodeResponse {
56
+ sessionToken: string;
57
+ }
58
+ export interface SendVerificationCodeRequest {
59
+ email: string;
60
+ }
61
+ export interface SendVerificationCodeResponse {
62
+ authProcessId: string;
63
+ }
64
+ export interface ConfirmVerificationCodeRequest {
65
+ authProcessId: string;
66
+ code: string;
67
+ }
68
+ export interface ConfirmVerificationCodeResponse {
69
+ success: boolean;
70
+ }
71
+ export interface UpdateUserEmailRequest {
72
+ email: string;
73
+ sessionToken: string;
74
+ }
75
+ export interface UpdateUserEmailResponse {
76
+ authProcessId: string;
77
+ }
78
+ export interface UpdateUserPasswordRequest {
79
+ password: string;
80
+ sessionToken: string;
81
+ }
82
+ export interface UpdateUserPasswordResponse {
83
+ success: boolean;
84
+ }
85
+ export interface DeleteUserAccountRequest {
86
+ accountId: string;
87
+ }
88
+ export interface DeleteUserAccountResponse {
89
+ success: boolean;
90
+ }
91
+ export interface GetUserAccountRequest {
92
+ sessionToken: string;
93
+ }
94
+ export interface GetUserAccountResponse {
95
+ id: string;
96
+ email?: string;
97
+ phone?: string;
98
+ }
99
+ export interface LoginUserByProviderRequest {
100
+ provider: ProviderType;
101
+ idToken: string;
102
+ nonce: string;
103
+ }
104
+ export interface LoginUserByProviderResponse {
105
+ sessionToken?: string;
106
+ accountId?: string;
107
+ authProcessId?: string;
108
+ }
@@ -0,0 +1,6 @@
1
+ export var ProviderType;
2
+ (function (ProviderType) {
3
+ ProviderType[ProviderType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
4
+ ProviderType[ProviderType["GOOGLE"] = 1] = "GOOGLE";
5
+ ProviderType[ProviderType["APPLE"] = 2] = "APPLE";
6
+ })(ProviderType || (ProviderType = {}));
@@ -0,0 +1 @@
1
+ export * from './config.js';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./config.js";
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@atls/auth-rpc",
3
+ "version": "0.0.1",
4
+ "license": "BSD-3-Clause",
5
+ "type": "module",
6
+ "exports": {
7
+ "./abstractions": "./src/gen/abstractions/index.ts",
8
+ "./connect": "./src/gen/connect/index.ts",
9
+ "./interfaces": "./src/gen/interfaces/index.ts",
10
+ ".": "./src/index.ts"
11
+ },
12
+ "scripts": {
13
+ "buf:generate": "buf generate",
14
+ "buf:lint": "buf lint proto",
15
+ "buf:update": "buf mod update proto",
16
+ "build": "yarn library build",
17
+ "prepack": "yarn run build",
18
+ "postpack": "rm -rf dist"
19
+ },
20
+ "devDependencies": {
21
+ "@atls/protoc-gen-abstractions": "0.0.3",
22
+ "@atls/protoc-gen-config": "0.0.2",
23
+ "@atls/protoc-gen-interfaces": "0.0.7",
24
+ "@bufbuild/buf": "1.50.1",
25
+ "@bufbuild/protobuf": "1.10.0",
26
+ "@bufbuild/protoc-gen-es": "1.10.0",
27
+ "@connectrpc/protoc-gen-connect-es": "1.6.1",
28
+ "@types/node": "22.10.2"
29
+ },
30
+ "peerDependencies": {
31
+ "@bufbuild/protobuf": "*"
32
+ }
33
+ }
package/src/config.ts ADDED
@@ -0,0 +1,16 @@
1
+ // @generated by protoc-gen-config 0.0.1 with parameter "target=ts"
2
+ // @generated from file team/firstfood/auth/v1/auth.service.proto (package team.firstfood.auth.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import path from 'node:path'
7
+
8
+ const dirname = path.dirname(new URL(import.meta.url).pathname)
9
+
10
+ export const packageName = 'team.firstfood.auth.v1'
11
+
12
+ export const serviceName = 'AuthService'
13
+
14
+ export const servicePath = path.join(dirname, '../team/firstfood/auth/v1/auth.service.proto')
15
+
16
+ export const includeDirs = [path.join(dirname, '../')]
@@ -0,0 +1 @@
1
+ export * from './team/firstfood/auth/v1/auth.payloads_pb.js'