@meshery/schemas 0.8.128 → 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 -159
- package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +1 -159
- 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 -1652
- package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +1 -1652
- 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 -84
- package/dist/constructs/v1alpha2/catalog/CatalogSchema.d.ts +1 -84
- 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 -6983
- package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +1 -6983
- 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 -11842
- package/dist/constructs/v1beta1/academy/AcademySchema.d.ts +1 -11842
- 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 -522
- package/dist/constructs/v1beta1/badge/BadgeSchema.d.ts +1 -522
- package/dist/constructs/v1beta1/category/CategorySchema.d.mts +1 -64
- package/dist/constructs/v1beta1/category/CategorySchema.d.ts +1 -64
- 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 -1781
- package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +1 -1781
- 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 -16516
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +1 -16516
- 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 -364
- package/dist/constructs/v1beta1/event/EventSchema.d.ts +1 -364
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.mts +1 -776
- package/dist/constructs/v1beta1/feature/FeatureSchema.d.ts +1 -776
- package/dist/constructs/v1beta1/feature/FeatureSchema.js +1 -1
- package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +1 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.mts +1 -1655
- package/dist/constructs/v1beta1/invitation/InvitationSchema.d.ts +1 -1655
- package/dist/constructs/v1beta1/key/KeySchema.d.mts +1 -1229
- package/dist/constructs/v1beta1/key/KeySchema.d.ts +1 -1229
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.mts +1 -1553
- package/dist/constructs/v1beta1/keychain/KeychainSchema.d.ts +1 -1553
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -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 -1311
- package/dist/constructs/v1beta1/model/ModelSchema.d.ts +1 -1311
- 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 -1498
- package/dist/constructs/v1beta1/organization/OrganizationSchema.d.ts +1 -1498
- 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 -16713
- package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +1 -16713
- 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 -326
- package/dist/constructs/v1beta1/plan/PlanSchema.d.ts +1 -326
- 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 -37
- package/dist/constructs/v1beta1/subcategory/SubcategorySchema.d.ts +1 -37
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.mts +1 -1645
- package/dist/constructs/v1beta1/subscription/SubscriptionSchema.d.ts +1 -1645
- 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 -2022
- package/dist/constructs/v1beta1/team/TeamSchema.d.ts +1 -2022
- 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 -1116
- package/dist/constructs/v1beta1/user/UserSchema.d.ts +1 -1116
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.mts +1 -964
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.d.ts +1 -964
- 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 +268 -244
- package/dist/mesheryApi.d.ts +268 -244
- package/package.json +1 -1
|
@@ -0,0 +1,517 @@
|
|
|
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/integrations/credentials": {
|
|
7
|
+
/** Retrieves all credentials belonging to the authenticated user. */
|
|
8
|
+
get: operations["getUserCredentials"];
|
|
9
|
+
/** Updates an existing credential for the authenticated user. */
|
|
10
|
+
put: operations["updateUserCredential"];
|
|
11
|
+
/** Saves a new credential for the authenticated user. */
|
|
12
|
+
post: operations["saveUserCredential"];
|
|
13
|
+
};
|
|
14
|
+
"/api/integrations/credentials/{id}": {
|
|
15
|
+
/** Retrieves a specific credential by its ID. */
|
|
16
|
+
get: operations["getCredentialByID"];
|
|
17
|
+
/** Deletes a credential belonging to the authenticated user. */
|
|
18
|
+
delete: operations["deleteUserCredential"];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface components {
|
|
22
|
+
schemas: {
|
|
23
|
+
/** @description Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems. */
|
|
24
|
+
Credential: {
|
|
25
|
+
/**
|
|
26
|
+
* Format: uuid
|
|
27
|
+
* @description Unique identifier for the credential.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/** @description Human-readable name for the credential. */
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Format: uuid
|
|
34
|
+
* @description UUID of the user who owns this credential.
|
|
35
|
+
*/
|
|
36
|
+
user_id?: string;
|
|
37
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
38
|
+
type: string;
|
|
39
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
40
|
+
secret?: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Format: date-time
|
|
45
|
+
* @description Timestamp when the resource was created.
|
|
46
|
+
*/
|
|
47
|
+
created_at?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Format: date-time
|
|
50
|
+
* @description Timestamp when the resource was updated.
|
|
51
|
+
*/
|
|
52
|
+
updated_at?: string;
|
|
53
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
54
|
+
deleted_at?: string;
|
|
55
|
+
};
|
|
56
|
+
/** @description A paginated list of credentials. */
|
|
57
|
+
CredentialPage: {
|
|
58
|
+
credentials: {
|
|
59
|
+
/**
|
|
60
|
+
* Format: uuid
|
|
61
|
+
* @description Unique identifier for the credential.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
/** @description Human-readable name for the credential. */
|
|
65
|
+
name: string;
|
|
66
|
+
/**
|
|
67
|
+
* Format: uuid
|
|
68
|
+
* @description UUID of the user who owns this credential.
|
|
69
|
+
*/
|
|
70
|
+
user_id?: string;
|
|
71
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
72
|
+
type: string;
|
|
73
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
74
|
+
secret?: {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
};
|
|
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 credential was soft-deleted. */
|
|
88
|
+
deleted_at?: string;
|
|
89
|
+
}[];
|
|
90
|
+
/** @description Total number of credentials across all pages. */
|
|
91
|
+
total_count: number;
|
|
92
|
+
/** @description Current page number (zero-based). */
|
|
93
|
+
page: number;
|
|
94
|
+
/** @description Number of credentials per page. */
|
|
95
|
+
page_size: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
responses: {
|
|
99
|
+
/** Invalid request body or request param */
|
|
100
|
+
400: {
|
|
101
|
+
content: {
|
|
102
|
+
"text/plain": string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/** Expired JWT token used or insufficient privilege */
|
|
106
|
+
401: {
|
|
107
|
+
content: {
|
|
108
|
+
"text/plain": string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/** Result not found */
|
|
112
|
+
404: {
|
|
113
|
+
content: {
|
|
114
|
+
"text/plain": string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/** Internal server error */
|
|
118
|
+
500: {
|
|
119
|
+
content: {
|
|
120
|
+
"text/plain": string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
parameters: {
|
|
125
|
+
/** @description Credential ID */
|
|
126
|
+
id: string;
|
|
127
|
+
/** @description Get responses by page */
|
|
128
|
+
page: string;
|
|
129
|
+
/** @description Get responses by pagesize */
|
|
130
|
+
pagesize: string;
|
|
131
|
+
/** @description Get responses that match search param value */
|
|
132
|
+
search: string;
|
|
133
|
+
/** @description Get ordered responses */
|
|
134
|
+
order: string;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
interface operations {
|
|
138
|
+
/** Retrieves all credentials belonging to the authenticated user. */
|
|
139
|
+
getUserCredentials: {
|
|
140
|
+
parameters: {
|
|
141
|
+
query: {
|
|
142
|
+
/** Get responses by page */
|
|
143
|
+
page?: string;
|
|
144
|
+
/** Get responses by pagesize */
|
|
145
|
+
pagesize?: string;
|
|
146
|
+
/** Get responses that match search param value */
|
|
147
|
+
search?: string;
|
|
148
|
+
/** Get ordered responses */
|
|
149
|
+
order?: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
responses: {
|
|
153
|
+
/** Credentials fetched successfully */
|
|
154
|
+
200: {
|
|
155
|
+
content: {
|
|
156
|
+
"application/json": {
|
|
157
|
+
credentials: {
|
|
158
|
+
/**
|
|
159
|
+
* Format: uuid
|
|
160
|
+
* @description Unique identifier for the credential.
|
|
161
|
+
*/
|
|
162
|
+
id?: string;
|
|
163
|
+
/** @description Human-readable name for the credential. */
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* Format: uuid
|
|
167
|
+
* @description UUID of the user who owns this credential.
|
|
168
|
+
*/
|
|
169
|
+
user_id?: string;
|
|
170
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
171
|
+
type: string;
|
|
172
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
173
|
+
secret?: {
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Format: date-time
|
|
178
|
+
* @description Timestamp when the resource was created.
|
|
179
|
+
*/
|
|
180
|
+
created_at?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Format: date-time
|
|
183
|
+
* @description Timestamp when the resource was updated.
|
|
184
|
+
*/
|
|
185
|
+
updated_at?: string;
|
|
186
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
187
|
+
deleted_at?: string;
|
|
188
|
+
}[];
|
|
189
|
+
/** @description Total number of credentials across all pages. */
|
|
190
|
+
total_count: number;
|
|
191
|
+
/** @description Current page number (zero-based). */
|
|
192
|
+
page: number;
|
|
193
|
+
/** @description Number of credentials per page. */
|
|
194
|
+
page_size: number;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
/** Expired JWT token used or insufficient privilege */
|
|
199
|
+
401: {
|
|
200
|
+
content: {
|
|
201
|
+
"text/plain": string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
/** Internal server error */
|
|
205
|
+
500: {
|
|
206
|
+
content: {
|
|
207
|
+
"text/plain": string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/** Updates an existing credential for the authenticated user. */
|
|
213
|
+
updateUserCredential: {
|
|
214
|
+
responses: {
|
|
215
|
+
/** Credential updated successfully */
|
|
216
|
+
200: {
|
|
217
|
+
content: {
|
|
218
|
+
"application/json": {
|
|
219
|
+
/**
|
|
220
|
+
* Format: uuid
|
|
221
|
+
* @description Unique identifier for the credential.
|
|
222
|
+
*/
|
|
223
|
+
id?: string;
|
|
224
|
+
/** @description Human-readable name for the credential. */
|
|
225
|
+
name: string;
|
|
226
|
+
/**
|
|
227
|
+
* Format: uuid
|
|
228
|
+
* @description UUID of the user who owns this credential.
|
|
229
|
+
*/
|
|
230
|
+
user_id?: string;
|
|
231
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
232
|
+
type: string;
|
|
233
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
234
|
+
secret?: {
|
|
235
|
+
[key: string]: unknown;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Format: date-time
|
|
239
|
+
* @description Timestamp when the resource was created.
|
|
240
|
+
*/
|
|
241
|
+
created_at?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Format: date-time
|
|
244
|
+
* @description Timestamp when the resource was updated.
|
|
245
|
+
*/
|
|
246
|
+
updated_at?: string;
|
|
247
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
248
|
+
deleted_at?: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
/** Invalid request body or request param */
|
|
253
|
+
400: {
|
|
254
|
+
content: {
|
|
255
|
+
"text/plain": string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/** Expired JWT token used or insufficient privilege */
|
|
259
|
+
401: {
|
|
260
|
+
content: {
|
|
261
|
+
"text/plain": string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
/** Result not found */
|
|
265
|
+
404: {
|
|
266
|
+
content: {
|
|
267
|
+
"text/plain": string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
/** Internal server error */
|
|
271
|
+
500: {
|
|
272
|
+
content: {
|
|
273
|
+
"text/plain": string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
requestBody: {
|
|
278
|
+
content: {
|
|
279
|
+
"application/json": {
|
|
280
|
+
/**
|
|
281
|
+
* Format: uuid
|
|
282
|
+
* @description Unique identifier for the credential.
|
|
283
|
+
*/
|
|
284
|
+
id?: string;
|
|
285
|
+
/** @description Human-readable name for the credential. */
|
|
286
|
+
name: string;
|
|
287
|
+
/**
|
|
288
|
+
* Format: uuid
|
|
289
|
+
* @description UUID of the user who owns this credential.
|
|
290
|
+
*/
|
|
291
|
+
user_id?: string;
|
|
292
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
293
|
+
type: string;
|
|
294
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
295
|
+
secret?: {
|
|
296
|
+
[key: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Format: date-time
|
|
300
|
+
* @description Timestamp when the resource was created.
|
|
301
|
+
*/
|
|
302
|
+
created_at?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Format: date-time
|
|
305
|
+
* @description Timestamp when the resource was updated.
|
|
306
|
+
*/
|
|
307
|
+
updated_at?: string;
|
|
308
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
309
|
+
deleted_at?: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
/** Saves a new credential for the authenticated user. */
|
|
315
|
+
saveUserCredential: {
|
|
316
|
+
responses: {
|
|
317
|
+
/** Credential saved successfully */
|
|
318
|
+
201: {
|
|
319
|
+
content: {
|
|
320
|
+
"application/json": {
|
|
321
|
+
/**
|
|
322
|
+
* Format: uuid
|
|
323
|
+
* @description Unique identifier for the credential.
|
|
324
|
+
*/
|
|
325
|
+
id?: string;
|
|
326
|
+
/** @description Human-readable name for the credential. */
|
|
327
|
+
name: string;
|
|
328
|
+
/**
|
|
329
|
+
* Format: uuid
|
|
330
|
+
* @description UUID of the user who owns this credential.
|
|
331
|
+
*/
|
|
332
|
+
user_id?: string;
|
|
333
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
334
|
+
type: string;
|
|
335
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
336
|
+
secret?: {
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Format: date-time
|
|
341
|
+
* @description Timestamp when the resource was created.
|
|
342
|
+
*/
|
|
343
|
+
created_at?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Format: date-time
|
|
346
|
+
* @description Timestamp when the resource was updated.
|
|
347
|
+
*/
|
|
348
|
+
updated_at?: string;
|
|
349
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
350
|
+
deleted_at?: string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
/** Invalid request body or request param */
|
|
355
|
+
400: {
|
|
356
|
+
content: {
|
|
357
|
+
"text/plain": string;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
/** Expired JWT token used or insufficient privilege */
|
|
361
|
+
401: {
|
|
362
|
+
content: {
|
|
363
|
+
"text/plain": string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
/** Internal server error */
|
|
367
|
+
500: {
|
|
368
|
+
content: {
|
|
369
|
+
"text/plain": string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
requestBody: {
|
|
374
|
+
content: {
|
|
375
|
+
"application/json": {
|
|
376
|
+
/**
|
|
377
|
+
* Format: uuid
|
|
378
|
+
* @description Unique identifier for the credential.
|
|
379
|
+
*/
|
|
380
|
+
id?: string;
|
|
381
|
+
/** @description Human-readable name for the credential. */
|
|
382
|
+
name: string;
|
|
383
|
+
/**
|
|
384
|
+
* Format: uuid
|
|
385
|
+
* @description UUID of the user who owns this credential.
|
|
386
|
+
*/
|
|
387
|
+
user_id?: string;
|
|
388
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
389
|
+
type: string;
|
|
390
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
391
|
+
secret?: {
|
|
392
|
+
[key: string]: unknown;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Format: date-time
|
|
396
|
+
* @description Timestamp when the resource was created.
|
|
397
|
+
*/
|
|
398
|
+
created_at?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Format: date-time
|
|
401
|
+
* @description Timestamp when the resource was updated.
|
|
402
|
+
*/
|
|
403
|
+
updated_at?: string;
|
|
404
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
405
|
+
deleted_at?: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
/** Retrieves a specific credential by its ID. */
|
|
411
|
+
getCredentialByID: {
|
|
412
|
+
parameters: {
|
|
413
|
+
path: {
|
|
414
|
+
/** Credential ID */
|
|
415
|
+
id: string;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
responses: {
|
|
419
|
+
/** Credential fetched successfully */
|
|
420
|
+
200: {
|
|
421
|
+
content: {
|
|
422
|
+
"application/json": {
|
|
423
|
+
/**
|
|
424
|
+
* Format: uuid
|
|
425
|
+
* @description Unique identifier for the credential.
|
|
426
|
+
*/
|
|
427
|
+
id?: string;
|
|
428
|
+
/** @description Human-readable name for the credential. */
|
|
429
|
+
name: string;
|
|
430
|
+
/**
|
|
431
|
+
* Format: uuid
|
|
432
|
+
* @description UUID of the user who owns this credential.
|
|
433
|
+
*/
|
|
434
|
+
user_id?: string;
|
|
435
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
436
|
+
type: string;
|
|
437
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
438
|
+
secret?: {
|
|
439
|
+
[key: string]: unknown;
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* Format: date-time
|
|
443
|
+
* @description Timestamp when the resource was created.
|
|
444
|
+
*/
|
|
445
|
+
created_at?: string;
|
|
446
|
+
/**
|
|
447
|
+
* Format: date-time
|
|
448
|
+
* @description Timestamp when the resource was updated.
|
|
449
|
+
*/
|
|
450
|
+
updated_at?: string;
|
|
451
|
+
/** @description Timestamp when the credential was soft-deleted. */
|
|
452
|
+
deleted_at?: string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
/** Expired JWT token used or insufficient privilege */
|
|
457
|
+
401: {
|
|
458
|
+
content: {
|
|
459
|
+
"text/plain": string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
/** Result not found */
|
|
463
|
+
404: {
|
|
464
|
+
content: {
|
|
465
|
+
"text/plain": string;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
/** Internal server error */
|
|
469
|
+
500: {
|
|
470
|
+
content: {
|
|
471
|
+
"text/plain": string;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
/** Deletes a credential belonging to the authenticated user. */
|
|
477
|
+
deleteUserCredential: {
|
|
478
|
+
parameters: {
|
|
479
|
+
path: {
|
|
480
|
+
/** Credential ID */
|
|
481
|
+
id: string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
responses: {
|
|
485
|
+
/** Credential deleted successfully */
|
|
486
|
+
204: never;
|
|
487
|
+
/** Invalid request body or request param */
|
|
488
|
+
400: {
|
|
489
|
+
content: {
|
|
490
|
+
"text/plain": string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
/** Expired JWT token used or insufficient privilege */
|
|
494
|
+
401: {
|
|
495
|
+
content: {
|
|
496
|
+
"text/plain": string;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
/** Result not found */
|
|
500
|
+
404: {
|
|
501
|
+
content: {
|
|
502
|
+
"text/plain": string;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
/** Internal server error */
|
|
506
|
+
500: {
|
|
507
|
+
content: {
|
|
508
|
+
"text/plain": string;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
interface external {
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"credential",description:"Documentation for Meshery Cloud REST APIs for Credentials",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"},version:"v1beta1"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"credentials",description:"Operations related to integration credentials"}],paths:{"/api/integrations/credentials":{get:{"x-internal":["cloud"],tags:["credentials"],summary:"Get credentials",operationId:"getUserCredentials",description:"Retrieves all credentials belonging to the authenticated user.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Credentials fetched successfully",content:{"application/json":{schema:{type:"object",description:"A paginated list of credentials.",required:["credentials","total_count","page","page_size"],properties:{credentials:{type:"array",items:{"x-go-type":"Credential",type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
2
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":1},total_count:{type:"integer",description:"Total number of credentials across all pages.","x-order":2},page:{type:"integer",description:"Current page number (zero-based).","x-order":3},page_size:{type:"integer",description:"Number of credentials per page.","x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["credentials"],summary:"Save credential",operationId:"saveUserCredential",description:"Saves a new credential for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
3
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{201:{description:"Credential saved successfully",content:{"application/json":{schema:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
4
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},put:{"x-internal":["cloud"],tags:["credentials"],summary:"Update credential",operationId:"updateUserCredential",description:"Updates an existing credential for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
5
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Credential updated successfully",content:{"application/json":{schema:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
6
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/integrations/credentials/{id}":{get:{"x-internal":["cloud"],tags:["credentials"],summary:"Get credential by ID",operationId:"getCredentialByID",description:"Retrieves a specific credential by its ID.",parameters:[{name:"id",in:"path",description:"Credential ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Credential fetched successfully",content:{"application/json":{schema:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
7
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["credentials"],summary:"Delete credential",operationId:"deleteUserCredential",description:"Deletes a credential belonging to the authenticated user.",parameters:[{name:"id",in:"path",description:"Credential ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{204:{description:"Credential deleted successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{id:{name:"id",in:"path",description:"Credential ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},schemas:{Credential:{type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
8
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},CredentialPage:{type:"object",description:"A paginated list of credentials.",required:["credentials","total_count","page","page_size"],properties:{credentials:{type:"array",items:{"x-go-type":"Credential",type:"object",description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
9
|
+
`,required:["name","type"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"}},user_id:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"}},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-oapi-codegen-extra-tags":{db:"secret"}},created_at:{"x-order":6,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":7,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{description:"Timestamp when the credential was soft-deleted.","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":1},total_count:{type:"integer",description:"Total number of credentials across all pages.","x-order":2},page:{type:"integer",description:"Current page number (zero-based).","x-order":3},page_size:{type:"integer",description:"Number of credentials per page.","x-order":4}}}}}},t=e;module.exports=t;
|