@meshery/schemas 0.8.126 → 0.8.127

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 (69) hide show
  1. package/dist/{Core-Wy_3jcVT.d.mts → Core-vaTzd8cz.d.mts} +4 -2
  2. package/dist/{Core-Wy_3jcVT.d.ts → Core-vaTzd8cz.d.ts} +4 -2
  3. package/dist/cloudApi.d.mts +12 -0
  4. package/dist/cloudApi.d.ts +12 -0
  5. package/dist/cloudApi.js +1 -1
  6. package/dist/cloudApi.mjs +1 -1
  7. package/dist/constructs/v1alpha1/capability/Capability.d.mts +3 -1
  8. package/dist/constructs/v1alpha1/capability/Capability.d.ts +3 -1
  9. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.mts +2 -2
  10. package/dist/constructs/v1alpha1/capability/CapabilitySchema.d.ts +2 -2
  11. package/dist/constructs/v1alpha1/capability/CapabilitySchema.js +1 -1
  12. package/dist/constructs/v1alpha1/capability/CapabilitySchema.mjs +1 -1
  13. package/dist/constructs/v1alpha1/core/Core.d.mts +1 -1
  14. package/dist/constructs/v1alpha1/core/Core.d.ts +1 -1
  15. package/dist/constructs/v1alpha1/core/CoreSchema.d.mts +3 -3
  16. package/dist/constructs/v1alpha1/core/CoreSchema.d.ts +3 -3
  17. package/dist/constructs/v1alpha1/core/CoreSchema.js +1 -1
  18. package/dist/constructs/v1alpha1/core/CoreSchema.mjs +1 -1
  19. package/dist/constructs/v1alpha3/relationship/Relationship.d.mts +6 -2
  20. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +6 -2
  21. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.mts +4 -4
  22. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.d.ts +4 -4
  23. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.js +1 -1
  24. package/dist/constructs/v1alpha3/relationship/RelationshipSchema.mjs +1 -1
  25. package/dist/constructs/v1beta1/component/Component.d.mts +28 -5
  26. package/dist/constructs/v1beta1/component/Component.d.ts +28 -5
  27. package/dist/constructs/v1beta1/component/ComponentSchema.d.mts +34 -19
  28. package/dist/constructs/v1beta1/component/ComponentSchema.d.ts +34 -19
  29. package/dist/constructs/v1beta1/component/ComponentSchema.js +2 -2
  30. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +2 -2
  31. package/dist/constructs/v1beta1/connection/Connection.d.mts +96 -6
  32. package/dist/constructs/v1beta1/connection/Connection.d.ts +96 -6
  33. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.mts +156 -66
  34. package/dist/constructs/v1beta1/connection/ConnectionSchema.d.ts +156 -66
  35. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  36. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  37. package/dist/constructs/v1beta1/environment/Environment.d.mts +52 -0
  38. package/dist/constructs/v1beta1/environment/Environment.d.ts +52 -0
  39. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.mts +96 -36
  40. package/dist/constructs/v1beta1/environment/EnvironmentSchema.d.ts +96 -36
  41. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  42. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  43. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +148 -32
  44. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +148 -32
  45. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.mts +160 -100
  46. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.d.ts +160 -100
  47. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +12 -12
  48. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +12 -12
  49. package/dist/constructs/v1beta1/model/Model.d.mts +22 -3
  50. package/dist/constructs/v1beta1/model/Model.d.ts +22 -3
  51. package/dist/constructs/v1beta1/model/ModelSchema.d.mts +30 -15
  52. package/dist/constructs/v1beta1/model/ModelSchema.d.ts +30 -15
  53. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  54. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  55. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +148 -32
  56. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +148 -32
  57. package/dist/constructs/v1beta1/pattern/PatternSchema.d.mts +160 -100
  58. package/dist/constructs/v1beta1/pattern/PatternSchema.d.ts +160 -100
  59. package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -12
  60. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -12
  61. package/dist/index.d.mts +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.js +16 -16
  64. package/dist/index.mjs +16 -16
  65. package/dist/mesheryApi.d.mts +8 -0
  66. package/dist/mesheryApi.d.ts +8 -0
  67. package/dist/mesheryApi.js +1 -1
  68. package/dist/mesheryApi.mjs +1 -1
  69. package/package.json +1 -1
