@meshery/schemas 0.8.135 → 0.9.0
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/README.md +2 -2
- package/dist/cloudApi.d.mts +16943 -8042
- package/dist/cloudApi.d.ts +16943 -8042
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/badge/Badge.d.mts +201 -0
- package/dist/constructs/v1beta1/badge/Badge.d.ts +201 -0
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/environment/Environment.d.mts +366 -0
- package/dist/constructs/v1beta1/environment/Environment.d.ts +366 -0
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/event/Event.d.mts +175 -0
- package/dist/constructs/v1beta1/event/Event.d.ts +175 -0
- package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta1/invitation/Invitation.d.mts +166 -0
- package/dist/constructs/v1beta1/invitation/Invitation.d.ts +166 -0
- package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +38 -0
- package/dist/constructs/v1beta1/model/Model.d.ts +38 -0
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/Organization.d.mts +48 -0
- package/dist/constructs/v1beta1/organization/Organization.d.ts +48 -0
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +6114 -2637
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +6114 -2637
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +99 -3
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +99 -3
- package/dist/constructs/v1beta1/team/Team.d.mts +68 -9
- package/dist/constructs/v1beta1/team/Team.d.ts +68 -9
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/User.d.mts +395 -0
- package/dist/constructs/v1beta1/user/User.d.ts +395 -0
- package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
- package/dist/index.js +102 -6
- package/dist/index.mjs +102 -6
- package/dist/mesheryApi.d.mts +4575 -1598
- package/dist/mesheryApi.d.ts +4575 -1598
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var e={openapi:"3.0.0",info:{title:"Events",description:"OpenAPI schema for Meshery events and system notifications.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},tags:[{name:"events",description:"APIs for Meshery Cloud events."}],paths:{"/events/{id}":{delete:{tags:["events"],summary:"Delete a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event to delete"}],responses:{200:{description:"Event deleted successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"}}}}}},400:{description:"Invalid event ID",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events":{post:{tags:["events"],summary:"Create a new event",requestBody:{required:true,content:{"application/json":{schema:{type:"object"}}}},responses:{200:{description:"Event created successfully"},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/delete":{post:{tags:["events"],summary:"Bulk delete events",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}}}}},responses:{200:{description:"event deleted",content:{"application/json":{schema:{type:"object",properties:{deleted:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/status":{put:{tags:["events"],summary:"Bulk update event status",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}}}}},responses:{200:{description:"Events updated successfully",content:{"application/json":{schema:{type:"object",properties:{updated:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/{id}/status":{put:{tags:["events"],summary:"Update status of a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event"}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}}}}},responses:{200:{description:"Event status updated successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"},status:{type:"string"}}}}}},400:{description:"Invalid request or status",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/api/workspaces/{workspaceId}/events":{get:{"x-internal":["cloud"],tags:["events"],security:[{jwt:[]}],operationId:"getEventsOfWorkspace",summary:"Get workspace events",description:"Gets events for a workspace.",parameters:[{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Workspace events",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},401:{description:"Unauthorized"},404:{description:"Workspace not found"},500:{description:"Server error"}}}}},components:{parameters:{workspaceId:{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{UpdateEventStatusRequest:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}},BulkDeleteRequest:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}},BulkUpdateStatusRequest:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}},eventResult:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}},eventsPage:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}},ErrorResponse:{type:"object",properties:{error:{type:"string"}}}}}},t=e;
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"Events",description:"OpenAPI schema for Meshery events and system notifications.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},tags:[{name:"events",description:"APIs for Meshery Cloud events."}],paths:{"/events/{id}":{delete:{tags:["events"],summary:"Delete a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event to delete"}],responses:{200:{description:"Event deleted successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"}}}}}},400:{description:"Invalid event ID",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events":{post:{tags:["events"],summary:"Create a new event",requestBody:{required:true,content:{"application/json":{schema:{type:"object"}}}},responses:{200:{description:"Event created successfully"},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/delete":{post:{tags:["events"],summary:"Bulk delete events",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}}}}},responses:{200:{description:"event deleted",content:{"application/json":{schema:{type:"object",properties:{deleted:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/status":{put:{tags:["events"],summary:"Bulk update event status",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}}}}},responses:{200:{description:"Events updated successfully",content:{"application/json":{schema:{type:"object",properties:{updated:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/{id}/status":{put:{tags:["events"],summary:"Update status of a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event"}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}}}}},responses:{200:{description:"Event status updated successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"},status:{type:"string"}}}}}},400:{description:"Invalid request or status",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/api/workspaces/{workspaceId}/events":{get:{"x-internal":["cloud"],tags:["events"],security:[{jwt:[]}],operationId:"getEventsOfWorkspace",summary:"Get workspace events",description:"Gets events for a workspace.",parameters:[{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Workspace events",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},401:{description:"Unauthorized"},404:{description:"Workspace not found"},500:{description:"Server error"}}}},"/api/events":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventsAggregate",summary:"Get events aggregate summary",parameters:[{name:"cumulative",in:"query",required:false,schema:{type:"boolean"}}],responses:{200:{description:"Events aggregate",content:{"application/json":{schema:{type:"object",properties:{audit:{type:"integer"}},additionalProperties:true}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/list":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEvents",summary:"Get events list",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}],responses:{200:{description:"Events page",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/summary":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventSummaryByUser",summary:"Get event summary by user",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}],responses:{200:{description:"Event summary page",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},data:{type:"array",items:{type:"object",additionalProperties:true}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/types":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventTypes",summary:"Get event types",responses:{200:{description:"Event types",content:{"application/json":{schema:{type:"array",items:{type:"object",properties:{category:{type:"string"},action:{type:"string"}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}}},components:{parameters:{workspaceId:{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},cumulative:{name:"cumulative",in:"query",required:false,schema:{type:"boolean"}},filter:{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}},eventsFilter:{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{UpdateEventStatusRequest:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}},BulkDeleteRequest:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}},BulkUpdateStatusRequest:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}},eventResult:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}},eventsPage:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}},eventsAggregate:{type:"object",properties:{audit:{type:"integer"}},additionalProperties:true},eventSummary:{type:"object",additionalProperties:true},eventSummaryPage:{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},data:{type:"array",items:{type:"object",additionalProperties:true}}}},eventType:{type:"object",properties:{category:{type:"string"},action:{type:"string"}}},ErrorResponse:{type:"object",properties:{error:{type:"string"}}}}}},t=e;
|
|
2
2
|
module.exports=t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={openapi:"3.0.0",info:{title:"Events",description:"OpenAPI schema for Meshery events and system notifications.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},tags:[{name:"events",description:"APIs for Meshery Cloud events."}],paths:{"/events/{id}":{delete:{tags:["events"],summary:"Delete a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event to delete"}],responses:{200:{description:"Event deleted successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"}}}}}},400:{description:"Invalid event ID",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events":{post:{tags:["events"],summary:"Create a new event",requestBody:{required:true,content:{"application/json":{schema:{type:"object"}}}},responses:{200:{description:"Event created successfully"},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/delete":{post:{tags:["events"],summary:"Bulk delete events",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}}}}},responses:{200:{description:"event deleted",content:{"application/json":{schema:{type:"object",properties:{deleted:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/status":{put:{tags:["events"],summary:"Bulk update event status",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}}}}},responses:{200:{description:"Events updated successfully",content:{"application/json":{schema:{type:"object",properties:{updated:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/{id}/status":{put:{tags:["events"],summary:"Update status of a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event"}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}}}}},responses:{200:{description:"Event status updated successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"},status:{type:"string"}}}}}},400:{description:"Invalid request or status",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/api/workspaces/{workspaceId}/events":{get:{"x-internal":["cloud"],tags:["events"],security:[{jwt:[]}],operationId:"getEventsOfWorkspace",summary:"Get workspace events",description:"Gets events for a workspace.",parameters:[{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Workspace events",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},401:{description:"Unauthorized"},404:{description:"Workspace not found"},500:{description:"Server error"}}}}},components:{parameters:{workspaceId:{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{UpdateEventStatusRequest:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}},BulkDeleteRequest:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}},BulkUpdateStatusRequest:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}},eventResult:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}},eventsPage:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}},ErrorResponse:{type:"object",properties:{error:{type:"string"}}}}}},t=e;
|
|
1
|
+
var e={openapi:"3.0.0",info:{title:"Events",description:"OpenAPI schema for Meshery events and system notifications.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},tags:[{name:"events",description:"APIs for Meshery Cloud events."}],paths:{"/events/{id}":{delete:{tags:["events"],summary:"Delete a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event to delete"}],responses:{200:{description:"Event deleted successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"}}}}}},400:{description:"Invalid event ID",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events":{post:{tags:["events"],summary:"Create a new event",requestBody:{required:true,content:{"application/json":{schema:{type:"object"}}}},responses:{200:{description:"Event created successfully"},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/delete":{post:{tags:["events"],summary:"Bulk delete events",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}}}}},responses:{200:{description:"event deleted",content:{"application/json":{schema:{type:"object",properties:{deleted:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/status":{put:{tags:["events"],summary:"Bulk update event status",requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}}}}},responses:{200:{description:"Events updated successfully",content:{"application/json":{schema:{type:"object",properties:{updated:{type:"array",items:{type:"string",format:"uuid"}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/events/{id}/status":{put:{tags:["events"],summary:"Update status of a single event",parameters:[{in:"path",name:"id",required:true,schema:{type:"string",format:"uuid"},description:"ID of the event"}],requestBody:{required:true,content:{"application/json":{schema:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}}}}},responses:{200:{description:"Event status updated successfully",content:{"application/json":{schema:{type:"object",properties:{message:{type:"string"},event_id:{type:"string",format:"uuid"},status:{type:"string"}}}}}},400:{description:"Invalid request or status",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},500:{description:"Server error"}}}},"/api/workspaces/{workspaceId}/events":{get:{"x-internal":["cloud"],tags:["events"],security:[{jwt:[]}],operationId:"getEventsOfWorkspace",summary:"Get workspace events",description:"Gets events for a workspace.",parameters:[{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Workspace events",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},400:{description:"Invalid request",content:{"application/json":{schema:{type:"object",properties:{error:{type:"string"}}}}}},401:{description:"Unauthorized"},404:{description:"Workspace not found"},500:{description:"Server error"}}}},"/api/events":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventsAggregate",summary:"Get events aggregate summary",parameters:[{name:"cumulative",in:"query",required:false,schema:{type:"boolean"}}],responses:{200:{description:"Events aggregate",content:{"application/json":{schema:{type:"object",properties:{audit:{type:"integer"}},additionalProperties:true}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/list":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEvents",summary:"Get events list",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}],responses:{200:{description:"Events page",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/summary":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventSummaryByUser",summary:"Get event summary by user",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}],responses:{200:{description:"Event summary page",content:{"application/json":{schema:{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},data:{type:"array",items:{type:"object",additionalProperties:true}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}},"/api/events/types":{get:{"x-internal":["cloud"],tags:["events"],operationId:"getEventTypes",summary:"Get event types",responses:{200:{description:"Event types",content:{"application/json":{schema:{type:"array",items:{type:"object",properties:{category:{type:"string"},action:{type:"string"}}}}}}},401:{description:"Unauthorized"},404:{description:"Not found"},500:{description:"Server error"}}}}},components:{parameters:{workspaceId:{name:"workspaceId",in:"path",description:"Workspace ID",schema:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"workspace_id",json:"workspace_id"},"x-go-type-name":"WorkspaceId","x-go-type-skip-optional-pointer":true},required:true},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},cumulative:{name:"cumulative",in:"query",required:false,schema:{type:"boolean"}},filter:{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}},eventsFilter:{name:"filter",in:"query",description:"Get filtered reponses",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{UpdateEventStatusRequest:{type:"object",required:["status"],properties:{status:{type:"string",example:"completed"}}},BulkDeleteRequest:{type:"object",required:["ids"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}}},BulkUpdateStatusRequest:{type:"object",required:["ids","status"],properties:{ids:{type:"array",items:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},status:{type:"string",example:"failed"}}},eventResult:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}},eventsPage:{type:"object",properties:{page:{type:"integer","x-go-type-skip-optional-pointer":true},page_size:{type:"integer","x-go-type-skip-optional-pointer":true},total_count:{type:"integer","x-go-type-skip-optional-pointer":true},data:{type:"array",items:{type:"object",properties:{user_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"user_id",json:"user_id"},"x-go-name":"UserID","x-go-type-skip-optional-pointer":true},system_id:{type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-oapi-codegen-extra-tags":{db:"system_id"},"x-go-name":"SystemID","x-go-type-skip-optional-pointer":true},category:{type:"string"},action:{type:"string"},description:{type:"string"},first_name:{type:"string"},last_name:{type:"string"},email:{type:"string",format:"email",description:"email","x-go-type-skip-optional-pointer":true},provider:{type:"string",description:"One of (x-oapi-codegen-extra-tags-cloud, github, google)","x-go-type-skip-optional-pointer":true},created_at:{description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true}}}}}},eventsAggregate:{type:"object",properties:{audit:{type:"integer"}},additionalProperties:true},eventSummary:{type:"object",additionalProperties:true},eventSummaryPage:{type:"object",properties:{page:{type:"integer"},page_size:{type:"integer"},total_count:{type:"integer"},data:{type:"array",items:{type:"object",additionalProperties:true}}}},eventType:{type:"object",properties:{category:{type:"string"},action:{type:"string"}}},ErrorResponse:{type:"object",properties:{error:{type:"string"}}}}}},t=e;
|
|
2
2
|
export{t as default};
|
|
@@ -15,6 +15,22 @@ interface paths {
|
|
|
15
15
|
"/api/organizations/invitations/{invitationId}/accept": {
|
|
16
16
|
post: operations["acceptInvitation"];
|
|
17
17
|
};
|
|
18
|
+
"/api/identity/orgs/{orgId}/users/invite": {
|
|
19
|
+
post: operations["handleUserInvite"];
|
|
20
|
+
};
|
|
21
|
+
"/api/identity/users/request": {
|
|
22
|
+
get: operations["getSignupRequests"];
|
|
23
|
+
post: operations["signupRequest"];
|
|
24
|
+
};
|
|
25
|
+
"/api/identity/users/request/approve": {
|
|
26
|
+
post: operations["approveSignupRequest"];
|
|
27
|
+
};
|
|
28
|
+
"/api/identity/users/request/deny": {
|
|
29
|
+
post: operations["denySignupRequest"];
|
|
30
|
+
};
|
|
31
|
+
"/api/identity/users/request/notification": {
|
|
32
|
+
get: operations["getSignupRequestNotification"];
|
|
33
|
+
};
|
|
18
34
|
}
|
|
19
35
|
interface components {
|
|
20
36
|
schemas: {
|
|
@@ -80,6 +96,17 @@ interface components {
|
|
|
80
96
|
/** @description Total number of invitations available */
|
|
81
97
|
total: number;
|
|
82
98
|
};
|
|
99
|
+
SignupRequest: {
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
SignupRequestsPage: {
|
|
103
|
+
page?: number;
|
|
104
|
+
page_size?: number;
|
|
105
|
+
total_count?: number;
|
|
106
|
+
data?: {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
83
110
|
/** @description Payload for creating or updating an invitation. */
|
|
84
111
|
InvitationPayload: {
|
|
85
112
|
/**
|
|
@@ -639,6 +666,145 @@ interface operations {
|
|
|
639
666
|
500: unknown;
|
|
640
667
|
};
|
|
641
668
|
};
|
|
669
|
+
handleUserInvite: {
|
|
670
|
+
parameters: {
|
|
671
|
+
path: {
|
|
672
|
+
/** The ID of the organization */
|
|
673
|
+
orgId: string;
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
responses: {
|
|
677
|
+
/** Invitation request accepted */
|
|
678
|
+
200: {
|
|
679
|
+
content: {
|
|
680
|
+
"application/json": {
|
|
681
|
+
[key: string]: unknown;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
/** Unauthorized */
|
|
686
|
+
401: unknown;
|
|
687
|
+
/** Internal Server Error */
|
|
688
|
+
500: unknown;
|
|
689
|
+
};
|
|
690
|
+
requestBody: {
|
|
691
|
+
content: {
|
|
692
|
+
"application/json": {
|
|
693
|
+
[key: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
getSignupRequests: {
|
|
699
|
+
parameters: {
|
|
700
|
+
query: {
|
|
701
|
+
/** Get responses by page */
|
|
702
|
+
page?: string;
|
|
703
|
+
/** Get responses by pagesize */
|
|
704
|
+
pagesize?: string;
|
|
705
|
+
/** Get responses that match search param value */
|
|
706
|
+
search?: string;
|
|
707
|
+
/** Get ordered responses */
|
|
708
|
+
order?: string;
|
|
709
|
+
/** Get filtered reponses */
|
|
710
|
+
filter?: string;
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
responses: {
|
|
714
|
+
/** Signup requests page */
|
|
715
|
+
200: {
|
|
716
|
+
content: {
|
|
717
|
+
"application/json": {
|
|
718
|
+
page?: number;
|
|
719
|
+
page_size?: number;
|
|
720
|
+
total_count?: number;
|
|
721
|
+
data?: {
|
|
722
|
+
[key: string]: unknown;
|
|
723
|
+
}[];
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** Unauthorized */
|
|
728
|
+
401: unknown;
|
|
729
|
+
/** Internal Server Error */
|
|
730
|
+
500: unknown;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
signupRequest: {
|
|
734
|
+
responses: {
|
|
735
|
+
/** Signup request created */
|
|
736
|
+
200: {
|
|
737
|
+
content: {
|
|
738
|
+
"application/json": {
|
|
739
|
+
[key: string]: unknown;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
/** Unauthorized */
|
|
744
|
+
401: unknown;
|
|
745
|
+
/** Internal Server Error */
|
|
746
|
+
500: unknown;
|
|
747
|
+
};
|
|
748
|
+
requestBody: {
|
|
749
|
+
content: {
|
|
750
|
+
"application/json": {
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
approveSignupRequest: {
|
|
757
|
+
responses: {
|
|
758
|
+
/** Signup request approved */
|
|
759
|
+
200: {
|
|
760
|
+
content: {
|
|
761
|
+
"application/json": {
|
|
762
|
+
[key: string]: unknown;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
/** Bad Request */
|
|
767
|
+
400: unknown;
|
|
768
|
+
/** Unauthorized */
|
|
769
|
+
401: unknown;
|
|
770
|
+
/** Internal Server Error */
|
|
771
|
+
500: unknown;
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
denySignupRequest: {
|
|
775
|
+
responses: {
|
|
776
|
+
/** Signup request denied */
|
|
777
|
+
200: {
|
|
778
|
+
content: {
|
|
779
|
+
"application/json": {
|
|
780
|
+
[key: string]: unknown;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/** Bad Request */
|
|
785
|
+
400: unknown;
|
|
786
|
+
/** Unauthorized */
|
|
787
|
+
401: unknown;
|
|
788
|
+
/** Internal Server Error */
|
|
789
|
+
500: unknown;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
getSignupRequestNotification: {
|
|
793
|
+
responses: {
|
|
794
|
+
/** Signup request notification payload */
|
|
795
|
+
200: {
|
|
796
|
+
content: {
|
|
797
|
+
"application/json": {
|
|
798
|
+
[key: string]: unknown;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
/** No pending signup request notifications */
|
|
803
|
+
204: never;
|
|
804
|
+
/** Unauthorized */
|
|
805
|
+
401: unknown;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
642
808
|
}
|
|
643
809
|
interface external {
|
|
644
810
|
}
|
|
@@ -15,6 +15,22 @@ interface paths {
|
|
|
15
15
|
"/api/organizations/invitations/{invitationId}/accept": {
|
|
16
16
|
post: operations["acceptInvitation"];
|
|
17
17
|
};
|
|
18
|
+
"/api/identity/orgs/{orgId}/users/invite": {
|
|
19
|
+
post: operations["handleUserInvite"];
|
|
20
|
+
};
|
|
21
|
+
"/api/identity/users/request": {
|
|
22
|
+
get: operations["getSignupRequests"];
|
|
23
|
+
post: operations["signupRequest"];
|
|
24
|
+
};
|
|
25
|
+
"/api/identity/users/request/approve": {
|
|
26
|
+
post: operations["approveSignupRequest"];
|
|
27
|
+
};
|
|
28
|
+
"/api/identity/users/request/deny": {
|
|
29
|
+
post: operations["denySignupRequest"];
|
|
30
|
+
};
|
|
31
|
+
"/api/identity/users/request/notification": {
|
|
32
|
+
get: operations["getSignupRequestNotification"];
|
|
33
|
+
};
|
|
18
34
|
}
|
|
19
35
|
interface components {
|
|
20
36
|
schemas: {
|
|
@@ -80,6 +96,17 @@ interface components {
|
|
|
80
96
|
/** @description Total number of invitations available */
|
|
81
97
|
total: number;
|
|
82
98
|
};
|
|
99
|
+
SignupRequest: {
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
SignupRequestsPage: {
|
|
103
|
+
page?: number;
|
|
104
|
+
page_size?: number;
|
|
105
|
+
total_count?: number;
|
|
106
|
+
data?: {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
83
110
|
/** @description Payload for creating or updating an invitation. */
|
|
84
111
|
InvitationPayload: {
|
|
85
112
|
/**
|
|
@@ -639,6 +666,145 @@ interface operations {
|
|
|
639
666
|
500: unknown;
|
|
640
667
|
};
|
|
641
668
|
};
|
|
669
|
+
handleUserInvite: {
|
|
670
|
+
parameters: {
|
|
671
|
+
path: {
|
|
672
|
+
/** The ID of the organization */
|
|
673
|
+
orgId: string;
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
responses: {
|
|
677
|
+
/** Invitation request accepted */
|
|
678
|
+
200: {
|
|
679
|
+
content: {
|
|
680
|
+
"application/json": {
|
|
681
|
+
[key: string]: unknown;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
/** Unauthorized */
|
|
686
|
+
401: unknown;
|
|
687
|
+
/** Internal Server Error */
|
|
688
|
+
500: unknown;
|
|
689
|
+
};
|
|
690
|
+
requestBody: {
|
|
691
|
+
content: {
|
|
692
|
+
"application/json": {
|
|
693
|
+
[key: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
getSignupRequests: {
|
|
699
|
+
parameters: {
|
|
700
|
+
query: {
|
|
701
|
+
/** Get responses by page */
|
|
702
|
+
page?: string;
|
|
703
|
+
/** Get responses by pagesize */
|
|
704
|
+
pagesize?: string;
|
|
705
|
+
/** Get responses that match search param value */
|
|
706
|
+
search?: string;
|
|
707
|
+
/** Get ordered responses */
|
|
708
|
+
order?: string;
|
|
709
|
+
/** Get filtered reponses */
|
|
710
|
+
filter?: string;
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
responses: {
|
|
714
|
+
/** Signup requests page */
|
|
715
|
+
200: {
|
|
716
|
+
content: {
|
|
717
|
+
"application/json": {
|
|
718
|
+
page?: number;
|
|
719
|
+
page_size?: number;
|
|
720
|
+
total_count?: number;
|
|
721
|
+
data?: {
|
|
722
|
+
[key: string]: unknown;
|
|
723
|
+
}[];
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** Unauthorized */
|
|
728
|
+
401: unknown;
|
|
729
|
+
/** Internal Server Error */
|
|
730
|
+
500: unknown;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
signupRequest: {
|
|
734
|
+
responses: {
|
|
735
|
+
/** Signup request created */
|
|
736
|
+
200: {
|
|
737
|
+
content: {
|
|
738
|
+
"application/json": {
|
|
739
|
+
[key: string]: unknown;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
/** Unauthorized */
|
|
744
|
+
401: unknown;
|
|
745
|
+
/** Internal Server Error */
|
|
746
|
+
500: unknown;
|
|
747
|
+
};
|
|
748
|
+
requestBody: {
|
|
749
|
+
content: {
|
|
750
|
+
"application/json": {
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
approveSignupRequest: {
|
|
757
|
+
responses: {
|
|
758
|
+
/** Signup request approved */
|
|
759
|
+
200: {
|
|
760
|
+
content: {
|
|
761
|
+
"application/json": {
|
|
762
|
+
[key: string]: unknown;
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
/** Bad Request */
|
|
767
|
+
400: unknown;
|
|
768
|
+
/** Unauthorized */
|
|
769
|
+
401: unknown;
|
|
770
|
+
/** Internal Server Error */
|
|
771
|
+
500: unknown;
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
denySignupRequest: {
|
|
775
|
+
responses: {
|
|
776
|
+
/** Signup request denied */
|
|
777
|
+
200: {
|
|
778
|
+
content: {
|
|
779
|
+
"application/json": {
|
|
780
|
+
[key: string]: unknown;
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/** Bad Request */
|
|
785
|
+
400: unknown;
|
|
786
|
+
/** Unauthorized */
|
|
787
|
+
401: unknown;
|
|
788
|
+
/** Internal Server Error */
|
|
789
|
+
500: unknown;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
getSignupRequestNotification: {
|
|
793
|
+
responses: {
|
|
794
|
+
/** Signup request notification payload */
|
|
795
|
+
200: {
|
|
796
|
+
content: {
|
|
797
|
+
"application/json": {
|
|
798
|
+
[key: string]: unknown;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
/** No pending signup request notifications */
|
|
803
|
+
204: never;
|
|
804
|
+
/** Unauthorized */
|
|
805
|
+
401: unknown;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
642
808
|
}
|
|
643
809
|
interface external {
|
|
644
810
|
}
|