@meshery/schemas 1.0.9 → 1.1.1
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 +4 -3
- package/dist/cloudApi.d.mts +17180 -16914
- package/dist/cloudApi.d.ts +17180 -16914
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.js +1 -1
- package/dist/constructs/v1beta1/badge/BadgeSchema.mjs +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta1/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta1/credential/CredentialSchema.js +4 -4
- package/dist/constructs/v1beta1/credential/CredentialSchema.mjs +4 -4
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.js +1 -1
- package/dist/constructs/v1beta1/environment/EnvironmentSchema.mjs +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta1/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.js +1 -1
- package/dist/constructs/v1beta1/key/KeySchema.mjs +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.js +1 -1
- package/dist/constructs/v1beta1/keychain/KeychainSchema.mjs +1 -1
- package/dist/constructs/v1beta1/model/ModelSchema.js +1 -1
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +1 -1
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +1 -1
- package/dist/constructs/v1beta1/role/RoleSchema.js +1 -1
- package/dist/constructs/v1beta1/role/RoleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.js +1 -1
- package/dist/constructs/v1beta1/schedule/ScheduleSchema.mjs +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.js +1 -1
- package/dist/constructs/v1beta1/team/TeamSchema.mjs +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta1/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta1/view/ViewSchema.js +1 -1
- package/dist/constructs/v1beta1/view/ViewSchema.mjs +1 -1
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.js +2 -2
- package/dist/constructs/v1beta1/workspace/WorkspaceSchema.mjs +2 -2
- package/dist/constructs/v1beta2/badge/Badge.d.mts +564 -0
- package/dist/constructs/v1beta2/badge/Badge.d.ts +564 -0
- package/dist/constructs/v1beta2/badge/Badge.js +1 -0
- package/dist/constructs/v1beta2/badge/Badge.mjs +0 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.js +2 -0
- package/dist/constructs/v1beta2/badge/BadgeSchema.mjs +2 -0
- package/dist/constructs/v1beta2/connection/ConnectionSchema.js +1 -1
- package/dist/constructs/v1beta2/connection/ConnectionSchema.mjs +1 -1
- package/dist/constructs/v1beta2/credential/Credential.d.mts +536 -0
- package/dist/constructs/v1beta2/credential/Credential.d.ts +536 -0
- package/dist/constructs/v1beta2/credential/Credential.js +1 -0
- package/dist/constructs/v1beta2/credential/Credential.mjs +0 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.js +7 -0
- package/dist/constructs/v1beta2/credential/CredentialSchema.mjs +7 -0
- package/dist/constructs/v1beta2/design/DesignSchema.js +10 -2
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +10 -2
- package/dist/constructs/v1beta2/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta2/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta2/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta2/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta2/key/Key.d.mts +523 -0
- package/dist/constructs/v1beta2/key/Key.d.ts +523 -0
- package/dist/constructs/v1beta2/key/Key.js +1 -0
- package/dist/constructs/v1beta2/key/Key.mjs +0 -0
- package/dist/constructs/v1beta2/key/KeySchema.d.mts +7 -0
- package/dist/constructs/v1beta2/key/KeySchema.d.ts +7 -0
- package/dist/constructs/v1beta2/key/KeySchema.js +2 -0
- package/dist/constructs/v1beta2/key/KeySchema.mjs +2 -0
- package/dist/constructs/v1beta2/keychain/Keychain.d.mts +651 -0
- package/dist/constructs/v1beta2/keychain/Keychain.d.ts +651 -0
- package/dist/constructs/v1beta2/keychain/Keychain.js +1 -0
- package/dist/constructs/v1beta2/keychain/Keychain.mjs +0 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.js +2 -0
- package/dist/constructs/v1beta2/keychain/KeychainSchema.mjs +2 -0
- package/dist/constructs/v1beta2/model/Model.d.mts +571 -0
- package/dist/constructs/v1beta2/model/Model.d.ts +571 -0
- package/dist/constructs/v1beta2/model/Model.js +1 -0
- package/dist/constructs/v1beta2/model/Model.mjs +0 -0
- package/dist/constructs/v1beta2/model/ModelSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/model/ModelSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/model/ModelSchema.js +6 -0
- package/dist/constructs/v1beta2/model/ModelSchema.mjs +6 -0
- package/dist/constructs/v1beta2/organization/Organization.d.mts +1986 -0
- package/dist/constructs/v1beta2/organization/Organization.d.ts +1986 -0
- package/dist/constructs/v1beta2/organization/Organization.js +1 -0
- package/dist/constructs/v1beta2/organization/Organization.mjs +0 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.js +2 -0
- package/dist/constructs/v1beta2/organization/OrganizationSchema.mjs +2 -0
- package/dist/constructs/v1beta2/plan/PlanSchema.js +1 -1
- package/dist/constructs/v1beta2/plan/PlanSchema.mjs +1 -1
- package/dist/constructs/v1beta2/role/Role.d.mts +751 -0
- package/dist/constructs/v1beta2/role/Role.d.ts +751 -0
- package/dist/constructs/v1beta2/role/Role.js +1 -0
- package/dist/constructs/v1beta2/role/Role.mjs +0 -0
- package/dist/constructs/v1beta2/role/RoleSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/role/RoleSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/role/RoleSchema.js +2 -0
- package/dist/constructs/v1beta2/role/RoleSchema.mjs +2 -0
- package/dist/constructs/v1beta2/schedule/Schedule.d.mts +380 -0
- package/dist/constructs/v1beta2/schedule/Schedule.d.ts +380 -0
- package/dist/constructs/v1beta2/schedule/Schedule.js +1 -0
- package/dist/constructs/v1beta2/schedule/Schedule.mjs +0 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.js +13 -0
- package/dist/constructs/v1beta2/schedule/ScheduleSchema.mjs +13 -0
- package/dist/constructs/v1beta2/subscription/SubscriptionSchema.js +1 -1
- package/dist/constructs/v1beta2/subscription/SubscriptionSchema.mjs +1 -1
- package/dist/constructs/v1beta2/team/Team.d.mts +939 -0
- package/dist/constructs/v1beta2/team/Team.d.ts +939 -0
- package/dist/constructs/v1beta2/team/Team.js +1 -0
- package/dist/constructs/v1beta2/team/Team.mjs +0 -0
- package/dist/constructs/v1beta2/team/TeamSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/team/TeamSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/team/TeamSchema.js +2 -0
- package/dist/constructs/v1beta2/team/TeamSchema.mjs +2 -0
- package/dist/constructs/v1beta2/token/TokenSchema.js +1 -1
- package/dist/constructs/v1beta2/token/TokenSchema.mjs +1 -1
- package/dist/constructs/v1beta2/user/User.d.mts +1831 -0
- package/dist/constructs/v1beta2/user/User.d.ts +1831 -0
- package/dist/constructs/v1beta2/user/User.js +1 -0
- package/dist/constructs/v1beta2/user/User.mjs +0 -0
- package/dist/constructs/v1beta2/user/UserSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/user/UserSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/user/UserSchema.js +2 -0
- package/dist/constructs/v1beta2/user/UserSchema.mjs +2 -0
- package/dist/constructs/v1beta2/view/View.d.mts +810 -0
- package/dist/constructs/v1beta2/view/View.d.ts +810 -0
- package/dist/constructs/v1beta2/view/View.js +1 -0
- package/dist/constructs/v1beta2/view/View.mjs +0 -0
- package/dist/constructs/v1beta2/view/ViewSchema.d.mts +7 -0
- package/dist/constructs/v1beta2/view/ViewSchema.d.ts +7 -0
- package/dist/constructs/v1beta2/view/ViewSchema.js +13 -0
- package/dist/constructs/v1beta2/view/ViewSchema.mjs +13 -0
- package/dist/constructs/v1beta3/component/Component.d.mts +796 -0
- package/dist/constructs/v1beta3/component/Component.d.ts +796 -0
- package/dist/constructs/v1beta3/component/Component.js +1 -0
- package/dist/constructs/v1beta3/component/Component.mjs +0 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.js +10 -0
- package/dist/constructs/v1beta3/component/ComponentSchema.mjs +10 -0
- package/dist/constructs/v1beta3/connection/Connection.d.mts +1348 -0
- package/dist/constructs/v1beta3/connection/Connection.d.ts +1348 -0
- package/dist/constructs/v1beta3/connection/Connection.js +1 -0
- package/dist/constructs/v1beta3/connection/Connection.mjs +0 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.js +2 -0
- package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +2 -0
- package/dist/constructs/v1beta3/design/Design.d.mts +17552 -0
- package/dist/constructs/v1beta3/design/Design.d.ts +17552 -0
- package/dist/constructs/v1beta3/design/Design.js +1 -0
- package/dist/constructs/v1beta3/design/Design.mjs +0 -0
- package/dist/constructs/v1beta3/design/DesignSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/design/DesignSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/design/DesignSchema.js +506 -0
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +506 -0
- package/dist/constructs/v1beta3/environment/Environment.d.mts +800 -0
- package/dist/constructs/v1beta3/environment/Environment.d.ts +800 -0
- package/dist/constructs/v1beta3/environment/Environment.js +1 -0
- package/dist/constructs/v1beta3/environment/Environment.mjs +0 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.js +2 -0
- package/dist/constructs/v1beta3/environment/EnvironmentSchema.mjs +2 -0
- package/dist/constructs/v1beta3/event/Event.d.mts +733 -0
- package/dist/constructs/v1beta3/event/Event.d.ts +733 -0
- package/dist/constructs/v1beta3/event/Event.js +1 -0
- package/dist/constructs/v1beta3/event/Event.mjs +0 -0
- package/dist/constructs/v1beta3/event/EventSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/event/EventSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/event/EventSchema.js +2 -0
- package/dist/constructs/v1beta3/event/EventSchema.mjs +2 -0
- package/dist/constructs/v1beta3/invitation/Invitation.d.mts +1079 -0
- package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1079 -0
- package/dist/constructs/v1beta3/invitation/Invitation.js +1 -0
- package/dist/constructs/v1beta3/invitation/Invitation.mjs +0 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.js +2 -0
- package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +2 -0
- package/dist/constructs/v1beta3/plan/Plan.d.mts +198 -0
- package/dist/constructs/v1beta3/plan/Plan.d.ts +198 -0
- package/dist/constructs/v1beta3/plan/Plan.js +1 -0
- package/dist/constructs/v1beta3/plan/Plan.mjs +0 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.js +2 -0
- package/dist/constructs/v1beta3/plan/PlanSchema.mjs +2 -0
- package/dist/constructs/v1beta3/relationship/Relationship.d.mts +1884 -0
- package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1884 -0
- package/dist/constructs/v1beta3/relationship/Relationship.js +1 -0
- package/dist/constructs/v1beta3/relationship/Relationship.mjs +0 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.js +155 -0
- package/dist/constructs/v1beta3/relationship/RelationshipSchema.mjs +155 -0
- package/dist/constructs/v1beta3/subscription/Subscription.d.mts +876 -0
- package/dist/constructs/v1beta3/subscription/Subscription.d.ts +876 -0
- package/dist/constructs/v1beta3/subscription/Subscription.js +1 -0
- package/dist/constructs/v1beta3/subscription/Subscription.mjs +0 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.js +2 -0
- package/dist/constructs/v1beta3/subscription/SubscriptionSchema.mjs +2 -0
- package/dist/constructs/v1beta3/token/Token.d.mts +543 -0
- package/dist/constructs/v1beta3/token/Token.d.ts +543 -0
- package/dist/constructs/v1beta3/token/Token.js +1 -0
- package/dist/constructs/v1beta3/token/Token.mjs +0 -0
- package/dist/constructs/v1beta3/token/TokenSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/token/TokenSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/token/TokenSchema.js +2 -0
- package/dist/constructs/v1beta3/token/TokenSchema.mjs +2 -0
- package/dist/constructs/v1beta3/workspace/Workspace.d.mts +4811 -0
- package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4811 -0
- package/dist/constructs/v1beta3/workspace/Workspace.js +1 -0
- package/dist/constructs/v1beta3/workspace/Workspace.mjs +0 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.mts +7 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.d.ts +7 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.js +98 -0
- package/dist/constructs/v1beta3/workspace/WorkspaceSchema.mjs +98 -0
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +16 -8
- package/dist/index.mjs +16 -8
- package/dist/mesheryApi.d.mts +4954 -4793
- package/dist/mesheryApi.d.ts +4954 -4793
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
interface paths {
|
|
6
|
+
"/api/organizations/badges/{badgeId}": {
|
|
7
|
+
get: operations["getBadgeById"];
|
|
8
|
+
delete: operations["deleteBadgeById"];
|
|
9
|
+
};
|
|
10
|
+
"/api/organizations/badges": {
|
|
11
|
+
post: operations["createOrUpdateBadge"];
|
|
12
|
+
};
|
|
13
|
+
"/api/identity/badges": {
|
|
14
|
+
get: operations["getAvailableBadges"];
|
|
15
|
+
};
|
|
16
|
+
"/api/identity/users/badges": {
|
|
17
|
+
put: operations["assignBadges"];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
interface components {
|
|
21
|
+
schemas: {
|
|
22
|
+
/** @description Payload for creating or updating a badge. */
|
|
23
|
+
BadgePayload: {
|
|
24
|
+
/**
|
|
25
|
+
* Format: uuid
|
|
26
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Format: uuid
|
|
31
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
32
|
+
*/
|
|
33
|
+
orgId: string;
|
|
34
|
+
/**
|
|
35
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
36
|
+
* @example Kubernetes-Expert
|
|
37
|
+
*/
|
|
38
|
+
label: string;
|
|
39
|
+
/**
|
|
40
|
+
* @description Concise descriptor for the badge or certificate.
|
|
41
|
+
* @example Kubernetes Expert
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
46
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
47
|
+
*/
|
|
48
|
+
description: string;
|
|
49
|
+
/**
|
|
50
|
+
* Format: uri
|
|
51
|
+
* @description URL to the badge image.
|
|
52
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
53
|
+
*/
|
|
54
|
+
imageUrl: string;
|
|
55
|
+
};
|
|
56
|
+
/** @description Badge entity — a named recognition issued within an organization. */
|
|
57
|
+
Badge: {
|
|
58
|
+
/**
|
|
59
|
+
* Format: uuid
|
|
60
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* Format: uuid
|
|
65
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
66
|
+
*/
|
|
67
|
+
orgId: string;
|
|
68
|
+
/**
|
|
69
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
70
|
+
* @example Kubernetes-Expert
|
|
71
|
+
*/
|
|
72
|
+
label: string;
|
|
73
|
+
/**
|
|
74
|
+
* @description Concise descriptor for the badge or certificate.
|
|
75
|
+
* @example Kubernetes Expert
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
80
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
81
|
+
*/
|
|
82
|
+
description: string;
|
|
83
|
+
/**
|
|
84
|
+
* Format: uri
|
|
85
|
+
* @description URL to the badge image.
|
|
86
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
87
|
+
*/
|
|
88
|
+
imageUrl: string;
|
|
89
|
+
/**
|
|
90
|
+
* Format: date-time
|
|
91
|
+
* @description Timestamp when the badge was created.
|
|
92
|
+
*/
|
|
93
|
+
createdAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* Format: date-time
|
|
96
|
+
* @description Timestamp when the badge was last updated.
|
|
97
|
+
*/
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
/**
|
|
100
|
+
* Format: date-time
|
|
101
|
+
* @description Timestamp when the badge was soft-deleted, if applicable.
|
|
102
|
+
*/
|
|
103
|
+
deletedAt: string;
|
|
104
|
+
};
|
|
105
|
+
/** @description Map of badges available in an organization, keyed by badge label. */
|
|
106
|
+
BadgesPage: {
|
|
107
|
+
/** @description Available badges, keyed by badge label. */
|
|
108
|
+
badges?: {
|
|
109
|
+
[key: string]: {
|
|
110
|
+
/**
|
|
111
|
+
* Format: uuid
|
|
112
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
/**
|
|
116
|
+
* Format: uuid
|
|
117
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
118
|
+
*/
|
|
119
|
+
orgId: string;
|
|
120
|
+
/**
|
|
121
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
122
|
+
* @example Kubernetes-Expert
|
|
123
|
+
*/
|
|
124
|
+
label: string;
|
|
125
|
+
/**
|
|
126
|
+
* @description Concise descriptor for the badge or certificate.
|
|
127
|
+
* @example Kubernetes Expert
|
|
128
|
+
*/
|
|
129
|
+
name: string;
|
|
130
|
+
/**
|
|
131
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
132
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
133
|
+
*/
|
|
134
|
+
description: string;
|
|
135
|
+
/**
|
|
136
|
+
* Format: uri
|
|
137
|
+
* @description URL to the badge image.
|
|
138
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
139
|
+
*/
|
|
140
|
+
imageUrl: string;
|
|
141
|
+
/**
|
|
142
|
+
* Format: date-time
|
|
143
|
+
* @description Timestamp when the badge was created.
|
|
144
|
+
*/
|
|
145
|
+
createdAt: string;
|
|
146
|
+
/**
|
|
147
|
+
* Format: date-time
|
|
148
|
+
* @description Timestamp when the badge was last updated.
|
|
149
|
+
*/
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
/**
|
|
152
|
+
* Format: date-time
|
|
153
|
+
* @description Timestamp when the badge was soft-deleted, if applicable.
|
|
154
|
+
*/
|
|
155
|
+
deletedAt: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
/** @description Payload for assigning a set of badges to a user. */
|
|
160
|
+
BadgeAssignmentPayload: {
|
|
161
|
+
/** @description Labels of the badges being assigned to the user. */
|
|
162
|
+
badges: string[];
|
|
163
|
+
/**
|
|
164
|
+
* Format: uuid
|
|
165
|
+
* @description ID of the user to receive the badges.
|
|
166
|
+
*/
|
|
167
|
+
userId: string;
|
|
168
|
+
/** @description When true, send a notification to the user about the new badge assignment. */
|
|
169
|
+
notify?: boolean;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
responses: {
|
|
173
|
+
/** Invalid request body or request param */
|
|
174
|
+
400: {
|
|
175
|
+
content: {
|
|
176
|
+
"text/plain": string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
/** Expired JWT token used or insufficient privilege */
|
|
180
|
+
401: {
|
|
181
|
+
content: {
|
|
182
|
+
"text/plain": string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
/** Result not found */
|
|
186
|
+
404: {
|
|
187
|
+
content: {
|
|
188
|
+
"text/plain": string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** Internal server error */
|
|
192
|
+
500: {
|
|
193
|
+
content: {
|
|
194
|
+
"text/plain": string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
parameters: {
|
|
199
|
+
/** @description Badge ID */
|
|
200
|
+
badgeId: string;
|
|
201
|
+
/** @description Organization ID to scope the badge listing to. */
|
|
202
|
+
orgIdQuery: string;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
interface operations {
|
|
206
|
+
getBadgeById: {
|
|
207
|
+
parameters: {
|
|
208
|
+
path: {
|
|
209
|
+
/** Badge ID */
|
|
210
|
+
badgeId: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
responses: {
|
|
214
|
+
/** Badge response */
|
|
215
|
+
200: {
|
|
216
|
+
content: {
|
|
217
|
+
"application/json": {
|
|
218
|
+
/**
|
|
219
|
+
* Format: uuid
|
|
220
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
/**
|
|
224
|
+
* Format: uuid
|
|
225
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
226
|
+
*/
|
|
227
|
+
orgId: string;
|
|
228
|
+
/**
|
|
229
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
230
|
+
* @example Kubernetes-Expert
|
|
231
|
+
*/
|
|
232
|
+
label: string;
|
|
233
|
+
/**
|
|
234
|
+
* @description Concise descriptor for the badge or certificate.
|
|
235
|
+
* @example Kubernetes Expert
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
/**
|
|
239
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
240
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
241
|
+
*/
|
|
242
|
+
description: string;
|
|
243
|
+
/**
|
|
244
|
+
* Format: uri
|
|
245
|
+
* @description URL to the badge image.
|
|
246
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
247
|
+
*/
|
|
248
|
+
imageUrl: string;
|
|
249
|
+
/**
|
|
250
|
+
* Format: date-time
|
|
251
|
+
* @description Timestamp when the badge was created.
|
|
252
|
+
*/
|
|
253
|
+
createdAt: string;
|
|
254
|
+
/**
|
|
255
|
+
* Format: date-time
|
|
256
|
+
* @description Timestamp when the badge was last updated.
|
|
257
|
+
*/
|
|
258
|
+
updatedAt: string;
|
|
259
|
+
/**
|
|
260
|
+
* Format: date-time
|
|
261
|
+
* @description Timestamp when the badge was soft-deleted, if applicable.
|
|
262
|
+
*/
|
|
263
|
+
deletedAt: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
/** Expired JWT token used or insufficient privilege */
|
|
268
|
+
401: {
|
|
269
|
+
content: {
|
|
270
|
+
"text/plain": string;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
/** Result not found */
|
|
274
|
+
404: {
|
|
275
|
+
content: {
|
|
276
|
+
"text/plain": string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
/** Internal server error */
|
|
280
|
+
500: {
|
|
281
|
+
content: {
|
|
282
|
+
"text/plain": string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
deleteBadgeById: {
|
|
288
|
+
parameters: {
|
|
289
|
+
path: {
|
|
290
|
+
/** Badge ID */
|
|
291
|
+
badgeId: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
responses: {
|
|
295
|
+
/** Badge deleted */
|
|
296
|
+
204: never;
|
|
297
|
+
/** Expired JWT token used or insufficient privilege */
|
|
298
|
+
401: {
|
|
299
|
+
content: {
|
|
300
|
+
"text/plain": string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/** Result not found */
|
|
304
|
+
404: {
|
|
305
|
+
content: {
|
|
306
|
+
"text/plain": string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
/** Internal server error */
|
|
310
|
+
500: {
|
|
311
|
+
content: {
|
|
312
|
+
"text/plain": string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
createOrUpdateBadge: {
|
|
318
|
+
responses: {
|
|
319
|
+
/** Badge upserted */
|
|
320
|
+
200: {
|
|
321
|
+
content: {
|
|
322
|
+
"application/json": {
|
|
323
|
+
/**
|
|
324
|
+
* Format: uuid
|
|
325
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
326
|
+
*/
|
|
327
|
+
id: string;
|
|
328
|
+
/**
|
|
329
|
+
* Format: uuid
|
|
330
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
331
|
+
*/
|
|
332
|
+
orgId: string;
|
|
333
|
+
/**
|
|
334
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
335
|
+
* @example Kubernetes-Expert
|
|
336
|
+
*/
|
|
337
|
+
label: string;
|
|
338
|
+
/**
|
|
339
|
+
* @description Concise descriptor for the badge or certificate.
|
|
340
|
+
* @example Kubernetes Expert
|
|
341
|
+
*/
|
|
342
|
+
name: string;
|
|
343
|
+
/**
|
|
344
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
345
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
346
|
+
*/
|
|
347
|
+
description: string;
|
|
348
|
+
/**
|
|
349
|
+
* Format: uri
|
|
350
|
+
* @description URL to the badge image.
|
|
351
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
352
|
+
*/
|
|
353
|
+
imageUrl: string;
|
|
354
|
+
/**
|
|
355
|
+
* Format: date-time
|
|
356
|
+
* @description Timestamp when the badge was created.
|
|
357
|
+
*/
|
|
358
|
+
createdAt: string;
|
|
359
|
+
/**
|
|
360
|
+
* Format: date-time
|
|
361
|
+
* @description Timestamp when the badge was last updated.
|
|
362
|
+
*/
|
|
363
|
+
updatedAt: string;
|
|
364
|
+
/**
|
|
365
|
+
* Format: date-time
|
|
366
|
+
* @description Timestamp when the badge was soft-deleted, if applicable.
|
|
367
|
+
*/
|
|
368
|
+
deletedAt: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
/** Invalid request body or request param */
|
|
373
|
+
400: {
|
|
374
|
+
content: {
|
|
375
|
+
"text/plain": string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
/** Expired JWT token used or insufficient privilege */
|
|
379
|
+
401: {
|
|
380
|
+
content: {
|
|
381
|
+
"text/plain": string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
/** Internal server error */
|
|
385
|
+
500: {
|
|
386
|
+
content: {
|
|
387
|
+
"text/plain": string;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
requestBody: {
|
|
392
|
+
content: {
|
|
393
|
+
"application/json": {
|
|
394
|
+
/**
|
|
395
|
+
* Format: uuid
|
|
396
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
397
|
+
*/
|
|
398
|
+
id?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Format: uuid
|
|
401
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
402
|
+
*/
|
|
403
|
+
orgId: string;
|
|
404
|
+
/**
|
|
405
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
406
|
+
* @example Kubernetes-Expert
|
|
407
|
+
*/
|
|
408
|
+
label: string;
|
|
409
|
+
/**
|
|
410
|
+
* @description Concise descriptor for the badge or certificate.
|
|
411
|
+
* @example Kubernetes Expert
|
|
412
|
+
*/
|
|
413
|
+
name: string;
|
|
414
|
+
/**
|
|
415
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
416
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
417
|
+
*/
|
|
418
|
+
description: string;
|
|
419
|
+
/**
|
|
420
|
+
* Format: uri
|
|
421
|
+
* @description URL to the badge image.
|
|
422
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
423
|
+
*/
|
|
424
|
+
imageUrl: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
getAvailableBadges: {
|
|
430
|
+
parameters: {
|
|
431
|
+
query: {
|
|
432
|
+
/** Organization ID to scope the badge listing to. */
|
|
433
|
+
orgId?: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
responses: {
|
|
437
|
+
/** Available badges */
|
|
438
|
+
200: {
|
|
439
|
+
content: {
|
|
440
|
+
"application/json": {
|
|
441
|
+
/** @description Available badges, keyed by badge label. */
|
|
442
|
+
badges?: {
|
|
443
|
+
[key: string]: {
|
|
444
|
+
/**
|
|
445
|
+
* Format: uuid
|
|
446
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
447
|
+
*/
|
|
448
|
+
id: string;
|
|
449
|
+
/**
|
|
450
|
+
* Format: uuid
|
|
451
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
452
|
+
*/
|
|
453
|
+
orgId: string;
|
|
454
|
+
/**
|
|
455
|
+
* @description Unique identifier for the badge, typically slug-style (auto generated).
|
|
456
|
+
* @example Kubernetes-Expert
|
|
457
|
+
*/
|
|
458
|
+
label: string;
|
|
459
|
+
/**
|
|
460
|
+
* @description Concise descriptor for the badge or certificate.
|
|
461
|
+
* @example Kubernetes Expert
|
|
462
|
+
*/
|
|
463
|
+
name: string;
|
|
464
|
+
/**
|
|
465
|
+
* @description A description of the milestone achieved, often including criteria for receiving this recognition.
|
|
466
|
+
* @example Awarded for mastering Kubernetes concepts and practices.
|
|
467
|
+
*/
|
|
468
|
+
description: string;
|
|
469
|
+
/**
|
|
470
|
+
* Format: uri
|
|
471
|
+
* @description URL to the badge image.
|
|
472
|
+
* @example https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp
|
|
473
|
+
*/
|
|
474
|
+
imageUrl: string;
|
|
475
|
+
/**
|
|
476
|
+
* Format: date-time
|
|
477
|
+
* @description Timestamp when the badge was created.
|
|
478
|
+
*/
|
|
479
|
+
createdAt: string;
|
|
480
|
+
/**
|
|
481
|
+
* Format: date-time
|
|
482
|
+
* @description Timestamp when the badge was last updated.
|
|
483
|
+
*/
|
|
484
|
+
updatedAt: string;
|
|
485
|
+
/**
|
|
486
|
+
* Format: date-time
|
|
487
|
+
* @description Timestamp when the badge was soft-deleted, if applicable.
|
|
488
|
+
*/
|
|
489
|
+
deletedAt: string;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
/** Invalid request body or request param */
|
|
496
|
+
400: {
|
|
497
|
+
content: {
|
|
498
|
+
"text/plain": string;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
/** Expired JWT token used or insufficient privilege */
|
|
502
|
+
401: {
|
|
503
|
+
content: {
|
|
504
|
+
"text/plain": string;
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
/** Internal server error */
|
|
508
|
+
500: {
|
|
509
|
+
content: {
|
|
510
|
+
"text/plain": string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
assignBadges: {
|
|
516
|
+
responses: {
|
|
517
|
+
/** Badge assignment result */
|
|
518
|
+
200: {
|
|
519
|
+
content: {
|
|
520
|
+
"application/json": {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
/** Invalid request body or request param */
|
|
526
|
+
400: {
|
|
527
|
+
content: {
|
|
528
|
+
"text/plain": string;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
/** Expired JWT token used or insufficient privilege */
|
|
532
|
+
401: {
|
|
533
|
+
content: {
|
|
534
|
+
"text/plain": string;
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
/** Internal server error */
|
|
538
|
+
500: {
|
|
539
|
+
content: {
|
|
540
|
+
"text/plain": string;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
requestBody: {
|
|
545
|
+
content: {
|
|
546
|
+
"application/json": {
|
|
547
|
+
/** @description Labels of the badges being assigned to the user. */
|
|
548
|
+
badges: string[];
|
|
549
|
+
/**
|
|
550
|
+
* Format: uuid
|
|
551
|
+
* @description ID of the user to receive the badges.
|
|
552
|
+
*/
|
|
553
|
+
userId: string;
|
|
554
|
+
/** @description When true, send a notification to the user about the new badge assignment. */
|
|
555
|
+
notify?: boolean;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
interface external {
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"Badge",description:"OpenAPI schema for managing badges.",version:"v1beta2",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"}},security:[{jwt:[]}],tags:[{name:"Badge",description:"Operations related to user and organization badges."}],paths:{"/api/organizations/badges/{badgeId}":{delete:{"x-internal":["cloud"],operationId:"deleteBadgeById",tags:["Badge"],summary:"Delete a badge by its ID",parameters:[{name:"badgeId",in:"path",description:"Badge ID",required:true,schema:{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:{204:{description:"Badge deleted"},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},get:{"x-internal":["cloud"],operationId:"getBadgeById",tags:["Badge"],summary:"Get a badge by its ID",parameters:[{name:"badgeId",in:"path",description:"Badge ID",required:true,schema:{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:"Badge response",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:"Badge entity \u2014 a named recognition issued within an organization.",required:["id","label","name","orgId","description","imageUrl","createdAt","updatedAt","deletedAt"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the badge was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was soft-deleted, if applicable.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/organizations/badges":{post:{"x-internal":["cloud"],operationId:"createOrUpdateBadge",tags:["Badge"],summary:"Create a new badge or update an existing badge",requestBody:{content:{"application/json":{schema:{type:"object",description:"Payload for creating or updating a badge.",required:["label","name","orgId","description","imageUrl"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}}}}}},required:true},responses:{200:{description:"Badge upserted",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:"Badge entity \u2014 a named recognition issued within an organization.",required:["id","label","name","orgId","description","imageUrl","createdAt","updatedAt","deletedAt"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the badge was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was soft-deleted, if applicable.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/badges":{get:{"x-internal":["cloud"],operationId:"getAvailableBadges",tags:["Badge"],summary:"Get available badges",parameters:[{name:"orgId",in:"query",description:"Organization ID to scope the badge listing to.",required:false,schema:{type:"string",format:"uuid"}}],responses:{200:{description:"Available badges",content:{"application/json":{schema:{type:"object",description:"Map of badges available in an organization, keyed by badge label.",properties:{badges:{type:"object",additionalProperties:{type:"object",additionalProperties:false,description:"Badge entity \u2014 a named recognition issued within an organization.",required:["id","label","name","orgId","description","imageUrl","createdAt","updatedAt","deletedAt"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the badge was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was soft-deleted, if applicable.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}}}},description:"Available badges, keyed by badge label."}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/identity/users/badges":{put:{"x-internal":["cloud"],operationId:"assignBadges",tags:["Badge"],summary:"Assign badges to a user",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for assigning a set of badges to a user.",required:["badges","userId"],properties:{badges:{type:"array",items:{type:"string",description:"Badge label (see Badge.label) to assign."},description:"Labels of the badges being assigned to the user."},userId:{type:"string",description:"ID of the user to receive the badges.",maxLength:500,format:"uuid","x-go-name":"UserID","x-oapi-codegen-extra-tags":{json:"userId"}},notify:{type:"boolean",description:"When true, send a notification to the user about the new badge assignment."}}}}}},responses:{200:{description:"Badge assignment result",content:{"application/json":{schema:{type:"object",additionalProperties:true}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{badgeId:{name:"badgeId",in:"path",description:"Badge ID",required:true,schema:{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"}}},orgIdQuery:{name:"orgId",in:"query",description:"Organization ID to scope the badge listing to.",required:false,schema:{type:"string",format:"uuid"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{BadgePayload:{type:"object",description:"Payload for creating or updating a badge.",required:["label","name","orgId","description","imageUrl"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}}}},Badge:{type:"object",additionalProperties:false,description:"Badge entity \u2014 a named recognition issued within an organization.",required:["id","label","name","orgId","description","imageUrl","createdAt","updatedAt","deletedAt"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the badge was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was soft-deleted, if applicable.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}}}},BadgesPage:{type:"object",description:"Map of badges available in an organization, keyed by badge label.",properties:{badges:{type:"object",additionalProperties:{type:"object",additionalProperties:false,description:"Badge entity \u2014 a named recognition issued within an organization.",required:["id","label","name","orgId","description","imageUrl","createdAt","updatedAt","deletedAt"],properties:{id:{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"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"}},orgId:{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"},"x-go-name":"OrgID","x-oapi-codegen-extra-tags":{db:"org_id",json:"orgId"}},label:{type:"string",description:"Unique identifier for the badge, typically slug-style (auto generated).",example:"Kubernetes-Expert","x-oapi-codegen-extra-tags":{db:"label",json:"label"},maxLength:500},name:{type:"string",description:"Concise descriptor for the badge or certificate.",example:"Kubernetes Expert","x-oapi-codegen-extra-tags":{db:"name",json:"name"},minLength:1,maxLength:255},description:{type:"string",description:"A description of the milestone achieved, often including criteria for receiving this recognition.",example:"Awarded for mastering Kubernetes concepts and practices.","x-oapi-codegen-extra-tags":{db:"description",json:"description"},maxLength:5e3},imageUrl:{type:"string",format:"uri",description:"URL to the badge image.",example:"https://raw.githubusercontent.com/layer5io/layer5-academy/refs/heads/master/static/11111111-1111-1111-1111-111111111111/images/meshery-logo-light.webp",maxLength:2048,"x-oapi-codegen-extra-tags":{db:"image_url",json:"imageUrl"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the badge was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the badge was soft-deleted, if applicable.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core",name:"core"},"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}}}},description:"Available badges, keyed by badge label."}}},BadgeAssignmentPayload:{type:"object",description:"Payload for assigning a set of badges to a user.",required:["badges","userId"],properties:{badges:{type:"array",items:{type:"string",description:"Badge label (see Badge.label) to assign."},description:"Labels of the badges being assigned to the user."},userId:{type:"string",description:"ID of the user to receive the badges.",maxLength:500,format:"uuid","x-go-name":"UserID","x-oapi-codegen-extra-tags":{json:"userId"}},notify:{type:"boolean",description:"When true, send a notification to the user about the new badge assignment."}}}}}},t=e;
|
|
2
|
+
module.exports=t;
|