@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.
Files changed (80) hide show
  1. package/README.md +119 -0
  2. package/dist/cloudApi.d.mts +5011 -2369
  3. package/dist/cloudApi.d.ts +5011 -2369
  4. package/dist/cloudApi.js +1 -1
  5. package/dist/cloudApi.mjs +1 -1
  6. package/dist/constructs/v1beta1/badge/Badge.d.mts +37 -18
  7. package/dist/constructs/v1beta1/badge/Badge.d.ts +37 -18
  8. package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
  9. package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
  10. package/dist/constructs/v1beta1/category/Category.d.mts +1 -0
  11. package/dist/constructs/v1beta1/category/Category.d.ts +1 -0
  12. package/dist/constructs/v1beta1/category/CategorySchema.js +1 -1
  13. package/dist/constructs/v1beta1/category/CategorySchema.mjs +1 -1
  14. package/dist/constructs/v1beta1/component/Component.d.mts +12 -4
  15. package/dist/constructs/v1beta1/component/Component.d.ts +12 -4
  16. package/dist/constructs/v1beta1/component/ComponentSchema.js +1 -1
  17. package/dist/constructs/v1beta1/component/ComponentSchema.mjs +1 -1
  18. package/dist/constructs/v1beta1/connection/Connection.d.mts +84 -42
  19. package/dist/constructs/v1beta1/connection/Connection.d.ts +84 -42
  20. package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
  21. package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
  22. package/dist/constructs/v1beta1/environment/Environment.d.mts +65 -22
  23. package/dist/constructs/v1beta1/environment/Environment.d.ts +65 -22
  24. package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
  25. package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
  26. package/dist/constructs/v1beta1/evaluation/Evaluation.d.mts +48 -16
  27. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +48 -16
  28. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.js +8 -8
  29. package/dist/constructs/v1beta1/evaluation/EvaluationSchema.mjs +8 -8
  30. package/dist/constructs/v1beta1/event/Event.d.mts +5 -3
  31. package/dist/constructs/v1beta1/event/Event.d.ts +5 -3
  32. package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
  33. package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
  34. package/dist/constructs/v1beta1/invitation/Invitation.d.mts +56 -54
  35. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +56 -54
  36. package/dist/constructs/v1beta1/invitation/InvitationSchema.js +1 -1
  37. package/dist/constructs/v1beta1/invitation/InvitationSchema.mjs +1 -1
  38. package/dist/constructs/v1beta1/key/Key.d.mts +3 -3
  39. package/dist/constructs/v1beta1/key/Key.d.ts +3 -3
  40. package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
  41. package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
  42. package/dist/constructs/v1beta1/keychain/Keychain.d.mts +12 -36
  43. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +12 -36
  44. package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
  45. package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
  46. package/dist/constructs/v1beta1/model/Model.d.mts +14 -6
  47. package/dist/constructs/v1beta1/model/Model.d.ts +14 -6
  48. package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
  49. package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
  50. package/dist/constructs/v1beta1/organization/Organization.d.mts +884 -9
  51. package/dist/constructs/v1beta1/organization/Organization.d.ts +884 -9
  52. package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
  53. package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
  54. package/dist/constructs/v1beta1/pattern/Pattern.d.mts +113 -39
  55. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +113 -39
  56. package/dist/constructs/v1beta1/pattern/PatternSchema.js +18 -18
  57. package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +18 -18
  58. package/dist/constructs/v1beta1/role/Role.d.mts +17 -17
  59. package/dist/constructs/v1beta1/role/Role.d.ts +17 -17
  60. package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
  61. package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
  62. package/dist/constructs/v1beta1/team/Team.d.mts +16 -16
  63. package/dist/constructs/v1beta1/team/Team.d.ts +16 -16
  64. package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
  65. package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
  66. package/dist/constructs/v1beta1/user/User.d.mts +1238 -169
  67. package/dist/constructs/v1beta1/user/User.d.ts +1238 -169
  68. package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
  69. package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
  70. package/dist/constructs/v1beta1/workspace/Workspace.d.mts +35 -12
  71. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +35 -12
  72. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +4 -4
  73. package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +4 -4
  74. package/dist/index.js +25 -25
  75. package/dist/index.mjs +25 -25
  76. package/dist/mesheryApi.d.mts +4226 -1565
  77. package/dist/mesheryApi.d.ts +4226 -1565
  78. package/dist/mesheryApi.js +1 -1
  79. package/dist/mesheryApi.mjs +1 -1
  80. package/package.json +1 -1
@@ -59,7 +59,9 @@ interface paths {
59
59
  };
60
60
  };
61
61
  };
