@meshery/schemas 0.8.48 → 0.8.50

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.
@@ -406,7 +406,7 @@ type GetAcademyCirriculaApiArg = {
406
406
  type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
407
407
  /** Id of the cirricula */
408
408
  id: string;
409
- type: "learning-path" | "challenge" | "exam";
409
+ type: "learning-path" | "challenge" | "certification";
410
410
  /** Organization ID that owns this learning path */
411
411
  orgId: string;
412
412
  /** Visibility of the cirricula */
@@ -433,33 +433,8 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
433
433
  banner?: string | null;
434
434
  /** Canonical URL for the learning path */
435
435
  permalink: string;
436
- /** List of courses in this learning path */
437
- courses?: {
438
- /** Unique identifier for the course */
439
- id: string;
440
- /** Title of the course */
441
- title: string;
442
- /** URL to the course content */
443
- permalink: string;
444
- /** Course description */
445
- description: string;
446
- /** Order of the course in the list */
447
- weight?: number;
448
- /** Optional banner image */
449
- banner?: string | null;
450
- }[];
451
- [key: string]: any;
452
- } | {
453
- /** Title of the learning path */
454
- title: string;
455
- /** Description of the learning path */
456
- description: string;
457
- /** Optional banner image */
458
- banner?: string | null;
459
- /** Canonical URL for the learning path */
460
- permalink: string;
461
- /** List of courses in this learning path */
462
- courses?: {
436
+ /** List of children items in the top-level curricula */
437
+ children?: {
463
438
  /** Unique identifier for the course */
464
439
  id: string;
465
440
  /** Title of the course */
@@ -472,6 +447,10 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
472
447
  weight?: number;
473
448
  /** Optional banner image */
474
449
  banner?: string | null;
450
+ /** Type of the content (e.g., learning-path, challenge, certification) */
451
+ type?: "learning-path" | "challenge" | "certification";
452
+ /** List of child nodes (sub-courses or modules) */
453
+ children?: object[];
475
454
  }[];
476
455
  [key: string]: any;
477
456
  };
@@ -507,7 +486,7 @@ type RegisterToAcademyContentApiArg = {
507
486
  body: {
508
487
  /** ID of the academy content to register for */
509
488
  content_id: string;
510
- content_type?: "learning-path" | "challenge" | "exam";
489
+ content_type?: "learning-path" | "challenge" | "certification";
511
490
  };
512
491
  };
513
492
  type GetApiAcademyRegistrationsByContentIdApiResponse =
@@ -547,7 +526,7 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
547
526
  [key: string]: {
548
527
  id: string;
549
528
  last_opened: string;
550
- content_type: "learning-path" | "challenge" | "exam";
529
+ content_type: "learning-path" | "challenge" | "certification";
551
530
  };
552
531
  };
553
532
  grades: {
@@ -628,22 +607,22 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
628
607
  completed: string;
629
608
  };
630
609
  registration_id?: string;
631
- content_type?: "learning-path" | "challenge" | "exam";
610
+ content_type?: "learning-path" | "challenge" | "certification";
632
611
  item_data?: {
633
612
  id: string;
634
613
  last_opened: string;
635
- content_type: "learning-path" | "challenge" | "exam";
614
+ content_type: "learning-path" | "challenge" | "certification";
636
615
  };
637
616
  };
638
617
  type UpdateCurrentItemInProgressTrackerApiArg = {
639
618
  /** The ID of the registration */
640
619
  registrationId: string;
641
620
  body: {
642
- content_type: "learning-path" | "challenge" | "exam";
621
+ content_type: "learning-path" | "challenge" | "certification";
643
622
  item_data: {
644
623
  id: string;
645
624
  last_opened: string;
646
- content_type: "learning-path" | "challenge" | "exam";
625
+ content_type: "learning-path" | "challenge" | "certification";
647
626
  };
648
627
  };
649
628
  };
