@meshery/schemas 1.0.7 → 1.0.9

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 (43) hide show
  1. package/dist/{Core-B0SJO-By.d.mts → Core-CwYNKnjf.d.mts} +10 -1
  2. package/dist/{Core-B0SJO-By.d.ts → Core-CwYNKnjf.d.ts} +10 -1
  3. package/dist/cloudApi.d.mts +373 -18
  4. package/dist/cloudApi.d.ts +373 -18
  5. package/dist/cloudApi.js +1 -1
  6. package/dist/cloudApi.mjs +1 -1
  7. package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
  8. package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
  9. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  10. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  11. package/dist/constructs/v1beta1/core/Core.d.mts +10 -1
  12. package/dist/constructs/v1beta1/core/Core.d.ts +10 -1
  13. package/dist/constructs/v1beta1/core/CoreSchema.js +1 -1
  14. package/dist/constructs/v1beta1/core/CoreSchema.mjs +1 -1
  15. package/dist/constructs/v1beta1/model/Model.d.mts +3 -12
  16. package/dist/constructs/v1beta1/model/Model.d.ts +3 -12
  17. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  18. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  19. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +108 -7
  20. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +108 -7
  21. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -2
  22. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -2
  23. package/dist/constructs/v1beta1/view/View.d.mts +128 -0
  24. package/dist/constructs/v1beta1/view/View.d.ts +128 -0
  25. package/dist/constructs/v1beta1/view/ViewSchema.js +12 -1
  26. package/dist/constructs/v1beta1/view/ViewSchema.mjs +12 -1
  27. package/dist/constructs/v1beta2/core/Core.d.mts +10 -1
  28. package/dist/constructs/v1beta2/core/Core.d.ts +10 -1
  29. package/dist/constructs/v1beta2/core/CoreSchema.js +1 -1
  30. package/dist/constructs/v1beta2/core/CoreSchema.mjs +1 -1
  31. package/dist/constructs/v1beta2/design/Design.d.mts +239 -7
  32. package/dist/constructs/v1beta2/design/Design.d.ts +239 -7
  33. package/dist/constructs/v1beta2/design/DesignSchema.js +25 -5
  34. package/dist/constructs/v1beta2/design/DesignSchema.mjs +25 -5
  35. package/dist/index.d.mts +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +41 -10
  38. package/dist/index.mjs +41 -10
  39. package/dist/mesheryApi.d.mts +10 -7
  40. package/dist/mesheryApi.d.ts +10 -7
  41. package/dist/mesheryApi.js +1 -1
  42. package/dist/mesheryApi.mjs +1 -1
  43. package/package.json +1 -1
@@ -36,7 +36,18 @@ interface paths {
36
36
  get: operations["getDesignPatternFile"];
37
37
  };
38
38
  "/api/content/patterns/upload/{id}": {
39
- /** Uploads or replaces the source content for a design. */
39
+ /**
40
+ * Replaces the raw source content blob stored alongside a design.
41
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
42
+ * reads the entire request body as opaque bytes via io.ReadAll and
43
+ * persists them without interpretation, so the content-type is
44
+ * whatever the uploader sent — `application/octet-stream` is the
45
+ * canonical choice. The previous declaration reused
46
+ * MesheryPatternImportRequestBody under multipart/form-data, which
47
+ * the handler never parses; it remained wired up solely to share
48
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
49
+ * for the drift analysis.
50
+ */
40
51
  post: operations["upsertPatternSourceContent"];
41
52
  };
