@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.
@@ -5,18 +5,18 @@
5
5
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
6
  import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
7
7
  import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
8
- import type { AdminRole, Labels, Meta, ProjectRole, TenantRole, UpdateLabels, UpdateMeta } from "./common_pb.js";
8
+ import type { AdminRole, Meta, ProjectRole, TenantRole } from "./common_pb.js";
9
9
  import { file_fits_api_v1_common } from "./common_pb.js";
10
10
  import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
11
- import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
12
- import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
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("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEi7wYKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3Rv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GF0YeoCDUZpdHM6OkFwaTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_google_protobuf_duration, file_google_protobuf_timestamp]);
19
+ fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEiyQcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglpc3N1ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKCnRva2VuX3R5cGUYCCABKA4yFi5maXRzLmFwaS52MS5Ub2tlblR5cGVCCLpIBYIBAhABEjsKDXByb2plY3Rfcm9sZXMYCSADKAsyJC5maXRzLmFwaS52MS5Ub2tlbi5Qcm9qZWN0Um9sZXNFbnRyeRJUCgx0ZW5hbnRfcm9sZXMYCiADKAsyIy5maXRzLmFwaS52MS5Ub2tlbi5UZW5hbnRSb2xlc0VudHJ5Qhm6SBaaARPAlbixAgHQlbixAgEqBYIBAhABEjkKCmFkbWluX3JvbGUYCyABKA4yFi5maXRzLmFwaS52MS5BZG1pblJvbGVCCLpIBYIBAhABSACIAQESJwoJcmF3X3JvbGVzGAwgAygJQhS6SBGSAQ7QpLOxAgHYpLOxAgEYARIWCgRuYW1lGA0gASgJQgi6SAVyAxiAAhIXCgVlbWFpbBgOIAEoCUIIukgFcgMYgAIaTQoRUHJvamVjdFJvbGVzRW50cnkSCwoDa2V5GAEgASgJEicKBXZhbHVlGAIgAS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AQoPY29tLmZpdHMuYXBpLnYxQgpUb2tlblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [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
@@ -111,77 +111,35 @@ 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
- /**
117
- * Describes the message fits.api.v1.Token.
118
- * Use `create(TokenSchema)` to create a new message.
119
- */
120
- export const TokenSchema: GenMessage<Token> = /*@__PURE__*/
121
- messageDesc(file_fits_api_v1_token, 0);
122
-
123
- /**
124
- * TokenServiceCreateRequest is the request payload to create a token
125
- *
126
- * @generated from message fits.api.v1.TokenServiceCreateRequest
127
- */
128
- export type TokenServiceCreateRequest = Message<"fits.api.v1.TokenServiceCreateRequest"> & {
129
- /**
130
- * Description of the token
131
- *
132
- * @generated from field: string description = 1;
133
- */
134
- description: string;
135
-
136
- /**
137
- * Permissions is a list of service methods this token can be used for.
138
- *
139
- * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 2;
140
- */
141
- permissions: PermissionsByVisibility[];
142
-
143
- /**
144
- * Expires gives the duration since now, after which this token can not be used anymore
145
- *
146
- * @generated from field: google.protobuf.Duration expires = 3;
147
- */
148
- expires?: Duration | undefined;
149
-
150
- /**
151
- * ProjectRoles associates a project id with the corresponding role of the token owner
152
- *
153
- * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 4;
154
- */
155
- projectRoles: { [key: string]: ProjectRole };
156
114
 
157
115
  /**
158
- * TenantRoles associates a tenant id with the corresponding role of the token owner.
116
+ * RawRoles are the normalized roles transmitted by the OIDC provider.
159
117
  *
160
- * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 5;
118
+ * @generated from field: repeated string raw_roles = 12;
161
119
  */
162
- tenantRoles: { [key: string]: TenantRole };
120
+ rawRoles: string[];
163
121
 
164
122
  /**
165
- * AdminRole defines the admin role of the token owner
123
+ * Name is the display name of the user the token was issued for.
166
124
  *
167
- * @generated from field: optional fits.api.v1.AdminRole admin_role = 6;
125
+ * @generated from field: string name = 13;
168
126
  */
169
- adminRole?: AdminRole | undefined;
127
+ name: string;
170
128
 
171
129
  /**
172
- * Labels on this token
130
+ * Email is the email address of the user the token was issued for.
173
131
  *
174
- * @generated from field: fits.api.v1.Labels labels = 7;
132
+ * @generated from field: string email = 14;
175
133
  */
176
- labels?: Labels | undefined;
134
+ email: string;
177
135
  };
178
136
 
179
137
  /**
180
- * Describes the message fits.api.v1.TokenServiceCreateRequest.
181
- * Use `create(TokenServiceCreateRequestSchema)` to create a new message.
138
+ * Describes the message fits.api.v1.Token.
139
+ * Use `create(TokenSchema)` to create a new message.
182
140
  */
183
- export const TokenServiceCreateRequestSchema: GenMessage<TokenServiceCreateRequest> = /*@__PURE__*/
184
- messageDesc(file_fits_api_v1_token, 1);
141
+ export const TokenSchema: GenMessage<Token> = /*@__PURE__*/
142
+ messageDesc(file_fits_api_v1_token, 0);
185
143
 
186
144
  /**
187
145
  * MethodPermission is a mapping from a subject/project to a service method
@@ -214,7 +172,7 @@ export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
214
172
  * Use `create(MethodPermissionSchema)` to create a new message.
215
173
  */
216
174
  export const MethodPermissionSchema: GenMessage<MethodPermission> = /*@__PURE__*/
217
- messageDesc(file_fits_api_v1_token, 2);
175
+ messageDesc(file_fits_api_v1_token, 1);
218
176
 
219
177
  /**
220
178
  * PermissionsByVisibility contains method permissions by visibility.
@@ -275,7 +233,7 @@ export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibili
275
233
  * Use `create(PermissionsByVisibilitySchema)` to create a new message.
276
234
  */
277
235
  export const PermissionsByVisibilitySchema: GenMessage<PermissionsByVisibility> = /*@__PURE__*/
278
- messageDesc(file_fits_api_v1_token, 3);
236
+ messageDesc(file_fits_api_v1_token, 2);
279
237
 
280
238
  /**
281
239
  * PublicPermissions carries public method permissions.
@@ -296,7 +254,7 @@ export type PublicPermissions = Message<"fits.api.v1.PublicPermissions"> & {
296
254
  * Use `create(PublicPermissionsSchema)` to create a new message.
297
255
  */
298
256
  export const PublicPermissionsSchema: GenMessage<PublicPermissions> = /*@__PURE__*/
299
- messageDesc(file_fits_api_v1_token, 4);
257
+ messageDesc(file_fits_api_v1_token, 3);
300
258
 
301
259
  /**
302
260
  * SelfPermissions carries self method permissions.
@@ -317,7 +275,7 @@ export type SelfPermissions = Message<"fits.api.v1.SelfPermissions"> & {
317
275
  * Use `create(SelfPermissionsSchema)` to create a new message.
318
276
  */
319
277
  export const SelfPermissionsSchema: GenMessage<SelfPermissions> = /*@__PURE__*/
320
- messageDesc(file_fits_api_v1_token, 5);
278
+ messageDesc(file_fits_api_v1_token, 4);
321
279
 
322
280
  /**
323
281
  * ProjectPermissions carries project method permissions.
@@ -346,7 +304,7 @@ export type ProjectPermissions = Message<"fits.api.v1.ProjectPermissions"> & {
346
304
  * Use `create(ProjectPermissionsSchema)` to create a new message.
347
305
  */
348
306
  export const ProjectPermissionsSchema: GenMessage<ProjectPermissions> = /*@__PURE__*/
349
- messageDesc(file_fits_api_v1_token, 6);
307
+ messageDesc(file_fits_api_v1_token, 5);
350
308
 
351
309
  /**
352
310
  * TenantPermissions carries tenant method permissions.
@@ -375,7 +333,7 @@ export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
375
333
  * Use `create(TenantPermissionsSchema)` to create a new message.
376
334
  */
377
335
  export const TenantPermissionsSchema: GenMessage<TenantPermissions> = /*@__PURE__*/
378
- messageDesc(file_fits_api_v1_token, 7);
336
+ messageDesc(file_fits_api_v1_token, 6);
379
337
 
380
338
  /**
381
339
  * AdminPermissions carries admin method permissions.
@@ -396,35 +354,7 @@ export type AdminPermissions = Message<"fits.api.v1.AdminPermissions"> & {
396
354
  * Use `create(AdminPermissionsSchema)` to create a new message.
397
355
  */
398
356
  export const AdminPermissionsSchema: GenMessage<AdminPermissions> = /*@__PURE__*/
399
- messageDesc(file_fits_api_v1_token, 8);
400
-
401
- /**
402
- * TokenServiceCreateResponse is the response payload of a token create request
403
- *
404
- * @generated from message fits.api.v1.TokenServiceCreateResponse
405
- */
406
- export type TokenServiceCreateResponse = Message<"fits.api.v1.TokenServiceCreateResponse"> & {
407
- /**
408
- * Token which was created
409
- *
410
- * @generated from field: fits.api.v1.Token token = 1;
411
- */
412
- token?: Token | undefined;
413
-
414
- /**
415
- * Secret is the body if the jwt token, should be used in api requests as bearer token
416
- *
417
- * @generated from field: string secret = 2;
418
- */
419
- secret: string;
420
- };
421
-
422
- /**
423
- * Describes the message fits.api.v1.TokenServiceCreateResponse.
424
- * Use `create(TokenServiceCreateResponseSchema)` to create a new message.
425
- */
426
- export const TokenServiceCreateResponseSchema: GenMessage<TokenServiceCreateResponse> = /*@__PURE__*/
427
- messageDesc(file_fits_api_v1_token, 9);
357
+ messageDesc(file_fits_api_v1_token, 7);
428
358
 
429
359
  /**
430
360
  * TokenServiceListRequest is the request payload to list tokens
@@ -439,7 +369,7 @@ export type TokenServiceListRequest = Message<"fits.api.v1.TokenServiceListReque
439
369
  * Use `create(TokenServiceListRequestSchema)` to create a new message.
440
370
  */
441
371
  export const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest> = /*@__PURE__*/
442
- messageDesc(file_fits_api_v1_token, 10);
372
+ messageDesc(file_fits_api_v1_token, 8);
443
373
 
444
374
  /**
445
375
  * TokenServiceListResponse is the response payload of a token list request
@@ -460,7 +390,7 @@ export type TokenServiceListResponse = Message<"fits.api.v1.TokenServiceListResp
460
390
  * Use `create(TokenServiceListResponseSchema)` to create a new message.
461
391
  */
462
392
  export const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse> = /*@__PURE__*/
463
- messageDesc(file_fits_api_v1_token, 11);
393
+ messageDesc(file_fits_api_v1_token, 9);
464
394
 
465
395
  /**
466
396
  * TokenServiceRevokeRequest is the request payload of a token revoke request
@@ -481,7 +411,7 @@ export type TokenServiceRevokeRequest = Message<"fits.api.v1.TokenServiceRevokeR
481
411
  * Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
482
412
  */
483
413
  export const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest> = /*@__PURE__*/
484
- messageDesc(file_fits_api_v1_token, 12);
414
+ messageDesc(file_fits_api_v1_token, 10);
485
415
 
486
416
  /**
487
417
  * TokenServiceRevokeResponse is the response payload of a token revoke request
@@ -496,99 +426,7 @@ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevoke
496
426
  * Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
497
427
  */
498
428
  export const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse> = /*@__PURE__*/
499
- messageDesc(file_fits_api_v1_token, 13);
500
-
501
- /**
502
- * TokenServiceUpdateRequest is the request payload of a token update request
503
- *
504
- * @generated from message fits.api.v1.TokenServiceUpdateRequest
505
- */
506
- export type TokenServiceUpdateRequest = Message<"fits.api.v1.TokenServiceUpdateRequest"> & {
507
- /**
508
- * Uuid of the token to update
509
- *
510
- * @generated from field: string uuid = 1;
511
- */
512
- uuid: string;
513
-
514
- /**
515
- * UpdateMeta contains the timestamp and strategy to be used in this update request
516
- * TokenUpdate is not guarded with optlock in the backend
517
- *
518
- * @generated from field: fits.api.v1.UpdateMeta update_meta = 2;
519
- */
520
- updateMeta?: UpdateMeta | undefined;
521
-
522
- /**
523
- * Description is a user given description of this token.
524
- *
525
- * @generated from field: optional string description = 3;
526
- */
527
- description?: string | undefined;
528
-
529
- /**
530
- * Permissions is a list of service methods this token can be used for.
531
- *
532
- * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 4;
533
- */
534
- permissions: PermissionsByVisibility[];
535
-
536
- /**
537
- * ProjectRoles associates a project id with the corresponding role of the token owner
538
- *
539
- * @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 5;
540
- */
541
- projectRoles: { [key: string]: ProjectRole };
542
-
543
- /**
544
- * TenantRoles associates a tenant id with the corresponding role of the token owner.
545
- *
546
- * @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 6;
547
- */
548
- tenantRoles: { [key: string]: TenantRole };
549
-
550
- /**
551
- * AdminRole defines the admin role of the token owner
552
- *
553
- * @generated from field: optional fits.api.v1.AdminRole admin_role = 7;
554
- */
555
- adminRole?: AdminRole | undefined;
556
-
557
- /**
558
- * Labels on this token
559
- *
560
- * @generated from field: fits.api.v1.UpdateLabels labels = 8;
561
- */
562
- labels?: UpdateLabels | undefined;
563
- };
564
-
565
- /**
566
- * Describes the message fits.api.v1.TokenServiceUpdateRequest.
567
- * Use `create(TokenServiceUpdateRequestSchema)` to create a new message.
568
- */
569
- export const TokenServiceUpdateRequestSchema: GenMessage<TokenServiceUpdateRequest> = /*@__PURE__*/
570
- messageDesc(file_fits_api_v1_token, 14);
571
-
572
- /**
573
- * TokenServiceUpdateResponse is the response payload of a token update request
574
- *
575
- * @generated from message fits.api.v1.TokenServiceUpdateResponse
576
- */
577
- export type TokenServiceUpdateResponse = Message<"fits.api.v1.TokenServiceUpdateResponse"> & {
578
- /**
579
- * Token is the updated token
580
- *
581
- * @generated from field: fits.api.v1.Token token = 1;
582
- */
583
- token?: Token | undefined;
584
- };
585
-
586
- /**
587
- * Describes the message fits.api.v1.TokenServiceUpdateResponse.
588
- * Use `create(TokenServiceUpdateResponseSchema)` to create a new message.
589
- */
590
- export const TokenServiceUpdateResponseSchema: GenMessage<TokenServiceUpdateResponse> = /*@__PURE__*/
591
- messageDesc(file_fits_api_v1_token, 15);
429
+ messageDesc(file_fits_api_v1_token, 11);
592
430
 
593
431
  /**
594
432
  * TokenServiceGetRequest is the request payload of a token get request
@@ -609,7 +447,7 @@ export type TokenServiceGetRequest = Message<"fits.api.v1.TokenServiceGetRequest
609
447
  * Use `create(TokenServiceGetRequestSchema)` to create a new message.
610
448
  */
611
449
  export const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest> = /*@__PURE__*/
612
- messageDesc(file_fits_api_v1_token, 16);
450
+ messageDesc(file_fits_api_v1_token, 12);
613
451
 
614
452
  /**
615
453
  * TokenServiceGetResponse is the response payload of a token get request
@@ -630,52 +468,7 @@ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetRespon
630
468
  * Use `create(TokenServiceGetResponseSchema)` to create a new message.
631
469
  */
632
470
  export const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse> = /*@__PURE__*/
633
- messageDesc(file_fits_api_v1_token, 17);
634
-
635
- /**
636
- * TokenServiceRefreshRequest is the request payload of a token refresh request
637
- * Permissions, Roles and Expiration duration and all other properties are inherited from the calling token.
638
- * The expiration duration will be calculated from the existing token (exp - iat)
639
- *
640
- * @generated from message fits.api.v1.TokenServiceRefreshRequest
641
- */
642
- export type TokenServiceRefreshRequest = Message<"fits.api.v1.TokenServiceRefreshRequest"> & {
643
- };
644
-
645
- /**
646
- * Describes the message fits.api.v1.TokenServiceRefreshRequest.
647
- * Use `create(TokenServiceRefreshRequestSchema)` to create a new message.
648
- */
649
- export const TokenServiceRefreshRequestSchema: GenMessage<TokenServiceRefreshRequest> = /*@__PURE__*/
650
- messageDesc(file_fits_api_v1_token, 18);
651
-
652
- /**
653
- * TokenServiceRefreshResponse is the response payload of a token refresh request
654
- *
655
- * @generated from message fits.api.v1.TokenServiceRefreshResponse
656
- */
657
- export type TokenServiceRefreshResponse = Message<"fits.api.v1.TokenServiceRefreshResponse"> & {
658
- /**
659
- * Token which was refreshed
660
- *
661
- * @generated from field: fits.api.v1.Token token = 1;
662
- */
663
- token?: Token | undefined;
664
-
665
- /**
666
- * Secret is the body if the jwt token, should be used in api requests as bearer token
667
- *
668
- * @generated from field: string secret = 2;
669
- */
670
- secret: string;
671
- };
672
-
673
- /**
674
- * Describes the message fits.api.v1.TokenServiceRefreshResponse.
675
- * Use `create(TokenServiceRefreshResponseSchema)` to create a new message.
676
- */
677
- export const TokenServiceRefreshResponseSchema: GenMessage<TokenServiceRefreshResponse> = /*@__PURE__*/
678
- messageDesc(file_fits_api_v1_token, 19);
471
+ messageDesc(file_fits_api_v1_token, 13);
679
472
 
680
473
  /**
681
474
  * TokenType specifies different use cases of tokens
@@ -727,26 +520,6 @@ export const TokenService: GenService<{
727
520
  input: typeof TokenServiceGetRequestSchema;
728
521
  output: typeof TokenServiceGetResponseSchema;
729
522
  },
730
- /**
731
- * Creates a token to authenticate against the platform, the secret will be only visible in the response.
732
- *
733
- * @generated from rpc fits.api.v1.TokenService.Create
734
- */
735
- create: {
736
- methodKind: "unary";
737
- input: typeof TokenServiceCreateRequestSchema;
738
- output: typeof TokenServiceCreateResponseSchema;
739
- },
740
- /**
741
- * Updates a token.
742
- *
743
- * @generated from rpc fits.api.v1.TokenService.Update
744
- */
745
- update: {
746
- methodKind: "unary";
747
- input: typeof TokenServiceUpdateRequestSchema;
748
- output: typeof TokenServiceUpdateResponseSchema;
749
- },
750
523
  /**
751
524
  * Returns the list of all user tokens.
752
525
  *
@@ -767,16 +540,6 @@ export const TokenService: GenService<{
767
540
  input: typeof TokenServiceRevokeRequestSchema;
768
541
  output: typeof TokenServiceRevokeResponseSchema;
769
542
  },
770
- /**
771
- * Refreshes a token, this will create a new token with the exact same permissions as the calling token contains.
772
- *
773
- * @generated from rpc fits.api.v1.TokenService.Refresh
774
- */
775
- refresh: {
776
- methodKind: "unary";
777
- input: typeof TokenServiceRefreshRequestSchema;
778
- output: typeof TokenServiceRefreshResponseSchema;
779
- },
780
543
  }> = /*@__PURE__*/
781
544
  serviceDesc(file_fits_api_v1_token, 0);
782
545
 
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "fits",
22
22
  "buf"
23
23
  ],
24
- "version": "0.0.2"
24
+ "version": "0.1.0"
25
25
  }