@fi-ts/api 0.0.0-pr.43.f45adef3 → 0.0.0-pr.46.5cf99046

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.
@@ -0,0 +1,350 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { PermissionsByVisibility } from "./token_pb.js";
3
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file fits/api/v1/apikey.proto.
7
+ */
8
+ export declare const file_fits_api_v1_apikey: GenFile;
9
+ /**
10
+ * ApiKey is a personal access token which authenticates api requests on behalf of a user.
11
+ *
12
+ * Secrets have the format fco_v1_<random>, the version selects the generation and
13
+ * hash scheme of the secret, v1 is hashed with sha-256.
14
+ * The plaintext secret is only known at creation time and is returned exactly once,
15
+ * only the sha-256 hash of the secret is persisted, never the secret itself.
16
+ *
17
+ * @generated from message fits.api.v1.ApiKey
18
+ */
19
+ export type ApiKey = Message<"fits.api.v1.ApiKey"> & {
20
+ /**
21
+ * Id is the unique identifier of this api key
22
+ *
23
+ * @generated from field: string id = 1;
24
+ */
25
+ id: string;
26
+ /**
27
+ * UserId is the id of the user this api key belongs to
28
+ *
29
+ * @generated from field: string user_id = 2;
30
+ */
31
+ userId: string;
32
+ /**
33
+ * Realm is the identity realm of the user this api key belongs to
34
+ *
35
+ * @generated from field: string realm = 3;
36
+ */
37
+ realm: string;
38
+ /**
39
+ * Name is a user given display name of this api key
40
+ *
41
+ * @generated from field: string name = 4;
42
+ */
43
+ name: string;
44
+ /**
45
+ * Hash is the sha-256 hash of the api key secret, the secret itself is never stored.
46
+ * The api server leaves this field unset in api responses, it is only persisted internally.
47
+ *
48
+ * @generated from field: string hash = 5;
49
+ */
50
+ hash: string;
51
+ /**
52
+ * Prefix is the first 12 bytes of the api key secret, used to display and identify
53
+ * the api key in the ui, e.g. fco_v1_abc12...
54
+ *
55
+ * @generated from field: string prefix = 6;
56
+ */
57
+ prefix: string;
58
+ /**
59
+ * CreatedAt is the date when this api key was created
60
+ *
61
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
62
+ */
63
+ createdAt?: Timestamp | undefined;
64
+ /**
65
+ * ExpiresAt is the date after which this api key can not be used anymore.
66
+ * If unset the api key does not expire.
67
+ *
68
+ * @generated from field: optional google.protobuf.Timestamp expires_at = 8;
69
+ */
70
+ expiresAt?: Timestamp | undefined;
71
+ /**
72
+ * RevokedAt is the date when this api key was revoked.
73
+ * If unset the api key is not revoked.
74
+ *
75
+ * @generated from field: optional google.protobuf.Timestamp revoked_at = 9;
76
+ */
77
+ revokedAt?: Timestamp | undefined;
78
+ /**
79
+ * LastUsedAt is the date when this api key was last successfully used for authentication.
80
+ * If unset the api key was never used.
81
+ *
82
+ * @generated from field: optional google.protobuf.Timestamp last_used_at = 10;
83
+ */
84
+ lastUsedAt?: Timestamp | undefined;
85
+ /**
86
+ * Permissions limit the methods this api key can call.
87
+ * If unset the api key inherits the full permissions of the user it belongs to.
88
+ * If set, the api key can only call the intersection of these permissions and
89
+ * the permissions of the user it belongs to, see ApiKeyServiceCreateRequest.permissions.
90
+ *
91
+ * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 11;
92
+ */
93
+ permissions: PermissionsByVisibility[];
94
+ };
95
+ /**
96
+ * Describes the message fits.api.v1.ApiKey.
97
+ * Use `create(ApiKeySchema)` to create a new message.
98
+ */
99
+ export declare const ApiKeySchema: GenMessage<ApiKey>;
100
+ /**
101
+ * ApiKeyServiceCreateRequest is the request payload to create an api key
102
+ *
103
+ * @generated from message fits.api.v1.ApiKeyServiceCreateRequest
104
+ */
105
+ export type ApiKeyServiceCreateRequest = Message<"fits.api.v1.ApiKeyServiceCreateRequest"> & {
106
+ /**
107
+ * Name is a user given display name of this api key
108
+ *
109
+ * @generated from field: string name = 1;
110
+ */
111
+ name: string;
112
+ /**
113
+ * ExpiresAt is the date after which this api key can not be used anymore.
114
+ * If unset the api key does not expire.
115
+ *
116
+ * @generated from field: optional google.protobuf.Timestamp expires_at = 2;
117
+ */
118
+ expiresAt?: Timestamp | undefined;
119
+ /**
120
+ * Permissions limit the methods this api key can call.
121
+ * If unset the api key inherits the full permissions of the user it belongs to.
122
+ * If set, the api key can only call the intersection of these permissions and
123
+ * the permissions of the user it belongs to. Operator permissions are rejected,
124
+ * a user can never obtain them.
125
+ *
126
+ * @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 3;
127
+ */
128
+ permissions: PermissionsByVisibility[];
129
+ };
130
+ /**
131
+ * Describes the message fits.api.v1.ApiKeyServiceCreateRequest.
132
+ * Use `create(ApiKeyServiceCreateRequestSchema)` to create a new message.
133
+ */
134
+ export declare const ApiKeyServiceCreateRequestSchema: GenMessage<ApiKeyServiceCreateRequest>;
135
+ /**
136
+ * ApiKeyServiceCreateResponse is the response payload of an api key create request
137
+ *
138
+ * @generated from message fits.api.v1.ApiKeyServiceCreateResponse
139
+ */
140
+ export type ApiKeyServiceCreateResponse = Message<"fits.api.v1.ApiKeyServiceCreateResponse"> & {
141
+ /**
142
+ * Secret is the plaintext api key secret with format fco_v1_<random>, it is
143
+ * returned exactly once and never stored by the api server.
144
+ *
145
+ * @generated from field: string secret = 1;
146
+ */
147
+ secret: string;
148
+ /**
149
+ * ApiKey is the created api key
150
+ *
151
+ * @generated from field: fits.api.v1.ApiKey api_key = 2;
152
+ */
153
+ apiKey?: ApiKey | undefined;
154
+ };
155
+ /**
156
+ * Describes the message fits.api.v1.ApiKeyServiceCreateResponse.
157
+ * Use `create(ApiKeyServiceCreateResponseSchema)` to create a new message.
158
+ */
159
+ export declare const ApiKeyServiceCreateResponseSchema: GenMessage<ApiKeyServiceCreateResponse>;
160
+ /**
161
+ * ApiKeyServiceListRequest is the request payload to list api keys
162
+ *
163
+ * @generated from message fits.api.v1.ApiKeyServiceListRequest
164
+ */
165
+ export type ApiKeyServiceListRequest = Message<"fits.api.v1.ApiKeyServiceListRequest"> & {};
166
+ /**
167
+ * Describes the message fits.api.v1.ApiKeyServiceListRequest.
168
+ * Use `create(ApiKeyServiceListRequestSchema)` to create a new message.
169
+ */
170
+ export declare const ApiKeyServiceListRequestSchema: GenMessage<ApiKeyServiceListRequest>;
171
+ /**
172
+ * ApiKeyServiceListResponse is the response payload of an api key list request
173
+ *
174
+ * @generated from message fits.api.v1.ApiKeyServiceListResponse
175
+ */
176
+ export type ApiKeyServiceListResponse = Message<"fits.api.v1.ApiKeyServiceListResponse"> & {
177
+ /**
178
+ * ApiKeys is a list of api keys without the secrets
179
+ *
180
+ * @generated from field: repeated fits.api.v1.ApiKey api_keys = 1;
181
+ */
182
+ apiKeys: ApiKey[];
183
+ };
184
+ /**
185
+ * Describes the message fits.api.v1.ApiKeyServiceListResponse.
186
+ * Use `create(ApiKeyServiceListResponseSchema)` to create a new message.
187
+ */
188
+ export declare const ApiKeyServiceListResponseSchema: GenMessage<ApiKeyServiceListResponse>;
189
+ /**
190
+ * ApiKeyServiceGetRequest is the request payload of an api key get request
191
+ *
192
+ * @generated from message fits.api.v1.ApiKeyServiceGetRequest
193
+ */
194
+ export type ApiKeyServiceGetRequest = Message<"fits.api.v1.ApiKeyServiceGetRequest"> & {
195
+ /**
196
+ * Id of the api key to get
197
+ *
198
+ * @generated from field: string id = 1;
199
+ */
200
+ id: string;
201
+ };
202
+ /**
203
+ * Describes the message fits.api.v1.ApiKeyServiceGetRequest.
204
+ * Use `create(ApiKeyServiceGetRequestSchema)` to create a new message.
205
+ */
206
+ export declare const ApiKeyServiceGetRequestSchema: GenMessage<ApiKeyServiceGetRequest>;
207
+ /**
208
+ * ApiKeyServiceGetResponse is the response payload of an api key get request
209
+ *
210
+ * @generated from message fits.api.v1.ApiKeyServiceGetResponse
211
+ */
212
+ export type ApiKeyServiceGetResponse = Message<"fits.api.v1.ApiKeyServiceGetResponse"> & {
213
+ /**
214
+ * ApiKey is the api key
215
+ *
216
+ * @generated from field: fits.api.v1.ApiKey api_key = 1;
217
+ */
218
+ apiKey?: ApiKey | undefined;
219
+ };
220
+ /**
221
+ * Describes the message fits.api.v1.ApiKeyServiceGetResponse.
222
+ * Use `create(ApiKeyServiceGetResponseSchema)` to create a new message.
223
+ */
224
+ export declare const ApiKeyServiceGetResponseSchema: GenMessage<ApiKeyServiceGetResponse>;
225
+ /**
226
+ * ApiKeyServiceRevokeRequest is the request payload of an api key revoke request
227
+ *
228
+ * @generated from message fits.api.v1.ApiKeyServiceRevokeRequest
229
+ */
230
+ export type ApiKeyServiceRevokeRequest = Message<"fits.api.v1.ApiKeyServiceRevokeRequest"> & {
231
+ /**
232
+ * Id of the api key to revoke
233
+ *
234
+ * @generated from field: string id = 1;
235
+ */
236
+ id: string;
237
+ };
238
+ /**
239
+ * Describes the message fits.api.v1.ApiKeyServiceRevokeRequest.
240
+ * Use `create(ApiKeyServiceRevokeRequestSchema)` to create a new message.
241
+ */
242
+ export declare const ApiKeyServiceRevokeRequestSchema: GenMessage<ApiKeyServiceRevokeRequest>;
243
+ /**
244
+ * ApiKeyServiceRevokeResponse is the response payload of an api key revoke request
245
+ *
246
+ * @generated from message fits.api.v1.ApiKeyServiceRevokeResponse
247
+ */
248
+ export type ApiKeyServiceRevokeResponse = Message<"fits.api.v1.ApiKeyServiceRevokeResponse"> & {};
249
+ /**
250
+ * Describes the message fits.api.v1.ApiKeyServiceRevokeResponse.
251
+ * Use `create(ApiKeyServiceRevokeResponseSchema)` to create a new message.
252
+ */
253
+ export declare const ApiKeyServiceRevokeResponseSchema: GenMessage<ApiKeyServiceRevokeResponse>;
254
+ /**
255
+ * ApiKeyServiceDeleteRequest is the request payload of an api key delete request
256
+ *
257
+ * @generated from message fits.api.v1.ApiKeyServiceDeleteRequest
258
+ */
259
+ export type ApiKeyServiceDeleteRequest = Message<"fits.api.v1.ApiKeyServiceDeleteRequest"> & {
260
+ /**
261
+ * Id of the api key to delete
262
+ *
263
+ * @generated from field: string id = 1;
264
+ */
265
+ id: string;
266
+ };
267
+ /**
268
+ * Describes the message fits.api.v1.ApiKeyServiceDeleteRequest.
269
+ * Use `create(ApiKeyServiceDeleteRequestSchema)` to create a new message.
270
+ */
271
+ export declare const ApiKeyServiceDeleteRequestSchema: GenMessage<ApiKeyServiceDeleteRequest>;
272
+ /**
273
+ * ApiKeyServiceDeleteResponse is the response payload of an api key delete request
274
+ *
275
+ * @generated from message fits.api.v1.ApiKeyServiceDeleteResponse
276
+ */
277
+ export type ApiKeyServiceDeleteResponse = Message<"fits.api.v1.ApiKeyServiceDeleteResponse"> & {};
278
+ /**
279
+ * Describes the message fits.api.v1.ApiKeyServiceDeleteResponse.
280
+ * Use `create(ApiKeyServiceDeleteResponseSchema)` to create a new message.
281
+ */
282
+ export declare const ApiKeyServiceDeleteResponseSchema: GenMessage<ApiKeyServiceDeleteResponse>;
283
+ /**
284
+ * ApiKeyService provides api key (personal access token) management operations.
285
+ *
286
+ * An api key authenticates requests on behalf of the user it belongs to.
287
+ * Clients send the secret of the api key in the authorization header:
288
+ *
289
+ * Authorization: Bearer fco_v1_abcd12...
290
+ *
291
+ * The api server resolves the secret to the user stored with the api key
292
+ * and acquires a jwt for this user from the identity provider
293
+ * (jwt authorization grant). The jwt is cached until it expires and is
294
+ * reused for subsequent requests authenticated with the same api key.
295
+ * Revoking or deleting an api key immediately invalidates its cached jwt.
296
+ *
297
+ * @generated from service fits.api.v1.ApiKeyService
298
+ */
299
+ export declare const ApiKeyService: GenService<{
300
+ /**
301
+ * Creates a new api key, the plaintext secret is returned exactly once and never stored.
302
+ *
303
+ * @generated from rpc fits.api.v1.ApiKeyService.Create
304
+ */
305
+ create: {
306
+ methodKind: "unary";
307
+ input: typeof ApiKeyServiceCreateRequestSchema;
308
+ output: typeof ApiKeyServiceCreateResponseSchema;
309
+ };
310
+ /**
311
+ * Returns the list of all api keys of the authenticated user.
312
+ *
313
+ * @generated from rpc fits.api.v1.ApiKeyService.List
314
+ */
315
+ list: {
316
+ methodKind: "unary";
317
+ input: typeof ApiKeyServiceListRequestSchema;
318
+ output: typeof ApiKeyServiceListResponseSchema;
319
+ };
320
+ /**
321
+ * Returns the api key with the specified id.
322
+ *
323
+ * @generated from rpc fits.api.v1.ApiKeyService.Get
324
+ */
325
+ get: {
326
+ methodKind: "unary";
327
+ input: typeof ApiKeyServiceGetRequestSchema;
328
+ output: typeof ApiKeyServiceGetResponseSchema;
329
+ };
330
+ /**
331
+ * Revokes an api key, no further usage is possible afterwards.
332
+ *
333
+ * @generated from rpc fits.api.v1.ApiKeyService.Revoke
334
+ */
335
+ revoke: {
336
+ methodKind: "unary";
337
+ input: typeof ApiKeyServiceRevokeRequestSchema;
338
+ output: typeof ApiKeyServiceRevokeResponseSchema;
339
+ };
340
+ /**
341
+ * Deletes an api key irreversibly.
342
+ *
343
+ * @generated from rpc fits.api.v1.ApiKeyService.Delete
344
+ */
345
+ delete: {
346
+ methodKind: "unary";
347
+ input: typeof ApiKeyServiceDeleteRequestSchema;
348
+ output: typeof ApiKeyServiceDeleteResponseSchema;
349
+ };
350
+ }>;
@@ -0,0 +1,85 @@
1
+ // @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
2
+ // @generated from file fits/api/v1/apikey.proto (package fits.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
6
+ import { file_fits_api_v1_common } from "./common_pb.js";
7
+ import { file_fits_api_v1_predefined_rules } from "./predefined_rules_pb.js";
8
+ import { file_fits_api_v1_token } from "./token_pb.js";
9
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
+ /**
11
+ * Describes the file fits/api/v1/apikey.proto.
12
+ */
13
+ export const file_fits_api_v1_apikey = /*@__PURE__*/ fileDesc("ChhmaXRzL2FwaS92MS9hcGlrZXkucHJvdG8SC2ZpdHMuYXBpLnYxIuoDCgZBcGlLZXkSFAoCaWQYASABKAlCCLpIBXIDs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uDzGAFClwEKD2NvbS5maXRzLmFwaS52MUILQXBpa2V5UHJvdG9QAVopZ2l0aHViLmNvbS9maS10cy9hcGkvZ28vZml0cy9hcGkvdjE7YXBpdjGiAgNGQViqAgtGaXRzLkFwaS5WMcoCC0ZpdHNcQXBpXFYx4gIXRml0c1xBcGlcVjFcR1BCTWV0YWRhdGHqAg1GaXRzOjpBcGk6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_fits_api_v1_common, file_fits_api_v1_predefined_rules, file_fits_api_v1_token, file_google_protobuf_timestamp]);
14
+ /**
15
+ * Describes the message fits.api.v1.ApiKey.
16
+ * Use `create(ApiKeySchema)` to create a new message.
17
+ */
18
+ export const ApiKeySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 0);
19
+ /**
20
+ * Describes the message fits.api.v1.ApiKeyServiceCreateRequest.
21
+ * Use `create(ApiKeyServiceCreateRequestSchema)` to create a new message.
22
+ */
23
+ export const ApiKeyServiceCreateRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 1);
24
+ /**
25
+ * Describes the message fits.api.v1.ApiKeyServiceCreateResponse.
26
+ * Use `create(ApiKeyServiceCreateResponseSchema)` to create a new message.
27
+ */
28
+ export const ApiKeyServiceCreateResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 2);
29
+ /**
30
+ * Describes the message fits.api.v1.ApiKeyServiceListRequest.
31
+ * Use `create(ApiKeyServiceListRequestSchema)` to create a new message.
32
+ */
33
+ export const ApiKeyServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 3);
34
+ /**
35
+ * Describes the message fits.api.v1.ApiKeyServiceListResponse.
36
+ * Use `create(ApiKeyServiceListResponseSchema)` to create a new message.
37
+ */
38
+ export const ApiKeyServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 4);
39
+ /**
40
+ * Describes the message fits.api.v1.ApiKeyServiceGetRequest.
41
+ * Use `create(ApiKeyServiceGetRequestSchema)` to create a new message.
42
+ */
43
+ export const ApiKeyServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 5);
44
+ /**
45
+ * Describes the message fits.api.v1.ApiKeyServiceGetResponse.
46
+ * Use `create(ApiKeyServiceGetResponseSchema)` to create a new message.
47
+ */
48
+ export const ApiKeyServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 6);
49
+ /**
50
+ * Describes the message fits.api.v1.ApiKeyServiceRevokeRequest.
51
+ * Use `create(ApiKeyServiceRevokeRequestSchema)` to create a new message.
52
+ */
53
+ export const ApiKeyServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 7);
54
+ /**
55
+ * Describes the message fits.api.v1.ApiKeyServiceRevokeResponse.
56
+ * Use `create(ApiKeyServiceRevokeResponseSchema)` to create a new message.
57
+ */
58
+ export const ApiKeyServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 8);
59
+ /**
60
+ * Describes the message fits.api.v1.ApiKeyServiceDeleteRequest.
61
+ * Use `create(ApiKeyServiceDeleteRequestSchema)` to create a new message.
62
+ */
63
+ export const ApiKeyServiceDeleteRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 9);
64
+ /**
65
+ * Describes the message fits.api.v1.ApiKeyServiceDeleteResponse.
66
+ * Use `create(ApiKeyServiceDeleteResponseSchema)` to create a new message.
67
+ */
68
+ export const ApiKeyServiceDeleteResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_apikey, 10);
69
+ /**
70
+ * ApiKeyService provides api key (personal access token) management operations.
71
+ *
72
+ * An api key authenticates requests on behalf of the user it belongs to.
73
+ * Clients send the secret of the api key in the authorization header:
74
+ *
75
+ * Authorization: Bearer fco_v1_abcd12...
76
+ *
77
+ * The api server resolves the secret to the user stored with the api key
78
+ * and acquires a jwt for this user from the identity provider
79
+ * (jwt authorization grant). The jwt is cached until it expires and is
80
+ * reused for subsequent requests authenticated with the same api key.
81
+ * Revoking or deleting an api key immediately invalidates its cached jwt.
82
+ *
83
+ * @generated from service fits.api.v1.ApiKeyService
84
+ */
85
+ export const ApiKeyService = /*@__PURE__*/ serviceDesc(file_fits_api_v1_apikey, 0);