@fi-ts/api 0.0.0-pr.54.ad591d21 → 0.0.0-pr.55.f39e7d5b
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/fits/api/mvm/v1/mvm_on_behalf_pb.d.ts +73 -0
- package/fits/api/mvm/v1/mvm_on_behalf_pb.js +27 -0
- package/fits/api/mvm/v1/mvm_on_behalf_pb.ts +94 -0
- package/fits/api/mvm/v1/mvm_provider_pb.d.ts +66 -0
- package/fits/api/mvm/v1/mvm_provider_pb.js +26 -0
- package/fits/api/mvm/v1/mvm_provider_pb.ts +85 -0
- package/fits/api/pcvm/v1/pcvm_pb.d.ts +1 -1
- package/fits/api/pcvm/v1/pcvm_pb.js +1 -1
- package/fits/api/pcvm/v1/pcvm_pb.ts +1 -1
- package/fits/api/v1/common_pb.d.ts +35 -32
- package/fits/api/v1/common_pb.js +39 -36
- package/fits/api/v1/common_pb.ts +42 -39
- package/fits/api/v1/method_pb.d.ts +1 -7
- package/fits/api/v1/method_pb.js +1 -2
- package/fits/api/v1/method_pb.ts +2 -10
- package/fits/api/v1/token_pb.d.ts +53 -37
- package/fits/api/v1/token_pb.js +23 -18
- package/fits/api/v1/token_pb.ts +74 -54
- package/package.json +1 -1
package/fits/api/v1/common_pb.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
14
14
|
* Describes the file fits/api/v1/common.proto.
|
|
15
15
|
*/
|
|
16
16
|
export const file_fits_api_v1_common: GenFile = /*@__PURE__*/
|
|
17
|
-
fileDesc("
|
|
17
|
+
fileDesc("ChhmaXRzL2FwaS92MS9jb21tb24ucHJvdG8SC2ZpdHMuYXBpLnYxIkIKBlBhZ2luZxIRCgRwYWdlGAEgASgESACIAQESEgoFY291bnQYAiABKARIAYgBAUIHCgVfcGFnZUIICgZfY291bnQiiAEKBkxhYmVscxJPCgZsYWJlbHMYASADKAsyHy5maXRzLmFwaS52MS5MYWJlbHMu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mdSCGF1ZGl0aW5nOk8KEWVudW1fc3RyaW5nX3ZhbHVlEiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnMYoJYDIAEoCVIPZW51bVN0cmluZ1ZhbHVlQpcBCg9jb20uZml0cy5hcGkudjFCC0NvbW1vblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_fits_api_v1_predefined_rules, file_google_protobuf_descriptor, file_google_protobuf_timestamp]);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Paging defines paging for methods with a lot of results
|
|
@@ -257,40 +257,6 @@ export enum ProjectRole {
|
|
|
257
257
|
export const ProjectRoleSchema: GenEnum<ProjectRole> = /*@__PURE__*/
|
|
258
258
|
enumDesc(file_fits_api_v1_common, 1);
|
|
259
259
|
|
|
260
|
-
/**
|
|
261
|
-
* OperatorRole specifies what role a logged in user needs to call this operator service
|
|
262
|
-
*
|
|
263
|
-
* @generated from enum fits.api.v1.OperatorRole
|
|
264
|
-
*/
|
|
265
|
-
export enum OperatorRole {
|
|
266
|
-
/**
|
|
267
|
-
* OPERATOR_ROLE_UNSPECIFIED is not specified
|
|
268
|
-
*
|
|
269
|
-
* @generated from enum value: OPERATOR_ROLE_UNSPECIFIED = 0;
|
|
270
|
-
*/
|
|
271
|
-
UNSPECIFIED = 0,
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* OPERATOR_ROLE_EDITOR the logged in user needs at least editor role to call this method
|
|
275
|
-
*
|
|
276
|
-
* @generated from enum value: OPERATOR_ROLE_EDITOR = 1;
|
|
277
|
-
*/
|
|
278
|
-
EDITOR = 1,
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* OPERATOR_ROLE_VIEWER the logged in user needs at least viewer role to call this method
|
|
282
|
-
*
|
|
283
|
-
* @generated from enum value: OPERATOR_ROLE_VIEWER = 2;
|
|
284
|
-
*/
|
|
285
|
-
VIEWER = 2,
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Describes the enum fits.api.v1.OperatorRole.
|
|
290
|
-
*/
|
|
291
|
-
export const OperatorRoleSchema: GenEnum<OperatorRole> = /*@__PURE__*/
|
|
292
|
-
enumDesc(file_fits_api_v1_common, 2);
|
|
293
|
-
|
|
294
260
|
/**
|
|
295
261
|
* Visibility of a method
|
|
296
262
|
*
|
|
@@ -323,7 +289,7 @@ export enum Visibility {
|
|
|
323
289
|
* Describes the enum fits.api.v1.Visibility.
|
|
324
290
|
*/
|
|
325
291
|
export const VisibilitySchema: GenEnum<Visibility> = /*@__PURE__*/
|
|
326
|
-
enumDesc(file_fits_api_v1_common,
|
|
292
|
+
enumDesc(file_fits_api_v1_common, 2);
|
|
327
293
|
|
|
328
294
|
/**
|
|
329
295
|
* Auditing option specified per service method
|
|
@@ -359,6 +325,42 @@ export enum Auditing {
|
|
|
359
325
|
* Describes the enum fits.api.v1.Auditing.
|
|
360
326
|
*/
|
|
361
327
|
export const AuditingSchema: GenEnum<Auditing> = /*@__PURE__*/
|
|
328
|
+
enumDesc(file_fits_api_v1_common, 3);
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* RoleContext declares in which context a method's roles apply. It belongs only
|
|
332
|
+
* on provider or on-behalf services, never on public ones. It is not a
|
|
333
|
+
* visibility setting or feature flag.
|
|
334
|
+
*
|
|
335
|
+
* @generated from enum fits.api.v1.RoleContext
|
|
336
|
+
*/
|
|
337
|
+
export enum RoleContext {
|
|
338
|
+
/**
|
|
339
|
+
* ROLE_CONTEXT_UNSPECIFIED is the default and accepts any context.
|
|
340
|
+
*
|
|
341
|
+
* @generated from enum value: ROLE_CONTEXT_UNSPECIFIED = 0;
|
|
342
|
+
*/
|
|
343
|
+
UNSPECIFIED = 0,
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* ROLE_CONTEXT_PROVIDER needs the caller to be in the provider tenant.
|
|
347
|
+
*
|
|
348
|
+
* @generated from enum value: ROLE_CONTEXT_PROVIDER = 1;
|
|
349
|
+
*/
|
|
350
|
+
PROVIDER = 1,
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* ROLE_CONTEXT_ON_BEHALF lets a provider user act for another tenant.
|
|
354
|
+
*
|
|
355
|
+
* @generated from enum value: ROLE_CONTEXT_ON_BEHALF = 2;
|
|
356
|
+
*/
|
|
357
|
+
ON_BEHALF = 2,
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Describes the enum fits.api.v1.RoleContext.
|
|
362
|
+
*/
|
|
363
|
+
export const RoleContextSchema: GenEnum<RoleContext> = /*@__PURE__*/
|
|
362
364
|
enumDesc(file_fits_api_v1_common, 4);
|
|
363
365
|
|
|
364
366
|
/**
|
|
@@ -414,11 +416,12 @@ export const project_roles: GenExtension<MethodOptions, ProjectRole[]> = /*@__PU
|
|
|
414
416
|
extDesc(file_fits_api_v1_common, 1);
|
|
415
417
|
|
|
416
418
|
/**
|
|
417
|
-
*
|
|
419
|
+
* RoleContext sets the context the roles above apply in. Only for provider or
|
|
420
|
+
* on-behalf services, never public ones.
|
|
418
421
|
*
|
|
419
|
-
* @generated from extension:
|
|
422
|
+
* @generated from extension: fits.api.v1.RoleContext role_context = 51002;
|
|
420
423
|
*/
|
|
421
|
-
export const
|
|
424
|
+
export const role_context: GenExtension<MethodOptions, RoleContext> = /*@__PURE__*/
|
|
422
425
|
extDesc(file_fits_api_v1_common, 2);
|
|
423
426
|
|
|
424
427
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ProjectRole, TenantRole } from "./common_pb.js";
|
|
3
3
|
import type { MethodPermission } from "./token_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
@@ -74,12 +74,6 @@ export type MethodServiceTokenScopedListResponse = Message<"fits.api.v1.MethodSe
|
|
|
74
74
|
tenantRoles: {
|
|
75
75
|
[key: string]: TenantRole;
|
|
76
76
|
};
|
|
77
|
-
/**
|
|
78
|
-
* OperatorRole defines the operator role of the token owner
|
|
79
|
-
*
|
|
80
|
-
* @generated from field: optional fits.api.v1.OperatorRole operator_role = 4;
|
|
81
|
-
*/
|
|
82
|
-
operatorRole?: OperatorRole | undefined;
|
|
83
77
|
};
|
|
84
78
|
/**
|
|
85
79
|
* Describes the message fits.api.v1.MethodServiceTokenScopedListResponse.
|
package/fits/api/v1/method_pb.js
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
// @generated from file fits/api/v1/method.proto (package fits.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
5
|
import { file_fits_api_v1_common } from "./common_pb.js";
|
|
7
6
|
import { file_fits_api_v1_token } from "./token_pb.js";
|
|
8
7
|
/**
|
|
9
8
|
* Describes the file fits/api/v1/method.proto.
|
|
10
9
|
*/
|
|
11
|
-
export const file_fits_api_v1_method = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_fits_api_v1_method = /*@__PURE__*/ fileDesc("ChhmaXRzL2FwaS92MS9tZXRob2QucHJvdG8SC2ZpdHMuYXBpLnYxIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3QirAMKJE1ldGhvZFNlcnZpY2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aTo6VjFiBnByb3RvMw", [file_fits_api_v1_common, file_fits_api_v1_token]);
|
|
12
11
|
/**
|
|
13
12
|
* Describes the message fits.api.v1.MethodServiceListRequest.
|
|
14
13
|
* Use `create(MethodServiceListRequestSchema)` to create a new message.
|
package/fits/api/v1/method_pb.ts
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import {
|
|
8
|
-
import type { OperatorRole, ProjectRole, TenantRole } from "./common_pb.js";
|
|
7
|
+
import type { ProjectRole, TenantRole } from "./common_pb.js";
|
|
9
8
|
import { file_fits_api_v1_common } from "./common_pb.js";
|
|
10
9
|
import type { MethodPermission } from "./token_pb.js";
|
|
11
10
|
import { file_fits_api_v1_token } from "./token_pb.js";
|
|
@@ -15,7 +14,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
15
14
|
* Describes the file fits/api/v1/method.proto.
|
|
16
15
|
*/
|
|
17
16
|
export const file_fits_api_v1_method: GenFile = /*@__PURE__*/
|
|
18
|
-
fileDesc("
|
|
17
|
+
fileDesc("ChhmaXRzL2FwaS92MS9tZXRob2QucHJvdG8SC2ZpdHMuYXBpLnYxIhoKGE1ldGhvZFNlcnZpY2VMaXN0UmVxdWVzdCIsChlNZXRob2RTZXJ2aWNlTGlzdFJlc3BvbnNlEg8KB21ldGhvZHMYASADKAkiJQojTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlcXVlc3QirAMKJE1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZRIyCgtwZXJtaXNzaW9ucxgBIAMoCzIdLmZpdHMuYXBpLnYxLk1ldGhvZFBlcm1pc3Npb24SWgoNcHJvamVjdF9yb2xlcxgCIAMoCzJDLmZpdHMuYXBpLnYxLk1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXNwb25zZS5Qcm9qZWN0Um9sZXNFbnRyeRJYCgx0ZW5hbnRfcm9sZXMYAyADKAsyQi5maXRzLmFwaS52MS5NZXRob2RTZXJ2aWNlVG9rZW5TY29wZWRMaXN0UmVzcG9uc2UuVGVuYW50Um9sZXNFbnRyeRpNChFQcm9qZWN0Um9sZXNFbnRyeRILCgNrZXkYASABKAkSJwoFdmFsdWUYAiABKA4yGC5maXRzLmFwaS52MS5Qcm9qZWN0Um9sZToCOAEaSwoQVGVuYW50Um9sZXNFbnRyeRILCgNrZXkYASABKAkSJgoFdmFsdWUYAiABKA4yFy5maXRzLmFwaS52MS5UZW5hbnRSb2xlOgI4ATLzAQoNTWV0aG9kU2VydmljZRJfCgRMaXN0EiUuZml0cy5hcGkudjEuTWV0aG9kU2VydmljZUxpc3RSZXF1ZXN0GiYuZml0cy5hcGkudjEuTWV0aG9kU2VydmljZUxpc3RSZXNwb25zZSII2PMYAeDzGAISgAEKD1Rva2VuU2NvcGVkTGlzdBIwLmZpdHMuYXBpLnYxLk1ldGhvZFNlcnZpY2VUb2tlblNjb3BlZExpc3RSZXF1ZXN0GjEuZml0cy5hcGkudjEuTWV0aG9kU2VydmljZVRva2VuU2NvcGVkTGlzdFJlc3BvbnNlIgjY8xgC4PMYAkKXAQoPY29tLmZpdHMuYXBpLnYxQgtNZXRob2RQcm90b1ABWilnaXRodWIuY29tL2ZpLXRzL2FwaS9nby9maXRzL2FwaS92MTthcGl2MaICA0ZBWKoCC0ZpdHMuQXBpLlYxygILRml0c1xBcGlcVjHiAhdGaXRzXEFwaVxWMVxHUEJNZXRhZGF0YeoCDUZpdHM6OkFwaTo6VjFiBnByb3RvMw", [file_fits_api_v1_common, file_fits_api_v1_token]);
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* MethodServiceListRequest is the request payload for listing all public methods.
|
|
@@ -94,13 +93,6 @@ export type MethodServiceTokenScopedListResponse = Message<"fits.api.v1.MethodSe
|
|
|
94
93
|
* @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 3;
|
|
95
94
|
*/
|
|
96
95
|
tenantRoles: { [key: string]: TenantRole };
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* OperatorRole defines the operator role of the token owner
|
|
100
|
-
*
|
|
101
|
-
* @generated from field: optional fits.api.v1.OperatorRole operator_role = 4;
|
|
102
|
-
*/
|
|
103
|
-
operatorRole?: OperatorRole | undefined;
|
|
104
96
|
};
|
|
105
97
|
|
|
106
98
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { Meta,
|
|
2
|
+
import type { Meta, ProjectRole, RoleContext, TenantRole } from "./common_pb.js";
|
|
3
3
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
@@ -74,25 +74,19 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
74
74
|
/**
|
|
75
75
|
* ProjectRoles associates a project id with the corresponding role of the token owner
|
|
76
76
|
*
|
|
77
|
-
* @generated from field: map<string, fits.api.v1.
|
|
77
|
+
* @generated from field: map<string, fits.api.v1.ProjectContext> project_roles = 9;
|
|
78
78
|
*/
|
|
79
79
|
projectRoles: {
|
|
80
|
-
[key: string]:
|
|
80
|
+
[key: string]: ProjectContext;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
83
|
* TenantRoles associates a tenant id with the corresponding role of the token owner.
|
|
84
84
|
*
|
|
85
|
-
* @generated from field: map<string, fits.api.v1.
|
|
85
|
+
* @generated from field: map<string, fits.api.v1.TenantContext> tenant_roles = 10;
|
|
86
86
|
*/
|
|
87
87
|
tenantRoles: {
|
|
88
|
-
[key: string]:
|
|
88
|
+
[key: string]: TenantContext;
|
|
89
89
|
};
|
|
90
|
-
/**
|
|
91
|
-
* OperatorRole defines the operator role of the token owner
|
|
92
|
-
*
|
|
93
|
-
* @generated from field: optional fits.api.v1.OperatorRole operator_role = 11;
|
|
94
|
-
*/
|
|
95
|
-
operatorRole?: OperatorRole | undefined;
|
|
96
90
|
/**
|
|
97
91
|
* RawRoles are the normalized roles transmitted by the OIDC provider.
|
|
98
92
|
*
|
|
@@ -129,6 +123,54 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
129
123
|
* Use `create(TokenSchema)` to create a new message.
|
|
130
124
|
*/
|
|
131
125
|
export declare const TokenSchema: GenMessage<Token>;
|
|
126
|
+
/**
|
|
127
|
+
* ProjectContext provides the role context leading to the project role.
|
|
128
|
+
*
|
|
129
|
+
* @generated from message fits.api.v1.ProjectContext
|
|
130
|
+
*/
|
|
131
|
+
export type ProjectContext = Message<"fits.api.v1.ProjectContext"> & {
|
|
132
|
+
/**
|
|
133
|
+
* Role that the user has in this project.
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: fits.api.v1.ProjectRole role = 1;
|
|
136
|
+
*/
|
|
137
|
+
role: ProjectRole;
|
|
138
|
+
/**
|
|
139
|
+
* Context that lead to this role.
|
|
140
|
+
*
|
|
141
|
+
* @generated from field: fits.api.v1.RoleContext context = 2;
|
|
142
|
+
*/
|
|
143
|
+
context: RoleContext;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Describes the message fits.api.v1.ProjectContext.
|
|
147
|
+
* Use `create(ProjectContextSchema)` to create a new message.
|
|
148
|
+
*/
|
|
149
|
+
export declare const ProjectContextSchema: GenMessage<ProjectContext>;
|
|
150
|
+
/**
|
|
151
|
+
* TenantContext provides the role context leading to the tenant role.
|
|
152
|
+
*
|
|
153
|
+
* @generated from message fits.api.v1.TenantContext
|
|
154
|
+
*/
|
|
155
|
+
export type TenantContext = Message<"fits.api.v1.TenantContext"> & {
|
|
156
|
+
/**
|
|
157
|
+
* Role that the user has in this tenant.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: fits.api.v1.TenantRole role = 1;
|
|
160
|
+
*/
|
|
161
|
+
role: TenantRole;
|
|
162
|
+
/**
|
|
163
|
+
* Context that lead to this role.
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: fits.api.v1.RoleContext context = 2;
|
|
166
|
+
*/
|
|
167
|
+
context: RoleContext;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Describes the message fits.api.v1.TenantContext.
|
|
171
|
+
* Use `create(TenantContextSchema)` to create a new message.
|
|
172
|
+
*/
|
|
173
|
+
export declare const TenantContextSchema: GenMessage<TenantContext>;
|
|
132
174
|
/**
|
|
133
175
|
* MethodPermission is a mapping from a subject/project to a service method
|
|
134
176
|
*
|
|
@@ -201,14 +243,6 @@ export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibili
|
|
|
201
243
|
*/
|
|
202
244
|
value: TenantPermissions;
|
|
203
245
|
case: "tenant";
|
|
204
|
-
} | {
|
|
205
|
-
/**
|
|
206
|
-
* OperatorPermissions carries operator method permissions.
|
|
207
|
-
*
|
|
208
|
-
* @generated from field: fits.api.v1.OperatorPermissions operator = 5;
|
|
209
|
-
*/
|
|
210
|
-
value: OperatorPermissions;
|
|
211
|
-
case: "operator";
|
|
212
246
|
} | {
|
|
213
247
|
case: undefined;
|
|
214
248
|
value?: undefined;
|
|
@@ -305,24 +339,6 @@ export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
|
|
|
305
339
|
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
306
340
|
*/
|
|
307
341
|
export declare const TenantPermissionsSchema: GenMessage<TenantPermissions>;
|
|
308
|
-
/**
|
|
309
|
-
* OperatorPermissions carries operator method permissions.
|
|
310
|
-
*
|
|
311
|
-
* @generated from message fits.api.v1.OperatorPermissions
|
|
312
|
-
*/
|
|
313
|
-
export type OperatorPermissions = Message<"fits.api.v1.OperatorPermissions"> & {
|
|
314
|
-
/**
|
|
315
|
-
* Methods which should be accessible.
|
|
316
|
-
*
|
|
317
|
-
* @generated from field: repeated string methods = 1;
|
|
318
|
-
*/
|
|
319
|
-
methods: string[];
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* Describes the message fits.api.v1.OperatorPermissions.
|
|
323
|
-
* Use `create(OperatorPermissionsSchema)` to create a new message.
|
|
324
|
-
*/
|
|
325
|
-
export declare const OperatorPermissionsSchema: GenMessage<OperatorPermissions>;
|
|
326
342
|
/**
|
|
327
343
|
* TokenServiceListRequest is the request payload to list tokens
|
|
328
344
|
*
|
package/fits/api/v1/token_pb.js
CHANGED
|
@@ -9,77 +9,82 @@ 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("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEi0wcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglpc3N1ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKCnRva2VuX3R5cGUYCCABKA4yFi5maXRzLmFwaS52MS5Ub2tlblR5cGVCCLpIBYIBAhABEk8KDXByb2plY3Rfcm9sZXMYCSADKAsyJC5maXRzLmFwaS52MS5Ub2tlbi5Qcm9qZWN0Um9sZXNFbnRyeUISukgPmgEMwJW4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uZml0cy5hcGkudjEuVG9rZW4qUAoJVG9rZW5UeXBlEhoKFlRPS0VOX1RZUEVfVU5TUEVDSUZJRUQQABISCg5UT0tFTl9UWVBFX0FQSRABEhMKD1RPS0VOX1RZUEVfVVNFUhACMq4CCgxUb2tlblNlcnZpY2USWgoDR2V0EiMuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlR2V0UmVxdWVzdBokLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUdldFJlc3BvbnNlIgjY8xgC4PMYARJdCgRMaXN0EiQuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlTGlzdFJlcXVlc3QaJS5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VMaXN0UmVzcG9uc2UiCNjzGALg8xgBEmMKBlJldm9rZRImLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlcXVlc3QaJy5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VSZXZva2VSZXNwb25zZSII2PMYAuDzGAFClgEKD2NvbS5maXRzLmFwaS52MUIKVG9rZW5Qcm90b1ABWilnaXRodWIuY29tL2ZpLXRzL2FwaS9nby9maXRzL2FwaS92MTthcGl2MaICA0ZBWKoCC0ZpdHMuQXBpLlYxygILRml0c1xBcGlcVjHiAhdGaXRzXEFwaVxWMVxHUEJNZXRhZGF0YeoCDUZpdHM6OkFwaTo6VjFiBnByb3RvMw", [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.ProjectContext.
|
|
20
|
+
* Use `create(ProjectContextSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
export const ProjectContextSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message fits.api.v1.TenantContext.
|
|
25
|
+
* Use `create(TenantContextSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const TenantContextSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
|
|
18
28
|
/**
|
|
19
29
|
* Describes the message fits.api.v1.MethodPermission.
|
|
20
30
|
* Use `create(MethodPermissionSchema)` to create a new message.
|
|
21
31
|
*/
|
|
22
|
-
export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
32
|
+
export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
|
|
23
33
|
/**
|
|
24
34
|
* Describes the message fits.api.v1.PermissionsByVisibility.
|
|
25
35
|
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
26
36
|
*/
|
|
27
|
-
export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
37
|
+
export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
|
|
28
38
|
/**
|
|
29
39
|
* Describes the message fits.api.v1.PublicPermissions.
|
|
30
40
|
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
31
41
|
*/
|
|
32
|
-
export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
42
|
+
export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
|
|
33
43
|
/**
|
|
34
44
|
* Describes the message fits.api.v1.SelfPermissions.
|
|
35
45
|
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
36
46
|
*/
|
|
37
|
-
export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
47
|
+
export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
|
|
38
48
|
/**
|
|
39
49
|
* Describes the message fits.api.v1.ProjectPermissions.
|
|
40
50
|
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
41
51
|
*/
|
|
42
|
-
export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
52
|
+
export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
|
|
43
53
|
/**
|
|
44
54
|
* Describes the message fits.api.v1.TenantPermissions.
|
|
45
55
|
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
46
56
|
*/
|
|
47
|
-
export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
48
|
-
/**
|
|
49
|
-
* Describes the message fits.api.v1.OperatorPermissions.
|
|
50
|
-
* Use `create(OperatorPermissionsSchema)` to create a new message.
|
|
51
|
-
*/
|
|
52
|
-
export const OperatorPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
|
|
57
|
+
export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
|
|
53
58
|
/**
|
|
54
59
|
* Describes the message fits.api.v1.TokenServiceListRequest.
|
|
55
60
|
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
56
61
|
*/
|
|
57
|
-
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
62
|
+
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
|
|
58
63
|
/**
|
|
59
64
|
* Describes the message fits.api.v1.TokenServiceListResponse.
|
|
60
65
|
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
61
66
|
*/
|
|
62
|
-
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
67
|
+
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
|
|
63
68
|
/**
|
|
64
69
|
* Describes the message fits.api.v1.TokenServiceRevokeRequest.
|
|
65
70
|
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
66
71
|
*/
|
|
67
|
-
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
72
|
+
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
|
|
68
73
|
/**
|
|
69
74
|
* Describes the message fits.api.v1.TokenServiceRevokeResponse.
|
|
70
75
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
71
76
|
*/
|
|
72
|
-
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
77
|
+
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
|
|
73
78
|
/**
|
|
74
79
|
* Describes the message fits.api.v1.TokenServiceGetRequest.
|
|
75
80
|
* Use `create(TokenServiceGetRequestSchema)` to create a new message.
|
|
76
81
|
*/
|
|
77
|
-
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
82
|
+
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 13);
|
|
78
83
|
/**
|
|
79
84
|
* Describes the message fits.api.v1.TokenServiceGetResponse.
|
|
80
85
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
81
86
|
*/
|
|
82
|
-
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
87
|
+
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 14);
|
|
83
88
|
/**
|
|
84
89
|
* TokenType specifies different use cases of tokens
|
|
85
90
|
*
|