@meshery/schemas 1.3.64 → 1.3.66

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.
Files changed (36) hide show
  1. package/dist/cloudApi.d.mts +8856 -5010
  2. package/dist/cloudApi.d.ts +8856 -5010
  3. package/dist/cloudApi.js +1 -1
  4. package/dist/cloudApi.mjs +1 -1
  5. package/dist/constructs/v1alpha1/core/Core.d.ts +16 -0
  6. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  7. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  8. package/dist/constructs/v1beta2/core/Core.d.ts +154 -0
  9. package/dist/constructs/v1beta2/core/CoreSchema.js +1 -1
  10. package/dist/constructs/v1beta2/core/CoreSchema.mjs +1 -1
  11. package/dist/constructs/v1beta3/connection/Connection.d.ts +71 -2
  12. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +1 -1
  13. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +1 -1
  14. package/dist/constructs/v1beta3/design/Design.d.ts +879 -83
  15. package/dist/constructs/v1beta3/design/DesignSchema.js +38 -14
  16. package/dist/constructs/v1beta3/design/DesignSchema.mjs +38 -14
  17. package/dist/constructs/v1beta3/event/Event.d.ts +50 -2
  18. package/dist/constructs/v1beta3/event/EventSchema.js +1 -1
  19. package/dist/constructs/v1beta3/event/EventSchema.mjs +1 -1
  20. package/dist/constructs/v1beta3/github/Github.d.ts +1203 -0
  21. package/dist/constructs/v1beta3/github/Github.js +1 -0
  22. package/dist/constructs/v1beta3/github/Github.mjs +0 -0
  23. package/dist/constructs/v1beta3/github/GithubSchema.d.ts +2 -0
  24. package/dist/constructs/v1beta3/github/GithubSchema.js +12 -0
  25. package/dist/constructs/v1beta3/github/GithubSchema.mjs +12 -0
  26. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +197 -7
  27. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
  28. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
  29. package/dist/constructs/v1beta3/token/Token.d.ts +300 -4
  30. package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
  31. package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
  32. package/dist/index.d.mts +16 -0
  33. package/dist/index.d.ts +16 -0
  34. package/dist/mesheryApi.d.mts +2 -1
  35. package/dist/mesheryApi.d.ts +2 -1
  36. package/package.json +1 -1
