@fi-ts/api 0.0.1 → 0.0.3
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/buf/validate/validate_pb.ts +1 -1
- package/fits/api/mvm/v1/domain_pb.d.ts +89 -0
- package/fits/api/mvm/v1/domain_pb.js +32 -0
- package/fits/api/mvm/v1/domain_pb.ts +113 -0
- package/fits/api/mvm/v1/ldap_pb.d.ts +89 -0
- package/fits/api/mvm/v1/ldap_pb.js +32 -0
- package/fits/api/mvm/v1/ldap_pb.ts +113 -0
- package/fits/api/mvm/v1/location_pb.d.ts +4 -3
- package/fits/api/mvm/v1/location_pb.js +4 -4
- package/fits/api/mvm/v1/location_pb.ts +8 -7
- package/fits/api/mvm/v1/mvm_pb.d.ts +1 -1
- package/fits/api/mvm/v1/mvm_pb.js +4 -4
- package/fits/api/mvm/v1/mvm_pb.ts +5 -5
- package/fits/api/mvm/v1/os_pb.js +4 -4
- package/fits/api/mvm/v1/os_pb.ts +4 -4
- package/fits/api/mvm/v1/vlan_pb.d.ts +26 -64
- package/fits/api/mvm/v1/vlan_pb.js +6 -50
- package/fits/api/mvm/v1/vlan_pb.ts +33 -77
- package/fits/api/v1/common_pb.js +3 -3
- package/fits/api/v1/common_pb.ts +3 -3
- package/fits/api/v1/health_pb.js +2 -2
- package/fits/api/v1/health_pb.ts +2 -2
- package/fits/api/v1/ip_pb.d.ts +1 -1
- package/fits/api/v1/ip_pb.js +4 -4
- package/fits/api/v1/ip_pb.ts +5 -5
- package/fits/api/v1/method_pb.d.ts +2 -2
- package/fits/api/v1/method_pb.js +4 -4
- package/fits/api/v1/method_pb.ts +6 -6
- package/fits/api/v1/predefined_rules_pb.d.ts +31 -1
- package/fits/api/v1/predefined_rules_pb.js +39 -9
- package/fits/api/v1/predefined_rules_pb.ts +50 -10
- package/fits/api/v1/project_pb.d.ts +1 -1
- package/fits/api/v1/project_pb.js +4 -4
- package/fits/api/v1/project_pb.ts +5 -5
- package/fits/api/v1/tenant_pb.d.ts +1 -117
- package/fits/api/v1/tenant_pb.js +9 -29
- package/fits/api/v1/tenant_pb.ts +10 -142
- package/fits/api/v1/token_pb.d.ts +169 -218
- package/fits/api/v1/token_pb.js +41 -41
- package/fits/api/v1/token_pb.ts +192 -247
- package/fits/api/v1/version_pb.js +4 -4
- package/fits/api/v1/version_pb.ts +4 -4
- package/package.json +1 -1
- package/fits/api/v1/partition_pb.d.ts +0 -251
- package/fits/api/v1/partition_pb.js +0 -62
- package/fits/api/v1/partition_pb.ts +0 -300
- package/fits/api/v1/user_pb.d.ts +0 -108
- package/fits/api/v1/user_pb.js +0 -34
- package/fits/api/v1/user_pb.ts +0 -139
- package/fits/api/v1/vpn_pb.d.ts +0 -55
- package/fits/api/v1/vpn_pb.js +0 -14
- package/fits/api/v1/vpn_pb.ts +0 -72
package/fits/api/v1/token_pb.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file fits/api/v1/token.proto (package fits.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
8
|
-
import type { AdminRole,
|
|
9
|
-
import { file_fits_api_v1_common } from "./common_pb";
|
|
10
|
-
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb";
|
|
11
|
-
import type {
|
|
12
|
-
import {
|
|
7
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
8
|
+
import type { AdminRole, Meta, ProjectRole, TenantRole } from "./common_pb.js";
|
|
9
|
+
import { file_fits_api_v1_common } from "./common_pb.js";
|
|
10
|
+
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
|
|
11
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
12
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
13
13
|
import type { Message } from "@bufbuild/protobuf";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Describes the file fits/api/v1/token.proto.
|
|
17
17
|
*/
|
|
18
18
|
export const file_fits_api_v1_token: GenFile = /*@__PURE__*/
|
|
19
|
-
fileDesc("
|
|
19
|
+
fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEiyQcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglpc3N1ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKCnRva2VuX3R5cGUYCCABKA4yFi5maXRzLmFwaS52MS5Ub2tlblR5cGVCCLpIBYIBAhABEjsKDXByb2plY3Rfcm9sZXMYCSADKAsyJC5maXRzLmFwaS52MS5Ub2tlbi5Qcm9qZWN0Um9sZXNFbnRyeRJUCgx0ZW5hbnRfcm9sZXMYCiADKAsyIy5maXRzLmFwaS52MS5Ub2tlbi5UZW5hbnRSb2xlc0VudHJ5Qhm6SBaaARPAlbixAgHQlbixAgEqBYIBAhABEjkKCmFkbWluX3JvbGUYCyABKA4yFi5maXRzLmFwaS52MS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MaXN0UmVxdWVzdBolLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAESYwoGUmV2b2tlEiYuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBonLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIgjY8xgC4PMYAUKWAQoPY29tLmZpdHMuYXBpLnYxQgpUb2tlblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_google_protobuf_timestamp]);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Token generates a jwt authentication token to access the api
|
|
@@ -66,9 +66,9 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
66
66
|
/**
|
|
67
67
|
* Permissions is a list of service methods this token can be used for
|
|
68
68
|
*
|
|
69
|
-
* @generated from field: repeated fits.api.v1.
|
|
69
|
+
* @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 5;
|
|
70
70
|
*/
|
|
71
|
-
permissions:
|
|
71
|
+
permissions: PermissionsByVisibility[];
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Expires gives the date in the future after which this token can not be used anymore
|
|
@@ -99,7 +99,7 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
99
99
|
projectRoles: { [key: string]: ProjectRole };
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* TenantRoles associates a tenant id with the corresponding role of the token owner
|
|
102
|
+
* TenantRoles associates a tenant id with the corresponding role of the token owner.
|
|
103
103
|
*
|
|
104
104
|
* @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 10;
|
|
105
105
|
*/
|
|
@@ -111,6 +111,27 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
111
111
|
* @generated from field: optional fits.api.v1.AdminRole admin_role = 11;
|
|
112
112
|
*/
|
|
113
113
|
adminRole?: AdminRole | undefined;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* RawRoles are the raw roles transmitted by the OIDC provider.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: repeated string raw_roles = 12;
|
|
119
|
+
*/
|
|
120
|
+
rawRoles: string[];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Name is the display name of the user the token was issued for.
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: string name = 13;
|
|
126
|
+
*/
|
|
127
|
+
name: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Email is the email address of the user the token was issued for.
|
|
131
|
+
*
|
|
132
|
+
* @generated from field: string email = 14;
|
|
133
|
+
*/
|
|
134
|
+
email: string;
|
|
114
135
|
};
|
|
115
136
|
|
|
116
137
|
/**
|
|
@@ -121,88 +142,186 @@ export const TokenSchema: GenMessage<Token> = /*@__PURE__*/
|
|
|
121
142
|
messageDesc(file_fits_api_v1_token, 0);
|
|
122
143
|
|
|
123
144
|
/**
|
|
124
|
-
*
|
|
145
|
+
* MethodPermission is a mapping from a subject/project to a service method
|
|
125
146
|
*
|
|
126
|
-
* @generated from message fits.api.v1.
|
|
147
|
+
* @generated from message fits.api.v1.MethodPermission
|
|
127
148
|
*/
|
|
128
|
-
export type
|
|
149
|
+
export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
|
|
129
150
|
/**
|
|
130
|
-
*
|
|
151
|
+
* Subject maybe either the project or the tenant
|
|
152
|
+
* for which the methods should be allowed
|
|
131
153
|
*
|
|
132
|
-
*
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Permissions is a list of service methods this token can be used for
|
|
154
|
+
* asterisk (*) can be specified to match any subject
|
|
155
|
+
* empty string ("") can be specified for requests that do not require a subject, e.g. partition list
|
|
156
|
+
* otherwise either a projectid or a tenant login should be specified
|
|
138
157
|
*
|
|
139
|
-
* @generated from field:
|
|
158
|
+
* @generated from field: string subject = 1;
|
|
140
159
|
*/
|
|
141
|
-
|
|
160
|
+
subject: string;
|
|
142
161
|
|
|
143
162
|
/**
|
|
144
|
-
*
|
|
163
|
+
* Methods which should be accessible
|
|
145
164
|
*
|
|
146
|
-
* @generated from field:
|
|
165
|
+
* @generated from field: repeated string methods = 2;
|
|
147
166
|
*/
|
|
148
|
-
|
|
167
|
+
methods: string[];
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Describes the message fits.api.v1.MethodPermission.
|
|
172
|
+
* Use `create(MethodPermissionSchema)` to create a new message.
|
|
173
|
+
*/
|
|
174
|
+
export const MethodPermissionSchema: GenMessage<MethodPermission> = /*@__PURE__*/
|
|
175
|
+
messageDesc(file_fits_api_v1_token, 1);
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* PermissionsByVisibility contains method permissions by visibility.
|
|
179
|
+
*
|
|
180
|
+
* @generated from message fits.api.v1.PermissionsByVisibility
|
|
181
|
+
*/
|
|
182
|
+
export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibility"> & {
|
|
183
|
+
/**
|
|
184
|
+
* Visibility defines the visibility of the requested method permissions.
|
|
185
|
+
*
|
|
186
|
+
* @generated from oneof fits.api.v1.PermissionsByVisibility.visibility
|
|
187
|
+
*/
|
|
188
|
+
visibility: {
|
|
189
|
+
/**
|
|
190
|
+
* PublicPermissions carries public method permissions.
|
|
191
|
+
*
|
|
192
|
+
* @generated from field: fits.api.v1.PublicPermissions public = 1;
|
|
193
|
+
*/
|
|
194
|
+
value: PublicPermissions;
|
|
195
|
+
case: "public";
|
|
196
|
+
} | {
|
|
197
|
+
/**
|
|
198
|
+
* SelfPermissions carries self method permissions.
|
|
199
|
+
*
|
|
200
|
+
* @generated from field: fits.api.v1.SelfPermissions self = 2;
|
|
201
|
+
*/
|
|
202
|
+
value: SelfPermissions;
|
|
203
|
+
case: "self";
|
|
204
|
+
} | {
|
|
205
|
+
/**
|
|
206
|
+
* ProjectPermissions carries project method permissions.
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: fits.api.v1.ProjectPermissions project = 3;
|
|
209
|
+
*/
|
|
210
|
+
value: ProjectPermissions;
|
|
211
|
+
case: "project";
|
|
212
|
+
} | {
|
|
213
|
+
/**
|
|
214
|
+
* TenantPermissions carries tenant method permissions.
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: fits.api.v1.TenantPermissions tenant = 4;
|
|
217
|
+
*/
|
|
218
|
+
value: TenantPermissions;
|
|
219
|
+
case: "tenant";
|
|
220
|
+
} | {
|
|
221
|
+
/**
|
|
222
|
+
* AdminPermissions carries admin method permissions.
|
|
223
|
+
*
|
|
224
|
+
* @generated from field: fits.api.v1.AdminPermissions admin = 5;
|
|
225
|
+
*/
|
|
226
|
+
value: AdminPermissions;
|
|
227
|
+
case: "admin";
|
|
228
|
+
} | { case: undefined; value?: undefined };
|
|
229
|
+
};
|
|
149
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Describes the message fits.api.v1.PermissionsByVisibility.
|
|
233
|
+
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
234
|
+
*/
|
|
235
|
+
export const PermissionsByVisibilitySchema: GenMessage<PermissionsByVisibility> = /*@__PURE__*/
|
|
236
|
+
messageDesc(file_fits_api_v1_token, 2);
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* PublicPermissions carries public method permissions.
|
|
240
|
+
*
|
|
241
|
+
* @generated from message fits.api.v1.PublicPermissions
|
|
242
|
+
*/
|
|
243
|
+
export type PublicPermissions = Message<"fits.api.v1.PublicPermissions"> & {
|
|
150
244
|
/**
|
|
151
|
-
*
|
|
245
|
+
* Methods which should be accessible.
|
|
152
246
|
*
|
|
153
|
-
* @generated from field:
|
|
247
|
+
* @generated from field: repeated string methods = 1;
|
|
154
248
|
*/
|
|
155
|
-
|
|
249
|
+
methods: string[];
|
|
250
|
+
};
|
|
156
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Describes the message fits.api.v1.PublicPermissions.
|
|
254
|
+
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
255
|
+
*/
|
|
256
|
+
export const PublicPermissionsSchema: GenMessage<PublicPermissions> = /*@__PURE__*/
|
|
257
|
+
messageDesc(file_fits_api_v1_token, 3);
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* SelfPermissions carries self method permissions.
|
|
261
|
+
*
|
|
262
|
+
* @generated from message fits.api.v1.SelfPermissions
|
|
263
|
+
*/
|
|
264
|
+
export type SelfPermissions = Message<"fits.api.v1.SelfPermissions"> & {
|
|
157
265
|
/**
|
|
158
|
-
*
|
|
266
|
+
* Methods which should be accessible.
|
|
159
267
|
*
|
|
160
|
-
* @generated from field:
|
|
268
|
+
* @generated from field: repeated string methods = 1;
|
|
161
269
|
*/
|
|
162
|
-
|
|
270
|
+
methods: string[];
|
|
271
|
+
};
|
|
163
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Describes the message fits.api.v1.SelfPermissions.
|
|
275
|
+
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
276
|
+
*/
|
|
277
|
+
export const SelfPermissionsSchema: GenMessage<SelfPermissions> = /*@__PURE__*/
|
|
278
|
+
messageDesc(file_fits_api_v1_token, 4);
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* ProjectPermissions carries project method permissions.
|
|
282
|
+
*
|
|
283
|
+
* @generated from message fits.api.v1.ProjectPermissions
|
|
284
|
+
*/
|
|
285
|
+
export type ProjectPermissions = Message<"fits.api.v1.ProjectPermissions"> & {
|
|
164
286
|
/**
|
|
165
|
-
*
|
|
287
|
+
* Project scope for the permissions.
|
|
288
|
+
* Asterisk (*) can be specified to match any subject.
|
|
166
289
|
*
|
|
167
|
-
* @generated from field:
|
|
290
|
+
* @generated from field: string project = 1;
|
|
168
291
|
*/
|
|
169
|
-
|
|
292
|
+
project: string;
|
|
170
293
|
|
|
171
294
|
/**
|
|
172
|
-
*
|
|
295
|
+
* Methods which should be accessible.
|
|
173
296
|
*
|
|
174
|
-
* @generated from field:
|
|
297
|
+
* @generated from field: repeated string methods = 2;
|
|
175
298
|
*/
|
|
176
|
-
|
|
299
|
+
methods: string[];
|
|
177
300
|
};
|
|
178
301
|
|
|
179
302
|
/**
|
|
180
|
-
* Describes the message fits.api.v1.
|
|
181
|
-
* Use `create(
|
|
303
|
+
* Describes the message fits.api.v1.ProjectPermissions.
|
|
304
|
+
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
182
305
|
*/
|
|
183
|
-
export const
|
|
184
|
-
messageDesc(file_fits_api_v1_token,
|
|
306
|
+
export const ProjectPermissionsSchema: GenMessage<ProjectPermissions> = /*@__PURE__*/
|
|
307
|
+
messageDesc(file_fits_api_v1_token, 5);
|
|
185
308
|
|
|
186
309
|
/**
|
|
187
|
-
*
|
|
310
|
+
* TenantPermissions carries tenant method permissions.
|
|
188
311
|
*
|
|
189
|
-
* @generated from message fits.api.v1.
|
|
312
|
+
* @generated from message fits.api.v1.TenantPermissions
|
|
190
313
|
*/
|
|
191
|
-
export type
|
|
314
|
+
export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
|
|
192
315
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* asterisk (*) can be specified to match any subject
|
|
197
|
-
* empty string ("") can be specified for requests that do not require a subject, e.g. partition list
|
|
198
|
-
* otherwise either a projectid or a tenant login should be specified
|
|
316
|
+
* Login of the tenant.
|
|
317
|
+
* Asterisk (*) can be specified to match any subject.
|
|
199
318
|
*
|
|
200
|
-
* @generated from field: string
|
|
319
|
+
* @generated from field: string login = 1;
|
|
201
320
|
*/
|
|
202
|
-
|
|
321
|
+
login: string;
|
|
203
322
|
|
|
204
323
|
/**
|
|
205
|
-
* Methods which should be accessible
|
|
324
|
+
* Methods which should be accessible.
|
|
206
325
|
*
|
|
207
326
|
* @generated from field: repeated string methods = 2;
|
|
208
327
|
*/
|
|
@@ -210,39 +329,32 @@ export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
|
|
|
210
329
|
};
|
|
211
330
|
|
|
212
331
|
/**
|
|
213
|
-
* Describes the message fits.api.v1.
|
|
214
|
-
* Use `create(
|
|
332
|
+
* Describes the message fits.api.v1.TenantPermissions.
|
|
333
|
+
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
215
334
|
*/
|
|
216
|
-
export const
|
|
217
|
-
messageDesc(file_fits_api_v1_token,
|
|
335
|
+
export const TenantPermissionsSchema: GenMessage<TenantPermissions> = /*@__PURE__*/
|
|
336
|
+
messageDesc(file_fits_api_v1_token, 6);
|
|
218
337
|
|
|
219
338
|
/**
|
|
220
|
-
*
|
|
339
|
+
* AdminPermissions carries admin method permissions.
|
|
221
340
|
*
|
|
222
|
-
* @generated from message fits.api.v1.
|
|
341
|
+
* @generated from message fits.api.v1.AdminPermissions
|
|
223
342
|
*/
|
|
224
|
-
export type
|
|
343
|
+
export type AdminPermissions = Message<"fits.api.v1.AdminPermissions"> & {
|
|
225
344
|
/**
|
|
226
|
-
*
|
|
345
|
+
* Methods which should be accessible.
|
|
227
346
|
*
|
|
228
|
-
* @generated from field:
|
|
347
|
+
* @generated from field: repeated string methods = 1;
|
|
229
348
|
*/
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Secret is the body if the jwt token, should be used in api requests as bearer token
|
|
234
|
-
*
|
|
235
|
-
* @generated from field: string secret = 2;
|
|
236
|
-
*/
|
|
237
|
-
secret: string;
|
|
349
|
+
methods: string[];
|
|
238
350
|
};
|
|
239
351
|
|
|
240
352
|
/**
|
|
241
|
-
* Describes the message fits.api.v1.
|
|
242
|
-
* Use `create(
|
|
353
|
+
* Describes the message fits.api.v1.AdminPermissions.
|
|
354
|
+
* Use `create(AdminPermissionsSchema)` to create a new message.
|
|
243
355
|
*/
|
|
244
|
-
export const
|
|
245
|
-
messageDesc(file_fits_api_v1_token,
|
|
356
|
+
export const AdminPermissionsSchema: GenMessage<AdminPermissions> = /*@__PURE__*/
|
|
357
|
+
messageDesc(file_fits_api_v1_token, 7);
|
|
246
358
|
|
|
247
359
|
/**
|
|
248
360
|
* TokenServiceListRequest is the request payload to list tokens
|
|
@@ -257,7 +369,7 @@ export type TokenServiceListRequest = Message<"fits.api.v1.TokenServiceListReque
|
|
|
257
369
|
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
258
370
|
*/
|
|
259
371
|
export const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest> = /*@__PURE__*/
|
|
260
|
-
messageDesc(file_fits_api_v1_token,
|
|
372
|
+
messageDesc(file_fits_api_v1_token, 8);
|
|
261
373
|
|
|
262
374
|
/**
|
|
263
375
|
* TokenServiceListResponse is the response payload of a token list request
|
|
@@ -278,7 +390,7 @@ export type TokenServiceListResponse = Message<"fits.api.v1.TokenServiceListResp
|
|
|
278
390
|
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
279
391
|
*/
|
|
280
392
|
export const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse> = /*@__PURE__*/
|
|
281
|
-
messageDesc(file_fits_api_v1_token,
|
|
393
|
+
messageDesc(file_fits_api_v1_token, 9);
|
|
282
394
|
|
|
283
395
|
/**
|
|
284
396
|
* TokenServiceRevokeRequest is the request payload of a token revoke request
|
|
@@ -299,7 +411,7 @@ export type TokenServiceRevokeRequest = Message<"fits.api.v1.TokenServiceRevokeR
|
|
|
299
411
|
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
300
412
|
*/
|
|
301
413
|
export const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest> = /*@__PURE__*/
|
|
302
|
-
messageDesc(file_fits_api_v1_token,
|
|
414
|
+
messageDesc(file_fits_api_v1_token, 10);
|
|
303
415
|
|
|
304
416
|
/**
|
|
305
417
|
* TokenServiceRevokeResponse is the response payload of a token revoke request
|
|
@@ -314,99 +426,7 @@ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevoke
|
|
|
314
426
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
315
427
|
*/
|
|
316
428
|
export const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse> = /*@__PURE__*/
|
|
317
|
-
messageDesc(file_fits_api_v1_token,
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* TokenServiceUpdateRequest is the request payload of a token update request
|
|
321
|
-
*
|
|
322
|
-
* @generated from message fits.api.v1.TokenServiceUpdateRequest
|
|
323
|
-
*/
|
|
324
|
-
export type TokenServiceUpdateRequest = Message<"fits.api.v1.TokenServiceUpdateRequest"> & {
|
|
325
|
-
/**
|
|
326
|
-
* Uuid of the token to update
|
|
327
|
-
*
|
|
328
|
-
* @generated from field: string uuid = 1;
|
|
329
|
-
*/
|
|
330
|
-
uuid: string;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* UpdateMeta contains the timestamp and strategy to be used in this update request
|
|
334
|
-
* TokenUpdate is not guarded with optlock in the backend
|
|
335
|
-
*
|
|
336
|
-
* @generated from field: fits.api.v1.UpdateMeta update_meta = 2;
|
|
337
|
-
*/
|
|
338
|
-
updateMeta?: UpdateMeta | undefined;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Description is a user given description of this token.
|
|
342
|
-
*
|
|
343
|
-
* @generated from field: optional string description = 3;
|
|
344
|
-
*/
|
|
345
|
-
description?: string | undefined;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Permissions is a list of service methods this token can be used for
|
|
349
|
-
*
|
|
350
|
-
* @generated from field: repeated fits.api.v1.MethodPermission permissions = 4;
|
|
351
|
-
*/
|
|
352
|
-
permissions: MethodPermission[];
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* ProjectRoles associates a project id with the corresponding role of the token owner
|
|
356
|
-
*
|
|
357
|
-
* @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 5;
|
|
358
|
-
*/
|
|
359
|
-
projectRoles: { [key: string]: ProjectRole };
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* TenantRoles associates a tenant id with the corresponding role of the token owner
|
|
363
|
-
*
|
|
364
|
-
* @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 6;
|
|
365
|
-
*/
|
|
366
|
-
tenantRoles: { [key: string]: TenantRole };
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* AdminRole defines the admin role of the token owner
|
|
370
|
-
*
|
|
371
|
-
* @generated from field: optional fits.api.v1.AdminRole admin_role = 7;
|
|
372
|
-
*/
|
|
373
|
-
adminRole?: AdminRole | undefined;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Labels on this token
|
|
377
|
-
*
|
|
378
|
-
* @generated from field: fits.api.v1.UpdateLabels labels = 8;
|
|
379
|
-
*/
|
|
380
|
-
labels?: UpdateLabels | undefined;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Describes the message fits.api.v1.TokenServiceUpdateRequest.
|
|
385
|
-
* Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
|
|
386
|
-
*/
|
|
387
|
-
export const TokenServiceUpdateRequestSchema: GenMessage<TokenServiceUpdateRequest> = /*@__PURE__*/
|
|
388
|
-
messageDesc(file_fits_api_v1_token, 8);
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* TokenServiceUpdateResponse is the response payload of a token update request
|
|
392
|
-
*
|
|
393
|
-
* @generated from message fits.api.v1.TokenServiceUpdateResponse
|
|
394
|
-
*/
|
|
395
|
-
export type TokenServiceUpdateResponse = Message<"fits.api.v1.TokenServiceUpdateResponse"> & {
|
|
396
|
-
/**
|
|
397
|
-
* Token is the updated token
|
|
398
|
-
*
|
|
399
|
-
* @generated from field: fits.api.v1.Token token = 1;
|
|
400
|
-
*/
|
|
401
|
-
token?: Token | undefined;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Describes the message fits.api.v1.TokenServiceUpdateResponse.
|
|
406
|
-
* Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
|
|
407
|
-
*/
|
|
408
|
-
export const TokenServiceUpdateResponseSchema: GenMessage<TokenServiceUpdateResponse> = /*@__PURE__*/
|
|
409
|
-
messageDesc(file_fits_api_v1_token, 9);
|
|
429
|
+
messageDesc(file_fits_api_v1_token, 11);
|
|
410
430
|
|
|
411
431
|
/**
|
|
412
432
|
* TokenServiceGetRequest is the request payload of a token get request
|
|
@@ -427,7 +447,7 @@ export type TokenServiceGetRequest = Message<"fits.api.v1.TokenServiceGetRequest
|
|
|
427
447
|
* Use `create(TokenServiceGetRequestSchema)` to create a new message.
|
|
428
448
|
*/
|
|
429
449
|
export const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest> = /*@__PURE__*/
|
|
430
|
-
messageDesc(file_fits_api_v1_token,
|
|
450
|
+
messageDesc(file_fits_api_v1_token, 12);
|
|
431
451
|
|
|
432
452
|
/**
|
|
433
453
|
* TokenServiceGetResponse is the response payload of a token get request
|
|
@@ -448,51 +468,6 @@ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetRespon
|
|
|
448
468
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
449
469
|
*/
|
|
450
470
|
export const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse> = /*@__PURE__*/
|
|
451
|
-
messageDesc(file_fits_api_v1_token, 11);
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* TokenServiceRefreshRequest is the request payload of a token refresh request
|
|
455
|
-
* Permissions, Roles and Expiration duration and all other properties are inherited from the calling token.
|
|
456
|
-
* The expiration duration will be calculated from the existing token (exp - iat)
|
|
457
|
-
*
|
|
458
|
-
* @generated from message fits.api.v1.TokenServiceRefreshRequest
|
|
459
|
-
*/
|
|
460
|
-
export type TokenServiceRefreshRequest = Message<"fits.api.v1.TokenServiceRefreshRequest"> & {
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Describes the message fits.api.v1.TokenServiceRefreshRequest.
|
|
465
|
-
* Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
|
|
466
|
-
*/
|
|
467
|
-
export const TokenServiceRefreshRequestSchema: GenMessage<TokenServiceRefreshRequest> = /*@__PURE__*/
|
|
468
|
-
messageDesc(file_fits_api_v1_token, 12);
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* TokenServiceRefreshResponse is the response payload of a token refresh request
|
|
472
|
-
*
|
|
473
|
-
* @generated from message fits.api.v1.TokenServiceRefreshResponse
|
|
474
|
-
*/
|
|
475
|
-
export type TokenServiceRefreshResponse = Message<"fits.api.v1.TokenServiceRefreshResponse"> & {
|
|
476
|
-
/**
|
|
477
|
-
* Token which was refreshed
|
|
478
|
-
*
|
|
479
|
-
* @generated from field: fits.api.v1.Token token = 1;
|
|
480
|
-
*/
|
|
481
|
-
token?: Token | undefined;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Secret is the body if the jwt token, should be used in api requests as bearer token
|
|
485
|
-
*
|
|
486
|
-
* @generated from field: string secret = 2;
|
|
487
|
-
*/
|
|
488
|
-
secret: string;
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Describes the message fits.api.v1.TokenServiceRefreshResponse.
|
|
493
|
-
* Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
|
|
494
|
-
*/
|
|
495
|
-
export const TokenServiceRefreshResponseSchema: GenMessage<TokenServiceRefreshResponse> = /*@__PURE__*/
|
|
496
471
|
messageDesc(file_fits_api_v1_token, 13);
|
|
497
472
|
|
|
498
473
|
/**
|
|
@@ -545,26 +520,6 @@ export const TokenService: GenService<{
|
|
|
545
520
|
input: typeof TokenServiceGetRequestSchema;
|
|
546
521
|
output: typeof TokenServiceGetResponseSchema;
|
|
547
522
|
},
|
|
548
|
-
/**
|
|
549
|
-
* Creates a token to authenticate against the platform, the secret will be only visible in the response.
|
|
550
|
-
*
|
|
551
|
-
* @generated from rpc fits.api.v1.TokenService.Create
|
|
552
|
-
*/
|
|
553
|
-
create: {
|
|
554
|
-
methodKind: "unary";
|
|
555
|
-
input: typeof TokenServiceCreateRequestSchema;
|
|
556
|
-
output: typeof TokenServiceCreateResponseSchema;
|
|
557
|
-
},
|
|
558
|
-
/**
|
|
559
|
-
* Updates a token.
|
|
560
|
-
*
|
|
561
|
-
* @generated from rpc fits.api.v1.TokenService.Update
|
|
562
|
-
*/
|
|
563
|
-
update: {
|
|
564
|
-
methodKind: "unary";
|
|
565
|
-
input: typeof TokenServiceUpdateRequestSchema;
|
|
566
|
-
output: typeof TokenServiceUpdateResponseSchema;
|
|
567
|
-
},
|
|
568
523
|
/**
|
|
569
524
|
* Returns the list of all user tokens.
|
|
570
525
|
*
|
|
@@ -585,16 +540,6 @@ export const TokenService: GenService<{
|
|
|
585
540
|
input: typeof TokenServiceRevokeRequestSchema;
|
|
586
541
|
output: typeof TokenServiceRevokeResponseSchema;
|
|
587
542
|
},
|
|
588
|
-
/**
|
|
589
|
-
* Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
|
|
590
|
-
*
|
|
591
|
-
* @generated from rpc fits.api.v1.TokenService.Refresh
|
|
592
|
-
*/
|
|
593
|
-
refresh: {
|
|
594
|
-
methodKind: "unary";
|
|
595
|
-
input: typeof TokenServiceRefreshRequestSchema;
|
|
596
|
-
output: typeof TokenServiceRefreshResponseSchema;
|
|
597
|
-
},
|
|
598
543
|
}> = /*@__PURE__*/
|
|
599
544
|
serviceDesc(file_fits_api_v1_token, 0);
|
|
600
545
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file fits/api/v1/version.proto (package fits.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
6
|
-
import { file_fits_api_v1_common } from "./common_pb";
|
|
7
|
-
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
|
+
import { file_fits_api_v1_common } from "./common_pb.js";
|
|
7
|
+
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file fits/api/v1/version.proto.
|
|
10
10
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file fits/api/v1/version.proto (package fits.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
8
|
-
import { file_fits_api_v1_common } from "./common_pb";
|
|
9
|
-
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb";
|
|
7
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
8
|
+
import { file_fits_api_v1_common } from "./common_pb.js";
|
|
9
|
+
import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
|
|
10
10
|
import type { Message } from "@bufbuild/protobuf";
|
|
11
11
|
|
|
12
12
|
/**
|
package/package.json
CHANGED