@acequants/aegis-contracts 0.1.45 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/gen/auth/v1/auth.d.ts +379 -265
- package/dist/src/gen/auth/v1/auth.d.ts.map +1 -1
- package/dist/src/gen/auth/v1/auth.js +1783 -710
- package/dist/src/gen/billing/v1/billing.d.ts +1 -0
- package/dist/src/gen/billing/v1/billing.d.ts.map +1 -1
- package/dist/src/gen/billing/v1/billing.js +19 -10
- package/package.json +1 -1
- package/proto/auth/v1/auth.proto +296 -146
- package/proto/billing/v1/billing.proto +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../../../../src/gen/billing/v1/billing.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,yBAAyB;AACzB,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,C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ACnF,UAAU,EAAE,eAAe,CAAC,+BAA+B,EAAE,cAAc,CAAC,CAAC;CAC9E"}
|
|
@@ -100,7 +100,7 @@ export const GrpcDtoMessage = {
|
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
102
|
function createBaseGrpcDtoCurrency() {
|
|
103
|
-
return { publicId: "", code: "", name: "", symbol: "", isActive: false, exchangeRate: 0 };
|
|
103
|
+
return { publicId: "", code: "", name: "", symbol: "", isActive: false, isBase: false, exchangeRate: 0 };
|
|
104
104
|
}
|
|
105
105
|
export const GrpcDtoCurrency = {
|
|
106
106
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -119,17 +119,20 @@ export const GrpcDtoCurrency = {
|
|
|
119
119
|
if (message.isActive !== false) {
|
|
120
120
|
writer.uint32(40).bool(message.isActive);
|
|
121
121
|
}
|
|
122
|
+
if (message.isBase !== false) {
|
|
123
|
+
writer.uint32(48).bool(message.isBase);
|
|
124
|
+
}
|
|
122
125
|
if (message.exchangeRate !== 0) {
|
|
123
|
-
writer.uint32(
|
|
126
|
+
writer.uint32(61).float(message.exchangeRate);
|
|
124
127
|
}
|
|
125
128
|
if (message.createdAt !== undefined) {
|
|
126
|
-
Timestamp.encode(message.createdAt, writer.uint32(
|
|
129
|
+
Timestamp.encode(message.createdAt, writer.uint32(66).fork()).ldelim();
|
|
127
130
|
}
|
|
128
131
|
if (message.updatedAt !== undefined) {
|
|
129
|
-
Timestamp.encode(message.updatedAt, writer.uint32(
|
|
132
|
+
Timestamp.encode(message.updatedAt, writer.uint32(74).fork()).ldelim();
|
|
130
133
|
}
|
|
131
134
|
if (message.deletedAt !== undefined) {
|
|
132
|
-
Timestamp.encode(message.deletedAt, writer.uint32(
|
|
135
|
+
Timestamp.encode(message.deletedAt, writer.uint32(82).fork()).ldelim();
|
|
133
136
|
}
|
|
134
137
|
return writer;
|
|
135
138
|
},
|
|
@@ -171,27 +174,33 @@ export const GrpcDtoCurrency = {
|
|
|
171
174
|
message.isActive = reader.bool();
|
|
172
175
|
continue;
|
|
173
176
|
case 6:
|
|
174
|
-
if (tag !==
|
|
177
|
+
if (tag !== 48) {
|
|
175
178
|
break;
|
|
176
179
|
}
|
|
177
|
-
message.
|
|
180
|
+
message.isBase = reader.bool();
|
|
178
181
|
continue;
|
|
179
182
|
case 7:
|
|
180
|
-
if (tag !==
|
|
183
|
+
if (tag !== 61) {
|
|
181
184
|
break;
|
|
182
185
|
}
|
|
183
|
-
message.
|
|
186
|
+
message.exchangeRate = reader.float();
|
|
184
187
|
continue;
|
|
185
188
|
case 8:
|
|
186
189
|
if (tag !== 66) {
|
|
187
190
|
break;
|
|
188
191
|
}
|
|
189
|
-
message.
|
|
192
|
+
message.createdAt = Timestamp.decode(reader, reader.uint32());
|
|
190
193
|
continue;
|
|
191
194
|
case 9:
|
|
192
195
|
if (tag !== 74) {
|
|
193
196
|
break;
|
|
194
197
|
}
|
|
198
|
+
message.updatedAt = Timestamp.decode(reader, reader.uint32());
|
|
199
|
+
continue;
|
|
200
|
+
case 10:
|
|
201
|
+
if (tag !== 82) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
195
204
|
message.deletedAt = Timestamp.decode(reader, reader.uint32());
|
|
196
205
|
continue;
|
|
197
206
|
}
|
package/package.json
CHANGED
package/proto/auth/v1/auth.proto
CHANGED
|
@@ -7,18 +7,16 @@ option java_multiple_files = true;
|
|
|
7
7
|
import "google/protobuf/timestamp.proto";
|
|
8
8
|
// import "shared/v1/shared.proto";
|
|
9
9
|
|
|
10
|
+
message GrpcDtoMessage {
|
|
11
|
+
string message = 1;
|
|
12
|
+
}
|
|
10
13
|
|
|
11
|
-
// ********************************* SHARED *********************************
|
|
12
14
|
message GrpcDtoPagination {
|
|
13
15
|
int32 total_items = 1;
|
|
14
16
|
int32 total_pages = 2;
|
|
15
17
|
int32 current_page = 3;
|
|
16
18
|
int32 page_size = 4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message GrpcDtoMessage {
|
|
20
|
-
string message = 1;
|
|
21
|
-
}
|
|
19
|
+
}
|
|
22
20
|
|
|
23
21
|
message GrpcDtoPermission {
|
|
24
22
|
string public_id = 1;
|
|
@@ -26,13 +24,71 @@ message GrpcDtoPermission {
|
|
|
26
24
|
string description = 3;
|
|
27
25
|
google.protobuf.Timestamp created_at = 4;
|
|
28
26
|
google.protobuf.Timestamp updated_at = 5;
|
|
29
|
-
google.protobuf.Timestamp deleted_at = 6;
|
|
30
27
|
}
|
|
31
28
|
|
|
32
|
-
message
|
|
29
|
+
message GrpcInputSeedPermission {
|
|
30
|
+
string name = 1;
|
|
31
|
+
string description = 2;
|
|
32
|
+
repeated string scopes = 3;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message GrpcInputSeedPermissions {
|
|
36
|
+
repeated GrpcInputSeedPermission permissions = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message GrpcInputPermissions {
|
|
40
|
+
optional string search = 1;
|
|
41
|
+
|
|
42
|
+
optional int32 page = 2;
|
|
43
|
+
optional int32 page_size = 3;
|
|
44
|
+
|
|
45
|
+
optional string sort_by = 4;
|
|
46
|
+
optional string sort_order = 5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message GrpcDtoPermissions {
|
|
33
50
|
repeated GrpcDtoPermission permissions = 1;
|
|
34
51
|
}
|
|
35
52
|
|
|
53
|
+
message GrpcDtoPermissionsPaginated {
|
|
54
|
+
GrpcDtoPagination meta = 1;
|
|
55
|
+
repeated GrpcDtoPermission items = 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message GrpcDtoGeoCurrency {
|
|
59
|
+
string public_id = 1;
|
|
60
|
+
string code = 2;
|
|
61
|
+
string name = 3;
|
|
62
|
+
string symbol = 4;
|
|
63
|
+
string is_base = 5;
|
|
64
|
+
string is_active = 6;
|
|
65
|
+
string exchange_rate = 7;
|
|
66
|
+
google.protobuf.Timestamp created_at = 8;
|
|
67
|
+
google.protobuf.Timestamp updated_at = 9;
|
|
68
|
+
google.protobuf.Timestamp deleted_at = 10;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message GrpcDtoGeoLanguage {
|
|
72
|
+
string public_id = 1;
|
|
73
|
+
string iso639_1 = 2;
|
|
74
|
+
string iso639_2 = 3;
|
|
75
|
+
string name = 4;
|
|
76
|
+
string is_active = 5;
|
|
77
|
+
google.protobuf.Timestamp created_at = 6;
|
|
78
|
+
google.protobuf.Timestamp updated_at = 7;
|
|
79
|
+
google.protobuf.Timestamp deleted_at = 8;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message GrpcDtoGeoTimezone {
|
|
83
|
+
string public_id = 1;
|
|
84
|
+
|
|
85
|
+
string iana = 2;
|
|
86
|
+
|
|
87
|
+
google.protobuf.Timestamp created_at = 3;
|
|
88
|
+
google.protobuf.Timestamp updated_at = 4;
|
|
89
|
+
google.protobuf.Timestamp deleted_at = 5;
|
|
90
|
+
}
|
|
91
|
+
|
|
36
92
|
message GrpcDtoClientType {
|
|
37
93
|
string public_id = 1;
|
|
38
94
|
string name = 2;
|
|
@@ -42,237 +98,331 @@ message GrpcDtoClientType {
|
|
|
42
98
|
}
|
|
43
99
|
|
|
44
100
|
message GrpcDtoClient {
|
|
45
|
-
string
|
|
101
|
+
string public_id = 1;
|
|
46
102
|
string name = 2;
|
|
103
|
+
|
|
47
104
|
optional string description = 3;
|
|
48
|
-
optional GrpcDtoClientType
|
|
105
|
+
optional GrpcDtoClientType client_type = 4;
|
|
106
|
+
|
|
49
107
|
google.protobuf.Timestamp createdAt = 5;
|
|
50
108
|
google.protobuf.Timestamp updatedAt = 6;
|
|
51
109
|
google.protobuf.Timestamp deletedAt = 7;
|
|
52
110
|
}
|
|
53
111
|
|
|
54
|
-
|
|
112
|
+
message GrpcDtoApiKey {
|
|
113
|
+
string public_id = 1;
|
|
114
|
+
|
|
115
|
+
string key = 2;
|
|
116
|
+
optional string scopes = 3;
|
|
117
|
+
string revoked = 4;
|
|
118
|
+
optional string expiresAt = 5;
|
|
119
|
+
optional string expireStatus = 6;
|
|
120
|
+
optional string lastUsedAt = 7;
|
|
121
|
+
optional string lastUsedIp = 8;
|
|
122
|
+
|
|
123
|
+
google.protobuf.Timestamp created_at = 9;
|
|
124
|
+
google.protobuf.Timestamp updated_at = 10;
|
|
125
|
+
google.protobuf.Timestamp deleted_at = 11;
|
|
126
|
+
|
|
127
|
+
optional GrpcDtoService service = 12;
|
|
128
|
+
}
|
|
55
129
|
|
|
56
|
-
// ---- AUTH ----
|
|
57
130
|
message GrpcDtoService {
|
|
58
131
|
string publicId = 1;
|
|
132
|
+
|
|
59
133
|
string namespace = 2;
|
|
60
|
-
|
|
134
|
+
string origin = 3;
|
|
135
|
+
string reset_path = 4;
|
|
136
|
+
string captcha_score_threshold = 5;
|
|
137
|
+
string captcha_provider = 6;
|
|
61
138
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
139
|
+
optional string description = 7;
|
|
140
|
+
optional GrpcDtoGeoCurrency default_currency = 8;
|
|
141
|
+
optional GrpcDtoGeoLanguage default_language = 9;
|
|
142
|
+
optional GrpcDtoGeoTimezone default_timezone =10;
|
|
67
143
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
144
|
+
repeated GrpcDtoApiKey apiKeys = 11;
|
|
145
|
+
|
|
146
|
+
google.protobuf.Timestamp created_at = 12;
|
|
147
|
+
google.protobuf.Timestamp updated_at = 13;
|
|
148
|
+
google.protobuf.Timestamp deleted_at = 14;
|
|
72
149
|
}
|
|
73
150
|
|
|
74
|
-
message
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
151
|
+
message GrpcDtoRole {
|
|
152
|
+
string public_id = 1;
|
|
153
|
+
bool is_agent = 2;
|
|
154
|
+
string name = 3;
|
|
155
|
+
optional string description = 4;
|
|
78
156
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
string ip = 3;
|
|
83
|
-
}
|
|
157
|
+
google.protobuf.Timestamp created_at = 5;
|
|
158
|
+
google.protobuf.Timestamp updated_at = 6;
|
|
159
|
+
google.protobuf.Timestamp deleted_at = 7;
|
|
84
160
|
|
|
85
|
-
|
|
161
|
+
optional GrpcDtoService service = 8;
|
|
162
|
+
optional GrpcDtoClient client = 9;
|
|
86
163
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
string publicId = 1;
|
|
164
|
+
repeated GrpcDtoPermission permissions = 10;
|
|
165
|
+
repeated GrpcDtoUser users = 11;
|
|
90
166
|
}
|
|
91
167
|
|
|
92
|
-
message
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
optional int32 page_size = 3;
|
|
96
|
-
optional string sort_by = 4;
|
|
97
|
-
optional string sort_order = 5;
|
|
98
|
-
}
|
|
168
|
+
message GrpcDtoRolePermission {
|
|
169
|
+
string public_id = 1;
|
|
170
|
+
string source = 2;
|
|
99
171
|
|
|
100
|
-
|
|
101
|
-
string
|
|
102
|
-
|
|
172
|
+
optional string source_feature_public_id = 3;
|
|
173
|
+
optional string source_feature_permission_public_id = 4;
|
|
174
|
+
optional string source_subscription_public_id = 5;
|
|
103
175
|
|
|
104
|
-
|
|
105
|
-
|
|
176
|
+
google.protobuf.Timestamp created_at = 6;
|
|
177
|
+
google.protobuf.Timestamp updated_at = 7;
|
|
178
|
+
google.protobuf.Timestamp deleted_at = 8;
|
|
179
|
+
|
|
180
|
+
optional GrpcDtoRole role = 9;
|
|
181
|
+
optional GrpcDtoPermission permission = 10;
|
|
106
182
|
}
|
|
107
183
|
|
|
108
|
-
message
|
|
109
|
-
|
|
110
|
-
}
|
|
184
|
+
message GrpcDtoUserRole {
|
|
185
|
+
string public_id = 1;
|
|
111
186
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
optional string search = 2;
|
|
115
|
-
optional int32 page = 3;
|
|
116
|
-
optional int32 pageSize = 4;
|
|
117
|
-
optional string sortBy = 5;
|
|
118
|
-
optional string sortOrder = 6;
|
|
119
|
-
}
|
|
187
|
+
optional GrpcDtoUser user = 2;
|
|
188
|
+
optional GrpcDtoRole role = 3;
|
|
120
189
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
optional string search=2;
|
|
124
|
-
optional int32 page=3;
|
|
125
|
-
optional int32 pageSize=4;
|
|
126
|
-
optional string sortBy=5;
|
|
127
|
-
optional string sortOrder=6;
|
|
190
|
+
google.protobuf.Timestamp created_at = 4;
|
|
191
|
+
google.protobuf.Timestamp updated_at = 5;
|
|
128
192
|
}
|
|
129
193
|
|
|
130
|
-
message
|
|
131
|
-
|
|
194
|
+
message GrpcDtoUserAccountType {
|
|
195
|
+
string public_id = 1;
|
|
196
|
+
string name = 2;
|
|
197
|
+
google.protobuf.Timestamp created_at = 3;
|
|
198
|
+
google.protobuf.Timestamp updated_at = 4;
|
|
199
|
+
google.protobuf.Timestamp deleted_at = 5;
|
|
132
200
|
}
|
|
133
201
|
|
|
134
|
-
message
|
|
202
|
+
message GrpcDtoUser {
|
|
135
203
|
string public_id = 1;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
204
|
+
string email = 2;
|
|
205
|
+
string phone = 3;
|
|
206
|
+
string name = 4;
|
|
207
|
+
string status = 5;
|
|
139
208
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
209
|
+
optional string locked_at =6;
|
|
210
|
+
optional string lock_reason =7;
|
|
211
|
+
optional string last_login_at = 8;
|
|
212
|
+
optional string last_password_change_at = 9;
|
|
213
|
+
|
|
214
|
+
bool is_email_verified = 10;
|
|
215
|
+
bool is_phone_verified = 11;
|
|
216
|
+
bool mfa_enabled = 12;
|
|
143
217
|
|
|
144
|
-
|
|
145
|
-
repeated GrpcDtoPermission items = 1;
|
|
146
|
-
GrpcDtoPagination meta = 2;
|
|
147
|
-
}
|
|
218
|
+
optional bool user_can_edit = 13;
|
|
148
219
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
optional
|
|
220
|
+
google.protobuf.Timestamp created_at = 14;
|
|
221
|
+
google.protobuf.Timestamp updated_at = 15;
|
|
222
|
+
google.protobuf.Timestamp deleted_at = 16;
|
|
223
|
+
|
|
224
|
+
optional GrpcDtoService service=17;
|
|
225
|
+
optional GrpcDtoUserAccountType user_account_type=18;
|
|
226
|
+
optional GrpcDtoGeoLanguage language=19;
|
|
227
|
+
optional GrpcDtoGeoTimezone timezone=20;
|
|
228
|
+
optional GrpcDtoClient client=21;
|
|
229
|
+
|
|
230
|
+
repeated GrpcDtoUserRole roles=22;
|
|
154
231
|
}
|
|
155
232
|
|
|
156
|
-
message
|
|
157
|
-
|
|
158
|
-
|
|
233
|
+
message GrpcDtoRoles {
|
|
234
|
+
GrpcDtoPagination meta = 1;
|
|
235
|
+
repeated GrpcDtoRole items = 2;
|
|
159
236
|
}
|
|
160
237
|
|
|
161
|
-
message
|
|
162
|
-
|
|
163
|
-
GrpcDtoPagination meta = 2;
|
|
238
|
+
message GrpcInputRole {
|
|
239
|
+
string public_id = 1;
|
|
164
240
|
}
|
|
165
241
|
|
|
166
|
-
// ---- ROLE ----
|
|
167
242
|
message GrpcInputRoles {
|
|
168
|
-
optional string
|
|
243
|
+
optional string client_public_id = 1;
|
|
169
244
|
optional string search = 2;
|
|
170
|
-
|
|
171
|
-
int32
|
|
245
|
+
|
|
246
|
+
optional int32 page = 3;
|
|
247
|
+
optional int32 page_size = 4;
|
|
248
|
+
|
|
172
249
|
optional string sort_by = 5;
|
|
173
250
|
optional string sort_order = 6;
|
|
174
251
|
}
|
|
175
252
|
|
|
176
|
-
message
|
|
177
|
-
string
|
|
253
|
+
message GrpcInputPermission {
|
|
254
|
+
string public_id = 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message GrpcInputRolePermissions {
|
|
258
|
+
string role_public_id = 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
message GrpcDtoRolePermissions {
|
|
262
|
+
repeated GrpcDtoRolePermission role_permissions = 1;
|
|
178
263
|
}
|
|
179
264
|
|
|
180
265
|
message GrpcInputRoleCreate {
|
|
181
266
|
string name = 1;
|
|
182
267
|
optional string description = 2;
|
|
183
|
-
optional bool
|
|
184
|
-
optional string
|
|
268
|
+
optional bool is_agent = 3;
|
|
269
|
+
optional string client_public_id = 4;
|
|
185
270
|
}
|
|
186
271
|
|
|
187
272
|
message GrpcInputRoleUpdate {
|
|
188
|
-
string
|
|
273
|
+
string public_id = 1;
|
|
189
274
|
optional string name = 2;
|
|
190
275
|
optional string description = 3;
|
|
191
|
-
optional bool
|
|
276
|
+
optional bool is_agent = 4;
|
|
192
277
|
}
|
|
193
278
|
|
|
194
279
|
message GrpcInputRoleRecycle {
|
|
195
|
-
repeated string
|
|
280
|
+
repeated string public_ids = 1;
|
|
196
281
|
}
|
|
197
282
|
|
|
198
283
|
message GrpcInputRoleRestore {
|
|
199
|
-
repeated string
|
|
284
|
+
repeated string public_ids = 1;
|
|
200
285
|
}
|
|
201
286
|
|
|
202
287
|
message GrpcInputRolePermissionsAdd {
|
|
203
|
-
string
|
|
204
|
-
|
|
205
|
-
optional string source=
|
|
206
|
-
optional string
|
|
207
|
-
|
|
288
|
+
string public_id=1;
|
|
289
|
+
|
|
290
|
+
optional string source= 2;
|
|
291
|
+
optional string source_feature_public_id = 3;
|
|
292
|
+
|
|
293
|
+
repeated string permission_ids=4;
|
|
294
|
+
repeated string source_feature_permission_public_ids = 5;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
message GrpcDtoPermissionsAdd {
|
|
298
|
+
repeated GrpcDtoPermission permissions = 1;
|
|
208
299
|
}
|
|
209
300
|
|
|
210
301
|
message GrpcInputRolePermissionsRemove {
|
|
211
|
-
repeated string
|
|
302
|
+
repeated string public_role_permission_ids = 1;
|
|
303
|
+
string reason = 2;
|
|
212
304
|
}
|
|
213
305
|
|
|
214
|
-
message
|
|
306
|
+
message GrpcInputAuthNZ {
|
|
307
|
+
string user_agent = 1;
|
|
308
|
+
string ip = 2;
|
|
309
|
+
string permission_name = 3;
|
|
310
|
+
repeated string permission_scopes = 4;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
message GrpcDtoAuthNZ {
|
|
314
|
+
optional bool valid = 1;
|
|
315
|
+
optional string reason = 2;
|
|
316
|
+
optional GrpcDtoIdentity identity = 3;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message GrpcDtoIdentity {
|
|
320
|
+
GrpcDtoIdentitySession session = 1;
|
|
321
|
+
GrpcDtoIdentityService service = 2;
|
|
322
|
+
GrpcDtoIdentityUser user = 3;
|
|
323
|
+
|
|
324
|
+
optional GrpcDtoIdentityAgent agent = 4;
|
|
325
|
+
optional GrpcDtoIdentityClient client = 5;
|
|
326
|
+
|
|
327
|
+
repeated GrpcDtoIdentityRole roles = 6;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message GrpcDtoIdentitySession {
|
|
331
|
+
string public_id = 1;
|
|
332
|
+
google.protobuf.Timestamp expires_at = 2;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
message GrpcDtoIdentityService {
|
|
336
|
+
string publicId = 1;
|
|
337
|
+
string namespace = 2;
|
|
338
|
+
|
|
339
|
+
GrpcDtoIdentityGeoLanguage default_language = 3;
|
|
340
|
+
GrpcDtoIdentityGeoTimezone default_timezone = 4;
|
|
341
|
+
GrpcDtoIdentityGeoCurrency default_currency = 5;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message GrpcDtoIdentityGeoLanguage {
|
|
345
|
+
string public_id = 1;
|
|
346
|
+
string iso639_1 = 2;
|
|
347
|
+
string name = 3;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
message GrpcDtoIdentityGeoTimezone {
|
|
351
|
+
string public_id = 1;
|
|
352
|
+
string iana = 2;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
message GrpcDtoIdentityGeoCurrency {
|
|
356
|
+
string public_id = 1;
|
|
357
|
+
string code = 2;
|
|
358
|
+
string name = 3;
|
|
359
|
+
|
|
360
|
+
optional string symbol = 4;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
message GrpcDtoIdentityUser {
|
|
215
364
|
string public_id = 1;
|
|
216
365
|
string name = 2;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
optional
|
|
223
|
-
optional GrpcDtoClient client = 9;
|
|
224
|
-
repeated GrpcDtoPermission permissions = 10;
|
|
225
|
-
repeated GrpcDtoUser users = 11;
|
|
366
|
+
string status = 3;
|
|
367
|
+
|
|
368
|
+
GrpcDtoIdentityGeoLanguage language = 4;
|
|
369
|
+
GrpcDtoIdentityGeoTimezone timezone =5;
|
|
370
|
+
|
|
371
|
+
optional GrpcDtoIdentityAccountType account_type = 6;
|
|
226
372
|
}
|
|
227
373
|
|
|
228
|
-
message
|
|
229
|
-
|
|
230
|
-
|
|
374
|
+
message GrpcDtoIdentityAccountType {
|
|
375
|
+
string public_id = 1;
|
|
376
|
+
string name = 2;
|
|
231
377
|
}
|
|
232
378
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
379
|
+
message GrpcDtoIdentityRole {
|
|
380
|
+
string public_id = 1;
|
|
381
|
+
string name = 2;
|
|
382
|
+
}
|
|
236
383
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
GrpcDtoRole role = 1;
|
|
384
|
+
message GrpcDtoIdentityAgent {
|
|
385
|
+
string user_public_id = 1;
|
|
240
386
|
}
|
|
241
387
|
|
|
242
|
-
message
|
|
388
|
+
message GrpcDtoIdentityClient {
|
|
243
389
|
string public_id = 1;
|
|
244
|
-
string
|
|
245
|
-
string
|
|
246
|
-
|
|
247
|
-
optional string
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
repeated GrpcDtoUserRole roles = 9;
|
|
390
|
+
string name = 2;
|
|
391
|
+
string type = 3;
|
|
392
|
+
|
|
393
|
+
optional string is_independent_vendor = 4;
|
|
394
|
+
optional GrpcDtoIdentityManagedBy managed_by = 5;
|
|
395
|
+
|
|
396
|
+
repeated GrpcDtoIdentityManagingVendor managing_vendors = 6;
|
|
252
397
|
}
|
|
253
398
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
399
|
+
message GrpcDtoIdentityManagedBy {
|
|
400
|
+
string client_public_id = 1;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
message GrpcDtoIdentityManagingVendor {
|
|
404
|
+
string user_public_id = 1;
|
|
405
|
+
}
|
|
258
406
|
|
|
259
|
-
|
|
407
|
+
service AuthService {
|
|
408
|
+
/** PERMISSION */
|
|
260
409
|
rpc PermissionsSeed (GrpcInputSeedPermissions) returns (GrpcDtoPermissions);
|
|
261
410
|
rpc Permissions (GrpcInputPermissions) returns (GrpcDtoPermissionsPaginated);
|
|
262
411
|
rpc Permission (GrpcInputPermission) returns (GrpcDtoPermission);
|
|
263
|
-
rpc GetVendorFeatures (GrpcInputVendorFeatures) returns (GrpcDtoVendorFeatures);
|
|
264
|
-
rpc GetFeaturePermissions (GrpcInputGetFeaturePermissions) returns (GrpcDtoFeaturePermissions);
|
|
265
412
|
|
|
266
|
-
|
|
413
|
+
/** ROLE */
|
|
267
414
|
rpc Roles (GrpcInputRoles) returns (GrpcDtoRoles);
|
|
268
415
|
rpc Role (GrpcInputRole) returns (GrpcDtoRole);
|
|
416
|
+
rpc RolePermissions (GrpcInputRolePermissions) returns (GrpcDtoRolePermissions);
|
|
269
417
|
rpc RoleCreate (GrpcInputRoleCreate) returns (GrpcDtoRole);
|
|
270
418
|
rpc RoleUpdate (GrpcInputRoleUpdate) returns (GrpcDtoRole);
|
|
271
419
|
rpc RolesRecycle (GrpcInputRoleRecycle) returns (GrpcDtoMessage);
|
|
272
420
|
rpc RolesRestore (GrpcInputRoleRestore) returns (GrpcDtoMessage);
|
|
273
|
-
rpc RolePermissions (GrpcInputRolePermissions) returns (GrpcDtoRolePermissions);
|
|
274
421
|
rpc RolePermissionsAdd (GrpcInputRolePermissionsAdd) returns (GrpcDtoPermissionsAdd);
|
|
275
422
|
rpc RolePermissionsRemove (GrpcInputRolePermissionsRemove) returns (GrpcDtoMessage);
|
|
423
|
+
|
|
424
|
+
/** AUTH-Z */
|
|
425
|
+
rpc AuthNZ (GrpcInputAuthNZ) returns (GrpcDtoAuthNZ);
|
|
426
|
+
|
|
427
|
+
// rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
|
|
276
428
|
}
|
|
277
|
-
|
|
278
|
-
// rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
|