@@ -146,7 +146,7 @@ export interface paths {
146
146
  put?: never;
147
147
  /**
148
148
  * Refresh design from its source
149
- * @description Re-fetches the source file recorded in the design's `location` (`type: github`, `host: github.com/<owner>/<repo>`, `path`, optional `branch`; an empty branch means the repository's default branch), re-identifies it, and rewrites the design's content in place under the same design ID. A Meshery Design source replaces `patternFile`; any other source type (Helm Chart, Kubernetes Manifest, Docker Compose) replaces `sourceContent` and clears `patternFile`, so Meshery reconverts it the next time the design is opened - exactly the state a first import leaves. Only the design's owner may refresh it. No request body. Denials: `404` answers both "no such design" and "not the caller's design" with the same body by design, so the route is not an existence oracle; `403` means the GitHub App is not installed on (has no access to) the design's repository; `409` means the design has no refreshable source (`location.type` is not `github`, or `host`/`path` is missing) or its source path no longer resolves to an importable file; `502` means GitHub could not be reached or rejected the request.
149
+ * @description Re-fetches the source file recorded in the design's `location` (`type: github`, `host: github.com/<owner>/<repo>`, `path`, optional `branch`; an empty branch means the repository's default branch), re-identifies it, and rewrites the design's content in place under the same design ID. A Meshery Design source replaces `patternFile`; any other source type (Helm Chart, Kubernetes Manifest, Docker Compose) replaces `sourceContent` and clears `patternFile`, so Meshery reconverts it the next time the design is opened - exactly the state a first import leaves. Only the design's owner may refresh it. No request body. Denials: `404` answers both "no such design" and "not the caller's design" with the same body by design, so the route is not an existence oracle; `403` means the repository is not reachable through one of the caller's verified GitHub App installations - the installations GitHub lists for the caller's own GitHub account when they authorize the App. The refusal is deliberately uniform: the App not being installed on the repository's account and its being installed there for someone else answer the same body, so the route does not reveal where the App is installed. A `403` whose `code` is `meshery_cloud-3381` means the caller's GitHub connection predates verification and must be re-authorized (see `startGithubAuthorization`) before it can be used; `409` means the design has no refreshable source (`location.type` is not `github`, or `host`/`path` is missing) or its source path no longer resolves to an importable file; `502` means GitHub could not be reached or rejected the request. The server resolves the tracked ref to a commit, reads the file at that commit, and records it in `location.commitSha`.
150
150
  */
151
151
  post: operations["refreshPatternFromSource"];
152
152
  delete?: never;
@@ -155,6 +155,26 @@ export interface paths {
155
155
  patch?: never;
156
156
  trace?: never;
157
157
  };
158
+ "/api/content/patterns/{designId}/source": {
159
+ parameters: {
160
+ query?: never;
161
+ header?: never;
162
+ path?: never;
163
+ cookie?: never;
164
+ };
165
+ get?: never;
166
+ put?: never;
167
+ post?: never;
168
+ delete?: never;
169
+ options?: never;
170
+ head?: never;
171
+ /**
172
+ * Remap a design's GitHub source
173
+ * @description Re-points the design's source binding - the GitHub file its `location` records and `refreshPatternFromSource` re-reads - at another repository, path or ref. The design's content is not changed: call `refreshPatternFromSource` afterwards to replace it from the new source. The server resolves `ref` to a commit and confirms that `path` names an importable file at that commit before it writes anything, so a binding that a refresh could not read is never stored. It writes `location` as `type: github`, `host`, `path` and `branch` (= `ref`). When the binding changes, `location.commitSha` is removed, because the stored content was not read from the new source; it is kept when the request names the binding the design already has. A design with no GitHub source (an upload or URL import) may be bound to one; it becomes refreshable. Only the design's owner may remap it. Denials: `404` answers "no such design", "not the caller's design" and "connectionId is not the caller's own live GitHub connection" with the same body, so the route is not an existence oracle; `403` means the repository is not reachable through one of the caller's verified GitHub App installations - the installations GitHub lists for the caller's own GitHub account when they authorize the App. The refusal is deliberately uniform: the App not being installed on the repository's account and its being installed there for someone else answer the same body, so the route does not reveal where the App is installed. A `403` whose `code` is `meshery_cloud-3381` means the caller's GitHub connection predates verification and must be re-authorized (see `startGithubAuthorization`) before it can be used; `409` means `ref` does not resolve to a commit, or `path` does not name an importable file at it (missing, a directory, or not a supported format); `502` means GitHub could not be reached or rejected the request.
174
+ */
175
+ patch: operations["updatePatternSource"];
176
+ trace?: never;
177
+ };
158
178
  "/api/pattern/import": {
159
179
  parameters: {
160
180
  query?: never;
@@ -203,7 +223,7 @@ export interface paths {
203
223
  put?: never;
204
224
  /**
205
225
  * Import files from a GitHub repository as designs
206
- * @description Imports the selected files (a selected directory is walked recursively) from one repository reachable through the caller's GitHub App connection. Matching is idempotent: a file whose (owner, location.type, location.host, location.path, location.branch) already identifies one of the caller's designs is handled per `onExisting`. `connectionId` must name the caller's own live GitHub connection (404 otherwise). `403` means the GitHub App is not installed on (has no access to) the repository; `502` means GitHub could not be reached or rejected the request.
226
+ * @description Imports the selected files (a selected directory is walked recursively) from one repository reachable through the caller's GitHub App connection. Matching is idempotent: a file whose (owner, location.type, location.host, location.path, location.branch) already identifies one of the caller's designs is handled per `onExisting`. `connectionId` must name the caller's own live GitHub connection (404 otherwise). `403` means the repository is not reachable through one of the caller's verified GitHub App installations - the installations GitHub lists for the caller's own GitHub account when they authorize the App. The refusal is deliberately uniform: the App not being installed on the repository's account and its being installed there for someone else answer the same body, so the route does not reveal where the App is installed. A `403` whose `code` is `meshery_cloud-3381` means the caller's GitHub connection predates verification and must be re-authorized (see `startGithubAuthorization`) before it can be used; `502` means GitHub could not be reached or rejected the request. Each imported or updated design records the commit its file was read at in `location.commitSha`.
207
227
  */
208
228
  post: operations["importGithubRepository"];
209
229
  delete?: never;
@@ -212,6 +232,26 @@ export interface paths {
212
232
  patch?: never;
213
233
  trace?: never;
214
234
  };
235
+ "/api/integrations/github/branches/{connectionId}": {
236
+ parameters: {
237
+ query?: never;
238
+ header?: never;
239
+ path?: never;
240
+ cookie?: never;
241
+ };
242
+ /**
243
+ * List a repository's branches
244
+ * @description Lists the branches of one repository reachable through the caller's GitHub App connection, with the repository's default branch, so a client can offer the refs a design's source can track. Branch order is GitHub's. `connectionId` must name the caller's own live GitHub connection (404 otherwise, with the same body as "no such connection"). `403` means the repository is not reachable through one of the caller's verified GitHub App installations - the installations GitHub lists for the caller's own GitHub account when they authorize the App. The refusal is deliberately uniform: the App not being installed on the repository's account and its being installed there for someone else answer the same body, so the route does not reveal where the App is installed. A `403` whose `code` is `meshery_cloud-3381` means the caller's GitHub connection predates verification and must be re-authorized (see `startGithubAuthorization`) before it can be used; `502` means GitHub could not be reached or rejected the request.
245
+ */
246
+ get: operations["getGithubRepositoryBranches"];
247
+ put?: never;
248
+ post?: never;
249
+ delete?: never;
250
+ options?: never;
251
+ head?: never;
252
+ patch?: never;
253
+ trace?: never;
254
+ };
215
255
  "/api/catalog/content/{type}": {
216
256
  parameters: {
217
257
  query?: never;
@@ -2118,7 +2158,7 @@ export interface components {
2118
2158
  totalCount?: number | null;
2119
2159
  };
2120
2160
  } | null;
2121
- /** @description Optional structured location metadata (branch, host, path, ...). */
2161
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
2122
2162
  location?: {
2123
2163
  [key: string]: string;
2124
2164
  };
@@ -2490,7 +2530,7 @@ export interface components {
2490
2530
  totalCount?: number | null;
2491
2531
  };
2492
2532
  } | null;
2493
- /** @description Optional structured location metadata (branch, host, path, ...). */
2533
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
2494
2534
  location?: {
2495
2535
  [key: string]: string;
2496
2536
  };
@@ -3140,7 +3180,7 @@ export interface components {
3140
3180
  totalCount?: number | null;
3141
3181
  };
3142
3182
  } | null;
3143
- /** @description Optional structured location metadata (branch, host, path, ...). */
3183
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
3144
3184
  location?: {
3145
3185
  [key: string]: string;
3146
3186
  };
@@ -3259,6 +3299,59 @@ export interface components {
3259
3299
  deletedAt?: string | null;
3260
3300
  }[];
3261
3301
  };
3302
+ /** @description The GitHub file a design is bound to - what `refreshPatternFromSource` re-reads. */
3303
+ DesignSourceBindingPayload: {
3304
+ /**
3305
+ * Format: uuid
3306
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
3307
+ */
3308
+ connectionId: string;
3309
+ /** @description Repository as `github.com/<owner>/<repo>` - the same form `location.host` stores. */
3310
+ host: string;
3311
+ /** @description Repository-relative path of a file (not a directory), with no leading slash. */
3312
+ path: string;
3313
+ /** @description Branch or tag the binding tracks, stored as `location.branch`. Empty or omitted means the repository's default branch. */
3314
+ ref?: string;
3315
+ };
3316
+ /** @description The keys of a design's `location` (a MapObject on MesheryPattern) when the design is bound to a GitHub source. Written by `importGithubRepository`, `refreshPatternFromSource` and `updatePatternSource`. A design created by an upload or a URL import retains no source - it carries no `github` location and cannot be refreshed until it is bound to one. */
3317
+ DesignSourceLocation: {
3318
+ /** @description Source kind; `github` for a design bound to a GitHub file. */
3319
+ type?: string;
3320
+ /** @description Repository as `github.com/<owner>/<repo>`. */
3321
+ host?: string;
3322
+ /** @description Repository-relative path of the source file. */
3323
+ path?: string;
3324
+ /** @description Ref the binding tracks (a branch or tag name). Empty means the repository's default branch. */
3325
+ branch?: string;
3326
+ /** @description The commit the design's stored content was last read from, by an import or a refresh. Absent when the content was not read from the current binding - after a remap without a refresh, or for a design imported before commits were recorded. Compare it with the head of `branch` to tell whether the source has drifted. */
3327
+ commitSha?: string;
3328
+ } & {
3329
+ [key: string]: unknown;
3330
+ };
3331
+ /** @description One branch of a GitHub repository. */
3332
+ GithubBranch: {
3333
+ /** @description Branch name. */
3334
+ name: string;
3335
+ /** @description Commit at the head of the branch. */
3336
+ commitSha: string;
3337
+ };
3338
+ /** @description A page of a repository's branches. GitHub does not report a total, so the page says whether another follows instead of carrying a count. */
3339
+ GithubBranchPage: {
3340
+ /** @description The repository's default branch. */
3341
+ defaultBranch: string;
3342
+ branches: {
3343
+ /** @description Branch name. */
3344
+ name: string;
3345
+ /** @description Commit at the head of the branch. */
3346
+ commitSha: string;
3347
+ }[];
3348
+ /** @description Zero-based page index served. */
3349
+ page: number;
3350
+ /** @description Page size served. */
3351
+ pageSize: number;
3352
+ /** @description True when another page of branches follows. */
3353
+ hasMore: boolean;
3354
+ };
3262
3355
  /** @description Design-level preferences */
3263
3356
  DesignPreferences: {
3264
3357
  /** @description Map of available layers, where keys are layer names. */
@@ -3582,7 +3675,7 @@ export interface components {
3582
3675
  totalCount?: number | null;
3583
3676
  };
3584
3677
  } | null;
3585
- /** @description Optional structured location metadata (branch, host, path, ...). */
3678
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
3586
3679
  location?: {
3587
3680
  [key: string]: string;
3588
3681
  };
@@ -4445,15 +4538,6 @@ export interface components {
4445
4538
  "text/plain": string;
4446
4539
  };
4447
4540
  };
4448
- /** @description Forbidden */
4449
- 403: {
4450
- headers: {
4451
- [name: string]: unknown;
4452
- };
4453
- content: {
4454
- "text/plain": string;
4455
- };
4456
- };
4457
4541
  /** @description Result not found */
4458
4542
  404: {
4459
4543
  headers: {
@@ -4481,13 +4565,50 @@ export interface components {
4481
4565
  "text/plain": string;
4482
4566
  };
4483
4567
  };
4568
+ /** @description Forbidden */
4569
+ MeshkitError403: {
4570
+ headers: {
4571
+ [name: string]: unknown;
4572
+ };
4573
+ content: {
4574
+ "application/json": {
4575
+ /** @description The sentence the caller is shown. */
4576
+ error: string;
4577
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
4578
+ code?: string;
4579
+ /**
4580
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
4581
+ * @enum {string}
4582
+ */
4583
+ severity?: "emergency" | "alert" | "critical" | "fatal";
4584
+ /** @description MeshKit's probable causes of the error. */
4585
+ probableCause?: string[];
4586
+ /** @description MeshKit's suggested remediations for the error. */
4587
+ suggestedRemediation?: string[];
4588
+ };
4589
+ };
4590
+ };
4484
4591
  /** @description Bad gateway - an upstream service the operation depends on could not be reached or rejected the request */
4485
- 502: {
4592
+ MeshkitError502: {
4486
4593
  headers: {
4487
4594
  [name: string]: unknown;
4488
4595
  };
4489
4596
  content: {
4490
- "text/plain": string;
4597
+ "application/json": {
4598
+ /** @description The sentence the caller is shown. */
4599
+ error: string;
4600
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
4601
+ code?: string;
4602
+ /**
4603
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
4604
+ * @enum {string}
4605
+ */
4606
+ severity?: "emergency" | "alert" | "critical" | "fatal";
4607
+ /** @description MeshKit's probable causes of the error. */
4608
+ probableCause?: string[];
4609
+ /** @description MeshKit's suggested remediations for the error. */
4610
+ suggestedRemediation?: string[];
4611
+ };
4491
4612
  };
4492
4613
  };
4493
4614
  };
@@ -4906,7 +5027,7 @@ export interface operations {
4906
5027
  totalCount?: number | null;
4907
5028
  };
4908
5029
  } | null;
4909
- /** @description Optional structured location metadata (branch, host, path, ...). */
5030
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
4910
5031
  location?: {
4911
5032
  [key: string]: string;
4912
5033
  };
@@ -5387,7 +5508,7 @@ export interface operations {
5387
5508
  totalCount?: number | null;
5388
5509
  };
5389
5510
  } | null;
