@paakd/api 0.0.1 → 0.0.2

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 (201) hide show
  1. package/buf/validate/validate_pb.ts +5001 -0
  2. package/dist/gen/buf/validate/validate_pb.d.ts +4634 -0
  3. package/dist/gen/buf/validate/validate_pb.d.ts.map +1 -0
  4. package/dist/gen/buf/validate/validate_pb.js +414 -0
  5. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts +268 -0
  6. package/dist/gen/src/proto/auth/v1/entities/auth_pb.d.ts.map +1 -0
  7. package/dist/gen/src/proto/auth/v1/entities/auth_pb.js +120 -0
  8. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts +235 -0
  9. package/dist/gen/src/proto/auth/v1/entities/policy_pb.d.ts.map +1 -0
  10. package/dist/gen/src/proto/auth/v1/entities/policy_pb.js +98 -0
  11. package/dist/gen/src/proto/auth/v1/service_pb.d.ts +117 -0
  12. package/dist/gen/src/proto/auth/v1/service_pb.d.ts.map +1 -0
  13. package/dist/gen/src/proto/auth/v1/service_pb.js +22 -0
  14. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts +371 -0
  15. package/dist/gen/src/proto/customers/v1/entities/address_pb.d.ts.map +1 -0
  16. package/dist/gen/src/proto/customers/v1/entities/address_pb.js +84 -0
  17. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts +189 -0
  18. package/dist/gen/src/proto/customers/v1/entities/profile_pb.d.ts.map +1 -0
  19. package/dist/gen/src/proto/customers/v1/entities/profile_pb.js +70 -0
  20. package/dist/gen/src/proto/customers/v1/service_pb.d.ts +85 -0
  21. package/dist/gen/src/proto/customers/v1/service_pb.d.ts.map +1 -0
  22. package/dist/gen/src/proto/customers/v1/service_pb.js +22 -0
  23. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts +234 -0
  24. package/dist/gen/src/proto/products/v1/entities/category_pb.d.ts.map +1 -0
  25. package/dist/gen/src/proto/products/v1/entities/category_pb.js +84 -0
  26. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts +159 -0
  27. package/dist/gen/src/proto/products/v1/entities/collection_pb.d.ts.map +1 -0
  28. package/dist/gen/src/proto/products/v1/entities/collection_pb.js +70 -0
  29. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts +146 -0
  30. package/dist/gen/src/proto/products/v1/entities/product/create_pb.d.ts.map +1 -0
  31. package/dist/gen/src/proto/products/v1/entities/product/create_pb.js +32 -0
  32. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts +50 -0
  33. package/dist/gen/src/proto/products/v1/entities/product/option_pb.d.ts.map +1 -0
  34. package/dist/gen/src/proto/products/v1/entities/product/option_pb.js +32 -0
  35. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts +1042 -0
  36. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.d.ts.map +1 -0
  37. package/dist/gen/src/proto/products/v1/entities/product/shared_pb.js +258 -0
  38. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts +236 -0
  39. package/dist/gen/src/proto/products/v1/entities/product/update_pb.d.ts.map +1 -0
  40. package/dist/gen/src/proto/products/v1/entities/product/update_pb.js +88 -0
  41. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts +175 -0
  42. package/dist/gen/src/proto/products/v1/entities/tag_pb.d.ts.map +1 -0
  43. package/dist/gen/src/proto/products/v1/entities/tag_pb.js +84 -0
  44. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts +477 -0
  45. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.d.ts.map +1 -0
  46. package/dist/gen/src/proto/products/v1/entities/taxonomy_pb.js +235 -0
  47. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts +158 -0
  48. package/dist/gen/src/proto/products/v1/entities/type_pb.d.ts.map +1 -0
  49. package/dist/gen/src/proto/products/v1/entities/type_pb.js +70 -0
  50. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts +489 -0
  51. package/dist/gen/src/proto/products/v1/entities/variant_pb.d.ts.map +1 -0
  52. package/dist/gen/src/proto/products/v1/entities/variant_pb.js +147 -0
  53. package/dist/gen/src/proto/products/v1/service_pb.d.ts +316 -0
  54. package/dist/gen/src/proto/products/v1/service_pb.d.ts.map +1 -0
  55. package/dist/gen/src/proto/products/v1/service_pb.js +36 -0
  56. package/dist/src/address.d.ts +53 -0
  57. package/dist/src/address.d.ts.map +1 -0
  58. package/dist/src/address.js +233 -0
  59. package/dist/src/address.spec.d.ts +2 -0
  60. package/dist/src/address.spec.d.ts.map +1 -0
  61. package/dist/src/address.spec.js +488 -0
  62. package/dist/src/auth.d.ts +27 -0
  63. package/dist/src/auth.d.ts.map +1 -0
  64. package/dist/src/auth.js +155 -0
  65. package/dist/src/auth.spec.d.ts +2 -0
  66. package/dist/src/auth.spec.d.ts.map +1 -0
  67. package/dist/src/auth.spec.js +582 -0
  68. package/dist/src/compressor/brotli.d.ts +3 -0
  69. package/dist/src/compressor/brotli.d.ts.map +1 -0
  70. package/dist/src/compressor/brotli.js +30 -0
  71. package/dist/src/index.d.ts +6 -0
  72. package/dist/src/index.d.ts.map +1 -0
  73. package/dist/src/interceptors.d.ts +16 -0
  74. package/dist/src/interceptors.d.ts.map +1 -0
  75. package/dist/src/interceptors.js +156 -0
  76. package/dist/src/interceptors.spec.d.ts +2 -0
  77. package/dist/src/interceptors.spec.d.ts.map +1 -0
  78. package/dist/src/interceptors.spec.js +1063 -0
  79. package/dist/src/policies.d.ts +217 -0
  80. package/dist/src/policies.d.ts.map +1 -0
  81. package/dist/src/policies.js +322 -0
  82. package/dist/src/policies.spec.d.ts +2 -0
  83. package/dist/src/policies.spec.d.ts.map +1 -0
  84. package/dist/src/policies.spec.js +463 -0
  85. package/dist/src/products.d.ts +39 -0
  86. package/dist/src/products.d.ts.map +1 -0
  87. package/dist/src/products.js +95 -0
  88. package/dist/src/products.spec.d.ts +2 -0
  89. package/dist/src/products.spec.d.ts.map +1 -0
  90. package/dist/src/products.spec.js +519 -0
  91. package/dist/src/profile.d.ts +62 -0
  92. package/dist/src/profile.d.ts.map +1 -0
  93. package/dist/src/profile.js +151 -0
  94. package/dist/src/profile.spec.d.ts +2 -0
  95. package/dist/src/profile.spec.d.ts.map +1 -0
  96. package/dist/src/profile.spec.js +475 -0
  97. package/dist/src/registration.d.ts +60 -0
  98. package/dist/src/registration.d.ts.map +1 -0
  99. package/dist/src/registration.js +147 -0
  100. package/dist/src/test-utils.d.ts +87 -0
  101. package/dist/src/test-utils.d.ts.map +1 -0
  102. package/dist/src/test-utils.js +132 -0
  103. package/gen/buf/validate/validate_pb.ts +4799 -0
  104. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +454 -0
  105. package/gen/src/proto/auth/v1/entities/auth.pb.go +818 -0
  106. package/gen/src/proto/auth/v1/entities/auth_pb.ts +348 -0
  107. package/gen/src/proto/auth/v1/entities/policy.pb.go +727 -0
  108. package/gen/src/proto/auth/v1/entities/policy_pb.ts +306 -0
  109. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +70 -0
  110. package/gen/src/proto/auth/v1/service.pb.go +119 -0
  111. package/gen/src/proto/auth/v1/service_pb.ts +152 -0
  112. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +358 -0
  113. package/gen/src/proto/customers/v1/entities/address.pb.go +1073 -0
  114. package/gen/src/proto/customers/v1/entities/address_pb.ts +478 -0
  115. package/gen/src/proto/customers/v1/entities/profile.pb.go +633 -0
  116. package/gen/src/proto/customers/v1/entities/profile_pb.ts +252 -0
  117. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +50 -0
  118. package/gen/src/proto/customers/v1/service.pb.go +110 -0
  119. package/gen/src/proto/customers/v1/service_pb.ts +121 -0
  120. package/gen/src/proto/files/v1/entities/file.pb.go +669 -0
  121. package/gen/src/proto/files/v1/entities/file_pb.ts +265 -0
  122. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +200 -0
  123. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +25 -0
  124. package/gen/src/proto/files/v1/service.pb.go +85 -0
  125. package/gen/src/proto/files/v1/service_pb.ts +65 -0
  126. package/gen/src/proto/products/v1/entities/category.pb.go +744 -0
  127. package/gen/src/proto/products/v1/entities/category_pb.ts +318 -0
  128. package/gen/src/proto/products/v1/entities/collection.pb.go +528 -0
  129. package/gen/src/proto/products/v1/entities/collection_pb.ts +214 -0
  130. package/gen/src/proto/products/v1/entities/product/create.pb.go +453 -0
  131. package/gen/src/proto/products/v1/entities/product/create_pb.ts +199 -0
  132. package/gen/src/proto/products/v1/entities/product/option.pb.go +206 -0
  133. package/gen/src/proto/products/v1/entities/product/option_pb.ts +74 -0
  134. package/gen/src/proto/products/v1/entities/product/shared.pb.go +2890 -0
  135. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +1317 -0
  136. package/gen/src/proto/products/v1/entities/product/update.pb.go +794 -0
  137. package/gen/src/proto/products/v1/entities/product/update_pb.ts +325 -0
  138. package/gen/src/proto/products/v1/entities/tag.pb.go +610 -0
  139. package/gen/src/proto/products/v1/entities/tag_pb.ts +233 -0
  140. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +1352 -0
  141. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +606 -0
  142. package/gen/src/proto/products/v1/entities/type.pb.go +553 -0
  143. package/gen/src/proto/products/v1/entities/type_pb.ts +215 -0
  144. package/gen/src/proto/products/v1/entities/variant.pb.go +1474 -0
  145. package/gen/src/proto/products/v1/entities/variant_pb.ts +629 -0
  146. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +1195 -0
  147. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +199 -0
  148. package/gen/src/proto/products/v1/service.pb.go +250 -0
  149. package/gen/src/proto/products/v1/service_pb.ts +429 -0
  150. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +1229 -0
  151. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +511 -0
  152. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +289 -0
  153. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +42 -0
  154. package/gen/src/proto/promotions/v1/service.pb.go +98 -0
  155. package/gen/src/proto/promotions/v1/service_pb.ts +95 -0
  156. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +1499 -0
  157. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +655 -0
  158. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +41 -0
  159. package/gen/src/proto/stocknodes/v1/service.pb.go +98 -0
  160. package/gen/src/proto/stocknodes/v1/service_pb.ts +95 -0
  161. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +297 -0
  162. package/package.json +5 -2
  163. package/src/address.spec.ts +0 -662
  164. package/src/address.ts +0 -300
  165. package/src/auth.spec.ts +0 -771
  166. package/src/auth.ts +0 -168
  167. package/src/compressor/brotli.ts +0 -26
  168. package/src/index.ts +0 -5
  169. package/src/interceptors.spec.ts +0 -1343
  170. package/src/interceptors.ts +0 -224
  171. package/src/policies.spec.ts +0 -595
  172. package/src/policies.ts +0 -431
  173. package/src/products.spec.ts +0 -710
  174. package/src/products.ts +0 -112
  175. package/src/profile.spec.ts +0 -626
  176. package/src/profile.ts +0 -169
  177. package/src/proto/auth/v1/entities/auth.proto +0 -140
  178. package/src/proto/auth/v1/entities/policy.proto +0 -57
  179. package/src/proto/auth/v1/service.proto +0 -26
  180. package/src/proto/customers/v1/entities/address.proto +0 -101
  181. package/src/proto/customers/v1/entities/profile.proto +0 -118
  182. package/src/proto/customers/v1/service.proto +0 -36
  183. package/src/proto/files/v1/entities/file.proto +0 -62
  184. package/src/proto/files/v1/service.proto +0 -19
  185. package/src/proto/products/v1/entities/category.proto +0 -98
  186. package/src/proto/products/v1/entities/collection.proto +0 -72
  187. package/src/proto/products/v1/entities/product/create.proto +0 -41
  188. package/src/proto/products/v1/entities/product/option.proto +0 -17
  189. package/src/proto/products/v1/entities/product/shared.proto +0 -255
  190. package/src/proto/products/v1/entities/product/update.proto +0 -66
  191. package/src/proto/products/v1/entities/tag.proto +0 -73
  192. package/src/proto/products/v1/entities/taxonomy.proto +0 -146
  193. package/src/proto/products/v1/entities/type.proto +0 -98
  194. package/src/proto/products/v1/entities/variant.proto +0 -127
  195. package/src/proto/products/v1/service.proto +0 -78
  196. package/src/proto/promotions/v1/entities/campaign.proto +0 -145
  197. package/src/proto/promotions/v1/service.proto +0 -17
  198. package/src/proto/stocknodes/v1/entities/stocknode.proto +0 -167
  199. package/src/proto/stocknodes/v1/service.proto +0 -21
  200. package/src/registration.ts +0 -170
  201. package/src/test-utils.ts +0 -176