42
53
  "/api/pattern/import": {
@@ -70,6 +81,16 @@ interface paths {
70
81
  "/api/resource/{resourceType}/share/{resourceId}/{actorType}": {
71
82
  get: operations["getResourceAccessActorsByType"];
72
83
  };
84
+ "/api/content/design/share": {
85
+ /**
86
+ * Shares a design (pattern), view, or filter with a list of email
87
+ * addresses. When `share` is true, the content's visibility is flipped to
88
+ * public and an invitation email is sent to each recipient. When `share`
89
+ * is false, visibility is reverted to private. Only the owner of the
90
+ * content may change its sharing mode.
91
+ */
92
+ post: operations["shareDesign"];
93
+ };
73
94
  "/api/catalog/requests": {
74
95
  get: operations["getCatalogRequest"];
75
96
  };
@@ -5871,11 +5892,66 @@ interface components {
5871
5892
  /** @description Name of the mesherypatternrequestbody. */
5872
5893
  name?: string;
5873
5894
  };
5895
+ /** @description Body for POST /api/pattern/import. Consumed by the server as application/json. Exactly one of two variants must be supplied: a File Import carrying base64-encoded bytes plus a file name, or a URL Import naming a remote location the server will fetch. Sending both variants at once, or neither, is rejected with 400. */
5896
+ MesheryPatternImportRequestBody: {
5897
+ /**
5898
+ * Format: byte
5899
+ * @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.
5900
+ */
5901
+ file: string;
5902
+ /** @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. */
5903
+ file_name: string;
5904
+ /**
5905
+ * @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.
5906
+ * @default Untitled Design
5907
+ */
5908
+ name?: string;
5909
+ } | {
5910
+ /**
5911
+ * Format: uri
5912
+ * @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.
5913
+ */
5914
+ url: string;
5915
+ /**
5916
+ * @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.
5917
+ * @default Untitled Design
5918
+ */
5919
+ name?: string;
5920
+ };
5921
+ /**
5922
+ * File Import
5923
+ * @description Upload a design file from the local system. Both `file` and `file_name` are required; the server uses the file name to identify the file type (Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design).
5924
+ */
5925
+ MesheryPatternImportFilePayload: {
5926
+ /**
5927
+ * Format: byte
5928
+ * @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.
5929
+ */
5930
+ file: string;
5931
+ /** @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. */
5932
+ file_name: string;
5933
+ /**
5934
+ * @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.
5935
+ * @default Untitled Design
5936
+ */
5937
+ name?: string;
5938
+ };
5874
5939
  /**
5875
- * @description Choose the method you prefer to upload your design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online.
5876
- * @enum {object}
5940
+ * URL Import
5941
+ * @description Import a design by URL. The server will fetch the resource and derive the file type from the response.
5877
5942
  */
5878
- MesheryPatternImportRequestBody: "file" | "url";
5943
+ MesheryPatternImportURLPayload: {
5944
+ /**
5945
+ * Format: uri
5946
+ * @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.
5947
+ */
5948
+ url: string;
5949
+ /**
5950
+ * @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.
5951
+ * @default Untitled Design
5952
+ */
5953
+ name?: string;
5954
+ };
5879
5955
  /** @description Design-level preferences */
5880
5956
  DesignPreferences: {
5881
5957
  /** @description Map of available layers, where keys are layer names. */
@@ -7393,6 +7469,34 @@ interface components {
7393
7469
  [key: string]: unknown;
7394
7470
  }[];
7395
7471
  };
7472
+ /**
7473
+ * @description Payload for sharing a piece of content (design, filter, or view) with one
7474
+ * or more recipients by email. This schema backs both
7475
+ * `POST /api/content/design/share` and `POST /api/content/view/share`; the
7476
+ * server dispatches on `content_type` to decide which entity to mutate.
7477
+ */
7478
+ ContentSharePayload: {
7479
+ /**
7480
+ * Format: uuid
7481
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
7482
+ */
7483
+ content_id: string;
7484
+ /**
7485
+ * @description The kind of content being shared. Must match the entity the handler
7486
+ * expects — `pattern` and `filter` are valid on the design share
7487
+ * endpoint; `view` is valid on the view share endpoint.
7488
+ *
7489
+ * @enum {string}
7490
+ */
7491
+ content_type: "pattern" | "filter" | "view";
7492
+ /** @description Email addresses of the recipients to share this content with. */
7493
+ emails: string[];
7494
+ /**
7495
+ * @description When true, flip visibility to public and send invitation emails to
7496
+ * the recipients. When false, revert visibility to private.
7497
+ */
7498
+ share: boolean;
7499
+ };
7396
7500
  };
7397
7501
  responses: {
7398
7502
  /** Invalid request body or request param */
@@ -7447,6 +7551,33 @@ interface components {
7447
7551
  };
7448
7552
  };
7449
7553
  };