@@ -406,7 +406,7 @@ type GetAcademyCirriculaApiArg = {
406
406
  type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
407
407
  /** Id of the cirricula */
408
408
  id: string;
409
- type: "learning-path" | "challenge" | "exam";
409
+ type: "learning-path" | "challenge" | "certification";
410
410
  /** Organization ID that owns this learning path */
411
411
  orgId: string;
412
412
  /** Visibility of the cirricula */
@@ -433,33 +433,8 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
433
433
  banner?: string | null;
434
434
  /** Canonical URL for the learning path */
435
435
  permalink: string;
436
- /** List of courses in this learning path */
437
- courses?: {
438
- /** Unique identifier for the course */
439
- id: string;
440
- /** Title of the course */
441
- title: string;
442
- /** URL to the course content */
443
- permalink: string;
444
- /** Course description */
445
- description: string;
446
- /** Order of the course in the list */
447
- weight?: number;
448
- /** Optional banner image */
449
- banner?: string | null;
450
- }[];
451
- [key: string]: any;
452
- } | {
453
- /** Title of the learning path */
454
- title: string;
455
- /** Description of the learning path */
456
- description: string;
457
- /** Optional banner image */
458
- banner?: string | null;
459
- /** Canonical URL for the learning path */
460
- permalink: string;
461
- /** List of courses in this learning path */
462
- courses?: {
436
+ /** List of children items in the top-level curricula */
437
+ children?: {
463
438
  /** Unique identifier for the course */
464
439
  id: string;
465
440
  /** Title of the course */
@@ -472,6 +447,10 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
472
447
  weight?: number;
473
448
  /** Optional banner image */
474
449
  banner?: string | null;
450
+ /** Type of the content (e.g., learning-path, challenge, certification) */
451
+ type?: "learning-path" | "challenge" | "certification";
452
+ /** List of child nodes (sub-courses or modules) */
453
+ children?: object[];
475
454
  }[];
476
455
  [key: string]: any;
477
456
  };
@@ -507,7 +486,7 @@ type RegisterToAcademyContentApiArg = {
507
486
  body: {
508
487
  /** ID of the academy content to register for */
509
488
  content_id: string;
510
- content_type?: "learning-path" | "challenge" | "exam";
489
+ content_type?: "learning-path" | "challenge" | "certification";
511
490
  };
512
491
  };
513
492
  type GetApiAcademyRegistrationsByContentIdApiResponse =
@@ -547,7 +526,7 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
547
526
  [key: string]: {
548
527
  id: string;
549
528
  last_opened: string;
550
- content_type: "learning-path" | "challenge" | "exam";
529
+ content_type: "learning-path" | "challenge" | "certification";
551
530
  };
552
531
  };
553
532
  grades: {
@@ -628,22 +607,22 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
628
607
  completed: string;
629
608
  };
630
609
  registration_id?: string;
631
- content_type?: "learning-path" | "challenge" | "exam";
610
+ content_type?: "learning-path" | "challenge" | "certification";
632
611
  item_data?: {
633
612
  id: string;
634
613
  last_opened: string;
635
- content_type: "learning-path" | "challenge" | "exam";
614
+ content_type: "learning-path" | "challenge" | "certification";
636
615
  };
637
616
  };
638
617
  type UpdateCurrentItemInProgressTrackerApiArg = {
639
618
  /** The ID of the registration */
640
619
  registrationId: string;
641
620
  body: {
642
- content_type: "learning-path" | "challenge" | "exam";
621
+ content_type: "learning-path" | "challenge" | "certification";
643
622
  item_data: {
644
623
  id: string;
645
624
  last_opened: string;
646
- content_type: "learning-path" | "challenge" | "exam";
625
+ content_type: "learning-path" | "challenge" | "certification";
647
626
  };
648
627
  };
649
628
  };