@@ -0,0 +1,348 @@
1
+ // @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
2
+ // @generated from file src/proto/auth/v1/entities/auth.proto (syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2'
6
+ import { enumDesc, fileDesc, messageDesc } from '@bufbuild/protobuf/codegenv2'
7
+ import { file_buf_validate_validate } from '../../../../../buf/validate/validate_pb'
8
+ import type { Timestamp } from '@bufbuild/protobuf/wkt'
9
+ import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt'
10
+ import type { Message } from '@bufbuild/protobuf'
11
+
12
+ /**
13
+ * Describes the file src/proto/auth/v1/entities/auth.proto.
14
+ */
15
+ export const file_src_proto_auth_v1_entities_auth: GenFile =
16
+ /*@__PURE__*/
17
+ fileDesc(
18
+ 'CiVzcmMvcHJvdG8vYXV0aC92MS9lbnRpdGllcy9hdXRoLnByb3RvIkMKDExvZ2luUmVxdWVzdBIWCgVlbWFpbBgBIAEoCUIHukgEcgJgARIbCghwYXNzd29yZBgCIAEoCUIJukgGcgQQCBhkIoUBCgxSZWZyZXNoVG9rZW4SEgoKZXhwaXJlc19hdBgBIAEoCRINCgV0b2tlbhgCIAEoCRINCgVlbWFpbBgDIAEoCRITCgtjdXN0b21lcl9pZBgEI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ICcnIDogdHJ1ZRqHAQovZnVsbF9hY2NvdW50X290cF9yZXF1aXJlZF9pZl9wYXNzd29yZF9ub3RfZW1wdHkSJ09UUCBpcyByZXF1aXJlZCBpZiBwYXNzd29yZCBpcyBwcm92aWRlZBordGhpcy5wYXNzd29yZCAhPSAnJyA/IHRoaXMub3RwICE9ICcnIDogdHJ1ZUILCglfcGFzc3dvcmRCBgoEX290cCISChBSZWdpc3RlclJlc3BvbnNlQkRCCUF1dGhQcm90b1ABWjVwYWFrZC5jb20vcGFja2FnZXMvYXBpL2dlbi9zcmMvcHJvdG8vYXV0aC92MS9lbnRpdGllc2IGcHJvdG8z',
19
+ [file_buf_validate_validate, file_google_protobuf_timestamp]
20
+ )
21
+
22
+ /**
23
+ * @generated from message LoginRequest
24
+ */
25
+ export type LoginRequest = Message<'LoginRequest'> & {
26
+ /**
27
+ * @generated from field: string email = 1;
28
+ */
29
+ email: string
30
+
31
+ /**
32
+ * @generated from field: string password = 2;
33
+ */
34
+ password: string
35
+ }
36
+
37
+ /**
38
+ * Describes the message LoginRequest.
39
+ * Use `create(LoginRequestSchema)` to create a new message.
40
+ */
41
+ export const LoginRequestSchema: GenMessage<LoginRequest> =
42
+ /*@__PURE__*/
43
+ messageDesc(file_src_proto_auth_v1_entities_auth, 0)
44
+
45
+ /**
46
+ * @generated from message RefreshToken
47
+ */
48
+ export type RefreshToken = Message<'RefreshToken'> & {
49
+ /**
50
+ * Duration in seconds
51
+ *
52
+ * @generated from field: string expires_at = 1;
53
+ */
54
+ expiresAt: string
55
+
56
+ /**
57
+ * Refresh token
58
+ *
59
+ * @generated from field: string token = 2;
60
+ */
61
+ token: string
62
+
63
+ /**
64
+ * User's email
65
+ *
66
+ * @generated from field: string email = 3;
67
+ */
68
+ email: string
69
+
70
+ /**
71
+ * Customer ID associated with the token
72
+ *
73
+ * @generated from field: string customer_id = 4;
74
+ */
75
+ customerId: string
76
+
77
+ /**
78
+ * Timestamp when the token was issued
79
+ *
80
+ * @generated from field: google.protobuf.Timestamp started_at = 5;
81
+ */
82
+ startedAt?: Timestamp
83
+ }
84
+
85
+ /**
86
+ * Describes the message RefreshToken.
87
+ * Use `create(RefreshTokenSchema)` to create a new message.
88
+ */
89
+ export const RefreshTokenSchema: GenMessage<RefreshToken> =
90
+ /*@__PURE__*/
91
+ messageDesc(file_src_proto_auth_v1_entities_auth, 1)
92
+
93
+ /**
94
+ * @generated from message AccessToken
95
+ */
96
+ export type AccessToken = Message<'AccessToken'> & {
97
+ /**
98
+ * Access token
99
+ *
100
+ * @generated from field: string token = 1;
101
+ */
102
+ token: string
103
+
104
+ /**
105
+ * Duration in seconds
106
+ *
107
+ * @generated from field: string expires_at = 2;
108
+ */
109
+ expiresAt: string
110
+ }
111
+
112
+ /**
113
+ * Describes the message AccessToken.
114
+ * Use `create(AccessTokenSchema)` to create a new message.
115
+ */
116
+ export const AccessTokenSchema: GenMessage<AccessToken> =
117
+ /*@__PURE__*/
118
+ messageDesc(file_src_proto_auth_v1_entities_auth, 2)
119
+
120
+ /**
121
+ * @generated from message LoginResponse
122
+ */
123
+ export type LoginResponse = Message<'LoginResponse'> & {
124
+ /**
125
+ * @generated from field: RefreshToken refresh_token = 1;
126
+ */
127
+ refreshToken?: RefreshToken
128
+
129
+ /**
130
+ * @generated from field: AccessToken access_token = 2;
131
+ */
132
+ accessToken?: AccessToken
133
+
134
+ /**
135
+ * @generated from field: string email = 3;
136
+ */
137
+ email: string
138
+ }
139
+
140
+ /**
141
+ * Describes the message LoginResponse.
142
+ * Use `create(LoginResponseSchema)` to create a new message.
143
+ */
144
+ export const LoginResponseSchema: GenMessage<LoginResponse> =
145
+ /*@__PURE__*/
146
+ messageDesc(file_src_proto_auth_v1_entities_auth, 3)
147
+
148
+ /**
149
+ * @generated from message TokenRefreshRequest
150
+ */
151
+ export type TokenRefreshRequest = Message<'TokenRefreshRequest'> & {
152
+ /**
153
+ * @generated from field: string refresh_token = 1;
154
+ */
155
+ refreshToken: string
156
+ }
157
+
158
+ /**
159
+ * Describes the message TokenRefreshRequest.
160
+ * Use `create(TokenRefreshRequestSchema)` to create a new message.
161
+ */
162
+ export const TokenRefreshRequestSchema: GenMessage<TokenRefreshRequest> =
163
+ /*@__PURE__*/
164
+ messageDesc(file_src_proto_auth_v1_entities_auth, 4)
165
+
166
+ /**
167
+ * @generated from message VerifyEmailRequest
168
+ */
169
+ export type VerifyEmailRequest = Message<'VerifyEmailRequest'> & {
170
+ /**
171
+ * @generated from field: string email = 1;
172
+ */
173
+ email: string
174
+
175
+ /**
176
+ * @generated from field: VerifyEmailRequest.EmailLocale locale = 2;
177
+ */
178
+ locale: VerifyEmailRequest_EmailLocale
179
+
180
+ /**
181
+ * @generated from field: string idempotency_key = 3;
182
+ */
183
+ idempotencyKey: string
184
+ }
185
+
186
+ /**
187
+ * Describes the message VerifyEmailRequest.
188
+ * Use `create(VerifyEmailRequestSchema)` to create a new message.
189
+ */
190
+ export const VerifyEmailRequestSchema: GenMessage<VerifyEmailRequest> =
191
+ /*@__PURE__*/
192
+ messageDesc(file_src_proto_auth_v1_entities_auth, 5)
193
+
194
+ /**
195
+ * @generated from enum VerifyEmailRequest.EmailLocale
196
+ */
197
+ export enum VerifyEmailRequest_EmailLocale {
198
+ /**
199
+ * @generated from enum value: EN_GB = 0;
200
+ */
201
+ EN_GB = 0,
202
+
203
+ /**
204
+ * @generated from enum value: EN_US = 1;
205
+ */
206
+ EN_US = 1,
207
+
208
+ /**
209
+ * @generated from enum value: NL_NL = 2;
210
+ */
211
+ NL_NL = 2,
212
+
213
+ /**
214
+ * @generated from enum value: DE_DE = 3;
215
+ */
216
+ DE_DE = 3,
217
+ }
218
+
219
+ /**
220
+ * Describes the enum VerifyEmailRequest.EmailLocale.
221
+ */
222
+ export const VerifyEmailRequest_EmailLocaleSchema: GenEnum<VerifyEmailRequest_EmailLocale> =
223
+ /*@__PURE__*/
224
+ enumDesc(file_src_proto_auth_v1_entities_auth, 5, 0)
225
+
226
+ /**
227
+ * @generated from message VerifyEmailResponse
228
+ */
229
+ export type VerifyEmailResponse = Message<'VerifyEmailResponse'> & {
230
+ /**
231
+ * @generated from field: string idempotency_key = 1;
232
+ */
233
+ idempotencyKey: string
234
+ }
235
+
236
+ /**
237
+ * Describes the message VerifyEmailResponse.
238
+ * Use `create(VerifyEmailResponseSchema)` to create a new message.
239
+ */
240
+ export const VerifyEmailResponseSchema: GenMessage<VerifyEmailResponse> =
241
+ /*@__PURE__*/
242
+ messageDesc(file_src_proto_auth_v1_entities_auth, 6)
243
+
244
+ /**
245
+ * @generated from message ValidateOTPRequest
246
+ */
247
+ export type ValidateOTPRequest = Message<'ValidateOTPRequest'> & {
248
+ /**
249
+ * @generated from field: string email = 1;
250
+ */
251
+ email: string
252
+
253
+ /**
254
+ * @generated from field: string otp = 2;
255
+ */
256
+ otp: string
257
+ }
258
+
259
+ /**
260
+ * Describes the message ValidateOTPRequest.
261
+ * Use `create(ValidateOTPRequestSchema)` to create a new message.
262
+ */
263
+ export const ValidateOTPRequestSchema: GenMessage<ValidateOTPRequest> =
264
+ /*@__PURE__*/
265
+ messageDesc(file_src_proto_auth_v1_entities_auth, 7)
266
+
267
+ /**
268
+ * @generated from message ValidateOTPResponse
269
+ */
270
+ export type ValidateOTPResponse = Message<'ValidateOTPResponse'> & {
271
+ /**
272
+ * Indicates if the OTP is valid
273
+ *
274
+ * @generated from field: bool valid = 1;
275
+ */
276
+ valid: boolean
277
+
278
+ /**
279
+ * Additional message, e.g., "OTP is valid" or "OTP is invalid"
280
+ *
281
+ * @generated from field: string message = 2;
282
+ */
283
+ message: string
284
+ }
285
+
286
+ /**
287
+ * Describes the message ValidateOTPResponse.
288
+ * Use `create(ValidateOTPResponseSchema)` to create a new message.
289
+ */
290
+ export const ValidateOTPResponseSchema: GenMessage<ValidateOTPResponse> =
291
+ /*@__PURE__*/
292
+ messageDesc(file_src_proto_auth_v1_entities_auth, 8)
293
+
294
+ /**
295
+ * @generated from message RegisterRequest
296
+ */
297
+ export type RegisterRequest = Message<'RegisterRequest'> & {
298
+ /**
299
+ * @generated from field: string email = 1;
300
+ */
301
+ email: string
302
+
303
+ /**
304
+ * @generated from field: optional string password = 2;
305
+ */
306
+ password?: string
307
+
308
+ /**
309
+ * @generated from field: string first_name = 3;
310
+ */
311
+ firstName: string
312
+
313
+ /**
314
+ * @generated from field: string other_names = 4;
315
+ */
316
+ otherNames: string
317
+
318
+ /**
319
+ * @generated from field: string last_name = 5;
320
+ */
321
+ lastName: string
322
+
323
+ /**
324
+ * @generated from field: optional string otp = 6;
325
+ */
326
+ otp?: string
327
+ }
328
+
329
+ /**
330
+ * Describes the message RegisterRequest.
331
+ * Use `create(RegisterRequestSchema)` to create a new message.
332
+ */
333
+ export const RegisterRequestSchema: GenMessage<RegisterRequest> =
334
+ /*@__PURE__*/
335
+ messageDesc(file_src_proto_auth_v1_entities_auth, 9)
336
+
337
+ /**
338
+ * @generated from message RegisterResponse
339
+ */
340
+ export type RegisterResponse = Message<'RegisterResponse'> & {}
341
+
342
+ /**
343
+ * Describes the message RegisterResponse.
344
+ * Use `create(RegisterResponseSchema)` to create a new message.
345
+ */
346
+ export const RegisterResponseSchema: GenMessage<RegisterResponse> =
347
+ /*@__PURE__*/
348
+ messageDesc(file_src_proto_auth_v1_entities_auth, 10)