@fi-ts/api 0.0.2 → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
- import type { AdminRole, Labels, Meta, ProjectRole, TenantRole, UpdateLabels, UpdateMeta } from "./common_pb.js";
3
- import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
2
+ import type { AdminRole, Meta, ProjectRole, TenantRole } from "./common_pb.js";
3
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
4
  import type { Message } from "@bufbuild/protobuf";
5
5
  /**
6
6
  * Describes the file fits/api/v1/token.proto.
@@ -93,70 +93,30 @@ export type Token = Message<"fits.api.v1.Token"> & {
93
93
  * @generated from field: optional fits.api.v1.AdminRole admin_role = 11;
94
94
  */
95
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
96
  /**
109
- * Description of the token
97
+ * RawRoles are the normalized roles transmitted by the OIDC provider.
110
98
  *
111
- * @generated from field: string description = 1;
99
+ * @generated from field: repeated string raw_roles = 12;
112
100
  */
113
- description: string;
101
+ rawRoles: string[];
114
102
  /**
115
- * Permissions is a list of service methods this token can be used for.
103
+ * Name is the display name of the user the token was issued for.
116
104
  *
117
- * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 2;
105
+ * @generated from field: string name = 13;
118
106
  */
119
- permissions: PermissionsByVisibility[];
107
+ name: string;
120
108
  /**
121
- * Expires gives the duration since now, after which this token can not be used anymore
109
+ * Email is the email address of the user the token was issued for.
122
110
  *
123
- * @generated from field: google.protobuf.Duration expires = 3;
111
+ * @generated from field: string email = 14;
124
112
  */
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;
113
+ email: string;
154
114
  };
155
115
  /**
156
- * Describes the message fits.api.v1.TokenServiceCreateRequest.
157
- * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
116
+ * Describes the message fits.api.v1.Token.
117
+ * Use `create(TokenSchema)` to create a new message.
158
118
  */
159
- export declare const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest>;
119
+ export declare const TokenSchema: GenMessage<Token>;
160
120
  /**
161
121
  * MethodPermission is a mapping from a subject/project to a service method
162
122
  *
@@ -351,30 +311,6 @@ export type AdminPermissions = Message<"fits.api.v1.AdminPermissions"> & {
351
311
  * Use `create(AdminPermissionsSchema)` to create a new message.
352
312
  */
353
313
  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
314
  /**
379
315
  * TokenServiceListRequest is the request payload to list tokens
380
316
  *
@@ -433,89 +369,6 @@ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevoke
433
369
  * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
434
370
  */
435
371
  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
372
  /**
520
373
  * TokenServiceGetRequest is the request payload of a token get request
521
374
  *
@@ -552,43 +405,6 @@ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetRespon
552
405
  * Use `create(TokenServiceGetResponseSchema)` to create a new message.
553
406
  */
554
407
  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
408
  /**
593
409
  * TokenType specifies different use cases of tokens
594
410
  *
@@ -634,26 +450,6 @@ export declare const TokenService: GenService<{
634
450
  input: typeof TokenServiceGetRequestSchema;
635
451
  output: typeof TokenServiceGetResponseSchema;
636
452
  };
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
453
  /**
658
454
  * Returns the list of all user tokens.
659
455
  *
@@ -674,14 +470,4 @@ export declare const TokenService: GenService<{
674
470
  input: typeof TokenServiceRevokeRequestSchema;
675
471
  output: typeof TokenServiceRevokeResponseSchema;
676
472
  };
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
473
  }>;
@@ -5,111 +5,81 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf
5
5
  import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
6
6
  import { file_fits_api_v1_common } from "./common_pb.js";
7
7
  import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
8
- import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
8
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
9
9
  /**
10
10
  * Describes the file fits/api/v1/token.proto.
11
11
  */
12
- export const file_fits_api_v1_token = /*@__PURE__*/ fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEi7wYKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglpc3N1ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKCnRva2VuX3R5cGUYCCABKA4yFi5maXRzLm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2V0EiMuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlR2V0UmVxdWVzdBokLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUdldFJlc3BvbnNlIgjY8xgC4PMYARJjCgZDcmVhdGUSJi5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VDcmVhdGVSZXF1ZXN0GicuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlQ3JlYXRlUmVzcG9uc2UiCNjzGALg8xgBEmMKBlVwZGF0ZRImLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVVwZGF0ZVJlcXVlc3QaJy5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VVcGRhdGVSZXNwb25zZSII2PMYAuDzGAESXQoETGlzdBIkLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUxpc3RSZXF1ZXN0GiUuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlTGlzdFJlc3BvbnNlIgjY8xgC4PMYARJjCgZSZXZva2USJi5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VSZXZva2VSZXF1ZXN0GicuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVzcG9uc2UiCNjzGALg8xgBEmYKB1JlZnJlc2gSJy5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VSZWZyZXNoUmVxdWVzdBooLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJlZnJlc2hSZXNwb25zZSII2PMYAuDzGAFClgEKD2NvbS5maXRzLmFwaS52MUIKVG9rZW5Qcm90b1ABWilnaXRodWIuY29tL2ZpLXRzL2FwaS9nby9maXRzL2FwaS92MTthcGl2MaICA0ZBWKoCC0ZpdHMuQXBpLlYxygILRml0c1xBcGlcVjHiAhdGaXRzXEFwaVxWMVxHUEJNZXRhZGF0YeoCDUZpdHM6OkFwaTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_google_protobuf_duration, file_google_protobuf_timestamp]);
12
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BpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_google_protobuf_timestamp]);
13
13
  /**
14
14
  * Describes the message fits.api.v1.Token.
15
15
  * Use `create(TokenSchema)` to create a new message.
16
16
  */
