@paakd/api 0.0.3 → 0.0.5

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 (124) hide show
  1. package/dist/gen/src/proto/files/v1/entities/file_pb.d.ts +199 -0
  2. package/dist/gen/src/proto/files/v1/entities/file_pb.d.ts.map +1 -0
  3. package/dist/gen/src/proto/files/v1/entities/file_pb.js +77 -0
  4. package/dist/gen/src/proto/files/v1/service_pb.d.ts +44 -0
  5. package/dist/gen/src/proto/files/v1/service_pb.d.ts.map +1 -0
  6. package/dist/gen/src/proto/files/v1/service_pb.js +18 -0
  7. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.d.ts +391 -0
  8. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.d.ts.map +1 -0
  9. package/dist/gen/src/proto/promotions/v1/entities/campaign_pb.js +140 -0
  10. package/dist/gen/src/proto/promotions/v1/service_pb.d.ts +68 -0
  11. package/dist/gen/src/proto/promotions/v1/service_pb.d.ts.map +1 -0
  12. package/dist/gen/src/proto/promotions/v1/service_pb.js +18 -0
  13. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.d.ts +508 -0
  14. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.d.ts.map +1 -0
  15. package/dist/gen/src/proto/stocknodes/v1/entities/stocknode_pb.js +150 -0
  16. package/dist/gen/src/proto/stocknodes/v1/service_pb.d.ts +68 -0
  17. package/dist/gen/src/proto/stocknodes/v1/service_pb.d.ts.map +1 -0
  18. package/dist/gen/src/proto/stocknodes/v1/service_pb.js +18 -0
  19. package/dist/src/index.d.ts +828 -5
  20. package/dist/src/index.d.ts.map +1 -1
  21. package/dist/src/index.js +48 -5
  22. package/dist/src/interceptors.d.ts +1 -1
  23. package/dist/src/interceptors.d.ts.map +1 -1
  24. package/dist/src/interceptors.js +2 -2
  25. package/package.json +8 -10
  26. package/buf/validate/validate_pb.ts +0 -5001
  27. package/dist/src/address.d.ts +0 -53
  28. package/dist/src/address.d.ts.map +0 -1
  29. package/dist/src/address.js +0 -233
  30. package/dist/src/address.spec.d.ts +0 -2
  31. package/dist/src/address.spec.d.ts.map +0 -1
  32. package/dist/src/address.spec.js +0 -488
  33. package/dist/src/auth.d.ts +0 -27
  34. package/dist/src/auth.d.ts.map +0 -1
  35. package/dist/src/auth.js +0 -155
  36. package/dist/src/auth.spec.d.ts +0 -2
  37. package/dist/src/auth.spec.d.ts.map +0 -1
  38. package/dist/src/auth.spec.js +0 -582
  39. package/dist/src/compressor/brotli.d.ts +0 -3
  40. package/dist/src/compressor/brotli.d.ts.map +0 -1
  41. package/dist/src/compressor/brotli.js +0 -30
  42. package/dist/src/policies.d.ts +0 -217
  43. package/dist/src/policies.d.ts.map +0 -1
  44. package/dist/src/policies.js +0 -322
  45. package/dist/src/policies.spec.d.ts +0 -2
  46. package/dist/src/policies.spec.d.ts.map +0 -1
  47. package/dist/src/policies.spec.js +0 -463
  48. package/dist/src/products.d.ts +0 -39
  49. package/dist/src/products.d.ts.map +0 -1
  50. package/dist/src/products.js +0 -95
  51. package/dist/src/products.spec.d.ts +0 -2
  52. package/dist/src/products.spec.d.ts.map +0 -1
  53. package/dist/src/products.spec.js +0 -519
  54. package/dist/src/profile.d.ts +0 -62
  55. package/dist/src/profile.d.ts.map +0 -1
  56. package/dist/src/profile.js +0 -151
  57. package/dist/src/profile.spec.d.ts +0 -2
  58. package/dist/src/profile.spec.d.ts.map +0 -1
  59. package/dist/src/profile.spec.js +0 -475
  60. package/dist/src/registration.d.ts +0 -60
  61. package/dist/src/registration.d.ts.map +0 -1
  62. package/dist/src/registration.js +0 -147
  63. package/dist/src/test-utils.d.ts +0 -87
  64. package/dist/src/test-utils.d.ts.map +0 -1
  65. package/dist/src/test-utils.js +0 -132
  66. package/gen/buf/validate/validate_pb.ts +0 -4799
  67. package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
  68. package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
  69. package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
  70. package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
  71. package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
  72. package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
  73. package/gen/src/proto/auth/v1/service.pb.go +0 -119
  74. package/gen/src/proto/auth/v1/service_pb.ts +0 -152
  75. package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
  76. package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
  77. package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
  78. package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
  79. package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
  80. package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
  81. package/gen/src/proto/customers/v1/service.pb.go +0 -110
  82. package/gen/src/proto/customers/v1/service_pb.ts +0 -121
  83. package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
  84. package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
  85. package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
  86. package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
  87. package/gen/src/proto/files/v1/service.pb.go +0 -85
  88. package/gen/src/proto/files/v1/service_pb.ts +0 -65
  89. package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
  90. package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
  91. package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
  92. package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
  93. package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
  94. package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
  95. package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
  96. package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
  97. package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
  98. package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
  99. package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
  100. package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
  101. package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
  102. package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
  103. package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
  104. package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
  105. package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
  106. package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
  107. package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
  108. package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
  109. package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
  110. package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
  111. package/gen/src/proto/products/v1/service.pb.go +0 -250
  112. package/gen/src/proto/products/v1/service_pb.ts +0 -429
  113. package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
  114. package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
  115. package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
  116. package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
  117. package/gen/src/proto/promotions/v1/service.pb.go +0 -98
  118. package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
  119. package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
  120. package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
  121. package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
  122. package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
  123. package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
  124. 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
- }