@fi-ts/api 0.0.0-pr.43.d23e4079 → 0.0.0-pr.43.f3235172
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/v1/token_pb.d.ts +5 -53
- package/fits/api/v1/token_pb.js +13 -23
- package/fits/api/v1/token_pb.ts +18 -74
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { Meta, ProjectRole,
|
|
2
|
+
import type { Meta, ProjectRole, 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,18 +74,18 @@ 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.ProjectRole> project_roles = 9;
|
|
78
78
|
*/
|
|
79
79
|
projectRoles: {
|
|
80
|
-
[key: string]:
|
|
80
|
+
[key: string]: ProjectRole;
|
|
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.TenantRole> tenant_roles = 10;
|
|
86
86
|
*/
|
|
87
87
|
tenantRoles: {
|
|
88
|
-
[key: string]:
|
|
88
|
+
[key: string]: TenantRole;
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
91
91
|
* RawRoles are the normalized roles transmitted by the OIDC provider.
|
|
@@ -123,54 +123,6 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
123
123
|
* Use `create(TokenSchema)` to create a new message.
|
|
124
124
|
*/
|
|
125
125
|
export declare const TokenSchema: GenMessage<Token>;
|
|
126
|
-
/**
|
|
127
|
-
* ProjectRoleContext provides the role context leading to the project role.
|
|
128
|
-
*
|
|
129
|
-
* @generated from message fits.api.v1.ProjectRoleContext
|
|
130
|
-
*/
|
|
131
|
-
export type ProjectRoleContext = Message<"fits.api.v1.ProjectRoleContext"> & {
|
|
132
|
-
/**
|
|
133
|
-
* ProjectRole that the user has in this project.
|
|
134
|
-
*
|
|
135
|
-
* @generated from field: fits.api.v1.ProjectRole project_role = 1;
|
|
136
|
-
*/
|
|
137
|
-
projectRole: ProjectRole;
|
|
138
|
-
/**
|
|
139
|
-
* RoleContext that lead to this role.
|
|
140
|
-
*
|
|
141
|
-
* @generated from field: fits.api.v1.RoleContext role_context = 2;
|
|
142
|
-
*/
|
|
143
|
-
roleContext: RoleContext;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Describes the message fits.api.v1.ProjectRoleContext.
|
|
147
|
-
* Use `create(ProjectRoleContextSchema)` to create a new message.
|
|
148
|
-
*/
|
|
149
|
-
export declare const ProjectRoleContextSchema: GenMessage<ProjectRoleContext>;
|
|
150
|
-
/**
|
|
151
|
-
* TenantRoleContext provides the role context leading to the tenant role.
|
|
152
|
-
*
|
|
153
|
-
* @generated from message fits.api.v1.TenantRoleContext
|
|
154
|
-
*/
|
|
155
|
-
export type TenantRoleContext = Message<"fits.api.v1.TenantRoleContext"> & {
|
|
156
|
-
/**
|
|
157
|
-
* TenantRole that the user has in this tenant.
|
|
158
|
-
*
|
|
159
|
-
* @generated from field: fits.api.v1.TenantRole tenant_role = 1;
|
|
160
|
-
*/
|
|
161
|
-
tenantRole: TenantRole;
|
|
162
|
-
/**
|
|
163
|
-
* RoleContext that lead to this role.
|
|
164
|
-
*
|
|
165
|
-
* @generated from field: fits.api.v1.RoleContext role_context = 2;
|
|
166
|
-
*/
|
|
167
|
-
roleContext: RoleContext;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Describes the message fits.api.v1.TenantRoleContext.
|
|
171
|
-
* Use `create(TenantRoleContextSchema)` to create a new message.
|
|
172
|
-
*/
|
|
173
|
-
export declare const TenantRoleContextSchema: GenMessage<TenantRoleContext>;
|
|
174
126
|
/**
|
|
175
127
|
* MethodPermission is a mapping from a subject/project to a service method
|
|
176
128
|
*
|
package/fits/api/v1/token_pb.js
CHANGED
|
@@ -9,82 +9,72 @@ 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("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEiwAcKBVRva2VuEhYKBHV1aWQYASABKAlCCLpIBXIDsAEBEhgKBHVzZXIYAiABKAlCCrpIB3IFEAIYgAQSHwoEbWV0YRgDIAEoCzIRLmZpdHMuYXBpLnYxLk1ldGESIAoLZGVzY3JpcHRpb24YBCABKAlCC7pICHIGyLOusQIBEkQKC3Blcm1pc3Npb25zGAUgAygLMiQuZml0cy5hcGkudjEuUGVybWlzc2lvbnNCeVZpc2liaWxpdHlCCbpIBpIBAxD0AxIrCgdleHBpcmVzGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglpc3N1ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKCnRva2VuX3R5cGUYCCABKA4yFi5maXRzLmFwaS52MS5Ub2tlblR5cGVCCLpIBYIBAhABEjsKDXByb2plY3Rfcm9sZXMYCSADKAsyJC5maXRzLmFwaS52MS5Ub2tlbi5Qcm9qZWN0Um9sZXNFbnRyeRJUCgx0ZW5hbnRfcm9sZXMYCiADKAsyIy5maXRzLmFwaS52MS5Ub2tl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Rva2VuU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAESYwoGUmV2b2tlEiYuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBonLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIgjY8xgC4PMYAUKWAQoPY29tLmZpdHMuYXBpLnYxQgpUb2tlblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [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.ProjectRoleContext.
|
|
20
|
-
* Use `create(ProjectRoleContextSchema)` to create a new message.
|
|
21
|
-
*/
|
|
22
|
-
export const ProjectRoleContextSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
|
|
23
|
-
/**
|
|
24
|
-
* Describes the message fits.api.v1.TenantRoleContext.
|
|
25
|
-
* Use `create(TenantRoleContextSchema)` to create a new message.
|
|
26
|
-
*/
|
|
27
|
-
export const TenantRoleContextSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
|
|
28
18
|
/**
|
|
29
19
|
* Describes the message fits.api.v1.MethodPermission.
|
|
30
20
|
* Use `create(MethodPermissionSchema)` to create a new message.
|
|
31
21
|
*/
|
|
32
|
-
export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
22
|
+
export const MethodPermissionSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 1);
|
|
33
23
|
/**
|
|
34
24
|
* Describes the message fits.api.v1.PermissionsByVisibility.
|
|
35
25
|
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
36
26
|
*/
|
|
37
|
-
export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
27
|
+
export const PermissionsByVisibilitySchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 2);
|
|
38
28
|
/**
|
|
39
29
|
* Describes the message fits.api.v1.PublicPermissions.
|
|
40
30
|
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
41
31
|
*/
|
|
42
|
-
export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
32
|
+
export const PublicPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 3);
|
|
43
33
|
/**
|
|
44
34
|
* Describes the message fits.api.v1.SelfPermissions.
|
|
45
35
|
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
46
36
|
*/
|
|
47
|
-
export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
37
|
+
export const SelfPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 4);
|
|
48
38
|
/**
|
|
49
39
|
* Describes the message fits.api.v1.ProjectPermissions.
|
|
50
40
|
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
51
41
|
*/
|
|
52
|
-
export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
42
|
+
export const ProjectPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 5);
|
|
53
43
|
/**
|
|
54
44
|
* Describes the message fits.api.v1.TenantPermissions.
|
|
55
45
|
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
56
46
|
*/
|
|
57
|
-
export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
47
|
+
export const TenantPermissionsSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 6);
|
|
58
48
|
/**
|
|
59
49
|
* Describes the message fits.api.v1.TokenServiceListRequest.
|
|
60
50
|
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
61
51
|
*/
|
|
62
|
-
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
52
|
+
export const TokenServiceListRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 7);
|
|
63
53
|
/**
|
|
64
54
|
* Describes the message fits.api.v1.TokenServiceListResponse.
|
|
65
55
|
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
66
56
|
*/
|
|
67
|
-
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
57
|
+
export const TokenServiceListResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 8);
|
|
68
58
|
/**
|
|
69
59
|
* Describes the message fits.api.v1.TokenServiceRevokeRequest.
|
|
70
60
|
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
71
61
|
*/
|
|
72
|
-
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
62
|
+
export const TokenServiceRevokeRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 9);
|
|
73
63
|
/**
|
|
74
64
|
* Describes the message fits.api.v1.TokenServiceRevokeResponse.
|
|
75
65
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
76
66
|
*/
|
|
77
|
-
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
67
|
+
export const TokenServiceRevokeResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 10);
|
|
78
68
|
/**
|
|
79
69
|
* Describes the message fits.api.v1.TokenServiceGetRequest.
|
|
80
70
|
* Use `create(TokenServiceGetRequestSchema)` to create a new message.
|
|
81
71
|
*/
|
|
82
|
-
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
72
|
+
export const TokenServiceGetRequestSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 11);
|
|
83
73
|
/**
|
|
84
74
|
* Describes the message fits.api.v1.TokenServiceGetResponse.
|
|
85
75
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
86
76
|
*/
|
|
87
|
-
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token,
|
|
77
|
+
export const TokenServiceGetResponseSchema = /*@__PURE__*/ messageDesc(file_fits_api_v1_token, 12);
|
|
88
78
|
/**
|
|
89
79
|
* TokenType specifies different use cases of tokens
|
|
90
80
|
*
|
package/fits/api/v1/token_pb.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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 { Meta, ProjectRole,
|
|
8
|
+
import type { 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
11
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -16,7 +16,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
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("
|
|
19
|
+
fileDesc("ChdmaXRzL2FwaS92MS90b2tlbi5wcm90bxILZml0cy5hcGkudjEiwAcKBV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cnZpY2VSZXZva2VSZXF1ZXN0EhYKBHV1aWQYASABKAlCCLpIBXIDsAEBIhwKGlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIjAKFlRva2VuU2VydmljZUdldFJlcXVlc3QSFgoEdXVpZBgBIAEoCUIIukgFcgOwAQEiPAoXVG9rZW5TZXJ2aWNlR2V0UmVzcG9uc2USIQoFdG9rZW4YASABKAsyEi5maXRzLmFwaS52MS5Ub2tlbipQCglUb2tlblR5cGUSGgoWVE9LRU5fVFlQRV9VTlNQRUNJRklFRBAAEhIKDlRPS0VOX1RZUEVfQVBJEAESEwoPVE9LRU5fVFlQRV9VU0VSEAIyrgIKDFRva2VuU2VydmljZRJaCgNHZXQSIy5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VHZXRSZXF1ZXN0GiQuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlR2V0UmVzcG9uc2UiCNjzGALg8xgBEl0KBExpc3QSJC5maXRzLmFwaS52MS5Ub2tlblNlcnZpY2VMaXN0UmVxdWVzdBolLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZUxpc3RSZXNwb25zZSII2PMYAuDzGAESYwoGUmV2b2tlEiYuZml0cy5hcGkudjEuVG9rZW5TZXJ2aWNlUmV2b2tlUmVxdWVzdBonLmZpdHMuYXBpLnYxLlRva2VuU2VydmljZVJldm9rZVJlc3BvbnNlIgjY8xgC4PMYAUKWAQoPY29tLmZpdHMuYXBpLnYxQgpUb2tlblByb3RvUAFaKWdpdGh1Yi5jb20vZmktdHMvYXBpL2dvL2ZpdHMvYXBpL3YxO2FwaXYxogIDRkFYqgILRml0cy5BcGkuVjHKAgtGaXRzXEFwaVxWMeICF0ZpdHNcQXBpXFYxXEdQQk1ldGFkYXRh6gINRml0czo6QXBpOjpWMWIGcHJvdG8z", [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
|
|
@@ -94,16 +94,16 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
94
94
|
/**
|
|
95
95
|
* ProjectRoles associates a project id with the corresponding role of the token owner
|
|
96
96
|
*
|
|
97
|
-
* @generated from field: map<string, fits.api.v1.
|
|
97
|
+
* @generated from field: map<string, fits.api.v1.ProjectRole> project_roles = 9;
|
|
98
98
|
*/
|
|
99
|
-
projectRoles: { [key: string]:
|
|
99
|
+
projectRoles: { [key: string]: ProjectRole };
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* TenantRoles associates a tenant id with the corresponding role of the token owner.
|
|
103
103
|
*
|
|
104
|
-
* @generated from field: map<string, fits.api.v1.
|
|
104
|
+
* @generated from field: map<string, fits.api.v1.TenantRole> tenant_roles = 10;
|
|
105
105
|
*/
|
|
106
|
-
tenantRoles: { [key: string]:
|
|
106
|
+
tenantRoles: { [key: string]: TenantRole };
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* RawRoles are the normalized roles transmitted by the OIDC provider.
|
|
@@ -148,62 +148,6 @@ export type Token = Message<"fits.api.v1.Token"> & {
|
|
|
148
148
|
export const TokenSchema: GenMessage<Token> = /*@__PURE__*/
|
|
149
149
|
messageDesc(file_fits_api_v1_token, 0);
|
|
150
150
|
|
|
151
|
-
/**
|
|
152
|
-
* ProjectRoleContext provides the role context leading to the project role.
|
|
153
|
-
*
|
|
154
|
-
* @generated from message fits.api.v1.ProjectRoleContext
|
|
155
|
-
*/
|
|
156
|
-
export type ProjectRoleContext = Message<"fits.api.v1.ProjectRoleContext"> & {
|
|
157
|
-
/**
|
|
158
|
-
* ProjectRole that the user has in this project.
|
|
159
|
-
*
|
|
160
|
-
* @generated from field: fits.api.v1.ProjectRole project_role = 1;
|
|
161
|
-
*/
|
|
162
|
-
projectRole: ProjectRole;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* RoleContext that lead to this role.
|
|
166
|
-
*
|
|
167
|
-
* @generated from field: fits.api.v1.RoleContext role_context = 2;
|
|
168
|
-
*/
|
|
169
|
-
roleContext: RoleContext;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Describes the message fits.api.v1.ProjectRoleContext.
|
|
174
|
-
* Use `create(ProjectRoleContextSchema)` to create a new message.
|
|
175
|
-
*/
|
|
176
|
-
export const ProjectRoleContextSchema: GenMessage<ProjectRoleContext> = /*@__PURE__*/
|
|
177
|
-
messageDesc(file_fits_api_v1_token, 1);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* TenantRoleContext provides the role context leading to the tenant role.
|
|
181
|
-
*
|
|
182
|
-
* @generated from message fits.api.v1.TenantRoleContext
|
|
183
|
-
*/
|
|
184
|
-
export type TenantRoleContext = Message<"fits.api.v1.TenantRoleContext"> & {
|
|
185
|
-
/**
|
|
186
|
-
* TenantRole that the user has in this tenant.
|
|
187
|
-
*
|
|
188
|
-
* @generated from field: fits.api.v1.TenantRole tenant_role = 1;
|
|
189
|
-
*/
|
|
190
|
-
tenantRole: TenantRole;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* RoleContext that lead to this role.
|
|
194
|
-
*
|
|
195
|
-
* @generated from field: fits.api.v1.RoleContext role_context = 2;
|
|
196
|
-
*/
|
|
197
|
-
roleContext: RoleContext;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Describes the message fits.api.v1.TenantRoleContext.
|
|
202
|
-
* Use `create(TenantRoleContextSchema)` to create a new message.
|
|
203
|
-
*/
|
|
204
|
-
export const TenantRoleContextSchema: GenMessage<TenantRoleContext> = /*@__PURE__*/
|
|
205
|
-
messageDesc(file_fits_api_v1_token, 2);
|
|
206
|
-
|
|
207
151
|
/**
|
|
208
152
|
* MethodPermission is a mapping from a subject/project to a service method
|
|
209
153
|
*
|
|
@@ -235,7 +179,7 @@ export type MethodPermission = Message<"fits.api.v1.MethodPermission"> & {
|
|
|
235
179
|
* Use `create(MethodPermissionSchema)` to create a new message.
|
|
236
180
|
*/
|
|
237
181
|
export const MethodPermissionSchema: GenMessage<MethodPermission> = /*@__PURE__*/
|
|
238
|
-
messageDesc(file_fits_api_v1_token,
|
|
182
|
+
messageDesc(file_fits_api_v1_token, 1);
|
|
239
183
|
|
|
240
184
|
/**
|
|
241
185
|
* PermissionsByVisibility contains method permissions by visibility.
|
|
@@ -288,7 +232,7 @@ export type PermissionsByVisibility = Message<"fits.api.v1.PermissionsByVisibili
|
|
|
288
232
|
* Use `create(PermissionsByVisibilitySchema)` to create a new message.
|
|
289
233
|
*/
|
|
290
234
|
export const PermissionsByVisibilitySchema: GenMessage<PermissionsByVisibility> = /*@__PURE__*/
|
|
291
|
-
messageDesc(file_fits_api_v1_token,
|
|
235
|
+
messageDesc(file_fits_api_v1_token, 2);
|
|
292
236
|
|
|
293
237
|
/**
|
|
294
238
|
* PublicPermissions carries public method permissions.
|
|
@@ -309,7 +253,7 @@ export type PublicPermissions = Message<"fits.api.v1.PublicPermissions"> & {
|
|
|
309
253
|
* Use `create(PublicPermissionsSchema)` to create a new message.
|
|
310
254
|
*/
|
|
311
255
|
export const PublicPermissionsSchema: GenMessage<PublicPermissions> = /*@__PURE__*/
|
|
312
|
-
messageDesc(file_fits_api_v1_token,
|
|
256
|
+
messageDesc(file_fits_api_v1_token, 3);
|
|
313
257
|
|
|
314
258
|
/**
|
|
315
259
|
* SelfPermissions carries self method permissions.
|
|
@@ -330,7 +274,7 @@ export type SelfPermissions = Message<"fits.api.v1.SelfPermissions"> & {
|
|
|
330
274
|
* Use `create(SelfPermissionsSchema)` to create a new message.
|
|
331
275
|
*/
|
|
332
276
|
export const SelfPermissionsSchema: GenMessage<SelfPermissions> = /*@__PURE__*/
|
|
333
|
-
messageDesc(file_fits_api_v1_token,
|
|
277
|
+
messageDesc(file_fits_api_v1_token, 4);
|
|
334
278
|
|
|
335
279
|
/**
|
|
336
280
|
* ProjectPermissions carries project method permissions.
|
|
@@ -359,7 +303,7 @@ export type ProjectPermissions = Message<"fits.api.v1.ProjectPermissions"> & {
|
|
|
359
303
|
* Use `create(ProjectPermissionsSchema)` to create a new message.
|
|
360
304
|
*/
|
|
361
305
|
export const ProjectPermissionsSchema: GenMessage<ProjectPermissions> = /*@__PURE__*/
|
|
362
|
-
messageDesc(file_fits_api_v1_token,
|
|
306
|
+
messageDesc(file_fits_api_v1_token, 5);
|
|
363
307
|
|
|
364
308
|
/**
|
|
365
309
|
* TenantPermissions carries tenant method permissions.
|
|
@@ -388,7 +332,7 @@ export type TenantPermissions = Message<"fits.api.v1.TenantPermissions"> & {
|
|
|
388
332
|
* Use `create(TenantPermissionsSchema)` to create a new message.
|
|
389
333
|
*/
|
|
390
334
|
export const TenantPermissionsSchema: GenMessage<TenantPermissions> = /*@__PURE__*/
|
|
391
|
-
messageDesc(file_fits_api_v1_token,
|
|
335
|
+
messageDesc(file_fits_api_v1_token, 6);
|
|
392
336
|
|
|
393
337
|
/**
|
|
394
338
|
* TokenServiceListRequest is the request payload to list tokens
|
|
@@ -403,7 +347,7 @@ export type TokenServiceListRequest = Message<"fits.api.v1.TokenServiceListReque
|
|
|
403
347
|
* Use `create(TokenServiceListRequestSchema)` to create a new message.
|
|
404
348
|
*/
|
|
405
349
|
export const TokenServiceListRequestSchema: GenMessage<TokenServiceListRequest> = /*@__PURE__*/
|
|
406
|
-
messageDesc(file_fits_api_v1_token,
|
|
350
|
+
messageDesc(file_fits_api_v1_token, 7);
|
|
407
351
|
|
|
408
352
|
/**
|
|
409
353
|
* TokenServiceListResponse is the response payload of a token list request
|
|
@@ -424,7 +368,7 @@ export type TokenServiceListResponse = Message<"fits.api.v1.TokenServiceListResp
|
|
|
424
368
|
* Use `create(TokenServiceListResponseSchema)` to create a new message.
|
|
425
369
|
*/
|
|
426
370
|
export const TokenServiceListResponseSchema: GenMessage<TokenServiceListResponse> = /*@__PURE__*/
|
|
427
|
-
messageDesc(file_fits_api_v1_token,
|
|
371
|
+
messageDesc(file_fits_api_v1_token, 8);
|
|
428
372
|
|
|
429
373
|
/**
|
|
430
374
|
* TokenServiceRevokeRequest is the request payload of a token revoke request
|
|
@@ -445,7 +389,7 @@ export type TokenServiceRevokeRequest = Message<"fits.api.v1.TokenServiceRevokeR
|
|
|
445
389
|
* Use `create(TokenServiceRevokeRequestSchema)` to create a new message.
|
|
446
390
|
*/
|
|
447
391
|
export const TokenServiceRevokeRequestSchema: GenMessage<TokenServiceRevokeRequest> = /*@__PURE__*/
|
|
448
|
-
messageDesc(file_fits_api_v1_token,
|
|
392
|
+
messageDesc(file_fits_api_v1_token, 9);
|
|
449
393
|
|
|
450
394
|
/**
|
|
451
395
|
* TokenServiceRevokeResponse is the response payload of a token revoke request
|
|
@@ -460,7 +404,7 @@ export type TokenServiceRevokeResponse = Message<"fits.api.v1.TokenServiceRevoke
|
|
|
460
404
|
* Use `create(TokenServiceRevokeResponseSchema)` to create a new message.
|
|
461
405
|
*/
|
|
462
406
|
export const TokenServiceRevokeResponseSchema: GenMessage<TokenServiceRevokeResponse> = /*@__PURE__*/
|
|
463
|
-
messageDesc(file_fits_api_v1_token,
|
|
407
|
+
messageDesc(file_fits_api_v1_token, 10);
|
|
464
408
|
|
|
465
409
|
/**
|
|
466
410
|
* TokenServiceGetRequest is the request payload of a token get request
|
|
@@ -481,7 +425,7 @@ export type TokenServiceGetRequest = Message<"fits.api.v1.TokenServiceGetRequest
|
|
|
481
425
|
* Use `create(TokenServiceGetRequestSchema)` to create a new message.
|
|
482
426
|
*/
|
|
483
427
|
export const TokenServiceGetRequestSchema: GenMessage<TokenServiceGetRequest> = /*@__PURE__*/
|
|
484
|
-
messageDesc(file_fits_api_v1_token,
|
|
428
|
+
messageDesc(file_fits_api_v1_token, 11);
|
|
485
429
|
|
|
486
430
|
/**
|
|
487
431
|
* TokenServiceGetResponse is the response payload of a token get request
|
|
@@ -502,7 +446,7 @@ export type TokenServiceGetResponse = Message<"fits.api.v1.TokenServiceGetRespon
|
|
|
502
446
|
* Use `create(TokenServiceGetResponseSchema)` to create a new message.
|
|
503
447
|
*/
|
|
504
448
|
export const TokenServiceGetResponseSchema: GenMessage<TokenServiceGetResponse> = /*@__PURE__*/
|
|
505
|
-
messageDesc(file_fits_api_v1_token,
|
|
449
|
+
messageDesc(file_fits_api_v1_token, 12);
|
|
506
450
|
|
|
507
451
|
/**
|
|
508
452
|
* TokenType specifies different use cases of tokens
|
package/package.json
CHANGED