package/dist/cloudApi.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var o=react.fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=react.createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:x,useGetFeaturesByOrganizationQuery:S,useGetApiWorkspacesQuery:P,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:q,useSubmitQuizMutation:M}=d;exports.cloudApi=d;exports.useCreateEnvironmentMutation=B;exports.useDeleteApiWorkspacesByIdMutation=T;exports.useGetAcademyCirriculaQuery=W;exports.useGetApiAcademyByTypeAndOrgIdSlugQuery=O;exports.useGetApiAcademyRegistrationsByContentIdQuery=w;exports.useGetApiWorkspacesByIdQuery=E;exports.useGetApiWorkspacesQuery=P;exports.useGetEnvironmentsQuery=z;exports.useGetFeaturesByOrganizationQuery=S;exports.useGetFeaturesQuery=x;exports.useGetMyAcademyCirriculaQuery=D;exports.useGetPlansQuery=h;exports.useGetSubscriptionsQuery=b;exports.useImportDesignMutation=A;exports.usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation=I;exports.usePostApiEntitlementSubscriptionsCreateMutation=k;exports.usePostApiEntitlementSubscriptionsWebhooksMutation=R;exports.usePostApiWorkspacesMutation=C;exports.usePutApiWorkspacesByIdMutation=G;exports.useRegisterMeshmodelsMutation=_;exports.useRegisterToAcademyContentMutation=v;exports.useSubmitQuizMutation=M;exports.useUpdateCurrentItemInProgressTrackerMutation=q;
1
+ 'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var o=react.fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=react.createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:P,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q}=d;exports.cloudApi=d;exports.useCreateEnvironmentMutation=B;exports.useDeleteApiWorkspacesByIdMutation=T;exports.useGetAcademyCirriculaQuery=W;exports.useGetApiAcademyByTypeAndOrgIdSlugQuery=O;exports.useGetApiAcademyRegistrationsByContentIdQuery=w;exports.useGetApiWorkspacesByIdQuery=E;exports.useGetApiWorkspacesQuery=x;exports.useGetEnvironmentsQuery=z;exports.useGetFeaturesByOrganizationQuery=P;exports.useGetFeaturesQuery=S;exports.useGetMyAcademyCirriculaQuery=D;exports.useGetPlansQuery=h;exports.useGetSubscriptionsQuery=b;exports.useImportDesignMutation=A;exports.usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation=I;exports.usePostApiEntitlementSubscriptionsCreateMutation=k;exports.usePostApiEntitlementSubscriptionsWebhooksMutation=R;exports.usePostApiWorkspacesMutation=C;exports.usePutApiWorkspacesByIdMutation=G;exports.useRegisterMeshmodelsMutation=_;exports.useRegisterToAcademyContentMutation=v;exports.useSubmitQuizMutation=q;exports.useUpdateCurrentItemInProgressTrackerMutation=f;
package/dist/cloudApi.mjs CHANGED
@@ -1 +1 @@
1
- import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var o=fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:x,useGetFeaturesByOrganizationQuery:S,useGetApiWorkspacesQuery:P,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:q,useSubmitQuizMutation:M}=d;export{d as cloudApi,B as useCreateEnvironmentMutation,T as useDeleteApiWorkspacesByIdMutation,W as useGetAcademyCirriculaQuery,O as useGetApiAcademyByTypeAndOrgIdSlugQuery,w as useGetApiAcademyRegistrationsByContentIdQuery,E as useGetApiWorkspacesByIdQuery,P as useGetApiWorkspacesQuery,z as useGetEnvironmentsQuery,S as useGetFeaturesByOrganizationQuery,x as useGetFeaturesQuery,D as useGetMyAcademyCirriculaQuery,h as useGetPlansQuery,b as useGetSubscriptionsQuery,A as useImportDesignMutation,I as usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation,k as usePostApiEntitlementSubscriptionsCreateMutation,R as usePostApiEntitlementSubscriptionsWebhooksMutation,C as usePostApiWorkspacesMutation,G as usePutApiWorkspacesByIdMutation,_ as useRegisterMeshmodelsMutation,v as useRegisterToAcademyContentMutation,M as useSubmitQuizMutation,q as useUpdateCurrentItemInProgressTrackerMutation};
1
+ import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var o=fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:P,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q}=d;export{d as cloudApi,B as useCreateEnvironmentMutation,T as useDeleteApiWorkspacesByIdMutation,W as useGetAcademyCirriculaQuery,O as useGetApiAcademyByTypeAndOrgIdSlugQuery,w as useGetApiAcademyRegistrationsByContentIdQuery,E as useGetApiWorkspacesByIdQuery,x as useGetApiWorkspacesQuery,z as useGetEnvironmentsQuery,P as useGetFeaturesByOrganizationQuery,S as useGetFeaturesQuery,D as useGetMyAcademyCirriculaQuery,h as useGetPlansQuery,b as useGetSubscriptionsQuery,A as useImportDesignMutation,I as usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation,k as usePostApiEntitlementSubscriptionsCreateMutation,R as usePostApiEntitlementSubscriptionsWebhooksMutation,C as usePostApiWorkspacesMutation,G as usePutApiWorkspacesByIdMutation,_ as useRegisterMeshmodelsMutation,v as useRegisterToAcademyContentMutation,q as useSubmitQuizMutation,f as useUpdateCurrentItemInProgressTrackerMutation};
package/dist/index.d.mts CHANGED
@@ -513,10 +513,6 @@ interface HttpsSchemasMesheryIoComponentJson$5 {
513
513
  * Specifies the version of the schema used for the definition.
514
514
  */
515
515
  schemaVersion: string;
516
- /**
517
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
518
- */
519
- meshsync_deployment_mode?: "operator" | "embedded";
520
516
  }
