@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,727 +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/policy.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
- reflect "reflect"
14
- sync "sync"
15
- unsafe "unsafe"
16
- )
17
-
18
- const (
19
- // Verify that this generated code is sufficiently up-to-date.
20
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21
- // Verify that runtime/protoimpl is sufficiently up-to-date.
22
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23
- )
24
-
25
- type Policy struct {
26
- state protoimpl.MessageState `protogen:"open.v1"`
27
- PType string `protobuf:"bytes,1,opt,name=p_type,json=pType,proto3" json:"p_type,omitempty"` // Policy type
28
- V0 string `protobuf:"bytes,2,opt,name=v0,proto3" json:"v0,omitempty"` // First value
29
- V1 string `protobuf:"bytes,3,opt,name=v1,proto3" json:"v1,omitempty"` // Second value (optional)
30
- V2 string `protobuf:"bytes,4,opt,name=v2,proto3" json:"v2,omitempty"` // Third value (optional)
31
- V3 string `protobuf:"bytes,5,opt,name=v3,proto3" json:"v3,omitempty"` // Fourth value (optional)
32
- V4 string `protobuf:"bytes,6,opt,name=v4,proto3" json:"v4,omitempty"` // Fifth value (optional)
33
- V5 string `protobuf:"bytes,7,opt,name=v5,proto3" json:"v5,omitempty"` // Sixth value (optional)
34
- unknownFields protoimpl.UnknownFields
35
- sizeCache protoimpl.SizeCache
36
- }
37
-
38
- func (x *Policy) Reset() {
39
- *x = Policy{}
40
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[0]
41
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42
- ms.StoreMessageInfo(mi)
43
- }
44
-
45
- func (x *Policy) String() string {
46
- return protoimpl.X.MessageStringOf(x)
47
- }
48
-
49
- func (*Policy) ProtoMessage() {}
50
-
51
- func (x *Policy) ProtoReflect() protoreflect.Message {
52
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[0]
53
- if x != nil {
54
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55
- if ms.LoadMessageInfo() == nil {
56
- ms.StoreMessageInfo(mi)
57
- }
58
- return ms
59
- }
60
- return mi.MessageOf(x)
61
- }
62
-
63
- // Deprecated: Use Policy.ProtoReflect.Descriptor instead.
64
- func (*Policy) Descriptor() ([]byte, []int) {
65
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{0}
66
- }
67
-
68
- func (x *Policy) GetPType() string {
69
- if x != nil {
70
- return x.PType
71
- }
72
- return ""
73
- }
74
-
75
- func (x *Policy) GetV0() string {
76
- if x != nil {
77
- return x.V0
78
- }
79
- return ""
80
- }
81
-
82
- func (x *Policy) GetV1() string {
83
- if x != nil {
84
- return x.V1
85
- }
86
- return ""
87
- }
88
-
89
- func (x *Policy) GetV2() string {
90
- if x != nil {
91
- return x.V2
92
- }
93
- return ""
94
- }
95
-
96
- func (x *Policy) GetV3() string {
97
- if x != nil {
98
- return x.V3
99
- }
100
- return ""
101
- }
102
-
103
- func (x *Policy) GetV4() string {
104
- if x != nil {
105
- return x.V4
106
- }
107
- return ""
108
- }
109
-
110
- func (x *Policy) GetV5() string {
111
- if x != nil {
112
- return x.V5
113
- }
114
- return ""
115
- }
116
-
117
- type GetPoliciesResponse struct {
118
- state protoimpl.MessageState `protogen:"open.v1"`
119
- Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` // List of policies
120
- unknownFields protoimpl.UnknownFields
121
- sizeCache protoimpl.SizeCache
122
- }
123
-
124
- func (x *GetPoliciesResponse) Reset() {
125
- *x = GetPoliciesResponse{}
126
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[1]
127
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128
- ms.StoreMessageInfo(mi)
129
- }
130
-
131
- func (x *GetPoliciesResponse) String() string {
132
- return protoimpl.X.MessageStringOf(x)
133
- }
134
-
135
- func (*GetPoliciesResponse) ProtoMessage() {}
136
-
137
- func (x *GetPoliciesResponse) ProtoReflect() protoreflect.Message {
138
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[1]
139
- if x != nil {
140
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
141
- if ms.LoadMessageInfo() == nil {
142
- ms.StoreMessageInfo(mi)
143
- }
144
- return ms
145
- }
146
- return mi.MessageOf(x)
147
- }
148
-
149
- // Deprecated: Use GetPoliciesResponse.ProtoReflect.Descriptor instead.
150
- func (*GetPoliciesResponse) Descriptor() ([]byte, []int) {
151
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{1}
152
- }
153
-
154
- func (x *GetPoliciesResponse) GetPolicies() []*Policy {
155
- if x != nil {
156
- return x.Policies
157
- }
158
- return nil
159
- }
160
-
161
- type SavePolicyRequest struct {
162
- state protoimpl.MessageState `protogen:"open.v1"`
163
- Policies []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` // List of policies to save
164
- unknownFields protoimpl.UnknownFields
165
- sizeCache protoimpl.SizeCache
166
- }
167
-
168
- func (x *SavePolicyRequest) Reset() {
169
- *x = SavePolicyRequest{}
170
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[2]
171
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
172
- ms.StoreMessageInfo(mi)
173
- }
174
-
175
- func (x *SavePolicyRequest) String() string {
176
- return protoimpl.X.MessageStringOf(x)
177
- }
178
-
179
- func (*SavePolicyRequest) ProtoMessage() {}
180
-
181
- func (x *SavePolicyRequest) ProtoReflect() protoreflect.Message {
182
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[2]
183
- if x != nil {
184
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185
- if ms.LoadMessageInfo() == nil {
186
- ms.StoreMessageInfo(mi)
187
- }
188
- return ms
189
- }
190
- return mi.MessageOf(x)
191
- }
192
-
193
- // Deprecated: Use SavePolicyRequest.ProtoReflect.Descriptor instead.
194
- func (*SavePolicyRequest) Descriptor() ([]byte, []int) {
195
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{2}
196
- }
197
-
198
- func (x *SavePolicyRequest) GetPolicies() []*Policy {
199
- if x != nil {
200
- return x.Policies
201
- }
202
- return nil
203
- }
204
-
205
- type ChangePolicyRequest struct {
206
- state protoimpl.MessageState `protogen:"open.v1"`
207
- PType string `protobuf:"bytes,1,opt,name=p_type,json=pType,proto3" json:"p_type,omitempty"` // Policy type
208
- Rule []string `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"` // Rules associated with the policy
209
- unknownFields protoimpl.UnknownFields
210
- sizeCache protoimpl.SizeCache
211
- }
212
-
213
- func (x *ChangePolicyRequest) Reset() {
214
- *x = ChangePolicyRequest{}
215
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[3]
216
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
217
- ms.StoreMessageInfo(mi)
218
- }
219
-
220
- func (x *ChangePolicyRequest) String() string {
221
- return protoimpl.X.MessageStringOf(x)
222
- }
223
-
224
- func (*ChangePolicyRequest) ProtoMessage() {}
225
-
226
- func (x *ChangePolicyRequest) ProtoReflect() protoreflect.Message {
227
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[3]
228
- if x != nil {
229
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230
- if ms.LoadMessageInfo() == nil {
231
- ms.StoreMessageInfo(mi)
232
- }
233
- return ms
234
- }
235
- return mi.MessageOf(x)
236
- }
237
-
238
- // Deprecated: Use ChangePolicyRequest.ProtoReflect.Descriptor instead.
239
- func (*ChangePolicyRequest) Descriptor() ([]byte, []int) {
240
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{3}
241
- }
242
-
243
- func (x *ChangePolicyRequest) GetPType() string {
244
- if x != nil {
245
- return x.PType
246
- }
247
- return ""
248
- }
249
-
250
- func (x *ChangePolicyRequest) GetRule() []string {
251
- if x != nil {
252
- return x.Rule
253
- }
254
- return nil
255
- }
256
-
257
- type Rules struct {
258
- state protoimpl.MessageState `protogen:"open.v1"`
259
- Rules []string `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"` // List of rules
260
- unknownFields protoimpl.UnknownFields
261
- sizeCache protoimpl.SizeCache
262
- }
263
-
264
- func (x *Rules) Reset() {
265
- *x = Rules{}
266
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[4]
267
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
268
- ms.StoreMessageInfo(mi)
269
- }
270
-
271
- func (x *Rules) String() string {
272
- return protoimpl.X.MessageStringOf(x)
273
- }
274
-
275
- func (*Rules) ProtoMessage() {}
276
-
277
- func (x *Rules) ProtoReflect() protoreflect.Message {
278
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[4]
279
- if x != nil {
280
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
281
- if ms.LoadMessageInfo() == nil {
282
- ms.StoreMessageInfo(mi)
283
- }
284
- return ms
285
- }
286
- return mi.MessageOf(x)
287
- }
288
-
289
- // Deprecated: Use Rules.ProtoReflect.Descriptor instead.
290
- func (*Rules) Descriptor() ([]byte, []int) {
291
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{4}
292
- }
293
-
294
- func (x *Rules) GetRules() []string {
295
- if x != nil {
296
- return x.Rules
297
- }
298
- return nil
299
- }
300
-
301
- type ChangePoliciesRequest struct {
302
- state protoimpl.MessageState `protogen:"open.v1"`
303
- PType string `protobuf:"bytes,1,opt,name=p_type,json=pType,proto3" json:"p_type,omitempty"`
304
- Rules []*Rules `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` // List of rules to add
305
- unknownFields protoimpl.UnknownFields
306
- sizeCache protoimpl.SizeCache
307
- }
308
-
309
- func (x *ChangePoliciesRequest) Reset() {
310
- *x = ChangePoliciesRequest{}
311
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[5]
312
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
313
- ms.StoreMessageInfo(mi)
314
- }
315
-
316
- func (x *ChangePoliciesRequest) String() string {
317
- return protoimpl.X.MessageStringOf(x)
318
- }
319
-
320
- func (*ChangePoliciesRequest) ProtoMessage() {}
321
-
322
- func (x *ChangePoliciesRequest) ProtoReflect() protoreflect.Message {
323
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[5]
324
- if x != nil {
325
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
326
- if ms.LoadMessageInfo() == nil {
327
- ms.StoreMessageInfo(mi)
328
- }
329
- return ms
330
- }
331
- return mi.MessageOf(x)
332
- }
333
-
334
- // Deprecated: Use ChangePoliciesRequest.ProtoReflect.Descriptor instead.
335
- func (*ChangePoliciesRequest) Descriptor() ([]byte, []int) {
336
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{5}
337
- }
338
-
339
- func (x *ChangePoliciesRequest) GetPType() string {
340
- if x != nil {
341
- return x.PType
342
- }
343
- return ""
344
- }
345
-
346
- func (x *ChangePoliciesRequest) GetRules() []*Rules {
347
- if x != nil {
348
- return x.Rules
349
- }
350
- return nil
351
- }
352
-
353
- type PolicyEmptyRequest struct {
354
- state protoimpl.MessageState `protogen:"open.v1"`
355
- unknownFields protoimpl.UnknownFields
356
- sizeCache protoimpl.SizeCache
357
- }
358
-
359
- func (x *PolicyEmptyRequest) Reset() {
360
- *x = PolicyEmptyRequest{}
361
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[6]
362
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
363
- ms.StoreMessageInfo(mi)
364
- }
365
-
366
- func (x *PolicyEmptyRequest) String() string {
367
- return protoimpl.X.MessageStringOf(x)
368
- }
369
-
370
- func (*PolicyEmptyRequest) ProtoMessage() {}
371
-
372
- func (x *PolicyEmptyRequest) ProtoReflect() protoreflect.Message {
373
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[6]
374
- if x != nil {
375
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
376
- if ms.LoadMessageInfo() == nil {
377
- ms.StoreMessageInfo(mi)
378
- }
379
- return ms
380
- }
381
- return mi.MessageOf(x)
382
- }
383
-
384
- // Deprecated: Use PolicyEmptyRequest.ProtoReflect.Descriptor instead.
385
- func (*PolicyEmptyRequest) Descriptor() ([]byte, []int) {
386
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{6}
387
- }
388
-
389
- type PolicyEmptyResponse struct {
390
- state protoimpl.MessageState `protogen:"open.v1"`
391
- unknownFields protoimpl.UnknownFields
392
- sizeCache protoimpl.SizeCache
393
- }
394
-
395
- func (x *PolicyEmptyResponse) Reset() {
396
- *x = PolicyEmptyResponse{}
397
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[7]
398
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399
- ms.StoreMessageInfo(mi)
400
- }
401
-
402
- func (x *PolicyEmptyResponse) String() string {
403
- return protoimpl.X.MessageStringOf(x)
404
- }
405
-
406
- func (*PolicyEmptyResponse) ProtoMessage() {}
407
-
408
- func (x *PolicyEmptyResponse) ProtoReflect() protoreflect.Message {
409
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[7]
410
- if x != nil {
411
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
412
- if ms.LoadMessageInfo() == nil {
413
- ms.StoreMessageInfo(mi)
414
- }
415
- return ms
416
- }
417
- return mi.MessageOf(x)
418
- }
419
-
420
- // Deprecated: Use PolicyEmptyResponse.ProtoReflect.Descriptor instead.
421
- func (*PolicyEmptyResponse) Descriptor() ([]byte, []int) {
422
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{7}
423
- }
424
-
425
- type FilterEntry struct {
426
- state protoimpl.MessageState `protogen:"open.v1"`
427
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
428
- Values []*StringArray `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
429
- unknownFields protoimpl.UnknownFields
430
- sizeCache protoimpl.SizeCache
431
- }
432
-
433
- func (x *FilterEntry) Reset() {
434
- *x = FilterEntry{}
435
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[8]
436
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
437
- ms.StoreMessageInfo(mi)
438
- }
439
-
440
- func (x *FilterEntry) String() string {
441
- return protoimpl.X.MessageStringOf(x)
442
- }
443
-
444
- func (*FilterEntry) ProtoMessage() {}
445
-
446
- func (x *FilterEntry) ProtoReflect() protoreflect.Message {
447
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[8]
448
- if x != nil {
449
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
450
- if ms.LoadMessageInfo() == nil {
451
- ms.StoreMessageInfo(mi)
452
- }
453
- return ms
454
- }
455
- return mi.MessageOf(x)
456
- }
457
-
458
- // Deprecated: Use FilterEntry.ProtoReflect.Descriptor instead.
459
- func (*FilterEntry) Descriptor() ([]byte, []int) {
460
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{8}
461
- }
462
-
463
- func (x *FilterEntry) GetKey() string {
464
- if x != nil {
465
- return x.Key
466
- }
467
- return ""
468
- }
469
-
470
- func (x *FilterEntry) GetValues() []*StringArray {
471
- if x != nil {
472
- return x.Values
473
- }
474
- return nil
475
- }
476
-
477
- type StringArray struct {
478
- state protoimpl.MessageState `protogen:"open.v1"`
479
- Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
480
- unknownFields protoimpl.UnknownFields
481
- sizeCache protoimpl.SizeCache
482
- }
483
-
484
- func (x *StringArray) Reset() {
485
- *x = StringArray{}
486
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[9]
487
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
488
- ms.StoreMessageInfo(mi)
489
- }
490
-
491
- func (x *StringArray) String() string {
492
- return protoimpl.X.MessageStringOf(x)
493
- }
494
-
495
- func (*StringArray) ProtoMessage() {}
496
-
497
- func (x *StringArray) ProtoReflect() protoreflect.Message {
498
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[9]
499
- if x != nil {
500
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
501
- if ms.LoadMessageInfo() == nil {
502
- ms.StoreMessageInfo(mi)
503
- }
504
- return ms
505
- }
506
- return mi.MessageOf(x)
507
- }
508
-
509
- // Deprecated: Use StringArray.ProtoReflect.Descriptor instead.
510
- func (*StringArray) Descriptor() ([]byte, []int) {
511
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{9}
512
- }
513
-
514
- func (x *StringArray) GetItems() []string {
515
- if x != nil {
516
- return x.Items
517
- }
518
- return nil
519
- }
520
-
521
- type FilteredPolicyRequest struct {
522
- state protoimpl.MessageState `protogen:"open.v1"`
523
- Filter []*FilterEntry `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"`
524
- unknownFields protoimpl.UnknownFields
525
- sizeCache protoimpl.SizeCache
526
- }
527
-
528
- func (x *FilteredPolicyRequest) Reset() {
529
- *x = FilteredPolicyRequest{}
530
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[10]
531
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
532
- ms.StoreMessageInfo(mi)
533
- }
534
-
535
- func (x *FilteredPolicyRequest) String() string {
536
- return protoimpl.X.MessageStringOf(x)
537
- }
538
-
539
- func (*FilteredPolicyRequest) ProtoMessage() {}
540
-
541
- func (x *FilteredPolicyRequest) ProtoReflect() protoreflect.Message {
542
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[10]
543
- if x != nil {
544
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
545
- if ms.LoadMessageInfo() == nil {
546
- ms.StoreMessageInfo(mi)
547
- }
548
- return ms
549
- }
550
- return mi.MessageOf(x)
551
- }
552
-
553
- // Deprecated: Use FilteredPolicyRequest.ProtoReflect.Descriptor instead.
554
- func (*FilteredPolicyRequest) Descriptor() ([]byte, []int) {
555
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{10}
556
- }
557
-
558
- func (x *FilteredPolicyRequest) GetFilter() []*FilterEntry {
559
- if x != nil {
560
- return x.Filter
561
- }
562
- return nil
563
- }
564
-
565
- type RemoveFilteredPolicyRequest struct {
566
- state protoimpl.MessageState `protogen:"open.v1"`
567
- PType string `protobuf:"bytes,1,opt,name=p_type,json=pType,proto3" json:"p_type,omitempty"`
568
- FieldIndex int32 `protobuf:"varint,2,opt,name=field_index,json=fieldIndex,proto3" json:"field_index,omitempty"`
569
- FieldValues []string `protobuf:"bytes,3,rep,name=field_values,json=fieldValues,proto3" json:"field_values,omitempty"`
570
- unknownFields protoimpl.UnknownFields
571
- sizeCache protoimpl.SizeCache
572
- }
573
-
574
- func (x *RemoveFilteredPolicyRequest) Reset() {
575
- *x = RemoveFilteredPolicyRequest{}
576
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[11]
577
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
578
- ms.StoreMessageInfo(mi)
579
- }
580
-
581
- func (x *RemoveFilteredPolicyRequest) String() string {
582
- return protoimpl.X.MessageStringOf(x)
583
- }
584
-
585
- func (*RemoveFilteredPolicyRequest) ProtoMessage() {}
586
-
587
- func (x *RemoveFilteredPolicyRequest) ProtoReflect() protoreflect.Message {
588
- mi := &file_src_proto_auth_v1_entities_policy_proto_msgTypes[11]
589
- if x != nil {
590
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
591
- if ms.LoadMessageInfo() == nil {
592
- ms.StoreMessageInfo(mi)
593
- }
594
- return ms
595
- }
596
- return mi.MessageOf(x)
597
- }
598
-
599
- // Deprecated: Use RemoveFilteredPolicyRequest.ProtoReflect.Descriptor instead.
600
- func (*RemoveFilteredPolicyRequest) Descriptor() ([]byte, []int) {
601
- return file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP(), []int{11}
602
- }
603
-
604
- func (x *RemoveFilteredPolicyRequest) GetPType() string {
605
- if x != nil {
606
- return x.PType
607
- }
608
- return ""
609
- }
610
-
611
- func (x *RemoveFilteredPolicyRequest) GetFieldIndex() int32 {
612
- if x != nil {
613
- return x.FieldIndex
614
- }
615
- return 0
616
- }
617
-
618
- func (x *RemoveFilteredPolicyRequest) GetFieldValues() []string {
619
- if x != nil {
620
- return x.FieldValues
621
- }
622
- return nil
623
- }
624
-
625
- var File_src_proto_auth_v1_entities_policy_proto protoreflect.FileDescriptor
626
-
627
- const file_src_proto_auth_v1_entities_policy_proto_rawDesc = "" +
628
- "\n" +
629
- "'src/proto/auth/v1/entities/policy.proto\x1a\x1bbuf/validate/validate.proto\"\x7f\n" +
630
- "\x06Policy\x12\x15\n" +
631
- "\x06p_type\x18\x01 \x01(\tR\x05pType\x12\x0e\n" +
632
- "\x02v0\x18\x02 \x01(\tR\x02v0\x12\x0e\n" +
633
- "\x02v1\x18\x03 \x01(\tR\x02v1\x12\x0e\n" +
634
- "\x02v2\x18\x04 \x01(\tR\x02v2\x12\x0e\n" +
635
- "\x02v3\x18\x05 \x01(\tR\x02v3\x12\x0e\n" +
636
- "\x02v4\x18\x06 \x01(\tR\x02v4\x12\x0e\n" +
637
- "\x02v5\x18\a \x01(\tR\x02v5\":\n" +
638
- "\x13GetPoliciesResponse\x12#\n" +
639
- "\bpolicies\x18\x01 \x03(\v2\a.PolicyR\bpolicies\"8\n" +
640
- "\x11SavePolicyRequest\x12#\n" +
641
- "\bpolicies\x18\x01 \x03(\v2\a.PolicyR\bpolicies\"H\n" +
642
- "\x13ChangePolicyRequest\x12\x1d\n" +
643
- "\x06p_type\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x05pType\x12\x12\n" +
644
- "\x04rule\x18\x02 \x03(\tR\x04rule\"\x1d\n" +
645
- "\x05Rules\x12\x14\n" +
646
- "\x05rules\x18\x01 \x03(\tR\x05rules\"L\n" +
647
- "\x15ChangePoliciesRequest\x12\x15\n" +
648
- "\x06p_type\x18\x01 \x01(\tR\x05pType\x12\x1c\n" +
649
- "\x05rules\x18\x02 \x03(\v2\x06.RulesR\x05rules\"\x14\n" +
650
- "\x12PolicyEmptyRequest\"\x15\n" +
651
- "\x13PolicyEmptyResponse\"E\n" +
652
- "\vFilterEntry\x12\x10\n" +
653
- "\x03key\x18\x01 \x01(\tR\x03key\x12$\n" +
654
- "\x06values\x18\x02 \x03(\v2\f.StringArrayR\x06values\"#\n" +
655
- "\vStringArray\x12\x14\n" +
656
- "\x05items\x18\x01 \x03(\tR\x05items\"=\n" +
657
- "\x15FilteredPolicyRequest\x12$\n" +
658
- "\x06filter\x18\x01 \x03(\v2\f.FilterEntryR\x06filter\"x\n" +
659
- "\x1bRemoveFilteredPolicyRequest\x12\x15\n" +
660
- "\x06p_type\x18\x01 \x01(\tR\x05pType\x12\x1f\n" +
661
- "\vfield_index\x18\x02 \x01(\x05R\n" +
662
- "fieldIndex\x12!\n" +
663
- "\ffield_values\x18\x03 \x03(\tR\vfieldValuesBFB\vPolicyProtoP\x01Z5paakd.com/packages/api/gen/src/proto/auth/v1/entitiesb\x06proto3"
664
-
665
- var (
666
- file_src_proto_auth_v1_entities_policy_proto_rawDescOnce sync.Once
667
- file_src_proto_auth_v1_entities_policy_proto_rawDescData []byte
668
- )
669
-
670
- func file_src_proto_auth_v1_entities_policy_proto_rawDescGZIP() []byte {
671
- file_src_proto_auth_v1_entities_policy_proto_rawDescOnce.Do(func() {
672
- file_src_proto_auth_v1_entities_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_auth_v1_entities_policy_proto_rawDesc), len(file_src_proto_auth_v1_entities_policy_proto_rawDesc)))
673
- })
674
- return file_src_proto_auth_v1_entities_policy_proto_rawDescData
675
- }
676
-
677
- var file_src_proto_auth_v1_entities_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
678
- var file_src_proto_auth_v1_entities_policy_proto_goTypes = []any{
679
- (*Policy)(nil), // 0: Policy
680
- (*GetPoliciesResponse)(nil), // 1: GetPoliciesResponse
681
- (*SavePolicyRequest)(nil), // 2: SavePolicyRequest
682
- (*ChangePolicyRequest)(nil), // 3: ChangePolicyRequest
683
- (*Rules)(nil), // 4: Rules
684
- (*ChangePoliciesRequest)(nil), // 5: ChangePoliciesRequest
685
- (*PolicyEmptyRequest)(nil), // 6: PolicyEmptyRequest
686
- (*PolicyEmptyResponse)(nil), // 7: PolicyEmptyResponse
687
- (*FilterEntry)(nil), // 8: FilterEntry
688
- (*StringArray)(nil), // 9: StringArray
689
- (*FilteredPolicyRequest)(nil), // 10: FilteredPolicyRequest
690
- (*RemoveFilteredPolicyRequest)(nil), // 11: RemoveFilteredPolicyRequest
691
- }
692
- var file_src_proto_auth_v1_entities_policy_proto_depIdxs = []int32{
693
- 0, // 0: GetPoliciesResponse.policies:type_name -> Policy
694
- 0, // 1: SavePolicyRequest.policies:type_name -> Policy
695
- 4, // 2: ChangePoliciesRequest.rules:type_name -> Rules
696
- 9, // 3: FilterEntry.values:type_name -> StringArray
697
- 8, // 4: FilteredPolicyRequest.filter:type_name -> FilterEntry
698
- 5, // [5:5] is the sub-list for method output_type
699
- 5, // [5:5] is the sub-list for method input_type
700
- 5, // [5:5] is the sub-list for extension type_name
701
- 5, // [5:5] is the sub-list for extension extendee
702
- 0, // [0:5] is the sub-list for field type_name
703
- }
704
-
705
- func init() { file_src_proto_auth_v1_entities_policy_proto_init() }
706
- func file_src_proto_auth_v1_entities_policy_proto_init() {
707
- if File_src_proto_auth_v1_entities_policy_proto != nil {
708
- return
709
- }
710
- type x struct{}
711
- out := protoimpl.TypeBuilder{
712
- File: protoimpl.DescBuilder{
713
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
714
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_auth_v1_entities_policy_proto_rawDesc), len(file_src_proto_auth_v1_entities_policy_proto_rawDesc)),
715
- NumEnums: 0,
716
- NumMessages: 12,
717
- NumExtensions: 0,
718
- NumServices: 0,
719
- },
720
- GoTypes: file_src_proto_auth_v1_entities_policy_proto_goTypes,
721
- DependencyIndexes: file_src_proto_auth_v1_entities_policy_proto_depIdxs,
722
- MessageInfos: file_src_proto_auth_v1_entities_policy_proto_msgTypes,
723
- }.Build()
724
- File_src_proto_auth_v1_entities_policy_proto = out.File
725
- file_src_proto_auth_v1_entities_policy_proto_goTypes = nil
726
- file_src_proto_auth_v1_entities_policy_proto_depIdxs = nil
727
- }