@meshery/schemas 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.mts +39 -4
- package/dist/api.d.ts +39 -4
- package/dist/api.js +2 -2
- package/dist/api.mjs +2 -2
- package/dist/cloudApi.d.mts +12600 -14467
- package/dist/cloudApi.d.ts +12600 -14467
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta2/team/Team.d.mts +28 -8
- package/dist/constructs/v1beta2/team/Team.d.ts +28 -8
- package/dist/constructs/v1beta2/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta2/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta3/design/Design.d.mts +2324 -14651
- package/dist/constructs/v1beta3/design/Design.d.ts +2324 -14651
- package/dist/constructs/v1beta3/design/DesignSchema.js +17 -471
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +17 -471
- package/dist/constructs/v1beta3/filter/Filter.d.mts +1366 -0
- package/dist/constructs/v1beta3/filter/Filter.d.ts +1366 -0
- package/dist/constructs/v1beta3/filter/Filter.js +1 -0
- package/dist/constructs/v1beta3/filter/Filter.mjs +0 -0
- package/dist/constructs/v1beta3/filter/FilterSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/filter/FilterSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/filter/FilterSchema.js +80 -0
- package/dist/constructs/v1beta3/filter/FilterSchema.mjs +80 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.mts +832 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +832 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.js +1 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.mjs +0 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.js +2 -0
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.mjs +2 -0
- package/dist/mesheryApi.d.mts +1094 -1086
- package/dist/mesheryApi.d.ts +1094 -1086
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
package/dist/api.d.mts
CHANGED
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
import * as _reduxjs_toolkit_query_react from '@reduxjs/toolkit/query/react';
|
|
2
|
-
import {
|
|
2
|
+
import { FetchBaseQueryError, BaseQueryFn } from '@reduxjs/toolkit/query/react';
|
|
3
3
|
import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
|
|
4
4
|
|
|
5
5
|
declare const SUPPORTED_SOCIAL_ACCOUNTS: string[];
|
|
6
6
|
declare const CURRENT_ORG_KEY = "Layer5-Current-Orgid";
|
|
7
7
|
declare const DEFAULT_DESIGN_VERSION = "0.0.1";
|
|
8
8
|
declare const MESHERY_PROD_URL = "https://playground.meshery.io/";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Structured MeshKit error metadata extracted from a non-2xx JSON response body.
|
|
11
|
+
*
|
|
12
|
+
* Field names are JS-side camelCase, mapped from the server's snake_case wire
|
|
13
|
+
* fields. Pairs with the meshery server migration that promotes every non-2xx
|
|
14
|
+
* response from `text/plain` to `application/json` with a MeshKit error envelope.
|
|
15
|
+
*/
|
|
16
|
+
interface MeshkitError {
|
|
17
|
+
/** Human-readable short description (`error` on the wire). */
|
|
18
|
+
message: string;
|
|
19
|
+
/** Structured error code, e.g. `meshery-server-1033`. */
|
|
20
|
+
code?: string;
|
|
21
|
+
/** Severity level, e.g. `ERROR`, `WARNING`, `FATAL`. */
|
|
22
|
+
severity?: string;
|
|
23
|
+
/** Probable causes that produced the error (`probable_cause` on the wire). */
|
|
24
|
+
probableCause?: string[];
|
|
25
|
+
/** Suggested remediations to recover (`suggested_remediation` on the wire). */
|
|
26
|
+
suggestedRemediation?: string[];
|
|
27
|
+
/** Long-form description lines (`long_description` on the wire). */
|
|
28
|
+
longDescription?: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Extension of {@link FetchBaseQueryError} that carries optional MeshKit
|
|
32
|
+
* metadata on `meshkit`. The raw response body is still available on `data`
|
|
33
|
+
* for backward compatibility — `meshkit` is undefined when the response was
|
|
34
|
+
* not a MeshKit JSON envelope.
|
|
35
|
+
*
|
|
36
|
+
* Defined as an intersection rather than an `interface ... extends` because
|
|
37
|
+
* `FetchBaseQueryError` is a discriminated union (HTTP status / FETCH_ERROR /
|
|
38
|
+
* PARSING_ERROR / TIMEOUT_ERROR / CUSTOM_ERROR), and TypeScript only allows
|
|
39
|
+
* extending object types with statically known members.
|
|
40
|
+
*/
|
|
41
|
+
type MeshkitFetchBaseQueryError = FetchBaseQueryError & {
|
|
42
|
+
meshkit?: MeshkitError;
|
|
43
|
+
};
|
|
44
|
+
declare const cloudBaseApi: _reduxjs_toolkit_query.Api<BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {}, "cloudRtkSchemasApi", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_query_react.reactHooksModuleName>;
|
|
45
|
+
declare const mesheryBaseApi: _reduxjs_toolkit_query.Api<BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {}, "mesheryRtkSchemasApi", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_query_react.reactHooksModuleName>;
|
|
11
46
|
|
|
12
|
-
export { CURRENT_ORG_KEY, DEFAULT_DESIGN_VERSION, MESHERY_PROD_URL, SUPPORTED_SOCIAL_ACCOUNTS, cloudBaseApi, mesheryBaseApi };
|
|
47
|
+
export { CURRENT_ORG_KEY, DEFAULT_DESIGN_VERSION, MESHERY_PROD_URL, type MeshkitError, type MeshkitFetchBaseQueryError, SUPPORTED_SOCIAL_ACCOUNTS, cloudBaseApi, mesheryBaseApi };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,12 +1,47 @@
|
|
|
1
1
|
import * as _reduxjs_toolkit_query_react from '@reduxjs/toolkit/query/react';
|
|
2
|
-
import {
|
|
2
|
+
import { FetchBaseQueryError, BaseQueryFn } from '@reduxjs/toolkit/query/react';
|
|
3
3
|
import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
|
|
4
4
|
|
|
5
5
|
declare const SUPPORTED_SOCIAL_ACCOUNTS: string[];
|
|
6
6
|
declare const CURRENT_ORG_KEY = "Layer5-Current-Orgid";
|
|
7
7
|
declare const DEFAULT_DESIGN_VERSION = "0.0.1";
|
|
8
8
|
declare const MESHERY_PROD_URL = "https://playground.meshery.io/";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Structured MeshKit error metadata extracted from a non-2xx JSON response body.
|
|
11
|
+
*
|
|
12
|
+
* Field names are JS-side camelCase, mapped from the server's snake_case wire
|
|
13
|
+
* fields. Pairs with the meshery server migration that promotes every non-2xx
|
|
14
|
+
* response from `text/plain` to `application/json` with a MeshKit error envelope.
|
|
15
|
+
*/
|
|
16
|
+
interface MeshkitError {
|
|
17
|
+
/** Human-readable short description (`error` on the wire). */
|
|
18
|
+
message: string;
|
|
19
|
+
/** Structured error code, e.g. `meshery-server-1033`. */
|
|
20
|
+
code?: string;
|
|
21
|
+
/** Severity level, e.g. `ERROR`, `WARNING`, `FATAL`. */
|
|
22
|
+
severity?: string;
|
|
23
|
+
/** Probable causes that produced the error (`probable_cause` on the wire). */
|
|
24
|
+
probableCause?: string[];
|
|
25
|
+
/** Suggested remediations to recover (`suggested_remediation` on the wire). */
|
|
26
|
+
suggestedRemediation?: string[];
|
|
27
|
+
/** Long-form description lines (`long_description` on the wire). */
|
|
28
|
+
longDescription?: string[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Extension of {@link FetchBaseQueryError} that carries optional MeshKit
|
|
32
|
+
* metadata on `meshkit`. The raw response body is still available on `data`
|
|
33
|
+
* for backward compatibility — `meshkit` is undefined when the response was
|
|
34
|
+
* not a MeshKit JSON envelope.
|
|
35
|
+
*
|
|
36
|
+
* Defined as an intersection rather than an `interface ... extends` because
|
|
37
|
+
* `FetchBaseQueryError` is a discriminated union (HTTP status / FETCH_ERROR /
|
|
38
|
+
* PARSING_ERROR / TIMEOUT_ERROR / CUSTOM_ERROR), and TypeScript only allows
|
|
39
|
+
* extending object types with statically known members.
|
|
40
|
+
*/
|
|
41
|
+
type MeshkitFetchBaseQueryError = FetchBaseQueryError & {
|
|
42
|
+
meshkit?: MeshkitError;
|
|
43
|
+
};
|
|
44
|
+
declare const cloudBaseApi: _reduxjs_toolkit_query.Api<BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {}, "cloudRtkSchemasApi", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_query_react.reactHooksModuleName>;
|
|
45
|
+
declare const mesheryBaseApi: _reduxjs_toolkit_query.Api<BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, MeshkitFetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {}, "mesheryRtkSchemasApi", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_query_react.reactHooksModuleName>;
|
|
11
46
|
|
|
12
|
-
export { CURRENT_ORG_KEY, DEFAULT_DESIGN_VERSION, MESHERY_PROD_URL, SUPPORTED_SOCIAL_ACCOUNTS, cloudBaseApi, mesheryBaseApi };
|
|
47
|
+
export { CURRENT_ORG_KEY, DEFAULT_DESIGN_VERSION, MESHERY_PROD_URL, type MeshkitError, type MeshkitFetchBaseQueryError, SUPPORTED_SOCIAL_ACCOUNTS, cloudBaseApi, mesheryBaseApi };
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var react=require('@reduxjs/toolkit/query/react');var
|
|
2
|
-
exports.CURRENT_ORG_KEY=
|
|
1
|
+
'use strict';var react=require('@reduxjs/toolkit/query/react');var k=["github","google"],p="Layer5-Current-Orgid",B="0.0.1",f="https://playground.meshery.io/",n,h=(n=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?n:"",c,y=(c=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?c:"";function d(o){return async(i,a,s)=>{let e=await o(i,a,s);if(e.error){let t=e.error.data;if(typeof t=="object"&&t!==null){let r=t;if(typeof r.error=="string")return {error:{...e.error,meshkit:{message:r.error,code:r.code,severity:r.severity,probableCause:r.probable_cause,suggestedRemediation:r.suggested_remediation,longDescription:r.long_description}},meta:e.meta}}return {error:e.error,meta:e.meta}}return {data:e.data,meta:e.meta}}}var E=react.fetchBaseQuery({baseUrl:h,credentials:"include",prepareHeaders:(o,{getState:i})=>{var t;let s=(t=i().organization)==null?void 0:t.value,e=s==null?void 0:s.id;return e&&o.set(p,e),o}}),l=d(E),R=d(react.fetchBaseQuery({baseUrl:y,credentials:"include"})),Q=react.createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})}),S=react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:R,tagTypes:[],endpoints:()=>({})});
|
|
2
|
+
exports.CURRENT_ORG_KEY=p;exports.DEFAULT_DESIGN_VERSION=B;exports.MESHERY_PROD_URL=f;exports.SUPPORTED_SOCIAL_ACCOUNTS=k;exports.cloudBaseApi=Q;exports.mesheryBaseApi=S;
|
package/dist/api.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var
|
|
2
|
-
export{
|
|
1
|
+
import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var k=["github","google"],p="Layer5-Current-Orgid",B="0.0.1",f="https://playground.meshery.io/",n,h=(n=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?n:"",c,y=(c=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?c:"";function d(o){return async(i,a,s)=>{let e=await o(i,a,s);if(e.error){let t=e.error.data;if(typeof t=="object"&&t!==null){let r=t;if(typeof r.error=="string")return {error:{...e.error,meshkit:{message:r.error,code:r.code,severity:r.severity,probableCause:r.probable_cause,suggestedRemediation:r.suggested_remediation,longDescription:r.long_description}},meta:e.meta}}return {error:e.error,meta:e.meta}}return {data:e.data,meta:e.meta}}}var E=fetchBaseQuery({baseUrl:h,credentials:"include",prepareHeaders:(o,{getState:i})=>{var t;let s=(t=i().organization)==null?void 0:t.value,e=s==null?void 0:s.id;return e&&o.set(p,e),o}}),l=d(E),R=d(fetchBaseQuery({baseUrl:y,credentials:"include"})),Q=createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})}),S=createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:R,tagTypes:[],endpoints:()=>({})});
|
|
2
|
+
export{p as CURRENT_ORG_KEY,B as DEFAULT_DESIGN_VERSION,f as MESHERY_PROD_URL,k as SUPPORTED_SOCIAL_ACCOUNTS,Q as cloudBaseApi,S as mesheryBaseApi};
|