5390
- /** @description Optional structured location metadata (branch, host, path, ...). */
5511
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
5391
5512
  location?: {
5392
5513
  [key: string]: string;
5393
5514
  };
@@ -5862,7 +5983,7 @@ export interface operations {
5862
5983
  totalCount?: number | null;
5863
5984
  };
5864
5985
  } | null;
5865
- /** @description Optional structured location metadata (branch, host, path, ...). */
5986
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
5866
5987
  location?: {
5867
5988
  [key: string]: string;
5868
5989
  };
@@ -6322,7 +6443,7 @@ export interface operations {
6322
6443
  totalCount?: number | null;
6323
6444
  };
6324
6445
  } | null;
6325
- /** @description Optional structured location metadata (branch, host, path, ...). */
6446
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
6326
6447
  location?: {
6327
6448
  [key: string]: string;
6328
6449
  };
@@ -6854,7 +6975,7 @@ export interface operations {
6854
6975
  totalCount?: number | null;
6855
6976
  };
6856
6977
  } | null;
6857
- /** @description Optional structured location metadata (branch, host, path, ...). */
6978
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
6858
6979
  location?: {
6859
6980
  [key: string]: string;
6860
6981
  };
@@ -6937,7 +7058,21 @@ export interface operations {
6937
7058
  [name: string]: unknown;
6938
7059
  };
