@fi-ts/api 0.0.0-pr.12.167eda91

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 (52) hide show
  1. package/buf/validate/validate_pb.d.ts +4766 -0
  2. package/buf/validate/validate_pb.js +356 -0
  3. package/buf/validate/validate_pb.ts +4967 -0
  4. package/fits/api/mvm/v1/location_pb.d.ts +83 -0
  5. package/fits/api/mvm/v1/location_pb.js +32 -0
  6. package/fits/api/mvm/v1/location_pb.ts +106 -0
  7. package/fits/api/mvm/v1/mvm_pb.d.ts +1451 -0
  8. package/fits/api/mvm/v1/mvm_pb.js +391 -0
  9. package/fits/api/mvm/v1/mvm_pb.ts +1679 -0
  10. package/fits/api/mvm/v1/os_pb.d.ts +111 -0
  11. package/fits/api/mvm/v1/os_pb.js +62 -0
  12. package/fits/api/mvm/v1/os_pb.ts +141 -0
  13. package/fits/api/mvm/v1/vlan_pb.d.ts +163 -0
  14. package/fits/api/mvm/v1/vlan_pb.js +76 -0
  15. package/fits/api/mvm/v1/vlan_pb.ts +199 -0
  16. package/fits/api/v1/common_pb.d.ts +372 -0
  17. package/fits/api/v1/common_pb.js +276 -0
  18. package/fits/api/v1/common_pb.ts +447 -0
  19. package/fits/api/v1/health_pb.d.ts +190 -0
  20. package/fits/api/v1/health_pb.js +100 -0
  21. package/fits/api/v1/health_pb.ts +229 -0
  22. package/fits/api/v1/ip_pb.d.ts +549 -0
  23. package/fits/api/v1/ip_pb.js +137 -0
  24. package/fits/api/v1/ip_pb.ts +643 -0
  25. package/fits/api/v1/method_pb.d.ts +116 -0
  26. package/fits/api/v1/method_pb.js +38 -0
  27. package/fits/api/v1/method_pb.ts +142 -0
  28. package/fits/api/v1/partition_pb.d.ts +251 -0
  29. package/fits/api/v1/partition_pb.js +62 -0
  30. package/fits/api/v1/partition_pb.ts +300 -0
  31. package/fits/api/v1/predefined_rules_pb.d.ts +126 -0
  32. package/fits/api/v1/predefined_rules_pb.js +129 -0
  33. package/fits/api/v1/predefined_rules_pb.ts +175 -0
  34. package/fits/api/v1/project_pb.d.ts +372 -0
  35. package/fits/api/v1/project_pb.js +72 -0
  36. package/fits/api/v1/project_pb.ts +436 -0
  37. package/fits/api/v1/tenant_pb.d.ts +370 -0
  38. package/fits/api/v1/tenant_pb.js +72 -0
  39. package/fits/api/v1/tenant_pb.ts +434 -0
  40. package/fits/api/v1/token_pb.d.ts +687 -0
  41. package/fits/api/v1/token_pb.js +148 -0
  42. package/fits/api/v1/token_pb.ts +782 -0
  43. package/fits/api/v1/user_pb.d.ts +108 -0
  44. package/fits/api/v1/user_pb.js +34 -0
  45. package/fits/api/v1/user_pb.ts +139 -0
  46. package/fits/api/v1/version_pb.d.ts +88 -0
  47. package/fits/api/v1/version_pb.js +32 -0
  48. package/fits/api/v1/version_pb.ts +114 -0
  49. package/fits/api/v1/vpn_pb.d.ts +55 -0
  50. package/fits/api/v1/vpn_pb.js +14 -0
  51. package/fits/api/v1/vpn_pb.ts +72 -0
  52. package/package.json +25 -0
