@fi-ts/api 0.0.1 → 0.0.3
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.
- package/buf/validate/validate_pb.ts +1 -1
- package/fits/api/mvm/v1/domain_pb.d.ts +89 -0
- package/fits/api/mvm/v1/domain_pb.js +32 -0
- package/fits/api/mvm/v1/domain_pb.ts +113 -0
- package/fits/api/mvm/v1/ldap_pb.d.ts +89 -0
- package/fits/api/mvm/v1/ldap_pb.js +32 -0
- package/fits/api/mvm/v1/ldap_pb.ts +113 -0
- package/fits/api/mvm/v1/location_pb.d.ts +4 -3
- package/fits/api/mvm/v1/location_pb.js +4 -4
- package/fits/api/mvm/v1/location_pb.ts +8 -7
- package/fits/api/mvm/v1/mvm_pb.d.ts +1 -1
- package/fits/api/mvm/v1/mvm_pb.js +4 -4
- package/fits/api/mvm/v1/mvm_pb.ts +5 -5
- package/fits/api/mvm/v1/os_pb.js +4 -4
- package/fits/api/mvm/v1/os_pb.ts +4 -4
- package/fits/api/mvm/v1/vlan_pb.d.ts +26 -64
- package/fits/api/mvm/v1/vlan_pb.js +6 -50
- package/fits/api/mvm/v1/vlan_pb.ts +33 -77
- package/fits/api/v1/common_pb.js +3 -3
- package/fits/api/v1/common_pb.ts +3 -3
- package/fits/api/v1/health_pb.js +2 -2
- package/fits/api/v1/health_pb.ts +2 -2
- package/fits/api/v1/ip_pb.d.ts +1 -1
- package/fits/api/v1/ip_pb.js +4 -4
- package/fits/api/v1/ip_pb.ts +5 -5
- package/fits/api/v1/method_pb.d.ts +2 -2
- package/fits/api/v1/method_pb.js +4 -4
- package/fits/api/v1/method_pb.ts +6 -6
- package/fits/api/v1/predefined_rules_pb.d.ts +31 -1
- package/fits/api/v1/predefined_rules_pb.js +39 -9
- package/fits/api/v1/predefined_rules_pb.ts +50 -10
- package/fits/api/v1/project_pb.d.ts +1 -1
- package/fits/api/v1/project_pb.js +4 -4
- package/fits/api/v1/project_pb.ts +5 -5
- package/fits/api/v1/tenant_pb.d.ts +1 -117
- package/fits/api/v1/tenant_pb.js +9 -29
- package/fits/api/v1/tenant_pb.ts +10 -142
- package/fits/api/v1/token_pb.d.ts +169 -218
- package/fits/api/v1/token_pb.js +41 -41
- package/fits/api/v1/token_pb.ts +192 -247
- package/fits/api/v1/version_pb.js +4 -4
- package/fits/api/v1/version_pb.ts +4 -4
- package/package.json +1 -1
- package/fits/api/v1/partition_pb.d.ts +0 -251
- package/fits/api/v1/partition_pb.js +0 -62
- package/fits/api/v1/partition_pb.ts +0 -300
- package/fits/api/v1/user_pb.d.ts +0 -108
- package/fits/api/v1/user_pb.js +0 -34
- package/fits/api/v1/user_pb.ts +0 -139
- package/fits/api/v1/vpn_pb.d.ts +0 -55
- package/fits/api/v1/vpn_pb.js +0 -14
- package/fits/api/v1/vpn_pb.ts +0 -72
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { AdminRole,
|
|
3
|
-
import type {
|
|
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.
|
|
@@ -50,9 +50,9 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
50
50
|
/**
|
|
51
51
|
* Permissions is a list of service methods this token can be used for
|
|
52
52
|
*
|
|
53
|
-
* @generated from field: repeated fits.api.v1.
|
|
53
|
+
* @generated from field: repeated fits.api.v1.PermissionsByVisibility permissions = 5;
|
|
54
54
|
*/
|
|
55
|
-
permissions:
|
|
55
|
+
permissions: PermissionsByVisibility[];
|
|
56
56
|
/**
|
|
57
57
|
* Expires gives the date in the future after which this token can not be used anymore
|
|
58
58
|
*
|
|
@@ -80,7 +80,7 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
80
80
|
[key: string]: ProjectRole;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
|
-
* TenantRoles associates a tenant id with the corresponding role of the token owner
|
|
83
|
+
* TenantRoles associates a tenant id with the corresponding role of the token owner.
|
|
84
84
|
*
|
|
85
85
|
* @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 10;
|
|
86
86
|
*/
|
|
@@ -93,6 +93,24 @@ 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
|
+
* RawRoles are the raw roles transmitted by the OIDC provider.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: repeated string raw_roles = 12;
|
|
100
|
+
*/
|
|
101
|
+
rawRoles: string[];
|
|
102
|
+
/**
|
|
103
|
+
* Name is the display name of the user the token was issued for.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: string name = 13;
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* Email is the email address of the user the token was issued for.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: string email = 14;
|
|
112
|
+
*/
|
|
113
|
+
email: string;
|
|
96
114
|
};
|
|
97
115
|
/**
|
|
98
116
|
* Describes the message fits.api.v1.Token.
|
|
@@ -100,116 +118,199 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
100
118
|
*/
|
|
101
119
|
export declare const TokenSchema: GenMessage<Token>;
|
|
102
120
|
/**
|
|
103
|
-
*
|
|
121
|
+
* MethodPermission is a mapping from a subject/project to a service method
|
|
104
122
|
*
|
|
105
|
-
* @generated from message fits.api.v1.
|
|
123
|
+
* @generated from message fits.api.v1.MethodPermission
|
|
106
124
|
*/
|
|
107
|
-
export type
|
|
125
|
+
export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
|
|
108
126
|
/**
|
|
109
|
-
*
|
|
127
|
+
* Subject maybe either the project or the tenant
|
|
128
|
+
* for which the methods should be allowed
|
|
110
129
|
*
|
|
111
|
-
*
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Permissions is a list of service methods this token can be used for
|
|
130
|
+
* asterisk (*) can be specified to match any subject
|
|
131
|
+
* empty string ("") can be specified for requests that do not require a subject, e.g. partition list
|
|
132
|
+
* otherwise either a projectid or a tenant login should be specified
|
|
116
133
|
*
|
|
117
|
-
* @generated from field:
|
|
134
|
+
* @generated from field: string subject = 1;
|
|
118
135
|
*/
|
|
119
|
-
|
|
136
|
+
subject: string;
|
|
120
137
|
/**
|
|
121
|
-
*
|
|
138
|
+
* Methods which should be accessible
|
|
122
139
|
*
|
|
123
|
-
* @generated from field:
|
|
140
|
+
* @generated from field: repeated string methods = 2;
|
|
124
141
|
*/
|
|
125
|
-
|
|
142
|
+
methods: string[];
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Describes the message fits.api.v1.MethodPermission.
|
|
146
|
+
* Use `create(MethodPermissionSchema)` to create a new message.
|
|
147
|
+
*/
|
|
148
|
+
export declare const MethodPermissionSchema: GenMessage<MethodPermission>;
|
|
149
|
+
/**
|
|
150
|
+
* PermissionsByVisibility contains method permissions by visibility.
|
|
151
|
+
*
|
|
152
|
+
* @generated from message fits.api.v1.PermissionsByVisibility
|
|
153
|
+
*/
|
|
154
|
+
export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibility"> & {
|
|
155
|
+
/**
|
|
156
|
+
* Visibility defines the visibility of the requested method permissions.
|
|
157
|
+
*
|
|
158
|
+
* @generated from oneof fits.api.v1.PermissionsByVisibility.visibility
|
|
159
|
+
*/
|
|
160
|
+
visibility: {
|
|
161
|
+
/**
|
|
162
|
+
* PublicPermissions carries public method permissions.
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: fits.api.v1.PublicPermissions public = 1;
|
|
165
|
+
*/
|
|
166
|
+
value: PublicPermissions;
|
|
167
|
+
case: "public";
|
|
168
|
+
} | {
|
|
169
|
+
/**
|
|
170
|
+
* SelfPermissions carries self method permissions.
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: fits.api.v1.SelfPermissions self = 2;
|
|
173
|
+
*/
|
|
174
|
+
value: SelfPermissions;
|
|
175
|
+
case: "self";
|
|
176
|
+
} | {
|
|
177
|
+
/**
|
|
178
|
+
* ProjectPermissions carries project method permissions.
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: fits.api.v1.ProjectPermissions project = 3;
|
|
181
|
+
*/
|
|
182
|
+
value: ProjectPermissions;
|
|
183
|
+
case: "project";
|
|
184
|
+
} | {
|
|
185
|
+
/**
|
|
186
|
+
* TenantPermissions carries tenant method permissions.
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: fits.api.v1.TenantPermissions tenant = 4;
|
|
189
|
+
*/
|
|
190
|
+
value: TenantPermissions;
|
|
191
|
+
case: "tenant";
|
|
192
|
+
} | {
|
|
193
|
+
/**
|
|
194
|
+
* AdminPermissions carries admin method permissions.
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: fits.api.v1.AdminPermissions admin = 5;
|
|
197
|
+
*/
|
|
198
|
+
value: AdminPermissions;
|
|
199
|
+
case: "admin";
|
|
200
|
+
} | {
|
|
201
|
+
case: undefined;
|
|
202
|
+
value?: undefined;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message fits.api.v1.PermissionsByVisibility.
|
|
207
|
+
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export declare const PermissionsByVisibilitySchema: GenMessage<PermissionsByVisibility>;
|
|
210
|
+
/**
|
|
211
|
+
* PublicPermissions carries public method permissions.
|
|
212
|
+
*
|
|
213
|
+
* @generated from message fits.api.v1.PublicPermissions
|
|
214
|
+
*/
|
|
215
|
+
export type PublicPermissions = Message<"fits.api.v1.PublicPermissions"> & {
|
|
126
216
|
/**
|
|
127
|
-
*
|
|
217
|
+
* Methods which should be accessible.
|
|
128
218
|
*
|
|
129
|
-
* @generated from field:
|
|
219
|
+
* @generated from field: repeated string methods = 1;
|
|
130
220
|
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
221
|
+
methods: string[];
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message fits.api.v1.PublicPermissions.
|
|
225
|
+
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export declare const PublicPermissionsSchema: GenMessage<PublicPermissions>;
|
|
228
|
+
/**
|
|
229
|
+
* SelfPermissions carries self method permissions.
|
|
230
|
+
*
|
|
231
|
+
* @generated from message fits.api.v1.SelfPermissions
|
|
232
|
+
*/
|
|
233
|
+
export type SelfPermissions = Message<"fits.api.v1.SelfPermissions"> & {
|
|
134
234
|
/**
|
|
135
|
-
*
|
|
235
|
+
* Methods which should be accessible.
|
|
136
236
|
*
|
|
137
|
-
* @generated from field:
|
|
237
|
+
* @generated from field: repeated string methods = 1;
|
|
138
238
|
*/
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
239
|
+
methods: string[];
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message fits.api.v1.SelfPermissions.
|
|
243
|
+
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
export declare const SelfPermissionsSchema: GenMessage<SelfPermissions>;
|
|
246
|
+
/**
|
|
247
|
+
* ProjectPermissions carries project method permissions.
|
|
248
|
+
*
|
|
249
|
+
* @generated from message fits.api.v1.ProjectPermissions
|
|
250
|
+
*/
|
|
251
|
+
export type ProjectPermissions = Message<"fits.api.v1.ProjectPermissions"> & {
|
|
142
252
|
/**
|
|
143
|
-
*
|
|
253
|
+
* Project scope for the permissions.
|
|
254
|
+
* Asterisk (*) can be specified to match any subject.
|
|
144
255
|
*
|
|
145
|
-
* @generated from field:
|
|
256
|
+
* @generated from field: string project = 1;
|
|
146
257
|
*/
|
|
147
|
-
|
|
258
|
+
project: string;
|
|
148
259
|
/**
|
|
149
|
-
*
|
|
260
|
+
* Methods which should be accessible.
|
|
150
261
|
*
|
|
151
|
-
* @generated from field:
|
|
262
|
+
* @generated from field: repeated string methods = 2;
|
|
152
263
|
*/
|
|
153
|
-
|
|
264
|
+
methods: string[];
|
|
154
265
|
};
|
|
155
266
|
/**
|
|
156
|
-
* Describes the message fits.api.v1.
|
|
157
|
-
* Use `create(
|
|
267
|
+
* Describes the message fits.api.v1.ProjectPermissions.
|
|
268
|
+
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
158
269
|
*/
|
|
159
|
-
export declare const
|
|
270
|
+
export declare const ProjectPermissionsSchema: GenMessage<ProjectPermissions>;
|
|
160
271
|
/**
|
|
161
|
-
*
|
|
272
|
+
* TenantPermissions carries tenant method permissions.
|
|
162
273
|
*
|
|
163
|
-
* @generated from message fits.api.v1.
|
|
274
|
+
* @generated from message fits.api.v1.TenantPermissions
|
|
164
275
|
*/
|
|
165
|
-
export type
|
|
276
|
+
export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
|
|
166
277
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
278
|
+
* Login of the tenant.
|
|
279
|
+
* Asterisk (*) can be specified to match any subject.
|
|
169
280
|
*
|
|
170
|
-
*
|
|
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;
|
|
281
|
+
* @generated from field: string login = 1;
|
|
175
282
|
*/
|
|
176
|
-
|
|
283
|
+
login: string;
|
|
177
284
|
/**
|
|
178
|
-
* Methods which should be accessible
|
|
285
|
+
* Methods which should be accessible.
|
|
179
286
|
*
|
|
180
287
|
* @generated from field: repeated string methods = 2;
|
|
181
288
|
*/
|
|
182
289
|
methods: string[];
|
|
183
290
|
};
|
|
184
291
|
/**
|
|
185
|
-
* Describes the message fits.api.v1.
|
|
186
|
-
* Use `create(
|
|
292
|
+
* Describes the message fits.api.v1.TenantPermissions.
|
|
293
|
+
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
187
294
|
*/
|
|
188
|
-
export declare const
|
|
295
|
+
export declare const TenantPermissionsSchema: GenMessage<TenantPermissions>;
|
|
189
296
|
/**
|
|
190
|
-
*
|
|
297
|
+
* AdminPermissions carries admin method permissions.
|
|
191
298
|
*
|
|
192
|
-
* @generated from message fits.api.v1.
|
|
299
|
+
* @generated from message fits.api.v1.AdminPermissions
|
|
193
300
|
*/
|
|
194
|
-
export type
|
|
301
|
+
export type AdminPermissions = Message<"fits.api.v1.AdminPermissions"> & {
|
|
195
302
|
/**
|
|
196
|
-
*
|
|
303
|
+
* Methods which should be accessible.
|
|
197
304
|
*
|
|
198
|
-
* @generated from field:
|
|
305
|
+
* @generated from field: repeated string methods = 1;
|
|
199
306
|
*/
|
|
200
|
-
|
|
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;
|
|
307
|
+
methods: string[];
|
|
207
308
|
};
|
|
208
309
|
/**
|
|
209
|
-
* Describes the message fits.api.v1.
|
|
210
|
-
* Use `create(
|
|
310
|
+
* Describes the message fits.api.v1.AdminPermissions.
|
|
311
|
+
* Use `create(AdminPermissionsSchema)` to create a new message.
|
|
211
312
|
*/
|
|
212
|
-
export declare const
|
|
313
|
+
export declare const AdminPermissionsSchema: GenMessage<AdminPermissions>;
|
|
213
314
|
/**
|
|
214
315
|
* TokenServiceListRequest is the request payload to list tokens
|
|
215
316
|
*
|
|
@@ -268,89 +369,6 @@ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevoke
|
|
|
268
369
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
269
370
|
*/
|
|
270
371
|
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
372
|
/**
|
|
355
373
|
* TokenServiceGetRequest is the request payload of a token get request
|
|
356
374
|
*
|
|
@@ -387,43 +405,6 @@ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetRespon
|
|
|
387
405
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
388
406
|
*/
|
|
389
407
|
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
408
|
/**
|
|
428
409
|
* TokenType specifies different use cases of tokens
|
|
429
410
|
*
|
|
@@ -469,26 +450,6 @@ export declare const TokenService: GenService<{
|
|
|
469
450
|
input: typeof TokenServiceGetRequestSchema;
|
|
470
451
|
output: typeof TokenServiceGetResponseSchema;
|
|
471
452
|
};
|
|
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
453
|
/**
|
|
493
454
|
* Returns the list of all user tokens.
|
|
494
455
|
*
|
|
@@ -509,14 +470,4 @@ export declare const TokenService: GenService<{
|
|
|
509
470
|
input: typeof TokenServiceRevokeRequestSchema;
|
|
510
471
|
output: typeof TokenServiceRevokeResponseSchema;
|
|
511
472
|
};
|
|
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
473
|
}>;
|
package/fits/api/v1/token_pb.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-es v2.14.1 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file fits/api/v1/token.proto (package fits.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
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 {
|
|
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_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("
|
|
12
|
+
export const file_fits_api_v1_token = /*@__PURE__*/ fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEiyQcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbp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va2VuU2VydmljZUdldFJlcXVlc3QSFgoEdXVpZBgBIAEoCUIIukgFcgOwAQEiPAoXVG9rZW5TZXJ2aWNlR2V0UmVzcG9uc2USIQoFdG9rZW4YASABKAsyEi5maXRzLmFwaS52MS5Ub2tlbipQCglUb2tlblR5cGUSGgoWVE9LRU5fVFlQRV9VTlNQRUNJRklFRBAAEhIKDlRPS0VOX1RZUEVfQVBJEAESEwoPVE9LRU5fVFlQRV9VU0VSEAIyrgIKDFRva2VuU2VydmljZRJaCgNHZXQSIy5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VHZXRSZXF1ZXN0GiQuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGALg8xgBEl0KBExpc3QSJC5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBolLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAESYwoGUmV2b2tlEiYuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBonLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIgjY8xgC4PMYAUKWAQoPY29tLmZpdHMuYXBpLnYxQgpUb2tlblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [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,
|
|
22
|
+
export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message fits.api.v1.PermissionsByVisibility.
|
|
25
|
+
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message fits.api.v1.PublicPermissions.
|
|
30
|
+
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
|
|
33
|
+
/**
|
|
34
|
+
* Describes the message fits.api.v1.SelfPermissions.
|
|
35
|
+
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
36
|
+
*/
|
|
37
|
+
export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message fits.api.v1.ProjectPermissions.
|
|
40
|
+
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
|
|
28
43
|
/**
|
|
29
|
-
* Describes the message fits.api.v1.
|
|
30
|
-
* Use `create(
|
|
44
|
+
* Describes the message fits.api.v1.TenantPermissions.
|
|
45
|
+
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
31
46
|
*/
|
|
32
|
-
export const
|
|
47
|
+
export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message fits.api.v1.AdminPermissions.
|
|
50
|
+
* Use `create(AdminPermissionsSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export const AdminPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
|
|
33
53
|
/**
|
|
34
54
|
* Describes the message fits.api.v1.TokenServiceListRequest.
|
|
35
55
|
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
36
56
|
*/
|
|
37
|
-
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
57
|
+
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
|
|
38
58
|
/**
|
|
39
59
|
* Describes the message fits.api.v1.TokenServiceListResponse.
|
|
40
60
|
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
41
61
|
*/
|
|
42
|
-
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
62
|
+
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
|
|
43
63
|
/**
|
|
44
64
|
* Describes the message fits.api.v1.TokenServiceRevokeRequest.
|
|
45
65
|
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
46
66
|
*/
|
|
47
|
-
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
67
|
+
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
|
|
48
68
|
/**
|
|
49
69
|
* Describes the message fits.api.v1.TokenServiceRevokeResponse.
|
|
50
70
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
51
71
|
*/
|
|
52
|
-
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
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);
|
|
72
|
+
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
|
|
63
73
|
/**
|
|
64
74
|
* Describes the message fits.api.v1.TokenServiceGetRequest.
|
|
65
75
|
* Use `create(TokenServiceGetRequestSchema)` to create a new message.
|
|
66
76
|
*/
|
|
67
|
-
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
77
|
+
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
|
|
68
78
|
/**
|
|
69
79
|
* Describes the message fits.api.v1.TokenServiceGetResponse.
|
|
70
80
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
71
81
|
*/
|
|
72
|
-
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
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);
|
|
82
|
+
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 13);
|
|
83
83
|
/**
|
|
84
84
|
* TokenType specifies different use cases of tokens
|
|
85
85
|
*
|