7554
+ /** Body for sharing a design, filter, or view with recipients by email. */
7555
+ contentSharePayload: {
7556
+ content: {
7557
+ "application/json": {
7558
+ /**
7559
+ * Format: uuid
7560
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
7561
+ */
7562
+ content_id: string;
7563
+ /**
7564
+ * @description The kind of content being shared. Must match the entity the handler
7565
+ * expects — `pattern` and `filter` are valid on the design share
7566
+ * endpoint; `view` is valid on the view share endpoint.
7567
+ *
7568
+ * @enum {string}
7569
+ */
7570
+ content_type: "pattern" | "filter" | "view";
7571
+ /** @description Email addresses of the recipients to share this content with. */
7572
+ emails: string[];
7573
+ /**
7574
+ * @description When true, flip visibility to public and send invitation emails to
7575
+ * the recipients. When false, revert visibility to private.
7576
+ */
7577
+ share: boolean;
7578
+ };
7579
+ };
7580
+ };
7450
7581
  };
7451
7582
  }
7452
7583
  interface operations {
@@ -15095,7 +15226,18 @@ interface operations {
15095
15226
  };
15096
15227
  };
15097
15228
  };
15098
- /** Uploads or replaces the source content for a design. */
15229
+ /**
15230
+ * Replaces the raw source content blob stored alongside a design.
15231
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
15232
+ * reads the entire request body as opaque bytes via io.ReadAll and
15233
+ * persists them without interpretation, so the content-type is
15234
+ * whatever the uploader sent — `application/octet-stream` is the
15235
+ * canonical choice. The previous declaration reused
15236
+ * MesheryPatternImportRequestBody under multipart/form-data, which
15237
+ * the handler never parses; it remained wired up solely to share
15238
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
15239
+ * for the drift analysis.
15240
+ */
15099
15241
  upsertPatternSourceContent: {
15100
15242
  parameters: {
15101
15243
  path: {
@@ -15133,7 +15275,7 @@ interface operations {
15133
15275
  };
15134
15276
  requestBody: {
15135
15277
  content: {
15136
- "multipart/form-data": "file" | "url";
15278
+ "application/octet-stream": string;
15137
15279
  };
15138
15280
  };
15139
15281
  };
@@ -15160,7 +15302,31 @@ interface operations {
15160
15302
  };
15161
15303
  requestBody: {
15162
15304
  content: {
15163
- "multipart/form-data": "file" | "url";
15305
+ "application/json": {
15306
+ /**
15307
+ * Format: byte
15308
+ * @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.
15309
+ */
15310
+ file: string;
15311
+ /** @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. */
15312
+ file_name: string;
15313
+ /**
15314
+ * @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.
15315
+ * @default Untitled Design
15316
+ */
15317
+ name?: string;
15318
+ } | {
15319
+ /**
15320
+ * Format: uri
15321
+ * @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.
15322
+ */
15323
+ url: string;
15324
+ /**
15325
+ * @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.
15326
+ * @default Untitled Design
15327
+ */
15328
+ name?: string;
15329
+ };
15164
15330
  };
15165
15331
  };
15166
15332
  };
@@ -17076,6 +17242,72 @@ interface operations {
17076
17242
  };
17077
17243
  };
17078
17244
  };