17
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
18
  /**
24
19
  * Describes the message fits.api.v1.MethodPermission.
25
20
  * Use `create(MethodPermissionSchema)` to create a new message.
26
21
  */
27
- export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
22
+ export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
28
23
  /**
29
24
  * Describes the message fits.api.v1.PermissionsByVisibility.
30
25
  * Use `create(PermissionsByVisibilitySchema)` to create a new message.
31
26
  */
32
- export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
27
+ export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
33
28
  /**
34
29
  * Describes the message fits.api.v1.PublicPermissions.
35
30
  * Use `create(PublicPermissionsSchema)` to create a new message.
36
31
  */
37
- export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
32
+ export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
38
33
  /**
39
34
  * Describes the message fits.api.v1.SelfPermissions.
40
35
  * Use `create(SelfPermissionsSchema)` to create a new message.
41
36
  */
42
- export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
37
+ export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
43
38
  /**
44
39
  * Describes the message fits.api.v1.ProjectPermissions.
45
40
  * Use `create(ProjectPermissionsSchema)` to create a new message.
46
41
  */
47
- export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
42
+ export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
48
43
  /**
49
44
  * Describes the message fits.api.v1.TenantPermissions.
50
45
  * Use `create(TenantPermissionsSchema)` to create a new message.
51
46
  */
52
- export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
47
+ export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
53
48
  /**
54
49
  * Describes the message fits.api.v1.AdminPermissions.
55
50
  * Use `create(AdminPermissionsSchema)` to create a new message.
56
51
  */
57
- export const AdminPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
58
- /**
59
- * Describes the message fits.api.v1.TokenServiceCreateResponse.
60
- * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
61
- */
62
- export const TokenServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
52
+ export const AdminPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
63
53
  /**
64
54
  * Describes the message fits.api.v1.TokenServiceListRequest.
65
55
  * Use `create(TokenServiceListRequestSchema)` to create a new message.
66
56
  */
67
- export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
57
+ export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
68
58
  /**
69
59
  * Describes the message fits.api.v1.TokenServiceListResponse.
70
60
  * Use `create(TokenServiceListResponseSchema)` to create a new message.
71
61
  */
72
- export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
62
+ export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
73
63
  /**
74
64
  * Describes the message fits.api.v1.TokenServiceRevokeRequest.
75
65
  * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
76
66
  */
77
- export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
67
+ export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
78
68
  /**
79
69
  * Describes the message fits.api.v1.TokenServiceRevokeResponse.
80
70
  * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
81
71
  */
82
- export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 13);
83
- /**
84
- * Describes the message fits.api.v1.TokenServiceUpdateRequest.
85
- * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
86
- */
87
- export const TokenServiceUpdateRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 14);
88
- /**
89
- * Describes the message fits.api.v1.TokenServiceUpdateResponse.
90
- * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
91
- */
92
- export const TokenServiceUpdateResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 15);
72
+ export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
93
73
  /**
94
74
  * Describes the message fits.api.v1.TokenServiceGetRequest.
95
75
  * Use `create(TokenServiceGetRequestSchema)` to create a new message.
96
76
  */
97
- export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 16);
77
+ export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
98
78
  /**
99
79
  * Describes the message fits.api.v1.TokenServiceGetResponse.
100
80
  * Use `create(TokenServiceGetResponseSchema)` to create a new message.
101
81
  */
102
- export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 17);
103
- /**
104
- * Describes the message fits.api.v1.TokenServiceRefreshRequest.
105
- * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
106
- */
107
- export const TokenServiceRefreshRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 18);
108
- /**
109
- * Describes the message fits.api.v1.TokenServiceRefreshResponse.
110
- * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
111
- */
112
- export const TokenServiceRefreshResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 19);
82
+ export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 13);
113
83
  /**
114
84
  * TokenType specifies different use cases of tokens
115
85
  *