521
517
  /**
522
518
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -3150,10 +3146,6 @@ interface HttpsSchemasMesheryIoComponentJson1$1 {
3150
3146
  * Specifies the version of the schema used for the definition.
3151
3147
  */
3152
3148
  schemaVersion: string;
3153
- /**
3154
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
3155
- */
3156
- meshsync_deployment_mode?: "operator" | "embedded";
3157
3149
  }
3158
3150
  /**
3159
3151
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -3654,10 +3646,6 @@ interface HttpsSchemasMesheryIoComponentJson$2 {
3654
3646
  * Specifies the version of the schema used for the definition.
3655
3647
  */
3656
3648
  schemaVersion: string;
3657
- /**
3658
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
3659
- */
3660
- meshsync_deployment_mode?: "operator" | "embedded";
3661
3649
  }
3662
3650
  /**
3663
3651
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -4416,10 +4404,6 @@ interface HttpsSchemasMesheryIoComponentJson1 {
4416
4404
  * Specifies the version of the schema used for the definition.
4417
4405
  */
4418
4406
  schemaVersion: string;
4419
- /**
4420
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
4421
- */
4422
- meshsync_deployment_mode?: "operator" | "embedded";
4423
4407
  }
4424
4408
  /**
4425
4409
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -7150,20 +7134,6 @@ declare const schema$7: {
7150
7134
  pattern: string;
7151
7135
  example: string[];
7152
7136
  };
7153
- meshsync_deployment_mode: {
7154
- type: string;
7155
- description: string;
7156
- enum: string[];
7157
- "x-enum-varnames": string[];
7158
- default: string;
7159
- "x-order": number;
7160
- "x-oapi-codegen-extra-tags": {
7161
- yaml: string;
7162
- db: string;
7163
- gorm: string;
7164
- };
7165
- "x-go-type-skip-optional-pointer": boolean;
7166
- };
7167
7137
  };
7168
7138
  };
7169
7139
  registrantId: {
@@ -12801,20 +12771,6 @@ declare const schema$7: {
12801
12771
  pattern: string;
12802
12772
  example: string[];
12803
12773
  };
12804
- meshsync_deployment_mode: {
12805
- type: string;
12806
- description: string;
12807
- enum: string[];
12808
- "x-enum-varnames": string[];
12809
- default: string;
12810
- "x-order": number;
12811
- "x-oapi-codegen-extra-tags": {
12812
- yaml: string;
12813
- db: string;
12814
- gorm: string;
12815
- };
12816
- "x-go-type-skip-optional-pointer": boolean;
12817
- };
12818
12774
  };
12819
12775
  };
12820
12776
  registrantId: {
@@ -18484,20 +18440,6 @@ declare const schema$7: {
18484
18440
  pattern: string;
18485
18441
  example: string[];
18486
18442
  };
18487
- meshsync_deployment_mode: {
18488
- type: string;
18489
- description: string;
18490
- enum: string[];
18491
- "x-enum-varnames": string[];
18492
- default: string;
18493
- "x-order": number;
18494
- "x-oapi-codegen-extra-tags": {
18495
- yaml: string;
18496
- db: string;
18497
- gorm: string;
18498
- };
18499
- "x-go-type-skip-optional-pointer": boolean;
18500
- };
18501
18443
  };
18502
18444
  };
18503
18445
  registrantId: {
@@ -24199,20 +24141,6 @@ declare const schema$7: {
24199
24141
  pattern: string;
24200
24142
  example: string[];
24201
24143
  };
24202
- meshsync_deployment_mode: {
24203
- type: string;
24204
- description: string;
24205
- enum: string[];
24206
- "x-enum-varnames": string[];
24207
- default: string;
24208
- "x-order": number;
24209
- "x-oapi-codegen-extra-tags": {
24210
- yaml: string;
24211
- db: string;
24212
- gorm: string;
24213
- };
24214
- "x-go-type-skip-optional-pointer": boolean;
24215
- };
24216
24144
  };
24217
24145
  };
24218
24146
  registrantId: {
@@ -29800,20 +29728,6 @@ declare const schema$4: {
29800
29728
  pattern: string;
29801
29729
  example: string[];
29802
29730
  };
29803
- meshsync_deployment_mode: {
29804
- type: string;
29805
- description: string;
29806
- enum: string[];
29807
- "x-enum-varnames": string[];
29808
- default: string;
29809
- "x-order": number;
29810
- "x-oapi-codegen-extra-tags": {
29811
- yaml: string;
29812
- db: string;
29813
- gorm: string;
29814
- };
29815
- "x-go-type-skip-optional-pointer": boolean;
29816
- };
29817
29731
  };
29818
29732
  };
29819
29733
  registrantId: {
@@ -31403,20 +31317,6 @@ declare const schema$3: {
31403
31317
  pattern: string;
31404
31318
  example: string[];
31405
31319
  };
31406
- meshsync_deployment_mode: {
31407
- type: string;
31408
- description: string;
31409
- enum: string[];
31410
- "x-enum-varnames": string[];
31411
- default: string;
31412
- "x-order": number;
31413
- "x-oapi-codegen-extra-tags": {
31414
- yaml: string;
31415
- db: string;
31416
- gorm: string;
31417
- };
31418
- "x-go-type-skip-optional-pointer": boolean;
31419
- };
31420
31320
  };
31421
31321
  };
31422
31322
  registrantId: {
package/dist/index.d.ts CHANGED
@@ -513,10 +513,6 @@ interface HttpsSchemasMesheryIoComponentJson$5 {
513
513
  * Specifies the version of the schema used for the definition.
514
514
  */