17245
+ /**
17246
+ * Shares a design (pattern), view, or filter with a list of email
17247
+ * addresses. When `share` is true, the content's visibility is flipped to
17248
+ * public and an invitation email is sent to each recipient. When `share`
17249
+ * is false, visibility is reverted to private. Only the owner of the
17250
+ * content may change its sharing mode.
17251
+ */
17252
+ shareDesign: {
17253
+ responses: {
17254
+ /** Content shared. */
17255
+ 200: unknown;
17256
+ /** Invalid request body or request param */
17257
+ 400: {
17258
+ content: {
17259
+ "text/plain": string;
17260
+ };
17261
+ };
17262
+ /** Expired JWT token used or insufficient privilege */
17263
+ 401: {
17264
+ content: {
17265
+ "text/plain": string;
17266
+ };
17267
+ };
17268
+ /** Caller is not the owner of the content. */
17269
+ 403: unknown;
17270
+ /** Result not found */
17271
+ 404: {
17272
+ content: {
17273
+ "text/plain": string;
17274
+ };
17275
+ };
17276
+ /** Internal server error */
17277
+ 500: {
17278
+ content: {
17279
+ "text/plain": string;
17280
+ };
17281
+ };
17282
+ };
17283
+ /** Body for sharing a design, filter, or view with recipients by email. */
17284
+ requestBody: {
17285
+ content: {
17286
+ "application/json": {
17287
+ /**
17288
+ * Format: uuid
17289
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
17290
+ */
17291
+ content_id: string;
17292
+ /**
17293
+ * @description The kind of content being shared. Must match the entity the handler
17294
+ * expects — `pattern` and `filter` are valid on the design share
17295
+ * endpoint; `view` is valid on the view share endpoint.
17296
+ *
17297
+ * @enum {string}
17298
+ */
17299
+ content_type: "pattern" | "filter" | "view";
17300
+ /** @description Email addresses of the recipients to share this content with. */
17301
+ emails: string[];
17302
+ /**
17303
+ * @description When true, flip visibility to public and send invitation emails to
17304
+ * the recipients. When false, revert visibility to private.
17305
+ */
17306
+ share: boolean;
17307
+ };
17308
+ };
17309
+ };
17310
+ };
17079
17311
  getCatalogRequest: {
17080
17312
  parameters: {
17081
17313
  query: {
@@ -36,7 +36,18 @@ interface paths {
36
36
  get: operations["getDesignPatternFile"];
37
37
  };
38
38
  "/api/content/patterns/upload/{id}": {
39
- /** Uploads or replaces the source content for a design. */
39
+ /**
40
+ * Replaces the raw source content blob stored alongside a design.
41
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
42
+ * reads the entire request body as opaque bytes via io.ReadAll and
43
+ * persists them without interpretation, so the content-type is
44
+ * whatever the uploader sent — `application/octet-stream` is the
45
+ * canonical choice. The previous declaration reused
46
+ * MesheryPatternImportRequestBody under multipart/form-data, which
47
+ * the handler never parses; it remained wired up solely to share
48
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
49
+ * for the drift analysis.
50
+ */
40
51
  post: operations["upsertPatternSourceContent"];
41
52
  };
42
53
  "/api/pattern/import": {
@@ -70,6 +81,16 @@ interface paths {
70
81
  "/api/resource/{resourceType}/share/{resourceId}/{actorType}": {
71
82
  get: operations["getResourceAccessActorsByType"];
72
83
  };
84
+ "/api/content/design/share": {
85
+ /**
86
+ * Shares a design (pattern), view, or filter with a list of email
87
+ * addresses. When `share` is true, the content's visibility is flipped to
88
+ * public and an invitation email is sent to each recipient. When `share`
89
+ * is false, visibility is reverted to private. Only the owner of the
90
+ * content may change its sharing mode.
91
+ */
92
+ post: operations["shareDesign"];
93
+ };
73
94
  "/api/catalog/requests": {
74
95
  get: operations["getCatalogRequest"];
75
96
  };
@@ -5871,11 +5892,66 @@ interface components {
5871
5892
  /** @description Name of the mesherypatternrequestbody. */
5872
5893
  name?: string;
5873
5894
  };
5895
+ /** @description Body for POST /api/pattern/import. Consumed by the server as application/json. Exactly one of two variants must be supplied: a File Import carrying base64-encoded bytes plus a file name, or a URL Import naming a remote location the server will fetch. Sending both variants at once, or neither, is rejected with 400. */
5896
+ MesheryPatternImportRequestBody: {
5897
+ /**
5898
+ * Format: byte
5899
+ * @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.
5900
+ */
5901
+ file: string;
5902
+ /** @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. */
5903
+ file_name: string;
5904
+ /**
5905
+ * @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.
5906
+ * @default Untitled Design
5907
+ */
5908
+ name?: string;
5909
+ } | {
5910
+ /**
5911
+ * Format: uri
5912
+ * @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.
5913
+ */
5914
+ url: string;
5915
+ /**
5916
+ * @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.
5917
+ * @default Untitled Design
5918
+ */
5919
+ name?: string;
5920
+ };
5921
+ /**
5922
+ * File Import
5923
+ * @description Upload a design file from the local system. Both `file` and `file_name` are required; the server uses the file name to identify the file type (Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design).
5924
+ */
5925
+ MesheryPatternImportFilePayload: {
5926
+ /**
5927
+ * Format: byte
5928
+ * @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.
5929
+ */
5930
+ file: string;
5931
+ /** @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. */
5932
+ file_name: string;
5933
+ /**
5934
+ * @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.
5935
+ * @default Untitled Design
5936
+ */
5937
+ name?: string;
5938
+ };
5874
5939
  /**
5875
- * @description Choose the method you prefer to upload your design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online.
5876
- * @enum {object}
5940
+ * URL Import
5941
+ * @description Import a design by URL. The server will fetch the resource and derive the file type from the response.
5877
5942
  */
5878
- MesheryPatternImportRequestBody: "file" | "url";
5943
+ MesheryPatternImportURLPayload: {
5944
+ /**
5945
+ * Format: uri
5946
+ * @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.
5947
+ */
5948
+ url: string;
5949
+ /**
5950
+ * @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.
5951
+ * @default Untitled Design
5952
+ */
5953
+ name?: string;
5954
+ };
5879
5955
  /** @description Design-level preferences */
5880
5956
  DesignPreferences: {
5881
5957
  /** @description Map of available layers, where keys are layer names. */
@@ -7393,6 +7469,34 @@ interface components {
7393
7469
  [key: string]: unknown;
7394
7470
  }[];
7395
7471
  };
7472
+ /**
7473
+ * @description Payload for sharing a piece of content (design, filter, or view) with one
7474
+ * or more recipients by email. This schema backs both
7475
+ * `POST /api/content/design/share` and `POST /api/content/view/share`; the
7476
+ * server dispatches on `content_type` to decide which entity to mutate.
7477
+ */
7478
+ ContentSharePayload: {
7479
+ /**
7480
+ * Format: uuid
7481
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
7482
+ */
7483
+ content_id: string;
7484
+ /**
7485
+ * @description The kind of content being shared. Must match the entity the handler
7486
+ * expects — `pattern` and `filter` are valid on the design share
7487
+ * endpoint; `view` is valid on the view share endpoint.
7488
+ *
7489
+ * @enum {string}
7490
+ */
7491
+ content_type: "pattern" | "filter" | "view";
7492
+ /** @description Email addresses of the recipients to share this content with. */
7493
+ emails: string[];
7494
+ /**
7495
+ * @description When true, flip visibility to public and send invitation emails to
7496
+ * the recipients. When false, revert visibility to private.
7497
+ */
7498
+ share: boolean;
7499
+ };
7396
7500
  };
7397
7501
  responses: {
7398
7502
  /** Invalid request body or request param */
@@ -7447,6 +7551,33 @@ interface components {
7447
7551
  };
7448
7552
  };
7449
7553
  };
7554
+ /** Body for sharing a design, filter, or view with recipients by email. */
7555
+ contentSharePayload: {
7556
+ content: {
7557
+ "application/json": {
7558
+ /**
7559
+ * Format: uuid
7560
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
7561
+ */
7562
+ content_id: string;
7563
+ /**
7564
+ * @description The kind of content being shared. Must match the entity the handler
7565
+ * expects — `pattern` and `filter` are valid on the design share
7566
+ * endpoint; `view` is valid on the view share endpoint.
7567
+ *
7568
+ * @enum {string}
7569
+ */
7570
+ content_type: "pattern" | "filter" | "view";
7571
+ /** @description Email addresses of the recipients to share this content with. */
7572
+ emails: string[];
7573
+ /**
7574
+ * @description When true, flip visibility to public and send invitation emails to
7575
+ * the recipients. When false, revert visibility to private.
7576
+ */
7577
+ share: boolean;
7578
+ };
7579
+ };
7580
+ };
7450
7581
  };
7451
7582
  }
7452
7583
  interface operations {
@@ -15095,7 +15226,18 @@ interface operations {
15095
15226
  };
15096
15227
  };
15097
15228
  };
