@meshery/schemas 1.3.25 → 1.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudApi.d.mts +1690 -1690
- package/dist/cloudApi.d.ts +1690 -1690
- package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
- package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +4 -4
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +4 -4
- package/dist/constructs/v1beta1/model/ModelSchema.js +3 -3
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +3 -3
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +11 -11
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +11 -11
- package/dist/constructs/v1beta1/system/System.d.ts +445 -0
- package/dist/constructs/v1beta1/system/SystemSchema.js +1 -1
- package/dist/constructs/v1beta1/system/SystemSchema.mjs +1 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
- package/dist/constructs/v1beta2/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta2/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta2/design/DesignSchema.js +22 -22
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +22 -22
- package/dist/constructs/v1beta2/model/ModelSchema.js +3 -3
- package/dist/constructs/v1beta2/model/ModelSchema.mjs +3 -3
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.js +1 -1
- package/dist/constructs/v1beta2/relationship/RelationshipSchema.mjs +1 -1
- package/dist/constructs/v1beta2/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta2/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta3/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta3/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta3/connection/Connection.d.ts +444 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta3/design/DesignSchema.js +2 -2
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +2 -2
- package/dist/constructs/v1beta3/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta3/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +2 -2
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +2 -2
- package/dist/index.js +42 -42
- package/dist/index.mjs +42 -42
- package/dist/mesheryApi.d.mts +2096 -695
- package/dist/mesheryApi.d.ts +2096 -695
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -56,6 +56,26 @@ export interface paths {
|
|
|
56
56
|
patch?: never;
|
|
57
57
|
trace?: never;
|
|
58
58
|
};
|
|
59
|
+
"/api/integrations/connections/{connectionId}/actions": {
|
|
60
|
+
parameters: {
|
|
61
|
+
query?: never;
|
|
62
|
+
header?: never;
|
|
63
|
+
path?: never;
|
|
64
|
+
cookie?: never;
|
|
65
|
+
};
|
|
66
|
+
get?: never;
|
|
67
|
+
put?: never;
|
|
68
|
+
/**
|
|
69
|
+
* Perform an action on a connection
|
|
70
|
+
* @description Perform a side-effecting operation on a connection (as opposed to a field update via PUT). The action is selected by the `action` discriminator in the request body. Currently supports switching the MeshSync deployment mode for a kubernetes connection, which redeploys MeshSync (operator vs embedded) for the connection's cluster; the server owns the connection metadata merge so callers only send the intent.
|
|
71
|
+
*/
|
|
72
|
+
post: operations["performConnectionAction"];
|
|
73
|
+
delete?: never;
|
|
74
|
+
options?: never;
|
|
75
|
+
head?: never;
|
|
76
|
+
patch?: never;
|
|
77
|
+
trace?: never;
|
|
78
|
+
};
|
|
59
79
|
"/api/integrations/connections/meshery/{mesheryServerId}": {
|
|
60
80
|
parameters: {
|
|
61
81
|
query?: never;
|
|
@@ -1157,6 +1177,19 @@ export interface components {
|
|
|
1157
1177
|
/** @description Human-readable explanation of when or why this transition occurs. */
|
|
1158
1178
|
description?: string;
|
|
1159
1179
|
};
|
|
1180
|
+
/** @description A side-effecting operation to perform on a connection via POST /api/integrations/connections/{connectionId}/actions. The `action` field selects the operation; operation-specific fields carry its parameters. Unlike PUT (which updates resource fields), the server owns any resulting metadata merge and cluster-side effects. */
|
|
1181
|
+
ConnectionActionRequest: {
|
|
1182
|
+
/**
|
|
1183
|
+
* @description The operation to perform on the connection.
|
|
1184
|
+
* @enum {string}
|
|
1185
|
+
*/
|
|
1186
|
+
action: "setMeshsyncMode";
|
|
1187
|
+
/**
|
|
1188
|
+
* @description Target MeshSync deployment mode. Required when `action` is `setMeshsyncMode`; the server redeploys MeshSync (operator vs embedded) for the connection's cluster.
|
|
1189
|
+
* @enum {string}
|
|
1190
|
+
*/
|
|
1191
|
+
mode?: "operator" | "embedded";
|
|
1192
|
+
};
|
|
1160
1193
|
/** @description Payload for creating or updating a connection */
|
|
1161
1194
|
ConnectionPayload: {
|
|
1162
1195
|
/**
|
|
@@ -3679,6 +3712,417 @@ export interface operations {
|
|
|
3679
3712
|
};
|
|
3680
3713
|
};
|
|
3681
3714
|
};
|
|
3715
|
+
performConnectionAction: {
|
|
3716
|
+
parameters: {
|
|
3717
|
+
query?: never;
|
|
3718
|
+
header?: never;
|
|
3719
|
+
path: {
|
|
3720
|
+
/** @description Connection ID */
|
|
3721
|
+
connectionId: string;
|
|
3722
|
+
};
|
|
3723
|
+
cookie?: never;
|
|
3724
|
+
};
|
|
3725
|
+
requestBody: {
|
|
3726
|
+
content: {
|
|
3727
|
+
"application/json": {
|
|
3728
|
+
/**
|
|
3729
|
+
* @description The operation to perform on the connection.
|
|
3730
|
+
* @enum {string}
|
|
3731
|
+
*/
|
|
3732
|
+
action: "setMeshsyncMode";
|
|
3733
|
+
/**
|
|
3734
|
+
* @description Target MeshSync deployment mode. Required when `action` is `setMeshsyncMode`; the server redeploys MeshSync (operator vs embedded) for the connection's cluster.
|
|
3735
|
+
* @enum {string}
|
|
3736
|
+
*/
|
|
3737
|
+
mode?: "operator" | "embedded";
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
};
|
|
3741
|
+
responses: {
|
|
3742
|
+
/** @description The updated connection after the action was applied. */
|
|
3743
|
+
200: {
|
|
3744
|
+
headers: {
|
|
3745
|
+
[name: string]: unknown;
|
|
3746
|
+
};
|
|
3747
|
+
content: {
|
|
3748
|
+
"application/json": {
|
|
3749
|
+
/**
|
|
3750
|
+
* Format: uuid
|
|
3751
|
+
* @description Connection ID
|
|
3752
|
+
*/
|
|
3753
|
+
id: string;
|
|
3754
|
+
/** @description Connection Name */
|
|
3755
|
+
name: string;
|
|
3756
|
+
/** @description Human-readable description of the connection and its purpose. */
|
|
3757
|
+
description?: string;
|
|
3758
|
+
/**
|
|
3759
|
+
* Format: uri
|
|
3760
|
+
* @description URL of the remote resource this connection points to (e.g. the Helm repository URL, the Kubernetes API server endpoint, the Grafana instance URL).
|
|
3761
|
+
*/
|
|
3762
|
+
url?: string;
|
|
3763
|
+
/**
|
|
3764
|
+
* Format: uuid
|
|
3765
|
+
* @description Associated Credential ID
|
|
3766
|
+
*/
|
|
3767
|
+
credentialId?: string;
|
|
3768
|
+
/** @description Connection Type (platform, telemetry, collaboration) */
|
|
3769
|
+
type: string;
|
|
3770
|
+
/** @description Connection Subtype (cloud, identity, metrics, chat, git, orchestration) */
|
|
3771
|
+
subType: string;
|
|
3772
|
+
/** @description Connection Kind (meshery, kubernetes, prometheus, grafana, gke, aws, azure, slack, github) */
|
|
3773
|
+
kind: string;
|
|
3774
|
+
/** @description Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models */
|
|
3775
|
+
modelReference?: {
|
|
3776
|
+
/**
|
|
3777
|
+
* Format: uuid
|
|
3778
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
3779
|
+
*/
|
|
3780
|
+
id: string;
|
|
3781
|
+
/**
|
|
3782
|
+
* @description The unique name for the model within the scope of a registrant.
|
|
3783
|
+
* @example cert-manager
|
|
3784
|
+
*/
|
|
3785
|
+
name: string;
|
|
3786
|
+
/** @description Version of the model definition. */
|
|
3787
|
+
version: string;
|
|
3788
|
+
/**
|
|
3789
|
+
* @description Human-readable name for the model.
|
|
3790
|
+
* @example Cert Manager
|
|
3791
|
+
*/
|
|
3792
|
+
displayName: string;
|
|
3793
|
+
/** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
|
|
3794
|
+
model: {
|
|
3795
|
+
/** @description Version of the model as defined by the registrant. */
|
|
3796
|
+
version: string;
|
|
3797
|
+
};
|
|
3798
|
+
registrant: {
|
|
3799
|
+
/** @description Kind of the registrant. */
|
|
3800
|
+
kind: string;
|
|
3801
|
+
};
|
|
3802
|
+
};
|
|
3803
|
+
/** @description Additional connection metadata */
|
|
3804
|
+
metadata?: Record<string, never>;
|
|
3805
|
+
/** @description Schema for the credential Associated with the connection */
|
|
3806
|
+
credentialSchema?: Record<string, never>;
|
|
3807
|
+
/** @description Schema for the connection */
|
|
3808
|
+
connectionSchema?: Record<string, never>;
|
|
3809
|
+
/** @description Visualization styles for the connection, including svgColor and svgWhite used for UI representation. */
|
|
3810
|
+
styles?: ({
|
|
3811
|
+
/** @description Primary color of the component used for UI representation. */
|
|
3812
|
+
primaryColor: string;
|
|
3813
|
+
/** @description Secondary color of the entity used for UI representation. */
|
|
3814
|
+
secondaryColor?: string;
|
|
3815
|
+
/** @description White SVG of the entity used for UI representation on dark background. */
|
|
3816
|
+
svgWhite: string;
|
|
3817
|
+
/** @description Colored SVG of the entity used for UI representation on light background. */
|
|
3818
|
+
svgColor: string;
|
|
3819
|
+
/** @description Complete SVG of the entity used for UI representation, often inclusive of background. */
|
|
3820
|
+
svgComplete: string;
|
|
3821
|
+
/** @description The color of the element's label. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3822
|
+
color?: string;
|
|
3823
|
+
/** @description The opacity of the label text, including its outline. */
|
|
3824
|
+
textOpacity?: number;
|
|
3825
|
+
/** @description A comma-separated list of font names to use on the label text. */
|
|
3826
|
+
fontFamily?: string;
|
|
3827
|
+
/** @description The size of the label text. */
|
|
3828
|
+
fontSize?: string;
|
|
3829
|
+
/** @description A CSS font style to be applied to the label text. */
|
|
3830
|
+
fontStyle?: string;
|
|
3831
|
+
/** @description A CSS font weight to be applied to the label text. */
|
|
3832
|
+
fontWeight?: string;
|
|
3833
|
+
/**
|
|
3834
|
+
* @description A transformation to apply to the label text
|
|
3835
|
+
* @enum {string}
|
|
3836
|
+
*/
|
|
3837
|
+
textTransform?: "none" | "uppercase" | "lowercase";
|
|
3838
|
+
/** @description The opacity of the element, ranging from 0 to 1. Note that the opacity of a compound node parent affects the effective opacity of its children. */
|
|
3839
|
+
opacity?: number;
|
|
3840
|
+
/** @description An integer value that affects the relative draw order of elements. In general, an element with a higher z-index will be drawn on top of an element with a lower z-index. Note that edges are under nodes despite z-index. */
|
|
3841
|
+
zIndex?: number;
|
|
3842
|
+
/** @description The text to display for an element's label. Can give a path, e.g. data(id) will label with the elements id */
|
|
3843
|
+
label?: string;
|
|
3844
|
+
/** @description The animation to apply to the element. example ripple,bounce,etc */
|
|
3845
|
+
animation?: Record<string, never>;
|
|
3846
|
+
} & {
|
|
3847
|
+
[key: string]: unknown;
|
|
3848
|
+
}) & {
|
|
3849
|
+
/**
|
|
3850
|
+
* @description The shape of the node's body. Note that each shape fits within the specified width and height, and so you may have to adjust width and height if you desire an equilateral shape (i.e. width !== height for several equilateral shapes)
|
|
3851
|
+
* @enum {string}
|
|
3852
|
+
*/
|
|
3853
|
+
shape: "ellipse" | "triangle" | "round-triangle" | "rectangle" | "round-rectangle" | "bottom-round-rectangle" | "cut-rectangle" | "barrel" | "rhomboid" | "diamond" | "round-diamond" | "pentagon" | "round-pentagon" | "hexagon" | "round-hexagon" | "concave-hexagon" | "heptagon" | "round-heptagon" | "octagon" | "round-octagon" | "star" | "tag" | "round-tag" | "vee" | "polygon";
|
|
3854
|
+
/** @description The position of the node. If the position is set, the node is drawn at that position in the given dimensions. If the position is not set, the node is drawn at a random position. */
|
|
3855
|
+
position?: {
|
|
3856
|
+
/** @description The x-coordinate of the node. */
|
|
3857
|
+
x: number;
|
|
3858
|
+
/** @description The y-coordinate of the node. */
|
|
3859
|
+
y: number;
|
|
3860
|
+
};
|
|
3861
|
+
/** @description The text to display for an element's body. Can give a path, e.g. data(id) will label with the elements id */
|
|
3862
|
+
bodyText?: string;
|
|
3863
|
+
/**
|
|
3864
|
+
* @description How to wrap the text in the node. Can be 'none', 'wrap', or 'ellipsis'.
|
|
3865
|
+
* @enum {string}
|
|
3866
|
+
*/
|
|
3867
|
+
bodyTextWrap?: "none" | "wrap" | "ellipsis";
|
|
3868
|
+
/** @description The maximum width for wrapping text in the node. */
|
|
3869
|
+
bodyTextMaxWidth?: string;
|
|
3870
|
+
/** @description The opacity of the node's body text, including its outline. */
|
|
3871
|
+
bodyTextOpacity?: number;
|
|
3872
|
+
/** @description The colour of the node's body text background. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3873
|
+
bodyTextBackgroundColor?: string;
|
|
3874
|
+
/** @description The size of the node's body text. */
|
|
3875
|
+
bodyTextFontSize?: number;
|
|
3876
|
+
/** @description The colour of the node's body text. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3877
|
+
bodyTextColor?: string;
|
|
3878
|
+
/** @description A CSS font weight to be applied to the node's body text. */
|
|
3879
|
+
bodyTextFontWeight?: string;
|
|
3880
|
+
/** @description A CSS horizontal alignment to be applied to the node's body text. */
|
|
3881
|
+
bodyTextHorizontalAlign?: string;
|
|
3882
|
+
/** @description A CSS text decoration to be applied to the node's body text. */
|
|
3883
|
+
bodyTextDecoration?: string;
|
|
3884
|
+
/** @description A CSS vertical alignment to be applied to the node's body text. */
|
|
3885
|
+
bodyTextVerticalAlign?: string;
|
|
3886
|
+
/** @description The width of the node's body or the width of an edge's line. */
|
|
3887
|
+
width?: number;
|
|
3888
|
+
/** @description The height of the node's body */
|
|
3889
|
+
height?: number;
|
|
3890
|
+
/**
|
|
3891
|
+
* Format: uri
|
|
3892
|
+
* @description The URL that points to the image to show in the node.
|
|
3893
|
+
*/
|
|
3894
|
+
backgroundImage?: string;
|
|
3895
|
+
/** @description The colour of the node's body. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3896
|
+
backgroundColor?: string;
|
|
3897
|
+
/** @description Blackens the node's body for values from 0 to 1; whitens the node's body for values from 0 to -1. */
|
|
3898
|
+
backgroundBlacken?: number;
|
|
3899
|
+
/** @description The opacity level of the node's background colour */
|
|
3900
|
+
backgroundOpacity?: number;
|
|
3901
|
+
/** @description The x position of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px) */
|
|
3902
|
+
backgroundPositionX?: string;
|
|
3903
|
+
/** @description The y position of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px) */
|
|
3904
|
+
backgroundPositionY?: string;
|
|
3905
|
+
/** @description The x offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px) */
|
|
3906
|
+
backgroundOffsetX?: string;
|
|
3907
|
+
/** @description The y offset of the background image, measured in percent (e.g. 50%) or pixels (e.g. 10px) */
|
|
3908
|
+
backgroundOffsetY?: string;
|
|
3909
|
+
/**
|
|
3910
|
+
* @description How the background image is fit to the node. Can be 'none', 'contain', or 'cover'.
|
|
3911
|
+
* @enum {string}
|
|
3912
|
+
*/
|
|
3913
|
+
backgroundFit?: "none" | "contain" | "cover";
|
|
3914
|
+
/**
|
|
3915
|
+
* @description How the background image is clipped to the node. Can be 'none', 'node', or 'node-border'.
|
|
3916
|
+
* @enum {string}
|
|
3917
|
+
*/
|
|
3918
|
+
backgroundClip?: "none" | "node" | "node-border";
|
|
3919
|
+
/**
|
|
3920
|
+
* @description How the background image's width is determined. Can be 'none', 'inner', or 'outer'.
|
|
3921
|
+
* @enum {string}
|
|
3922
|
+
*/
|
|
3923
|
+
backgroundWidthRelativeTo?: "none" | "inner" | "outer";
|
|
3924
|
+
/**
|
|
3925
|
+
* @description How the background image's height is determined. Can be 'none', 'inner', or 'outer'.
|
|
3926
|
+
* @enum {string}
|
|
3927
|
+
*/
|
|
3928
|
+
backgroundHeightRelativeTo?: "none" | "inner" | "outer";
|
|
3929
|
+
/** @description The size of the node's border. */
|
|
3930
|
+
borderWidth?: number;
|
|
3931
|
+
/**
|
|
3932
|
+
* @description The style of the node's border
|
|
3933
|
+
* @enum {string}
|
|
3934
|
+
*/
|
|
3935
|
+
borderStyle?: "solid" | "dotted" | "dashed" | "double";
|
|
3936
|
+
/** @description The colour of the node's border. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3937
|
+
borderColor?: string;
|
|
3938
|
+
/** @description The opacity of the node's border */
|
|
3939
|
+
borderOpacity?: number;
|
|
3940
|
+
/** @description The amount of padding around all sides of the node. */
|
|
3941
|
+
padding?: number;
|
|
3942
|
+
/**
|
|
3943
|
+
* @description The horizontal alignment of a node's label
|
|
3944
|
+
* @enum {string}
|
|
3945
|
+
*/
|
|
3946
|
+
textHalign?: "left" | "center" | "right";
|
|
3947
|
+
/**
|
|
3948
|
+
* @description The vertical alignment of a node's label
|
|
3949
|
+
* @enum {string}
|
|
3950
|
+
*/
|
|
3951
|
+
textValign?: "top" | "center" | "bottom";
|
|
3952
|
+
/**
|
|
3953
|
+
* @description Whether to use the ghost effect, a semitransparent duplicate of the element drawn at an offset.
|
|
3954
|
+
* @default no
|
|
3955
|
+
* @enum {string}
|
|
3956
|
+
*/
|
|
3957
|
+
ghost: "yes" | "no";
|
|
3958
|
+
/** @description The colour of the indicator shown when the background is grabbed by the user. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3959
|
+
activeBgColor?: string;
|
|
3960
|
+
/** @description The opacity of the active background indicator. Selector needs to be *core*. */
|
|
3961
|
+
activeBgOpacity?: string;
|
|
3962
|
+
/** @description The opacity of the active background indicator. Selector needs to be *core*. */
|
|
3963
|
+
activeBgSize?: string;
|
|
3964
|
+
/** @description The background colour of the selection box used for drag selection. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3965
|
+
selectionBoxColor?: string;
|
|
3966
|
+
/** @description The size of the border on the selection box. Selector needs to be *core* */
|
|
3967
|
+
selectionBoxBorderWidth?: number;
|
|
3968
|
+
/** @description The opacity of the selection box. Selector needs to be *core* */
|
|
3969
|
+
selectionBoxOpacity?: number;
|
|
3970
|
+
/** @description The colour of the area outside the viewport texture when initOptions.textureOnViewport === true. Selector needs to be *core*. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3971
|
+
outsideTextureBgColor?: string;
|
|
3972
|
+
/** @description The opacity of the area outside the viewport texture. Selector needs to be *core* */
|
|
3973
|
+
outsideTextureBgOpacity?: number;
|
|
3974
|
+
/** @description An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e. x1 y1 x2 y2, x3 y3 ...). This represents the points in the polygon for the node's shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node's position is the origin (0, 0 ) */
|
|
3975
|
+
shapePolygonPoints?: string;
|
|
3976
|
+
/** @description The colour of the background of the component menu. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3977
|
+
menuBackgroundColor?: string;
|
|
3978
|
+
/** @description The opacity of the background of the component menu. */
|
|
3979
|
+
menuBackgroundOpacity?: number;
|
|
3980
|
+
/** @description The colour of the text or icons in the component menu. Colours may be specified by name (e.g. red), hex (e.g. */
|
|
3981
|
+
menuForgroundColor?: string;
|
|
3982
|
+
};
|
|
3983
|
+
/**
|
|
3984
|
+
* @description Connection Status
|
|
3985
|
+
* @enum {string}
|
|
3986
|
+
*/
|
|
3987
|
+
status: "discovered" | "registered" | "connected" | "ignored" | "maintenance" | "disconnected" | "deleted" | "not found";
|
|
3988
|
+
/** @description Map describing the connection state machine. Each key is a current connection status and its value is the list of states the connection may transition to from that status, along with a description of each transition. */
|
|
3989
|
+
transitionMap?: {
|
|
3990
|
+
[key: string]: {
|
|
3991
|
+
/**
|
|
3992
|
+
* @description Connection Status Value
|
|
3993
|
+
* @enum {string}
|
|
3994
|
+
*/
|
|
3995
|
+
nextState: "discovered" | "registered" | "connected" | "ignored" | "maintenance" | "disconnected" | "deleted" | "not found";
|
|
3996
|
+
/** @description Human-readable explanation of when or why this transition occurs. */
|
|
3997
|
+
description?: string;
|
|
3998
|
+
}[];
|
|
3999
|
+
};
|
|
4000
|
+
/**
|
|
4001
|
+
* Format: uuid
|
|
4002
|
+
* @description User ID who owns this connection
|
|
4003
|
+
*/
|
|
4004
|
+
owner?: string;
|
|
4005
|
+
/**
|
|
4006
|
+
* Format: date-time
|
|
4007
|
+
* @description Timestamp when the connection was created.
|
|
4008
|
+
*/
|
|
4009
|
+
createdAt?: string;
|
|
4010
|
+
/**
|
|
4011
|
+
* Format: date-time
|
|
4012
|
+
* @description Timestamp when the connection was last updated.
|
|
4013
|
+
*/
|
|
4014
|
+
updatedAt?: string;
|
|
4015
|
+
/**
|
|
4016
|
+
* Format: date-time
|
|
4017
|
+
* @description Timestamp when the connection was soft-deleted, if applicable.
|
|
4018
|
+
*/
|
|
4019
|
+
deletedAt?: string;
|
|
4020
|
+
/** @description Associated environments for this connection */
|
|
4021
|
+
environments?: {
|
|
4022
|
+
/**
|
|
4023
|
+
* Format: uuid
|
|
4024
|
+
* @description ID
|
|
4025
|
+
*/
|
|
4026
|
+
id: string;
|
|
4027
|
+
/**
|
|
4028
|
+
* @description Specifies the version of the schema to which the environment conforms.
|
|
4029
|
+
* @default environments.meshery.io/v1beta3
|
|
4030
|
+
* @example [
|
|
4031
|
+
* "v1",
|
|
4032
|
+
* "v1alpha1",
|
|
4033
|
+
* "v2beta3",
|
|
4034
|
+
* "v1.custom-suffix",
|
|
4035
|
+
* "models.meshery.io/v1beta1",
|
|
4036
|
+
* "capability.meshery.io/v1alpha1"
|
|
4037
|
+
* ]
|
|
4038
|
+
*/
|
|
4039
|
+
schemaVersion: string;
|
|
4040
|
+
/** @description Environment name */
|
|
4041
|
+
name: string;
|
|
4042
|
+
/** @description Environment description */
|
|
4043
|
+
description: string;
|
|
4044
|
+
/**
|
|
4045
|
+
* Format: uuid
|
|
4046
|
+
* @description Environment organization ID
|
|
4047
|
+
*/
|
|
4048
|
+
organizationId: string;
|
|
4049
|
+
/**
|
|
4050
|
+
* Format: uuid
|
|
4051
|
+
* @description Environment owner
|
|
4052
|
+
*/
|
|
4053
|
+
owner?: string;
|
|
4054
|
+
/**
|
|
4055
|
+
* Format: date-time
|
|
4056
|
+
* @description Timestamp when the environment was created.
|
|
4057
|
+
*/
|
|
4058
|
+
createdAt?: string;
|
|
4059
|
+
/** @description Additional metadata associated with the environment. */
|
|
4060
|
+
metadata?: Record<string, never>;
|
|
4061
|
+
/**
|
|
4062
|
+
* Format: date-time
|
|
4063
|
+
* @description Timestamp when the environment was last updated.
|
|
4064
|
+
*/
|
|
4065
|
+
updatedAt?: string;
|
|
4066
|
+
/**
|
|
4067
|
+
* Format: date-time
|
|
4068
|
+
* @description Timestamp when the environment was soft deleted. Null while the environment remains active.
|
|
4069
|
+
*/
|
|
4070
|
+
deletedAt?: string | null;
|
|
4071
|
+
}[];
|
|
4072
|
+
/**
|
|
4073
|
+
* @description Specifies the version of the schema used for the definition.
|
|
4074
|
+
* @default connections.meshery.io/v1beta3
|
|
4075
|
+
* @example [
|
|
4076
|
+
* "v1",
|
|
4077
|
+
* "v1alpha1",
|
|
4078
|
+
* "v2beta3",
|
|
4079
|
+
* "v1.custom-suffix",
|
|
4080
|
+
* "models.meshery.io/v1beta1",
|
|
4081
|
+
* "capability.meshery.io/v1alpha1"
|
|
4082
|
+
* ]
|
|
4083
|
+
*/
|
|
4084
|
+
schemaVersion: string;
|
|
4085
|
+
};
|
|
4086
|
+
};
|
|
4087
|
+
};
|
|
4088
|
+
/** @description Invalid request body or request param */
|
|
4089
|
+
400: {
|
|
4090
|
+
headers: {
|
|
4091
|
+
[name: string]: unknown;
|
|
4092
|
+
};
|
|
4093
|
+
content: {
|
|
4094
|
+
"text/plain": string;
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
4098
|
+
401: {
|
|
4099
|
+
headers: {
|
|
4100
|
+
[name: string]: unknown;
|
|
4101
|
+
};
|
|
4102
|
+
content: {
|
|
4103
|
+
"text/plain": string;
|
|
4104
|
+
};
|
|
4105
|
+
};
|
|
4106
|
+
/** @description Result not found */
|
|
4107
|
+
404: {
|
|
4108
|
+
headers: {
|
|
4109
|
+
[name: string]: unknown;
|
|
4110
|
+
};
|
|
4111
|
+
content: {
|
|
4112
|
+
"text/plain": string;
|
|
4113
|
+
};
|
|
4114
|
+
};
|
|
4115
|
+
/** @description Internal server error */
|
|
4116
|
+
500: {
|
|
4117
|
+
headers: {
|
|
4118
|
+
[name: string]: unknown;
|
|
4119
|
+
};
|
|
4120
|
+
content: {
|
|
4121
|
+
"text/plain": string;
|
|
4122
|
+
};
|
|
4123
|
+
};
|
|
4124
|
+
};
|
|
4125
|
+
};
|
|
3682
4126
|
deleteMesheryConnection: {
|
|
3683
4127
|
parameters: {
|
|
3684
4128
|
query?: never;
|