515
515
  schemaVersion: string;
516
- /**
517
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
518
- */
519
- meshsync_deployment_mode?: "operator" | "embedded";
520
516
  }
521
517
  /**
522
518
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -3150,10 +3146,6 @@ interface HttpsSchemasMesheryIoComponentJson1$1 {
3150
3146
  * Specifies the version of the schema used for the definition.
3151
3147
  */
3152
3148
  schemaVersion: string;
3153
- /**
3154
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
3155
- */
3156
- meshsync_deployment_mode?: "operator" | "embedded";
3157
3149
  }
3158
3150
  /**
3159
3151
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -3654,10 +3646,6 @@ interface HttpsSchemasMesheryIoComponentJson$2 {
3654
3646
  * Specifies the version of the schema used for the definition.
3655
3647
  */
3656
3648
  schemaVersion: string;
3657
- /**
3658
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
3659
- */
3660
- meshsync_deployment_mode?: "operator" | "embedded";
3661
3649
  }
3662
3650
  /**
3663
3651
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -4416,10 +4404,6 @@ interface HttpsSchemasMesheryIoComponentJson1 {
4416
4404
  * Specifies the version of the schema used for the definition.
4417
4405
  */
4418
4406
  schemaVersion: string;
4419
- /**
4420
- * Specifies the MeshSync deployment mode: 'operator' (standalone deployment) or 'embedded' (library).
4421
- */
4422
- meshsync_deployment_mode?: "operator" | "embedded";
4423
4407
  }