6939
7060
  content: {
6940
- "text/plain": string;
7061
+ "application/json": {
7062
+ /** @description The sentence the caller is shown. */
7063
+ error: string;
7064
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
7065
+ code?: string;
7066
+ /**
7067
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
7068
+ * @enum {string}
7069
+ */
7070
+ severity?: "emergency" | "alert" | "critical" | "fatal";
7071
+ /** @description MeshKit's probable causes of the error. */
7072
+ probableCause?: string[];
7073
+ /** @description MeshKit's suggested remediations for the error. */
7074
+ suggestedRemediation?: string[];
7075
+ };
6941
7076
  };
6942
7077
  };
6943
7078
  /** @description Result not found */
@@ -6973,49 +7108,54 @@ export interface operations {
6973
7108
  [name: string]: unknown;
6974
7109
  };
6975
7110
  content: {
6976
- "text/plain": string;
7111
+ "application/json": {
7112
+ /** @description The sentence the caller is shown. */
7113
+ error: string;
7114
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
7115
+ code?: string;
7116
+ /**
7117
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
7118
+ * @enum {string}
7119
+ */
7120
+ severity?: "emergency" | "alert" | "critical" | "fatal";
7121
+ /** @description MeshKit's probable causes of the error. */
7122
+ probableCause?: string[];
7123
+ /** @description MeshKit's suggested remediations for the error. */
7124
+ suggestedRemediation?: string[];
7125
+ };
6977
7126
  };
6978
7127
  };
6979
7128
  };
6980
7129
  };
6981
- importDesign: {
7130
+ updatePatternSource: {
6982
7131
  parameters: {
6983
7132
  query?: never;
6984
7133
  header?: never;
6985
- path?: never;
7134
+ path: {
7135
+ /** @description Design (Pattern) ID */
7136
+ designId: string;
7137
+ };
6986
7138
  cookie?: never;
6987
7139
  };
6988
7140
  requestBody: {
6989
7141
  content: {
6990
7142
  "application/json": {
6991
7143
  /**
6992
- * Format: byte
6993
- * @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
6994
- */
6995
- file: string;
6996
- /** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
6997
- fileName: string;
6998
- /**
6999
- * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
7000
- * @default Untitled Design
7001
- */
7002
- name?: string;
7003
- } | {
7004
- /**
7005
- * Format: uri
7006
- * @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
7007
- */
7008
- url: string;
7009
- /**
7010
- * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
7011
- * @default Untitled Design
7144
+ * Format: uuid
7145
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
7012
7146
  */
7013
- name?: string;
7147
+ connectionId: string;
7148
+ /** @description Repository as `github.com/<owner>/<repo>` - the same form `location.host` stores. */
7149
+ host: string;
7150
+ /** @description Repository-relative path of a file (not a directory), with no leading slash. */
7151
+ path: string;
7152
+ /** @description Branch or tag the binding tracks, stored as `location.branch`. Empty or omitted means the repository's default branch. */
7153
+ ref?: string;
7014
7154
  };
7015
7155
  };
7016
7156
  };
7017
7157
  responses: {
7018
- /** @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. */
7158
+ /** @description Source binding updated. `sourceContent` and `patternFile` are omitted from the response body, as on refresh and import. */
7019
7159
  200: {
7020
7160
  headers: {
7021
7161
  [name: string]: unknown;
@@ -7327,7 +7467,7 @@ export interface operations {
7327
7467
  totalCount?: number | null;
7328
7468
  };
7329
7469
  } | null;
7330
- /** @description Optional structured location metadata (branch, host, path, ...). */
7470
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
7331
7471
  location?: {
7332
7472
  [key: string]: string;
7333
7473
  };
@@ -7383,15 +7523,17 @@ export interface operations {
7383
7523
  * @description Timestamp of last design modification.
7384
7524
  */
7385
7525
  updatedAt?: string;
7386
- }[];
7526
+ };
7387
7527
  };
7388
7528
  };
7389
- /** @description Invalid request format */
7529
+ /** @description Invalid request body or request param */
7390
7530
  400: {
7391
7531
  headers: {
7392
7532
  [name: string]: unknown;
7393
7533
  };
7394
- content?: never;
7534
+ content: {
7535
+ "text/plain": string;
7536
+ };
7395
7537
  };
7396
7538
  /** @description Expired JWT token used or insufficient privilege */
7397
7539
  401: {
@@ -7402,54 +7544,553 @@ export interface operations {
7402
7544
  "text/plain": string;
7403
7545
  };
7404
7546
  };
7547
+ /** @description Forbidden */
7548
+ 403: {
7549
+ headers: {
7550
+ [name: string]: unknown;
7551
+ };
7552
+ content: {
7553
+ "application/json": {
7554
+ /** @description The sentence the caller is shown. */
7555
+ error: string;
7556
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
7557
+ code?: string;
7558
+ /**
7559
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
7560
+ * @enum {string}
7561
+ */
7562
+ severity?: "emergency" | "alert" | "critical" | "fatal";
7563
+ /** @description MeshKit's probable causes of the error. */
7564
+ probableCause?: string[];
7565
+ /** @description MeshKit's suggested remediations for the error. */
7566
+ suggestedRemediation?: string[];
7567
+ };
7568
+ };
7569
+ };
7570
+ /** @description Result not found */
7571
+ 404: {
7572
+ headers: {
7573
+ [name: string]: unknown;
7574
+ };
7575
+ content: {
7576
+ "text/plain": string;
7577
+ };
7578
+ };
7579
+ /** @description Publish request already exists */
7580
+ 409: {
7581
+ headers: {
7582
+ [name: string]: unknown;
7583
+ };
7584
+ content: {
7585
+ "text/plain": string;
7586
+ };
7587
+ };
7405
7588
  /** @description Internal server error */
7406
7589
  500: {
7407
7590
  headers: {
7408
7591
  [name: string]: unknown;
7409
7592
  };
7410
- content?: never;
7593
+ content: {
7594
+ "text/plain": string;
7595
+ };
7596
+ };
7597
+ /** @description Bad gateway - an upstream service the operation depends on could not be reached or rejected the request */
7598
+ 502: {
7599
+ headers: {
7600
+ [name: string]: unknown;
7601
+ };
7602
+ content: {
7603
+ "application/json": {
7604
+ /** @description The sentence the caller is shown. */
7605
+ error: string;
7606
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
7607
+ code?: string;
7608
+ /**
7609
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
7610
+ * @enum {string}
7611
+ */
7612
+ severity?: "emergency" | "alert" | "critical" | "fatal";
7613
+ /** @description MeshKit's probable causes of the error. */
7614
+ probableCause?: string[];
7615
+ /** @description MeshKit's suggested remediations for the error. */
7616
+ suggestedRemediation?: string[];
7617
+ };
7618
+ };
7411
7619
  };
7412
7620
  };