15098
- /** Uploads or replaces the source content for a design. */
15229
+ /**
15230
+ * Replaces the raw source content blob stored alongside a design.
15231
+ * The server (meshery-cloud's UpsertPatternSourceContent handler)
15232
+ * reads the entire request body as opaque bytes via io.ReadAll and
15233
+ * persists them without interpretation, so the content-type is
15234
+ * whatever the uploader sent — `application/octet-stream` is the
15235
+ * canonical choice. The previous declaration reused
15236
+ * MesheryPatternImportRequestBody under multipart/form-data, which
15237
+ * the handler never parses; it remained wired up solely to share
15238
+ * a schema ref with /api/pattern/import. See meshery/schemas#771
15239
+ * for the drift analysis.
15240
+ */
15099
15241
  upsertPatternSourceContent: {
15100
15242
  parameters: {
15101
15243
  path: {
@@ -15133,7 +15275,7 @@ interface operations {
15133
15275
  };
15134
15276
  requestBody: {
15135
15277
  content: {
15136
- "multipart/form-data": "file" | "url";
15278
+ "application/octet-stream": string;
15137
15279
  };
15138
15280
  };
15139
15281
  };
@@ -15160,7 +15302,31 @@ interface operations {
15160
15302
  };
15161
15303
  requestBody: {
15162
15304
  content: {
15163
- "multipart/form-data": "file" | "url";
15305
+ "application/json": {
15306
+ /**
15307
+ * Format: byte
15308
+ * @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.
15309
+ */
15310
+ file: string;
15311
+ /** @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. */
15312
+ file_name: string;
15313
+ /**
15314
+ * @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.
15315
+ * @default Untitled Design
15316
+ */
15317
+ name?: string;
15318
+ } | {
15319
+ /**
15320
+ * Format: uri
15321
+ * @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.
15322
+ */
15323
+ url: string;
15324
+ /**
15325
+ * @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.
15326
+ * @default Untitled Design
15327
+ */
15328
+ name?: string;
15329
+ };
15164
15330
  };
15165
15331
  };
15166
15332
  };
@@ -17076,6 +17242,72 @@ interface operations {
17076
17242
  };
17077
17243
  };
