@togatherlabs/shared-protos 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/README.md CHANGED
@@ -4,7 +4,7 @@ This package contains a shared **TypeScript package** used across the ToGather e
4
4
 
5
5
  It provides reusable modules, types, and utilities that ensure **consistency**, **type safety**, and **faster development** across all ToGather backend and frontend services.
6
6
 
7
- ## 🚀 Overview
7
+ ## Overview
8
8
 
9
9
  This package is published to the **ToGather NPM organization** under:
10
10
 
@@ -14,7 +14,7 @@ This package is published to the **ToGather NPM organization** under:
14
14
 
15
15
  It is designed for internal use within our microservices architecture.
16
16
 
17
- ## 📦 Installation
17
+ ## Installation
18
18
 
19
19
  Install the package using **pnpm**:
20
20
 
@@ -22,13 +22,13 @@ Install the package using **pnpm**:
22
22
  pnpm add @togatherr/togather-shared-protos
23
23
  ```
24
24
 
25
- ## 🧠 Usage Example
25
+ ## Usage Example
26
26
 
27
27
  ```ts
28
28
  import { LoginRequestSchema } from "@togatherr/togather-shared-protos";
29
29
  ```
30
30
 
31
- ## 🧮 Versioning Rules
31
+ ## Versioning Rules
32
32
 
33
33
  We use **Semantic Versioning (SemVer)**:
34
34
 
@@ -0,0 +1,132 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file authservice/admin/v1/admin.proto.
5
+ */
6
+ export declare const file_authservice_admin_v1_admin: GenFile;
7
+ /**
8
+ * @generated from message authservice.admin.v1.SignupRequest
9
+ */
10
+ export type SignupRequest = Message<"authservice.admin.v1.SignupRequest"> & {
11
+ /**
12
+ * @generated from field: string email = 1;
13
+ */
14
+ email: string;
15
+ /**
16
+ * @generated from field: string password = 2;
17
+ */
18
+ password: string;
19
+ /**
20
+ * @generated from field: string fullname = 3;
21
+ */
22
+ fullname: string;
23
+ /**
24
+ * @generated from field: string dob = 4;
25
+ */
26
+ dob: string;
27
+ };
28
+ /**
29
+ * Describes the message authservice.admin.v1.SignupRequest.
30
+ * Use `create(SignupRequestSchema)` to create a new message.
31
+ */
32
+ export declare const SignupRequestSchema: GenMessage<SignupRequest>;
33
+ /**
34
+ * @generated from message authservice.admin.v1.SignupResponse
35
+ */
36
+ export type SignupResponse = Message<"authservice.admin.v1.SignupResponse"> & {
37
+ /**
38
+ * @generated from field: string message = 1;
39
+ */
40
+ message: string;
41
+ /**
42
+ * @generated from field: string email = 2;
43
+ */
44
+ email: string;
45
+ /**
46
+ * @generated from field: string fullname = 3;
47
+ */
48
+ fullname: string;
49
+ /**
50
+ * @generated from field: string access_token = 4;
51
+ */
52
+ accessToken: string;
53
+ /**
54
+ * @generated from field: string refresh_token = 5;
55
+ */
56
+ refreshToken: string;
57
+ };
58
+ /**
59
+ * Describes the message authservice.admin.v1.SignupResponse.
60
+ * Use `create(SignupResponseSchema)` to create a new message.
61
+ */
62
+ export declare const SignupResponseSchema: GenMessage<SignupResponse>;
63
+ /**
64
+ * @generated from message authservice.admin.v1.LoginRequest
65
+ */
66
+ export type LoginRequest = Message<"authservice.admin.v1.LoginRequest"> & {
67
+ /**
68
+ * @generated from field: string email = 1;
69
+ */
70
+ email: string;
71
+ /**
72
+ * @generated from field: string password = 2;
73
+ */
74
+ password: string;
75
+ };
76
+ /**
77
+ * Describes the message authservice.admin.v1.LoginRequest.
78
+ * Use `create(LoginRequestSchema)` to create a new message.
79
+ */
80
+ export declare const LoginRequestSchema: GenMessage<LoginRequest>;
81
+ /**
82
+ * @generated from message authservice.admin.v1.LoginResponse
83
+ */
84
+ export type LoginResponse = Message<"authservice.admin.v1.LoginResponse"> & {
85
+ /**
86
+ * @generated from field: string message = 1;
87
+ */
88
+ message: string;
89
+ /**
90
+ * @generated from field: string email = 2;
91
+ */
92
+ email: string;
93
+ /**
94
+ * @generated from field: string fullname = 3;
95
+ */
96
+ fullname: string;
97
+ /**
98
+ * @generated from field: string access_token = 4;
99
+ */
100
+ accessToken: string;
101
+ /**
102
+ * @generated from field: string refresh_token = 5;
103
+ */
104
+ refreshToken: string;
105
+ };
106
+ /**
107
+ * Describes the message authservice.admin.v1.LoginResponse.
108
+ * Use `create(LoginResponseSchema)` to create a new message.
109
+ */
110
+ export declare const LoginResponseSchema: GenMessage<LoginResponse>;
111
+ /**
112
+ * @generated from service authservice.admin.v1.AdminAuthService
113
+ */
114
+ export declare const AdminAuthService: GenService<{
115
+ /**
116
+ * @generated from rpc authservice.admin.v1.AdminAuthService.Signup
117
+ */
118
+ signup: {
119
+ methodKind: "unary";
120
+ input: typeof SignupRequestSchema;
121
+ output: typeof SignupResponseSchema;
122
+ };
123
+ /**
124
+ * @generated from rpc authservice.admin.v1.AdminAuthService.Login
125
+ */
126
+ login: {
127
+ methodKind: "unary";
128
+ input: typeof LoginRequestSchema;
129
+ output: typeof LoginResponseSchema;
130
+ };
131
+ }>;
132
+ //# sourceMappingURL=admin_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin_pb.d.ts","sourceRoot":"","sources":["../../../../src/authservice/admin/v1/admin_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,OAC0wB,CAAC;AAEzzB;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IAC1E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,CACT,CAAC;A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E;QACL,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,kBAAkB,CAAC;QACjC,MAAM,EAAE,OAAO,mBAAmB,CAAC;KACpC,CAAC;CACH,CACgD,CAAC"}
@@ -0,0 +1,33 @@
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
2
+ // @generated from file authservice/admin/v1/admin.proto (package authservice.admin.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file authservice/admin/v1/admin.proto.
7
+ */
8
+ export const file_authservice_admin_v1_admin = /*@__PURE__*/ fileDesc("CiBhdXRoc2VydmljZS9hZG1pbi92MS9hZG1pbi5wcm90bxIUYXV0aHNlcnZpY2UuYWRtaW4udjEiTwoNU2lnbnVwUmVxdWVzdBINCgVlbWFpbBgBIAEoCRIQCghwYXNzd29yZBgCIAEoCRIQCghmdWxsbmFtZRgDIAEoCRILCgNkb2IYBCABKAkibwoOU2lnbnVwUmVzcG9uc2USDwoHbWVzc2FnZRgBIAEoCRINCgVlbWFpbBgCIAEoCRIQCghmdWxsbmFtZRgDIAEoCRIUCgxhY2Nlc3NfdG9rZW4YBCABKAkSFQoNcmVmcmVzaF90b2tlbhgFIAEoCSIvCgxMb2dpblJlcXVlc3QSDQoFZW1haWwYASABKAkSEAoIcGFzc3dvcmQYAiABKAkibgoNTG9naW5SZXNwb25zZRIPCgdtZXNzYWdlGAEgASgJEg0KBWVtYWlsGAIgASgJEhAKCGZ1bGxuYW1lGAMgASgJEhQKDGFjY2Vzc190b2tlbhgEIAEoCRIVCg1yZWZyZXNoX3Rva2VuGAUgASgJMrkBChBBZG1pbkF1dGhTZXJ2aWNlElMKBlNpZ251cBIjLmF1dGhzZXJ2aWNlLmFkbWluLnYxLlNpZ251cFJlcXVlc3QaJC5hdXRoc2VydmljZS5hZG1pbi52MS5TaWdudXBSZXNwb25zZRJQCgVMb2dpbhIiLmF1dGhzZXJ2aWNlLmFkbWluLnYxLkxvZ2luUmVxdWVzdBojLmF1dGhzZXJ2aWNlLmFkbWluLnYxLkxvZ2luUmVzcG9uc2ViBnByb3RvMw");
9
+ /**
10
+ * Describes the message authservice.admin.v1.SignupRequest.
11
+ * Use `create(SignupRequestSchema)` to create a new message.
12
+ */
13
+ export const SignupRequestSchema = /*@__PURE__*/ messageDesc(file_authservice_admin_v1_admin, 0);
14
+ /**
15
+ * Describes the message authservice.admin.v1.SignupResponse.
16
+ * Use `create(SignupResponseSchema)` to create a new message.
17
+ */
18
+ export const SignupResponseSchema = /*@__PURE__*/ messageDesc(file_authservice_admin_v1_admin, 1);
19
+ /**
20
+ * Describes the message authservice.admin.v1.LoginRequest.
21
+ * Use `create(LoginRequestSchema)` to create a new message.
22
+ */
23
+ export const LoginRequestSchema = /*@__PURE__*/ messageDesc(file_authservice_admin_v1_admin, 2);
24
+ /**
25
+ * Describes the message authservice.admin.v1.LoginResponse.
26
+ * Use `create(LoginResponseSchema)` to create a new message.
27
+ */
28
+ export const LoginResponseSchema = /*@__PURE__*/ messageDesc(file_authservice_admin_v1_admin, 3);
29
+ /**
30
+ * @generated from service authservice.admin.v1.AdminAuthService
31
+ */
32
+ export const AdminAuthService = /*@__PURE__*/ serviceDesc(file_authservice_admin_v1_admin, 0);
33
+ //# sourceMappingURL=admin_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin_pb.js","sourceRoot":"","sources":["../../../../src/authservice/admin/v1/admin_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sGAAsG;AACtG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGlF;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAY,aAAa,CACnE,QAAQ,CAAC,4yBAA4yB,CAAC,CAAC;AA2BzzB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAgClD;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAiBlD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAgClD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAiBxB,aAAa,CAChB,WAAW,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './admin_pb.js';
@@ -0,0 +1 @@
1
+ export * from './admin_pb.js';
package/package.json CHANGED
@@ -1,20 +1,14 @@
1
1
  {
2
2
  "name": "@togatherlabs/shared-protos",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Generated TypeScript gRPC definitions for Togather shared protos",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1",
11
- "lint": "buf lint",
12
- "generate": "tsc && node generate-indexes.js"
13
- },
14
9
  "keywords": [],
15
10
  "author": "",
16
11
  "license": "ISC",
17
- "packageManager": "pnpm@10.7.1",
18
12
  "peerDependencies": {
19
13
  "@bufbuild/protobuf": "^2.9.0",
20
14
  "@connectrpc/connect": "^2.1.0"
@@ -24,10 +18,18 @@
24
18
  "./authservice/admin/v1": {
25
19
  "types": "./dist/authservice/admin/v1/index.d.ts",
26
20
  "import": "./dist/authservice/admin/v1/index.js",
21
+ "require": "./dist/authservice/admin/v1/index.js",
27
22
  "default": "./dist/authservice/admin/v1/index.js"
28
23
  }
29
24
  },
30
25
  "devDependencies": {
31
26
  "typescript": "^5.9.3"
27
+ },
28
+ "scripts": {
29
+ "test": "echo \"Error: no test specified\" && exit 1",
30
+ "lint": "buf lint",
31
+ "generate": "npm install && tsc && node generate-indexes.js",
32
+ "package:patch": "pnpm version patch",
33
+ "package:publish": "pnpm publish --access public --no-git-checks"
32
34
  }
33
35
  }