@fi-ts/api 0.0.1-alpha.0

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 (40) 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/v1/common_pb.d.ts +372 -0
  5. package/fits/api/v1/common_pb.js +276 -0
  6. package/fits/api/v1/common_pb.ts +447 -0
  7. package/fits/api/v1/health_pb.d.ts +190 -0
  8. package/fits/api/v1/health_pb.js +100 -0
  9. package/fits/api/v1/health_pb.ts +229 -0
  10. package/fits/api/v1/ip_pb.d.ts +549 -0
  11. package/fits/api/v1/ip_pb.js +137 -0
  12. package/fits/api/v1/ip_pb.ts +643 -0
  13. package/fits/api/v1/method_pb.d.ts +116 -0
  14. package/fits/api/v1/method_pb.js +38 -0
  15. package/fits/api/v1/method_pb.ts +142 -0
  16. package/fits/api/v1/partition_pb.d.ts +251 -0
  17. package/fits/api/v1/partition_pb.js +62 -0
  18. package/fits/api/v1/partition_pb.ts +300 -0
  19. package/fits/api/v1/predefined_rules_pb.d.ts +90 -0
  20. package/fits/api/v1/predefined_rules_pb.js +93 -0
  21. package/fits/api/v1/predefined_rules_pb.ts +127 -0
  22. package/fits/api/v1/project_pb.d.ts +366 -0
  23. package/fits/api/v1/project_pb.js +73 -0
  24. package/fits/api/v1/project_pb.ts +430 -0
  25. package/fits/api/v1/tenant_pb.d.ts +370 -0
  26. package/fits/api/v1/tenant_pb.js +73 -0
  27. package/fits/api/v1/tenant_pb.ts +435 -0
  28. package/fits/api/v1/token_pb.d.ts +522 -0
  29. package/fits/api/v1/token_pb.js +118 -0
  30. package/fits/api/v1/token_pb.ts +600 -0
  31. package/fits/api/v1/user_pb.d.ts +108 -0
  32. package/fits/api/v1/user_pb.js +34 -0
  33. package/fits/api/v1/user_pb.ts +139 -0
  34. package/fits/api/v1/version_pb.d.ts +88 -0
  35. package/fits/api/v1/version_pb.js +32 -0
  36. package/fits/api/v1/version_pb.ts +114 -0
  37. package/fits/api/v1/vpn_pb.d.ts +55 -0
  38. package/fits/api/v1/vpn_pb.js +14 -0
  39. package/fits/api/v1/vpn_pb.ts +72 -0
  40. package/package.json +25 -0
