@meshery/schemas 1.3.65 → 1.3.67

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 (34) hide show
  1. package/dist/cloudApi.d.mts +7337 -4312
  2. package/dist/cloudApi.d.ts +7337 -4312
  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 +163 -23
  15. package/dist/constructs/v1beta3/design/DesignSchema.js +7 -7
  16. package/dist/constructs/v1beta3/design/DesignSchema.mjs +7 -7
  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/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 caller has no GitHub App installation with 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. The server resolves the tracked ref to a commit, reads the file at that commit, and records it in `location.commitSha`.
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 distinct `403` whose MeshKit error asks for re-authorization means the caller's GitHub connection predates verification; re-authorize it (see `startGithubAuthorization`) before use; `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;
@@ -170,7 +170,7 @@ export interface paths {
170
170
  head?: never;
171
171
  /**
172
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 caller has no GitHub App installation with access to the repository; `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.
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 distinct `403` whose MeshKit error asks for re-authorization means the caller's GitHub connection predates verification; re-authorize it (see `startGithubAuthorization`) before use; `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
174
  */
175
175
  patch: operations["updatePatternSource"];
176
176
  trace?: never;
@@ -223,7 +223,7 @@ export interface paths {
223
223
  put?: never;
224
224
  /**
225
225
  * Import files from a GitHub repository as designs
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 caller has no GitHub App installation with access to the repository; `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`.
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 distinct `403` whose MeshKit error asks for re-authorization means the caller's GitHub connection predates verification; re-authorize it (see `startGithubAuthorization`) before use; `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`.
227
227
  */
228
228
  post: operations["importGithubRepository"];
229
229
  delete?: never;
@@ -241,7 +241,7 @@ export interface paths {
241
241
  };
242
242
  /**
243
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 caller has no GitHub App installation with access to the repository; `502` means GitHub could not be reached or rejected the request.
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 distinct `403` whose MeshKit error asks for re-authorization means the caller's GitHub connection predates verification; re-authorize it (see `startGithubAuthorization`) before use; `502` means GitHub could not be reached or rejected the request.
245
245
  */
246
246
  get: operations["getGithubRepositoryBranches"];
247
247
  put?: never;
@@ -4538,15 +4538,6 @@ export interface components {
4538
4538
  "text/plain": string;
4539
4539
  };
4540
4540
  };
4541
- /** @description Forbidden */
4542
- 403: {
4543
- headers: {
4544
- [name: string]: unknown;
4545
- };
4546
- content: {
4547
- "text/plain": string;
4548
- };
4549
- };
4550
4541
  /** @description Result not found */
4551
4542
  404: {
4552
4543
  headers: {
@@ -4574,13 +4565,50 @@ export interface components {
4574
4565
  "text/plain": string;
4575
4566
  };
4576
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, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
4577
4591
  /** @description Bad gateway - an upstream service the operation depends on could not be reached or rejected the request */
4578
- 502: {
4592
+ MeshkitError502: {
4579
4593
  headers: {
4580
4594
  [name: string]: unknown;
4581
4595
  };
4582
4596
  content: {
4583
- "text/plain": string;
4597
+ "application/json": {
4598
+ /** @description The sentence the caller is shown. */
4599
+ error: string;
4600
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
4584
4612
  };
4585
4613
  };
4586
4614
  };
@@ -7030,7 +7058,21 @@ export interface operations {
7030
7058
  [name: string]: unknown;
7031
7059
  };
7032
7060
  content: {
7033
- "text/plain": string;
7061
+ "application/json": {
7062
+ /** @description The sentence the caller is shown. */
7063
+ error: string;
7064
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
7034
7076
  };
7035
7077
  };
7036
7078
  /** @description Result not found */
@@ -7066,7 +7108,21 @@ export interface operations {
7066
7108
  [name: string]: unknown;
7067
7109
  };
7068
7110
  content: {
7069
- "text/plain": string;
7111
+ "application/json": {
7112
+ /** @description The sentence the caller is shown. */
7113
+ error: string;
7114
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
7070
7126
  };
7071
7127
  };
7072
7128
  };
@@ -7494,7 +7550,21 @@ export interface operations {
7494
7550
  [name: string]: unknown;
7495
7551
  };
7496
7552
  content: {
7497
- "text/plain": string;
7553
+ "application/json": {
7554
+ /** @description The sentence the caller is shown. */
7555
+ error: string;
7556
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
7498
7568
  };
7499
7569
  };
7500
7570
  /** @description Result not found */
@@ -7530,7 +7600,21 @@ export interface operations {
7530
7600
  [name: string]: unknown;
7531
7601
  };
7532
7602
  content: {
7533
- "text/plain": string;
7603
+ "application/json": {
7604
+ /** @description The sentence the caller is shown. */
7605
+ error: string;
7606
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
7534
7618
  };
7535
7619
  };
7536
7620
  };
@@ -8906,7 +8990,21 @@ export interface operations {
8906
8990
  [name: string]: unknown;
8907
8991
  };
8908
8992
  content: {
8909
- "text/plain": string;
8993
+ "application/json": {
8994
+ /** @description The sentence the caller is shown. */
8995
+ error: string;
8996
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
8910
9008
  };
8911
9009
  };
8912
9010
  /** @description Result not found */
@@ -8933,7 +9031,21 @@ export interface operations {
8933
9031
  [name: string]: unknown;
8934
9032
  };
8935
9033
  content: {
8936
- "text/plain": string;
9034
+ "application/json": {
9035
+ /** @description The sentence the caller is shown. */
9036
+ error: string;
9037
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
8937
9049
  };
8938
9050
  };
8939
9051
  };
@@ -9005,7 +9117,21 @@ export interface operations {
9005
9117
  [name: string]: unknown;
9006
9118
  };
9007
9119
  content: {
9008
- "text/plain": string;
9120
+ "application/json": {
9121
+ /** @description The sentence the caller is shown. */
9122
+ error: string;
9123
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
9009
9135
  };
9010
9136
  };
9011
9137
  /** @description Result not found */
@@ -9032,7 +9158,21 @@ export interface operations {
9032
9158
  [name: string]: unknown;
9033
9159
  };
9034
9160
  content: {
9035
- "text/plain": string;
9161
+ "application/json": {
9162
+ /** @description The sentence the caller is shown. */
9163
+ error: string;
9164
+ /** @description MeshKit error code, a component-scoped identifier allocated by the emitting service (e.g. `<component>-<number>`); it is not a stable part of this contract. 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
+ };
9036
9176
  };
9037
9177
  };
9038
9178
  };