@meshery/schemas 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cloudApi.d.mts +16699 -16442
- package/dist/cloudApi.d.ts +16699 -16442
- 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/Model.d.mts +3 -12
- package/dist/constructs/v1beta1/model/Model.d.ts +3 -12
- package/dist/constructs/v1beta1/model/ModelSchema.js +2 -2
- package/dist/constructs/v1beta1/model/ModelSchema.mjs +2 -2
- package/dist/constructs/v1beta1/organization/OrganizationSchema.js +1 -1
- package/dist/constructs/v1beta1/organization/OrganizationSchema.mjs +1 -1
- package/dist/constructs/v1beta1/pattern/Pattern.d.mts +108 -7
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +108 -7
- package/dist/constructs/v1beta1/pattern/PatternSchema.js +12 -2
- package/dist/constructs/v1beta1/pattern/PatternSchema.mjs +12 -2
- 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/Design.d.mts +108 -7
- package/dist/constructs/v1beta2/design/Design.d.ts +108 -7
- package/dist/constructs/v1beta2/design/DesignSchema.js +21 -3
- package/dist/constructs/v1beta2/design/DesignSchema.mjs +21 -3
- 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 +4808 -0
- package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4808 -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 +38 -10
- package/dist/index.mjs +38 -10
- package/dist/mesheryApi.d.mts +6405 -6244
- package/dist/mesheryApi.d.ts +6405 -6244
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,536 @@
|
|
|
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/integrations/credentials": {
|
|
7
|
+
/** Retrieves all credentials belonging to the authenticated user. */
|
|
8
|
+
get: operations["getUserCredentials"];
|
|
9
|
+
/** Updates an existing credential for the authenticated user. */
|
|
10
|
+
put: operations["updateUserCredential"];
|
|
11
|
+
/** Saves a new credential for the authenticated user. */
|
|
12
|
+
post: operations["saveUserCredential"];
|
|
13
|
+
/** Deletes a credential belonging to the authenticated user. */
|
|
14
|
+
delete: operations["deleteUserCredential"];
|
|
15
|
+
};
|
|
16
|
+
"/api/integrations/credentials/{credentialId}": {
|
|
17
|
+
/** Retrieves a specific credential by its ID. */
|
|
18
|
+
get: operations["getCredentialById"];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
interface components {
|
|
22
|
+
schemas: {
|
|
23
|
+
/** @description Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems. */
|
|
24
|
+
Credential: {
|
|
25
|
+
/**
|
|
26
|
+
* Format: uuid
|
|
27
|
+
* @description Unique identifier for the credential.
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/** @description Human-readable name for the credential. */
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Format: uuid
|
|
34
|
+
* @description UUID of the user who owns this credential.
|
|
35
|
+
*/
|
|
36
|
+
userId: string;
|
|
37
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
38
|
+
type: string;
|
|
39
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
40
|
+
secret?: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Format: date-time
|
|
45
|
+
* @description Timestamp when the credential was created.
|
|
46
|
+
*/
|
|
47
|
+
createdAt: string;
|
|
48
|
+
/**
|
|
49
|
+
* Format: date-time
|
|
50
|
+
* @description Timestamp when the credential was last updated.
|
|
51
|
+
*/
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
/**
|
|
54
|
+
* Format: date-time
|
|
55
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
56
|
+
*/
|
|
57
|
+
deletedAt?: string;
|
|
58
|
+
};
|
|
59
|
+
/** @description Payload for creating or updating a credential. */
|
|
60
|
+
CredentialPayload: {
|
|
61
|
+
/**
|
|
62
|
+
* Format: uuid
|
|
63
|
+
* @description Existing credential ID for updates; omit on create.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
/** @description Human-readable name for the credential. */
|
|
67
|
+
name: string;
|
|
68
|
+
/**
|
|
69
|
+
* Format: uuid
|
|
70
|
+
* @description UUID of the user who owns this credential.
|
|
71
|
+
*/
|
|
72
|
+
userId?: string;
|
|
73
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
74
|
+
type: string;
|
|
75
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
76
|
+
secret?: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
/** @description A paginated list of credentials. */
|
|
81
|
+
CredentialPage: {
|
|
82
|
+
/** @description The credentials returned on the current page. */
|
|
83
|
+
credentials: {
|
|
84
|
+
/**
|
|
85
|
+
* Format: uuid
|
|
86
|
+
* @description Unique identifier for the credential.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/** @description Human-readable name for the credential. */
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* Format: uuid
|
|
93
|
+
* @description UUID of the user who owns this credential.
|
|
94
|
+
*/
|
|
95
|
+
userId: string;
|
|
96
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
97
|
+
type: string;
|
|
98
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
99
|
+
secret?: {
|
|
100
|
+
[key: string]: unknown;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Format: date-time
|
|
104
|
+
* @description Timestamp when the credential was created.
|
|
105
|
+
*/
|
|
106
|
+
createdAt: string;
|
|
107
|
+
/**
|
|
108
|
+
* Format: date-time
|
|
109
|
+
* @description Timestamp when the credential was last updated.
|
|
110
|
+
*/
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
/**
|
|
113
|
+
* Format: date-time
|
|
114
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
115
|
+
*/
|
|
116
|
+
deletedAt?: string;
|
|
117
|
+
}[];
|
|
118
|
+
/** @description Total number of credentials across all pages. */
|
|
119
|
+
total_count: number;
|
|
120
|
+
/** @description Current page number (zero-based). */
|
|
121
|
+
page: number;
|
|
122
|
+
/** @description Number of credentials per page. */
|
|
123
|
+
page_size: number;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
responses: {
|
|
127
|
+
/** Invalid request body or request param */
|
|
128
|
+
400: {
|
|
129
|
+
content: {
|
|
130
|
+
"text/plain": string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
/** Expired JWT token used or insufficient privilege */
|
|
134
|
+
401: {
|
|
135
|
+
content: {
|
|
136
|
+
"text/plain": string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
/** Result not found */
|
|
140
|
+
404: {
|
|
141
|
+
content: {
|
|
142
|
+
"text/plain": string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
/** Internal server error */
|
|
146
|
+
500: {
|
|
147
|
+
content: {
|
|
148
|
+
"text/plain": string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
parameters: {
|
|
153
|
+
/** @description Credential ID */
|
|
154
|
+
credentialId: string;
|
|
155
|
+
/** @description Credential ID */
|
|
156
|
+
credentialIdQuery: string;
|
|
157
|
+
/** @description Get responses by page */
|
|
158
|
+
page: string;
|
|
159
|
+
/** @description Get responses by pagesize */
|
|
160
|
+
pagesize: string;
|
|
161
|
+
/** @description Get responses that match search param value */
|
|
162
|
+
search: string;
|
|
163
|
+
/** @description Get ordered responses */
|
|
164
|
+
order: string;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
interface operations {
|
|
168
|
+
/** Retrieves all credentials belonging to the authenticated user. */
|
|
169
|
+
getUserCredentials: {
|
|
170
|
+
parameters: {
|
|
171
|
+
query: {
|
|
172
|
+
/** Get responses by page */
|
|
173
|
+
page?: string;
|
|
174
|
+
/** Get responses by pagesize */
|
|
175
|
+
pagesize?: string;
|
|
176
|
+
/** Get responses that match search param value */
|
|
177
|
+
search?: string;
|
|
178
|
+
/** Get ordered responses */
|
|
179
|
+
order?: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
responses: {
|
|
183
|
+
/** Credentials response */
|
|
184
|
+
200: {
|
|
185
|
+
content: {
|
|
186
|
+
"application/json": {
|
|
187
|
+
/** @description The credentials returned on the current page. */
|
|
188
|
+
credentials: {
|
|
189
|
+
/**
|
|
190
|
+
* Format: uuid
|
|
191
|
+
* @description Unique identifier for the credential.
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
/** @description Human-readable name for the credential. */
|
|
195
|
+
name: string;
|
|
196
|
+
/**
|
|
197
|
+
* Format: uuid
|
|
198
|
+
* @description UUID of the user who owns this credential.
|
|
199
|
+
*/
|
|
200
|
+
userId: string;
|
|
201
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
202
|
+
type: string;
|
|
203
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
204
|
+
secret?: {
|
|
205
|
+
[key: string]: unknown;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Format: date-time
|
|
209
|
+
* @description Timestamp when the credential was created.
|
|
210
|
+
*/
|
|
211
|
+
createdAt: string;
|
|
212
|
+
/**
|
|
213
|
+
* Format: date-time
|
|
214
|
+
* @description Timestamp when the credential was last updated.
|
|
215
|
+
*/
|
|
216
|
+
updatedAt: string;
|
|
217
|
+
/**
|
|
218
|
+
* Format: date-time
|
|
219
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
220
|
+
*/
|
|
221
|
+
deletedAt?: string;
|
|
222
|
+
}[];
|
|
223
|
+
/** @description Total number of credentials across all pages. */
|
|
224
|
+
total_count: number;
|
|
225
|
+
/** @description Current page number (zero-based). */
|
|
226
|
+
page: number;
|
|
227
|
+
/** @description Number of credentials per page. */
|
|
228
|
+
page_size: number;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
/** Expired JWT token used or insufficient privilege */
|
|
233
|
+
401: {
|
|
234
|
+
content: {
|
|
235
|
+
"text/plain": string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
/** Internal server error */
|
|
239
|
+
500: {
|
|
240
|
+
content: {
|
|
241
|
+
"text/plain": string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
/** Updates an existing credential for the authenticated user. */
|
|
247
|
+
updateUserCredential: {
|
|
248
|
+
responses: {
|
|
249
|
+
/** Credential updated */
|
|
250
|
+
200: {
|
|
251
|
+
content: {
|
|
252
|
+
"application/json": {
|
|
253
|
+
/**
|
|
254
|
+
* Format: uuid
|
|
255
|
+
* @description Unique identifier for the credential.
|
|
256
|
+
*/
|
|
257
|
+
id: string;
|
|
258
|
+
/** @description Human-readable name for the credential. */
|
|
259
|
+
name: string;
|
|
260
|
+
/**
|
|
261
|
+
* Format: uuid
|
|
262
|
+
* @description UUID of the user who owns this credential.
|
|
263
|
+
*/
|
|
264
|
+
userId: string;
|
|
265
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
266
|
+
type: string;
|
|
267
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
268
|
+
secret?: {
|
|
269
|
+
[key: string]: unknown;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Format: date-time
|
|
273
|
+
* @description Timestamp when the credential was created.
|
|
274
|
+
*/
|
|
275
|
+
createdAt: string;
|
|
276
|
+
/**
|
|
277
|
+
* Format: date-time
|
|
278
|
+
* @description Timestamp when the credential was last updated.
|
|
279
|
+
*/
|
|
280
|
+
updatedAt: string;
|
|
281
|
+
/**
|
|
282
|
+
* Format: date-time
|
|
283
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
284
|
+
*/
|
|
285
|
+
deletedAt?: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
/** Invalid request body or request param */
|
|
290
|
+
400: {
|
|
291
|
+
content: {
|
|
292
|
+
"text/plain": string;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
/** Expired JWT token used or insufficient privilege */
|
|
296
|
+
401: {
|
|
297
|
+
content: {
|
|
298
|
+
"text/plain": string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/** Result not found */
|
|
302
|
+
404: {
|
|
303
|
+
content: {
|
|
304
|
+
"text/plain": string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/** Internal server error */
|
|
308
|
+
500: {
|
|
309
|
+
content: {
|
|
310
|
+
"text/plain": string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
requestBody: {
|
|
315
|
+
content: {
|
|
316
|
+
"application/json": {
|
|
317
|
+
/**
|
|
318
|
+
* Format: uuid
|
|
319
|
+
* @description Existing credential ID for updates; omit on create.
|
|
320
|
+
*/
|
|
321
|
+
id?: string;
|
|
322
|
+
/** @description Human-readable name for the credential. */
|
|
323
|
+
name: string;
|
|
324
|
+
/**
|
|
325
|
+
* Format: uuid
|
|
326
|
+
* @description UUID of the user who owns this credential.
|
|
327
|
+
*/
|
|
328
|
+
userId?: string;
|
|
329
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
330
|
+
type: string;
|
|
331
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
332
|
+
secret?: {
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
/** Saves a new credential for the authenticated user. */
|
|
340
|
+
saveUserCredential: {
|
|
341
|
+
responses: {
|
|
342
|
+
/** Credential saved */
|
|
343
|
+
201: {
|
|
344
|
+
content: {
|
|
345
|
+
"application/json": {
|
|
346
|
+
/**
|
|
347
|
+
* Format: uuid
|
|
348
|
+
* @description Unique identifier for the credential.
|
|
349
|
+
*/
|
|
350
|
+
id: string;
|
|
351
|
+
/** @description Human-readable name for the credential. */
|
|
352
|
+
name: string;
|
|
353
|
+
/**
|
|
354
|
+
* Format: uuid
|
|
355
|
+
* @description UUID of the user who owns this credential.
|
|
356
|
+
*/
|
|
357
|
+
userId: string;
|
|
358
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
359
|
+
type: string;
|
|
360
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
361
|
+
secret?: {
|
|
362
|
+
[key: string]: unknown;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Format: date-time
|
|
366
|
+
* @description Timestamp when the credential was created.
|
|
367
|
+
*/
|
|
368
|
+
createdAt: string;
|
|
369
|
+
/**
|
|
370
|
+
* Format: date-time
|
|
371
|
+
* @description Timestamp when the credential was last updated.
|
|
372
|
+
*/
|
|
373
|
+
updatedAt: string;
|
|
374
|
+
/**
|
|
375
|
+
* Format: date-time
|
|
376
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
377
|
+
*/
|
|
378
|
+
deletedAt?: string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
/** Invalid request body or request param */
|
|
383
|
+
400: {
|
|
384
|
+
content: {
|
|
385
|
+
"text/plain": string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
/** Expired JWT token used or insufficient privilege */
|
|
389
|
+
401: {
|
|
390
|
+
content: {
|
|
391
|
+
"text/plain": string;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
/** Internal server error */
|
|
395
|
+
500: {
|
|
396
|
+
content: {
|
|
397
|
+
"text/plain": string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
requestBody: {
|
|
402
|
+
content: {
|
|
403
|
+
"application/json": {
|
|
404
|
+
/**
|
|
405
|
+
* Format: uuid
|
|
406
|
+
* @description Existing credential ID for updates; omit on create.
|
|
407
|
+
*/
|
|
408
|
+
id?: string;
|
|
409
|
+
/** @description Human-readable name for the credential. */
|
|
410
|
+
name: string;
|
|
411
|
+
/**
|
|
412
|
+
* Format: uuid
|
|
413
|
+
* @description UUID of the user who owns this credential.
|
|
414
|
+
*/
|
|
415
|
+
userId?: string;
|
|
416
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
417
|
+
type: string;
|
|
418
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
419
|
+
secret?: {
|
|
420
|
+
[key: string]: unknown;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
/** Deletes a credential belonging to the authenticated user. */
|
|
427
|
+
deleteUserCredential: {
|
|
428
|
+
parameters: {
|
|
429
|
+
query: {
|
|
430
|
+
/** Credential ID */
|
|
431
|
+
credentialId: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
responses: {
|
|
435
|
+
/** Credential deleted */
|
|
436
|
+
204: never;
|
|
437
|
+
/** Invalid request body or request param */
|
|
438
|
+
400: {
|
|
439
|
+
content: {
|
|
440
|
+
"text/plain": string;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
/** Expired JWT token used or insufficient privilege */
|
|
444
|
+
401: {
|
|
445
|
+
content: {
|
|
446
|
+
"text/plain": string;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
/** Result not found */
|
|
450
|
+
404: {
|
|
451
|
+
content: {
|
|
452
|
+
"text/plain": string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
/** Internal server error */
|
|
456
|
+
500: {
|
|
457
|
+
content: {
|
|
458
|
+
"text/plain": string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
/** Retrieves a specific credential by its ID. */
|
|
464
|
+
getCredentialById: {
|
|
465
|
+
parameters: {
|
|
466
|
+
path: {
|
|
467
|
+
/** Credential ID */
|
|
468
|
+
credentialId: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
responses: {
|
|
472
|
+
/** Credential response */
|
|
473
|
+
200: {
|
|
474
|
+
content: {
|
|
475
|
+
"application/json": {
|
|
476
|
+
/**
|
|
477
|
+
* Format: uuid
|
|
478
|
+
* @description Unique identifier for the credential.
|
|
479
|
+
*/
|
|
480
|
+
id: string;
|
|
481
|
+
/** @description Human-readable name for the credential. */
|
|
482
|
+
name: string;
|
|
483
|
+
/**
|
|
484
|
+
* Format: uuid
|
|
485
|
+
* @description UUID of the user who owns this credential.
|
|
486
|
+
*/
|
|
487
|
+
userId: string;
|
|
488
|
+
/** @description Credential type (e.g. token, basic, AWS). */
|
|
489
|
+
type: string;
|
|
490
|
+
/** @description Key-value pairs containing the sensitive credential data. */
|
|
491
|
+
secret?: {
|
|
492
|
+
[key: string]: unknown;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Format: date-time
|
|
496
|
+
* @description Timestamp when the credential was created.
|
|
497
|
+
*/
|
|
498
|
+
createdAt: string;
|
|
499
|
+
/**
|
|
500
|
+
* Format: date-time
|
|
501
|
+
* @description Timestamp when the credential was last updated.
|
|
502
|
+
*/
|
|
503
|
+
updatedAt: string;
|
|
504
|
+
/**
|
|
505
|
+
* Format: date-time
|
|
506
|
+
* @description Timestamp when the credential was soft-deleted.
|
|
507
|
+
*/
|
|
508
|
+
deletedAt?: string;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
/** Expired JWT token used or insufficient privilege */
|
|
513
|
+
401: {
|
|
514
|
+
content: {
|
|
515
|
+
"text/plain": string;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
/** Result not found */
|
|
519
|
+
404: {
|
|
520
|
+
content: {
|
|
521
|
+
"text/plain": string;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
/** Internal server error */
|
|
525
|
+
500: {
|
|
526
|
+
content: {
|
|
527
|
+
"text/plain": string;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
interface external {
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export type { components, external, operations, paths };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"credential",description:"Documentation for Meshery Cloud REST APIs for Credentials",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"},version:"v1beta2"},servers:[{url:"https://cloud.layer5.io",description:"Meshery Cloud production server URL"},{url:"https://staging-cloud.layer5.io",description:"Meshery Cloud staging server URL"},{url:"http://localhost:9876",description:"Meshery Cloud development server URL"}],security:[{jwt:[]}],tags:[{name:"credentials",description:"Operations related to integration credentials"}],paths:{"/api/integrations/credentials":{get:{"x-internal":["cloud","meshery"],tags:["credentials"],summary:"Get credentials",operationId:"getUserCredentials",description:"Retrieves all credentials belonging to the authenticated user.",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Credentials response",content:{"application/json":{schema:{type:"object",description:"A paginated list of credentials.",required:["credentials","total_count","page","page_size"],properties:{credentials:{type:"array",items:{"x-go-type":"Credential",type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
2
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}},"x-order":1,description:"The credentials returned on the current page."},total_count:{type:"integer",description:"Total number of credentials across all pages.","x-order":2,minimum:0},page:{type:"integer",description:"Current page number (zero-based).","x-order":3,minimum:0},page_size:{type:"integer",description:"Number of credentials per page.","x-order":4,minimum:1}}}}}},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"}}}}}},post:{"x-internal":["cloud","meshery"],tags:["credentials"],summary:"Save credential",operationId:"saveUserCredential",description:"Saves a new credential for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating or updating a credential.",required:["name","type"],properties:{id:{description:"Existing credential ID for updates; omit on create.","x-order":1,"x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{201:{description:"Credential saved",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
3
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}}}}},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"}}}}}},put:{"x-internal":["cloud","meshery"],tags:["credentials"],summary:"Update credential",operationId:"updateUserCredential",description:"Updates an existing credential for the authenticated user.",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating or updating a credential.",required:["name","type"],properties:{id:{description:"Existing credential ID for updates; omit on create.","x-order":1,"x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true}}}}}},responses:{200:{description:"Credential updated",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
4
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}}}}},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"}}}}}},delete:{"x-internal":["cloud","meshery"],tags:["credentials"],summary:"Delete credential",operationId:"deleteUserCredential",description:"Deletes a credential belonging to the authenticated user.",parameters:[{name:"credentialId",in:"query",description:"Credential 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:"Credential deleted"},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"}}}}}}},"/api/integrations/credentials/{credentialId}":{get:{"x-internal":["cloud","meshery"],tags:["credentials"],summary:"Get credential by ID",operationId:"getCredentialById",description:"Retrieves a specific credential by its ID.",parameters:[{name:"credentialId",in:"path",description:"Credential 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:"Credential response",content:{"application/json":{schema:{type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
5
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}}}}},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"}}}}}}}},components:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},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:{credentialId:{name:"credentialId",in:"path",description:"Credential 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"}}},credentialIdQuery:{name:"credentialId",in:"query",description:"Credential 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"}}},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"}}},schemas:{Credential:{type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
6
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}},CredentialPayload:{type:"object",description:"Payload for creating or updating a credential.",required:["name","type"],properties:{id:{description:"Existing credential ID for updates; omit on create.","x-order":1,"x-oapi-codegen-extra-tags":{json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{json:"userId,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true}}},CredentialPage:{type:"object",description:"A paginated list of credentials.",required:["credentials","total_count","page","page_size"],properties:{credentials:{type:"array",items:{"x-go-type":"Credential",type:"object",additionalProperties:false,description:`Meshery Credentials store sensitive information such as API keys, tokens, and passwords used by connections to external systems.
|
|
7
|
+
`,required:["id","name","type","userId","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for the credential.","x-order":1,"x-oapi-codegen-extra-tags":{db:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Human-readable name for the credential.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name"},minLength:1,maxLength:255},userId:{description:"UUID of the user who owns this credential.","x-order":3,"x-oapi-codegen-extra-tags":{db:"user_id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},type:{type:"string",description:"Credential type (e.g. token, basic, AWS).","x-order":4,"x-oapi-codegen-extra-tags":{db:"type"},maxLength:255},secret:{type:"object",description:"Key-value pairs containing the sensitive credential data.","x-order":5,"x-go-type":"core.Map","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"secret"}},createdAt:{type:"string",format:"date-time",description:"Timestamp when the credential was created.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at"}},updatedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was last updated.","x-go-type":"time.Time","x-go-type-skip-optional-pointer":true,"x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at"}},deletedAt:{type:"string",format:"date-time",description:"Timestamp when the credential was soft-deleted.","x-go-type":"core.NullTime","x-go-type-import":{path:"github.com/meshery/schemas/models/core"},"x-go-type-skip-optional-pointer":true,"x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at"}}}},"x-order":1,description:"The credentials returned on the current page."},total_count:{type:"integer",description:"Total number of credentials across all pages.","x-order":2,minimum:0},page:{type:"integer",description:"Current page number (zero-based).","x-order":3,minimum:0},page_size:{type:"integer",description:"Number of credentials per page.","x-order":4,minimum:1}}}}}},t=e;module.exports=t;
|