@paakd/api 0.0.3 → 0.0.4

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 (61) hide show
  1. package/package.json +7 -9
  2. package/buf/validate/validate_pb.ts +0 -5001
  3. package/gen/buf/validate/validate_pb.ts +0 -4799
  4. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
  5. package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
  6. package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
  7. package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
  8. package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
  9. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
  10. package/gen/src/proto/auth/v1/service.pb.go +0 -119
  11. package/gen/src/proto/auth/v1/service_pb.ts +0 -152
  12. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
  13. package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
  14. package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
  15. package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
  16. package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
  17. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
  18. package/gen/src/proto/customers/v1/service.pb.go +0 -110
  19. package/gen/src/proto/customers/v1/service_pb.ts +0 -121
  20. package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
  21. package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
  22. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
  23. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
  24. package/gen/src/proto/files/v1/service.pb.go +0 -85
  25. package/gen/src/proto/files/v1/service_pb.ts +0 -65
  26. package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
  27. package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
  28. package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
  29. package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
  30. package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
  31. package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
  32. package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
  33. package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
  34. package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
  35. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
  36. package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
  37. package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
  38. package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
  39. package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
  40. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
  41. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
  42. package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
  43. package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
  44. package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
  45. package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
  46. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
  47. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
  48. package/gen/src/proto/products/v1/service.pb.go +0 -250
  49. package/gen/src/proto/products/v1/service_pb.ts +0 -429
  50. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
  51. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
  52. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
  53. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
  54. package/gen/src/proto/promotions/v1/service.pb.go +0 -98
  55. package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
  56. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
  57. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
  58. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
  59. package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
  60. package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
  61. package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