@@ -0,0 +1,522 @@
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.MethodPermission permissions = 5;
54
+ */
55
+ permissions: MethodPermission[];
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.MethodPermission permissions = 2;
118
+ */
119
+ permissions: MethodPermission[];
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
+ * TokenServiceCreateResponse is the response payload of a token create request
191
+ *
192
+ * @generated from message fits.api.v1.TokenServiceCreateResponse
193
+ */
194
+ export type TokenServiceCreateResponse = Message<"fits.api.v1.TokenServiceCreateResponse"> & {
195
+ /**
196
+ * Token which was created
197
+ *
198
+ * @generated from field: fits.api.v1.Token token = 1;
199
+ */
200
+ token?: Token | undefined;
201
+ /**
202
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
203
+ *
204
+ * @generated from field: string secret = 2;
205
+ */
206
+ secret: string;
207
+ };
208
+ /**
209
+ * Describes the message fits.api.v1.TokenServiceCreateResponse.
210
+ * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
211
+ */
212
+ export declare const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse>;
213
+ /**
214
+ * TokenServiceListRequest is the request payload to list tokens
215
+ *
216
+ * @generated from message fits.api.v1.TokenServiceListRequest
217
+ */
218
+ export type TokenServiceListRequest = Message<"fits.api.v1.TokenServiceListRequest"> & {};
219
+ /**
220
+ * Describes the message fits.api.v1.TokenServiceListRequest.
221
+ * Use `create(TokenServiceListRequestSchema)` to create a new message.
222
+ */
223
+ export declare const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest>;
224
+ /**
225
+ * TokenServiceListResponse is the response payload of a token list request
226
+ *
227
+ * @generated from message fits.api.v1.TokenServiceListResponse
228
+ */
229
+ export type TokenServiceListResponse = Message<"fits.api.v1.TokenServiceListResponse"> & {
230
+ /**
231
+ * Tokens is a list of tokens without the secrets
232
+ *
233
+ * @generated from field: repeated fits.api.v1.Token tokens = 1;
234
+ */
235
+ tokens: Token[];
236
+ };
237
+ /**
238
+ * Describes the message fits.api.v1.TokenServiceListResponse.
239
+ * Use `create(TokenServiceListResponseSchema)` to create a new message.
240
+ */
241
+ export declare const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse>;
242
+ /**
243
+ * TokenServiceRevokeRequest is the request payload of a token revoke request
244
+ *
245
+ * @generated from message fits.api.v1.TokenServiceRevokeRequest
246
+ */
247
+ export type TokenServiceRevokeRequest = Message<"fits.api.v1.TokenServiceRevokeRequest"> & {
248
+ /**
249
+ * Uuid of the token to revoke
250
+ *
251
+ * @generated from field: string uuid = 1;
252
+ */
253
+ uuid: string;
254
+ };
255
+ /**
256
+ * Describes the message fits.api.v1.TokenServiceRevokeRequest.
257
+ * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
258
+ */
259
+ export declare const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest>;
260
+ /**
261
+ * TokenServiceRevokeResponse is the response payload of a token revoke request
262
+ *
263
+ * @generated from message fits.api.v1.TokenServiceRevokeResponse
264
+ */
265
+ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevokeResponse"> & {};
266
+ /**
267
+ * Describes the message fits.api.v1.TokenServiceRevokeResponse.
268
+ * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
269
+ */
270
+ export declare const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse>;
271
+ /**
272
+ * TokenServiceUpdateRequest is the request payload of a token update request
273
+ *
274
+ * @generated from message fits.api.v1.TokenServiceUpdateRequest
275
+ */
276
+ export type TokenServiceUpdateRequest = Message<"fits.api.v1.TokenServiceUpdateRequest"> & {
277
+ /**
278
+ * Uuid of the token to update
279
+ *
280
+ * @generated from field: string uuid = 1;
281
+ */
282
+ uuid: string;
283
+ /**
284
+ * UpdateMeta contains the timestamp and strategy to be used in this update request
285
+ * TokenUpdate is not guarded with optlock in the backend
286
+ *
287
+ * @generated from field: fits.api.v1.UpdateMeta update_meta = 2;
288
+ */
289
+ updateMeta?: UpdateMeta | undefined;
290
+ /**
291
+ * Description is a user given description of this token.
292
+ *
293
+ * @generated from field: optional string description = 3;
294
+ */
295
+ description?: string | undefined;
296
+ /**
297
+ * Permissions is a list of service methods this token can be used for
298
+ *
299
+ * @generated from field: repeated fits.api.v1.MethodPermission permissions = 4;
300
+ */
301
+ permissions: MethodPermission[];
302
+ /**
303
+ * ProjectRoles associates a project id with the corresponding role of the token owner
304
+ *
305
+ * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 5;
306
+ */
307
+ projectRoles: {
308
+ [key: string]: ProjectRole;
309
+ };
310
+ /**
311
+ * TenantRoles associates a tenant id with the corresponding role of the token owner
312
+ *
313
+ * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 6;
314
+ */
315
+ tenantRoles: {
316
+ [key: string]: TenantRole;
317
+ };
318
+ /**
319
+ * AdminRole defines the admin role of the token owner
320
+ *
321
+ * @generated from field: optional fits.api.v1.AdminRole admin_role = 7;
322
+ */
323
+ adminRole?: AdminRole | undefined;
324
+ /**
325
+ * Labels on this token
326
+ *
327
+ * @generated from field: fits.api.v1.UpdateLabels labels = 8;
328
+ */
329
+ labels?: UpdateLabels | undefined;
330
+ };
331
+ /**
332
+ * Describes the message fits.api.v1.TokenServiceUpdateRequest.
333
+ * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
334
+ */
335
+ export declare const TokenServiceUpdateRequestSchema: GenMessage<TokenServiceUpdateRequest>;
336
+ /**
337
+ * TokenServiceUpdateResponse is the response payload of a token update request
338
+ *
339
+ * @generated from message fits.api.v1.TokenServiceUpdateResponse
340
+ */
341
+ export type TokenServiceUpdateResponse = Message<"fits.api.v1.TokenServiceUpdateResponse"> & {
342
+ /**
343
+ * Token is the updated token
344
+ *
345
+ * @generated from field: fits.api.v1.Token token = 1;
346
+ */
347
+ token?: Token | undefined;
348
+ };
349
+ /**
350
+ * Describes the message fits.api.v1.TokenServiceUpdateResponse.
351
+ * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
352
+ */
353
+ export declare const TokenServiceUpdateResponseSchema: GenMessage<TokenServiceUpdateResponse>;
354
+ /**
355
+ * TokenServiceGetRequest is the request payload of a token get request
356
+ *
357
+ * @generated from message fits.api.v1.TokenServiceGetRequest
358
+ */
359
+ export type TokenServiceGetRequest = Message<"fits.api.v1.TokenServiceGetRequest"> & {
360
+ /**
361
+ * Uuid of the token to get
362
+ *
363
+ * @generated from field: string uuid = 1;
364
+ */
365
+ uuid: string;
366
+ };
367
+ /**
368
+ * Describes the message fits.api.v1.TokenServiceGetRequest.
369
+ * Use `create(TokenServiceGetRequestSchema)` to create a new message.
370
+ */
371
+ export declare const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest>;
372
+ /**
373
+ * TokenServiceGetResponse is the response payload of a token get request
374
+ *
375
+ * @generated from message fits.api.v1.TokenServiceGetResponse
376
+ */
377
+ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetResponse"> & {
378
+ /**
379
+ * Token is the token
380
+ *
381
+ * @generated from field: fits.api.v1.Token token = 1;
382
+ */
383
+ token?: Token | undefined;
384
+ };
385
+ /**
386
+ * Describes the message fits.api.v1.TokenServiceGetResponse.
387
+ * Use `create(TokenServiceGetResponseSchema)` to create a new message.
388
+ */
389
+ export declare const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse>;
390
+ /**
391
+ * TokenServiceRefreshRequest is the request payload of a token refresh request
392
+ * Permissions, Roles and Expiration duration and all other properties are inherited from the calling token.
393
+ * The expiration duration will be calculated from the existing token (exp - iat)
394
+ *
395
+ * @generated from message fits.api.v1.TokenServiceRefreshRequest
396
+ */
397
+ export type TokenServiceRefreshRequest = Message<"fits.api.v1.TokenServiceRefreshRequest"> & {};
398
+ /**
399
+ * Describes the message fits.api.v1.TokenServiceRefreshRequest.
400
+ * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
401
+ */
402
+ export declare const TokenServiceRefreshRequestSchema: GenMessage<TokenServiceRefreshRequest>;
403
+ /**
404
+ * TokenServiceRefreshResponse is the response payload of a token refresh request
405
+ *
406
+ * @generated from message fits.api.v1.TokenServiceRefreshResponse
407
+ */
408
+ export type TokenServiceRefreshResponse = Message<"fits.api.v1.TokenServiceRefreshResponse"> & {
409
+ /**
410
+ * Token which was refreshed
411
+ *
412
+ * @generated from field: fits.api.v1.Token token = 1;
413
+ */
414
+ token?: Token | undefined;
415
+ /**
416
+ * Secret is the body if the jwt token, should be used in api requests as bearer token
417
+ *
418
+ * @generated from field: string secret = 2;
419
+ */
420
+ secret: string;
421
+ };
422
+ /**
423
+ * Describes the message fits.api.v1.TokenServiceRefreshResponse.
424
+ * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
425
+ */
426
+ export declare const TokenServiceRefreshResponseSchema: GenMessage<TokenServiceRefreshResponse>;
427
+ /**
428
+ * TokenType specifies different use cases of tokens
429
+ *
430
+ * @generated from enum fits.api.v1.TokenType
431
+ */
432
+ export declare enum TokenType {
433
+ /**
434
+ * TOKEN_TYPE_UNSPECIFIED is not specified
435
+ *
436
+ * @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
437
+ */
438
+ UNSPECIFIED = 0,
439
+ /**
440
+ * TOKEN_TYPE_API is a token for api usage
441
+ *
442
+ * @generated from enum value: TOKEN_TYPE_API = 1;
443
+ */
444
+ API = 1,
445
+ /**
446
+ * TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
447
+ *
448
+ * @generated from enum value: TOKEN_TYPE_USER = 2;
449
+ */
450
+ USER = 2
451
+ }
452
+ /**
453
+ * Describes the enum fits.api.v1.TokenType.
454
+ */
455
+ export declare const TokenTypeSchema: GenEnum<TokenType>;
456
+ /**
457
+ * TokenService provides token management operations.
458
+ *
459
+ * @generated from service fits.api.v1.TokenService
460
+ */
461
+ export declare const TokenService: GenService<{
462
+ /**
463
+ * Returns the token with the specified UUID.
464
+ *
465
+ * @generated from rpc fits.api.v1.TokenService.Get
466
+ */
467
+ get: {
468
+ methodKind: "unary";
469
+ input: typeof TokenServiceGetRequestSchema;
470
+ output: typeof TokenServiceGetResponseSchema;
471
+ };
472
+ /**
473
+ * Creates a token to authenticate against the platform, the secret will be only visible in the response.
474
+ *
475
+ * @generated from rpc fits.api.v1.TokenService.Create
476
+ */
477
+ create: {
478
+ methodKind: "unary";
479
+ input: typeof TokenServiceCreateRequestSchema;
480
+ output: typeof TokenServiceCreateResponseSchema;
481
+ };
482
+ /**
483
+ * Updates a token.
484
+ *
485
+ * @generated from rpc fits.api.v1.TokenService.Update
486
+ */
487
+ update: {
488
+ methodKind: "unary";
489
+ input: typeof TokenServiceUpdateRequestSchema;
490
+ output: typeof TokenServiceUpdateResponseSchema;
491
+ };
492
+ /**
493
+ * Returns the list of all user tokens.
494
+ *
495
+ * @generated from rpc fits.api.v1.TokenService.List
496
+ */
497
+ list: {
498
+ methodKind: "unary";
499
+ input: typeof TokenServiceListRequestSchema;
500
+ output: typeof TokenServiceListResponseSchema;
501
+ };
502
+ /**
503
+ * Revokes a token, no further usage is possible afterwards.
504
+ *
505
+ * @generated from rpc fits.api.v1.TokenService.Revoke
506
+ */
507
+ revoke: {
508
+ methodKind: "unary";
509
+ input: typeof TokenServiceRevokeRequestSchema;
510
+ output: typeof TokenServiceRevokeResponseSchema;
511
+ };
512
+ /**
513
+ * Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
514
+ *
515
+ * @generated from rpc fits.api.v1.TokenService.Refresh
516
+ */
517
+ refresh: {
518
+ methodKind: "unary";
519
+ input: typeof TokenServiceRefreshRequestSchema;
520
+ output: typeof TokenServiceRefreshResponseSchema;
521
+ };
522
+ }>;
@@ -0,0 +1,118 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
2
+ // @generated from file fits/api/v1/token.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, 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";
8
+ import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
+ /**
10
+ * Describes the file fits/api/v1/token.proto.
11
+ */
12
+ export const file_fits_api_v1_token = /*@__PURE__*/ fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEizQYKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEj0KC3Blcm1pc3Npb25zGAUgAygLMh0uZml0cy5hcGkudjEuTWV0aG9kUGVybWlzc2lvbkIJukgGkgEDEPQDEisKB2V4cGlyZXMYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi0KCWlzc3VlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASNAoKdG9rZW5fdHlwZRgIIAEoDjIWLmZpdHMuYXBpLnYxLlRva2VuVHlwZUIIukgFggECEAESOwoNcHJvamVjdF9yb2xlcxgJIAMoCzIkLmZpdHMuYXBpLnYxLlRva2VuLlByb2plY3RSb2xlc0VudHJ5EjkKDHRlbmFudF9yb2xlcxgKIAMoCzIjLmZpdHMuYXBpLnYxLlRva2VuLlRlbmFudFJvbGVzRW50cnkSOQoKYWRtaW5fcm9sZRgLIAEoDjIWLmZpdHMuYXBpLnYxLkFkbWluUm9sZUIIukgFggECEAFIAIgBARpNChFQcm9qZWN0Um9sZXNFbnRyeRILCgNrZXkYASABKAkSJwoFdmFsdWUYAiABKA4yGC5maXRzLmFwaS52MS5Qcm9qZWN0Um9sZToCOAEaSwoQVGVuYW50Um9sZXNFbnRyeRILCgNrZXkYASABKAkSJgoFdmFsdWUYAiABKA4yFy5maXRzLmFwaS52MS5UZW5hbnRSb2xlOgI4ATqfAbpImwEamAEKG3Rva2VuLnBlcm1pc3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F0ZVJlc3BvbnNlIgjY8xgC4PMYARJjCgZVcGRhdGUSJi5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VVcGRhdGVSZXF1ZXN0GicuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlVXBkYXRlUmVzcG9uc2UiCNjzGALg8xgBEl0KBExpc3QSJC5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBolLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAESYwoGUmV2b2tlEiYuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBonLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIgjY8xgC4PMYARJmCgdSZWZyZXNoEicuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmVmcmVzaFJlcXVlc3QaKC5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VSZWZyZXNoUmVzcG9uc2UiCNjzGALg8xgBQpYBCg9jb20uZml0cy5hcGkudjFCClRva2VuUHJvdG9QAVopZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvdjE7YXBpdjGiAgNGQViqAgtGaXRzLkFwaS5WMcoCC0ZpdHNcQXBpXFYx4gIXRml0c1xBcGlcVjFcR1BCTWV0YWRhdGHqAg1GaXRzOjpBcGk6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_google_protobuf_duration, file_google_protobuf_timestamp]);
13
+ /**
14
+ * Describes the message fits.api.v1.Token.
15
+ * Use `create(TokenSchema)` to create a new message.
16
+ */
17
+ export const TokenSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 0);
18
+ /**
19
+ * Describes the message fits.api.v1.TokenServiceCreateRequest.
20
+ * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
21
+ */
22
+ export const TokenServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
23
+ /**
24
+ * Describes the message fits.api.v1.MethodPermission.
25
+ * Use `create(MethodPermissionSchema)` to create a new message.
26
+ */
27
+ export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
28
+ /**
29
+ * Describes the message fits.api.v1.TokenServiceCreateResponse.
30
+ * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
31
+ */
32
+ export const TokenServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
33
+ /**
34
+ * Describes the message fits.api.v1.TokenServiceListRequest.
35
+ * Use `create(TokenServiceListRequestSchema)` to create a new message.
36
+ */
37
+ export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
38
+ /**
39
+ * Describes the message fits.api.v1.TokenServiceListResponse.
40
+ * Use `create(TokenServiceListResponseSchema)` to create a new message.
41
+ */
42
+ export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
43
+ /**
44
+ * Describes the message fits.api.v1.TokenServiceRevokeRequest.
45
+ * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
46
+ */
47
+ export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
48
+ /**
49
+ * Describes the message fits.api.v1.TokenServiceRevokeResponse.
50
+ * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
51
+ */
52
+ export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
53
+ /**
54
+ * Describes the message fits.api.v1.TokenServiceUpdateRequest.
55
+ * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
56
+ */
57
+ export const TokenServiceUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
58
+ /**
59
+ * Describes the message fits.api.v1.TokenServiceUpdateResponse.
60
+ * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
61
+ */
62
+ export const TokenServiceUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
63
+ /**
64
+ * Describes the message fits.api.v1.TokenServiceGetRequest.
65
+ * Use `create(TokenServiceGetRequestSchema)` to create a new message.
66
+ */
67
+ export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
68
+ /**
69
+ * Describes the message fits.api.v1.TokenServiceGetResponse.
70
+ * Use `create(TokenServiceGetResponseSchema)` to create a new message.
71
+ */
72
+ export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
73
+ /**
74
+ * Describes the message fits.api.v1.TokenServiceRefreshRequest.
75
+ * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
76
+ */
77
+ export const TokenServiceRefreshRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
78
+ /**
79
+ * Describes the message fits.api.v1.TokenServiceRefreshResponse.
80
+ * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
81
+ */
82
+ export const TokenServiceRefreshResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 13);
83
+ /**
84
+ * TokenType specifies different use cases of tokens
85
+ *
86
+ * @generated from enum fits.api.v1.TokenType
87
+ */
88
+ export var TokenType;
89
+ (function (TokenType) {
90
+ /**
91
+ * TOKEN_TYPE_UNSPECIFIED is not specified
92
+ *
93
+ * @generated from enum value: TOKEN_TYPE_UNSPECIFIED = 0;
94
+ */
95
+ TokenType[TokenType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
96
+ /**
97
+ * TOKEN_TYPE_API is a token for api usage
98
+ *
99
+ * @generated from enum value: TOKEN_TYPE_API = 1;
100
+ */
101
+ TokenType[TokenType["API"] = 1] = "API";
102
+ /**
103
+ * TOKEN_TYPE_USER is a token to access the api with cli, a web application or other user induced actions.
104
+ *
105
+ * @generated from enum value: TOKEN_TYPE_USER = 2;
106
+ */
107
+ TokenType[TokenType["USER"] = 2] = "USER";
108
+ })(TokenType || (TokenType = {}));
109
+ /**
110
+ * Describes the enum fits.api.v1.TokenType.
111
+ */
112
+ export const TokenTypeSchema = /*@__PURE__*/ enumDesc(file_fits_api_v1_token, 0);
113
+ /**
114
+ * TokenService provides token management operations.
115
+ *
116
+ * @generated from service fits.api.v1.TokenService
117
+ */
118
+ export const TokenService = /*@__PURE__*/ serviceDesc(file_fits_api_v1_token, 0);