Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Feat: Standalone tags documentation

Daniel Hougaard224027724396
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.ts
index 2e42f3388f..2ecd9d81e4 100644
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@ -194,6 +194,25 @@ export const FOLDERS = {
}
} as const;
+export const SECRETS = {
+ ATTACH_TAGS: {
+ secretName: "The name of the secret to attach tags to.",
+ secretPath: "The path of the secret to attach tags to.",
+ type: "The type of the secret to attach tags to. (shared/personal)",
+ environment: "The slug of the environment where the secret is located",
+ projectSlug: "The slug of the project where the secret is located",
+ tagSlugs: "An array of tag slugs to attach to the secret."
+ },
+ DETACH_TAGS: {
+ secretName: "The name of the secret to detach tags from.",
+ secretPath: "The path of the secret to detach tags from.",
+ type: "The type of the secret to attach tags to. (shared/personal)",
+ environment: "The slug of the environment where the secret is located",
+ projectSlug: "The slug of the project where the secret is located",
+ tagSlugs: "An array of tag slugs to detach from the secret."
+ }
+} as const;
+
export const RAW_SECRETS = {
LIST: {
workspaceId: "The ID of the project to list secrets from.",
@@ -222,6 +241,7 @@ export const RAW_SECRETS = {
includeImports: "Weather to include imported secrets or not."
},
UPDATE: {
+ tags: "An array of tag IDs to attach to the secret.",
secretName: "The name of the secret to update.",
environment: "The slug of the environment where the secret is located.",
secretPath: "The path of the secret to update",
@@ -285,3 +305,19 @@ export const AUDIT_LOGS = {
actor: "The actor to filter the audit logs by."
}
} as const;
+
+export const SECRET_TAGS = {
+ LIST: {
+ projectId: "The ID of the project to list tags from."
+ },
+ CREATE: {
+ projectId: "The ID of the project to create the tag in.",
+ name: "The name of the tag to create.",
+ slug: "The slug of the tag to create.",
+ color: "The color of the tag to create."
+ },
+ DELETE: {
+ tagId: "The ID of the tag to delete.",
+ projectId: "The ID of the project to delete the tag from."
+ }
+} as const;