@@ -1,818 +0,0 @@
1
- // Code generated by protoc-gen-go. DO NOT EDIT.
2
- // versions:
3
- // protoc-gen-go v1.36.6
4
- // protoc (unknown)
5
- // source: src/proto/auth/v1/entities/auth.proto
6
-
7
- package entities
8
-
9
- import (
10
- _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
11
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
14
- reflect "reflect"
15
- sync "sync"
16
- unsafe "unsafe"
17
- )
18
-
19
- const (
20
- // Verify that this generated code is sufficiently up-to-date.
21
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22
- // Verify that runtime/protoimpl is sufficiently up-to-date.
23
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24
- )
25
-
26
- type VerifyEmailRequest_EmailLocale int32
27
-
28
- const (
29
- VerifyEmailRequest_EN_GB VerifyEmailRequest_EmailLocale = 0
30
- VerifyEmailRequest_EN_US VerifyEmailRequest_EmailLocale = 1
31
- VerifyEmailRequest_NL_NL VerifyEmailRequest_EmailLocale = 2
32
- VerifyEmailRequest_DE_DE VerifyEmailRequest_EmailLocale = 3
33
- )
34
-
35
- // Enum value maps for VerifyEmailRequest_EmailLocale.
36
- var (
37
- VerifyEmailRequest_EmailLocale_name = map[int32]string{
38
- 0: "EN_GB",
39
- 1: "EN_US",
40
- 2: "NL_NL",
41
- 3: "DE_DE",
42
- }
43
- VerifyEmailRequest_EmailLocale_value = map[string]int32{
44
- "EN_GB": 0,
45
- "EN_US": 1,
46
- "NL_NL": 2,
47
- "DE_DE": 3,
48
- }
49
- )
50
-
51
- func (x VerifyEmailRequest_EmailLocale) Enum() *VerifyEmailRequest_EmailLocale {
52
- p := new(VerifyEmailRequest_EmailLocale)
53
- *p = x
54
- return p
55
- }
56
-
57
- func (x VerifyEmailRequest_EmailLocale) String() string {
58
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
59
- }
60
-
61
- func (VerifyEmailRequest_EmailLocale) Descriptor() protoreflect.EnumDescriptor {
62
- return file_src_proto_auth_v1_entities_auth_proto_enumTypes[0].Descriptor()
63
- }
64
-
65
- func (VerifyEmailRequest_EmailLocale) Type() protoreflect.EnumType {
66
- return &file_src_proto_auth_v1_entities_auth_proto_enumTypes[0]
67
- }
68
-
69
- func (x VerifyEmailRequest_EmailLocale) Number() protoreflect.EnumNumber {
70
- return protoreflect.EnumNumber(x)
71
- }
72
-
73
- // Deprecated: Use VerifyEmailRequest_EmailLocale.Descriptor instead.
74
- func (VerifyEmailRequest_EmailLocale) EnumDescriptor() ([]byte, []int) {
75
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{5, 0}
76
- }
77
-
78
- type LoginRequest struct {
79
- state protoimpl.MessageState `protogen:"open.v1"`
80
- Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
81
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
82
- unknownFields protoimpl.UnknownFields
83
- sizeCache protoimpl.SizeCache
84
- }
85
-
86
- func (x *LoginRequest) Reset() {
87
- *x = LoginRequest{}
88
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[0]
89
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90
- ms.StoreMessageInfo(mi)
91
- }
92
-
93
- func (x *LoginRequest) String() string {
94
- return protoimpl.X.MessageStringOf(x)
95
- }
96
-
97
- func (*LoginRequest) ProtoMessage() {}
98
-
99
- func (x *LoginRequest) ProtoReflect() protoreflect.Message {
100
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[0]
101
- if x != nil {
102
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
103
- if ms.LoadMessageInfo() == nil {
104
- ms.StoreMessageInfo(mi)
105
- }
106
- return ms
107
- }
108
- return mi.MessageOf(x)
109
- }
110
-
111
- // Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
112
- func (*LoginRequest) Descriptor() ([]byte, []int) {
113
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{0}
114
- }
115
-
116
- func (x *LoginRequest) GetEmail() string {
117
- if x != nil {
118
- return x.Email
119
- }
120
- return ""
121
- }
122
-
123
- func (x *LoginRequest) GetPassword() string {
124
- if x != nil {
125
- return x.Password
126
- }
127
- return ""
128
- }
129
-
130
- type RefreshToken struct {
131
- state protoimpl.MessageState `protogen:"open.v1"`
132
- ExpiresAt string `protobuf:"bytes,1,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // Duration in seconds
133
- Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // Refresh token
134
- Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // User's email
135
- CustomerId string `protobuf:"bytes,4,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // Customer ID associated with the token
136
- StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` // Timestamp when the token was issued
137
- unknownFields protoimpl.UnknownFields
138
- sizeCache protoimpl.SizeCache
139
- }
140
-
141
- func (x *RefreshToken) Reset() {
142
- *x = RefreshToken{}
143
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[1]
144
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
145
- ms.StoreMessageInfo(mi)
146
- }
147
-
148
- func (x *RefreshToken) String() string {
149
- return protoimpl.X.MessageStringOf(x)
150
- }
151
-
152
- func (*RefreshToken) ProtoMessage() {}
153
-
154
- func (x *RefreshToken) ProtoReflect() protoreflect.Message {
155
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[1]
156
- if x != nil {
157
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
158
- if ms.LoadMessageInfo() == nil {
159
- ms.StoreMessageInfo(mi)
160
- }
161
- return ms
162
- }
163
- return mi.MessageOf(x)
164
- }
165
-
166
- // Deprecated: Use RefreshToken.ProtoReflect.Descriptor instead.
167
- func (*RefreshToken) Descriptor() ([]byte, []int) {
168
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{1}
169
- }
170
-
171
- func (x *RefreshToken) GetExpiresAt() string {
172
- if x != nil {
173
- return x.ExpiresAt
174
- }
175
- return ""
176
- }
177
-
178
- func (x *RefreshToken) GetToken() string {
179
- if x != nil {
180
- return x.Token
181
- }
182
- return ""
183
- }
184
-
185
- func (x *RefreshToken) GetEmail() string {
186
- if x != nil {
187
- return x.Email
188
- }
189
- return ""
190
- }
191
-
192
- func (x *RefreshToken) GetCustomerId() string {
193
- if x != nil {
194
- return x.CustomerId
195
- }
196
- return ""
197
- }
198
-
199
- func (x *RefreshToken) GetStartedAt() *timestamppb.Timestamp {
200
- if x != nil {
201
- return x.StartedAt
202
- }
203
- return nil
204
- }
205
-
206
- type AccessToken struct {
207
- state protoimpl.MessageState `protogen:"open.v1"`
208
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Access token
209
- ExpiresAt string `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // Duration in seconds
210
- unknownFields protoimpl.UnknownFields
211
- sizeCache protoimpl.SizeCache
212
- }
213
-
214
- func (x *AccessToken) Reset() {
215
- *x = AccessToken{}
216
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[2]
217
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
218
- ms.StoreMessageInfo(mi)
219
- }
220
-
221
- func (x *AccessToken) String() string {
222
- return protoimpl.X.MessageStringOf(x)
223
- }
224
-
225
- func (*AccessToken) ProtoMessage() {}
226
-
227
- func (x *AccessToken) ProtoReflect() protoreflect.Message {
228
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[2]
229
- if x != nil {
230
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
231
- if ms.LoadMessageInfo() == nil {
232
- ms.StoreMessageInfo(mi)
233
- }
234
- return ms
235
- }
236
- return mi.MessageOf(x)
237
- }
238
-
239
- // Deprecated: Use AccessToken.ProtoReflect.Descriptor instead.
240
- func (*AccessToken) Descriptor() ([]byte, []int) {
241
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{2}
242
- }
243
-
244
- func (x *AccessToken) GetToken() string {
245
- if x != nil {
246
- return x.Token
247
- }
248
- return ""
249
- }
250
-
251
- func (x *AccessToken) GetExpiresAt() string {
252
- if x != nil {
253
- return x.ExpiresAt
254
- }
255
- return ""
256
- }
257
-
258
- type LoginResponse struct {
259
- state protoimpl.MessageState `protogen:"open.v1"`
260
- RefreshToken *RefreshToken `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
261
- AccessToken *AccessToken `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
262
- Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
263
- unknownFields protoimpl.UnknownFields
264
- sizeCache protoimpl.SizeCache
265
- }
266
-
267
- func (x *LoginResponse) Reset() {
268
- *x = LoginResponse{}
269
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[3]
270
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
271
- ms.StoreMessageInfo(mi)
272
- }
273
-
274
- func (x *LoginResponse) String() string {
275
- return protoimpl.X.MessageStringOf(x)
276
- }
277
-
278
- func (*LoginResponse) ProtoMessage() {}
279
-
280
- func (x *LoginResponse) ProtoReflect() protoreflect.Message {
281
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[3]
282
- if x != nil {
283
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
284
- if ms.LoadMessageInfo() == nil {
285
- ms.StoreMessageInfo(mi)
286
- }
287
- return ms
288
- }
289
- return mi.MessageOf(x)
290
- }
291
-
292
- // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
293
- func (*LoginResponse) Descriptor() ([]byte, []int) {
294
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{3}
295
- }
296
-
297
- func (x *LoginResponse) GetRefreshToken() *RefreshToken {
298
- if x != nil {
299
- return x.RefreshToken
300
- }
301
- return nil
302
- }
303
-
304
- func (x *LoginResponse) GetAccessToken() *AccessToken {
305
- if x != nil {
306
- return x.AccessToken
307
- }
308
- return nil
309
- }
310
-
311
- func (x *LoginResponse) GetEmail() string {
312
- if x != nil {
313
- return x.Email
314
- }
315
- return ""
316
- }
317
-
318
- type TokenRefreshRequest struct {
319
- state protoimpl.MessageState `protogen:"open.v1"`
320
- RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
321
- unknownFields protoimpl.UnknownFields
322
- sizeCache protoimpl.SizeCache
323
- }
324
-
325
- func (x *TokenRefreshRequest) Reset() {
326
- *x = TokenRefreshRequest{}
327
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[4]
328
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
329
- ms.StoreMessageInfo(mi)
330
- }
331
-
332
- func (x *TokenRefreshRequest) String() string {
333
- return protoimpl.X.MessageStringOf(x)
334
- }
335
-
336
- func (*TokenRefreshRequest) ProtoMessage() {}
337
-
338
- func (x *TokenRefreshRequest) ProtoReflect() protoreflect.Message {
339
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[4]
340
- if x != nil {
341
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
342
- if ms.LoadMessageInfo() == nil {
343
- ms.StoreMessageInfo(mi)
344
- }
345
- return ms
346
- }
347
- return mi.MessageOf(x)
348
- }
349
-
350
- // Deprecated: Use TokenRefreshRequest.ProtoReflect.Descriptor instead.
351
- func (*TokenRefreshRequest) Descriptor() ([]byte, []int) {
352
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{4}
353
- }
354
-
355
- func (x *TokenRefreshRequest) GetRefreshToken() string {
356
- if x != nil {
357
- return x.RefreshToken
358
- }
359
- return ""
360
- }
361
-
362
- type VerifyEmailRequest struct {
363
- state protoimpl.MessageState `protogen:"open.v1"`
364
- Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
365
- Locale VerifyEmailRequest_EmailLocale `protobuf:"varint,2,opt,name=locale,proto3,enum=VerifyEmailRequest_EmailLocale" json:"locale,omitempty"`
366
- IdempotencyKey string `protobuf:"bytes,3,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
367
- unknownFields protoimpl.UnknownFields
368
- sizeCache protoimpl.SizeCache
369
- }
370
-
371
- func (x *VerifyEmailRequest) Reset() {
372
- *x = VerifyEmailRequest{}
373
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[5]
374
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
375
- ms.StoreMessageInfo(mi)
376
- }
377
-
378
- func (x *VerifyEmailRequest) String() string {
379
- return protoimpl.X.MessageStringOf(x)
380
- }
381
-
382
- func (*VerifyEmailRequest) ProtoMessage() {}
383
-
384
- func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message {
385
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[5]
386
- if x != nil {
387
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
388
- if ms.LoadMessageInfo() == nil {
389
- ms.StoreMessageInfo(mi)
390
- }
391
- return ms
392
- }
393
- return mi.MessageOf(x)
394
- }
395
-
396
- // Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.
397
- func (*VerifyEmailRequest) Descriptor() ([]byte, []int) {
398
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{5}
399
- }
400
-
401
- func (x *VerifyEmailRequest) GetEmail() string {
402
- if x != nil {
403
- return x.Email
404
- }
405
- return ""
406
- }
407
-
408
- func (x *VerifyEmailRequest) GetLocale() VerifyEmailRequest_EmailLocale {
409
- if x != nil {
410
- return x.Locale
411
- }
412
- return VerifyEmailRequest_EN_GB
413
- }
414
-
415
- func (x *VerifyEmailRequest) GetIdempotencyKey() string {
416
- if x != nil {
417
- return x.IdempotencyKey
418
- }
419
- return ""
420
- }
421
-
422
- type VerifyEmailResponse struct {
423
- state protoimpl.MessageState `protogen:"open.v1"`
424
- IdempotencyKey string `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
425
- unknownFields protoimpl.UnknownFields
426
- sizeCache protoimpl.SizeCache
427
- }
428
-
429
- func (x *VerifyEmailResponse) Reset() {
430
- *x = VerifyEmailResponse{}
431
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[6]
432
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
433
- ms.StoreMessageInfo(mi)
434
- }
435
-
436
- func (x *VerifyEmailResponse) String() string {
437
- return protoimpl.X.MessageStringOf(x)
438
- }
439
-
440
- func (*VerifyEmailResponse) ProtoMessage() {}
441
-
442
- func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message {
443
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[6]
444
- if x != nil {
445
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
446
- if ms.LoadMessageInfo() == nil {
447
- ms.StoreMessageInfo(mi)
448
- }
449
- return ms
450
- }
451
- return mi.MessageOf(x)
452
- }
453
-
454
- // Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.
455
- func (*VerifyEmailResponse) Descriptor() ([]byte, []int) {
456
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{6}
457
- }
458
-
459
- func (x *VerifyEmailResponse) GetIdempotencyKey() string {
460
- if x != nil {
461
- return x.IdempotencyKey
462
- }
463
- return ""
464
- }
465
-
466
- type ValidateOTPRequest struct {
467
- state protoimpl.MessageState `protogen:"open.v1"`
468
- Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
469
- Otp string `protobuf:"bytes,2,opt,name=otp,proto3" json:"otp,omitempty"`
470
- unknownFields protoimpl.UnknownFields
471
- sizeCache protoimpl.SizeCache
472
- }
473
-
474
- func (x *ValidateOTPRequest) Reset() {
475
- *x = ValidateOTPRequest{}
476
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[7]
477
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
478
- ms.StoreMessageInfo(mi)
479
- }
480
-
481
- func (x *ValidateOTPRequest) String() string {
482
- return protoimpl.X.MessageStringOf(x)
483
- }
484
-
485
- func (*ValidateOTPRequest) ProtoMessage() {}
486
-
487
- func (x *ValidateOTPRequest) ProtoReflect() protoreflect.Message {
488
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[7]
489
- if x != nil {
490
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
491
- if ms.LoadMessageInfo() == nil {
492
- ms.StoreMessageInfo(mi)
493
- }
494
- return ms
495
- }
496
- return mi.MessageOf(x)
497
- }
498
-
499
- // Deprecated: Use ValidateOTPRequest.ProtoReflect.Descriptor instead.
500
- func (*ValidateOTPRequest) Descriptor() ([]byte, []int) {
501
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{7}
502
- }
503
-
504
- func (x *ValidateOTPRequest) GetEmail() string {
505
- if x != nil {
506
- return x.Email
507
- }
508
- return ""
509
- }
510
-
511
- func (x *ValidateOTPRequest) GetOtp() string {
512
- if x != nil {
513
- return x.Otp
514
- }
515
- return ""
516
- }
517
-
518
- type ValidateOTPResponse struct {
519
- state protoimpl.MessageState `protogen:"open.v1"`
520
- Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // Indicates if the OTP is valid
521
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Additional message, e.g., "OTP is valid" or "OTP is invalid"
522
- unknownFields protoimpl.UnknownFields
523
- sizeCache protoimpl.SizeCache
524
- }
525
-
526
- func (x *ValidateOTPResponse) Reset() {
527
- *x = ValidateOTPResponse{}
528
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[8]
529
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
530
- ms.StoreMessageInfo(mi)
531
- }
532
-
533
- func (x *ValidateOTPResponse) String() string {
534
- return protoimpl.X.MessageStringOf(x)
535
- }
536
-
537
- func (*ValidateOTPResponse) ProtoMessage() {}
538
-
539
- func (x *ValidateOTPResponse) ProtoReflect() protoreflect.Message {
540
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[8]
541
- if x != nil {
542
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
543
- if ms.LoadMessageInfo() == nil {
544
- ms.StoreMessageInfo(mi)
545
- }
546
- return ms
547
- }
548
- return mi.MessageOf(x)
549
- }
550
-
551
- // Deprecated: Use ValidateOTPResponse.ProtoReflect.Descriptor instead.
552
- func (*ValidateOTPResponse) Descriptor() ([]byte, []int) {
553
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{8}
554
- }
555
-
556
- func (x *ValidateOTPResponse) GetValid() bool {
557
- if x != nil {
558
- return x.Valid
559
- }
560
- return false
561
- }
562
-
563
- func (x *ValidateOTPResponse) GetMessage() string {
564
- if x != nil {
565
- return x.Message
566
- }
567
- return ""
568
- }
569
-
570
- type RegisterRequest struct {
571
- state protoimpl.MessageState `protogen:"open.v1"`
572
- Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
573
- Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
574
- FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
575
- OtherNames string `protobuf:"bytes,4,opt,name=other_names,json=otherNames,proto3" json:"other_names,omitempty"`
576
- LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
577
- Otp *string `protobuf:"bytes,6,opt,name=otp,proto3,oneof" json:"otp,omitempty"`
578
- unknownFields protoimpl.UnknownFields
579
- sizeCache protoimpl.SizeCache
580
- }
581
-
582
- func (x *RegisterRequest) Reset() {
583
- *x = RegisterRequest{}
584
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[9]
585
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
586
- ms.StoreMessageInfo(mi)
587
- }
588
-
589
- func (x *RegisterRequest) String() string {
590
- return protoimpl.X.MessageStringOf(x)
591
- }
592
-
593
- func (*RegisterRequest) ProtoMessage() {}
594
-
595
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
596
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[9]
597
- if x != nil {
598
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
599
- if ms.LoadMessageInfo() == nil {
600
- ms.StoreMessageInfo(mi)
601
- }
602
- return ms
603
- }
604
- return mi.MessageOf(x)
605
- }
606
-
607
- // Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
608
- func (*RegisterRequest) Descriptor() ([]byte, []int) {
609
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{9}
610
- }
611
-
612
- func (x *RegisterRequest) GetEmail() string {
613
- if x != nil {
614
- return x.Email
615
- }
616
- return ""
617
- }
618
-
619
- func (x *RegisterRequest) GetPassword() string {
620
- if x != nil && x.Password != nil {
621
- return *x.Password
622
- }
623
- return ""
624
- }
625
-
626
- func (x *RegisterRequest) GetFirstName() string {
627
- if x != nil {
628
- return x.FirstName
629
- }
630
- return ""
631
- }
632
-
633
- func (x *RegisterRequest) GetOtherNames() string {
634
- if x != nil {
635
- return x.OtherNames
636
- }
637
- return ""
638
- }
639
-
640
- func (x *RegisterRequest) GetLastName() string {
641
- if x != nil {
642
- return x.LastName
643
- }
644
- return ""
645
- }
646
-
647
- func (x *RegisterRequest) GetOtp() string {
648
- if x != nil && x.Otp != nil {
649
- return *x.Otp
650
- }
651
- return ""
652
- }
653
-
654
- type RegisterResponse struct {
655
- state protoimpl.MessageState `protogen:"open.v1"`
656
- unknownFields protoimpl.UnknownFields
657
- sizeCache protoimpl.SizeCache
658
- }
659
-
660
- func (x *RegisterResponse) Reset() {
661
- *x = RegisterResponse{}
662
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[10]
663
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
664
- ms.StoreMessageInfo(mi)
665
- }
666
-
667
- func (x *RegisterResponse) String() string {
668
- return protoimpl.X.MessageStringOf(x)
669
- }
670
-
671
- func (*RegisterResponse) ProtoMessage() {}
672
-
673
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
674
- mi := &file_src_proto_auth_v1_entities_auth_proto_msgTypes[10]
675
- if x != nil {
676
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
677
- if ms.LoadMessageInfo() == nil {
678
- ms.StoreMessageInfo(mi)
679
- }
680
- return ms
681
- }
682
- return mi.MessageOf(x)
683
- }
684
-
685
- // Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
686
- func (*RegisterResponse) Descriptor() ([]byte, []int) {
687
- return file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP(), []int{10}
688
- }
689
-
690
- var File_src_proto_auth_v1_entities_auth_proto protoreflect.FileDescriptor
691
-
692
- const file_src_proto_auth_v1_entities_auth_proto_rawDesc = "" +
693
- "\n" +
694
- "%src/proto/auth/v1/entities/auth.proto\x1a\x1bbuf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"T\n" +
695
- "\fLoginRequest\x12\x1d\n" +
696
- "\x05email\x18\x01 \x01(\tB\a\xbaH\x04r\x02`\x01R\x05email\x12%\n" +
697
- "\bpassword\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\b\x18dR\bpassword\"\xb5\x01\n" +
698
- "\fRefreshToken\x12\x1d\n" +
699
- "\n" +
700
- "expires_at\x18\x01 \x01(\tR\texpiresAt\x12\x14\n" +
701
- "\x05token\x18\x02 \x01(\tR\x05token\x12\x14\n" +
702
- "\x05email\x18\x03 \x01(\tR\x05email\x12\x1f\n" +
703
- "\vcustomer_id\x18\x04 \x01(\tR\n" +
704
- "customerId\x129\n" +
705
- "\n" +
706
- "started_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\"B\n" +
707
- "\vAccessToken\x12\x14\n" +
708
- "\x05token\x18\x01 \x01(\tR\x05token\x12\x1d\n" +
709
- "\n" +
710
- "expires_at\x18\x02 \x01(\tR\texpiresAt\"\x8a\x01\n" +
711
- "\rLoginResponse\x122\n" +
712
- "\rrefresh_token\x18\x01 \x01(\v2\r.RefreshTokenR\frefreshToken\x12/\n" +
713
- "\faccess_token\x18\x02 \x01(\v2\f.AccessTokenR\vaccessToken\x12\x14\n" +
714
- "\x05email\x18\x03 \x01(\tR\x05email\"E\n" +
715
- "\x13TokenRefreshRequest\x12.\n" +
716
- "\rrefresh_token\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18xR\frefreshToken\"\xda\x01\n" +
717
- "\x12VerifyEmailRequest\x12\x1d\n" +
718
- "\x05email\x18\x01 \x01(\tB\a\xbaH\x04r\x02`\x01R\x05email\x12A\n" +
719
- "\x06locale\x18\x02 \x01(\x0e2\x1f.VerifyEmailRequest.EmailLocaleB\b\xbaH\x05\x82\x01\x02\x10\x01R\x06locale\x12'\n" +
720
- "\x0fidempotency_key\x18\x03 \x01(\tR\x0eidempotencyKey\"9\n" +
721
- "\vEmailLocale\x12\t\n" +
722
- "\x05EN_GB\x10\x00\x12\t\n" +
723
- "\x05EN_US\x10\x01\x12\t\n" +
724
- "\x05NL_NL\x10\x02\x12\t\n" +
725
- "\x05DE_DE\x10\x03\">\n" +
726
- "\x13VerifyEmailResponse\x12'\n" +
727
- "\x0fidempotency_key\x18\x01 \x01(\tR\x0eidempotencyKey\"P\n" +
728
- "\x12ValidateOTPRequest\x12\x1d\n" +
729
- "\x05email\x18\x01 \x01(\tB\a\xbaH\x04r\x02`\x01R\x05email\x12\x1b\n" +
730
- "\x03otp\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x06\x18\x06R\x03otp\"E\n" +
731
- "\x13ValidateOTPResponse\x12\x14\n" +
732
- "\x05valid\x18\x01 \x01(\bR\x05valid\x12\x18\n" +
733
- "\amessage\x18\x02 \x01(\tR\amessage\"\xb4\t\n" +
734
- "\x0fRegisterRequest\x12\x1d\n" +
735
- "\x05email\x18\x01 \x01(\tB\a\xbaH\x04r\x02`\x01R\x05email\x12*\n" +
736
- "\bpassword\x18\x02 \x01(\tB\t\xbaH\x06\xc8\x01\x00\xd8\x01\x01H\x00R\bpassword\x88\x01\x01\x12(\n" +
737
- "\n" +
738
- "first_name\x18\x03 \x01(\tB\t\xbaH\x06r\x04\x10\x02\x18\x14R\tfirstName\x12(\n" +
739
- "\vother_names\x18\x04 \x01(\tB\a\xbaH\x04r\x02\x18\x14R\n" +
740
- "otherNames\x12&\n" +
741
- "\tlast_name\x18\x05 \x01(\tB\t\xbaH\x06r\x04\x10\x02\x18\x14R\blastName\x12 \n" +
742
- "\x03otp\x18\x06 \x01(\tB\t\xbaH\x06\xc8\x01\x00\xd8\x01\x01H\x01R\x03otp\x88\x01\x01:\xa2\a\xbaH\x9e\a\x1a\x9e\x01\n" +
743
- "\"password_complexity_lowercase_must\x123Password must contain at least one lowercase letter\x1aCthis.password != '' ? string(this.password).matches('[a-z]') : true\x1a\x9e\x01\n" +
744
- "\"password_complexity_uppercase_must\x123Password must contain at least one uppercase letter\x1aCthis.password != '' ? string(this.password).matches('[A-Z]') : true\x1a\x8f\x01\n" +
745
- "\x1epassword_complexity_digit_must\x12(Password must contain at least one digit\x1aCthis.password != '' ? string(this.password).matches('[0-9]') : true\x1a\xb3\x01\n" +
746
- "%password_complexity_special_char_must\x124Password must contain at least one special character\x1aTthis.password != '' ? string(this.password).matches('[!@#$%^&*(),.?\":{}|<>]') : true\x1a\x87\x01\n" +
747
- "/full_account_password_required_if_otp_not_empty\x12'Password is required if OTP is provided\x1a+this.otp != '' ? this.password != '' : true\x1a\x87\x01\n" +
748
- "/full_account_otp_required_if_password_not_empty\x12'OTP is required if password is provided\x1a+this.password != '' ? this.otp != '' : trueB\v\n" +
749
- "\t_passwordB\x06\n" +
750
- "\x04_otp\"\x12\n" +
751
- "\x10RegisterResponseBDB\tAuthProtoP\x01Z5paakd.com/packages/api/gen/src/proto/auth/v1/entitiesb\x06proto3"
752
-
753
- var (
754
- file_src_proto_auth_v1_entities_auth_proto_rawDescOnce sync.Once
755
- file_src_proto_auth_v1_entities_auth_proto_rawDescData []byte
756
- )
757
-
758
- func file_src_proto_auth_v1_entities_auth_proto_rawDescGZIP() []byte {
759
- file_src_proto_auth_v1_entities_auth_proto_rawDescOnce.Do(func() {
760
- file_src_proto_auth_v1_entities_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_auth_v1_entities_auth_proto_rawDesc), len(file_src_proto_auth_v1_entities_auth_proto_rawDesc)))
761
- })
762
- return file_src_proto_auth_v1_entities_auth_proto_rawDescData
763
- }
764
-
765
- var file_src_proto_auth_v1_entities_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
766
- var file_src_proto_auth_v1_entities_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
767
- var file_src_proto_auth_v1_entities_auth_proto_goTypes = []any{
768
- (VerifyEmailRequest_EmailLocale)(0), // 0: VerifyEmailRequest.EmailLocale
769
- (*LoginRequest)(nil), // 1: LoginRequest
770
- (*RefreshToken)(nil), // 2: RefreshToken
771
- (*AccessToken)(nil), // 3: AccessToken
772
- (*LoginResponse)(nil), // 4: LoginResponse
773
- (*TokenRefreshRequest)(nil), // 5: TokenRefreshRequest
774
- (*VerifyEmailRequest)(nil), // 6: VerifyEmailRequest
775
- (*VerifyEmailResponse)(nil), // 7: VerifyEmailResponse
776
- (*ValidateOTPRequest)(nil), // 8: ValidateOTPRequest
777
- (*ValidateOTPResponse)(nil), // 9: ValidateOTPResponse
778
- (*RegisterRequest)(nil), // 10: RegisterRequest
779
- (*RegisterResponse)(nil), // 11: RegisterResponse
780
- (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
781
- }
782
- var file_src_proto_auth_v1_entities_auth_proto_depIdxs = []int32{
783
- 12, // 0: RefreshToken.started_at:type_name -> google.protobuf.Timestamp
784
- 2, // 1: LoginResponse.refresh_token:type_name -> RefreshToken
785
- 3, // 2: LoginResponse.access_token:type_name -> AccessToken
786
- 0, // 3: VerifyEmailRequest.locale:type_name -> VerifyEmailRequest.EmailLocale
787
- 4, // [4:4] is the sub-list for method output_type
788
- 4, // [4:4] is the sub-list for method input_type
789
- 4, // [4:4] is the sub-list for extension type_name
790
- 4, // [4:4] is the sub-list for extension extendee
791
- 0, // [0:4] is the sub-list for field type_name
792
- }
793
-
794
- func init() { file_src_proto_auth_v1_entities_auth_proto_init() }
795
- func file_src_proto_auth_v1_entities_auth_proto_init() {
796
- if File_src_proto_auth_v1_entities_auth_proto != nil {
797
- return
798
- }
799
- file_src_proto_auth_v1_entities_auth_proto_msgTypes[9].OneofWrappers = []any{}
800
- type x struct{}
801
- out := protoimpl.TypeBuilder{
802
- File: protoimpl.DescBuilder{
803
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
804
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_auth_v1_entities_auth_proto_rawDesc), len(file_src_proto_auth_v1_entities_auth_proto_rawDesc)),
805
- NumEnums: 1,
806
- NumMessages: 11,
807
- NumExtensions: 0,
808
- NumServices: 0,
809
- },
810
- GoTypes: file_src_proto_auth_v1_entities_auth_proto_goTypes,
811
- DependencyIndexes: file_src_proto_auth_v1_entities_auth_proto_depIdxs,
812
- EnumInfos: file_src_proto_auth_v1_entities_auth_proto_enumTypes,
813
- MessageInfos: file_src_proto_auth_v1_entities_auth_proto_msgTypes,
814
- }.Build()
815
- File_src_proto_auth_v1_entities_auth_proto = out.File
816
- file_src_proto_auth_v1_entities_auth_proto_goTypes = nil
817
- file_src_proto_auth_v1_entities_auth_proto_depIdxs = nil
818
- }