@meshery/schemas 0.8.127 → 0.8.129
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/dist/{Core-vaTzd8cz.d.mts → Core-BiYtFM4v.d.mts} +1 -1
- package/dist/{Core-vaTzd8cz.d.ts → Core-BiYtFM4v.d.ts} +1 -1
- package/dist/cloudApi.d.mts +13676 -3825
- package/dist/cloudApi.d.ts +13676 -3825
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.mts +1 -149
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +1 -149
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.js +1 -1
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.mjs +1 -1
- package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
- package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
- package/dist/constructs/v1alpha1/core/CoreSchema.d.mts +1 -1643
- package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +1 -1643
- package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
- package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.mts +1 -74
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +1 -74
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.js +1 -1
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.mjs +1 -1
- package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +32 -128
- package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +32 -128
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +1 -6973
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +1 -6973
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +15 -15
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +15 -15
- package/dist/constructs/v1beta1/academy/Academy.d.mts +749 -319
- package/dist/constructs/v1beta1/academy/Academy.d.ts +749 -319
- package/dist/constructs/v1beta1/academy/AcademySchema.d.mts +1 -11832
- package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +1 -11832
- package/dist/constructs/v1beta1/academy/AcademySchema.js +1 -1
- package/dist/constructs/v1beta1/academy/AcademySchema.mjs +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.d.mts +1 -513
- package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +1 -513
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/category/CategorySchema.d.mts +1 -54
- package/dist/constructs/v1beta1/category/CategorySchema.d.ts +1 -54
- package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
- package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
- package/dist/constructs/v1beta1/component/Component.d.mts +6 -12
- package/dist/constructs/v1beta1/component/Component.d.ts +6 -12
- package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +1 -1771
- package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +1 -1771
- package/dist/constructs/v1beta1/component/ComponentSchema.js +3 -3
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +3 -3
- package/dist/constructs/v1beta1/connection/Connection.d.mts +12 -12
- package/dist/constructs/v1beta1/connection/Connection.d.ts +12 -12
- package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +1 -2978
- package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +1 -2978
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/credential/Credential.d.mts +517 -0
- package/dist/constructs/v1beta1/credential/Credential.d.ts +517 -0
- package/dist/constructs/v1beta1/credential/Credential.js +1 -0
- package/dist/constructs/v1beta1/credential/Credential.mjs +0 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.js +9 -0
- package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +9 -0
- package/dist/constructs/v1beta1/environment/Environment.d.mts +4 -4
- package/dist/constructs/v1beta1/environment/Environment.d.ts +4 -4
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +1 -958
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +1 -958
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +68 -212
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +68 -212
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +1 -16507
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +1 -16507
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +25 -25
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +25 -25
- package/dist/constructs/v1beta1/event/EventSchema.d.mts +1 -354
- package/dist/constructs/v1beta1/event/EventSchema.d.ts +1 -354
- package/dist/constructs/v1beta1/event/EventSchema.js +2 -1
- package/dist/constructs/v1beta1/event/EventSchema.mjs +2 -1
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.mts +1 -767
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +1 -767
- package/dist/constructs/v1beta1/feature/FeatureSchema.js +2 -1
- package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +2 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.mts +1 -1646
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +1 -1646
- package/dist/constructs/v1beta1/invitation/InvitationSchema.js +2 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +2 -1
- package/dist/constructs/v1beta1/key/KeySchema.d.mts +1 -1219
- package/dist/constructs/v1beta1/key/KeySchema.d.ts +1 -1219
- package/dist/constructs/v1beta1/key/KeySchema.js +2 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +2 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.mts +1 -1543
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +1 -1543
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +2 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +2 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +7 -13
- package/dist/constructs/v1beta1/model/Model.d.ts +7 -13
- package/dist/constructs/v1beta1/model/ModelSchema.d.mts +1 -1301
- package/dist/constructs/v1beta1/model/ModelSchema.d.ts +1 -1301
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/OrganizationSchema.d.mts +1 -1488
- package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +1 -1488
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +2 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +2 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +7481 -212
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +7481 -212
- package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +1 -16703
- package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +1 -16703
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +265 -25
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +265 -25
- package/dist/constructs/v1beta1/plan/PlanSchema.d.mts +1 -316
- package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +1 -316
- package/dist/constructs/v1beta1/plan/PlanSchema.js +2 -1
- package/dist/constructs/v1beta1/plan/PlanSchema.mjs +2 -1
- package/dist/constructs/v1beta1/role/Role.d.mts +614 -0
- package/dist/constructs/v1beta1/role/Role.d.ts +614 -0
- package/dist/constructs/v1beta1/role/Role.js +1 -0
- package/dist/constructs/v1beta1/role/Role.mjs +0 -0
- package/dist/constructs/v1beta1/role/RoleSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/role/RoleSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/role/RoleSchema.js +2 -0
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +2 -0
- package/dist/constructs/v1beta1/schedule/Schedule.d.mts +371 -0
- package/dist/constructs/v1beta1/schedule/Schedule.d.ts +371 -0
- package/dist/constructs/v1beta1/schedule/Schedule.js +1 -0
- package/dist/constructs/v1beta1/schedule/Schedule.mjs +0 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.mts +7 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.d.ts +7 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +13 -0
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +13 -0
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.mts +1 -27
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +1 -27
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.js +1 -1
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.mjs +1 -1
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.mts +1 -1636
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +1 -1636
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.js +1 -1
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/Team.d.mts +46 -16
- package/dist/constructs/v1beta1/team/Team.d.ts +46 -16
- package/dist/constructs/v1beta1/team/TeamSchema.d.mts +1 -2016
- package/dist/constructs/v1beta1/team/TeamSchema.d.ts +1 -2016
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.d.mts +1 -1106
- package/dist/constructs/v1beta1/user/UserSchema.d.ts +1 -1106
- package/dist/constructs/v1beta1/user/UserSchema.js +2 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +2 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.mts +1 -958
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +1 -958
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +1 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +283 -43
- package/dist/index.mjs +283 -43
- package/dist/mesheryApi.d.mts +2025 -183
- package/dist/mesheryApi.d.ts +2025 -183
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/api/identity/roles": {
|
|
7
|
+
/** Assigns a role to a user identified by email. */
|
|
8
|
+
post: operations["addRoleHolder"];
|
|
9
|
+
};
|
|
10
|
+
"/api/identity/roles/{id}": {
|
|
11
|
+
/** Removes a role assignment by ID. */
|
|
12
|
+
delete: operations["deleteRole"];
|
|
13
|
+
};
|
|
14
|
+
"/api/identity/orgs/{orgID}/roles": {
|
|
15
|
+
/** Returns all roles defined for the specified organization. */
|
|
16
|
+
get: operations["getAllRoles"];
|
|
17
|
+
/** Updates role assignments for multiple users in the organization. */
|
|
18
|
+
put: operations["bulkEditRoleHolder"];
|
|
19
|
+
/** Creates or updates roles for the specified organization. */
|
|
20
|
+
post: operations["upsertRoles"];
|
|
21
|
+
};
|
|
22
|
+
"/api/identity/orgs/{orgID}/roles/{roleID}/keychains": {
|
|
23
|
+
/** Returns all keychains assigned to the specified role. */
|
|
24
|
+
get: operations["getRoleKeychains"];
|
|
25
|
+
};
|
|
26
|
+
"/api/identity/orgs/{orgID}/roles/{roleID}/keychains/{keychainID}": {
|
|
27
|
+
/** Associates a keychain with the specified role. */
|
|
28
|
+
post: operations["assignKeychainToRole"];
|
|
29
|
+
/** Removes the association between a keychain and a role. */
|
|
30
|
+
delete: operations["unassignKeychainFromRole"];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface components {
|
|
34
|
+
schemas: {
|
|
35
|
+
/** @description Role definition for Layer5 Cloud (Meshery). */
|
|
36
|
+
Role: {
|
|
37
|
+
/**
|
|
38
|
+
* Format: uuid
|
|
39
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
/** @description Unique name of the role. */
|
|
43
|
+
role_name: string;
|
|
44
|
+
/** @description Human-readable description of the role. */
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
* Format: date-time
|
|
48
|
+
* @description Timestamp when the resource was created.
|
|
49
|
+
*/
|
|
50
|
+
created_at?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Format: date-time
|
|
53
|
+
* @description Timestamp when the resource was updated.
|
|
54
|
+
*/
|
|
55
|
+
updated_at?: string;
|
|
56
|
+
/** @description Timestamp when the role was soft-deleted. */
|
|
57
|
+
deleted_at?: string;
|
|
58
|
+
};
|
|
59
|
+
/** @description A paginated list of roles. */
|
|
60
|
+
RolesPage: {
|
|
61
|
+
/** @description Current page number (zero-based). */
|
|
62
|
+
page: number;
|
|
63
|
+
/** @description Number of roles per page. */
|
|
64
|
+
page_size: number;
|
|
65
|
+
/** @description Total number of roles across all pages. */
|
|
66
|
+
total_count: number;
|
|
67
|
+
roles: {
|
|
68
|
+
/**
|
|
69
|
+
* Format: uuid
|
|
70
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
71
|
+
*/
|
|
72
|
+
id?: string;
|
|
73
|
+
/** @description Unique name of the role. */
|
|
74
|
+
role_name: string;
|
|
75
|
+
/** @description Human-readable description of the role. */
|
|
76
|
+
description: string;
|
|
77
|
+
/**
|
|
78
|
+
* Format: date-time
|
|
79
|
+
* @description Timestamp when the resource was created.
|
|
80
|
+
*/
|
|
81
|
+
created_at?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Format: date-time
|
|
84
|
+
* @description Timestamp when the resource was updated.
|
|
85
|
+
*/
|
|
86
|
+
updated_at?: string;
|
|
87
|
+
/** @description Timestamp when the role was soft-deleted. */
|
|
88
|
+
deleted_at?: string;
|
|
89
|
+
}[];
|
|
90
|
+
};
|
|
91
|
+
/** @description Mapping between a role and a keychain. */
|
|
92
|
+
RolesKeychainsMapping: {
|
|
93
|
+
/**
|
|
94
|
+
* Format: uuid
|
|
95
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
96
|
+
*/
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* Format: uuid
|
|
100
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
101
|
+
*/
|
|
102
|
+
keychain_id: string;
|
|
103
|
+
/**
|
|
104
|
+
* Format: uuid
|
|
105
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
106
|
+
*/
|
|
107
|
+
role_id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Format: date-time
|
|
110
|
+
* @description Timestamp when the resource was created.
|
|
111
|
+
*/
|
|
112
|
+
created_at: string;
|
|
113
|
+
/**
|
|
114
|
+
* Format: date-time
|
|
115
|
+
* @description Timestamp when the resource was updated.
|
|
116
|
+
*/
|
|
117
|
+
updated_at: string;
|
|
118
|
+
/** @description SQL null Timestamp to handle null values of time. */
|
|
119
|
+
deleted_at?: string;
|
|
120
|
+
};
|
|
121
|
+
/** @description Request body for assigning a role to a user. */
|
|
122
|
+
RoleHolderRequest: {
|
|
123
|
+
/**
|
|
124
|
+
* Format: email
|
|
125
|
+
* @description Email of the user to assign roles to.
|
|
126
|
+
*/
|
|
127
|
+
email: string;
|
|
128
|
+
/** @description List of role names to assign. */
|
|
129
|
+
role_names: string[];
|
|
130
|
+
};
|
|
131
|
+
/** @description Request to update role assignments for a user. */
|
|
132
|
+
UserRoleUpdateRequest: {
|
|
133
|
+
/**
|
|
134
|
+
* Format: uuid
|
|
135
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
136
|
+
*/
|
|
137
|
+
id?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Format: uuid
|
|
140
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
141
|
+
*/
|
|
142
|
+
user_id?: string;
|
|
143
|
+
username?: string;
|
|
144
|
+
/** Format: email */
|
|
145
|
+
email?: string;
|
|
146
|
+
first_name?: string;
|
|
147
|
+
last_name?: string;
|
|
148
|
+
status?: string;
|
|
149
|
+
role_names?: string[];
|
|
150
|
+
/** Format: date-time */
|
|
151
|
+
created_at?: string;
|
|
152
|
+
/** Format: date-time */
|
|
153
|
+
updated_at?: string;
|
|
154
|
+
/** @description SQL null Timestamp to handle null values of time. */
|
|
155
|
+
deleted_at?: string;
|
|
156
|
+
};
|
|
157
|
+
/** @description User notification preferences. */
|
|
158
|
+
Preference: {
|
|
159
|
+
/** @description Whether to send a welcome email to new users. */
|
|
160
|
+
welcome_email: boolean;
|
|
161
|
+
/** @description Whether to notify the user of role changes. */
|
|
162
|
+
notify_role_change: boolean;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
responses: {
|
|
166
|
+
/** Invalid request body or request param */
|
|
167
|
+
400: {
|
|
168
|
+
content: {
|
|
169
|
+
"text/plain": string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/** Expired JWT token used or insufficient privilege */
|
|
173
|
+
401: {
|
|
174
|
+
content: {
|
|
175
|
+
"text/plain": string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
/** Result not found */
|
|
179
|
+
404: {
|
|
180
|
+
content: {
|
|
181
|
+
"text/plain": string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
/** Internal server error */
|
|
185
|
+
500: {
|
|
186
|
+
content: {
|
|
187
|
+
"text/plain": string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
parameters: {
|
|
192
|
+
/** @description Role ID */
|
|
193
|
+
id: string;
|
|
194
|
+
/** @description Organization ID */
|
|
195
|
+
orgID: string;
|
|
196
|
+
/** @description Role ID */
|
|
197
|
+
roleID: string;
|
|
198
|
+
/** @description Keychain ID */
|
|
199
|
+
keychainID: string;
|
|
200
|
+
/** @description Get responses by page */
|
|
201
|
+
page: string;
|
|
202
|
+
/** @description Get responses by pagesize */
|
|
203
|
+
pagesize: string;
|
|
204
|
+
/** @description Get responses that match search param value */
|
|
205
|
+
search: string;
|
|
206
|
+
/** @description Get ordered responses */
|
|
207
|
+
order: string;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
interface operations {
|
|
211
|
+
/** Assigns a role to a user identified by email. */
|
|
212
|
+
addRoleHolder: {
|
|
213
|
+
responses: {
|
|
214
|
+
/** Role holder added successfully */
|
|
215
|
+
200: unknown;
|
|
216
|
+
/** Invalid request body or request param */
|
|
217
|
+
400: {
|
|
218
|
+
content: {
|
|
219
|
+
"text/plain": string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
/** Expired JWT token used or insufficient privilege */
|
|
223
|
+
401: {
|
|
224
|
+
content: {
|
|
225
|
+
"text/plain": string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
/** Internal server error */
|
|
229
|
+
500: {
|
|
230
|
+
content: {
|
|
231
|
+
"text/plain": string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
requestBody: {
|
|
236
|
+
content: {
|
|
237
|
+
"application/json": {
|
|
238
|
+
/**
|
|
239
|
+
* Format: email
|
|
240
|
+
* @description Email of the user to assign roles to.
|
|
241
|
+
*/
|
|
242
|
+
email: string;
|
|
243
|
+
/** @description List of role names to assign. */
|
|
244
|
+
role_names: string[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
/** Removes a role assignment by ID. */
|
|
250
|
+
deleteRole: {
|
|
251
|
+
parameters: {
|
|
252
|
+
path: {
|
|
253
|
+
/** Role ID */
|
|
254
|
+
id: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
responses: {
|
|
258
|
+
/** Role deleted successfully */
|
|
259
|
+
204: never;
|
|
260
|
+
/** Invalid request body or request param */
|
|
261
|
+
400: {
|
|
262
|
+
content: {
|
|
263
|
+
"text/plain": string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
/** Expired JWT token used or insufficient privilege */
|
|
267
|
+
401: {
|
|
268
|
+
content: {
|
|
269
|
+
"text/plain": string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
/** Result not found */
|
|
273
|
+
404: {
|
|
274
|
+
content: {
|
|
275
|
+
"text/plain": string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
/** Internal server error */
|
|
279
|
+
500: {
|
|
280
|
+
content: {
|
|
281
|
+
"text/plain": string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
/** Returns all roles defined for the specified organization. */
|
|
287
|
+
getAllRoles: {
|
|
288
|
+
parameters: {
|
|
289
|
+
path: {
|
|
290
|
+
/** Organization ID */
|
|
291
|
+
orgID: string;
|
|
292
|
+
};
|
|
293
|
+
query: {
|
|
294
|
+
/** Get responses by page */
|
|
295
|
+
page?: string;
|
|
296
|
+
/** Get responses by pagesize */
|
|
297
|
+
pagesize?: string;
|
|
298
|
+
/** Get responses that match search param value */
|
|
299
|
+
search?: string;
|
|
300
|
+
/** Get ordered responses */
|
|
301
|
+
order?: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
responses: {
|
|
305
|
+
/** Roles fetched successfully */
|
|
306
|
+
200: {
|
|
307
|
+
content: {
|
|
308
|
+
"application/json": {
|
|
309
|
+
/** @description Current page number (zero-based). */
|
|
310
|
+
page: number;
|
|
311
|
+
/** @description Number of roles per page. */
|
|
312
|
+
page_size: number;
|
|
313
|
+
/** @description Total number of roles across all pages. */
|
|
314
|
+
total_count: number;
|
|
315
|
+
roles: {
|
|
316
|
+
/**
|
|
317
|
+
* Format: uuid
|
|
318
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
319
|
+
*/
|
|
320
|
+
id?: string;
|
|
321
|
+
/** @description Unique name of the role. */
|
|
322
|
+
role_name: string;
|
|
323
|
+
/** @description Human-readable description of the role. */
|
|
324
|
+
description: string;
|
|
325
|
+
/**
|
|
326
|
+
* Format: date-time
|
|
327
|
+
* @description Timestamp when the resource was created.
|
|
328
|
+
*/
|
|
329
|
+
created_at?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Format: date-time
|
|
332
|
+
* @description Timestamp when the resource was updated.
|
|
333
|
+
*/
|
|
334
|
+
updated_at?: string;
|
|
335
|
+
/** @description Timestamp when the role was soft-deleted. */
|
|
336
|
+
deleted_at?: string;
|
|
337
|
+
}[];
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
/** Expired JWT token used or insufficient privilege */
|
|
342
|
+
401: {
|
|
343
|
+
content: {
|
|
344
|
+
"text/plain": string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
/** Internal server error */
|
|
348
|
+
500: {
|
|
349
|
+
content: {
|
|
350
|
+
"text/plain": string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
/** Updates role assignments for multiple users in the organization. */
|
|
356
|
+
bulkEditRoleHolder: {
|
|
357
|
+
parameters: {
|
|
358
|
+
path: {
|
|
359
|
+
/** Organization ID */
|
|
360
|
+
orgID: string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
responses: {
|
|
364
|
+
/** Role holders updated successfully */
|
|
365
|
+
200: unknown;
|
|
366
|
+
/** Invalid request body or request param */
|
|
367
|
+
400: {
|
|
368
|
+
content: {
|
|
369
|
+
"text/plain": string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/** Expired JWT token used or insufficient privilege */
|
|
373
|
+
401: {
|
|
374
|
+
content: {
|
|
375
|
+
"text/plain": string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
/** Internal server error */
|
|
379
|
+
500: {
|
|
380
|
+
content: {
|
|
381
|
+
"text/plain": string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
requestBody: {
|
|
386
|
+
content: {
|
|
387
|
+
"application/json": {
|
|
388
|
+
/**
|
|
389
|
+
* Format: uuid
|
|
390
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
391
|
+
*/
|
|
392
|
+
id?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Format: uuid
|
|
395
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
396
|
+
*/
|
|
397
|
+
user_id?: string;
|
|
398
|
+
username?: string;
|
|
399
|
+
/** Format: email */
|
|
400
|
+
email?: string;
|
|
401
|
+
first_name?: string;
|
|
402
|
+
last_name?: string;
|
|
403
|
+
status?: string;
|
|
404
|
+
role_names?: string[];
|
|
405
|
+
/** Format: date-time */
|
|
406
|
+
created_at?: string;
|
|
407
|
+
/** Format: date-time */
|
|
408
|
+
updated_at?: string;
|
|
409
|
+
/** @description SQL null Timestamp to handle null values of time. */
|
|
410
|
+
deleted_at?: string;
|
|
411
|
+
}[];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
/** Creates or updates roles for the specified organization. */
|
|
416
|
+
upsertRoles: {
|
|
417
|
+
parameters: {
|
|
418
|
+
path: {
|
|
419
|
+
/** Organization ID */
|
|
420
|
+
orgID: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
responses: {
|
|
424
|
+
/** Roles upserted successfully */
|
|
425
|
+
200: {
|
|
426
|
+
content: {
|
|
427
|
+
"application/json": {
|
|
428
|
+
/** @description Current page number (zero-based). */
|
|
429
|
+
page: number;
|
|
430
|
+
/** @description Number of roles per page. */
|
|
431
|
+
page_size: number;
|
|
432
|
+
/** @description Total number of roles across all pages. */
|
|
433
|
+
total_count: number;
|
|
434
|
+
roles: {
|
|
435
|
+
/**
|
|
436
|
+
* Format: uuid
|
|
437
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
438
|
+
*/
|
|
439
|
+
id?: string;
|
|
440
|
+
/** @description Unique name of the role. */
|
|
441
|
+
role_name: string;
|
|
442
|
+
/** @description Human-readable description of the role. */
|
|
443
|
+
description: string;
|
|
444
|
+
/**
|
|
445
|
+
* Format: date-time
|
|
446
|
+
* @description Timestamp when the resource was created.
|
|
447
|
+
*/
|
|
448
|
+
created_at?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Format: date-time
|
|
451
|
+
* @description Timestamp when the resource was updated.
|
|
452
|
+
*/
|
|
453
|
+
updated_at?: string;
|
|
454
|
+
/** @description Timestamp when the role was soft-deleted. */
|
|
455
|
+
deleted_at?: string;
|
|
456
|
+
}[];
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
/** Invalid request body or request param */
|
|
461
|
+
400: {
|
|
462
|
+
content: {
|
|
463
|
+
"text/plain": string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
/** Expired JWT token used or insufficient privilege */
|
|
467
|
+
401: {
|
|
468
|
+
content: {
|
|
469
|
+
"text/plain": string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
/** Internal server error */
|
|
473
|
+
500: {
|
|
474
|
+
content: {
|
|
475
|
+
"text/plain": string;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
requestBody: {
|
|
480
|
+
content: {
|
|
481
|
+
"application/json": {
|
|
482
|
+
/**
|
|
483
|
+
* Format: uuid
|
|
484
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
485
|
+
*/
|
|
486
|
+
id?: string;
|
|
487
|
+
/** @description Unique name of the role. */
|
|
488
|
+
role_name: string;
|
|
489
|
+
/** @description Human-readable description of the role. */
|
|
490
|
+
description: string;
|
|
491
|
+
/**
|
|
492
|
+
* Format: date-time
|
|
493
|
+
* @description Timestamp when the resource was created.
|
|
494
|
+
*/
|
|
495
|
+
created_at?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Format: date-time
|
|
498
|
+
* @description Timestamp when the resource was updated.
|
|
499
|
+
*/
|
|
500
|
+
updated_at?: string;
|
|
501
|
+
/** @description Timestamp when the role was soft-deleted. */
|
|
502
|
+
deleted_at?: string;
|
|
503
|
+
}[];
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
/** Returns all keychains assigned to the specified role. */
|
|
508
|
+
getRoleKeychains: {
|
|
509
|
+
parameters: {
|
|
510
|
+
path: {
|
|
511
|
+
/** Organization ID */
|
|
512
|
+
orgID: string;
|
|
513
|
+
/** Role ID */
|
|
514
|
+
roleID: string;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
responses: {
|
|
518
|
+
/** Keychains fetched successfully */
|
|
519
|
+
200: unknown;
|
|
520
|
+
/** Expired JWT token used or insufficient privilege */
|
|
521
|
+
401: {
|
|
522
|
+
content: {
|
|
523
|
+
"text/plain": string;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
/** Internal server error */
|
|
527
|
+
500: {
|
|
528
|
+
content: {
|
|
529
|
+
"text/plain": string;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
/** Associates a keychain with the specified role. */
|
|
535
|
+
assignKeychainToRole: {
|
|
536
|
+
parameters: {
|
|
537
|
+
path: {
|
|
538
|
+
/** Organization ID */
|
|
539
|
+
orgID: string;
|
|
540
|
+
/** Role ID */
|
|
541
|
+
roleID: string;
|
|
542
|
+
/** Keychain ID */
|
|
543
|
+
keychainID: string;
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
responses: {
|
|
547
|
+
/** Keychain assigned to role successfully */
|
|
548
|
+
200: unknown;
|
|
549
|
+
/** Invalid request body or request param */
|
|
550
|
+
400: {
|
|
551
|
+
content: {
|
|
552
|
+
"text/plain": string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
/** Expired JWT token used or insufficient privilege */
|
|
556
|
+
401: {
|
|
557
|
+
content: {
|
|
558
|
+
"text/plain": string;
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
/** Internal server error */
|
|
562
|
+
500: {
|
|
563
|
+
content: {
|
|
564
|
+
"text/plain": string;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
/** Removes the association between a keychain and a role. */
|
|
570
|
+
unassignKeychainFromRole: {
|
|
571
|
+
parameters: {
|
|
572
|
+
path: {
|
|
573
|
+
/** Organization ID */
|
|
574
|
+
orgID: string;
|
|
575
|
+
/** Role ID */
|
|
576
|
+
roleID: string;
|
|
577
|
+
/** Keychain ID */
|
|
578
|
+
keychainID: string;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
responses: {
|
|
582
|
+
/** Keychain unassigned from role successfully */
|
|
583
|
+
204: never;
|
|
584
|
+
/** Invalid request body or request param */
|
|
585
|
+
400: {
|
|
586
|
+
content: {
|
|
587
|
+
"text/plain": string;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
/** Expired JWT token used or insufficient privilege */
|
|
591
|
+
401: {
|
|
592
|
+
content: {
|
|
593
|
+
"text/plain": string;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
/** Result not found */
|
|
597
|
+
404: {
|
|
598
|
+
content: {
|
|
599
|
+
"text/plain": string;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
/** Internal server error */
|
|
603
|
+
500: {
|
|
604
|
+
content: {
|
|
605
|
+
"text/plain": string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
interface external {
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export type { components, external, operations, paths };
|