62
- delete: {
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["GetEventsOfWorkspace"];
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
- GetEventsOfWorkspace: {
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
- delete: {
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["GetEventsOfWorkspace"];
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
- GetEventsOfWorkspace: {
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 Unique identifier for the invitation , is also used as the invitation code
341
+ * @description Existing invitation ID for updates; omit on create.
306
342
  */
307
- id: string;
343
+ id?: string;
308
344
  /**
309
345
  * Format: uuid
310
- * @description ID of the user who created the invitation, this is used to track who created the invitation and can be used for auditing purposes
346
+ * @description ID of the user who created the invitation.
311
347
  */
312
- owner_id: string;
313
- /** @description Indicates whether the invitation is a default invitation (open invite), which can be used to assign users when signing up from fqdn or custom domain, a organization can only have one default invitation */
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, which can be used to identify the invitation, required and cant be empty string, */
351
+ /** @description Name of the invitation. */
316
352
  name: string;
317
- /** @description Description of the invitation, which can be used to provide additional information about the invitation, null or empty string means the invitation does not have a description */
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 , null or empty string means the invitation does not expire
360
+ * @description Timestamp when the invitation expires, if applicable.
325
361
  */
326
362
  expires_at?: string;
327
- /** @description Quota for the invitation, which can be used to limit the number of users that can accept the invitation, null or empty string means the invitation does not have a quota */
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 Unique identifier for the invitation , is also used as the invitation code
535
+ * @description Existing invitation ID for updates; omit on create.
517
536
  */
518
- id: string;
537
+ id?: string;
519
538
  /**
520
539
  * Format: uuid
521
- * @description ID of the user who created the invitation, this is used to track who created the invitation and can be used for auditing purposes
540
+ * @description ID of the user who created the invitation.
522
541
  */
523
- owner_id: string;
524
- /** @description Indicates whether the invitation is a default invitation (open invite), which can be used to assign users when signing up from fqdn or custom domain, a organization can only have one default invitation */
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, which can be used to identify the invitation, required and cant be empty string, */
545
+ /** @description Name of the invitation. */
527
546
  name: string;
528
- /** @description Description of the invitation, which can be used to provide additional information about the invitation, null or empty string means the invitation does not have a description */
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 , null or empty string means the invitation does not expire
554
+ * @description Timestamp when the invitation expires, if applicable.
536
555
  */
537
556
  expires_at?: string;
538
- /** @description Quota for the invitation, which can be used to limit the number of users that can accept the invitation, null or empty string means the invitation does not have a quota */
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 Unique identifier for the invitation , is also used as the invitation code
341
+ * @description Existing invitation ID for updates; omit on create.
306
342
  */
307
- id: string;
343
+ id?: string;
308
344
  /**
309
345
  * Format: uuid
310
- * @description ID of the user who created the invitation, this is used to track who created the invitation and can be used for auditing purposes
346
+ * @description ID of the user who created the invitation.
311
347
  */
312
- owner_id: string;
313
- /** @description Indicates whether the invitation is a default invitation (open invite), which can be used to assign users when signing up from fqdn or custom domain, a organization can only have one default invitation */
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, which can be used to identify the invitation, required and cant be empty string, */
351
+ /** @description Name of the invitation. */
316
352
  name: string;
317
- /** @description Description of the invitation, which can be used to provide additional information about the invitation, null or empty string means the invitation does not have a description */
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 , null or empty string means the invitation does not expire
360
+ * @description Timestamp when the invitation expires, if applicable.
325
361
  */
326
362
  expires_at?: string;
327
- /** @description Quota for the invitation, which can be used to limit the number of users that can accept the invitation, null or empty string means the invitation does not have a quota */
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 Unique identifier for the invitation , is also used as the invitation code
535
+ * @description Existing invitation ID for updates; omit on create.
517
536
  */
518
- id: string;
537
+ id?: string;
519
538
  /**
520
539
  * Format: uuid
521
- * @description ID of the user who created the invitation, this is used to track who created the invitation and can be used for auditing purposes
540
+ * @description ID of the user who created the invitation.
522
541
  */
523
- owner_id: string;
524
- /** @description Indicates whether the invitation is a default invitation (open invite), which can be used to assign users when signing up from fqdn or custom domain, a organization can only have one default invitation */
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, which can be used to identify the invitation, required and cant be empty string, */
545
+ /** @description Name of the invitation. */
527
546
  name: string;
528
- /** @description Description of the invitation, which can be used to provide additional information about the invitation, null or empty string means the invitation does not have a description */
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 , null or empty string means the invitation does not expire
554
+ * @description Timestamp when the invitation expires, if applicable.
536
555
  */
537
556
  expires_at?: string;
538
- /** @description Quota for the invitation, which can be used to limit the number of users that can accept the invitation, null or empty string means the invitation does not have a quota */
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
  };