@meshery/schemas 1.3.44 → 1.3.46
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 +882 -4
- package/dist/cloudApi.d.ts +882 -4
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +1424 -3
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +49 -1
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +49 -1
- package/dist/constructs/v1beta2/design/Design.d.ts +1557 -47
- package/dist/constructs/v1beta2/design/DesignSchema.js +137 -45
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +137 -45
- package/dist/constructs/v1beta2/relationship/Relationship.d.ts +34 -17
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.js +34 -17
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.mjs +34 -17
- package/dist/constructs/v1beta3/design/Design.d.ts +371 -7
- package/dist/constructs/v1beta3/design/DesignSchema.js +14 -5
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +14 -5
- package/dist/constructs/v1beta3/relationship/Relationship.d.ts +685 -100
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +468 -18
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +468 -18
- package/dist/constructs/v1beta3/subscription/Subscription.d.ts +436 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +1 -1
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +1 -1
- package/dist/index.d.mts +74 -37
- package/dist/index.d.ts +74 -37
- package/dist/index.js +226 -69
- package/dist/index.mjs +226 -69
- package/dist/mesheryApi.d.mts +235 -3
- package/dist/mesheryApi.d.ts +235 -3
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/dist/permissions.d.mts +71 -1
- package/dist/permissions.d.ts +71 -1
- package/dist/permissions.js +1 -1
- package/dist/permissions.mjs +1 -1
- package/package.json +2 -2
|
@@ -1456,12 +1456,13 @@ export interface components {
|
|
|
1456
1456
|
* merge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.
|
|
1457
1457
|
* strategic: specific to Kubernetes and understands the structure of Kubernetes objects.
|
|
1458
1458
|
* remove: Removes a value.
|
|
1459
|
+
* replace: Replaces the value at the target location.
|
|
1459
1460
|
* copy: Copies a value from one location to another.
|
|
1460
1461
|
* move: Moves a value from one location to another.
|
|
1461
1462
|
* test: Tests that a value at the target location is equal to a specified value.
|
|
1462
1463
|
* @enum {string}
|
|
1463
1464
|
*/
|
|
1464
|
-
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "copy" | "move" | "test";
|
|
1465
|
+
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "replace" | "copy" | "move" | "test";
|
|
1465
1466
|
/** @description JSON ref to value from where patch should be applied. */
|
|
1466
1467
|
mutatorRef?: string[][];
|
|
1467
1468
|
mutatedRef?: string[][];
|
|
@@ -1547,12 +1548,13 @@ export interface components {
|
|
|
1547
1548
|
* merge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.
|
|
1548
1549
|
* strategic: specific to Kubernetes and understands the structure of Kubernetes objects.
|
|
1549
1550
|
* remove: Removes a value.
|
|
1551
|
+
* replace: Replaces the value at the target location.
|
|
1550
1552
|
* copy: Copies a value from one location to another.
|
|
1551
1553
|
* move: Moves a value from one location to another.
|
|
1552
1554
|
* test: Tests that a value at the target location is equal to a specified value.
|
|
1553
1555
|
* @enum {string}
|
|
1554
1556
|
*/
|
|
1555
|
-
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "copy" | "move" | "test";
|
|
1557
|
+
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "replace" | "copy" | "move" | "test";
|
|
1556
1558
|
/** @description JSON ref to value from where patch should be applied. */
|
|
1557
1559
|
mutatorRef?: string[][];
|
|
1558
1560
|
mutatedRef?: string[][];
|
|
@@ -1641,12 +1643,13 @@ export interface components {
|
|
|
1641
1643
|
* merge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.
|
|
1642
1644
|
* strategic: specific to Kubernetes and understands the structure of Kubernetes objects.
|
|
1643
1645
|
* remove: Removes a value.
|
|
1646
|
+
* replace: Replaces the value at the target location.
|
|
1644
1647
|
* copy: Copies a value from one location to another.
|
|
1645
1648
|
* move: Moves a value from one location to another.
|
|
1646
1649
|
* test: Tests that a value at the target location is equal to a specified value.
|
|
1647
1650
|
* @enum {string}
|
|
1648
1651
|
*/
|
|
1649
|
-
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "copy" | "move" | "test";
|
|
1652
|
+
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "replace" | "copy" | "move" | "test";
|
|
1650
1653
|
/** @description JSON ref to value from where patch should be applied. */
|
|
1651
1654
|
mutatorRef?: string[][];
|
|
1652
1655
|
mutatedRef?: string[][];
|
|
@@ -1732,12 +1735,13 @@ export interface components {
|
|
|
1732
1735
|
* merge: Combines the values of the target location with the values from the patch. If the target location doesn't exist, it is created.
|
|
1733
1736
|
* strategic: specific to Kubernetes and understands the structure of Kubernetes objects.
|
|
1734
1737
|
* remove: Removes a value.
|
|
1738
|
+
* replace: Replaces the value at the target location.
|
|
1735
1739
|
* copy: Copies a value from one location to another.
|
|
1736
1740
|
* move: Moves a value from one location to another.
|
|
1737
1741
|
* test: Tests that a value at the target location is equal to a specified value.
|
|
1738
1742
|
* @enum {string}
|
|
1739
1743
|
*/
|
|
1740
|
-
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "copy" | "move" | "test";
|
|
1744
|
+
patchStrategy?: "merge" | "strategic" | "add" | "remove" | "replace" | "copy" | "move" | "test";
|
|
1741
1745
|
/** @description JSON ref to value from where patch should be applied. */
|
|
1742
1746
|
mutatorRef?: string[][];
|
|
1743
1747
|
mutatedRef?: string[][];
|
|
@@ -6000,15 +6004,375 @@ export interface operations {
|
|
|
6000
6004
|
};
|
|
6001
6005
|
};
|
|
6002
6006
|
responses: {
|
|
6003
|
-
/** @description Successful
|
|
6007
|
+
/** @description Successful import. The response body is a JSON array of the saved designs, not a message envelope. The import path saves exactly one design, so the array carries a single element and consumers read the imported design as the first element. */
|
|
6004
6008
|
200: {
|
|
6005
6009
|
headers: {
|
|
6006
6010
|
[name: string]: unknown;
|
|
6007
6011
|
};
|
|
6008
6012
|
content: {
|
|
6009
6013
|
"application/json": {
|
|
6010
|
-
|
|
6011
|
-
|
|
6014
|
+
/**
|
|
6015
|
+
* Format: uuid
|
|
6016
|
+
* @description Server-generated design ID.
|
|
6017
|
+
*/
|
|
6018
|
+
id?: string;
|
|
6019
|
+
/** @description Human-readable design name. */
|
|
6020
|
+
name?: string;
|
|
6021
|
+
/** @description Catalog metadata attached to the design when published. */
|
|
6022
|
+
catalogData?: {
|
|
6023
|
+
/** @description Tracks the specific content version that has been made available in the Catalog. */
|
|
6024
|
+
publishedVersion?: string;
|
|
6025
|
+
/** @description Published content is classifed by its support level. Content classes help you understand the origin and expected support level for each piece of content. It is important to note that the level of support may vary within each class, and you should exercise discretion when using community-contributed content. Content produced and fully supported by Meshery maintainers. This represents the highest level of support and is considered the most reliable. Content produced by partners and verified by Meshery maintainers. While not directly maintained by Meshery, it has undergone a verification process to ensure quality and compatibility. Content produced and supported by the respective project or organization responsible for the specific technology. This class offers a level of support from the project maintainers themselves. Content produced and shared by Meshery users. This includes a wide range of content, such as performance profiles, test results, filters, patterns, and applications. Community content may have varying levels of support and reliability. */
|
|
6026
|
+
class?: string & ("official" | "verified" | "reference architecture");
|
|
6027
|
+
/**
|
|
6028
|
+
* Model
|
|
6029
|
+
* @description One or more models associated with this catalog item. For designs, a list of one or more models implicated by components within the design. For models, this is self-referential.
|
|
6030
|
+
*/
|
|
6031
|
+
compatibility: "kubernetes"[];
|
|
6032
|
+
/**
|
|
6033
|
+
* Caveats and Considerations
|
|
6034
|
+
* @description Specific stipulations to consider and known behaviors to be aware of when using this design.
|
|
6035
|
+
*/
|
|
6036
|
+
patternCaveats: string;
|
|
6037
|
+
/**
|
|
6038
|
+
* Description
|
|
6039
|
+
* @description Purpose of the design along with its intended and unintended uses.
|
|
6040
|
+
*/
|
|
6041
|
+
patternInfo: string;
|
|
6042
|
+
/**
|
|
6043
|
+
* Type
|
|
6044
|
+
* @description Categorization of the type of design or operational flow depicted in this design.
|
|
6045
|
+
* @default Deployment
|
|
6046
|
+
* @enum {string}
|
|
6047
|
+
*/
|
|
6048
|
+
type: "Deployment" | "Observability" | "Resiliency" | "Scaling" | "Security" | "Traffic-management" | "Troubleshooting" | "Workloads";
|
|
6049
|
+
/** @description Contains reference to the dark and light mode snapshots of the design. */
|
|
6050
|
+
snapshotURL?: string[];
|
|
6051
|
+
};
|
|
6052
|
+
/**
|
|
6053
|
+
* Format: uuid
|
|
6054
|
+
* @description Owning user ID.
|
|
6055
|
+
*/
|
|
6056
|
+
userId?: string;
|
|
6057
|
+
/** @description Owning user record, joined inline by the catalog list/get handlers when shaping responses. Server-projected from the users table via the design's userId; not a column on the meshery_patterns table itself, so the generated Go field is tagged `db:"-"` to keep it out of ORM column scans. */
|
|
6058
|
+
user?: {
|
|
6059
|
+
/**
|
|
6060
|
+
* Format: uuid
|
|
6061
|
+
* @description Unique identifier for the user
|
|
6062
|
+
*/
|
|
6063
|
+
id: string;
|
|
6064
|
+
/**
|
|
6065
|
+
* @deprecated
|
|
6066
|
+
* @description Legacy IdP-derived identifier. Removed in v1beta3; resolve users by id or email.
|
|
6067
|
+
*/
|
|
6068
|
+
userId: string;
|
|
6069
|
+
/**
|
|
6070
|
+
* @description Authentication provider (e.g., Google, Github)
|
|
6071
|
+
* @example [
|
|
6072
|
+
* "local",
|
|
6073
|
+
* "github",
|
|
6074
|
+
* "google",
|
|
6075
|
+
* "twitter"
|
|
6076
|
+
* ]
|
|
6077
|
+
*/
|
|
6078
|
+
provider: string;
|
|
6079
|
+
/**
|
|
6080
|
+
* Format: email
|
|
6081
|
+
* @description User's email address
|
|
6082
|
+
*/
|
|
6083
|
+
email: string;
|
|
6084
|
+
/** @description User's first name */
|
|
6085
|
+
firstName: string;
|
|
6086
|
+
/** @description User's last name */
|
|
6087
|
+
lastName: string;
|
|
6088
|
+
/**
|
|
6089
|
+
* Format: uri
|
|
6090
|
+
* @description URL to user's avatar image
|
|
6091
|
+
*/
|
|
6092
|
+
avatarUrl?: string;
|
|
6093
|
+
/**
|
|
6094
|
+
* @description User account status
|
|
6095
|
+
* @enum {string}
|
|
6096
|
+
*/
|
|
6097
|
+
status: "active" | "inactive" | "pending" | "anonymous";
|
|
6098
|
+
/**
|
|
6099
|
+
* @description User's biography or description
|
|
6100
|
+
* @default
|
|
6101
|
+
*/
|
|
6102
|
+
bio: string;
|
|
6103
|
+
/** @description User's country information stored as JSONB */
|
|
6104
|
+
country?: {
|
|
6105
|
+
[key: string]: unknown;
|
|
6106
|
+
};
|
|
6107
|
+
/** @description User's region information stored as JSONB */
|
|
6108
|
+
region?: {
|
|
6109
|
+
[key: string]: unknown;
|
|
6110
|
+
};
|
|
6111
|
+
/** @description User preferences stored as JSONB */
|
|
6112
|
+
preferences?: {
|
|
6113
|
+
/** @description The mesh adapters of the preference. */
|
|
6114
|
+
meshAdapters?: Record<string, never>[];
|
|
6115
|
+
grafana?: {
|
|
6116
|
+
/** @description Grafana URL for the user configuration. */
|
|
6117
|
+
grafanaUrl?: string;
|
|
6118
|
+
/** @description Grafana API key for the user configuration. */
|
|
6119
|
+
grafanaApiKey?: string;
|
|
6120
|
+
/** @description Selected Grafana board configurations for the user. */
|
|
6121
|
+
selectedBoardsConfigs?: {
|
|
6122
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
6123
|
+
board?: Record<string, never>;
|
|
6124
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
6125
|
+
panels?: Record<string, never>[];
|
|
6126
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
6127
|
+
templateVars?: string[];
|
|
6128
|
+
}[];
|
|
6129
|
+
};
|
|
6130
|
+
prometheus?: {
|
|
6131
|
+
/** @description The prometheus URL of the prometheus. */
|
|
6132
|
+
prometheusUrl?: string;
|
|
6133
|
+
/** @description The selected prometheus boards configs of the prometheus. */
|
|
6134
|
+
selectedPrometheusBoardsConfigs?: {
|
|
6135
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
6136
|
+
board?: Record<string, never>;
|
|
6137
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
6138
|
+
panels?: Record<string, never>[];
|
|
6139
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
6140
|
+
templateVars?: string[];
|
|
6141
|
+
}[];
|
|
6142
|
+
};
|
|
6143
|
+
loadTestPrefs?: {
|
|
6144
|
+
/** @description Concurrent requests */
|
|
6145
|
+
c?: number;
|
|
6146
|
+
/** @description Queries per second */
|
|
6147
|
+
qps?: number;
|
|
6148
|
+
/** @description Duration */
|
|
6149
|
+
t?: string;
|
|
6150
|
+
/** @description Load generator */
|
|
6151
|
+
gen?: string;
|
|
6152
|
+
};
|
|
6153
|
+
/** @description The anonymous usage stats of the preference. */
|
|
6154
|
+
anonymousUsageStats: boolean;
|
|
6155
|
+
/** @description The anonymous perf results of the preference. */
|
|
6156
|
+
anonymousPerfResults: boolean;
|
|
6157
|
+
/**
|
|
6158
|
+
* Format: date-time
|
|
6159
|
+
* @description Timestamp of when the resource was last updated.
|
|
6160
|
+
*/
|
|
6161
|
+
updatedAt: string;
|
|
6162
|
+
/** @description The dashboard preferences of the preference. */
|
|
6163
|
+
dashboardPreferences: {
|
|
6164
|
+
[key: string]: unknown;
|
|
6165
|
+
};
|
|
6166
|
+
/**
|
|
6167
|
+
* Format: uuid
|
|
6168
|
+
* @description ID of the associated selectedOrganization.
|
|
6169
|
+
*/
|
|
6170
|
+
selectedOrganizationId: string;
|
|
6171
|
+
/** @description The selected workspace for organizations of the preference. */
|
|
6172
|
+
selectedWorkspaceForOrganizations: {
|
|
6173
|
+
[key: string]: string;
|
|
6174
|
+
};
|
|
6175
|
+
/** @description The users extension preferences of the preference. */
|
|
6176
|
+
usersExtensionPreferences: {
|
|
6177
|
+
[key: string]: unknown;
|
|
6178
|
+
};
|
|
6179
|
+
/** @description The remote provider preferences of the preference. */
|
|
6180
|
+
remoteProviderPreferences: {
|
|
6181
|
+
[key: string]: unknown;
|
|
6182
|
+
};
|
|
6183
|
+
};
|
|
6184
|
+
/**
|
|
6185
|
+
* Format: date-time
|
|
6186
|
+
* @description Timestamp when user accepted terms and conditions
|
|
6187
|
+
*/
|
|
6188
|
+
acceptedTermsAt?: string;
|
|
6189
|
+
/**
|
|
6190
|
+
* Format: date-time
|
|
6191
|
+
* @description Timestamp of user's first login
|
|
6192
|
+
*/
|
|
6193
|
+
firstLoginTime?: string;
|
|
6194
|
+
/**
|
|
6195
|
+
* Format: date-time
|
|
6196
|
+
* @description Timestamp of user's most recent login
|
|
6197
|
+
*/
|
|
6198
|
+
lastLoginTime: string;
|
|
6199
|
+
/**
|
|
6200
|
+
* Format: date-time
|
|
6201
|
+
* @description Timestamp when the user record was created
|
|
6202
|
+
*/
|
|
6203
|
+
createdAt: string;
|
|
6204
|
+
/**
|
|
6205
|
+
* Format: date-time
|
|
6206
|
+
* @description Timestamp when the user record was last updated
|
|
6207
|
+
*/
|
|
6208
|
+
updatedAt: string;
|
|
6209
|
+
/** @description Various online profiles associated with the user account */
|
|
6210
|
+
socials?: {
|
|
6211
|
+
/** @description The site of the social. */
|
|
6212
|
+
site: string;
|
|
6213
|
+
/**
|
|
6214
|
+
* Format: uri
|
|
6215
|
+
* @description The link of the social.
|
|
6216
|
+
*/
|
|
6217
|
+
link: string;
|
|
6218
|
+
}[];
|
|
6219
|
+
/**
|
|
6220
|
+
* Format: date-time
|
|
6221
|
+
* @description Timestamp when the user record was soft-deleted (null if not deleted)
|
|
6222
|
+
*/
|
|
6223
|
+
deletedAt: string | null;
|
|
6224
|
+
/**
|
|
6225
|
+
* @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
|
|
6226
|
+
* @example [
|
|
6227
|
+
* "organization admin",
|
|
6228
|
+
* "user"
|
|
6229
|
+
* ]
|
|
6230
|
+
*/
|
|
6231
|
+
roleNames?: string[];
|
|
6232
|
+
/** @description Teams the user belongs to with role information */
|
|
6233
|
+
teams?: {
|
|
6234
|
+
/** @description Team memberships for the user with their assigned roles. */
|
|
6235
|
+
teamsWithRoles?: {
|
|
6236
|
+
/**
|
|
6237
|
+
* Format: uuid
|
|
6238
|
+
* @description Unique identifier of the team.
|
|
6239
|
+
*/
|
|
6240
|
+
id: string;
|
|
6241
|
+
/** @description Name of the team. */
|
|
6242
|
+
name: string;
|
|
6243
|
+
/** @description Human readable description of the team. */
|
|
6244
|
+
description?: string;
|
|
6245
|
+
/**
|
|
6246
|
+
* Format: uuid
|
|
6247
|
+
* @description Identifier of the team owner.
|
|
6248
|
+
*/
|
|
6249
|
+
owner?: string;
|
|
6250
|
+
/** @description Free-form metadata associated with the team. */
|
|
6251
|
+
metadata?: {
|
|
6252
|
+
[key: string]: unknown;
|
|
6253
|
+
};
|
|
6254
|
+
/**
|
|
6255
|
+
* Format: date-time
|
|
6256
|
+
* @description Timestamp when the team was created.
|
|
6257
|
+
*/
|
|
6258
|
+
createdAt?: string;
|
|
6259
|
+
/**
|
|
6260
|
+
* Format: date-time
|
|
6261
|
+
* @description Timestamp when the team was last updated.
|
|
6262
|
+
*/
|
|
6263
|
+
updatedAt?: string;
|
|
6264
|
+
/**
|
|
6265
|
+
* Format: date-time
|
|
6266
|
+
* @description Timestamp when the team was soft-deleted (null if not deleted).
|
|
6267
|
+
*/
|
|
6268
|
+
deletedAt?: string | null;
|
|
6269
|
+
/** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
|
|
6270
|
+
roleNames: string[];
|
|
6271
|
+
}[];
|
|
6272
|
+
/** @description Total number of team memberships returned for the user. */
|
|
6273
|
+
totalCount?: number;
|
|
6274
|
+
};
|
|
6275
|
+
/** @description Organizations the user belongs to with role information */
|
|
6276
|
+
organizations?: {
|
|
6277
|
+
/** @description Organization memberships for the user with their assigned roles. */
|
|
6278
|
+
organizationsWithRoles?: {
|
|
6279
|
+
/**
|
|
6280
|
+
* Format: uuid
|
|
6281
|
+
* @description Unique identifier of the organization.
|
|
6282
|
+
*/
|
|
6283
|
+
id: string;
|
|
6284
|
+
/** @description Name of the organization. */
|
|
6285
|
+
name: string;
|
|
6286
|
+
/** @description Human readable description of the organization. */
|
|
6287
|
+
description?: string;
|
|
6288
|
+
/** @description Country associated with the organization. */
|
|
6289
|
+
country?: string;
|
|
6290
|
+
/** @description Region associated with the organization. */
|
|
6291
|
+
region?: string;
|
|
6292
|
+
/**
|
|
6293
|
+
* Format: uuid
|
|
6294
|
+
* @description Identifier of the organization owner.
|
|
6295
|
+
*/
|
|
6296
|
+
owner?: string;
|
|
6297
|
+
/**
|
|
6298
|
+
* Format: date-time
|
|
6299
|
+
* @description Timestamp when the organization was created.
|
|
6300
|
+
*/
|
|
6301
|
+
createdAt?: string;
|
|
6302
|
+
/**
|
|
6303
|
+
* Format: date-time
|
|
6304
|
+
* @description Timestamp when the organization was last updated.
|
|
6305
|
+
*/
|
|
6306
|
+
updatedAt?: string;
|
|
6307
|
+
/**
|
|
6308
|
+
* Format: date-time
|
|
6309
|
+
* @description Timestamp when the organization was soft-deleted (null if not deleted).
|
|
6310
|
+
*/
|
|
6311
|
+
deletedAt?: string | null;
|
|
6312
|
+
/** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
|
|
6313
|
+
roleNames: string[];
|
|
6314
|
+
}[];
|
|
6315
|
+
/** @description Total number of organization memberships returned for the user. */
|
|
6316
|
+
totalCount?: number;
|
|
6317
|
+
};
|
|
6318
|
+
} | null;
|
|
6319
|
+
/** @description Optional structured location metadata (branch, host, path, ...). */
|
|
6320
|
+
location?: {
|
|
6321
|
+
[key: string]: string;
|
|
6322
|
+
};
|
|
6323
|
+
/** @description Raw design body as it is persisted in the meshery_patterns table's `pattern_file` column. The wire form is the YAML/JSON string the server stores verbatim; consumers that need the structured form transcode at the boundary by parsing the string into a PatternFile (see #/components/schemas/PatternFile) and marshalling it back when they write. Keeping the wire shape as a string mirrors the column's actual representation and avoids forcing every consumer through the structured-vs- string union that the previous *PatternFile typing implied. */
|
|
6324
|
+
patternFile?: string;
|
|
6325
|
+
/**
|
|
6326
|
+
* @description Visibility scope of the design — controls whether non-owners may read or list it. `private` is owner-only, `public` is readable by anyone in the org, and `published` is visible in the catalog.
|
|
6327
|
+
* @enum {string}
|
|
6328
|
+
*/
|
|
6329
|
+
visibility?: "private" | "public" | "published";
|
|
6330
|
+
/**
|
|
6331
|
+
* @description Discriminator identifying the source format of the design body, persisted in the meshery_patterns table's `source_type` column (nullable; null for legacy rows imported before the column was introduced). For catalog listings the server may also project this field from the attached catalog metadata. Use this field to branch rendering between native Meshery designs and imported Helm charts, Kubernetes manifests, and Docker Compose files.
|
|
6332
|
+
* @enum {string|null}
|
|
6333
|
+
*/
|
|
6334
|
+
designType?: "Design" | "Helm Chart" | "Docker Compose" | "Kubernetes Manifest" | null;
|
|
6335
|
+
/**
|
|
6336
|
+
* Format: byte
|
|
6337
|
+
* @description Raw bytes of the imported source artifact (Helm chart tarball, Kubernetes manifest, Docker Compose file, etc.) preserved in the meshery_patterns table's `source_content` column for non-Meshery-Design imports. Empty / null for native Meshery designs. Server-managed: populated by the import and upload handlers and scrubbed to null on most read responses, so clients should treat this as opaque base64-encoded bytes when it does appear on the wire.
|
|
6338
|
+
*/
|
|
6339
|
+
sourceContent?: string | null;
|
|
6340
|
+
/**
|
|
6341
|
+
* @description Server-aggregated count of views on this design in the catalog. Present on list/catalog responses; server-managed and ignored on writes.
|
|
6342
|
+
* @default 0
|
|
6343
|
+
*/
|
|
6344
|
+
viewCount: number;
|
|
6345
|
+
/**
|
|
6346
|
+
* @description Server-aggregated count of downloads of this design from the catalog. Server-managed and ignored on writes.
|
|
6347
|
+
* @default 0
|
|
6348
|
+
*/
|
|
6349
|
+
downloadCount: number;
|
|
6350
|
+
/**
|
|
6351
|
+
* @description Server-aggregated count of times this design has been cloned from the catalog. Server-managed and ignored on writes.
|
|
6352
|
+
* @default 0
|
|
6353
|
+
*/
|
|
6354
|
+
cloneCount: number;
|
|
6355
|
+
/**
|
|
6356
|
+
* @description Server-aggregated count of deployments originated from this design. Server-managed and ignored on writes.
|
|
6357
|
+
* @default 0
|
|
6358
|
+
*/
|
|
6359
|
+
deploymentCount: number;
|
|
6360
|
+
/**
|
|
6361
|
+
* @description Server-aggregated count of share events for this design. Server-managed and ignored on writes.
|
|
6362
|
+
* @default 0
|
|
6363
|
+
*/
|
|
6364
|
+
shareCount: number;
|
|
6365
|
+
/**
|
|
6366
|
+
* Format: date-time
|
|
6367
|
+
* @description Timestamp of design creation.
|
|
6368
|
+
*/
|
|
6369
|
+
createdAt?: string;
|
|
6370
|
+
/**
|
|
6371
|
+
* Format: date-time
|
|
6372
|
+
* @description Timestamp of last design modification.
|
|
6373
|
+
*/
|
|
6374
|
+
updatedAt?: string;
|
|
6375
|
+
}[];
|
|
6012
6376
|
};
|
|
6013
6377
|
};
|
|
6014
6378
|
/** @description Invalid request format */
|