@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,7 @@
|
|
|
1
|
+
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;export{t as default};
|
|
@@ -36,7 +36,18 @@ interface paths {
|
|
|
36
36
|
get: operations["getDesignPatternFile"];
|
|
37
37
|
};
|
|
38
38
|
"/api/content/patterns/upload/{id}": {
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Replaces the raw source content blob stored alongside a design.
|
|
41
|
+
* The server (meshery-cloud's UpsertPatternSourceContent handler)
|
|
42
|
+
* reads the entire request body as opaque bytes via io.ReadAll and
|
|
43
|
+
* persists them without interpretation, so the content-type is
|
|
44
|
+
* whatever the uploader sent — `application/octet-stream` is the
|
|
45
|
+
* canonical choice. The previous declaration reused
|
|
46
|
+
* MesheryPatternImportRequestBody under multipart/form-data, which
|
|
47
|
+
* the handler never parses; it remained wired up solely to share
|
|
48
|
+
* a schema ref with /api/pattern/import. See meshery/schemas#771
|
|
49
|
+
* for the drift analysis.
|
|
50
|
+
*/
|
|
40
51
|
post: operations["upsertPatternSourceContent"];
|
|
41
52
|
};
|
|
42
53
|
"/api/pattern/import": {
|
|
@@ -5881,11 +5892,66 @@ interface components {
|
|
|
5881
5892
|
/** @description Name of the mesherypatternrequestbody. */
|
|
5882
5893
|
name?: string;
|
|
5883
5894
|
};
|
|
5895
|
+
/** @description Body for POST /api/pattern/import. Consumed by the server as application/json. Exactly one of two variants must be supplied: a File Import carrying base64-encoded bytes plus a file name, or a URL Import naming a remote location the server will fetch. Sending both variants at once, or neither, is rejected with 400. */
|
|
5896
|
+
MesheryPatternImportRequestBody: {
|
|
5897
|
+
/**
|
|
5898
|
+
* Format: byte
|
|
5899
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5900
|
+
*/
|
|
5901
|
+
file: string;
|
|
5902
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
5903
|
+
file_name: string;
|
|
5904
|
+
/**
|
|
5905
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5906
|
+
* @default Untitled Design
|
|
5907
|
+
*/
|
|
5908
|
+
name?: string;
|
|
5909
|
+
} | {
|
|
5910
|
+
/**
|
|
5911
|
+
* Format: uri
|
|
5912
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5913
|
+
*/
|
|
5914
|
+
url: string;
|
|
5915
|
+
/**
|
|
5916
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5917
|
+
* @default Untitled Design
|
|
5918
|
+
*/
|
|
5919
|
+
name?: string;
|
|
5920
|
+
};
|
|
5921
|
+
/**
|
|
5922
|
+
* File Import
|
|
5923
|
+
* @description Upload a design file from the local system. Both `file` and `file_name` are required; the server uses the file name to identify the file type (Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design).
|
|
5924
|
+
*/
|
|
5925
|
+
MesheryPatternImportFilePayload: {
|
|
5926
|
+
/**
|
|
5927
|
+
* Format: byte
|
|
5928
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5929
|
+
*/
|
|
5930
|
+
file: string;
|
|
5931
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
5932
|
+
file_name: string;
|
|
5933
|
+
/**
|
|
5934
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5935
|
+
* @default Untitled Design
|
|
5936
|
+
*/
|
|
5937
|
+
name?: string;
|
|
5938
|
+
};
|
|
5884
5939
|
/**
|
|
5885
|
-
*
|
|
5886
|
-
* @
|
|
5940
|
+
* URL Import
|
|
5941
|
+
* @description Import a design by URL. The server will fetch the resource and derive the file type from the response.
|
|
5887
5942
|
*/
|
|
5888
|
-
|
|
5943
|
+
MesheryPatternImportURLPayload: {
|
|
5944
|
+
/**
|
|
5945
|
+
* Format: uri
|
|
5946
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5947
|
+
*/
|
|
5948
|
+
url: string;
|
|
5949
|
+
/**
|
|
5950
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5951
|
+
* @default Untitled Design
|
|
5952
|
+
*/
|
|
5953
|
+
name?: string;
|
|
5954
|
+
};
|
|
5889
5955
|
/** @description Design-level preferences */
|
|
5890
5956
|
DesignPreferences: {
|
|
5891
5957
|
/** @description Map of available layers, where keys are layer names. */
|
|
@@ -15160,7 +15226,18 @@ interface operations {
|
|
|
15160
15226
|
};
|
|
15161
15227
|
};
|
|
15162
15228
|
};
|
|
15163
|
-
/**
|
|
15229
|
+
/**
|
|
15230
|
+
* Replaces the raw source content blob stored alongside a design.
|
|
15231
|
+
* The server (meshery-cloud's UpsertPatternSourceContent handler)
|
|
15232
|
+
* reads the entire request body as opaque bytes via io.ReadAll and
|
|
15233
|
+
* persists them without interpretation, so the content-type is
|
|
15234
|
+
* whatever the uploader sent — `application/octet-stream` is the
|
|
15235
|
+
* canonical choice. The previous declaration reused
|
|
15236
|
+
* MesheryPatternImportRequestBody under multipart/form-data, which
|
|
15237
|
+
* the handler never parses; it remained wired up solely to share
|
|
15238
|
+
* a schema ref with /api/pattern/import. See meshery/schemas#771
|
|
15239
|
+
* for the drift analysis.
|
|
15240
|
+
*/
|
|
15164
15241
|
upsertPatternSourceContent: {
|
|
15165
15242
|
parameters: {
|
|
15166
15243
|
path: {
|
|
@@ -15198,7 +15275,7 @@ interface operations {
|
|
|
15198
15275
|
};
|
|
15199
15276
|
requestBody: {
|
|
15200
15277
|
content: {
|
|
15201
|
-
"
|
|
15278
|
+
"application/octet-stream": string;
|
|
15202
15279
|
};
|
|
15203
15280
|
};
|
|
15204
15281
|
};
|
|
@@ -15225,7 +15302,31 @@ interface operations {
|
|
|
15225
15302
|
};
|
|
15226
15303
|
requestBody: {
|
|
15227
15304
|
content: {
|
|
15228
|
-
"
|
|
15305
|
+
"application/json": {
|
|
15306
|
+
/**
|
|
15307
|
+
* Format: byte
|
|
15308
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
15309
|
+
*/
|
|
15310
|
+
file: string;
|
|
15311
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
15312
|
+
file_name: string;
|
|
15313
|
+
/**
|
|
15314
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
15315
|
+
* @default Untitled Design
|
|
15316
|
+
*/
|
|
15317
|
+
name?: string;
|
|
15318
|
+
} | {
|
|
15319
|
+
/**
|
|
15320
|
+
* Format: uri
|
|
15321
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
15322
|
+
*/
|
|
15323
|
+
url: string;
|
|
15324
|
+
/**
|
|
15325
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
15326
|
+
* @default Untitled Design
|
|
15327
|
+
*/
|
|
15328
|
+
name?: string;
|
|
15329
|
+
};
|
|
15229
15330
|
};
|
|
15230
15331
|
};
|
|
15231
15332
|
};
|
|
@@ -36,7 +36,18 @@ interface paths {
|
|
|
36
36
|
get: operations["getDesignPatternFile"];
|
|
37
37
|
};
|
|
38
38
|
"/api/content/patterns/upload/{id}": {
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Replaces the raw source content blob stored alongside a design.
|
|
41
|
+
* The server (meshery-cloud's UpsertPatternSourceContent handler)
|
|
42
|
+
* reads the entire request body as opaque bytes via io.ReadAll and
|
|
43
|
+
* persists them without interpretation, so the content-type is
|
|
44
|
+
* whatever the uploader sent — `application/octet-stream` is the
|
|
45
|
+
* canonical choice. The previous declaration reused
|
|
46
|
+
* MesheryPatternImportRequestBody under multipart/form-data, which
|
|
47
|
+
* the handler never parses; it remained wired up solely to share
|
|
48
|
+
* a schema ref with /api/pattern/import. See meshery/schemas#771
|
|
49
|
+
* for the drift analysis.
|
|
50
|
+
*/
|
|
40
51
|
post: operations["upsertPatternSourceContent"];
|
|
41
52
|
};
|
|
42
53
|
"/api/pattern/import": {
|
|
@@ -5881,11 +5892,66 @@ interface components {
|
|
|
5881
5892
|
/** @description Name of the mesherypatternrequestbody. */
|
|
5882
5893
|
name?: string;
|
|
5883
5894
|
};
|
|
5895
|
+
/** @description Body for POST /api/pattern/import. Consumed by the server as application/json. Exactly one of two variants must be supplied: a File Import carrying base64-encoded bytes plus a file name, or a URL Import naming a remote location the server will fetch. Sending both variants at once, or neither, is rejected with 400. */
|
|
5896
|
+
MesheryPatternImportRequestBody: {
|
|
5897
|
+
/**
|
|
5898
|
+
* Format: byte
|
|
5899
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5900
|
+
*/
|
|
5901
|
+
file: string;
|
|
5902
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
5903
|
+
file_name: string;
|
|
5904
|
+
/**
|
|
5905
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5906
|
+
* @default Untitled Design
|
|
5907
|
+
*/
|
|
5908
|
+
name?: string;
|
|
5909
|
+
} | {
|
|
5910
|
+
/**
|
|
5911
|
+
* Format: uri
|
|
5912
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5913
|
+
*/
|
|
5914
|
+
url: string;
|
|
5915
|
+
/**
|
|
5916
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5917
|
+
* @default Untitled Design
|
|
5918
|
+
*/
|
|
5919
|
+
name?: string;
|
|
5920
|
+
};
|
|
5921
|
+
/**
|
|
5922
|
+
* File Import
|
|
5923
|
+
* @description Upload a design file from the local system. Both `file` and `file_name` are required; the server uses the file name to identify the file type (Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design).
|
|
5924
|
+
*/
|
|
5925
|
+
MesheryPatternImportFilePayload: {
|
|
5926
|
+
/**
|
|
5927
|
+
* Format: byte
|
|
5928
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5929
|
+
*/
|
|
5930
|
+
file: string;
|
|
5931
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
5932
|
+
file_name: string;
|
|
5933
|
+
/**
|
|
5934
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5935
|
+
* @default Untitled Design
|
|
5936
|
+
*/
|
|
5937
|
+
name?: string;
|
|
5938
|
+
};
|
|
5884
5939
|
/**
|
|
5885
|
-
*
|
|
5886
|
-
* @
|
|
5940
|
+
* URL Import
|
|
5941
|
+
* @description Import a design by URL. The server will fetch the resource and derive the file type from the response.
|
|
5887
5942
|
*/
|
|
5888
|
-
|
|
5943
|
+
MesheryPatternImportURLPayload: {
|
|
5944
|
+
/**
|
|
5945
|
+
* Format: uri
|
|
5946
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
5947
|
+
*/
|
|
5948
|
+
url: string;
|
|
5949
|
+
/**
|
|
5950
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
5951
|
+
* @default Untitled Design
|
|
5952
|
+
*/
|
|
5953
|
+
name?: string;
|
|
5954
|
+
};
|
|
5889
5955
|
/** @description Design-level preferences */
|
|
5890
5956
|
DesignPreferences: {
|
|
5891
5957
|
/** @description Map of available layers, where keys are layer names. */
|
|
@@ -15160,7 +15226,18 @@ interface operations {
|
|
|
15160
15226
|
};
|
|
15161
15227
|
};
|
|
15162
15228
|
};
|
|
15163
|
-
/**
|
|
15229
|
+
/**
|
|
15230
|
+
* Replaces the raw source content blob stored alongside a design.
|
|
15231
|
+
* The server (meshery-cloud's UpsertPatternSourceContent handler)
|
|
15232
|
+
* reads the entire request body as opaque bytes via io.ReadAll and
|
|
15233
|
+
* persists them without interpretation, so the content-type is
|
|
15234
|
+
* whatever the uploader sent — `application/octet-stream` is the
|
|
15235
|
+
* canonical choice. The previous declaration reused
|
|
15236
|
+
* MesheryPatternImportRequestBody under multipart/form-data, which
|
|
15237
|
+
* the handler never parses; it remained wired up solely to share
|
|
15238
|
+
* a schema ref with /api/pattern/import. See meshery/schemas#771
|
|
15239
|
+
* for the drift analysis.
|
|
15240
|
+
*/
|
|
15164
15241
|
upsertPatternSourceContent: {
|
|
15165
15242
|
parameters: {
|
|
15166
15243
|
path: {
|
|
@@ -15198,7 +15275,7 @@ interface operations {
|
|
|
15198
15275
|
};
|
|
15199
15276
|
requestBody: {
|
|
15200
15277
|
content: {
|
|
15201
|
-
"
|
|
15278
|
+
"application/octet-stream": string;
|
|
15202
15279
|
};
|
|
15203
15280
|
};
|
|
15204
15281
|
};
|
|
@@ -15225,7 +15302,31 @@ interface operations {
|
|
|
15225
15302
|
};
|
|
15226
15303
|
requestBody: {
|
|
15227
15304
|
content: {
|
|
15228
|
-
"
|
|
15305
|
+
"application/json": {
|
|
15306
|
+
/**
|
|
15307
|
+
* Format: byte
|
|
15308
|
+
* @description Base64-encoded file bytes. Supported formats: Kubernetes Manifests, Helm Charts, Docker Compose, and Meshery Designs. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
15309
|
+
*/
|
|
15310
|
+
file: string;
|
|
15311
|
+
/** @description The name of the pattern file being imported. Include the extension (e.g. `design.yaml`), as the server uses it to identify the file type. */
|
|
15312
|
+
file_name: string;
|
|
15313
|
+
/**
|
|
15314
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
15315
|
+
* @default Untitled Design
|
|
15316
|
+
*/
|
|
15317
|
+
name?: string;
|
|
15318
|
+
} | {
|
|
15319
|
+
/**
|
|
15320
|
+
* Format: uri
|
|
15321
|
+
* @description A direct URL to a single file, for example: https://raw.github.com/your-design-file.yaml. Ensure the resource is in a supported format: Kubernetes Manifest, Helm Chart, Docker Compose, or Meshery Design. See [Import Designs Documentation](https://docs.meshery.io/guides/configuration-management/importing-designs#import-designs-using-meshery-ui) for details.
|
|
15322
|
+
*/
|
|
15323
|
+
url: string;
|
|
15324
|
+
/**
|
|
15325
|
+
* @description Provide a name for your design. This name will help you identify the design later. You can also change the name of your design after importing it.
|
|
15326
|
+
* @default Untitled Design
|
|
15327
|
+
*/
|
|
15328
|
+
name?: string;
|
|
15329
|
+
};
|
|
15229
15330
|
};
|
|
15230
15331
|
};
|
|
15231
15332
|
};
|