@meshery/schemas 0.8.133 → 0.8.134
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 +119 -0
- package/dist/cloudApi.d.mts +5011 -2369
- package/dist/cloudApi.d.ts +5011 -2369
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/badge/Badge.d.mts +37 -18
- package/dist/constructs/v1beta1/badge/Badge.d.ts +37 -18
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/category/Category.d.mts +1 -0
- package/dist/constructs/v1beta1/category/Category.d.ts +1 -0
- package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
- package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
- package/dist/constructs/v1beta1/component/Component.d.mts +12 -4
- package/dist/constructs/v1beta1/component/Component.d.ts +12 -4
- package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
- package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/connection/Connection.d.mts +84 -42
- package/dist/constructs/v1beta1/connection/Connection.d.ts +84 -42
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/environment/Environment.d.mts +65 -22
- package/dist/constructs/v1beta1/environment/Environment.d.ts +65 -22
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +48 -16
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +48 -16
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +8 -8
- package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +8 -8
- package/dist/constructs/v1beta1/event/Event.d.mts +5 -3
- package/dist/constructs/v1beta1/event/Event.d.ts +5 -3
- 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 +56 -54
- package/dist/constructs/v1beta1/invitation/Invitation.d.ts +56 -54
- package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/key/Key.d.mts +3 -3
- package/dist/constructs/v1beta1/key/Key.d.ts +3 -3
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/Keychain.d.mts +12 -36
- package/dist/constructs/v1beta1/keychain/Keychain.d.ts +12 -36
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/Model.d.mts +14 -6
- package/dist/constructs/v1beta1/model/Model.d.ts +14 -6
- 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 +884 -9
- package/dist/constructs/v1beta1/organization/Organization.d.ts +884 -9
- 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 +113 -39
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +113 -39
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +18 -18
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +18 -18
- package/dist/constructs/v1beta1/role/Role.d.mts +17 -17
- package/dist/constructs/v1beta1/role/Role.d.ts +17 -17
- package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/Team.d.mts +16 -16
- package/dist/constructs/v1beta1/team/Team.d.ts +16 -16
- 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 +1238 -169
- package/dist/constructs/v1beta1/user/User.d.ts +1238 -169
- package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta1/workspace/Workspace.d.mts +35 -12
- package/dist/constructs/v1beta1/workspace/Workspace.d.ts +35 -12
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +4 -4
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +4 -4
- package/dist/index.js +25 -25
- package/dist/index.mjs +25 -25
- package/dist/mesheryApi.d.mts +4226 -1565
- package/dist/mesheryApi.d.ts +4226 -1565
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,9 @@ interface paths {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
};
|
|
63
|
+
"/events/delete": {
|
|
64
|
+
post: {
|
|
63
65
|
responses: {
|
|
64
66
|
/** event deleted */
|
|
65
67
|
200: {
|
|
@@ -165,7 +167,7 @@ interface paths {
|
|
|
165
167
|
};
|
|
166
168
|
"/api/workspaces/{workspaceId}/events": {
|
|
167
169
|
/** Gets events for a workspace. */
|
|
168
|
-
get: operations["
|
|
170
|
+
get: operations["getEventsOfWorkspace"];
|
|
169
171
|
};
|
|
170
172
|
}
|
|
171
173
|
interface components {
|
|
@@ -252,7 +254,7 @@ interface components {
|
|
|
252
254
|
}
|
|
253
255
|
interface operations {
|
|
254
256
|
/** Gets events for a workspace. */
|
|
255
|
-
|
|
257
|
+
getEventsOfWorkspace: {
|
|
256
258
|
parameters: {
|
|
257
259
|
path: {
|
|
258
260
|
/** Workspace ID */
|
|
@@ -59,7 +59,9 @@ interface paths {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
};
|
|
63
|
+
"/events/delete": {
|
|
64
|
+
post: {
|
|
63
65
|
responses: {
|
|
64
66
|
/** event deleted */
|
|
65
67
|
200: {
|
|
@@ -165,7 +167,7 @@ interface paths {
|
|
|
165
167
|
};
|
|
166
168
|
"/api/workspaces/{workspaceId}/events": {
|
|
167
169
|
/** Gets events for a workspace. */
|
|
168
|
-
get: operations["
|
|
170
|
+
get: operations["getEventsOfWorkspace"];
|
|
169
171
|
};
|
|
170
172
|
}
|
|
171
173
|
interface components {
|
|
@@ -252,7 +254,7 @@ interface components {
|
|
|
252
254
|
}
|
|
253
255
|
interface operations {
|
|
254
256
|
/** Gets events for a workspace. */
|
|
255
|
-
|
|
257
|
+
getEventsOfWorkspace: {
|
|
256
258
|
parameters: {
|
|
257
259
|
path: {
|
|
258
260
|
/** Workspace ID */
|
|
@@ -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"}}},delete:{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"}}}}},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;
|
|
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"}}},delete:{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"}}}}},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;
|
|
2
2
|
export{t as default};
|
|
@@ -80,6 +80,42 @@ interface components {
|
|
|
80
80
|
/** @description Total number of invitations available */
|
|
81
81
|
total: number;
|
|
82
82
|
};
|
|
83
|
+
/** @description Payload for creating or updating an invitation. */
|
|
84
|
+
InvitationPayload: {
|
|
85
|
+
/**
|
|
86
|
+
* Format: uuid
|
|
87
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
88
|
+
*/
|
|
89
|
+
id?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Format: uuid
|
|
92
|
+
* @description ID of the user who created the invitation.
|
|
93
|
+
*/
|
|
94
|
+
owner_id?: string;
|
|
95
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
96
|
+
is_default?: boolean;
|
|
97
|
+
/** @description Name of the invitation. */
|
|
98
|
+
name: string;
|
|
99
|
+
/** @description Description of the invitation. */
|
|
100
|
+
description: string;
|
|
101
|
+
emails: string[];
|
|
102
|
+
/** @description ID of the organization to which the user is invited. */
|
|
103
|
+
org_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Format: date-time
|
|
106
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
107
|
+
*/
|
|
108
|
+
expires_at?: string;
|
|
109
|
+
/** @description Quota for the invitation. */
|
|
110
|
+
quota?: number;
|
|
111
|
+
roles: string[];
|
|
112
|
+
teams: string[];
|
|
113
|
+
/**
|
|
114
|
+
* @description Status of the invitation, where enabled means the invitation is active and can be used, disabled means the invitation is no longer valid and is temporarily inactive, disabled invitations can be re-enabled later.
|
|
115
|
+
* @enum {string}
|
|
116
|
+
*/
|
|
117
|
+
status: "enabled" | "disabled";
|
|
118
|
+
};
|
|
83
119
|
/**
|
|
84
120
|
* @description Status of the invitation, where enabled means the invitation is active and can be used, disabled means the invitation is no longer valid and is temporarily inactive, disabled invitations can be re-enabled later.
|
|
85
121
|
* @enum {string}
|
|
@@ -302,32 +338,30 @@ interface operations {
|
|
|
302
338
|
"application/json": {
|
|
303
339
|
/**
|
|
304
340
|
* Format: uuid
|
|
305
|
-
* @description
|
|
341
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
306
342
|
*/
|
|
307
|
-
id
|
|
343
|
+
id?: string;
|
|
308
344
|
/**
|
|
309
345
|
* Format: uuid
|
|
310
|
-
* @description ID of the user who created the invitation
|
|
346
|
+
* @description ID of the user who created the invitation.
|
|
311
347
|
*/
|
|
312
|
-
owner_id
|
|
313
|
-
/** @description Indicates whether the invitation is a default invitation (open invite)
|
|
348
|
+
owner_id?: string;
|
|
349
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
314
350
|
is_default?: boolean;
|
|
315
|
-
/** @description Name of the invitation
|
|
351
|
+
/** @description Name of the invitation. */
|
|
316
352
|
name: string;
|
|
317
|
-
/** @description Description of the invitation
|
|
353
|
+
/** @description Description of the invitation. */
|
|
318
354
|
description: string;
|
|
319
355
|
emails: string[];
|
|
320
|
-
/** @description ID of the organization to which the user is invited */
|
|
356
|
+
/** @description ID of the organization to which the user is invited. */
|
|
321
357
|
org_id: string;
|
|
322
358
|
/**
|
|
323
359
|
* Format: date-time
|
|
324
|
-
* @description Timestamp when the invitation expires, if applicable
|
|
360
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
325
361
|
*/
|
|
326
362
|
expires_at?: string;
|
|
327
|
-
/** @description Quota for the invitation
|
|
363
|
+
/** @description Quota for the invitation. */
|
|
328
364
|
quota?: number;
|
|
329
|
-
/** @description List of user ids that have already accepted the invitation, null or empty string means the invitation has not been used yet */
|
|
330
|
-
accepted_by: string[];
|
|
331
365
|
roles: string[];
|
|
332
366
|
teams: string[];
|
|
333
367
|
/**
|
|
@@ -335,21 +369,6 @@ interface operations {
|
|
|
335
369
|
* @enum {string}
|
|
336
370
|
*/
|
|
337
371
|
status: "enabled" | "disabled";
|
|
338
|
-
/**
|
|
339
|
-
* Format: date-time
|
|
340
|
-
* @description Timestamp when the invitation was created
|
|
341
|
-
*/
|
|
342
|
-
created_at: string;
|
|
343
|
-
/**
|
|
344
|
-
* Format: date-time
|
|
345
|
-
* @description Timestamp when the invitation was last updated
|
|
346
|
-
*/
|
|
347
|
-
updated_at: string;
|
|
348
|
-
/**
|
|
349
|
-
* Format: date-time
|
|
350
|
-
* @description Timestamp when the invitation was deleted, if applicable
|
|
351
|
-
*/
|
|
352
|
-
deleted_at: string;
|
|
353
372
|
};
|
|
354
373
|
};
|
|
355
374
|
};
|
|
@@ -513,32 +532,30 @@ interface operations {
|
|
|
513
532
|
"application/json": {
|
|
514
533
|
/**
|
|
515
534
|
* Format: uuid
|
|
516
|
-
* @description
|
|
535
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
517
536
|
*/
|
|
518
|
-
id
|
|
537
|
+
id?: string;
|
|
519
538
|
/**
|
|
520
539
|
* Format: uuid
|
|
521
|
-
* @description ID of the user who created the invitation
|
|
540
|
+
* @description ID of the user who created the invitation.
|
|
522
541
|
*/
|
|
523
|
-
owner_id
|
|
524
|
-
/** @description Indicates whether the invitation is a default invitation (open invite)
|
|
542
|
+
owner_id?: string;
|
|
543
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
525
544
|
is_default?: boolean;
|
|
526
|
-
/** @description Name of the invitation
|
|
545
|
+
/** @description Name of the invitation. */
|
|
527
546
|
name: string;
|
|
528
|
-
/** @description Description of the invitation
|
|
547
|
+
/** @description Description of the invitation. */
|
|
529
548
|
description: string;
|
|
530
549
|
emails: string[];
|
|
531
|
-
/** @description ID of the organization to which the user is invited */
|
|
550
|
+
/** @description ID of the organization to which the user is invited. */
|
|
532
551
|
org_id: string;
|
|
533
552
|
/**
|
|
534
553
|
* Format: date-time
|
|
535
|
-
* @description Timestamp when the invitation expires, if applicable
|
|
554
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
536
555
|
*/
|
|
537
556
|
expires_at?: string;
|
|
538
|
-
/** @description Quota for the invitation
|
|
557
|
+
/** @description Quota for the invitation. */
|
|
539
558
|
quota?: number;
|
|
540
|
-
/** @description List of user ids that have already accepted the invitation, null or empty string means the invitation has not been used yet */
|
|
541
|
-
accepted_by: string[];
|
|
542
559
|
roles: string[];
|
|
543
560
|
teams: string[];
|
|
544
561
|
/**
|
|
@@ -546,21 +563,6 @@ interface operations {
|
|
|
546
563
|
* @enum {string}
|
|
547
564
|
*/
|
|
548
565
|
status: "enabled" | "disabled";
|
|
549
|
-
/**
|
|
550
|
-
* Format: date-time
|
|
551
|
-
* @description Timestamp when the invitation was created
|
|
552
|
-
*/
|
|
553
|
-
created_at: string;
|
|
554
|
-
/**
|
|
555
|
-
* Format: date-time
|
|
556
|
-
* @description Timestamp when the invitation was last updated
|
|
557
|
-
*/
|
|
558
|
-
updated_at: string;
|
|
559
|
-
/**
|
|
560
|
-
* Format: date-time
|
|
561
|
-
* @description Timestamp when the invitation was deleted, if applicable
|
|
562
|
-
*/
|
|
563
|
-
deleted_at: string;
|
|
564
566
|
};
|
|
565
567
|
};
|
|
566
568
|
};
|
|
@@ -80,6 +80,42 @@ interface components {
|
|
|
80
80
|
/** @description Total number of invitations available */
|
|
81
81
|
total: number;
|
|
82
82
|
};
|
|
83
|
+
/** @description Payload for creating or updating an invitation. */
|
|
84
|
+
InvitationPayload: {
|
|
85
|
+
/**
|
|
86
|
+
* Format: uuid
|
|
87
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
88
|
+
*/
|
|
89
|
+
id?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Format: uuid
|
|
92
|
+
* @description ID of the user who created the invitation.
|
|
93
|
+
*/
|
|
94
|
+
owner_id?: string;
|
|
95
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
96
|
+
is_default?: boolean;
|
|
97
|
+
/** @description Name of the invitation. */
|
|
98
|
+
name: string;
|
|
99
|
+
/** @description Description of the invitation. */
|
|
100
|
+
description: string;
|
|
101
|
+
emails: string[];
|
|
102
|
+
/** @description ID of the organization to which the user is invited. */
|
|
103
|
+
org_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Format: date-time
|
|
106
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
107
|
+
*/
|
|
108
|
+
expires_at?: string;
|
|
109
|
+
/** @description Quota for the invitation. */
|
|
110
|
+
quota?: number;
|
|
111
|
+
roles: string[];
|
|
112
|
+
teams: string[];
|
|
113
|
+
/**
|
|
114
|
+
* @description Status of the invitation, where enabled means the invitation is active and can be used, disabled means the invitation is no longer valid and is temporarily inactive, disabled invitations can be re-enabled later.
|
|
115
|
+
* @enum {string}
|
|
116
|
+
*/
|
|
117
|
+
status: "enabled" | "disabled";
|
|
118
|
+
};
|
|
83
119
|
/**
|
|
84
120
|
* @description Status of the invitation, where enabled means the invitation is active and can be used, disabled means the invitation is no longer valid and is temporarily inactive, disabled invitations can be re-enabled later.
|
|
85
121
|
* @enum {string}
|
|
@@ -302,32 +338,30 @@ interface operations {
|
|
|
302
338
|
"application/json": {
|
|
303
339
|
/**
|
|
304
340
|
* Format: uuid
|
|
305
|
-
* @description
|
|
341
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
306
342
|
*/
|
|
307
|
-
id
|
|
343
|
+
id?: string;
|
|
308
344
|
/**
|
|
309
345
|
* Format: uuid
|
|
310
|
-
* @description ID of the user who created the invitation
|
|
346
|
+
* @description ID of the user who created the invitation.
|
|
311
347
|
*/
|
|
312
|
-
owner_id
|
|
313
|
-
/** @description Indicates whether the invitation is a default invitation (open invite)
|
|
348
|
+
owner_id?: string;
|
|
349
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
314
350
|
is_default?: boolean;
|
|
315
|
-
/** @description Name of the invitation
|
|
351
|
+
/** @description Name of the invitation. */
|
|
316
352
|
name: string;
|
|
317
|
-
/** @description Description of the invitation
|
|
353
|
+
/** @description Description of the invitation. */
|
|
318
354
|
description: string;
|
|
319
355
|
emails: string[];
|
|
320
|
-
/** @description ID of the organization to which the user is invited */
|
|
356
|
+
/** @description ID of the organization to which the user is invited. */
|
|
321
357
|
org_id: string;
|
|
322
358
|
/**
|
|
323
359
|
* Format: date-time
|
|
324
|
-
* @description Timestamp when the invitation expires, if applicable
|
|
360
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
325
361
|
*/
|
|
326
362
|
expires_at?: string;
|
|
327
|
-
/** @description Quota for the invitation
|
|
363
|
+
/** @description Quota for the invitation. */
|
|
328
364
|
quota?: number;
|
|
329
|
-
/** @description List of user ids that have already accepted the invitation, null or empty string means the invitation has not been used yet */
|
|
330
|
-
accepted_by: string[];
|
|
331
365
|
roles: string[];
|
|
332
366
|
teams: string[];
|
|
333
367
|
/**
|
|
@@ -335,21 +369,6 @@ interface operations {
|
|
|
335
369
|
* @enum {string}
|
|
336
370
|
*/
|
|
337
371
|
status: "enabled" | "disabled";
|
|
338
|
-
/**
|
|
339
|
-
* Format: date-time
|
|
340
|
-
* @description Timestamp when the invitation was created
|
|
341
|
-
*/
|
|
342
|
-
created_at: string;
|
|
343
|
-
/**
|
|
344
|
-
* Format: date-time
|
|
345
|
-
* @description Timestamp when the invitation was last updated
|
|
346
|
-
*/
|
|
347
|
-
updated_at: string;
|
|
348
|
-
/**
|
|
349
|
-
* Format: date-time
|
|
350
|
-
* @description Timestamp when the invitation was deleted, if applicable
|
|
351
|
-
*/
|
|
352
|
-
deleted_at: string;
|
|
353
372
|
};
|
|
354
373
|
};
|
|
355
374
|
};
|
|
@@ -513,32 +532,30 @@ interface operations {
|
|
|
513
532
|
"application/json": {
|
|
514
533
|
/**
|
|
515
534
|
* Format: uuid
|
|
516
|
-
* @description
|
|
535
|
+
* @description Existing invitation ID for updates; omit on create.
|
|
517
536
|
*/
|
|
518
|
-
id
|
|
537
|
+
id?: string;
|
|
519
538
|
/**
|
|
520
539
|
* Format: uuid
|
|
521
|
-
* @description ID of the user who created the invitation
|
|
540
|
+
* @description ID of the user who created the invitation.
|
|
522
541
|
*/
|
|
523
|
-
owner_id
|
|
524
|
-
/** @description Indicates whether the invitation is a default invitation (open invite)
|
|
542
|
+
owner_id?: string;
|
|
543
|
+
/** @description Indicates whether the invitation is a default invitation (open invite). */
|
|
525
544
|
is_default?: boolean;
|
|
526
|
-
/** @description Name of the invitation
|
|
545
|
+
/** @description Name of the invitation. */
|
|
527
546
|
name: string;
|
|
528
|
-
/** @description Description of the invitation
|
|
547
|
+
/** @description Description of the invitation. */
|
|
529
548
|
description: string;
|
|
530
549
|
emails: string[];
|
|
531
|
-
/** @description ID of the organization to which the user is invited */
|
|
550
|
+
/** @description ID of the organization to which the user is invited. */
|
|
532
551
|
org_id: string;
|
|
533
552
|
/**
|
|
534
553
|
* Format: date-time
|
|
535
|
-
* @description Timestamp when the invitation expires, if applicable
|
|
554
|
+
* @description Timestamp when the invitation expires, if applicable.
|
|
536
555
|
*/
|
|
537
556
|
expires_at?: string;
|
|
538
|
-
/** @description Quota for the invitation
|
|
557
|
+
/** @description Quota for the invitation. */
|
|
539
558
|
quota?: number;
|
|
540
|
-
/** @description List of user ids that have already accepted the invitation, null or empty string means the invitation has not been used yet */
|
|
541
|
-
accepted_by: string[];
|
|
542
559
|
roles: string[];
|
|
543
560
|
teams: string[];
|
|
544
561
|
/**
|
|
@@ -546,21 +563,6 @@ interface operations {
|
|
|
546
563
|
* @enum {string}
|
|
547
564
|
*/
|
|
548
565
|
status: "enabled" | "disabled";
|
|
549
|
-
/**
|
|
550
|
-
* Format: date-time
|
|
551
|
-
* @description Timestamp when the invitation was created
|
|
552
|
-
*/
|
|
553
|
-
created_at: string;
|
|
554
|
-
/**
|
|
555
|
-
* Format: date-time
|
|
556
|
-
* @description Timestamp when the invitation was last updated
|
|
557
|
-
*/
|
|
558
|
-
updated_at: string;
|
|
559
|
-
/**
|
|
560
|
-
* Format: date-time
|
|
561
|
-
* @description Timestamp when the invitation was deleted, if applicable
|
|
562
|
-
*/
|
|
563
|
-
deleted_at: string;
|
|
564
566
|
};
|
|
565
567
|
};
|
|
566
568
|
};
|