4424
4408
  /**
4425
4409
  * Meshery Environments allow you to logically group related Connections and their associated Credentials.. Learn more at https://docs.meshery.io/concepts/logical/environments
@@ -7150,20 +7134,6 @@ declare const schema$7: {
7150
7134
  pattern: string;
7151
7135
  example: string[];
7152
7136
  };
7153
- meshsync_deployment_mode: {
7154
- type: string;
7155
- description: string;
7156
- enum: string[];
7157
- "x-enum-varnames": string[];
7158
- default: string;
7159
- "x-order": number;
7160
- "x-oapi-codegen-extra-tags": {
7161
- yaml: string;
7162
- db: string;
7163
- gorm: string;
7164
- };
7165
- "x-go-type-skip-optional-pointer": boolean;
7166
- };
7167
7137
  };
7168
7138
  };
7169
7139
  registrantId: {
@@ -12801,20 +12771,6 @@ declare const schema$7: {
12801
12771
  pattern: string;
12802
12772
  example: string[];
12803
12773
  };
12804
- meshsync_deployment_mode: {
12805
- type: string;
12806
- description: string;
12807
- enum: string[];
12808
- "x-enum-varnames": string[];
12809
- default: string;
12810
- "x-order": number;
12811
- "x-oapi-codegen-extra-tags": {
12812
- yaml: string;
12813
- db: string;
12814
- gorm: string;
12815
- };
12816
- "x-go-type-skip-optional-pointer": boolean;
12817
- };
12818
12774
  };
12819
12775
  };
12820
12776
  registrantId: {
@@ -18484,20 +18440,6 @@ declare const schema$7: {
18484
18440
  pattern: string;
18485
18441
  example: string[];
18486
18442
  };
18487
- meshsync_deployment_mode: {
18488
- type: string;
18489
- description: string;
18490
- enum: string[];
18491
- "x-enum-varnames": string[];
18492
- default: string;
18493
- "x-order": number;
18494
- "x-oapi-codegen-extra-tags": {
18495
- yaml: string;
18496
- db: string;
18497
- gorm: string;
18498
- };
18499
- "x-go-type-skip-optional-pointer": boolean;
18500
- };
18501
18443
  };
18502
18444
  };
18503
18445
  registrantId: {
@@ -24199,20 +24141,6 @@ declare const schema$7: {
24199
24141
  pattern: string;
24200
24142
  example: string[];
24201
24143
  };
24202
- meshsync_deployment_mode: {
24203
- type: string;
24204
- description: string;
24205
- enum: string[];
24206
- "x-enum-varnames": string[];
24207
- default: string;
24208
- "x-order": number;
24209
- "x-oapi-codegen-extra-tags": {
24210
- yaml: string;
24211
- db: string;
24212
- gorm: string;
24213
- };
24214
- "x-go-type-skip-optional-pointer": boolean;
24215
- };
24216
24144
  };
24217
24145
  };
24218
24146
  registrantId: {
@@ -29800,20 +29728,6 @@ declare const schema$4: {
29800
29728
  pattern: string;
29801
29729
  example: string[];
29802
29730
  };
29803
- meshsync_deployment_mode: {
29804
- type: string;
29805
- description: string;
29806
- enum: string[];
29807
- "x-enum-varnames": string[];
29808
- default: string;
29809
- "x-order": number;
29810
- "x-oapi-codegen-extra-tags": {
29811
- yaml: string;
29812
- db: string;
29813
- gorm: string;
29814
- };
29815
- "x-go-type-skip-optional-pointer": boolean;
29816
- };
29817
29731
  };
29818
29732
  };
29819
29733
  registrantId: {
@@ -31403,20 +31317,6 @@ declare const schema$3: {
31403
31317
  pattern: string;
31404
31318
  example: string[];
31405
31319
  };
31406
- meshsync_deployment_mode: {
31407
- type: string;
31408
- description: string;
31409
- enum: string[];
31410
- "x-enum-varnames": string[];
31411
- default: string;
31412
- "x-order": number;
31413
- "x-oapi-codegen-extra-tags": {
31414
- yaml: string;
31415
- db: string;
31416
- gorm: string;
31417
- };
31418
- "x-go-type-skip-optional-pointer": boolean;
31419
- };
31420
31320
  };
31421
31321
  };
31422
31322
  registrantId: {