17078
17244
  };
17245
+ /**
17246
+ * Shares a design (pattern), view, or filter with a list of email
17247
+ * addresses. When `share` is true, the content's visibility is flipped to
17248
+ * public and an invitation email is sent to each recipient. When `share`
17249
+ * is false, visibility is reverted to private. Only the owner of the
17250
+ * content may change its sharing mode.
17251
+ */
17252
+ shareDesign: {
17253
+ responses: {
17254
+ /** Content shared. */
17255
+ 200: unknown;
17256
+ /** Invalid request body or request param */
17257
+ 400: {
17258
+ content: {
17259
+ "text/plain": string;
17260
+ };
17261
+ };
17262
+ /** Expired JWT token used or insufficient privilege */
17263
+ 401: {
17264
+ content: {
17265
+ "text/plain": string;
17266
+ };
17267
+ };
17268
+ /** Caller is not the owner of the content. */
17269
+ 403: unknown;
17270
+ /** Result not found */
17271
+ 404: {
17272
+ content: {
17273
+ "text/plain": string;
17274
+ };
17275
+ };
17276
+ /** Internal server error */
17277
+ 500: {
17278
+ content: {
17279
+ "text/plain": string;
17280
+ };
17281
+ };
17282
+ };
17283
+ /** Body for sharing a design, filter, or view with recipients by email. */
17284
+ requestBody: {
17285
+ content: {
17286
+ "application/json": {
17287
+ /**
17288
+ * Format: uuid
17289
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
17290
+ */
17291
+ content_id: string;
17292
+ /**
17293
+ * @description The kind of content being shared. Must match the entity the handler
17294
+ * expects — `pattern` and `filter` are valid on the design share
17295
+ * endpoint; `view` is valid on the view share endpoint.
17296
+ *
17297
+ * @enum {string}
17298
+ */
17299
+ content_type: "pattern" | "filter" | "view";
17300
+ /** @description Email addresses of the recipients to share this content with. */
17301
+ emails: string[];
17302
+ /**
17303
+ * @description When true, flip visibility to public and send invitation emails to
17304
+ * the recipients. When false, revert visibility to private.
17305
+ */
17306
+ share: boolean;
17307
+ };
17308
+ };
17309
+ };
17310
+ };
17079
17311
  getCatalogRequest: {
17080
17312
  parameters: {
17081
17313
  query: {