7413
7621
  };
7414
- getGithubImportedDesigns: {
7622
+ importDesign: {
7415
7623
  parameters: {
7416
- query?: {
7417
- /** @description Restrict to one repository, as `<owner>/<repo>` (case-insensitive). */
7418
- repository?: string;
7419
- /** @description Get responses by page */
7420
- page?: number;
7421
- /** @description Number of items per page (canonical camelCase form). */
7422
- pageSize?: number;
7423
- };
7624
+ query?: never;
7424
7625
  header?: never;
7425
- path: {
7426
- /** @description ID of a GitHub App connection. */
7427
- connectionId: string;
7428
- };
7626
+ path?: never;
7429
7627
  cookie?: never;
7430
7628
  };
7431
- requestBody?: never;
7629
+ requestBody: {
7630
+ content: {
7631
+ "application/json": {
7632
+ /**
7633
+ * Format: byte
7634
+ * @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
7635
+ */
7636
+ file: string;
7637
+ /** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
7638
+ fileName: string;
7639
+ /**
7640
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
7641
+ * @default Untitled Design
7642
+ */
7643
+ name?: string;
7644
+ } | {
7645
+ /**
7646
+ * Format: uri
7647
+ * @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
7648
+ */
7649
+ url: string;
7650
+ /**
7651
+ * @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
7652
+ * @default Untitled Design
7653
+ */
7654
+ name?: string;
7655
+ };
7656
+ };
7657
+ };
7432
7658
  responses: {
7433
- /** @description Imported designs page. */
7659
+ /** @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. */
7434
7660
  200: {
7435
7661
  headers: {
7436
7662
  [name: string]: unknown;
7437
7663
  };
7438
7664
  content: {
7439
7665
  "application/json": {
7440
- /** @description Current page number of the result set. */
7441
- page?: number;
7442
- /** @description Number of items per page. */
7443
- pageSize?: number;
7444
- /** @description Total number of items available. */
7445
- totalCount?: number;
7446
- /** @description Designs included on this page of results. */
7447
- patterns?: {
7666
+ /**
7667
+ * Format: uuid
7668
+ * @description Server-generated design ID.
7669
+ */
7670
+ id?: string;
7671
+ /** @description Human-readable design name. */
7672
+ name?: string;
7673
+ /** @description Catalog metadata attached to the design when published. */
7674
+ catalogData?: {
7675
+ /** @description Tracks the specific content version that has been made available in the Catalog. */
7676
+ publishedVersion?: string;
7677
+ /** @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. */
7678
+ class?: string & ("official" | "verified" | "reference architecture");
7448
7679
  /**
7449
- * Format: uuid
7450
- * @description Server-generated design ID.
7680
+ * Model
7681
+ * @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.
7451
7682
  */
7452
- id?: string;
7683
+ compatibility: "kubernetes"[];
7684
+ /**
7685
+ * Caveats and Considerations
7686
+ * @description Specific stipulations to consider and known behaviors to be aware of when using this design.
7687
+ */
7688
+ patternCaveats: string;
7689
+ /**
7690
+ * Description
7691
+ * @description Purpose of the design along with its intended and unintended uses.
7692
+ */
7693
+ patternInfo: string;
7694
+ /**
7695
+ * Type
7696
+ * @description Categorization of the type of design or operational flow depicted in this design.
7697
+ * @default Deployment
7698
+ * @enum {string}
7699
+ */
7700
+ type: "Deployment" | "Observability" | "Resiliency" | "Scaling" | "Security" | "Traffic-management" | "Troubleshooting" | "Workloads";
7701
+ /** @description Contains reference to the dark and light mode snapshots of the design. */
7702
+ snapshotURL?: string[];
7703
+ };
7704
+ /**
7705
+ * Format: uuid
7706
+ * @description Owning user ID.
7707
+ */
7708
+ userId?: string;
7709
+ /** @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. */
7710
+ user?: {
7711
+ /**
7712
+ * Format: uuid
7713
+ * @description Unique identifier for the user
7714
+ */
7715
+ id: string;
7716
+ /**
7717
+ * @deprecated
7718
+ * @description Legacy IdP-derived identifier. Removed in v1beta3; resolve users by id or email.
7719
+ */
7720
+ userId: string;
7721
+ /**
7722
+ * @description Authentication provider (e.g., Google, Github)
7723
+ * @example [
7724
+ * "local",
7725
+ * "github",
7726
+ * "google",
7727
+ * "twitter"
7728
+ * ]
7729
+ */
7730
+ provider: string;
7731
+ /**
7732
+ * Format: email
7733
+ * @description User's email address
7734
+ */
7735
+ email: string;
7736
+ /** @description User's first name */
7737
+ firstName: string;
7738
+ /** @description User's last name */
7739
+ lastName: string;
7740
+ /**
7741
+ * Format: uri
7742
+ * @description URL to user's avatar image
7743
+ */
7744
+ avatarUrl?: string;
7745
+ /**
7746
+ * @description User account status
7747
+ * @enum {string}
7748
+ */
7749
+ status: "active" | "inactive" | "pending" | "anonymous";
7750
+ /**
7751
+ * @description User's biography or description
7752
+ * @default
7753
+ */
7754
+ bio: string;
7755
+ /** @description User's country information stored as JSONB */
7756
+ country?: {
7757
+ [key: string]: unknown;
7758
+ };
7759
+ /** @description User's region information stored as JSONB */
7760
+ region?: {
7761
+ [key: string]: unknown;
7762
+ };
7763
+ /** @description User preferences stored as JSONB */
7764
+ preferences?: {
7765
+ /** @description The mesh adapters of the preference. */
7766
+ meshAdapters?: Record<string, never>[];
7767
+ grafana?: {
7768
+ /** @description Grafana URL for the user configuration. */
7769
+ grafanaUrl?: string;
7770
+ /** @description Grafana API key for the user configuration. */
7771
+ grafanaApiKey?: string;
7772
+ /** @description Selected Grafana board configurations for the user. */
7773
+ selectedBoardsConfigs?: {
7774
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
7775
+ board?: Record<string, never>;
7776
+ /** @description Panels selected for the Grafana board configuration. */
7777
+ panels?: Record<string, never>[];
7778
+ /** @description Template variables applied to the selected Grafana board configuration. */
7779
+ templateVars?: string[];
7780
+ }[];
7781
+ };
7782
+ prometheus?: {
7783
+ /** @description The prometheus URL of the prometheus. */
7784
+ prometheusUrl?: string;
7785
+ /** @description The selected prometheus boards configs of the prometheus. */
7786
+ selectedPrometheusBoardsConfigs?: {
7787
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
7788
+ board?: Record<string, never>;
7789
+ /** @description Panels selected for the Grafana board configuration. */
7790
+ panels?: Record<string, never>[];
7791
+ /** @description Template variables applied to the selected Grafana board configuration. */
7792
+ templateVars?: string[];
7793
+ }[];
7794
+ };
7795
+ loadTestPrefs?: {
7796
+ /** @description Concurrent requests */
7797
+ c?: number;
7798
+ /** @description Queries per second */
7799
+ qps?: number;
7800
+ /** @description Duration */
7801
+ t?: string;
7802
+ /** @description Load generator */
7803
+ gen?: string;
7804
+ };
7805
+ /** @description The anonymous usage stats of the preference. */
7806
+ anonymousUsageStats: boolean;
7807
+ /** @description The anonymous perf results of the preference. */
7808
+ anonymousPerfResults: boolean;
7809
+ /**
7810
+ * Format: date-time
7811
+ * @description Timestamp of when the resource was last updated.
7812
+ */
7813
+ updatedAt: string;
7814
+ /** @description The dashboard preferences of the preference. */
7815
+ dashboardPreferences: {
7816
+ [key: string]: unknown;
7817
+ };
7818
+ /**
7819
+ * Format: uuid
7820
+ * @description ID of the associated selectedOrganization.
7821
+ */
7822
+ selectedOrganizationId: string;
7823
+ /** @description The selected workspace for organizations of the preference. */
7824
+ selectedWorkspaceForOrganizations: {
7825
+ [key: string]: string;
7826
+ };
7827
+ /** @description The users extension preferences of the preference. */
7828
+ usersExtensionPreferences: {
7829
+ [key: string]: unknown;
7830
+ };
7831
+ /** @description The remote provider preferences of the preference. */
7832
+ remoteProviderPreferences: {
7833
+ [key: string]: unknown;
7834
+ };
7835
+ };
7836
+ /**
7837
+ * Format: date-time
7838
+ * @description Timestamp when user accepted terms and conditions
7839
+ */
7840
+ acceptedTermsAt?: string;
7841
+ /**
7842
+ * Format: date-time
7843
+ * @description Timestamp of user's first login
7844
+ */
7845
+ firstLoginTime?: string;
7846
+ /**
7847
+ * Format: date-time
7848
+ * @description Timestamp of user's most recent login
7849
+ */
7850
+ lastLoginTime: string;
7851
+ /**
7852
+ * Format: date-time
7853
+ * @description Timestamp when the user record was created
7854
+ */
7855
+ createdAt: string;
7856
+ /**
7857
+ * Format: date-time
7858
+ * @description Timestamp when the user record was last updated
7859
+ */
7860
+ updatedAt: string;
7861
+ /** @description Various online profiles associated with the user account */
7862
+ socials?: {
7863
+ /** @description The site of the social. */
7864
+ site: string;
7865
+ /**
7866
+ * Format: uri
7867
+ * @description The link of the social.
7868
+ */
7869
+ link: string;
7870
+ }[];
7871
+ /**
7872
+ * Format: date-time
7873
+ * @description Timestamp when the user record was soft-deleted (null if not deleted)
7874
+ */
7875
+ deletedAt: string | null;
7876
+ /**
7877
+ * @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.
7878
+ * @example [
7879
+ * "organization admin",
7880
+ * "user"
7881
+ * ]
7882
+ */
7883
+ roleNames?: string[];
7884
+ /** @description Teams the user belongs to with role information */
7885
+ teams?: {
7886
+ /** @description Team memberships for the user with their assigned roles. null means the team memberships were not measured: the read failed, so the list is unknown. An empty array is only ever a measured absence of memberships. */
7887
+ teamsWithRoles?: {
7888
+ /**
7889
+ * Format: uuid
7890
+ * @description Unique identifier of the team.
7891
+ */
7892
+ id: string;
7893
+ /** @description Name of the team. */
7894
+ name: string;
7895
+ /** @description Human readable description of the team. */
7896
+ description?: string;
7897
+ /**
7898
+ * Format: uuid
7899
+ * @description Identifier of the team owner.
7900
+ */
7901
+ owner?: string;
7902
+ /** @description Free-form metadata associated with the team. */
7903
+ metadata?: {
7904
+ [key: string]: unknown;
7905
+ };
7906
+ /**
7907
+ * Format: date-time
7908
+ * @description Timestamp when the team was created.
7909
+ */
7910
+ createdAt?: string;
7911
+ /**
7912
+ * Format: date-time
7913
+ * @description Timestamp when the team was last updated.
7914
+ */
7915
+ updatedAt?: string;
7916
+ /**
7917
+ * Format: date-time
7918
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
7919
+ */
7920
+ deletedAt?: string | null;
7921
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
7922
+ roleNames: string[];
7923
+ }[] | null;
7924
+ /** @description Total number of team memberships for the user. null means the count was not measured: the membership read failed, so the value is unknown and must be presented as unknown, never as 0. A number, including 0, is always a measured value. */
7925
+ totalCount?: number | null;
7926
+ };
7927
+ /** @description Organizations the user belongs to with role information */
7928
+ organizations?: {
7929
+ /** @description Organization memberships for the user with their assigned roles. null means the organization memberships were not measured: the read failed, so the list is unknown. An empty array is only ever a measured absence of memberships. */
7930
+ organizationsWithRoles?: {
7931
+ /**
7932
+ * Format: uuid
7933
+ * @description Unique identifier of the organization.
7934
+ */
7935
+ id: string;
7936
+ /** @description Name of the organization. */
7937
+ name: string;
7938
+ /** @description Human readable description of the organization. */
7939
+ description?: string;
7940
+ /** @description Country associated with the organization. */
7941
+ country?: string;
7942
+ /** @description Region associated with the organization. */
7943
+ region?: string;
7944
+ /**
7945
+ * Format: uuid
7946
+ * @description Identifier of the organization owner.
7947
+ */
7948
+ owner?: string;
7949
+ /**
7950
+ * Format: date-time
7951
+ * @description Timestamp when the organization was created.
7952
+ */
7953
+ createdAt?: string;
7954
+ /**
7955
+ * Format: date-time
7956
+ * @description Timestamp when the organization was last updated.
7957
+ */
7958
+ updatedAt?: string;
7959
+ /**
7960
+ * Format: date-time
7961
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
7962
+ */
7963
+ deletedAt?: string | null;
7964
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
7965
+ roleNames: string[];
7966
+ }[] | null;
7967
+ /** @description Total number of organization memberships for the user. null means the count was not measured: the membership read failed, so the value is unknown and must be presented as unknown, never as 0. A number, including 0, is always a measured value. */
7968
+ totalCount?: number | null;
7969
+ };
7970
+ } | null;
7971
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
7972
+ location?: {
7973
+ [key: string]: string;
7974
+ };
7975
+ /** @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. */
7976
+ patternFile?: string;
7977
+ /**
7978
+ * @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.
7979
+ * @enum {string}
7980
+ */
7981
+ visibility?: "private" | "public" | "published";
7982
+ /**
7983
+ * @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.
7984
+ * @enum {string|null}
7985
+ */
7986
+ designType?: "Design" | "Helm Chart" | "Docker Compose" | "Kubernetes Manifest" | null;
7987
+ /**
7988
+ * Format: byte
7989
+ * @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.
7990
+ */
7991
+ sourceContent?: string | null;
7992
+ /**
7993
+ * @description Server-aggregated count of views on this design in the catalog. Present on list/catalog responses; server-managed and ignored on writes.
7994
+ * @default 0
7995
+ */
7996
+ viewCount: number;
7997
+ /**
7998
+ * @description Server-aggregated count of downloads of this design from the catalog. Server-managed and ignored on writes.
7999
+ * @default 0
8000
+ */
8001
+ downloadCount: number;
8002
+ /**
8003
+ * @description Server-aggregated count of times this design has been cloned from the catalog. Server-managed and ignored on writes.
8004
+ * @default 0
8005
+ */
8006
+ cloneCount: number;
8007
+ /**
8008
+ * @description Server-aggregated count of deployments originated from this design. Server-managed and ignored on writes.
8009
+ * @default 0
8010
+ */
8011
+ deploymentCount: number;
8012
+ /**
8013
+ * @description Server-aggregated count of share events for this design. Server-managed and ignored on writes.
8014
+ * @default 0
8015
+ */
8016
+ shareCount: number;
8017
+ /**
8018
+ * Format: date-time
8019
+ * @description Timestamp of design creation.
8020
+ */
8021
+ createdAt?: string;
8022
+ /**
8023
+ * Format: date-time
8024
+ * @description Timestamp of last design modification.
8025
+ */
8026
+ updatedAt?: string;
8027
+ }[];
8028
+ };
8029
+ };
8030
+ /** @description Invalid request format */
8031
+ 400: {
8032
+ headers: {
8033
+ [name: string]: unknown;
8034
+ };
8035
+ content?: never;
8036
+ };
8037
+ /** @description Expired JWT token used or insufficient privilege */
8038
+ 401: {
8039
+ headers: {
8040
+ [name: string]: unknown;
8041
+ };
8042
+ content: {
8043
+ "text/plain": string;
8044
+ };
8045
+ };
8046
+ /** @description Internal server error */
8047
+ 500: {
8048
+ headers: {
8049
+ [name: string]: unknown;
8050
+ };
8051
+ content?: never;
8052
+ };
8053
+ };
8054
+ };
8055
+ getGithubImportedDesigns: {
8056
+ parameters: {
8057
+ query?: {
8058
+ /** @description Restrict to one repository, as `<owner>/<repo>` (case-insensitive). */
8059
+ repository?: string;
8060
+ /** @description Get responses by page */
8061
+ page?: number;
8062
+ /** @description Number of items per page (canonical camelCase form). */
8063
+ pageSize?: number;
8064
+ };
8065
+ header?: never;
8066
+ path: {
8067
+ /** @description ID of a GitHub App connection. */
8068
+ connectionId: string;
8069
+ };
8070
+ cookie?: never;
8071
+ };
8072
+ requestBody?: never;
8073
+ responses: {
8074
+ /** @description Imported designs page. */
8075
+ 200: {
8076
+ headers: {
8077
+ [name: string]: unknown;
8078
+ };
8079
+ content: {
8080
+ "application/json": {
8081
+ /** @description Current page number of the result set. */
8082
+ page?: number;
8083
+ /** @description Number of items per page. */
8084
+ pageSize?: number;
8085
+ /** @description Total number of items available. */
8086
+ totalCount?: number;
8087
+ /** @description Designs included on this page of results. */
8088
+ patterns?: {
8089
+ /**
8090
+ * Format: uuid
8091
+ * @description Server-generated design ID.
8092
+ */
8093
+ id?: string;
7453
8094
  /** @description Human-readable design name. */
7454
8095
  name?: string;
7455
8096
  /** @description Catalog metadata attached to the design when published. */
@@ -7750,7 +8391,7 @@ export interface operations {
7750
8391
  totalCount?: number | null;
7751
8392
  };
7752
8393
  } | null;
7753
- /** @description Optional structured location metadata (branch, host, path, ...). */
8394
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
7754
8395
  location?: {
7755
8396
  [key: string]: string;
7756
8397
  };
@@ -8204,7 +8845,7 @@ export interface operations {
8204
8845
  totalCount?: number | null;
8205
8846
  };
8206
8847
  } | null;
8207
- /** @description Optional structured location metadata (branch, host, path, ...). */
8848
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
8208
8849
  location?: {
8209
8850
  [key: string]: string;
8210
8851
  };
@@ -8349,7 +8990,21 @@ export interface operations {
8349
8990
  [name: string]: unknown;
8350
8991
  };
8351
8992
  content: {
8352
- "text/plain": string;
8993
+ "application/json": {
8994
+ /** @description The sentence the caller is shown. */
8995
+ error: string;
8996
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
8997
+ code?: string;
8998
+ /**
8999
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
9000
+ * @enum {string}
9001
+ */
9002
+ severity?: "emergency" | "alert" | "critical" | "fatal";
9003
+ /** @description MeshKit's probable causes of the error. */
9004
+ probableCause?: string[];
9005
+ /** @description MeshKit's suggested remediations for the error. */
9006
+ suggestedRemediation?: string[];
9007
+ };
8353
9008
  };
8354
9009
  };
8355
9010
  /** @description Result not found */
@@ -8372,6 +9027,124 @@ export interface operations {
8372
9027
  };
8373
9028
  /** @description Bad gateway - an upstream service the operation depends on could not be reached or rejected the request */
8374
9029
  502: {
9030
+ headers: {
9031
+ [name: string]: unknown;
9032
+ };
9033
+ content: {
9034
+ "application/json": {
9035
+ /** @description The sentence the caller is shown. */
9036
+ error: string;
9037
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
9038
+ code?: string;
9039
+ /**
9040
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
9041
+ * @enum {string}
9042
+ */
9043
+ severity?: "emergency" | "alert" | "critical" | "fatal";
9044
+ /** @description MeshKit's probable causes of the error. */
9045
+ probableCause?: string[];
9046
+ /** @description MeshKit's suggested remediations for the error. */
9047
+ suggestedRemediation?: string[];
9048
+ };
9049
+ };
9050
+ };
9051
+ };
9052
+ };
9053
+ getGithubRepositoryBranches: {
9054
+ parameters: {
9055
+ query: {
9056
+ /** @description Repository as `<owner>/<repo>` (case-insensitive). */
9057
+ repository: string;
9058
+ /** @description Get responses by page */
9059
+ page?: number;
9060
+ /** @description Number of items per page (canonical camelCase form). */
9061
+ pageSize?: number;
9062
+ };
9063
+ header?: never;
9064
+ path: {
9065
+ /** @description ID of a GitHub App connection. */
9066
+ connectionId: string;
9067
+ };
9068
+ cookie?: never;
9069
+ };
9070
+ requestBody?: never;
9071
+ responses: {
9072
+ /** @description Repository branches page. */
9073
+ 200: {
9074
+ headers: {
9075
+ [name: string]: unknown;
9076
+ };
9077
+ content: {
9078
+ "application/json": {
9079
+ /** @description The repository's default branch. */
9080
+ defaultBranch: string;
9081
+ branches: {
9082
+ /** @description Branch name. */
9083
+ name: string;
9084
+ /** @description Commit at the head of the branch. */
9085
+ commitSha: string;
9086
+ }[];
9087
+ /** @description Zero-based page index served. */
9088
+ page: number;
9089
+ /** @description Page size served. */
9090
+ pageSize: number;
9091
+ /** @description True when another page of branches follows. */
9092
+ hasMore: boolean;
9093
+ };
9094
+ };
9095
+ };
9096
+ /** @description Invalid request body or request param */
9097
+ 400: {
9098
+ headers: {
9099
+ [name: string]: unknown;
9100
+ };
9101
+ content: {
9102
+ "text/plain": string;
9103
+ };
9104
+ };
9105
+ /** @description Expired JWT token used or insufficient privilege */
9106
+ 401: {
9107
+ headers: {
9108
+ [name: string]: unknown;
9109
+ };
9110
+ content: {
9111
+ "text/plain": string;
9112
+ };
9113
+ };
9114
+ /** @description Forbidden */
9115
+ 403: {
9116
+ headers: {
9117
+ [name: string]: unknown;
9118
+ };
9119
+ content: {
9120
+ "application/json": {
9121
+ /** @description The sentence the caller is shown. */
9122
+ error: string;
9123
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
9124
+ code?: string;
9125
+ /**
9126
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
9127
+ * @enum {string}
9128
+ */
9129
+ severity?: "emergency" | "alert" | "critical" | "fatal";
9130
+ /** @description MeshKit's probable causes of the error. */
9131
+ probableCause?: string[];
9132
+ /** @description MeshKit's suggested remediations for the error. */
9133
+ suggestedRemediation?: string[];
9134
+ };
9135
+ };
9136
+ };
9137
+ /** @description Result not found */
9138
+ 404: {
9139
+ headers: {
9140
+ [name: string]: unknown;
9141
+ };
9142
+ content: {
9143
+ "text/plain": string;
9144
+ };
9145
+ };
9146
+ /** @description Internal server error */
9147
+ 500: {
8375
9148
  headers: {
8376
9149
  [name: string]: unknown;
8377
9150
  };
@@ -8379,6 +9152,29 @@ export interface operations {
8379
9152
  "text/plain": string;
8380
9153
  };
8381
9154
  };
9155
+ /** @description Bad gateway - an upstream service the operation depends on could not be reached or rejected the request */
9156
+ 502: {
9157
+ headers: {
9158
+ [name: string]: unknown;
9159
+ };
9160
+ content: {
9161
+ "application/json": {
9162
+ /** @description The sentence the caller is shown. */
9163
+ error: string;
9164
+ /** @description MeshKit error code, e.g. `meshery_cloud-3420`. Omitted for an error that is not a MeshKit error. */
9165
+ code?: string;
9166
+ /**
9167
+ * @description MeshKit severity name. Omitted when MeshKit reports none.
9168
+ * @enum {string}
9169
+ */
9170
+ severity?: "emergency" | "alert" | "critical" | "fatal";
9171
+ /** @description MeshKit's probable causes of the error. */
9172
+ probableCause?: string[];
9173
+ /** @description MeshKit's suggested remediations for the error. */
9174
+ suggestedRemediation?: string[];
9175
+ };
9176
+ };
9177
+ };
8382
9178
  };
8383
9179
  };
8384
9180
  getCatalogContent: {
@@ -8730,7 +9526,7 @@ export interface operations {
8730
9526
  totalCount?: number | null;
8731
9527
  };
8732
9528
  } | null;
8733
- /** @description Optional structured location metadata (branch, host, path, ...). */
9529
+ /** @description Optional structured location metadata (branch, host, path, ...). For a design bound to a GitHub source the keys are those of DesignSourceLocation, including commitSha. */
8734
9530
  location?: {
8735
9531
  [key: string]: string;
8736
9532
  };