@meshery/schemas 1.3.22 → 1.3.23
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/cloudApi.d.mts +5239 -3023
- package/dist/cloudApi.d.ts +5239 -3023
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/academy/AcademySchema.js +1 -1
- package/dist/constructs/v1beta1/academy/AcademySchema.mjs +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/credential/CredentialSchema.js +8 -8
- package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +8 -8
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +4 -4
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +4 -4
- package/dist/constructs/v1beta1/model/Model.d.ts +586 -2
- package/dist/constructs/v1beta1/model/ModelSchema.js +10 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +10 -2
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +11 -11
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +11 -11
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +6 -6
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +6 -6
- package/dist/constructs/v1beta1/system/System.d.ts +112 -0
- package/dist/constructs/v1beta1/system/SystemSchema.js +1 -1
- package/dist/constructs/v1beta1/system/SystemSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/token/TokenSchema.js +1 -1
- package/dist/constructs/v1beta1/token/TokenSchema.mjs +1 -1
- package/dist/constructs/v1beta1/view/ViewSchema.js +4 -4
- package/dist/constructs/v1beta1/view/ViewSchema.mjs +4 -4
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +4 -4
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +4 -4
- package/dist/constructs/v1beta2/academy/AcademySchema.js +1 -1
- package/dist/constructs/v1beta2/academy/AcademySchema.mjs +1 -1
- package/dist/constructs/v1beta2/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta2/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta2/credential/CredentialSchema.js +6 -6
- package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +6 -6
- package/dist/constructs/v1beta2/design/DesignSchema.js +11 -11
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +11 -11
- package/dist/constructs/v1beta2/model/Model.d.ts +587 -3
- package/dist/constructs/v1beta2/model/ModelSchema.js +10 -2
- package/dist/constructs/v1beta2/model/ModelSchema.mjs +10 -2
- package/dist/constructs/v1beta2/organization/Organization.d.ts +434 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +5 -5
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +5 -5
- package/dist/constructs/v1beta2/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta2/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
- package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
- package/dist/constructs/v1beta2/user/User.d.ts +695 -0
- package/dist/constructs/v1beta2/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta2/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta2/view/ViewSchema.js +4 -4
- package/dist/constructs/v1beta2/view/ViewSchema.mjs +4 -4
- package/dist/constructs/v1beta3/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta3/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta3/connection/Connection.d.ts +173 -1
- package/dist/constructs/v1beta3/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta3/design/Design.d.ts +3569 -2245
- package/dist/constructs/v1beta3/design/DesignSchema.js +56 -12
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +56 -12
- package/dist/constructs/v1beta3/environment/Environment.d.ts +42 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta3/invitation/Invitation.d.ts +188 -1
- package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta3/pattern_resource/PatternResource.d.ts +701 -0
- package/dist/constructs/v1beta3/pattern_resource/PatternResource.js +1 -0
- package/dist/constructs/v1beta3/pattern_resource/PatternResource.mjs +0 -0
- package/dist/constructs/v1beta3/pattern_resource/PatternResourceSchema.d.ts +2 -0
- package/dist/constructs/v1beta3/pattern_resource/PatternResourceSchema.js +78 -0
- package/dist/constructs/v1beta3/pattern_resource/PatternResourceSchema.mjs +78 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +4 -4
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +4 -4
- package/dist/index.d.mts +573 -1
- package/dist/index.d.ts +573 -1
- package/dist/index.js +41 -33
- package/dist/index.mjs +41 -33
- package/dist/mesheryApi.d.mts +905 -734
- package/dist/mesheryApi.d.ts +905 -734
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/api/content/patterns/resource": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Get pattern resources
|
|
16
|
+
* @description Returns a paginated list of pattern resources owned by the
|
|
17
|
+
* authenticated user, optionally filtered by resource identity
|
|
18
|
+
* fields and organization or workspace scope.
|
|
19
|
+
*/
|
|
20
|
+
get: operations["getPatternResources"];
|
|
21
|
+
put?: never;
|
|
22
|
+
/**
|
|
23
|
+
* Save pattern resource
|
|
24
|
+
* @description Creates a new pattern resource when no `id` is supplied, or
|
|
25
|
+
* updates the entry matching the provided `id`. Ownership is
|
|
26
|
+
* derived from the authenticated session; any client-supplied
|
|
27
|
+
* owner is ignored.
|
|
28
|
+
*/
|
|
29
|
+
post: operations["upsertPatternResource"];
|
|
30
|
+
delete?: never;
|
|
31
|
+
options?: never;
|
|
32
|
+
head?: never;
|
|
33
|
+
patch?: never;
|
|
34
|
+
trace?: never;
|
|
35
|
+
};
|
|
36
|
+
"/api/content/patterns/resource/{patternResourceId}": {
|
|
37
|
+
parameters: {
|
|
38
|
+
query?: never;
|
|
39
|
+
header?: never;
|
|
40
|
+
path?: never;
|
|
41
|
+
cookie?: never;
|
|
42
|
+
};
|
|
43
|
+
/** Get pattern resource by ID */
|
|
44
|
+
get: operations["getPatternResource"];
|
|
45
|
+
put?: never;
|
|
46
|
+
post?: never;
|
|
47
|
+
/**
|
|
48
|
+
* Delete pattern resource
|
|
49
|
+
* @description Soft-deletes the pattern resource and returns the deleted
|
|
50
|
+
* entity. The live meshery-cloud handler responds 200 with the
|
|
51
|
+
* deleted resource body (not 204), so the deleted record's
|
|
52
|
+
* identity remains available to the caller.
|
|
53
|
+
*/
|
|
54
|
+
delete: operations["deletePatternResource"];
|
|
55
|
+
options?: never;
|
|
56
|
+
head?: never;
|
|
57
|
+
patch?: never;
|
|
58
|
+
trace?: never;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export type webhooks = Record<string, never>;
|
|
62
|
+
export interface components {
|
|
63
|
+
schemas: {
|
|
64
|
+
/**
|
|
65
|
+
* Pattern Resource Schema
|
|
66
|
+
* @description Server-returned Meshery pattern resource as persisted by meshery-cloud
|
|
67
|
+
* (`meshery_pattern_resources` table). A pattern resource records the
|
|
68
|
+
* Kubernetes-addressable identity (name, namespace, type, OAM type) of a
|
|
69
|
+
* resource provisioned from a design, and is used by the design engine to
|
|
70
|
+
* deduplicate provisioned resources. This v1beta3 shape supersedes the
|
|
71
|
+
* legacy v1alpha2 snake_case wire form and corrects its `Namepace` typo
|
|
72
|
+
* to `namespace`.
|
|
73
|
+
*/
|
|
74
|
+
MesheryPatternResource: {
|
|
75
|
+
/**
|
|
76
|
+
* Format: uuid
|
|
77
|
+
* @description Server-generated pattern resource ID.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* Format: uuid
|
|
82
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
83
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
84
|
+
* production schema dump); the wire identifier stays camelCase
|
|
85
|
+
* `userId` per the identifier-naming contract.
|
|
86
|
+
*/
|
|
87
|
+
userId: string;
|
|
88
|
+
/** @description Name of the provisioned resource. */
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
92
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
93
|
+
*/
|
|
94
|
+
namespace: string;
|
|
95
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
96
|
+
type: string;
|
|
97
|
+
/**
|
|
98
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
99
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
100
|
+
* `scope`).
|
|
101
|
+
*/
|
|
102
|
+
oamType: string;
|
|
103
|
+
/**
|
|
104
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
105
|
+
* removed so the design engine can reconcile prior provisions.
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
deleted: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Format: date-time
|
|
111
|
+
* @description Timestamp of pattern resource creation.
|
|
112
|
+
*/
|
|
113
|
+
createdAt: string;
|
|
114
|
+
/**
|
|
115
|
+
* Format: date-time
|
|
116
|
+
* @description Timestamp of last pattern resource modification.
|
|
117
|
+
*/
|
|
118
|
+
updatedAt: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @description Payload for creating or updating a pattern resource via
|
|
122
|
+
* `POST /api/content/patterns/resource`. Contains only
|
|
123
|
+
* client-settable fields; the owning `userId` (derived from the
|
|
124
|
+
* authenticated session), the `deleted` marker, and the
|
|
125
|
+
* server-generated `createdAt` / `updatedAt` timestamps are
|
|
126
|
+
* intentionally excluded.
|
|
127
|
+
*/
|
|
128
|
+
MesheryPatternResourcePayload: {
|
|
129
|
+
/**
|
|
130
|
+
* Format: uuid
|
|
131
|
+
* @description Existing pattern resource ID for updates; omit on create.
|
|
132
|
+
*/
|
|
133
|
+
id?: string;
|
|
134
|
+
/** @description Name of the provisioned resource. */
|
|
135
|
+
name: string;
|
|
136
|
+
/** @description Kubernetes namespace the resource was provisioned into. */
|
|
137
|
+
namespace: string;
|
|
138
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
139
|
+
type: string;
|
|
140
|
+
/** @description OAM categorization of the resource (e.g. workload, trait, scope). */
|
|
141
|
+
oamType: string;
|
|
142
|
+
};
|
|
143
|
+
/** @description Paginated collection of pattern resources. */
|
|
144
|
+
MesheryPatternResourcePage: {
|
|
145
|
+
/** @description Current page number of the result set. */
|
|
146
|
+
page?: number;
|
|
147
|
+
/** @description Number of items per page. */
|
|
148
|
+
pageSize?: number;
|
|
149
|
+
/** @description Total number of items available. */
|
|
150
|
+
totalCount?: number;
|
|
151
|
+
/** @description Pattern resources included on this page of results. */
|
|
152
|
+
resources?: {
|
|
153
|
+
/**
|
|
154
|
+
* Format: uuid
|
|
155
|
+
* @description Server-generated pattern resource ID.
|
|
156
|
+
*/
|
|
157
|
+
id: string;
|
|
158
|
+
/**
|
|
159
|
+
* Format: uuid
|
|
160
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
161
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
162
|
+
* production schema dump); the wire identifier stays camelCase
|
|
163
|
+
* `userId` per the identifier-naming contract.
|
|
164
|
+
*/
|
|
165
|
+
userId: string;
|
|
166
|
+
/** @description Name of the provisioned resource. */
|
|
167
|
+
name: string;
|
|
168
|
+
/**
|
|
169
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
170
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
171
|
+
*/
|
|
172
|
+
namespace: string;
|
|
173
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
174
|
+
type: string;
|
|
175
|
+
/**
|
|
176
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
177
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
178
|
+
* `scope`).
|
|
179
|
+
*/
|
|
180
|
+
oamType: string;
|
|
181
|
+
/**
|
|
182
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
183
|
+
* removed so the design engine can reconcile prior provisions.
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
deleted: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Format: date-time
|
|
189
|
+
* @description Timestamp of pattern resource creation.
|
|
190
|
+
*/
|
|
191
|
+
createdAt: string;
|
|
192
|
+
/**
|
|
193
|
+
* Format: date-time
|
|
194
|
+
* @description Timestamp of last pattern resource modification.
|
|
195
|
+
*/
|
|
196
|
+
updatedAt: string;
|
|
197
|
+
}[];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
responses: {
|
|
201
|
+
/** @description Invalid request body or request param */
|
|
202
|
+
400: {
|
|
203
|
+
headers: {
|
|
204
|
+
[name: string]: unknown;
|
|
205
|
+
};
|
|
206
|
+
content: {
|
|
207
|
+
"text/plain": string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
211
|
+
401: {
|
|
212
|
+
headers: {
|
|
213
|
+
[name: string]: unknown;
|
|
214
|
+
};
|
|
215
|
+
content: {
|
|
216
|
+
"text/plain": string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
/** @description Result not found */
|
|
220
|
+
404: {
|
|
221
|
+
headers: {
|
|
222
|
+
[name: string]: unknown;
|
|
223
|
+
};
|
|
224
|
+
content: {
|
|
225
|
+
"text/plain": string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
/** @description Internal server error */
|
|
229
|
+
500: {
|
|
230
|
+
headers: {
|
|
231
|
+
[name: string]: unknown;
|
|
232
|
+
};
|
|
233
|
+
content: {
|
|
234
|
+
"text/plain": string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
parameters: {
|
|
239
|
+
/** @description Pattern resource ID */
|
|
240
|
+
patternResourceId: string;
|
|
241
|
+
/** @description Get responses by page */
|
|
242
|
+
page: string;
|
|
243
|
+
/** @description Number of items per page (canonical camelCase form). */
|
|
244
|
+
pageSize: number;
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated
|
|
247
|
+
* @description Number of items per page. Deprecated alias of pageSize kept for
|
|
248
|
+
* the meshery server's remote provider, which still sends the
|
|
249
|
+
* lowercase form; canonical `pageSize` wins when both are present.
|
|
250
|
+
*/
|
|
251
|
+
pagesize: number;
|
|
252
|
+
/** @description Get responses that match search param value */
|
|
253
|
+
search: string;
|
|
254
|
+
/** @description Get ordered responses */
|
|
255
|
+
order: string;
|
|
256
|
+
};
|
|
257
|
+
requestBodies: never;
|
|
258
|
+
headers: never;
|
|
259
|
+
pathItems: never;
|
|
260
|
+
}
|
|
261
|
+
export type $defs = Record<string, never>;
|
|
262
|
+
export interface operations {
|
|
263
|
+
getPatternResources: {
|
|
264
|
+
parameters: {
|
|
265
|
+
query?: {
|
|
266
|
+
/** @description Get responses by page */
|
|
267
|
+
page?: string;
|
|
268
|
+
/** @description Number of items per page (canonical camelCase form). */
|
|
269
|
+
pageSize?: number;
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated
|
|
272
|
+
* @description Number of items per page. Deprecated alias of pageSize kept for
|
|
273
|
+
* the meshery server's remote provider, which still sends the
|
|
274
|
+
* lowercase form; canonical `pageSize` wins when both are present.
|
|
275
|
+
*/
|
|
276
|
+
pagesize?: number;
|
|
277
|
+
/** @description Get responses that match search param value */
|
|
278
|
+
search?: string;
|
|
279
|
+
/** @description Get ordered responses */
|
|
280
|
+
order?: string;
|
|
281
|
+
/** @description Filter by resource name. */
|
|
282
|
+
name?: string;
|
|
283
|
+
/** @description Filter by Kubernetes namespace. */
|
|
284
|
+
namespace?: string;
|
|
285
|
+
/** @description Filter by resource type discriminator. */
|
|
286
|
+
type?: string;
|
|
287
|
+
/** @description Filter by OAM categorization (e.g. workload, trait, scope). */
|
|
288
|
+
oamType?: string;
|
|
289
|
+
/** @description Scope results to an organization. */
|
|
290
|
+
orgId?: string;
|
|
291
|
+
/** @description Scope results to a workspace. */
|
|
292
|
+
workspaceId?: string;
|
|
293
|
+
};
|
|
294
|
+
header?: never;
|
|
295
|
+
path?: never;
|
|
296
|
+
cookie?: never;
|
|
297
|
+
};
|
|
298
|
+
requestBody?: never;
|
|
299
|
+
responses: {
|
|
300
|
+
/** @description Pattern resources page */
|
|
301
|
+
200: {
|
|
302
|
+
headers: {
|
|
303
|
+
[name: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
content: {
|
|
306
|
+
"application/json": {
|
|
307
|
+
/** @description Current page number of the result set. */
|
|
308
|
+
page?: number;
|
|
309
|
+
/** @description Number of items per page. */
|
|
310
|
+
pageSize?: number;
|
|
311
|
+
/** @description Total number of items available. */
|
|
312
|
+
totalCount?: number;
|
|
313
|
+
/** @description Pattern resources included on this page of results. */
|
|
314
|
+
resources?: {
|
|
315
|
+
/**
|
|
316
|
+
* Format: uuid
|
|
317
|
+
* @description Server-generated pattern resource ID.
|
|
318
|
+
*/
|
|
319
|
+
id: string;
|
|
320
|
+
/**
|
|
321
|
+
* Format: uuid
|
|
322
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
323
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
324
|
+
* production schema dump); the wire identifier stays camelCase
|
|
325
|
+
* `userId` per the identifier-naming contract.
|
|
326
|
+
*/
|
|
327
|
+
userId: string;
|
|
328
|
+
/** @description Name of the provisioned resource. */
|
|
329
|
+
name: string;
|
|
330
|
+
/**
|
|
331
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
332
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
333
|
+
*/
|
|
334
|
+
namespace: string;
|
|
335
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
336
|
+
type: string;
|
|
337
|
+
/**
|
|
338
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
339
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
340
|
+
* `scope`).
|
|
341
|
+
*/
|
|
342
|
+
oamType: string;
|
|
343
|
+
/**
|
|
344
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
345
|
+
* removed so the design engine can reconcile prior provisions.
|
|
346
|
+
* @default false
|
|
347
|
+
*/
|
|
348
|
+
deleted: boolean;
|
|
349
|
+
/**
|
|
350
|
+
* Format: date-time
|
|
351
|
+
* @description Timestamp of pattern resource creation.
|
|
352
|
+
*/
|
|
353
|
+
createdAt: string;
|
|
354
|
+
/**
|
|
355
|
+
* Format: date-time
|
|
356
|
+
* @description Timestamp of last pattern resource modification.
|
|
357
|
+
*/
|
|
358
|
+
updatedAt: string;
|
|
359
|
+
}[];
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
364
|
+
401: {
|
|
365
|
+
headers: {
|
|
366
|
+
[name: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
content: {
|
|
369
|
+
"text/plain": string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/** @description Internal server error */
|
|
373
|
+
500: {
|
|
374
|
+
headers: {
|
|
375
|
+
[name: string]: unknown;
|
|
376
|
+
};
|
|
377
|
+
content: {
|
|
378
|
+
"text/plain": string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
upsertPatternResource: {
|
|
384
|
+
parameters: {
|
|
385
|
+
query?: never;
|
|
386
|
+
header?: never;
|
|
387
|
+
path?: never;
|
|
388
|
+
cookie?: never;
|
|
389
|
+
};
|
|
390
|
+
requestBody: {
|
|
391
|
+
content: {
|
|
392
|
+
"application/json": {
|
|
393
|
+
/**
|
|
394
|
+
* Format: uuid
|
|
395
|
+
* @description Existing pattern resource ID for updates; omit on create.
|
|
396
|
+
*/
|
|
397
|
+
id?: string;
|
|
398
|
+
/** @description Name of the provisioned resource. */
|
|
399
|
+
name: string;
|
|
400
|
+
/** @description Kubernetes namespace the resource was provisioned into. */
|
|
401
|
+
namespace: string;
|
|
402
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
403
|
+
type: string;
|
|
404
|
+
/** @description OAM categorization of the resource (e.g. workload, trait, scope). */
|
|
405
|
+
oamType: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
responses: {
|
|
410
|
+
/** @description Pattern resource saved */
|
|
411
|
+
200: {
|
|
412
|
+
headers: {
|
|
413
|
+
[name: string]: unknown;
|
|
414
|
+
};
|
|
415
|
+
content: {
|
|
416
|
+
"application/json": {
|
|
417
|
+
/**
|
|
418
|
+
* Format: uuid
|
|
419
|
+
* @description Server-generated pattern resource ID.
|
|
420
|
+
*/
|
|
421
|
+
id: string;
|
|
422
|
+
/**
|
|
423
|
+
* Format: uuid
|
|
424
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
425
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
426
|
+
* production schema dump); the wire identifier stays camelCase
|
|
427
|
+
* `userId` per the identifier-naming contract.
|
|
428
|
+
*/
|
|
429
|
+
userId: string;
|
|
430
|
+
/** @description Name of the provisioned resource. */
|
|
431
|
+
name: string;
|
|
432
|
+
/**
|
|
433
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
434
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
435
|
+
*/
|
|
436
|
+
namespace: string;
|
|
437
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
438
|
+
type: string;
|
|
439
|
+
/**
|
|
440
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
441
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
442
|
+
* `scope`).
|
|
443
|
+
*/
|
|
444
|
+
oamType: string;
|
|
445
|
+
/**
|
|
446
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
447
|
+
* removed so the design engine can reconcile prior provisions.
|
|
448
|
+
* @default false
|
|
449
|
+
*/
|
|
450
|
+
deleted: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Format: date-time
|
|
453
|
+
* @description Timestamp of pattern resource creation.
|
|
454
|
+
*/
|
|
455
|
+
createdAt: string;
|
|
456
|
+
/**
|
|
457
|
+
* Format: date-time
|
|
458
|
+
* @description Timestamp of last pattern resource modification.
|
|
459
|
+
*/
|
|
460
|
+
updatedAt: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
/** @description Invalid request body or request param */
|
|
465
|
+
400: {
|
|
466
|
+
headers: {
|
|
467
|
+
[name: string]: unknown;
|
|
468
|
+
};
|
|
469
|
+
content: {
|
|
470
|
+
"text/plain": string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
474
|
+
401: {
|
|
475
|
+
headers: {
|
|
476
|
+
[name: string]: unknown;
|
|
477
|
+
};
|
|
478
|
+
content: {
|
|
479
|
+
"text/plain": string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
/** @description Internal server error */
|
|
483
|
+
500: {
|
|
484
|
+
headers: {
|
|
485
|
+
[name: string]: unknown;
|
|
486
|
+
};
|
|
487
|
+
content: {
|
|
488
|
+
"text/plain": string;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
getPatternResource: {
|
|
494
|
+
parameters: {
|
|
495
|
+
query?: never;
|
|
496
|
+
header?: never;
|
|
497
|
+
path: {
|
|
498
|
+
/** @description Pattern resource ID */
|
|
499
|
+
patternResourceId: string;
|
|
500
|
+
};
|
|
501
|
+
cookie?: never;
|
|
502
|
+
};
|
|
503
|
+
requestBody?: never;
|
|
504
|
+
responses: {
|
|
505
|
+
/** @description Pattern resource response */
|
|
506
|
+
200: {
|
|
507
|
+
headers: {
|
|
508
|
+
[name: string]: unknown;
|
|
509
|
+
};
|
|
510
|
+
content: {
|
|
511
|
+
"application/json": {
|
|
512
|
+
/**
|
|
513
|
+
* Format: uuid
|
|
514
|
+
* @description Server-generated pattern resource ID.
|
|
515
|
+
*/
|
|
516
|
+
id: string;
|
|
517
|
+
/**
|
|
518
|
+
* Format: uuid
|
|
519
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
520
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
521
|
+
* production schema dump); the wire identifier stays camelCase
|
|
522
|
+
* `userId` per the identifier-naming contract.
|
|
523
|
+
*/
|
|
524
|
+
userId: string;
|
|
525
|
+
/** @description Name of the provisioned resource. */
|
|
526
|
+
name: string;
|
|
527
|
+
/**
|
|
528
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
529
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
530
|
+
*/
|
|
531
|
+
namespace: string;
|
|
532
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
533
|
+
type: string;
|
|
534
|
+
/**
|
|
535
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
536
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
537
|
+
* `scope`).
|
|
538
|
+
*/
|
|
539
|
+
oamType: string;
|
|
540
|
+
/**
|
|
541
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
542
|
+
* removed so the design engine can reconcile prior provisions.
|
|
543
|
+
* @default false
|
|
544
|
+
*/
|
|
545
|
+
deleted: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Format: date-time
|
|
548
|
+
* @description Timestamp of pattern resource creation.
|
|
549
|
+
*/
|
|
550
|
+
createdAt: string;
|
|
551
|
+
/**
|
|
552
|
+
* Format: date-time
|
|
553
|
+
* @description Timestamp of last pattern resource modification.
|
|
554
|
+
*/
|
|
555
|
+
updatedAt: string;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
/** @description Invalid request body or request param */
|
|
560
|
+
400: {
|
|
561
|
+
headers: {
|
|
562
|
+
[name: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
content: {
|
|
565
|
+
"text/plain": string;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
569
|
+
401: {
|
|
570
|
+
headers: {
|
|
571
|
+
[name: string]: unknown;
|
|
572
|
+
};
|
|
573
|
+
content: {
|
|
574
|
+
"text/plain": string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
/** @description Result not found */
|
|
578
|
+
404: {
|
|
579
|
+
headers: {
|
|
580
|
+
[name: string]: unknown;
|
|
581
|
+
};
|
|
582
|
+
content: {
|
|
583
|
+
"text/plain": string;
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
/** @description Internal server error */
|
|
587
|
+
500: {
|
|
588
|
+
headers: {
|
|
589
|
+
[name: string]: unknown;
|
|
590
|
+
};
|
|
591
|
+
content: {
|
|
592
|
+
"text/plain": string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
deletePatternResource: {
|
|
598
|
+
parameters: {
|
|
599
|
+
query?: never;
|
|
600
|
+
header?: never;
|
|
601
|
+
path: {
|
|
602
|
+
/** @description Pattern resource ID */
|
|
603
|
+
patternResourceId: string;
|
|
604
|
+
};
|
|
605
|
+
cookie?: never;
|
|
606
|
+
};
|
|
607
|
+
requestBody?: never;
|
|
608
|
+
responses: {
|
|
609
|
+
/** @description Deleted pattern resource */
|
|
610
|
+
200: {
|
|
611
|
+
headers: {
|
|
612
|
+
[name: string]: unknown;
|
|
613
|
+
};
|
|
614
|
+
content: {
|
|
615
|
+
"application/json": {
|
|
616
|
+
/**
|
|
617
|
+
* Format: uuid
|
|
618
|
+
* @description Server-generated pattern resource ID.
|
|
619
|
+
*/
|
|
620
|
+
id: string;
|
|
621
|
+
/**
|
|
622
|
+
* Format: uuid
|
|
623
|
+
* @description Owning user ID. Persisted in the `owner` column of the
|
|
624
|
+
* `meshery_pattern_resources` table (confirmed against the
|
|
625
|
+
* production schema dump); the wire identifier stays camelCase
|
|
626
|
+
* `userId` per the identifier-naming contract.
|
|
627
|
+
*/
|
|
628
|
+
userId: string;
|
|
629
|
+
/** @description Name of the provisioned resource. */
|
|
630
|
+
name: string;
|
|
631
|
+
/**
|
|
632
|
+
* @description Kubernetes namespace the resource was provisioned into. Corrects
|
|
633
|
+
* the legacy v1alpha2 `Namepace` typo.
|
|
634
|
+
*/
|
|
635
|
+
namespace: string;
|
|
636
|
+
/** @description Resource type discriminator (e.g. the Kubernetes kind). */
|
|
637
|
+
type: string;
|
|
638
|
+
/**
|
|
639
|
+
* @description OAM (Open Application Model) categorization of the resource,
|
|
640
|
+
* stored in the `oam_type` column (e.g. `workload`, `trait`,
|
|
641
|
+
* `scope`).
|
|
642
|
+
*/
|
|
643
|
+
oamType: string;
|
|
644
|
+
/**
|
|
645
|
+
* @description Soft-delete marker. Server-managed; rows are flagged rather than
|
|
646
|
+
* removed so the design engine can reconcile prior provisions.
|
|
647
|
+
* @default false
|
|
648
|
+
*/
|
|
649
|
+
deleted: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* Format: date-time
|
|
652
|
+
* @description Timestamp of pattern resource creation.
|
|
653
|
+
*/
|
|
654
|
+
createdAt: string;
|
|
655
|
+
/**
|
|
656
|
+
* Format: date-time
|
|
657
|
+
* @description Timestamp of last pattern resource modification.
|
|
658
|
+
*/
|
|
659
|
+
updatedAt: string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
/** @description Invalid request body or request param */
|
|
664
|
+
400: {
|
|
665
|
+
headers: {
|
|
666
|
+
[name: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
content: {
|
|
669
|
+
"text/plain": string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
673
|
+
401: {
|
|
674
|
+
headers: {
|
|
675
|
+
[name: string]: unknown;
|
|
676
|
+
};
|
|
677
|
+
content: {
|
|
678
|
+
"text/plain": string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
/** @description Result not found */
|
|
682
|
+
404: {
|
|
683
|
+
headers: {
|
|
684
|
+
[name: string]: unknown;
|
|
685
|
+
};
|
|
686
|
+
content: {
|
|
687
|
+
"text/plain": string;
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
/** @description Internal server error */
|
|
691
|
+
500: {
|
|
692
|
+
headers: {
|
|
693
|
+
[name: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
content: {
|
|
696
|
+
"text/plain": string;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|