@@ -51,6 +51,8 @@ type ImportDesignApiArg = {
51
51
  type CreateEnvironmentApiResponse = {
52
52
  /** ID */
53
53
  id: string;
54
+ /** Specifies the version of the schema to which the environment conforms. */
55
+ schemaVersion: string;
54
56
  /** Environment name */
55
57
  name: string;
56
58
  /** Environment description */
@@ -82,6 +84,8 @@ type GetEnvironmentsApiResponse = {
82
84
  environments?: {
83
85
  /** ID */
84
86
  id: string;
87
+ /** Specifies the version of the schema to which the environment conforms. */
88
+ schemaVersion: string;
85
89
  /** Environment name */
86
90
  name: string;
87
91
  /** Environment description */
@@ -201,6 +205,8 @@ type PostEvaluateApiResponse = {
201
205
  environments?: {
202
206
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
203
207
  id: string;
208
+ /** Specifies the version of the schema to which the environment conforms. */
209
+ schemaVersion: string;
204
210
  /** Environment name */
205
211
  name: string;
206
212
  /** Environment description */
@@ -1025,6 +1031,8 @@ type PostEvaluateApiArg = {
1025
1031
  environments?: {
1026
1032
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
1027
1033
  id: string;
1034
+ /** Specifies the version of the schema to which the environment conforms. */
1035
+ schemaVersion: string;
1028
1036
  /** Environment name */
1029
1037
  name: string;
1030
1038
  /** Environment description */
@@ -51,6 +51,8 @@ type ImportDesignApiArg = {
51
51
  type CreateEnvironmentApiResponse = {
52
52
  /** ID */
53
53
  id: string;
54
+ /** Specifies the version of the schema to which the environment conforms. */
55
+ schemaVersion: string;
54
56
  /** Environment name */
55
57
  name: string;
56
58
  /** Environment description */
@@ -82,6 +84,8 @@ type GetEnvironmentsApiResponse = {
82
84
  environments?: {
83
85
  /** ID */
84
86
  id: string;
87
+ /** Specifies the version of the schema to which the environment conforms. */
88
+ schemaVersion: string;
85
89
  /** Environment name */
86
90
  name: string;
87
91
  /** Environment description */
@@ -201,6 +205,8 @@ type PostEvaluateApiResponse = {
201
205
  environments?: {
202
206
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
203
207
  id: string;
208
+ /** Specifies the version of the schema to which the environment conforms. */
209
+ schemaVersion: string;
204
210
  /** Environment name */
205
211
  name: string;
206
212
  /** Environment description */
@@ -1025,6 +1031,8 @@ type PostEvaluateApiArg = {
1025
1031
  environments?: {
1026
1032
  /** A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas. */
1027
1033
  id: string;
1034
+ /** Specifies the version of the schema to which the environment conforms. */
1035
+ schemaVersion: string;
1028
1036
  /** Environment name */
1029
1037
  name: string;
1030
1038
  /** Environment description */
@@ -1 +1 @@
1
- 'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var s,m=(s=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?s:"",a,c=(a=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?a:"",l=react.fetchBaseQuery({baseUrl:m,credentials:"include",prepareHeaders:(t,{getState:e})=>{var i;let r=(i=e().organization)==null?void 0:i.value,n=r==null?void 0:r.id;return n&&t.set(p,n),t}});react.createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})});var d=react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:c,credentials:"include"}),tagTypes:[],endpoints:()=>({})});var u=["design_other","environment_environments","evaluation_other","events_other","key_users","model_other","Organization_other","team_teams","workspace_workspaces"],y=d.enhanceEndpoints({addTagTypes:u}).injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body}),invalidatesTags:["design_other"]}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body}),invalidatesTags:["environment_environments"]}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}}),providesTags:["environment_environments"]}),postEvaluate:t.mutation({query:e=>({url:"/evaluate",method:"POST",body:e.body}),invalidatesTags:["evaluation_other"]}),deleteEventsById:t.mutation({query:e=>({url:`/events/${e.id}`,method:"DELETE"}),invalidatesTags:["events_other"]}),postEvents:t.mutation({query:e=>({url:"/events",method:"POST",body:e.body}),invalidatesTags:["events_other"]}),deleteEvents:t.mutation({query:e=>({url:"/events",method:"DELETE",body:e.body}),invalidatesTags:["events_other"]}),putEventsStatus:t.mutation({query:e=>({url:"/events/status",method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),putEventsByIdStatus:t.mutation({query:e=>({url:`/events/${e.id}/status`,method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),getUserKeys:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/users/keys`}),providesTags:["key_users"]}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body}),invalidatesTags:["model_other"]}),getOrgByDomain:t.query({query:e=>({url:"/api/identity/orgs/by-domain",params:{domain:e.domain}}),providesTags:["Organization_other"]}),addTeamToOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"POST",body:e.body}),invalidatesTags:["Organization_other"]}),removeTeamFromOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["Organization_other"]}),getTeams:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),createTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,method:"POST",body:e.body}),invalidatesTags:["team_teams"]}),getTeamById:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`}),providesTags:["team_teams"]}),updateTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"PUT",body:e.body}),invalidatesTags:["team_teams"]}),deleteTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getTeamUsers:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),addUserToTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"POST"}),invalidatesTags:["team_teams"]}),removeUserFromTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"}),providesTags:["workspace_workspaces"]}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body}),invalidatesTags:["workspace_workspaces"]}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`}),providesTags:["workspace_workspaces"]}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body}),invalidatesTags:["workspace_workspaces"]}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"}),invalidatesTags:["workspace_workspaces"]})}),overrideExisting:false});var {useImportDesignMutation:T,useCreateEnvironmentMutation:x,useGetEnvironmentsQuery:I,usePostEvaluateMutation:w,useDeleteEventsByIdMutation:C,usePostEventsMutation:E,useDeleteEventsMutation:S,usePutEventsStatusMutation:D,usePutEventsByIdStatusMutation:P,useGetUserKeysQuery:z,useRegisterMeshmodelsMutation:B,useGetOrgByDomainQuery:O,useAddTeamToOrgMutation:U,useRemoveTeamFromOrgMutation:M,useGetTeamsQuery:N,useCreateTeamMutation:G,useGetTeamByIdQuery:W,useUpdateTeamMutation:F,useDeleteTeamMutation:$,useGetTeamUsersQuery:j,useAddUserToTeamMutation:V,useRemoveUserFromTeamMutation:L,useGetApiWorkspacesQuery:Q,usePostApiWorkspacesMutation:K,useGetApiWorkspacesByIdQuery:q,usePutApiWorkspacesByIdMutation:H,useDeleteApiWorkspacesByIdMutation:Y}=y;exports.addTagTypes=u;exports.mesheryApi=y;exports.useAddTeamToOrgMutation=U;exports.useAddUserToTeamMutation=V;exports.useCreateEnvironmentMutation=x;exports.useCreateTeamMutation=G;exports.useDeleteApiWorkspacesByIdMutation=Y;exports.useDeleteEventsByIdMutation=C;exports.useDeleteEventsMutation=S;exports.useDeleteTeamMutation=$;exports.useGetApiWorkspacesByIdQuery=q;exports.useGetApiWorkspacesQuery=Q;exports.useGetEnvironmentsQuery=I;exports.useGetOrgByDomainQuery=O;exports.useGetTeamByIdQuery=W;exports.useGetTeamUsersQuery=j;exports.useGetTeamsQuery=N;exports.useGetUserKeysQuery=z;exports.useImportDesignMutation=T;exports.usePostApiWorkspacesMutation=K;exports.usePostEvaluateMutation=w;exports.usePostEventsMutation=E;exports.usePutApiWorkspacesByIdMutation=H;exports.usePutEventsByIdStatusMutation=P;exports.usePutEventsStatusMutation=D;exports.useRegisterMeshmodelsMutation=B;exports.useRemoveTeamFromOrgMutation=M;exports.useRemoveUserFromTeamMutation=L;exports.useUpdateTeamMutation=F;
1
+ 'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var s,m=(s=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?s:"",a,c=(a=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?a:"",l=react.fetchBaseQuery({baseUrl:m,credentials:"include",prepareHeaders:(t,{getState:e})=>{var i;let r=(i=e().organization)==null?void 0:i.value,n=r==null?void 0:r.id;return n&&t.set(p,n),t}});react.createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})});var d=react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:c,credentials:"include"}),tagTypes:[],endpoints:()=>({})});var u=["design_other","environment_environments","evaluation_other","events_other","key_users","model_other","Organization_other","team_teams","workspace_workspaces"],y=d.enhanceEndpoints({addTagTypes:u}).injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body}),invalidatesTags:["design_other"]}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body}),invalidatesTags:["environment_environments"]}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}}),providesTags:["environment_environments"]}),postEvaluate:t.mutation({query:e=>({url:"/evaluate",method:"POST",body:e.body}),invalidatesTags:["evaluation_other"]}),deleteEventsById:t.mutation({query:e=>({url:`/events/${e.id}`,method:"DELETE"}),invalidatesTags:["events_other"]}),postEvents:t.mutation({query:e=>({url:"/events",method:"POST",body:e.body}),invalidatesTags:["events_other"]}),deleteEvents:t.mutation({query:e=>({url:"/events",method:"DELETE",body:e.body}),invalidatesTags:["events_other"]}),putEventsStatus:t.mutation({query:e=>({url:"/events/status",method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),putEventsByIdStatus:t.mutation({query:e=>({url:`/events/${e.id}/status`,method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),getUserKeys:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/users/keys`}),providesTags:["key_users"]}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body}),invalidatesTags:["model_other"]}),getOrgByDomain:t.query({query:e=>({url:"/api/identity/orgs/by-domain",params:{domain:e.domain}}),providesTags:["Organization_other"]}),addTeamToOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"POST",body:e.body}),invalidatesTags:["Organization_other"]}),removeTeamFromOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["Organization_other"]}),getTeams:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),createTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,method:"POST",body:e.body}),invalidatesTags:["team_teams"]}),getTeamById:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`}),providesTags:["team_teams"]}),updateTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"PUT",body:e.body}),invalidatesTags:["team_teams"]}),deleteTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getTeamUsers:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),addUserToTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"POST"}),invalidatesTags:["team_teams"]}),removeUserFromTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"}),providesTags:["workspace_workspaces"]}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body}),invalidatesTags:["workspace_workspaces"]}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`}),providesTags:["workspace_workspaces"]}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body}),invalidatesTags:["workspace_workspaces"]}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"}),invalidatesTags:["workspace_workspaces"]})}),overrideExisting:false});var {useImportDesignMutation:T,useCreateEnvironmentMutation:x,useGetEnvironmentsQuery:I,usePostEvaluateMutation:w,useDeleteEventsByIdMutation:C,usePostEventsMutation:E,useDeleteEventsMutation:S,usePutEventsStatusMutation:D,usePutEventsByIdStatusMutation:P,useGetUserKeysQuery:z,useRegisterMeshmodelsMutation:B,useGetOrgByDomainQuery:O,useAddTeamToOrgMutation:U,useRemoveTeamFromOrgMutation:M,useGetTeamsQuery:N,useCreateTeamMutation:G,useGetTeamByIdQuery:W,useUpdateTeamMutation:F,useDeleteTeamMutation:V,useGetTeamUsersQuery:$,useAddUserToTeamMutation:j,useRemoveUserFromTeamMutation:L,useGetApiWorkspacesQuery:Q,usePostApiWorkspacesMutation:K,useGetApiWorkspacesByIdQuery:q,usePutApiWorkspacesByIdMutation:H,useDeleteApiWorkspacesByIdMutation:Y}=y;exports.addTagTypes=u;exports.mesheryApi=y;exports.useAddTeamToOrgMutation=U;exports.useAddUserToTeamMutation=j;exports.useCreateEnvironmentMutation=x;exports.useCreateTeamMutation=G;exports.useDeleteApiWorkspacesByIdMutation=Y;exports.useDeleteEventsByIdMutation=C;exports.useDeleteEventsMutation=S;exports.useDeleteTeamMutation=V;exports.useGetApiWorkspacesByIdQuery=q;exports.useGetApiWorkspacesQuery=Q;exports.useGetEnvironmentsQuery=I;exports.useGetOrgByDomainQuery=O;exports.useGetTeamByIdQuery=W;exports.useGetTeamUsersQuery=$;exports.useGetTeamsQuery=N;exports.useGetUserKeysQuery=z;exports.useImportDesignMutation=T;exports.usePostApiWorkspacesMutation=K;exports.usePostEvaluateMutation=w;exports.usePostEventsMutation=E;exports.usePutApiWorkspacesByIdMutation=H;exports.usePutEventsByIdStatusMutation=P;exports.usePutEventsStatusMutation=D;exports.useRegisterMeshmodelsMutation=B;exports.useRemoveTeamFromOrgMutation=M;exports.useRemoveUserFromTeamMutation=L;exports.useUpdateTeamMutation=F;
@@ -1 +1 @@
1
- import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var s,m=(s=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?s:"",a,c=(a=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?a:"",l=fetchBaseQuery({baseUrl:m,credentials:"include",prepareHeaders:(t,{getState:e})=>{var i;let r=(i=e().organization)==null?void 0:i.value,n=r==null?void 0:r.id;return n&&t.set(p,n),t}});createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})});var d=createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:c,credentials:"include"}),tagTypes:[],endpoints:()=>({})});var u=["design_other","environment_environments","evaluation_other","events_other","key_users","model_other","Organization_other","team_teams","workspace_workspaces"],y=d.enhanceEndpoints({addTagTypes:u}).injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body}),invalidatesTags:["design_other"]}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body}),invalidatesTags:["environment_environments"]}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}}),providesTags:["environment_environments"]}),postEvaluate:t.mutation({query:e=>({url:"/evaluate",method:"POST",body:e.body}),invalidatesTags:["evaluation_other"]}),deleteEventsById:t.mutation({query:e=>({url:`/events/${e.id}`,method:"DELETE"}),invalidatesTags:["events_other"]}),postEvents:t.mutation({query:e=>({url:"/events",method:"POST",body:e.body}),invalidatesTags:["events_other"]}),deleteEvents:t.mutation({query:e=>({url:"/events",method:"DELETE",body:e.body}),invalidatesTags:["events_other"]}),putEventsStatus:t.mutation({query:e=>({url:"/events/status",method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),putEventsByIdStatus:t.mutation({query:e=>({url:`/events/${e.id}/status`,method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),getUserKeys:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/users/keys`}),providesTags:["key_users"]}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body}),invalidatesTags:["model_other"]}),getOrgByDomain:t.query({query:e=>({url:"/api/identity/orgs/by-domain",params:{domain:e.domain}}),providesTags:["Organization_other"]}),addTeamToOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"POST",body:e.body}),invalidatesTags:["Organization_other"]}),removeTeamFromOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["Organization_other"]}),getTeams:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),createTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,method:"POST",body:e.body}),invalidatesTags:["team_teams"]}),getTeamById:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`}),providesTags:["team_teams"]}),updateTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"PUT",body:e.body}),invalidatesTags:["team_teams"]}),deleteTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getTeamUsers:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),addUserToTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"POST"}),invalidatesTags:["team_teams"]}),removeUserFromTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"}),providesTags:["workspace_workspaces"]}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body}),invalidatesTags:["workspace_workspaces"]}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`}),providesTags:["workspace_workspaces"]}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body}),invalidatesTags:["workspace_workspaces"]}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"}),invalidatesTags:["workspace_workspaces"]})}),overrideExisting:false});var {useImportDesignMutation:T,useCreateEnvironmentMutation:x,useGetEnvironmentsQuery:I,usePostEvaluateMutation:w,useDeleteEventsByIdMutation:C,usePostEventsMutation:E,useDeleteEventsMutation:S,usePutEventsStatusMutation:D,usePutEventsByIdStatusMutation:P,useGetUserKeysQuery:z,useRegisterMeshmodelsMutation:B,useGetOrgByDomainQuery:O,useAddTeamToOrgMutation:U,useRemoveTeamFromOrgMutation:M,useGetTeamsQuery:N,useCreateTeamMutation:G,useGetTeamByIdQuery:W,useUpdateTeamMutation:F,useDeleteTeamMutation:$,useGetTeamUsersQuery:j,useAddUserToTeamMutation:V,useRemoveUserFromTeamMutation:L,useGetApiWorkspacesQuery:Q,usePostApiWorkspacesMutation:K,useGetApiWorkspacesByIdQuery:q,usePutApiWorkspacesByIdMutation:H,useDeleteApiWorkspacesByIdMutation:Y}=y;export{u as addTagTypes,y as mesheryApi,U as useAddTeamToOrgMutation,V as useAddUserToTeamMutation,x as useCreateEnvironmentMutation,G as useCreateTeamMutation,Y as useDeleteApiWorkspacesByIdMutation,C as useDeleteEventsByIdMutation,S as useDeleteEventsMutation,$ as useDeleteTeamMutation,q as useGetApiWorkspacesByIdQuery,Q as useGetApiWorkspacesQuery,I as useGetEnvironmentsQuery,O as useGetOrgByDomainQuery,W as useGetTeamByIdQuery,j as useGetTeamUsersQuery,N as useGetTeamsQuery,z as useGetUserKeysQuery,T as useImportDesignMutation,K as usePostApiWorkspacesMutation,w as usePostEvaluateMutation,E as usePostEventsMutation,H as usePutApiWorkspacesByIdMutation,P as usePutEventsByIdStatusMutation,D as usePutEventsStatusMutation,B as useRegisterMeshmodelsMutation,M as useRemoveTeamFromOrgMutation,L as useRemoveUserFromTeamMutation,F as useUpdateTeamMutation};
1
+ import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var s,m=(s=process.env.RTK_CLOUD_ENDPOINT_PREFIX)!=null?s:"",a,c=(a=process.env.RTK_MESHERY_ENDPOINT_PREFIX)!=null?a:"",l=fetchBaseQuery({baseUrl:m,credentials:"include",prepareHeaders:(t,{getState:e})=>{var i;let r=(i=e().organization)==null?void 0:i.value,n=r==null?void 0:r.id;return n&&t.set(p,n),t}});createApi({reducerPath:"cloudRtkSchemasApi",baseQuery:l,tagTypes:[],endpoints:()=>({})});var d=createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:c,credentials:"include"}),tagTypes:[],endpoints:()=>({})});var u=["design_other","environment_environments","evaluation_other","events_other","key_users","model_other","Organization_other","team_teams","workspace_workspaces"],y=d.enhanceEndpoints({addTagTypes:u}).injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body}),invalidatesTags:["design_other"]}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body}),invalidatesTags:["environment_environments"]}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}}),providesTags:["environment_environments"]}),postEvaluate:t.mutation({query:e=>({url:"/evaluate",method:"POST",body:e.body}),invalidatesTags:["evaluation_other"]}),deleteEventsById:t.mutation({query:e=>({url:`/events/${e.id}`,method:"DELETE"}),invalidatesTags:["events_other"]}),postEvents:t.mutation({query:e=>({url:"/events",method:"POST",body:e.body}),invalidatesTags:["events_other"]}),deleteEvents:t.mutation({query:e=>({url:"/events",method:"DELETE",body:e.body}),invalidatesTags:["events_other"]}),putEventsStatus:t.mutation({query:e=>({url:"/events/status",method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),putEventsByIdStatus:t.mutation({query:e=>({url:`/events/${e.id}/status`,method:"PUT",body:e.body}),invalidatesTags:["events_other"]}),getUserKeys:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/users/keys`}),providesTags:["key_users"]}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body}),invalidatesTags:["model_other"]}),getOrgByDomain:t.query({query:e=>({url:"/api/identity/orgs/by-domain",params:{domain:e.domain}}),providesTags:["Organization_other"]}),addTeamToOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"POST",body:e.body}),invalidatesTags:["Organization_other"]}),removeTeamFromOrg:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["Organization_other"]}),getTeams:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),createTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams`,method:"POST",body:e.body}),invalidatesTags:["team_teams"]}),getTeamById:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`}),providesTags:["team_teams"]}),updateTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"PUT",body:e.body}),invalidatesTags:["team_teams"]}),deleteTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getTeamUsers:t.query({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users`,params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize}}),providesTags:["team_teams"]}),addUserToTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"POST"}),invalidatesTags:["team_teams"]}),removeUserFromTeam:t.mutation({query:e=>({url:`/api/identity/orgs/${e.orgId}/teams/${e.teamId}/users/${e.userId}`,method:"DELETE"}),invalidatesTags:["team_teams"]}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"}),providesTags:["workspace_workspaces"]}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body}),invalidatesTags:["workspace_workspaces"]}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`}),providesTags:["workspace_workspaces"]}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body}),invalidatesTags:["workspace_workspaces"]}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"}),invalidatesTags:["workspace_workspaces"]})}),overrideExisting:false});var {useImportDesignMutation:T,useCreateEnvironmentMutation:x,useGetEnvironmentsQuery:I,usePostEvaluateMutation:w,useDeleteEventsByIdMutation:C,usePostEventsMutation:E,useDeleteEventsMutation:S,usePutEventsStatusMutation:D,usePutEventsByIdStatusMutation:P,useGetUserKeysQuery:z,useRegisterMeshmodelsMutation:B,useGetOrgByDomainQuery:O,useAddTeamToOrgMutation:U,useRemoveTeamFromOrgMutation:M,useGetTeamsQuery:N,useCreateTeamMutation:G,useGetTeamByIdQuery:W,useUpdateTeamMutation:F,useDeleteTeamMutation:V,useGetTeamUsersQuery:$,useAddUserToTeamMutation:j,useRemoveUserFromTeamMutation:L,useGetApiWorkspacesQuery:Q,usePostApiWorkspacesMutation:K,useGetApiWorkspacesByIdQuery:q,usePutApiWorkspacesByIdMutation:H,useDeleteApiWorkspacesByIdMutation:Y}=y;export{u as addTagTypes,y as mesheryApi,U as useAddTeamToOrgMutation,j as useAddUserToTeamMutation,x as useCreateEnvironmentMutation,G as useCreateTeamMutation,Y as useDeleteApiWorkspacesByIdMutation,C as useDeleteEventsByIdMutation,S as useDeleteEventsMutation,V as useDeleteTeamMutation,q as useGetApiWorkspacesByIdQuery,Q as useGetApiWorkspacesQuery,I as useGetEnvironmentsQuery,O as useGetOrgByDomainQuery,W as useGetTeamByIdQuery,$ as useGetTeamUsersQuery,N as useGetTeamsQuery,z as useGetUserKeysQuery,T as useImportDesignMutation,K as usePostApiWorkspacesMutation,w as usePostEvaluateMutation,E as usePostEventsMutation,H as usePutApiWorkspacesByIdMutation,P as usePutEventsByIdStatusMutation,D as usePutEventsStatusMutation,B as useRegisterMeshmodelsMutation,M as useRemoveTeamFromOrgMutation,L as useRemoveUserFromTeamMutation,F as useUpdateTeamMutation};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshery/schemas",
3
- "version": "0.8.126",
3
+ "version": "0.8.127",
4
4
  "description": "<p style=\"text-align:center;\" align=\"center\"><a href=\"https://meshery.io\"><picture> <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-light-text-side.svg\"> <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\"> <img src=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\" alt=\"Meshery Logo\" width=\"70%\" /></picture></a><br /><br /></p> <p align=\"center\"> <a href=\"https://hub.docker.com/r/meshery/meshery\" alt=\"Docker pulls\"> <img src=\"https://img.shields.io/docker/pulls/meshery/meshery.svg\" /></a> <a href=\"https://github.com/issues?q=is%3Aopen+is%3Aissue+archived%3Afalse+org%meshery+org%3Ameshery+org%3Aservice-mesh-performance+org%3Aservice-mesh-patterns+org%3A+label%3A%22help+wanted%22+\" alt=\"GitHub issues by-label\"> <img src=\"https://img.shields.io/github/issues/meshery/meshery/help%20wanted.svg?color=informational\" /></a> <a href=\"https://github.com/meshery/meshery/blob/master/LICENSE\" alt=\"LICENSE\"> <img src=\"https://img.shields.io/github/license/meshery/meshery?color=brightgreen\" /></a> <a href=\"https://artifacthub.io/packages/helm/meshery/meshery\" alt=\"Artifact Hub Meshery\"> <img src=\"https://img.shields.io/endpoint?color=brightgreen&label=Helm%20Chart&style=plastic&url=https%3A%2F%2Fartifacthub.io%2Fbadge%2Frepository%2Fartifact-hub\" /></a> <a href=\"https://goreportcard.com/report/github.com/meshery/meshery\" alt=\"Go Report Card\"> <img src=\"https://goreportcard.com/badge/github.com/meshery/meshery\" /></a> <a href=\"https://github.com/meshery/meshery/actions\" alt=\"Build Status\"> <img src=\"https://img.shields.io/github/actions/workflow/status/meshery/meshery/release-drafter.yml\" /></a> <a href=\"https://bestpractices.coreinfrastructure.org/projects/3564\" alt=\"CLI Best Practices\"> <img src=\"https://bestpractices.coreinfrastructure.org/projects/3564/badge\" /></a> <a href=\"http://discuss.meshery.io\" alt=\"Discuss Users\"> <img src=\"https://img.shields.io/discourse/users?label=discuss&logo=discourse&server=https%3A%2F%2Fdiscuss.meshery.io\" /></a> <a href=\"https://slack.meshery.io\" alt=\"Join Slack\"> <img src=\"https://img.shields.io/badge/Slack-@meshery.svg?logo=slack\" /></a> <a href=\"https://twitter.com/intent/follow?screen_name=mesheryio\" alt=\"Twitter Follow\"> <img src=\"https://img.shields.io/twitter/follow/mesheryio.svg?label=Follow+Meshery&style=social\" /></a> <a href=\"https://github.com/meshery/meshery/releases\" alt=\"Meshery Downloads\"> <img src=\"https://img.shields.io/github/downloads/meshery/meshery/total\" /></a> <!-- <a href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery?ref=badge_shield\" alt=\"License Scan Report\"> <img src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery.svg?type=shield\"/></a> --> </p>",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",