@@ -0,0 +1,687 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { AdminRole, Labels, Meta, ProjectRole, TenantRole, UpdateLabels, UpdateMeta } from "./common_pb";
3
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file fits/api/v1/token.proto.
7
+ */
8
+ export declare const file_fits_api_v1_token: GenFile;
9
+ /**
10
+ * Token generates a jwt authentication token to access the api
11
+ *
12
+ * There are two different types of tokens, api- and user- tokens
13
+ *
14
+ * A user token is used to authenticate end user requests for example from a cli.
15
+ * The configured roles in a user token are expanded in the api server
16
+ * based on the memberships in other projects and tenants based on the role granted there.
17
+ * User tokens will never contain permissions.
18
+ * Permissions are always derived from the tenant and project roles and memberships.
19
+ *
20
+ * The api token should be used to authenticate services.
21
+ * In contrast to a user token, the api token permissions and roles apply as configured during the token create process.
22
+ *
23
+ * @generated from message fits.api.v1.Token
24
+ */
25
+ export type Token = Message<"fits.api.v1.Token"> & {
26
+ /**
27
+ * Uuid of the jwt token, used to reference it by revoke
28
+ *
29
+ * @generated from field: string uuid = 1;
30
+ */
31
+ uuid: string;
32
+ /**
33
+ * User who created this token
34
+ *
35
+ * @generated from field: string user = 2;
36
+ */
37
+ user: string;
38
+ /**
39
+ * Meta for this token
40
+ *
41
+ * @generated from field: fits.api.v1.Meta meta = 3;
42
+ */
43
+ meta?: Meta | undefined;
44
+ /**
45
+ * Description is a user given description of this token.
46
+ *
47
+ * @generated from field: string description = 4;
48
+ */
49
+ description: string;
50
+ /**
51
+ * Permissions is a list of service methods this token can be used for
52
+ *
53
+ * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 5;
54
+ */
55
+ permissions: PermissionsByVisibility[];
56
+ /**
57
+ * Expires gives the date in the future after which this token can not be used anymore
58
+ *
59
+ * @generated from field: google.protobuf.Timestamp expires = 6;
60
+ */
61
+ expires?: Timestamp | undefined;
62
+ /**
63
+ * IssuedAt gives the date when this token was created
64
+ *
65
+ * @generated from field: google.protobuf.Timestamp issued_at = 7;
66
+ */
67
+ issuedAt?: Timestamp | undefined;
68
+ /**
69
+ * TokenType describes the type of this token
70
+ *
71
+ * @generated from field: fits.api.v1.TokenType token_type = 8;
72
+ */
73
+ tokenType: TokenType;
74
+ /**
75
+ * ProjectRoles associates a project id with the corresponding role of the token owner
76
+ *
77
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 9;
78
+ */
79
+ projectRoles: {
80
+ [key: string]: ProjectRole;
81
+ };
82
+ /**
83
+ * TenantRoles associates a tenant id with the corresponding role of the token owner.
84
+ *
85
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 10;
86
+ */
87
+ tenantRoles: {
88
+ [key: string]: TenantRole;
89
+ };
90
+ /**
91
+ * AdminRole defines the admin role of the token owner
92
+ *
93
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 11;
94
+ */
95
+ adminRole?: AdminRole | undefined;
96
+ };
97
+ /**
98
+ * Describes the message fits.api.v1.Token.
99
+ * Use `create(TokenSchema)` to create a new message.
100
+ */
101
+ export declare const TokenSchema: GenMessage<Token>;
102
+ /**
103
+ * TokenServiceCreateRequest is the request payload to create a token
104
+ *
105
+ * @generated from message fits.api.v1.TokenServiceCreateRequest
106
+ */
107
+ export type TokenServiceCreateRequest = Message<"fits.api.v1.TokenServiceCreateRequest"> & {
108
+ /**
109
+ * Description of the token
110
+ *
111
+ * @generated from field: string description = 1;
112
+ */
113
+ description: string;
114
+ /**
115
+ * Permissions is a list of service methods this token can be used for.
116
+ *
117
+ * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 2;
118
+ */
119
+ permissions: PermissionsByVisibility[];
120
+ /**
121
+ * Expires gives the duration since now, after which this token can not be used anymore
122
+ *
123
+ * @generated from field: google.protobuf.Duration expires = 3;
124
+ */
125
+ expires?: Duration | undefined;
126
+ /**
127
+ * ProjectRoles associates a project id with the corresponding role of the token owner
128
+ *
129
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 4;
130
+ */
131
+ projectRoles: {
132
+ [key: string]: ProjectRole;
133
+ };
134
+ /**
135
+ * TenantRoles associates a tenant id with the corresponding role of the token owner.
136
+ *
137
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 5;
138
+ */
139
+ tenantRoles: {
140
+ [key: string]: TenantRole;
141
+ };
142
+ /**
143
+ * AdminRole defines the admin role of the token owner
144
+ *
145
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 6;
146
+ */
147
+ adminRole?: AdminRole | undefined;
148
+ /**
149
+ * Labels on this token
150
+ *
151
+ * @generated from field: fits.api.v1.Labels labels = 7;
152
+ */
153
+ labels?: Labels | undefined;
154
+ };
155
+ /**
156
+ * Describes the message fits.api.v1.TokenServiceCreateRequest.
157
+ * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
158
+ */
159
+ export declare const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest>;
160
+ /**
161
+ * MethodPermission is a mapping from a subject/project to a service method
162
+ *
163
+ * @generated from message fits.api.v1.MethodPermission
164
+ */
165
+ export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
166
+ /**
167
+ * Subject maybe either the project or the tenant
168
+ * for which the methods should be allowed
169
+ *
170
+ * asterisk (*) can be specified to match any subject
171
+ * empty string ("") can be specified for requests that do not require a subject, e.g. partition list
172
+ * otherwise either a projectid or a tenant login should be specified
173
+ *
174
+ * @generated from field: string subject = 1;
175
+ */
176
+ subject: string;
177
+ /**
178
+ * Methods which should be accessible
179
+ *
180
+ * @generated from field: repeated string methods = 2;
181
+ */
182
+ methods: string[];
183
+ };
184
+ /**
185
+ * Describes the message fits.api.v1.MethodPermission.
186
+ * Use `create(MethodPermissionSchema)` to create a new message.
187
+ */
188
+ export declare const MethodPermissionSchema: GenMessage<MethodPermission>;
189
+ /**
190
+ * PermissionsByVisibility contains method permissions by visibility.
191
+ *
192
+ * @generated from message fits.api.v1.PermissionsByVisibility
193
+ */
194
+ export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibility"> & {
195
+ /**
196
+ * Visibility defines the visibility of the requested method permissions.
197
+ *
198
+ * @generated from oneof fits.api.v1.PermissionsByVisibility.visibility
199
+ */
200
+ visibility: {
201
+ /**
202
+ * PublicPermissions carries public method permissions.
203
+ *
204
+ * @generated from field: fits.api.v1.PublicPermissions public = 1;
205
+ */
206
+ value: PublicPermissions;
207
+ case: "public";
208
+ } | {
209
+ /**
210
+ * SelfPermissions carries self method permissions.
211
+ *
212
+ * @generated from field: fits.api.v1.SelfPermissions self = 2;
213
+ */
214
+ value: SelfPermissions;
215
+ case: "self";
216
+ } | {
217
+ /**
218
+ * ProjectPermissions carries project method permissions.
219
+ *
220
+ * @generated from field: fits.api.v1.ProjectPermissions project = 3;
221
+ */
222
+ value: ProjectPermissions;
223
+ case: "project";
224
+ } | {
225
+ /**
226
+ * TenantPermissions carries tenant method permissions.
227
+ *
228
+ * @generated from field: fits.api.v1.TenantPermissions tenant = 4;
229
+ */
230
+ value: TenantPermissions;
231
+ case: "tenant";
232
+ } | {
233
+ /**
234
+ * AdminPermissions carries admin method permissions.
235
+ *
236
+ * @generated from field: fits.api.v1.AdminPermissions admin = 5;
237
+ */
238
+ value: AdminPermissions;
239
+ case: "admin";
240
+ } | {
241
+ case: undefined;
242
+ value?: undefined;
243
+ };
244
+ };
245
+ /**
246
+ * Describes the message fits.api.v1.PermissionsByVisibility.
247
+ * Use `create(PermissionsByVisibilitySchema)` to create a new message.
248
+ */
249
+ export declare const PermissionsByVisibilitySchema: GenMessage<PermissionsByVisibility>;
250
+ /**
251
+ * PublicPermissions carries public method permissions.
252
+ *
253
+ * @generated from message fits.api.v1.PublicPermissions
254
+ */
255
+ export type PublicPermissions = Message<"fits.api.v1.PublicPermissions"> & {
256
+ /**
257
+ * Methods which should be accessible.
258
+ *
259
+ * @generated from field: repeated string methods = 1;
260
+ */
261
+ methods: string[];
262
+ };
263
+ /**
264
+ * Describes the message fits.api.v1.PublicPermissions.
265
+ * Use `create(PublicPermissionsSchema)` to create a new message.
266
+ */
267
+ export declare const PublicPermissionsSchema: GenMessage<PublicPermissions>;
268
+ /**
269
+ * SelfPermissions carries self method permissions.
270
+ *
271
+ * @generated from message fits.api.v1.SelfPermissions
272
+ */
273
+ export type SelfPermissions = Message<"fits.api.v1.SelfPermissions"> & {
274
+ /**
275
+ * Methods which should be accessible.
276
+ *
277
+ * @generated from field: repeated string methods = 1;
278
+ */
279
+ methods: string[];
280
+ };
281
+ /**
282
+ * Describes the message fits.api.v1.SelfPermissions.
283
+ * Use `create(SelfPermissionsSchema)` to create a new message.
284
+ */
285
+ export declare const SelfPermissionsSchema: GenMessage<SelfPermissions>;
286
+ /**
287
+ * ProjectPermissions carries project method permissions.
288
+ *
289
+ * @generated from message fits.api.v1.ProjectPermissions
290
+ */
291
+ export type ProjectPermissions = Message<"fits.api.v1.ProjectPermissions"> & {
292
+ /**
293
+ * Project scope for the permissions.
294
+ * Asterisk (*) can be specified to match any subject.
295
+ *
296
+ * @generated from field: string project = 1;
297
+ */
298
+ project: string;
299
+ /**
300
+ * Methods which should be accessible.
301
+ *
302
+ * @generated from field: repeated string methods = 2;
303
+ */
304
+ methods: string[];
305
+ };
306
+ /**
307
+ * Describes the message fits.api.v1.ProjectPermissions.
308
+ * Use `create(ProjectPermissionsSchema)` to create a new message.
309
+ */
310
+ export declare const ProjectPermissionsSchema: GenMessage<ProjectPermissions>;
311
+ /**
312
+ * TenantPermissions carries tenant method permissions.
313
+ *
314
+ * @generated from message fits.api.v1.TenantPermissions
315
+ */
316
+ export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
317
+ /**
318
+ * Login of the tenant.
319
+ * Asterisk (*) can be specified to match any subject.
320
+ *
321
+ * @generated from field: string login = 1;
322
+ */
323
+ login: string;
324
+ /**
325
+ * Methods which should be accessible.
326
+ *
327
+ * @generated from field: repeated string methods = 2;
328
+ */
329
+ methods: string[];
330
+ };
331
+ /**
332
+ * Describes the message fits.api.v1.TenantPermissions.
333
+ * Use `create(TenantPermissionsSchema)` to create a new message.
334
+ */
335
+ export declare const TenantPermissionsSchema: GenMessage<TenantPermissions>;
336
+ /**
337
+ * AdminPermissions carries admin method permissions.
338
+ *
339
+ * @generated from message fits.api.v1.AdminPermissions
340
+ */
341
+ export type AdminPermissions = Message<"fits.api.v1.AdminPermissions"> & {
342
+ /**
343
+ * Methods which should be accessible.
344
+ *
345
+ * @generated from field: repeated string methods = 1;
346
+ */
347
+ methods: string[];
348
+ };
349
+ /**
350
+ * Describes the message fits.api.v1.AdminPermissions.
351
+ * Use `create(AdminPermissionsSchema)` to create a new message.
352
+ */
353
+ export declare const AdminPermissionsSchema: GenMessage<AdminPermissions>;
354
+ /**
355
+ * TokenServiceCreateResponse is the response payload of a token create request
356
+ *
357
+ * @generated from message fits.api.v1.TokenServiceCreateResponse
358
+ */
359
+ export type TokenServiceCreateResponse = Message<"fits.api.v1.TokenServiceCreateResponse"> & {
360
+ /**
361
+ * Token which was created
362
+ *
363
+ * @generated from field: fits.api.v1.Token token = 1;
364
+ */
365
+ token?: Token | undefined;
366
+ /**
367
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
368
+ *
369
+ * @generated from field: string secret = 2;
370
+ */
371
+ secret: string;
372
+ };
373
+ /**
374
+ * Describes the message fits.api.v1.TokenServiceCreateResponse.
375
+ * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
376
+ */
377
+ export declare const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse>;
378
+ /**
379
+ * TokenServiceListRequest is the request payload to list tokens
380
+ *
381
+ * @generated from message fits.api.v1.TokenServiceListRequest
382
+ */
383
+ export type TokenServiceListRequest = Message<"fits.api.v1.TokenServiceListRequest"> & {};
384
+ /**
385
+ * Describes the message fits.api.v1.TokenServiceListRequest.
386
+ * Use `create(TokenServiceListRequestSchema)` to create a new message.
387
+ */
388
+ export declare const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest>;
389
+ /**
390
+ * TokenServiceListResponse is the response payload of a token list request
391
+ *
392
+ * @generated from message fits.api.v1.TokenServiceListResponse
393
+ */
394
+ export type TokenServiceListResponse = Message<"fits.api.v1.TokenServiceListResponse"> & {
395
+ /**
396
+ * Tokens is a list of tokens without the secrets
397
+ *
398
+ * @generated from field: repeated fits.api.v1.Token tokens = 1;
399
+ */
400
+ tokens: Token[];
401
+ };
402
+ /**
403
+ * Describes the message fits.api.v1.TokenServiceListResponse.
404
+ * Use `create(TokenServiceListResponseSchema)` to create a new message.
405
+ */
406
+ export declare const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse>;
407
+ /**
408
+ * TokenServiceRevokeRequest is the request payload of a token revoke request
409
+ *
410
+ * @generated from message fits.api.v1.TokenServiceRevokeRequest
411
+ */
412
+ export type TokenServiceRevokeRequest = Message<"fits.api.v1.TokenServiceRevokeRequest"> & {
413
+ /**
414
+ * Uuid of the token to revoke
415
+ *
416
+ * @generated from field: string uuid = 1;
417
+ */
418
+ uuid: string;
419
+ };
420
+ /**
421
+ * Describes the message fits.api.v1.TokenServiceRevokeRequest.
422
+ * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
423
+ */
424
+ export declare const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest>;
425
+ /**
426
+ * TokenServiceRevokeResponse is the response payload of a token revoke request
427
+ *
428
+ * @generated from message fits.api.v1.TokenServiceRevokeResponse
429
+ */
430
+ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevokeResponse"> & {};
431
+ /**
432
+ * Describes the message fits.api.v1.TokenServiceRevokeResponse.
433
+ * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
434
+ */
435
+ export declare const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse>;
436
+ /**
437
+ * TokenServiceUpdateRequest is the request payload of a token update request
438
+ *
439
+ * @generated from message fits.api.v1.TokenServiceUpdateRequest
440
+ */
441
+ export type TokenServiceUpdateRequest = Message<"fits.api.v1.TokenServiceUpdateRequest"> & {
442
+ /**
443
+ * Uuid of the token to update
444
+ *
445
+ * @generated from field: string uuid = 1;
446
+ */
447
+ uuid: string;
448
+ /**
449
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
450
+ * TokenUpdate is not guarded with optlock in the backend
451
+ *
452
+ * @generated from field: fits.api.v1.UpdateMeta update_meta = 2;
453
+ */
454
+ updateMeta?: UpdateMeta | undefined;
455
+ /**
456
+ * Description is a user given description of this token.
457
+ *
458
+ * @generated from field: optional string description = 3;
459
+ */
460
+ description?: string | undefined;
461
+ /**
462
+ * Permissions is a list of service methods this token can be used for.
463
+ *
464
+ * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 4;
465
+ */
466
+ permissions: PermissionsByVisibility[];
467
+ /**
468
+ * ProjectRoles associates a project id with the corresponding role of the token owner
469
+ *
470
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 5;
471
+ */
472
+ projectRoles: {
473
+ [key: string]: ProjectRole;
474
+ };
475
+ /**
476
+ * TenantRoles associates a tenant id with the corresponding role of the token owner.
477
+ *
478
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 6;
479
+ */
480
+ tenantRoles: {
481
+ [key: string]: TenantRole;
482
+ };
483
+ /**
484
+ * AdminRole defines the admin role of the token owner
485
+ *
486
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 7;
487
+ */
488
+ adminRole?: AdminRole | undefined;
489
+ /**
490
+ * Labels on this token
491
+ *
492
+ * @generated from field: fits.api.v1.UpdateLabels labels = 8;
493
+ */
494
+ labels?: UpdateLabels | undefined;
495
+ };
496
+ /**
497
+ * Describes the message fits.api.v1.TokenServiceUpdateRequest.
498
+ * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
499
+ */
500
+ export declare const TokenServiceUpdateRequestSchema: GenMessage<TokenServiceUpdateRequest>;
501
+ /**
502
+ * TokenServiceUpdateResponse is the response payload of a token update request
503
+ *
504
+ * @generated from message fits.api.v1.TokenServiceUpdateResponse
505
+ */
506
+ export type TokenServiceUpdateResponse = Message<"fits.api.v1.TokenServiceUpdateResponse"> & {
507
+ /**
508
+ * Token is the updated token
509
+ *
510
+ * @generated from field: fits.api.v1.Token token = 1;
511
+ */
512
+ token?: Token | undefined;
513
+ };
514
+ /**
515
+ * Describes the message fits.api.v1.TokenServiceUpdateResponse.
516
+ * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
517
+ */
518
+ export declare const TokenServiceUpdateResponseSchema: GenMessage<TokenServiceUpdateResponse>;
519
+ /**
520
+ * TokenServiceGetRequest is the request payload of a token get request
521
+ *
522
+ * @generated from message fits.api.v1.TokenServiceGetRequest
523
+ */
524
+ export type TokenServiceGetRequest = Message<"fits.api.v1.TokenServiceGetRequest"> & {
525
+ /**
526
+ * Uuid of the token to get
527
+ *
528
+ * @generated from field: string uuid = 1;
529
+ */
530
+ uuid: string;
531
+ };
532
+ /**
533
+ * Describes the message fits.api.v1.TokenServiceGetRequest.
534
+ * Use `create(TokenServiceGetRequestSchema)` to create a new message.
535
+ */
536
+ export declare const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest>;
537
+ /**
538
+ * TokenServiceGetResponse is the response payload of a token get request
539
+ *
540
+ * @generated from message fits.api.v1.TokenServiceGetResponse
541
+ */
542
+ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetResponse"> & {
543
+ /**
544
+ * Token is the token
545
+ *
546
+ * @generated from field: fits.api.v1.Token token = 1;
547
+ */
548
+ token?: Token | undefined;
549
+ };
550
+ /**
551
+ * Describes the message fits.api.v1.TokenServiceGetResponse.
552
+ * Use `create(TokenServiceGetResponseSchema)` to create a new message.
553
+ */
554
+ export declare const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse>;
555
+ /**
556
+ * TokenServiceRefreshRequest is the request payload of a token refresh request
557
+ * Permissions, Roles and Expiration duration and all other properties are inherited from the calling token.
558
+ * The expiration duration will be calculated from the existing token (exp - iat)
559
+ *
560
+ * @generated from message fits.api.v1.TokenServiceRefreshRequest
561
+ */
562
+ export type TokenServiceRefreshRequest = Message<"fits.api.v1.TokenServiceRefreshRequest"> & {};
563
+ /**
564
+ * Describes the message fits.api.v1.TokenServiceRefreshRequest.
565
+ * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
566
+ */
567
+ export declare const TokenServiceRefreshRequestSchema: GenMessage<TokenServiceRefreshRequest>;
568
+ /**
569
+ * TokenServiceRefreshResponse is the response payload of a token refresh request
570
+ *
571
+ * @generated from message fits.api.v1.TokenServiceRefreshResponse
572
+ */
573
+ export type TokenServiceRefreshResponse = Message<"fits.api.v1.TokenServiceRefreshResponse"> & {
574
+ /**
575
+ * Token which was refreshed
576
+ *
577
+ * @generated from field: fits.api.v1.Token token = 1;
578
+ */
579
+ token?: Token | undefined;
580
+ /**
581
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
582
+ *
583
+ * @generated from field: string secret = 2;
584
+ */
585
+ secret: string;
586
+ };
587
+ /**
588
+ * Describes the message fits.api.v1.TokenServiceRefreshResponse.
589
+ * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
590
+ */
591
+ export declare const TokenServiceRefreshResponseSchema: GenMessage<TokenServiceRefreshResponse>;
592
+ /**
593
+ * TokenType specifies different use cases of tokens
594
+ *
595
+ * @generated from enum fits.api.v1.TokenType
596
+ */
597
+ export declare enum TokenType {
598
+ /**
599
+ * TOKEN_TYPE_UNSPECIFIED is not specified
600
+ *
601
+ * @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
602
+ */
603
+ UNSPECIFIED = 0,
604
+ /**
605
+ * TOKEN_TYPE_API is a token for api usage
606
+ *
607
+ * @generated from enum value: TOKEN_TYPE_API = 1;
608
+ */
609
+ API = 1,
610
+ /**
611
+ * TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
612
+ *
613
+ * @generated from enum value: TOKEN_TYPE_USER = 2;
614
+ */
615
+ USER = 2
616
+ }
617
+ /**
618
+ * Describes the enum fits.api.v1.TokenType.
619
+ */
620
+ export declare const TokenTypeSchema: GenEnum<TokenType>;
621
+ /**
622
+ * TokenService provides token management operations.
623
+ *
624
+ * @generated from service fits.api.v1.TokenService
625
+ */
626
+ export declare const TokenService: GenService<{
627
+ /**
628
+ * Returns the token with the specified UUID.
629
+ *
630
+ * @generated from rpc fits.api.v1.TokenService.Get
631
+ */
632
+ get: {
633
+ methodKind: "unary";
634
+ input: typeof TokenServiceGetRequestSchema;
635
+ output: typeof TokenServiceGetResponseSchema;
636
+ };
637
+ /**
638
+ * Creates a token to authenticate against the platform, the secret will be only visible in the response.
639
+ *
640
+ * @generated from rpc fits.api.v1.TokenService.Create
641
+ */
642
+ create: {
643
+ methodKind: "unary";
644
+ input: typeof TokenServiceCreateRequestSchema;
645
+ output: typeof TokenServiceCreateResponseSchema;
646
+ };
647
+ /**
648
+ * Updates a token.
649
+ *
650
+ * @generated from rpc fits.api.v1.TokenService.Update
651
+ */
652
+ update: {
653
+ methodKind: "unary";
654
+ input: typeof TokenServiceUpdateRequestSchema;
655
+ output: typeof TokenServiceUpdateResponseSchema;
656
+ };
657
+ /**
658
+ * Returns the list of all user tokens.
659
+ *
660
+ * @generated from rpc fits.api.v1.TokenService.List
661
+ */
662
+ list: {
663
+ methodKind: "unary";
664
+ input: typeof TokenServiceListRequestSchema;
665
+ output: typeof TokenServiceListResponseSchema;
666
+ };
667
+ /**
668
+ * Revokes a token, no further usage is possible afterwards.
669
+ *
670
+ * @generated from rpc fits.api.v1.TokenService.Revoke
671
+ */
672
+ revoke: {
673
+ methodKind: "unary";
674
+ input: typeof TokenServiceRevokeRequestSchema;
675
+ output: typeof TokenServiceRevokeResponseSchema;
676
+ };
677
+ /**
678
+ * Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
679
+ *
680
+ * @generated from rpc fits.api.v1.TokenService.Refresh
681
+ */
682
+ refresh: {
683
+ methodKind: "unary";
684
+ input: typeof TokenServiceRefreshRequestSchema;
685
+ output: typeof TokenServiceRefreshResponseSchema;
686
+ };
687
+ }>;