diff --git a/pom.xml b/pom.xml
index 2fad63d..94702a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,17 @@
https://github.com/infisical/java-sdk/
+
+
+ ossrh
+ https://s01.oss.sonatype.org/content/repositories/snapshots
+
+
+ ossrh
+ https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+
@@ -210,6 +221,68 @@
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ ossrh
+ https://s01.oss.sonatype.org/
+ true
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 3.3.0
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.6.3
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 3.1.0
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+ --pinentry-mode
+ loopback
+
+
+
+
+
+
+
+
+
+
org.springframework.boot
spring-boot-maven-plugin
diff --git a/src/main/resources/test.json b/src/main/resources/test.json
deleted file mode 100644
index eac2c13..0000000
--- a/src/main/resources/test.json
+++ /dev/null
@@ -1 +0,0 @@
-{"openapi":"3.0.3","info":{"title":"Infisical API","description":"List of all available APIs that can be consumed","version":"0.0.1"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"An access token in Infisical"}},"schemas":{}},"paths":{"/ss-webhook":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/api/status":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"message":{"type":"string"},"emailConfigured":{"type":"boolean"},"inviteOnlySignup":{"type":"boolean"},"redisConfigured":{"type":"boolean"},"secretScanningConfigured":{"type":"boolean"},"samlDefaultOrgSlug":{"type":"string"}},"required":["date"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/.well-known/est/{certificateTemplateId}/simpleenroll":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"string","minLength":1}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/.well-known/est/{certificateTemplateId}/simplereenroll":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"string","minLength":1}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/.well-known/est/{certificateTemplateId}/cacerts":{"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/roles":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1},"name":{"type":"string"},"description":{"type":"string"},"permissions":{"type":"array"}},"required":["slug","name","permissions"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","name","slug","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"},"permissions":{}},"required":["id","name","slug","createdAt","updatedAt","orgId"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/roles/{roleId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","name","slug","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"permissions":{"type":"array"}},"required":["slug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","name","slug","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","name","slug","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/permissions":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true}},"required":["id","role","createdAt","updatedAt","orgId"],"additionalProperties":false},"permissions":{"type":"array"}},"required":["membership","permissions"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/plans/table":{"get":{"parameters":[{"schema":{"type":"string","enum":["monthly","yearly"]},"in":"query","name":"billingCycle","required":true},{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/plan":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/plans":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":false},{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/session/trial":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"success_url":{"type":"string"}},"required":["success_url"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/customer-portal-session":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/plan/billing":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/plan/table":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/billing-details":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"name":{"type":"string"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/billing-details/payment-methods":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"success_url":{"type":"string"},"cancel_url":{"type":"string"}},"required":["success_url","cancel_url"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/billing-details/payment-methods/{pmtMethodId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"pmtMethodId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/billing-details/tax-ids":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/billing-details/tax-ids/{taxId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"taxId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/invoices":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/licenses":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectSlug}/roles":{"post":{"description":"Create a project role","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"description":"The slug of the role."},"name":{"type":"string","minLength":1,"description":"The name of the role."},"description":{"type":"string","description":"The description for the role."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read"]},{"type":"array","items":{"type":"string","enum":["read"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permissions assigned to the role."}},"required":["slug","name","permissions"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectSlug","required":true,"description":"Slug of the project to create the role for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List project role","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectSlug","required":true,"description":"The slug of the project to list the roles of."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectSlug}/roles/{roleId}":{"patch":{"description":"Update a project role","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of the role."},"name":{"type":"string","description":"The name of the role."},"description":{"type":"string","description":"The description for the role."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read"]},{"type":"array","items":{"type":"string","enum":["read"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permissions assigned to the role."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectSlug","required":true,"description":"The slug of the project to update the role for."},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true,"description":"The ID of the role to update"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete a project role","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectSlug","required":true,"description":"The slug of the project to delete this role for."},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true,"description":"The ID of the role to update"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectSlug}/roles/slug/{slug}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectSlug","required":true,"description":"The slug of the project."},{"schema":{"type":"string"},"in":"path","name":"slug","required":true,"description":"The slug of the role to get details."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectId}/permissions":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"}},"required":["role"],"additionalProperties":false}}},"required":["id","createdAt","updatedAt","userId","projectId","roles"],"additionalProperties":false},"permissions":{"type":"array"}},"required":["membership","permissions"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/secret-snapshots":{"get":{"description":"Return project secret snapshots ids","parameters":[{"schema":{"type":"string"},"in":"query","name":"environment","required":true,"description":"The environment to get snapshots from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The secret path to get snapshots from."},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th snapshot."},{"schema":{"type":"number","default":20},"in":"query","name":"limit","required":false,"description":"The number of snapshots to return."},{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to get snapshots from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretSnapshots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"folderId":{"type":"string","format":"uuid"},"parentFolderId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","envId","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secretSnapshots"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/secret-snapshots/count":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false},{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/audit-logs":{"get":{"description":"Return audit logs","parameters":[{"schema":{"type":"string","enum":["get-secrets","get-secret","reveal-secret","create-secret","create-secrets","update-secret","update-secrets","move-secrets","delete-secret","delete-secrets","get-workspace-key","authorize-integration","unauthorize-integration","create-integration","delete-integration","manual-sync-integration","add-trusted-ip","update-trusted-ip","delete-trusted-ip","create-service-token","delete-service-token","create-identity","update-identity","delete-identity","login-identity-universal-auth","add-identity-universal-auth","update-identity-universal-auth","get-identity-universal-auth","revoke-identity-universal-auth","create-token-identity-token-auth","update-token-identity-token-auth","get-tokens-identity-token-auth","add-identity-token-auth","update-identity-token-auth","get-identity-token-auth","revoke-identity-token-auth","login-identity-kubernetes-auth","add-identity-kubernetes-auth","update-identity-kubernetes-auth","get-identity-kubernetes-auth","revoke-identity-kubernetes-auth","login-identity-oidc-auth","add-identity-oidc-auth","update-identity-oidc-auth","get-identity-oidc-auth","revoke-identity-oidc-auth","create-identity-universal-auth-client-secret","revoke-identity-universal-auth-client-secret","get-identity-universal-auth-client-secret","get-identity-universal-auth-client-secret-by-id","login-identity-gcp-auth","add-identity-gcp-auth","update-identity-gcp-auth","revoke-identity-gcp-auth","get-identity-gcp-auth","login-identity-aws-auth","add-identity-aws-auth","update-identity-aws-auth","revoke-identity-aws-auth","get-identity-aws-auth","login-identity-azure-auth","add-identity-azure-auth","update-identity-azure-auth","get-identity-azure-auth","revoke-identity-azure-auth","create-environment","update-environment","delete-environment","get-environment","add-workspace-member","add-workspace-members","remove-workspace-member","create-folder","update-folder","delete-folder","create-webhook","update-webhook-status","delete-webhook","get-secret-imports","get-secret-import","create-secret-import","update-secret-import","delete-secret-import","update-user-workspace-role","update-user-workspace-denied-permissions","secret-approval-merged","secret-approval-request","secret-approval-closed","secret-approval-reopened","create-certificate-authority","get-certificate-authority","update-certificate-authority","delete-certificate-authority","renew-certificate-authority","get-certificate-authority-csr","get-certificate-authority-certs","get-certificate-authority-cert","sign-intermediate","import-certificate-authority-cert","get-certificate-authority-crls","issue-cert","sign-cert","get-ca-certificate-templates","get-cert","delete-cert","revoke-cert","get-cert-body","create-pki-alert","get-pki-alert","update-pki-alert","delete-pki-alert","create-pki-collection","get-pki-collection","update-pki-collection","delete-pki-collection","get-pki-collection-items","add-pki-collection-item","delete-pki-collection-item","create-kms","update-kms","delete-kms","get-kms","update-project-kms","get-project-kms-backup","load-project-kms-backup","org-admin-accessed-project","create-certificate-template","update-certificate-template","delete-certificate-template","get-certificate-template","create-certificate-template-est-config","update-certificate-template-est-config","get-certificate-template-est-config","attempt-create-slack-integration","attempt-reinstall-slack-integration","get-slack-integration","update-slack-integration","delete-slack-integration","get-project-slack-config","update-project-slack-config","integration-synced","create-cmek","update-cmek","delete-cmek","get-cmeks","cmek-encrypt","cmek-decrypt","update-external-group-org-role-mapping","get-external-group-org-role-mapping","get-project-templates","get-project-template","create-project-template","update-project-template","delete-project-template","apply-project-template"]},"in":"query","name":"eventType","required":false,"description":"The type of the event to export."},{"schema":{"type":"string","enum":["web","cli","k8-operator","terraform","other","InfisicalPythonSDK","InfisicalNodeSDK"]},"in":"query","name":"userAgentType","required":false,"description":"Choose which consuming application to export audit logs for."},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"startDate","required":false,"description":"The date to start the export from."},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"endDate","required":false,"description":"The date to end the export at."},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th audit log."},{"schema":{"type":"number","default":20},"in":"query","name":"limit","required":false,"description":"The number of audit logs to return."},{"schema":{"type":"string"},"in":"query","name":"actor","required":false,"description":"The actor to filter the audit logs by."},{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"Optionally filter logs by project ID. If not provided, logs from the entire organization will be returned."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string","nullable":true},"userAgent":{"type":"string","nullable":true},"userAgentType":{"type":"string","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string","nullable":true},"projectName":{"type":"string","nullable":true},"project":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}},"required":["name","slug"],"additionalProperties":false},"event":{"type":"object","properties":{"type":{"type":"string"},"metadata":{}},"required":["type"],"additionalProperties":false},"actor":{"type":"object","properties":{"type":{"type":"string"},"metadata":{}},"required":["type"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","event","actor"],"additionalProperties":false}}},"required":["auditLogs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/audit-logs/filters/actors":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"actors":{"type":"array","items":{"type":"string"}}},"required":["actors"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/kms":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretManagerKmsKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"}},"required":["id","name","isExternal"],"additionalProperties":false}},"required":["secretManagerKmsKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kms":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["internal"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["external"]},"kmsId":{"type":"string"}},"required":["type","kmsId"],"additionalProperties":false}]}},"required":["kms"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretManagerKmsKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"}},"required":["id","name","isExternal"],"additionalProperties":false}},"required":["secretManagerKmsKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/kms/backup":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretManager":{"type":"string"}},"required":["secretManager"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"backup":{"type":"string","minLength":1}},"required":["backup"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretManagerKmsKey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isExternal":{"type":"boolean"}},"required":["id","name","isExternal"],"additionalProperties":false}},"required":["secretManagerKmsKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/migrate-v3":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/trusted-ips":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"trustedIps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string"},"type":{"type":"string"},"prefix":{"type":"number","nullable":true},"isActive":{"type":"boolean","default":true,"nullable":true},"comment":{"type":"string","nullable":true},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ipAddress","type","projectId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["trustedIps"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ipAddress":{"type":"string"},"comment":{"type":"string","default":""},"isActive":{"type":"boolean"}},"required":["ipAddress","isActive"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"trustedIp":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string"},"type":{"type":"string"},"prefix":{"type":"number","nullable":true},"isActive":{"type":"boolean","default":true,"nullable":true},"comment":{"type":"string","nullable":true},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ipAddress","type","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["trustedIp"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/trusted-ips/{trustedIpId}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ipAddress":{"type":"string"},"comment":{"type":"string","default":""}},"required":["ipAddress"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"path","name":"trustedIpId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"trustedIp":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string"},"type":{"type":"string"},"prefix":{"type":"number","nullable":true},"isActive":{"type":"boolean","default":true,"nullable":true},"comment":{"type":"string","nullable":true},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ipAddress","type","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["trustedIp"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"path","name":"trustedIpId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"trustedIp":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string"},"type":{"type":"string"},"prefix":{"type":"number","nullable":true},"isActive":{"type":"boolean","default":true,"nullable":true},"comment":{"type":"string","nullable":true},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ipAddress","type","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["trustedIp"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-snapshot/{secretSnapshotId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretSnapshotId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretSnapshot":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false},"secretVersions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"number"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretId":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","slug"],"additionalProperties":false}}},"required":["id","version","secretKey","secretValue","secretComment","createdAt","updatedAt","secretId","tags"],"additionalProperties":false}},"folderVersion":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environment","secretVersions","folderVersion","createdAt","updatedAt"],"additionalProperties":false}},"required":["secretSnapshot"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-snapshot/{secretSnapshotId}/rollback":{"post":{"description":"Roll back project secrets to those captured in a secret snapshot version.","parameters":[{"schema":{"type":"string"},"in":"path","name":"secretSnapshotId","required":true,"description":"The ID of the snapshot to rollback to."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretSnapshot":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"folderId":{"type":"string","format":"uuid"},"parentFolderId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","envId","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["secretSnapshot"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approvals":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"name":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string","nullable":true,"default":"/"},"approvers":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["type"],"additionalProperties":false}]},"minItems":1},"approvals":{"type":"number","minimum":1,"default":1},"enforcementLevel":{"type":"string","enum":["hard","soft"],"default":"hard"}},"required":["workspaceId","environment","approvers"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approvals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"approvers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","nullable":true},"type":{"type":"string","enum":["group","user"]}},"required":["type"],"additionalProperties":false}}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId","approvers"],"additionalProperties":false}}},"required":["approvals"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approvals/{sapId}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"approvers":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["type"],"additionalProperties":false}]},"minItems":1},"approvals":{"type":"number","minimum":1,"default":1},"secretPath":{"type":"string","nullable":true},"enforcementLevel":{"type":"string","enum":["hard","soft"]}},"required":["approvers"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"sapId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"sapId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"sapId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"approvers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","nullable":true},"type":{"type":"string","enum":["group","user"]},"name":{"type":"string","nullable":true}},"required":["type"],"additionalProperties":false}}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId","approvers"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approvals/board":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string"},"in":"query","name":"secretPath","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"policy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"userApprovers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","nullable":true}},"additionalProperties":false}}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId","userApprovers"],"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":false},{"schema":{"type":"string"},"in":"query","name":"committer","required":false},{"schema":{"type":"string","enum":["open","close"]},"in":"query","name":"status","required":false},{"schema":{"type":"number","default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approvals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true},"policy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"approvals":{"type":"number"},"approvers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","nullable":true}},"additionalProperties":false}},"secretPath":{"type":"string","nullable":true},"enforcementLevel":{"type":"string"}},"required":["id","name","approvals","approvers","enforcementLevel"],"additionalProperties":false},"committerUser":{"type":"object","properties":{"userId":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"}},"required":["username"],"additionalProperties":false},"commits":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"},"secretId":{"type":"string","nullable":true}},"required":["op"],"additionalProperties":false}},"environment":{"type":"string"},"reviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"status":{"type":"string"}},"required":["userId","status"],"additionalProperties":false}},"approvers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","nullable":true}},"additionalProperties":false}}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId","policy","committerUser","commits","environment","reviewers","approvers"],"additionalProperties":false}}},"required":["approvals"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests/count":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approvals":{"type":"object","properties":{"open":{"type":"number","default":0},"closed":{"type":"number","default":0}},"additionalProperties":false}},"required":["approvals"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests/{id}/merge":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bypassReason":{"type":"string"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests/{id}/review":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["approved","rejected"]}},"required":["status"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"reviewerUserId":{"type":"string","format":"uuid"}},"required":["id","status","requestId","createdAt","updatedAt","reviewerUserId"],"additionalProperties":false}},"required":["review"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests/{id}/status":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","close"]}},"required":["status"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-approval-requests/{id}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true},"policy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"approvals":{"type":"number"},"approvers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"}},"required":["username"],"additionalProperties":false}},"secretPath":{"type":"string","nullable":true},"enforcementLevel":{"type":"string"}},"required":["id","name","approvals","approvers","enforcementLevel"],"additionalProperties":false},"environment":{"type":"string"},"statusChangedByUser":{"type":"object","properties":{"userId":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"}},"required":["username"],"additionalProperties":false},"committerUser":{"type":"object","properties":{"userId":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"}},"required":["username"],"additionalProperties":false},"reviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"},"status":{"type":"string"}},"required":["username","status"],"additionalProperties":false}},"secretPath":{"type":"string"},"commits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"op":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","slug"],"additionalProperties":false}},"secret":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"number"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"}},"required":["id","version","secretKey"],"additionalProperties":false,"nullable":true},"secretVersion":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"number"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","slug"],"additionalProperties":false}}},"required":["id","version","secretKey"],"additionalProperties":false}},"required":["id","secretKey","secretValue","secretComment","createdAt","updatedAt","op"],"additionalProperties":false}}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId","policy","environment","committerUser","reviewers","secretPath","commits"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-rotation-providers/{workspaceId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"image":{"type":"string"},"description":{"type":"string"},"template":{}},"required":["name","title"],"additionalProperties":false}}},"required":["providers"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/policies":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string"},"name":{"type":"string"},"secretPath":{"type":"string","default":"/"},"environment":{"type":"string"},"approvers":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["type"],"additionalProperties":false}]},"minItems":1},"approvals":{"type":"number","minimum":1,"default":1},"enforcementLevel":{"type":"string","enum":["hard","soft"],"default":"hard"}},"required":["projectSlug","environment","approvers"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approvals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"approvers":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["group","user"]},"id":{"type":"string","nullable":true}},"required":["type"],"additionalProperties":false},"nullable":true}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false},"nullable":true}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/policies/count":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectSlug","required":true},{"schema":{"type":"string"},"in":"query","name":"envSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/policies/{policyId}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"secretPath":{"type":"string"},"approvers":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["type"],"additionalProperties":false}]},"minItems":1},"approvals":{"type":"number","minimum":1},"enforcementLevel":{"type":"string","enum":["hard","soft"],"default":"hard"}},"required":["approvers"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"policyId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"policyId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"policyId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"secretPath":{"type":"string","nullable":true},"approvals":{"type":"number","default":1},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"enforcementLevel":{"type":"string","default":"hard"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"approvers":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["group","user"]},"id":{"type":"string","nullable":true},"name":{"type":"string","nullable":true}},"required":["type"],"additionalProperties":false},"nullable":true}},"required":["id","name","envId","createdAt","updatedAt","environment","projectId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/requests":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"permissions":{"type":"array"},"isTemporary":{"type":"boolean"},"temporaryRange":{"type":"string"}},"required":["permissions","isTemporary"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"privilegeId":{"type":"string","format":"uuid","nullable":true},"requestedBy":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean"},"temporaryRange":{"type":"string","nullable":true},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"requestedByUserId":{"type":"string","format":"uuid"}},"required":["id","policyId","isTemporary","createdAt","updatedAt","requestedByUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectSlug","required":true},{"schema":{"type":"string"},"in":"query","name":"authorProjectMembershipId","required":false},{"schema":{"type":"string"},"in":"query","name":"envSlug","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"privilegeId":{"type":"string","format":"uuid","nullable":true},"requestedBy":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean"},"temporaryRange":{"type":"string","nullable":true},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"requestedByUserId":{"type":"string","format":"uuid"},"environmentName":{"type":"string"},"isApproved":{"type":"boolean"},"privilege":{"type":"object","properties":{"membershipId":{"type":"string"},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{}},"required":["membershipId","isTemporary"],"additionalProperties":false,"nullable":true},"policy":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"approvals":{"type":"number"},"approvers":{"type":"array","items":{"type":"string"}},"secretPath":{"type":"string","nullable":true},"envId":{"type":"string"},"enforcementLevel":{"type":"string"}},"required":["id","name","approvals","approvers","envId","enforcementLevel"],"additionalProperties":false},"reviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"status":{"type":"string"}},"required":["userId","status"],"additionalProperties":false}},"requestedByUser":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"username":{"type":"string"}},"required":["userId","username"],"additionalProperties":false}},"required":["id","policyId","isTemporary","createdAt","updatedAt","requestedByUserId","environmentName","isApproved","privilege","policy","reviewers","requestedByUser"],"additionalProperties":false}}},"required":["requests"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/requests/count":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pendingCount":{"type":"number"},"finalizedCount":{"type":"number"}},"required":["pendingCount","finalizedCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/access-approvals/requests/{requestId}/review":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["approved","rejected"]}},"required":["status"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"requestId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"member":{"type":"string","format":"uuid","nullable":true},"status":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"reviewerUserId":{"type":"string","format":"uuid"}},"required":["id","status","requestId","createdAt","updatedAt","reviewerUserId"],"additionalProperties":false}},"required":["review"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/rate-limit":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rateLimit":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"readRateLimit":{"type":"number","default":600},"writeRateLimit":{"type":"number","default":200},"secretsRateLimit":{"type":"number","default":60},"authRateLimit":{"type":"number","default":60},"inviteUserRateLimit":{"type":"number","default":30},"mfaRateLimit":{"type":"number","default":20},"publicEndpointLimit":{"type":"number","default":30},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"],"additionalProperties":false}},"required":["rateLimit"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"readRateLimit":{"type":"number"},"writeRateLimit":{"type":"number"},"secretsRateLimit":{"type":"number"},"authRateLimit":{"type":"number"},"inviteUserRateLimit":{"type":"number"},"mfaRateLimit":{"type":"number"},"publicEndpointLimit":{"type":"number"}},"required":["readRateLimit","writeRateLimit","secretsRateLimit","authRateLimit","inviteUserRateLimit","mfaRateLimit","publicEndpointLimit"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rateLimit":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"readRateLimit":{"type":"number","default":600},"writeRateLimit":{"type":"number","default":200},"secretsRateLimit":{"type":"number","default":60},"authRateLimit":{"type":"number","default":60},"inviteUserRateLimit":{"type":"number","default":30},"mfaRateLimit":{"type":"number","default":20},"publicEndpointLimit":{"type":"number","default":30},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","createdAt","updatedAt"],"additionalProperties":false}},"required":["rateLimit"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project to create dynamic secret in."},"provider":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["sql-database"]},"inputs":{"type":"object","properties":{"client":{"type":"string","enum":["postgres","mysql2","oracledb","mssql","sap-ase"]},"host":{"type":"string"},"port":{"type":"number"},"database":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"},"renewStatement":{"type":"string"},"ca":{"type":"string"}},"required":["client","host","port","database","username","password","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["cassandra"]},"inputs":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"number"},"localDataCenter":{"type":"string","minLength":1},"keyspace":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"},"renewStatement":{"type":"string"},"ca":{"type":"string"}},"required":["host","port","localDataCenter","username","password","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sap-ase"]},"inputs":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"number"},"database":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"}},"required":["host","port","database","username","password","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["aws-iam"]},"inputs":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1},"secretAccessKey":{"type":"string","minLength":1},"region":{"type":"string","minLength":1},"awsPath":{"type":"string"},"permissionBoundaryPolicyArn":{"type":"string"},"policyDocument":{"type":"string"},"userGroups":{"type":"string"},"policyArns":{"type":"string"}},"required":["accessKey","secretAccessKey","region"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["redis"]},"inputs":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"password":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"},"renewStatement":{"type":"string"},"ca":{"type":"string"}},"required":["host","port","username","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["sap-hana"]},"inputs":{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"password":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"},"renewStatement":{"type":"string"},"ca":{"type":"string"}},"required":["host","port","username","password","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["aws-elasticache"]},"inputs":{"type":"object","properties":{"clusterName":{"type":"string","minLength":1},"accessKeyId":{"type":"string","minLength":1},"secretAccessKey":{"type":"string","minLength":1},"region":{"type":"string"},"creationStatement":{"type":"string"},"revocationStatement":{"type":"string"},"ca":{"type":"string"}},"required":["clusterName","accessKeyId","secretAccessKey","region","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["mongo-db-atlas"]},"inputs":{"type":"object","properties":{"adminPublicKey":{"type":"string","minLength":1,"description":"Admin user public api key"},"adminPrivateKey":{"type":"string","minLength":1,"description":"Admin user private api key"},"groupId":{"type":"string","minLength":1,"description":"Unique 24-hexadecimal digit string that identifies your project. This is same as project id"},"roles":{"type":"array","items":{"type":"object","properties":{"collectionName":{"type":"string","description":"Collection on which this role applies."},"databaseName":{"type":"string","minLength":1,"description":"Database to which the user is granted access privileges."},"roleName":{"type":"string","minLength":1,"description":" Enum: \"atlasAdmin\" \"backup\" \"clusterMonitor\" \"dbAdmin\" \"dbAdminAnyDatabase\" \"enableSharding\" \"read\" \"readAnyDatabase\" \"readWrite\" \"readWriteAnyDatabase\" \"\".Human-readable label that identifies a group of privileges assigned to a database user. This value can either be a built-in role or a custom role."}},"required":["databaseName","roleName"],"additionalProperties":false},"minItems":1},"scopes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Human-readable label that identifies the cluster or MongoDB Atlas Data Lake that this database user can access."},"type":{"type":"string","minLength":1,"description":"Category of resource that this database user can access. Enum: CLUSTER, DATA_LAKE, STREAM"}},"required":["name","type"],"additionalProperties":false}}},"required":["adminPublicKey","adminPrivateKey","groupId","roles","scopes"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["elastic-search"]},"inputs":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number"},"roles":{"type":"array","items":{"type":"string","minLength":1},"minItems":1},"auth":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["user"]},"username":{"type":"string"},"password":{"type":"string"}},"required":["type","username","password"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["api-key"]},"apiKey":{"type":"string"},"apiKeyId":{"type":"string"}},"required":["type","apiKey","apiKeyId"],"additionalProperties":false}]},"ca":{"type":"string"}},"required":["host","port","roles","auth"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["mongo-db"]},"inputs":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number"},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"database":{"type":"string","minLength":1},"ca":{"type":"string","minLength":1},"roles":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Enum: \"atlasAdmin\" \"backup\" \"clusterMonitor\" \"dbAdmin\" \"dbAdminAnyDatabase\" \"enableSharding\" \"read\" \"readAnyDatabase\" \"readWrite\" \"readWriteAnyDatabase\" \"\".Human-readable label that identifies a group of privileges assigned to a database user. This value can either be a built-in role or a custom role."}},"required":["host","username","password","database","roles"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["rabbit-mq"]},"inputs":{"type":"object","properties":{"host":{"type":"string","minLength":1},"port":{"type":"number"},"tags":{"type":"array","items":{"type":"string"},"default":[]},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"ca":{"type":"string"},"virtualHost":{"type":"object","properties":{"name":{"type":"string","minLength":1},"permissions":{"type":"object","properties":{"read":{"type":"string","minLength":1},"write":{"type":"string","minLength":1},"configure":{"type":"string","minLength":1}},"required":["read","write","configure"],"additionalProperties":false}},"required":["name","permissions"],"additionalProperties":false}},"required":["host","port","username","password","virtualHost"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["azure-entra-id"]},"inputs":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"email":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"clientSecret":{"type":"string","minLength":1}},"required":["tenantId","userId","email","applicationId","clientSecret"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["ldap"]},"inputs":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","minLength":1},"binddn":{"type":"string","minLength":1},"bindpass":{"type":"string","minLength":1},"ca":{"type":"string"},"credentialType":{"type":"string","enum":["dynamic"],"default":"dynamic"},"creationLdif":{"type":"string","minLength":1},"revocationLdif":{"type":"string","minLength":1},"rollbackLdif":{"type":"string"}},"required":["url","binddn","bindpass","creationLdif","revocationLdif"],"additionalProperties":false},{"type":"object","properties":{"url":{"type":"string","minLength":1},"binddn":{"type":"string","minLength":1},"bindpass":{"type":"string","minLength":1},"ca":{"type":"string"},"credentialType":{"type":"string","enum":["static"]},"rotationLdif":{"type":"string","minLength":1}},"required":["url","binddn","bindpass","credentialType","rotationLdif"],"additionalProperties":false}]}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["snowflake"]},"inputs":{"type":"object","properties":{"accountId":{"type":"string","minLength":1},"orgId":{"type":"string","minLength":1},"username":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"creationStatement":{"type":"string","minLength":1},"revocationStatement":{"type":"string","minLength":1},"renewStatement":{"type":"string"}},"required":["accountId","orgId","username","password","creationStatement","revocationStatement"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["totp"]},"inputs":{"anyOf":[{"type":"object","properties":{"configType":{"type":"string","enum":["url"]},"url":{"type":"string","format":"uri","minLength":1}},"required":["configType","url"],"additionalProperties":false},{"type":"object","properties":{"configType":{"type":"string","enum":["manual"]},"secret":{"type":"string","minLength":1},"period":{"type":"number"},"algorithm":{"type":"string","enum":["sha1","sha256","sha512"]},"digits":{"type":"number"}},"required":["configType","secret"],"additionalProperties":false}]}},"required":["type","inputs"],"additionalProperties":false}],"description":"The type of dynamic secret."},"defaultTTL":{"type":"string","description":"The default TTL that will be applied for all the leases."},"maxTTL":{"type":"string","description":"The maximum limit a TTL can be leases or renewed.","nullable":true},"path":{"type":"string","description":"The path to create the dynamic secret in.","default":"/"},"environmentSlug":{"type":"string","minLength":1,"description":"The slug of the environment to create the dynamic secret in."},"name":{"type":"string","minLength":1,"maxLength":64,"description":"The name of the dynamic secret."}},"required":["projectSlug","provider","defaultTTL","environmentSlug","name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["dynamicSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project to create dynamic secret in."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list folders from."},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentSlug","required":true,"description":"The slug of the environment to list folders from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["dynamicSecrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/entra-id/users":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tenantId":{"type":"string","minLength":1,"description":"The tenant ID of the Azure Entra ID"},"applicationId":{"type":"string","minLength":1,"description":"The application ID of the Azure Entra ID App Registration"},"clientSecret":{"type":"string","minLength":1,"description":"The client secret of the Azure Entra ID App Registration"}},"required":["tenantId","applicationId","clientSecret"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The name of the user"},"id":{"type":"string","minLength":1,"description":"The ID of the user"},"email":{"type":"string","minLength":1,"description":"The email of the user"}},"required":["name","id","email"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/{name}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project to update dynamic secret in."},"path":{"type":"string","default":"/","description":"The path to update the dynamic secret in."},"environmentSlug":{"type":"string","minLength":1,"description":"The slug of the environment to update the dynamic secret in."},"data":{"type":"object","properties":{"inputs":{"description":"The new partial values for the configured provider of the dynamic secret"},"defaultTTL":{"type":"string","description":"The default TTL that will be applied for all the leases."},"maxTTL":{"type":"string","description":"The maximum limit a TTL can be leases or renewed.","nullable":true},"newName":{"type":"string","description":"The new name for the dynamic secret."}},"additionalProperties":false}},"required":["projectSlug","environmentSlug","data"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"name","required":true,"description":"The name of the dynamic secret."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["dynamicSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project to delete dynamic secret in."},"path":{"type":"string","default":"/","description":"The path to delete the dynamic secret in."},"environmentSlug":{"type":"string","minLength":1,"description":"The slug of the environment to delete the dynamic secret in."},"isForced":{"type":"boolean","default":false,"description":"A boolean flag to delete the the dynamic secret from Infisical without trying to remove it from external provider. Used when the dynamic secret got modified externally."}},"required":["projectSlug","environmentSlug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"name","required":true,"description":"The name of the dynamic secret."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["dynamicSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project to create dynamic secret in."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list folders from."},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentSlug","required":true,"description":"The slug of the environment to list folders from."},{"schema":{"type":"string","minLength":1},"in":"path","name":"name","required":true,"description":"The name of the dynamic secret."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"inputs":{}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["dynamicSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/{name}/leases":{"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project to create dynamic secret in."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list folders from."},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentSlug","required":true,"description":"The slug of the environment to list folders from."},{"schema":{"type":"string","minLength":1},"in":"path","name":"name","required":true,"description":"The name of the dynamic secret."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"leases":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number"},"externalEntityId":{"type":"string"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"dynamicSecretId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","version","externalEntityId","expireAt","dynamicSecretId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["leases"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/leases":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dynamicSecretName":{"type":"string","minLength":1,"description":"The name of the dynamic secret."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the dynamic secret in."},"ttl":{"type":"string","description":"The lease lifetime TTL. If not provided the default TTL of dynamic secret will be used."},"path":{"type":"string","default":"/","description":"The path of the dynamic secret in."},"environmentSlug":{"type":"string","minLength":1,"description":"The path of the dynamic secret in."}},"required":["dynamicSecretName","projectSlug","environmentSlug"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lease":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number"},"externalEntityId":{"type":"string"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"dynamicSecretId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","version","externalEntityId","expireAt","dynamicSecretId","createdAt","updatedAt"],"additionalProperties":false},"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false},"data":{}},"required":["lease","dynamicSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/leases/{leaseId}":{"delete":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the dynamic secret in."},"path":{"type":"string","minLength":1,"default":"/","description":"The path of the dynamic secret in."},"environmentSlug":{"type":"string","minLength":1,"description":"The slug of the environment of the dynamic secret in."},"isForced":{"type":"boolean","default":false,"description":"A boolean flag to delete the the dynamic secret from Infisical without trying to remove it from external provider. Used when the dynamic secret got modified externally."}},"required":["projectSlug","environmentSlug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"leaseId","required":true,"description":"The ID of the dynamic secret lease."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lease":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number"},"externalEntityId":{"type":"string"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"dynamicSecretId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","version","externalEntityId","expireAt","dynamicSecretId","createdAt","updatedAt"],"additionalProperties":false}},"required":["lease"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project to create dynamic secret in."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list folders from."},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentSlug","required":true,"description":"The slug of the environment to list folders from."},{"schema":{"type":"string","minLength":1},"in":"path","name":"leaseId","required":true,"description":"The ID of the dynamic secret lease."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lease":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number"},"externalEntityId":{"type":"string"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"dynamicSecretId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"dynamicSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"required":["id","version","externalEntityId","expireAt","dynamicSecretId","createdAt","updatedAt","dynamicSecret"],"additionalProperties":false}},"required":["lease"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dynamic-secrets/leases/{leaseId}/renew":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ttl":{"type":"string","description":"The renew TTL that gets added with current expiry (ensure it's below max TTL) for a total less than creation time + max TTL."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the dynamic secret in."},"path":{"type":"string","minLength":1,"default":"/","description":"The path of the dynamic secret in."},"environmentSlug":{"type":"string","minLength":1,"description":"The slug of the environment of the dynamic secret in."}},"required":["projectSlug","environmentSlug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"leaseId","required":true,"description":"The ID of the dynamic secret lease."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lease":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number"},"externalEntityId":{"type":"string"},"expireAt":{"type":"string","format":"date-time"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"dynamicSecretId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","version","externalEntityId","expireAt","dynamicSecretId","createdAt","updatedAt"],"additionalProperties":false}},"required":["lease"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/crl/{crlId}":{"get":{"description":"Get CRL in DER format (deprecated)","parameters":[{"schema":{"type":"string"},"in":"path","name":"crlId","required":true,"description":"The ID of the certificate revocation list (CRL) to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/crl/{crlId}/der":{"get":{"description":"Get CRL in DER format","parameters":[{"schema":{"type":"string"},"in":"path","name":"crlId","required":true,"description":"The ID of the certificate revocation list (CRL) to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/sso/redirect/saml2/organizations/{orgSlug}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false},{"schema":{"type":"string"},"in":"path","name":"orgSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/redirect/saml2/{samlConfigId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false},{"schema":{"type":"string"},"in":"path","name":"samlConfigId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/saml2/{samlConfigId}":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"samlConfigId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/config":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"type":"object","properties":{"id":{"type":"string"},"organization":{"type":"string"},"orgId":{"type":"string"},"authProvider":{"type":"string"},"isActive":{"type":"boolean"},"entryPoint":{"type":"string"},"issuer":{"type":"string"},"cert":{"type":"string"},"lastUsed":{"type":"string","format":"date-time","nullable":true}},"required":["id","organization","orgId","authProvider","isActive","entryPoint","issuer","cert"],"additionalProperties":false}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"authProvider":{"type":"string","enum":["okta-saml","azure-saml","jumpcloud-saml","google-saml","keycloak-saml"]},"isActive":{"type":"boolean"},"entryPoint":{"type":"string"},"issuer":{"type":"string"},"cert":{"type":"string"}},"required":["organizationId","authProvider","isActive","entryPoint","issuer","cert"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"authProvider":{"type":"string"},"isActive":{"type":"boolean"},"encryptedEntryPoint":{"type":"string","nullable":true},"entryPointIV":{"type":"string","nullable":true},"entryPointTag":{"type":"string","nullable":true},"encryptedIssuer":{"type":"string","nullable":true},"issuerTag":{"type":"string","nullable":true},"issuerIV":{"type":"string","nullable":true},"encryptedCert":{"type":"string","nullable":true},"certIV":{"type":"string","nullable":true},"certTag":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"},"lastUsed":{"type":"string","format":"date-time","nullable":true}},"required":["id","authProvider","isActive","createdAt","updatedAt","orgId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"authProvider":{"type":"string","enum":["okta-saml","azure-saml","jumpcloud-saml","google-saml","keycloak-saml"]},"isActive":{"type":"boolean"},"entryPoint":{"type":"string"},"issuer":{"type":"string"},"cert":{"type":"string"},"organizationId":{"type":"string"}},"required":["organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"authProvider":{"type":"string"},"isActive":{"type":"boolean"},"encryptedEntryPoint":{"type":"string","nullable":true},"entryPointIV":{"type":"string","nullable":true},"entryPointTag":{"type":"string","nullable":true},"encryptedIssuer":{"type":"string","nullable":true},"issuerTag":{"type":"string","nullable":true},"issuerIV":{"type":"string","nullable":true},"encryptedCert":{"type":"string","nullable":true},"certIV":{"type":"string","nullable":true},"certTag":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"},"lastUsed":{"type":"string","format":"date-time","nullable":true}},"required":["id","authProvider","isActive","createdAt","updatedAt","orgId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/sso/oidc/login":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"orgSlug","required":true},{"schema":{"type":"string"},"in":"query","name":"callbackPort","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/oidc/callback":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/oidc/login/error":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/oidc/config":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"orgSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"issuer":{"type":"string","nullable":true},"authorizationEndpoint":{"type":"string","nullable":true},"jwksUri":{"type":"string","nullable":true},"tokenEndpoint":{"type":"string","nullable":true},"userinfoEndpoint":{"type":"string","nullable":true},"configurationType":{"type":"string"},"discoveryURL":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"orgId":{"type":"string","format":"uuid"},"allowedEmailDomains":{"type":"string","nullable":true},"clientId":{"type":"string"},"clientSecret":{"type":"string"}},"required":["id","configurationType","isActive","orgId","clientId","clientSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allowedEmailDomains":{"type":"string","default":""},"discoveryURL":{"type":"string"},"configurationType":{"type":"string","enum":["custom","discoveryURL"]},"issuer":{"type":"string"},"authorizationEndpoint":{"type":"string"},"jwksUri":{"type":"string"},"tokenEndpoint":{"type":"string"},"userinfoEndpoint":{"type":"string"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"isActive":{"type":"boolean"},"orgSlug":{"type":"string"}},"required":["orgSlug"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"issuer":{"type":"string","nullable":true},"authorizationEndpoint":{"type":"string","nullable":true},"configurationType":{"type":"string"},"discoveryURL":{"type":"string","nullable":true},"jwksUri":{"type":"string","nullable":true},"tokenEndpoint":{"type":"string","nullable":true},"userinfoEndpoint":{"type":"string","nullable":true},"orgId":{"type":"string","format":"uuid"},"allowedEmailDomains":{"type":"string","nullable":true},"isActive":{"type":"boolean"}},"required":["id","configurationType","orgId","isActive"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allowedEmailDomains":{"type":"string","default":""},"configurationType":{"type":"string","enum":["custom","discoveryURL"]},"issuer":{"type":"string","default":""},"discoveryURL":{"type":"string","default":""},"authorizationEndpoint":{"type":"string","default":""},"jwksUri":{"type":"string","default":""},"tokenEndpoint":{"type":"string","default":""},"userinfoEndpoint":{"type":"string","default":""},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"isActive":{"type":"boolean"},"orgSlug":{"type":"string"}},"required":["configurationType","clientId","clientSecret","isActive","orgSlug"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"issuer":{"type":"string","nullable":true},"authorizationEndpoint":{"type":"string","nullable":true},"configurationType":{"type":"string"},"discoveryURL":{"type":"string","nullable":true},"jwksUri":{"type":"string","nullable":true},"tokenEndpoint":{"type":"string","nullable":true},"userinfoEndpoint":{"type":"string","nullable":true},"orgId":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"allowedEmailDomains":{"type":"string","nullable":true}},"required":["id","configurationType","orgId","isActive"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/scim/scim-tokens":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"description":{"type":"string","default":""},"ttlDays":{"type":"number","minimum":0,"default":0}},"required":["organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"scimToken":{"type":"string"}},"required":["scimToken"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"scimTokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ttlDays":{"type":"number","default":365},"description":{"type":"string"},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","description","orgId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["scimTokens"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/scim/scim-tokens/{scimTokenId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"scimTokenId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"scimToken":{"type":"object","properties":{"id":{"type":"string"},"ttlDays":{"type":"number","default":365},"description":{"type":"string"},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","description","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["scimToken"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/scim/Users":{"get":{"parameters":[{"schema":{"type":"number","default":1},"in":"query","name":"startIndex","required":false},{"schema":{"type":"number","default":20},"in":"query","name":"count","required":false},{"schema":{"type":"string"},"in":"query","name":"filter","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"},"type":{"type":"string","default":"work"}},"required":["primary","value"],"additionalProperties":false}},"displayName":{"type":"string"},"active":{"type":"boolean"}},"required":["schemas","id","userName","displayName","active"],"additionalProperties":false}},"itemsPerPage":{"type":"number"},"schemas":{"type":"array","items":{"type":"string"}},"startIndex":{"type":"number"},"totalResults":{"type":"number"}},"required":["Resources","itemsPerPage","schemas","startIndex","totalResults"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"}},"required":["primary","value"],"additionalProperties":false}},"active":{"type":"boolean","default":true}},"required":["schemas","userName"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"},"type":{"type":"string","default":"work"}},"required":["primary","value"],"additionalProperties":false}},"displayName":{"type":"string"},"active":{"type":"boolean"}},"required":["schemas","id","userName","displayName","active"],"additionalProperties":false}}}}}}},"/api/v1/scim/Users/{orgMembershipId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgMembershipId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"},"type":{"type":"string","default":"work"}},"required":["primary","value"],"additionalProperties":false}},"displayName":{"type":"string"},"active":{"type":"boolean"}},"required":["schemas","id","userName","displayName","active"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgMembershipId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"displayName":{"type":"string"},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"}},"required":["primary","value"],"additionalProperties":false}},"active":{"type":"boolean"}},"required":["schemas","id","userName","displayName","active"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgMembershipId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"required":["familyName","givenName"],"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"},"type":{"type":"string","default":"work"}},"required":["primary","value"],"additionalProperties":false}},"displayName":{"type":"string"},"active":{"type":"boolean"}},"required":["schemas","id","userName","name","emails","displayName","active"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"anyOf":[{"type":"string","enum":["remove"]},{"type":"string","enum":["Remove"]}]},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"anyOf":[{"type":"string","enum":["add"]},{"type":"string","enum":["Add"]},{"type":"string","enum":["replace"]},{"type":"string","enum":["Replace"]}]},"path":{"type":"string"},"value":{}},"required":["op"],"additionalProperties":false}]}}},"required":["schemas","Operations"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"orgMembershipId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"userName":{"type":"string"},"name":{"type":"object","properties":{"familyName":{"type":"string"},"givenName":{"type":"string"}},"additionalProperties":false},"emails":{"type":"array","items":{"type":"object","properties":{"primary":{"type":"boolean"},"value":{"type":"string","format":"email"},"type":{"type":"string","default":"work"}},"required":["primary","value"],"additionalProperties":false}},"displayName":{"type":"string"},"active":{"type":"boolean"}},"required":["schemas","id","userName","displayName","active"],"additionalProperties":false}}}}}}},"/api/v1/scim/Groups":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value","display"],"additionalProperties":false}}},"required":["schemas","displayName"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"number","default":1},"in":"query","name":"startIndex","required":false},{"schema":{"type":"number","default":20},"in":"query","name":"count","required":false},{"schema":{"type":"string"},"in":"query","name":"filter","required":false},{"schema":{"type":"string"},"in":"query","name":"excludedAttributes","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"Resources":{"type":"array","items":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}},"itemsPerPage":{"type":"number"},"schemas":{"type":"array","items":{"type":"string"}},"startIndex":{"type":"number"},"totalResults":{"type":"number"}},"required":["Resources","itemsPerPage","schemas","startIndex","totalResults"],"additionalProperties":false}}}}}}},"/api/v1/scim/Groups/{groupId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"groupId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value","display"],"additionalProperties":false}}},"required":["schemas","id","displayName","members"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"groupId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"Operations":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"op":{"anyOf":[{"type":"string","enum":["remove"]},{"type":"string","enum":["Remove"]}]},"path":{"type":"string"},"value":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"additionalProperties":false}}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"anyOf":[{"type":"string","enum":["add"]},{"type":"string","enum":["Add"]},{"type":"string","enum":["replace"]},{"type":"string","enum":["Replace"]}]},"path":{"type":"string"},"value":{}},"required":["op"],"additionalProperties":false}]}}},"required":["schemas","Operations"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"groupId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schemas":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"displayName":{"type":"string"},"members":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"display":{"type":"string"}},"required":["value"],"additionalProperties":false}},"meta":{"type":"object","properties":{"resourceType":{"type":"string"}},"required":["resourceType"],"additionalProperties":false}},"required":["schemas","id","displayName","meta"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"groupId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}}}}},"/api/v1/ldap/login":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationSlug":{"type":"string"}},"required":["organizationSlug"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response"}}}},"/api/v1/ldap/config":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organization":{"type":"string"},"isActive":{"type":"boolean"},"url":{"type":"string"},"bindDN":{"type":"string"},"bindPass":{"type":"string"},"uniqueUserAttribute":{"type":"string"},"searchBase":{"type":"string"},"searchFilter":{"type":"string"},"groupSearchBase":{"type":"string"},"groupSearchFilter":{"type":"string"},"caCert":{"type":"string"}},"required":["id","organization","isActive","url","bindDN","bindPass","uniqueUserAttribute","searchBase","searchFilter","groupSearchBase","groupSearchFilter","caCert"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"isActive":{"type":"boolean"},"url":{"type":"string"},"bindDN":{"type":"string"},"bindPass":{"type":"string"},"uniqueUserAttribute":{"type":"string","default":"uidNumber"},"searchBase":{"type":"string"},"searchFilter":{"type":"string","default":"(uid={{username}})"},"groupSearchBase":{"type":"string"},"groupSearchFilter":{"type":"string","default":"(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))"},"caCert":{"type":"string","default":""}},"required":["organizationId","isActive","url","bindDN","bindPass","searchBase","groupSearchBase"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string"},"encryptedBindDN":{"type":"string"},"bindDNIV":{"type":"string"},"bindDNTag":{"type":"string"},"encryptedBindPass":{"type":"string"},"bindPassIV":{"type":"string"},"bindPassTag":{"type":"string"},"searchBase":{"type":"string"},"encryptedCACert":{"type":"string"},"caCertIV":{"type":"string"},"caCertTag":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"groupSearchBase":{"type":"string","default":""},"groupSearchFilter":{"type":"string","default":""},"searchFilter":{"type":"string","default":""},"uniqueUserAttribute":{"type":"string","default":""}},"required":["id","orgId","isActive","url","encryptedBindDN","bindDNIV","bindDNTag","encryptedBindPass","bindPassIV","bindPassTag","searchBase","encryptedCACert","caCertIV","caCertTag","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isActive":{"type":"boolean"},"url":{"type":"string"},"bindDN":{"type":"string"},"bindPass":{"type":"string"},"uniqueUserAttribute":{"type":"string"},"searchBase":{"type":"string"},"searchFilter":{"type":"string"},"groupSearchBase":{"type":"string"},"groupSearchFilter":{"type":"string"},"caCert":{"type":"string"},"organizationId":{"type":"string"}},"required":["organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string"},"encryptedBindDN":{"type":"string"},"bindDNIV":{"type":"string"},"bindDNTag":{"type":"string"},"encryptedBindPass":{"type":"string"},"bindPassIV":{"type":"string"},"bindPassTag":{"type":"string"},"searchBase":{"type":"string"},"encryptedCACert":{"type":"string"},"caCertIV":{"type":"string"},"caCertTag":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"groupSearchBase":{"type":"string","default":""},"groupSearchFilter":{"type":"string","default":""},"searchFilter":{"type":"string","default":""},"uniqueUserAttribute":{"type":"string","default":""}},"required":["id","orgId","isActive","url","encryptedBindDN","bindDNIV","bindDNTag","encryptedBindPass","bindPassIV","bindPassTag","searchBase","encryptedCACert","caCertIV","caCertTag","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/ldap/config/{configId}/group-maps":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ldapConfigId":{"type":"string"},"ldapGroupCN":{"type":"string"},"group":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","ldapConfigId","ldapGroupCN","group"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ldapGroupCN":{"type":"string"},"groupSlug":{"type":"string"}},"required":["ldapGroupCN","groupSlug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ldapConfigId":{"type":"string","format":"uuid"},"ldapGroupCN":{"type":"string"},"groupId":{"type":"string","format":"uuid"}},"required":["id","ldapConfigId","ldapGroupCN","groupId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/ldap/config/{configId}/group-maps/{groupMapId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true},{"schema":{"type":"string"},"in":"path","name":"groupMapId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ldapConfigId":{"type":"string","format":"uuid"},"ldapGroupCN":{"type":"string"},"groupId":{"type":"string","format":"uuid"}},"required":["id","ldapConfigId","ldapGroupCN","groupId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/ldap/config/{configId}/test-connection":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"configId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-scanning/create-installation-session/organization":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string"}},"required":["sessionId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-scanning/link-installation":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"installationId":{"type":"string"},"sessionId":{"type":"string"}},"required":["installationId","sessionId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"installationId":{"type":"string"},"userId":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","installationId","userId","orgId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-scanning/installation-status/organization/{organizationId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"appInstallationCompleted":{"type":"boolean"}},"required":["appInstallationCompleted"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-scanning/organization/{organizationId}/risks":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"risks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"startLine":{"type":"string","nullable":true},"endLine":{"type":"string","nullable":true},"startColumn":{"type":"string","nullable":true},"endColumn":{"type":"string","nullable":true},"file":{"type":"string","nullable":true},"symlinkFile":{"type":"string","nullable":true},"commit":{"type":"string","nullable":true},"entropy":{"type":"string","nullable":true},"author":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"date":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"},"nullable":true},"ruleID":{"type":"string","nullable":true},"fingerprint":{"type":"string","nullable":true},"fingerPrintWithoutCommitId":{"type":"string","nullable":true},"isFalsePositive":{"type":"boolean","default":false,"nullable":true},"isResolved":{"type":"boolean","default":false,"nullable":true},"riskOwner":{"type":"string","nullable":true},"installationId":{"type":"string"},"repositoryId":{"type":"string","nullable":true},"repositoryLink":{"type":"string","nullable":true},"repositoryFullName":{"type":"string","nullable":true},"pusherName":{"type":"string","nullable":true},"pusherEmail":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","installationId","orgId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["risks"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-scanning/organization/{organizationId}/risks/{riskId}/status":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["RESOLVED_FALSE_POSITIVE","RESOLVED_REVOKED","RESOLVED_NOT_REVOKED","UNRESOLVED"]}},"required":["status"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"riskId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"startLine":{"type":"string","nullable":true},"endLine":{"type":"string","nullable":true},"startColumn":{"type":"string","nullable":true},"endColumn":{"type":"string","nullable":true},"file":{"type":"string","nullable":true},"symlinkFile":{"type":"string","nullable":true},"commit":{"type":"string","nullable":true},"entropy":{"type":"string","nullable":true},"author":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"date":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"},"nullable":true},"ruleID":{"type":"string","nullable":true},"fingerprint":{"type":"string","nullable":true},"fingerPrintWithoutCommitId":{"type":"string","nullable":true},"isFalsePositive":{"type":"boolean","default":false,"nullable":true},"isResolved":{"type":"boolean","default":false,"nullable":true},"riskOwner":{"type":"string","nullable":true},"installationId":{"type":"string"},"repositoryId":{"type":"string","nullable":true},"repositoryLink":{"type":"string","nullable":true},"repositoryFullName":{"type":"string","nullable":true},"pusherName":{"type":"string","nullable":true},"pusherEmail":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","installationId","orgId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-rotations":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"secretPath":{"type":"string"},"environment":{"type":"string"},"interval":{"type":"number","minimum":1},"provider":{"type":"string"},"customProvider":{"type":"string"},"inputs":{"type":"object","additionalProperties":{}},"outputs":{"type":"object","additionalProperties":{"type":"string"}}},"required":["workspaceId","secretPath","environment","interval","provider","inputs","outputs"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretRotation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string"},"secretPath":{"type":"string"},"interval":{"type":"number"},"lastRotatedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true},"statusMessage":{"type":"string","nullable":true},"encryptedData":{"type":"string","nullable":true},"encryptedDataIV":{"type":"string","nullable":true},"encryptedDataTag":{"type":"string","nullable":true},"algorithm":{"type":"string","nullable":true},"keyEncoding":{"type":"string","nullable":true},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"secretId":{"type":"string","format":"uuid"},"rotationId":{"type":"string","format":"uuid"}},"required":["id","key","secretId","rotationId"],"additionalProperties":false}}},"required":["id","provider","secretPath","interval","envId","createdAt","updatedAt","environment","outputs"],"additionalProperties":false}},"required":["secretRotation"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretRotations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string"},"secretPath":{"type":"string"},"interval":{"type":"number"},"lastRotatedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true},"statusMessage":{"type":"string","nullable":true},"encryptedData":{"type":"string","nullable":true},"encryptedDataIV":{"type":"string","nullable":true},"encryptedDataTag":{"type":"string","nullable":true},"algorithm":{"type":"string","nullable":true},"keyEncoding":{"type":"string","nullable":true},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"outputs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"secret":{"type":"object","properties":{"secretKey":{"type":"string"},"id":{"type":"string"},"version":{"type":"number"}},"required":["secretKey","id","version"],"additionalProperties":false}},"required":["key","secret"],"additionalProperties":false}}},"required":["id","provider","secretPath","interval","envId","createdAt","updatedAt","environment","outputs"],"additionalProperties":false}}},"required":["secretRotations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-rotations/restart":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretRotation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string"},"secretPath":{"type":"string"},"interval":{"type":"number"},"lastRotatedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true},"statusMessage":{"type":"string","nullable":true},"encryptedData":{"type":"string","nullable":true},"encryptedDataIV":{"type":"string","nullable":true},"encryptedDataTag":{"type":"string","nullable":true},"algorithm":{"type":"string","nullable":true},"keyEncoding":{"type":"string","nullable":true},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","provider","secretPath","interval","envId","createdAt","updatedAt","environment"],"additionalProperties":false}},"required":["secretRotation"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-rotations/{id}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretRotation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string"},"secretPath":{"type":"string"},"interval":{"type":"number"},"lastRotatedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","nullable":true},"statusMessage":{"type":"string","nullable":true},"encryptedData":{"type":"string","nullable":true},"encryptedDataIV":{"type":"string","nullable":true},"encryptedDataTag":{"type":"string","nullable":true},"algorithm":{"type":"string","nullable":true},"keyEncoding":{"type":"string","nullable":true},"envId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","provider","secretPath","interval","envId","createdAt","updatedAt","environment"],"additionalProperties":false}},"required":["secretRotation"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret/{secretId}/secret-versions":{"get":{"parameters":[{"schema":{"type":"number"},"in":"query","name":"offset","required":true},{"schema":{"type":"number"},"in":"query","name":"limit","required":true},{"schema":{"type":"string"},"in":"path","name":"secretId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretVersions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secretVersions"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/groups":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50,"description":"The name of the group to create."},"slug":{"type":"string","minLength":5,"maxLength":36,"description":"The slug of the group to create."},"role":{"type":"string","minLength":1,"default":"no-access","description":"The role of the group to create."}},"required":["name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/groups/{id}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to fetch."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The new name of the group to update to."},"slug":{"type":"string","minLength":5,"maxLength":36,"description":"The new slug of the group to update to."},"role":{"type":"string","minLength":1,"description":"The new role of the group to update to."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/groups/{id}/users":{"get":{"parameters":[{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th user."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":10},"in":"query","name":"limit","required":false,"description":"The number of users to return."},{"schema":{"type":"string"},"in":"query","name":"username","required":false,"description":"The username to search for."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string that user email or name will be filtered by."},{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to list users for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","nullable":true},"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"isPartOfGroup":{"type":"boolean"}},"required":["username","id","isPartOfGroup"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["users","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/groups/{id}/users/{username}":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to add the user to."},{"schema":{"type":"string"},"in":"path","name":"username","required":true,"description":"The username of the user to add to the group."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":true},"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"}},"required":["username","id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the group to remove the user from."},{"schema":{"type":"string"},"in":"path","name":"username","required":true,"description":"The username of the user to remove from the group."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":true},"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"}},"required":["username","id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/audit-log-streams":{"post":{"description":"Create an Audit Log Stream.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"description":"The HTTP URL to push logs to."},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"description":"The HTTP header key name."},"value":{"type":"string","minLength":1,"description":"The HTTP header value."}},"required":["key","value"],"additionalProperties":false,"description":"The HTTP headers attached for the external provider requests."},"description":"The HTTP headers attached for the external provider requests."}},"required":["url"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogStream":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","url","createdAt","updatedAt"],"additionalProperties":false}},"required":["auditLogStream"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List Audit Log Streams.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogStreams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","url","createdAt","updatedAt"],"additionalProperties":false}}},"required":["auditLogStreams"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/audit-log-streams/{id}":{"patch":{"description":"Update an Audit Log Stream by ID.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The HTTP URL to push logs to."},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"description":"The HTTP header key name."},"value":{"type":"string","minLength":1,"description":"The HTTP header value."}},"required":["key","value"],"additionalProperties":false,"description":"The HTTP headers attached for the external provider requests."},"description":"The HTTP headers attached for the external provider requests."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the audit log stream to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogStream":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","url","createdAt","updatedAt"],"additionalProperties":false}},"required":["auditLogStream"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete an Audit Log Stream by ID.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the audit log stream to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogStream":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","url","createdAt","updatedAt"],"additionalProperties":false}},"required":["auditLogStream"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get an Audit Log Stream by ID.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the audit log stream to get details."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogStream":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"headers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false}}},"required":["id","url","createdAt","updatedAt"],"additionalProperties":false}},"required":["auditLogStream"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user-project-additional-privilege":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectMembershipId":{"type":"string","minLength":1,"description":"Project membership ID of user."},"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The slug of the privilege to create."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape."},"type":{"anyOf":[{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[false]}},"required":["isTemporary"],"additionalProperties":false},{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[true]},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"TTL for the temporary time. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"ISO time for which temporary access should begin."}},"required":["isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]}},"required":["projectMembershipId","permissions","type"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","slug","permissions","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectMembershipId","required":true,"description":"Project membership ID of user."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privileges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","slug","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}}},"required":["privileges"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user-project-additional-privilege/{privilegeId}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","maxLength":60,"description":"The slug of the privilege to create."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape."},"type":{"anyOf":[{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[false],"description":"Whether the privilege is temporary."}},"required":["isTemporary"],"additionalProperties":false},{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[true],"description":"Whether the privilege is temporary."},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"TTL for the temporary time. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"ISO time for which temporary access should begin."}},"required":["isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"privilegeId","required":true,"description":"The ID of privilege object."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","slug","permissions","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"privilegeId","required":true,"description":"The ID of privilege object."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","slug","permissions","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"privilegeId","required":true,"description":"The ID of privilege object."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","slug","permissions","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/additional-privilege/identity/permanent":{"post":{"description":"Create a permanent or a non expiry specific privilege for identity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","minLength":1,"description":"The ID of the identity to create."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the identity in."},"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The slug of the privilege to create."},"permissions":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["role","member","groups","settings","integrations","webhooks","service-tokens","environments","tags","audit-logs","ip-allowlist","workspace","secrets","secret-folders","secret-imports","dynamic-secrets","secret-rollback","secret-approval","secret-rotation","identity","certificate-authorities","certificates","certificate-templates","pki-alerts","pki-collections","kms","cmek"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["action","subject"],"additionalProperties":false},"description":"@deprecated - use privilegePermission\nThe permission object for the privilege.\n- Read secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]}\n```\n- Read and Write secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]}\n```\n- Read secrets scoped to an environment and secret path\n```\n- { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] }\n```\n"},"privilegePermission":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"minItems":1,"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["actions","subject","conditions"],"additionalProperties":false,"description":"The permission object for the privilege."}},"required":["identityId","projectSlug"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/additional-privilege/identity/temporary":{"post":{"description":"Create a temporary or a expiring specific privilege for identity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","minLength":1,"description":"The ID of the identity to create."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the identity in."},"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The slug of the privilege to create."},"permissions":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["role","member","groups","settings","integrations","webhooks","service-tokens","environments","tags","audit-logs","ip-allowlist","workspace","secrets","secret-folders","secret-imports","dynamic-secrets","secret-rollback","secret-approval","secret-rotation","identity","certificate-authorities","certificates","certificate-templates","pki-alerts","pki-collections","kms","cmek"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["action","subject"],"additionalProperties":false},"description":"@deprecated - use privilegePermission\nThe permission object for the privilege.\n- Read secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]}\n```\n- Read and Write secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]}\n```\n- Read secrets scoped to an environment and secret path\n```\n- { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] }\n```\n"},"privilegePermission":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"minItems":1,"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["actions","subject","conditions"],"additionalProperties":false,"description":"The permission object for the privilege."},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"TTL for the temporary time. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"ISO time for which temporary access should begin."}},"required":["identityId","projectSlug","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/additional-privilege/identity":{"patch":{"description":"Update a specific privilege of an identity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"privilegeSlug":{"type":"string","minLength":1,"description":"The slug of the privilege to update."},"identityId":{"type":"string","minLength":1,"description":"The ID of the identity to update."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the identity in."},"privilegeDetails":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The new slug of the privilege to update."},"permissions":{"type":"array","items":{"type":"object","properties":{"action":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["role","member","groups","settings","integrations","webhooks","service-tokens","environments","tags","audit-logs","ip-allowlist","workspace","secrets","secret-folders","secret-imports","dynamic-secrets","secret-rollback","secret-approval","secret-rotation","identity","certificate-authorities","certificates","certificate-templates","pki-alerts","pki-collections","kms","cmek"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["action","subject"],"additionalProperties":false},"description":"@deprecated - use privilegePermission\nThe permission object for the privilege.\n- Read secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]}\n```\n- Read and Write secrets\n```\n{ \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]}\n```\n- Read secrets scoped to an environment and secret path\n```\n- { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] }\n```\n"},"privilegePermission":{"type":"object","properties":{"actions":{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"],"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"minItems":1,"description":"Describe what action an entity can take. Possible actions: create, edit, delete, and read"},"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to. Possible options: secrets, environments"},"conditions":{"type":"object","properties":{"environment":{"type":"string","description":"The environment slug this permission should allow."},"secretPath":{"type":"object","properties":{"$glob":{"type":"string","minLength":1,"description":"The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** "}},"required":["$glob"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["actions","subject","conditions"],"additionalProperties":false,"description":"The permission object for the privilege."},"isTemporary":{"type":"boolean","description":"Whether the privilege is temporary."},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"TTL for the temporary time. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"ISO time for which temporary access should begin."}},"additionalProperties":false}},"required":["privilegeSlug","identityId","projectSlug","privilegeDetails"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete a specific privilege of an identity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"privilegeSlug":{"type":"string","minLength":1,"description":"The slug of the privilege to delete."},"identityId":{"type":"string","minLength":1,"description":"The ID of the identity to delete."},"projectSlug":{"type":"string","minLength":1,"description":"The slug of the project of the identity in."}},"required":["privilegeSlug","identityId","projectSlug"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List of a specific privilege of an identity in a project.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"identityId","required":true,"description":"The ID of the identity to list."},{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project of the identity in."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privileges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}}},"required":["privileges"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/additional-privilege/identity/{privilegeSlug}":{"get":{"description":"Retrieve details of a specific privilege by privilege slug.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"identityId","required":true,"description":"The ID of the identity to list."},{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project of the identity in."},{"schema":{"type":"string","minLength":1},"in":"path","name":"privilegeSlug","required":true,"description":"The slug of the privilege."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/external-kms":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"provider":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["aws"]},"inputs":{"type":"object","properties":{"credential":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["access-key"]},"data":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1,"description":"AWS user account access key"},"secretKey":{"type":"string","minLength":1,"description":"AWS user account secret key"}},"required":["accessKey","secretKey"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["assume-role"]},"data":{"type":"object","properties":{"assumeRoleArn":{"type":"string","minLength":1,"description":"AWS user role to be assumed by infisical"},"externalId":{"type":"string","minLength":1,"description":"AWS assume role external id for furthur security in authentication"}},"required":["assumeRoleArn"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false}],"description":"AWS credential information to connect"},"awsRegion":{"type":"string","minLength":1,"description":"AWS region to connect"},"kmsKeyId":{"type":"string","description":"A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated."}},"required":["credential","awsRegion"],"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false}]}},"required":["name","provider"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKms":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"external":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"provider":{"type":"string"}},"required":["id","provider"],"additionalProperties":false}},"required":["id","orgId","name","createdAt","updatedAt","external"],"additionalProperties":false}},"required":["externalKms"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKmsList":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"name":{"type":"string"},"externalKms":{"type":"object","properties":{"provider":{"type":"string"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true}},"required":["provider"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","name","externalKms"],"additionalProperties":false}}},"required":["externalKmsList"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/external-kms/{id}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"provider":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["aws"]},"inputs":{"type":"object","properties":{"credential":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["access-key"]},"data":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1,"description":"AWS user account access key"},"secretKey":{"type":"string","minLength":1,"description":"AWS user account secret key"}},"required":["accessKey","secretKey"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["assume-role"]},"data":{"type":"object","properties":{"assumeRoleArn":{"type":"string","minLength":1,"description":"AWS user role to be assumed by infisical"},"externalId":{"type":"string","minLength":1,"description":"AWS assume role external id for furthur security in authentication"}},"required":["assumeRoleArn"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false}],"description":"AWS credential information to connect"},"awsRegion":{"type":"string","minLength":1,"description":"AWS region to connect"},"kmsKeyId":{"type":"string","description":"A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated."}},"additionalProperties":false}},"required":["type","inputs"],"additionalProperties":false}]}},"required":["provider"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKms":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"external":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"provider":{"type":"string"}},"required":["id","provider"],"additionalProperties":false}},"required":["id","orgId","name","createdAt","updatedAt","external"],"additionalProperties":false}},"required":["externalKms"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKms":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"external":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"provider":{"type":"string"}},"required":["id","provider"],"additionalProperties":false}},"required":["id","orgId","name","createdAt","updatedAt","external"],"additionalProperties":false}},"required":["externalKms"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKms":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"external":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"provider":{"type":"string"},"providerInput":{"type":"object","properties":{"credential":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["access-key"]},"data":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1,"description":"AWS user account access key"},"secretKey":{"type":"string","minLength":1,"description":"AWS user account secret key"}},"required":["accessKey","secretKey"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["assume-role"]},"data":{"type":"object","properties":{"assumeRoleArn":{"type":"string","minLength":1,"description":"AWS user role to be assumed by infisical"},"externalId":{"type":"string","minLength":1,"description":"AWS assume role external id for furthur security in authentication"}},"required":["assumeRoleArn"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false}],"description":"AWS credential information to connect"},"awsRegion":{"type":"string","minLength":1,"description":"AWS region to connect"},"kmsKeyId":{"type":"string","description":"A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated."}},"required":["credential","awsRegion"],"additionalProperties":false}},"required":["id","provider","providerInput"],"additionalProperties":false}},"required":["id","orgId","name","createdAt","updatedAt","external"],"additionalProperties":false}},"required":["externalKms"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/external-kms/name/{name}":{"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalKms":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"external":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"provider":{"type":"string"},"providerInput":{"type":"object","properties":{"credential":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["access-key"]},"data":{"type":"object","properties":{"accessKey":{"type":"string","minLength":1,"description":"AWS user account access key"},"secretKey":{"type":"string","minLength":1,"description":"AWS user account secret key"}},"required":["accessKey","secretKey"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["assume-role"]},"data":{"type":"object","properties":{"assumeRoleArn":{"type":"string","minLength":1,"description":"AWS user role to be assumed by infisical"},"externalId":{"type":"string","minLength":1,"description":"AWS assume role external id for furthur security in authentication"}},"required":["assumeRoleArn"],"additionalProperties":false}},"required":["type","data"],"additionalProperties":false}],"description":"AWS credential information to connect"},"awsRegion":{"type":"string","minLength":1,"description":"AWS region to connect"},"kmsKeyId":{"type":"string","description":"A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated."}},"required":["credential","awsRegion"],"additionalProperties":false}},"required":["id","provider","providerInput"],"additionalProperties":false}},"required":["id","orgId","name","createdAt","updatedAt","external"],"additionalProperties":false}},"required":["externalKms"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/project-templates":{"get":{"description":"List project templates for the current organization.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectTemplates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}}},"required":["name","slug","permissions"],"additionalProperties":false}},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false}},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","roles","environments","orgId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["projectTemplates"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"description":"Create a project template.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":32,"description":"The name of the project template to be created. Must be slug-friendly."},"description":{"type":"string","maxLength":256,"description":"An optional description of the project template."},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]}}},"required":["name","slug","permissions"],"additionalProperties":false},"default":[],"description":"The roles to be created when the template is applied to a project."},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false},"minItems":1,"default":[{"name":"Development","slug":"dev","position":1},{"name":"Staging","slug":"staging","position":2},{"name":"Production","slug":"prod","position":3}],"description":"The environments to be created when the template is applied to a project."}},"required":["name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectTemplate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}}},"required":["name","slug","permissions"],"additionalProperties":false}},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false}},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","roles","environments","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["projectTemplate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/project-templates/{templateId}":{"get":{"description":"Get a project template by ID.","parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"templateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectTemplate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}}},"required":["name","slug","permissions"],"additionalProperties":false}},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false}},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","roles","environments","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["projectTemplate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update a project template.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":32,"description":"The updated name of the project template. Must be slug-friendly."},"description":{"type":"string","maxLength":256,"description":"The updated description of the project template."},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]}}},"required":["name","slug","permissions"],"additionalProperties":false},"description":"The updated roles to be created when the template is applied to a project."},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false},"minItems":1,"description":"The updated environments to be created when the template is applied to a project."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"templateId","required":true,"description":"The ID of the project template to be updated."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectTemplate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}}},"required":["name","slug","permissions"],"additionalProperties":false}},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false}},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","roles","environments","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["projectTemplate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete a project template.","parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"templateId","required":true,"description":"The ID of the project template to be deleted."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectTemplate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}}},"required":["name","slug","permissions"],"additionalProperties":false}},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slug":{"type":"string","minLength":1,"maxLength":32},"position":{"type":"number","minimum":1}},"required":["name","slug","position"],"additionalProperties":false}},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","roles","environments","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["projectTemplate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/sso/redirect/google":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/google":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/redirect/github":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/redirect/organizations/{orgSlug}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false},{"schema":{"type":"string"},"in":"path","name":"orgSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/github":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/redirect/gitlab":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"callback_port","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/gitlab":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/sso/token-exchange":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"providerAuthToken":{"type":"string"},"email":{"type":"string"}},"required":["providerAuthToken","email"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response"}}}},"/api/v1/auth/logout":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/checkAuth":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","enum":["Authenticated"]}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token-auth/identities/{identityId}":{"post":{"description":"Attach Token Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityTokenAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityTokenAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update Token Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an access token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityTokenAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityTokenAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve Token Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityTokenAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityTokenAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete Token Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityTokenAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityTokenAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token-auth/identities/{identityId}/tokens":{"post":{"description":"Create token for identity with Token Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the token to create."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to create the token for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get tokens for identity with Token Auth","parameters":[{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th token."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false,"description":"The number of tokens to return."},{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to list token metadata for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accessTokenTTL":{"type":"number","default":2592000},"accessTokenMaxTTL":{"type":"number","default":2592000},"accessTokenNumUses":{"type":"number","default":0},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenLastUsedAt":{"type":"string","format":"date-time","nullable":true},"accessTokenLastRenewedAt":{"type":"string","format":"date-time","nullable":true},"isAccessTokenRevoked":{"type":"boolean","default":false},"identityUAClientSecretId":{"type":"string","nullable":true},"identityId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"name":{"type":"string","nullable":true},"authMethod":{"type":"string"}},"required":["id","identityId","createdAt","updatedAt","authMethod"],"additionalProperties":false}}},"required":["tokens"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token-auth/tokens/{tokenId}":{"patch":{"description":"Update token for identity with Token Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the token to update to."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"tokenId","required":true,"description":"The ID of the token to update metadata for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"object","properties":{"id":{"type":"string"},"accessTokenTTL":{"type":"number","default":2592000},"accessTokenMaxTTL":{"type":"number","default":2592000},"accessTokenNumUses":{"type":"number","default":0},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenLastUsedAt":{"type":"string","format":"date-time","nullable":true},"accessTokenLastRenewedAt":{"type":"string","format":"date-time","nullable":true},"isAccessTokenRevoked":{"type":"boolean","default":false},"identityUAClientSecretId":{"type":"string","nullable":true},"identityId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"name":{"type":"string","nullable":true},"authMethod":{"type":"string"}},"required":["id","identityId","createdAt","updatedAt","authMethod"],"additionalProperties":false}},"required":["token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token-auth/tokens/{tokenId}/revoke":{"post":{"description":"Revoke token for identity with Token Auth","parameters":[{"schema":{"type":"string"},"in":"path","name":"tokenId","required":true,"description":"The ID of the token to revoke."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/universal-auth/login":{"post":{"description":"Login with Universal Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string","description":"Your Machine Identity Client ID."},"clientSecret":{"type":"string","description":"Your Machine Identity Client Secret."}},"required":["clientId","clientSecret"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/universal-auth/identities/{identityId}":{"post":{"description":"Attach Universal Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientSecretTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds. This value will be referenced at renewal time."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds. This value will be referenced at renewal time."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityUniversalAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"clientId":{"type":"string"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"clientSecretTrustedIps":{},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","clientId","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityUniversalAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update Universal Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientSecretTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new list of IPs or CIDR ranges that the Client Secret can be used from."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new list of IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an access token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityUniversalAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"clientId":{"type":"string"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"clientSecretTrustedIps":{},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","clientId","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityUniversalAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve Universal Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityUniversalAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"clientId":{"type":"string"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"clientSecretTrustedIps":{},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","clientId","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityUniversalAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete Universal Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityUniversalAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"clientId":{"type":"string"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"clientSecretTrustedIps":{},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"}},"required":["id","clientId","createdAt","updatedAt","identityId"],"additionalProperties":false}},"required":["identityUniversalAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/universal-auth/identities/{identityId}/client-secrets":{"post":{"description":"Create Universal Auth Client Secret for identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","default":"","description":"The description of the client secret."},"numUsesLimit":{"type":"number","minimum":0,"default":0,"description":"The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses."},"ttl":{"type":"number","minimum":0,"maximum":315360000,"default":0,"description":"The lifetime for the client secret in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to create a client secret for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientSecret":{"type":"string"},"clientSecretData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"description":{"type":"string"},"clientSecretPrefix":{"type":"string"},"clientSecretNumUses":{"type":"number","default":0},"clientSecretNumUsesLimit":{"type":"number","default":0},"clientSecretTTL":{"type":"number","default":0},"identityUAId":{"type":"string","format":"uuid"},"isClientSecretRevoked":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","description","clientSecretPrefix","identityUAId"],"additionalProperties":false}},"required":["clientSecret","clientSecretData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List Universal Auth Client Secrets for identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to list client secrets for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientSecretData":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"description":{"type":"string"},"clientSecretPrefix":{"type":"string"},"clientSecretNumUses":{"type":"number","default":0},"clientSecretNumUsesLimit":{"type":"number","default":0},"clientSecretTTL":{"type":"number","default":0},"identityUAId":{"type":"string","format":"uuid"},"isClientSecretRevoked":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","description","clientSecretPrefix","identityUAId"],"additionalProperties":false}}},"required":["clientSecretData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/universal-auth/identities/{identityId}/client-secrets/{clientSecretId}":{"get":{"description":"Get Universal Auth Client Secret for identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to get the client secret from."},{"schema":{"type":"string"},"in":"path","name":"clientSecretId","required":true,"description":"The ID of the client secret to get details."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientSecretData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"description":{"type":"string"},"clientSecretPrefix":{"type":"string"},"clientSecretNumUses":{"type":"number","default":0},"clientSecretNumUsesLimit":{"type":"number","default":0},"clientSecretTTL":{"type":"number","default":0},"identityUAId":{"type":"string","format":"uuid"},"isClientSecretRevoked":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","description","clientSecretPrefix","identityUAId"],"additionalProperties":false}},"required":["clientSecretData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/universal-auth/identities/{identityId}/client-secrets/{clientSecretId}/revoke":{"post":{"description":"Revoke Universal Auth Client Secrets for identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the client secret from."},{"schema":{"type":"string"},"in":"path","name":"clientSecretId","required":true,"description":"The ID of the client secret to revoke."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientSecretData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"description":{"type":"string"},"clientSecretPrefix":{"type":"string"},"clientSecretNumUses":{"type":"number","default":0},"clientSecretNumUsesLimit":{"type":"number","default":0},"clientSecretTTL":{"type":"number","default":0},"identityUAId":{"type":"string","format":"uuid"},"isClientSecretRevoked":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","description","clientSecretPrefix","identityUAId"],"additionalProperties":false}},"required":["clientSecretData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/kubernetes-auth/login":{"post":{"description":"Login with Kubernetes Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","description":"The ID of the identity to login."},"jwt":{"type":"string"}},"required":["identityId","jwt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/kubernetes-auth/identities/{identityId}":{"post":{"description":"Attach Kubernetes Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kubernetesHost":{"type":"string","minLength":1,"description":"The host string, host:port pair, or URL to the base of the Kubernetes API server."},"caCert":{"type":"string","default":"","description":"The PEM-encoded CA cert for the Kubernetes API server."},"tokenReviewerJwt":{"type":"string","minLength":1,"description":"The long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods."},"allowedNamespaces":{"type":"string","description":"The comma-separated list of trusted namespaces that service accounts must belong to authenticate with Infisical."},"allowedNames":{"type":"string","description":"The comma-separated list of trusted service account names that can authenticate with Infisical."},"allowedAudience":{"type":"string","description":"The optional audience claim that the service account JWT token must have to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"required":["kubernetesHost","tokenReviewerJwt","allowedNamespaces","allowedNames","allowedAudience"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityKubernetesAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"kubernetesHost":{"type":"string"},"allowedNamespaces":{"type":"string"},"allowedNames":{"type":"string"},"allowedAudience":{"type":"string"},"caCert":{"type":"string"},"tokenReviewerJwt":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","kubernetesHost","allowedNamespaces","allowedNames","allowedAudience","caCert","tokenReviewerJwt"],"additionalProperties":false}},"required":["identityKubernetesAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update Kubernetes Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kubernetesHost":{"type":"string","minLength":1,"description":"The new host string, host:port pair, or URL to the base of the Kubernetes API server."},"caCert":{"type":"string","description":"The new PEM-encoded CA cert for the Kubernetes API server."},"tokenReviewerJwt":{"type":"string","minLength":1,"description":"The new long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods."},"allowedNamespaces":{"type":"string","description":"The new comma-separated list of trusted namespaces that service accounts must belong to authenticate with Infisical."},"allowedNames":{"type":"string","description":"The new comma-separated list of trusted service account names that can authenticate with Infisical."},"allowedAudience":{"type":"string","description":"The new optional audience claim that the service account JWT token must have to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an acccess token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an acccess token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityKubernetesAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"kubernetesHost":{"type":"string"},"allowedNamespaces":{"type":"string"},"allowedNames":{"type":"string"},"allowedAudience":{"type":"string"},"caCert":{"type":"string"},"tokenReviewerJwt":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","kubernetesHost","allowedNamespaces","allowedNames","allowedAudience","caCert","tokenReviewerJwt"],"additionalProperties":false}},"required":["identityKubernetesAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve Kubernetes Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityKubernetesAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"kubernetesHost":{"type":"string"},"allowedNamespaces":{"type":"string"},"allowedNames":{"type":"string"},"allowedAudience":{"type":"string"},"caCert":{"type":"string"},"tokenReviewerJwt":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","kubernetesHost","allowedNamespaces","allowedNames","allowedAudience","caCert","tokenReviewerJwt"],"additionalProperties":false}},"required":["identityKubernetesAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete Kubernetes Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityKubernetesAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"kubernetesHost":{"type":"string"},"allowedNamespaces":{"type":"string"},"allowedNames":{"type":"string"},"allowedAudience":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","kubernetesHost","allowedNamespaces","allowedNames","allowedAudience"],"additionalProperties":false}},"required":["identityKubernetesAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/gcp-auth/login":{"post":{"description":"Login with GCP Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","description":"The ID of the identity to login."},"jwt":{"type":"string"}},"required":["identityId","jwt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/gcp-auth/identities/{identityId}":{"post":{"description":"Attach GCP Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["iam","gce"]},"allowedServiceAccounts":{"type":"string","default":"","description":"The comma-separated list of trusted service account emails corresponding to the GCE resource(s) allowed to authenticate with Infisical."},"allowedProjects":{"type":"string","default":"","description":"The comma-separated list of trusted GCP projects that the GCE instance must belong to authenticate with Infisical."},"allowedZones":{"type":"string","default":"","description":"The comma-separated list of trusted zones that the GCE instances must belong to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"required":["type"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityGcpAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"allowedServiceAccounts":{"type":"string"},"allowedProjects":{"type":"string"},"allowedZones":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","allowedServiceAccounts","allowedProjects","allowedZones"],"additionalProperties":false}},"required":["identityGcpAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update GCP Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["iam","gce"]},"allowedServiceAccounts":{"type":"string","default":"","description":"The new comma-separated list of trusted service account emails corresponding to the GCE resource(s) allowed to authenticate with Infisical."},"allowedProjects":{"type":"string","default":"","description":"The new comma-separated list of trusted GCP projects that the GCE instance must belong to authenticate with Infisical."},"allowedZones":{"type":"string","default":"","description":"The new comma-separated list of trusted zones that the GCE instances must belong to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an access token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityGcpAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"allowedServiceAccounts":{"type":"string"},"allowedProjects":{"type":"string"},"allowedZones":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","allowedServiceAccounts","allowedProjects","allowedZones"],"additionalProperties":false}},"required":["identityGcpAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve GCP Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityGcpAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"allowedServiceAccounts":{"type":"string"},"allowedProjects":{"type":"string"},"allowedZones":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","allowedServiceAccounts","allowedProjects","allowedZones"],"additionalProperties":false}},"required":["identityGcpAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete GCP Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityGcpAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"allowedServiceAccounts":{"type":"string"},"allowedProjects":{"type":"string"},"allowedZones":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","allowedServiceAccounts","allowedProjects","allowedZones"],"additionalProperties":false}},"required":["identityGcpAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token/renew":{"post":{"description":"Renew access token","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string","description":"The access token to renew."}},"required":["accessToken"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/token/revoke":{"post":{"description":"Revoke access token","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string","description":"The access token to revoke."}},"required":["accessToken"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/aws-auth/login":{"post":{"description":"Login with AWS Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","description":"The ID of the identity to login."},"iamHttpRequestMethod":{"type":"string","default":"POST","description":"The HTTP request method used in the signed request."},"iamRequestBody":{"type":"string","description":"The base64-encoded body of the signed request. Most likely, the base64-encoding of Action=GetCallerIdentity&Version=2011-06-15."},"iamRequestHeaders":{"type":"string","description":"The base64-encoded headers of the sts:GetCallerIdentity signed request."}},"required":["identityId","iamRequestBody","iamRequestHeaders"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/aws-auth/identities/{identityId}":{"post":{"description":"Attach AWS Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"stsEndpoint":{"type":"string","minLength":1,"default":"https://sts.amazonaws.com/","description":"The endpoint URL for the AWS STS API."},"allowedPrincipalArns":{"type":"string","default":"","description":"The comma-separated list of trusted IAM principal ARNs that are allowed to authenticate with Infisical."},"allowedAccountIds":{"type":"string","default":"","description":"The comma-separated list of trusted AWS account IDs that are allowed to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAwsAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"stsEndpoint":{"type":"string"},"allowedPrincipalArns":{"type":"string"},"allowedAccountIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","stsEndpoint","allowedPrincipalArns","allowedAccountIds"],"additionalProperties":false}},"required":["identityAwsAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update AWS Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"stsEndpoint":{"type":"string","minLength":1,"description":"The new endpoint URL for the AWS STS API."},"allowedPrincipalArns":{"type":"string","default":"","description":"The new comma-separated list of trusted IAM principal ARNs that are allowed to authenticate with Infisical."},"allowedAccountIds":{"type":"string","default":"","description":"The new comma-separated list of trusted AWS account IDs that are allowed to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an access token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAwsAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"stsEndpoint":{"type":"string"},"allowedPrincipalArns":{"type":"string"},"allowedAccountIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","stsEndpoint","allowedPrincipalArns","allowedAccountIds"],"additionalProperties":false}},"required":["identityAwsAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve AWS Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAwsAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"stsEndpoint":{"type":"string"},"allowedPrincipalArns":{"type":"string"},"allowedAccountIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","stsEndpoint","allowedPrincipalArns","allowedAccountIds"],"additionalProperties":false}},"required":["identityAwsAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete AWS Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAwsAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"type":{"type":"string"},"stsEndpoint":{"type":"string"},"allowedPrincipalArns":{"type":"string"},"allowedAccountIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","type","stsEndpoint","allowedPrincipalArns","allowedAccountIds"],"additionalProperties":false}},"required":["identityAwsAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/azure-auth/login":{"post":{"description":"Login with Azure Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","description":"The ID of the identity to login."},"jwt":{"type":"string"}},"required":["identityId","jwt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/azure-auth/identities/{identityId}":{"post":{"description":"Attach Azure Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tenantId":{"type":"string","description":"The tenant ID for the Azure AD organization."},"resource":{"type":"string","description":"The resource URL for the application registered in Azure AD."},"allowedServicePrincipalIds":{"type":"string","default":"","description":"The comma-separated list of Azure AD service principal IDs that are allowed to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"required":["tenantId","resource"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to login."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAzureAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"tenantId":{"type":"string"},"resource":{"type":"string"},"allowedServicePrincipalIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","tenantId","resource","allowedServicePrincipalIds"],"additionalProperties":false}},"required":["identityAzureAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update Azure Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"tenantId":{"type":"string","description":"The new tenant ID for the Azure AD organization."},"resource":{"type":"string","description":"The new resource URL for the application registered in Azure AD."},"allowedServicePrincipalIds":{"type":"string","default":"","description":"The new comma-separated list of Azure AD service principal IDs that are allowed to authenticate with Infisical."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":0,"maximum":315360000,"description":"The new lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"description":"The new maximum number of times that an access token can be used."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"description":"The new maximum lifetime for an access token in seconds."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAzureAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"tenantId":{"type":"string"},"resource":{"type":"string"},"allowedServicePrincipalIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","tenantId","resource","allowedServicePrincipalIds"],"additionalProperties":false}},"required":["identityAzureAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve Azure Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAzureAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"tenantId":{"type":"string"},"resource":{"type":"string"},"allowedServicePrincipalIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","tenantId","resource","allowedServicePrincipalIds"],"additionalProperties":false}},"required":["identityAzureAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete Azure Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityAzureAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"tenantId":{"type":"string"},"resource":{"type":"string"},"allowedServicePrincipalIds":{"type":"string"}},"required":["id","createdAt","updatedAt","identityId","tenantId","resource","allowedServicePrincipalIds"],"additionalProperties":false}},"required":["identityAzureAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/oidc-auth/login":{"post":{"description":"Login with OIDC Auth","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","description":"The ID of the identity to login."},"jwt":{"type":"string"}},"required":["identityId","jwt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accessToken":{"type":"string"},"expiresIn":{"type":"number"},"accessTokenMaxTTL":{"type":"number"},"tokenType":{"type":"string","enum":["Bearer"]}},"required":["accessToken","expiresIn","accessTokenMaxTTL","tokenType"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/auth/oidc-auth/identities/{identityId}":{"post":{"description":"Attach OIDC Auth configuration onto identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"oidcDiscoveryUrl":{"type":"string","format":"uri","minLength":1,"description":"The URL used to retrieve the OpenID Connect configuration from the identity provider."},"caCert":{"type":"string","default":"","description":"The PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints."},"boundIssuer":{"type":"string","minLength":1,"description":"The unique identifier of the identity provider issuing the JWT."},"boundAudiences":{"type":"string","default":"","description":"The list of intended recipients."},"boundClaims":{"type":"object","additionalProperties":{"type":"string"},"description":"The attributes that should be present in the JWT for it to be valid."},"boundSubject":{"type":"string","default":"","description":"The expected principal that is the subject of the JWT."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The maximum number of times that an access token can be used."}},"required":["oidcDiscoveryUrl","boundIssuer","boundClaims"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to attach the configuration onto."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityOidcAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"identityId":{"type":"string","format":"uuid"},"oidcDiscoveryUrl":{"type":"string"},"boundIssuer":{"type":"string"},"boundAudiences":{"type":"string"},"boundClaims":{},"boundSubject":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caCert":{"type":"string"}},"required":["id","identityId","oidcDiscoveryUrl","boundIssuer","boundAudiences","createdAt","updatedAt","caCert"],"additionalProperties":false}},"required":["identityOidcAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update OIDC Auth configuration on identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"oidcDiscoveryUrl":{"type":"string","format":"uri","minLength":1,"description":"The new URL used to retrieve the OpenID Connect configuration from the identity provider."},"caCert":{"type":"string","default":"","description":"The new PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints."},"boundIssuer":{"type":"string","minLength":1,"description":"The new unique identifier of the identity provider issuing the JWT."},"boundAudiences":{"type":"string","default":"","description":"The new list of intended recipients."},"boundClaims":{"type":"object","additionalProperties":{"type":"string"},"description":"The new attributes that should be present in the JWT for it to be valid."},"boundSubject":{"type":"string","default":"","description":"The new expected principal that is the subject of the JWT."},"accessTokenTrustedIps":{"type":"array","items":{"type":"object","properties":{"ipAddress":{"type":"string"}},"required":["ipAddress"],"additionalProperties":false},"minItems":1,"default":[{"ipAddress":"0.0.0.0/0"},{"ipAddress":"::/0"}],"description":"The new IPs or CIDR ranges that access tokens can be used from."},"accessTokenTTL":{"type":"integer","minimum":1,"maximum":315360000,"default":2592000,"description":"The new lifetime for an access token in seconds."},"accessTokenMaxTTL":{"type":"integer","maximum":315360000,"default":2592000,"description":"The new maximum lifetime for an access token in seconds."},"accessTokenNumUsesLimit":{"type":"integer","minimum":0,"default":0,"description":"The new maximum number of times that an access token can be used."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityOidcAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"identityId":{"type":"string","format":"uuid"},"oidcDiscoveryUrl":{"type":"string"},"boundIssuer":{"type":"string"},"boundAudiences":{"type":"string"},"boundClaims":{},"boundSubject":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caCert":{"type":"string"}},"required":["id","identityId","oidcDiscoveryUrl","boundIssuer","boundAudiences","createdAt","updatedAt","caCert"],"additionalProperties":false}},"required":["identityOidcAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve OIDC Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to retrieve the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityOidcAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"identityId":{"type":"string","format":"uuid"},"oidcDiscoveryUrl":{"type":"string"},"boundIssuer":{"type":"string"},"boundAudiences":{"type":"string"},"boundClaims":{},"boundSubject":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caCert":{"type":"string"}},"required":["id","identityId","oidcDiscoveryUrl","boundIssuer","boundAudiences","createdAt","updatedAt","caCert"],"additionalProperties":false}},"required":["identityOidcAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete OIDC Auth configuration on identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to revoke the auth method for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityOidcAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"accessTokenTTL":{"type":"number","default":7200},"accessTokenMaxTTL":{"type":"number","default":7200},"accessTokenNumUsesLimit":{"type":"number","default":0},"accessTokenTrustedIps":{},"identityId":{"type":"string","format":"uuid"},"oidcDiscoveryUrl":{"type":"string"},"boundIssuer":{"type":"string"},"boundAudiences":{"type":"string"},"boundClaims":{},"boundSubject":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","identityId","oidcDiscoveryUrl","boundIssuer","boundAudiences","createdAt","updatedAt"],"additionalProperties":false}},"required":["identityOidcAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/srp1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientPublicKey":{"type":"string"}},"required":["clientPublicKey"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serverPublicKey":{"type":"string"},"salt":{"type":"string"}},"required":["serverPublicKey","salt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/change-password":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientProof":{"type":"string"},"protectedKey":{"type":"string"},"protectedKeyIV":{"type":"string"},"protectedKeyTag":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"encryptedPrivateKeyIV":{"type":"string"},"encryptedPrivateKeyTag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"},"password":{"type":"string"}},"required":["clientProof","protectedKey","protectedKeyIV","protectedKeyTag","encryptedPrivateKey","encryptedPrivateKeyIV","encryptedPrivateKeyTag","salt","verifier","password"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/email/password-reset":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/email/password-reset-verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"code":{"type":"string"}},"required":["email","code"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false},"token":{"type":"string"}},"required":["message","user","token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/backup-private-key":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientProof":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"}},"required":["clientProof","encryptedPrivateKey","iv","tag","salt","verifier"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"backupPrivateKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"algorithm":{"type":"string"},"keyEncoding":{"type":"string"},"salt":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","encryptedPrivateKey","iv","tag","algorithm","keyEncoding","salt","createdAt","updatedAt","userId"],"additionalProperties":false}},"required":["message","backupPrivateKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"backupPrivateKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"algorithm":{"type":"string"},"keyEncoding":{"type":"string"},"salt":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","encryptedPrivateKey","iv","tag","algorithm","keyEncoding","salt","createdAt","updatedAt","userId"],"additionalProperties":false}},"required":["message","backupPrivateKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/password/password-reset":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"protectedKey":{"type":"string"},"protectedKeyIV":{"type":"string"},"protectedKeyTag":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"encryptedPrivateKeyIV":{"type":"string"},"encryptedPrivateKeyTag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"}},"required":["protectedKey","protectedKeyIV","protectedKeyTag","encryptedPrivateKey","encryptedPrivateKeyIV","encryptedPrivateKeyTag","salt","verifier"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true},"orgAuthMethod":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt","orgAuthMethod"],"additionalProperties":false}}},"required":["organizations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}},"required":["organization"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"slug":{"type":"string","maxLength":64,"pattern":"^[a-zA-Z0-9-]+$"},"authEnforced":{"type":"boolean"},"scimEnabled":{"type":"boolean"},"defaultMembershipRoleSlug":{"type":"string","minLength":1},"enforceMfa":{"type":"boolean"},"selectedMfaMethod":{"type":"string","enum":["email","totp"]}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","organization"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/integration-authorizations":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"authorizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}}},"required":["authorizations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/audit-logs":{"get":{"description":"Get all audit logs for an organization","parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":false,"description":"Optionally filter logs by project ID. If not provided, logs from the entire organization will be returned."},{"schema":{"type":"string","enum":["platform","user","service","identity","machine","scimClient"]},"in":"query","name":"actorType","required":false},{"schema":{"type":"string"},"in":"query","name":"eventType","required":false},{"schema":{"type":"string","enum":["web","cli","k8-operator","terraform","other","InfisicalPythonSDK","InfisicalNodeSDK"]},"in":"query","name":"userAgentType","required":false,"description":"Choose which consuming application to export audit logs for."},{"schema":{"type":"string"},"in":"query","name":"eventMetadata","required":false,"description":"Filter by event metadata key-value pairs. Formatted as `key1=value1,key2=value2`, with comma-separation."},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"startDate","required":false,"description":"The date to start the export from."},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"endDate","required":false,"description":"The date to end the export at."},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th audit log."},{"schema":{"type":"number","default":20},"in":"query","name":"limit","required":false,"description":"The number of audit logs to return."},{"schema":{"type":"string"},"in":"query","name":"actor","required":false,"description":"The actor to filter the audit logs by."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"auditLogs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ipAddress":{"type":"string","nullable":true},"userAgent":{"type":"string","nullable":true},"userAgentType":{"type":"string","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string","nullable":true},"projectName":{"type":"string","nullable":true},"event":{"type":"object","properties":{"type":{"type":"string"},"metadata":{}},"required":["type"],"additionalProperties":false},"actor":{"type":"object","properties":{"type":{"type":"string"},"metadata":{}},"required":["type"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","event","actor"],"additionalProperties":false}}},"required":["auditLogs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/users":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true},"user":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"superAdmin":{"type":"boolean","default":false,"nullable":true},"publicKey":{"type":"string","nullable":true}},"required":["username","id","publicKey"],"additionalProperties":false}},"required":["id","role","orgId","user"],"additionalProperties":false}}},"required":["users"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/incidentContactOrg":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"incidentContactsOrg":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","email","createdAt","updatedAt","orgId"],"additionalProperties":false}}},"required":["incidentContactsOrg"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"incidentContactsOrg":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","email","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["incidentContactsOrg"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/incidentContactOrg/{incidentContactId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true},{"schema":{"type":"string"},"in":"path","name":"incidentContactId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"incidentContactsOrg":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"orgId":{"type":"string","format":"uuid"}},"required":["id","email","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["incidentContactsOrg"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization/{organizationId}/groups":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to list groups for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"customRole":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"permissions":{},"description":{"type":"string","nullable":true}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","orgId","name","slug","role","createdAt","updatedAt"],"additionalProperties":false}}},"required":["groups"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/admin/config":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"initialized":{"type":"boolean","default":false,"nullable":true},"allowSignUp":{"type":"boolean","default":true,"nullable":true},"allowedSignUpDomain":{"type":"string","nullable":true},"instanceId":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000"},"trustSamlEmails":{"type":"boolean","default":false,"nullable":true},"trustLdapEmails":{"type":"boolean","default":false,"nullable":true},"trustOidcEmails":{"type":"boolean","default":false,"nullable":true},"defaultAuthOrgId":{"type":"string","format":"uuid","nullable":true},"enabledLoginMethods":{"type":"array","items":{"type":"string"},"nullable":true},"isMigrationModeOn":{"type":"boolean"},"defaultAuthOrgSlug":{"type":"string","nullable":true},"defaultAuthOrgAuthEnforced":{"type":"boolean","nullable":true},"defaultAuthOrgAuthMethod":{"type":"string","nullable":true},"isSecretScanningDisabled":{"type":"boolean"}},"required":["id","isMigrationModeOn","defaultAuthOrgSlug","isSecretScanningDisabled"],"additionalProperties":false}},"required":["config"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allowSignUp":{"type":"boolean"},"allowedSignUpDomain":{"type":"string","nullable":true},"trustSamlEmails":{"type":"boolean"},"trustLdapEmails":{"type":"boolean"},"trustOidcEmails":{"type":"boolean"},"defaultAuthOrgId":{"type":"string","nullable":true},"enabledLoginMethods":{"type":"array","items":{"type":"string","enum":["email","google","github","gitlab","saml","ldap","oidc"]}},"slackClientId":{"type":"string"},"slackClientSecret":{"type":"string"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"initialized":{"type":"boolean","default":false,"nullable":true},"allowSignUp":{"type":"boolean","default":true,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"allowedSignUpDomain":{"type":"string","nullable":true},"instanceId":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000"},"trustSamlEmails":{"type":"boolean","default":false,"nullable":true},"trustLdapEmails":{"type":"boolean","default":false,"nullable":true},"trustOidcEmails":{"type":"boolean","default":false,"nullable":true},"defaultAuthOrgId":{"type":"string","format":"uuid","nullable":true},"enabledLoginMethods":{"type":"array","items":{"type":"string"},"nullable":true},"encryptedSlackClientId":{"nullable":true},"encryptedSlackClientSecret":{"nullable":true},"defaultAuthOrgSlug":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","defaultAuthOrgSlug"],"additionalProperties":false}},"required":["config"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/admin/user-management/users":{"get":{"parameters":[{"schema":{"type":"string","default":""},"in":"query","name":"searchTerm","required":false},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false},{"schema":{"type":"number","maximum":100,"default":20},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"superAdmin":{"type":"boolean","default":false,"nullable":true}},"required":["username","id"],"additionalProperties":false}}},"required":["users"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/admin/integrations/slack/config":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"}},"required":["clientId","clientSecret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/admin/user-management/users/{userId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"object","properties":{"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"}},"required":["username","id"],"additionalProperties":false}},"required":["users"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/admin/encryption-strategies":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"strategies":{"type":"array","items":{"type":"object","properties":{"strategy":{"type":"string","enum":["SOFTWARE","HSM"]},"enabled":{"type":"boolean"}},"required":["strategy","enabled"],"additionalProperties":false}}},"required":["strategies"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"strategy":{"type":"string","enum":["SOFTWARE","HSM"]}},"required":["strategy"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response"}}}},"/api/v1/admin/signup":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"protectedKey":{"type":"string"},"protectedKeyIV":{"type":"string"},"protectedKeyTag":{"type":"string"},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"encryptedPrivateKeyIV":{"type":"string"},"encryptedPrivateKeyTag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"}},"required":["email","password","firstName","protectedKey","protectedKeyIV","protectedKeyTag","publicKey","encryptedPrivateKey","encryptedPrivateKeyIV","encryptedPrivateKeyTag","salt","verifier"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false},"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false},"token":{"type":"string"},"new":{"type":"string"}},"required":["message","user","organization","token","new"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization-admin/projects":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"type":"number","default":0},"in":"query","name":"offset","required":false},{"schema":{"type":"number","maximum":100,"default":50},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"count":{"type":"number"}},"required":["projects","count"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/organization-admin/projects/{projectId}/grant-admin-access":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true},"clientPublicKey":{"type":"string","nullable":true},"serverPrivateKey":{"type":"string","nullable":true},"encryptionVersion":{"type":"number","default":2,"nullable":true},"protectedKey":{"type":"string","nullable":true},"protectedKeyIV":{"type":"string","nullable":true},"protectedKeyTag":{"type":"string","nullable":true},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"},"userId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","username","publicKey","encryptedPrivateKey","iv","tag","salt","verifier","userId"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user/private-key":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privateKey":{"type":"string"}},"required":["privateKey"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user/{userId}/unlock":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"token","required":true},{"schema":{"type":"string"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/user/me/project-favorites":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"orgId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projectFavorites":{"type":"array","items":{"type":"string"}}},"required":["projectFavorites"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string"},"projectFavorites":{"type":"array","items":{"type":"string"}}},"required":["orgId","projectFavorites"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response"}}}},"/api/v1/user/me/{username}/groups":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"username","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"orgId":{"type":"string"}},"required":["id","name","slug","orgId"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user/me/totp":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isVerified":{"type":"boolean"},"recoveryCodes":{"type":"array","items":{"type":"string"}}},"required":["isVerified","recoveryCodes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/user/me/totp/register":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"otpUrl":{"type":"string"},"recoveryCodes":{"type":"array","items":{"type":"string"}}},"required":["otpUrl","recoveryCodes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user/me/totp/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"totp":{"type":"string"}},"required":["totp"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user/me/totp/recovery-codes":{"post":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/invite-org/signup":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"inviteeEmails":{"type":"array","items":{"type":"string","format":"email"}},"organizationId":{"type":"string"},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectRoleSlug":{"type":"array","items":{"type":"string"},"default":["member"]}},"required":["id"],"additionalProperties":false}},"organizationRoleSlug":{"type":"string","default":"member"}},"required":["inviteeEmails","organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"completeInviteLinks":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"link":{"type":"string"}},"required":["email","link"],"additionalProperties":false}}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/invite-org/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"organizationId":{"type":"string"},"code":{"type":"string"}},"required":["email","organizationId","code"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"token":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["message","user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user-action":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string"}},"required":["action"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"userAction":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"action":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","action","createdAt","updatedAt","userId"],"additionalProperties":false}},"required":["message","userAction"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"action","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"userAction":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"action":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","action","createdAt","updatedAt","userId"],"additionalProperties":false,"nullable":true}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-imports":{"post":{"description":"Create secret imports","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project you are working in."},"environment":{"type":"string","description":"The slug of the environment to import into."},"path":{"type":"string","default":"/","description":"The path to import into."},"import":{"type":"object","properties":{"environment":{"type":"string","description":"The slug of the environment to import from."},"path":{"type":"string","description":"The path to import from."}},"required":["environment","path"],"additionalProperties":false},"isReplication":{"type":"boolean","default":false,"description":"When true, secrets from the source will be automatically sent to the destination. If approval policies exist at the destination, the secrets will be sent as approval requests instead of being applied immediately."}},"required":["workspaceId","environment","import"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"secretImport":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"required":["id","importPath","position","createdAt","updatedAt","folderId","importEnv"],"additionalProperties":false}},"required":["message","secretImport"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get secret imports","parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true,"description":"The ID of the project to list secret imports from."},{"schema":{"type":"string"},"in":"query","name":"environment","required":true,"description":"The slug of the environment to list secret imports from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list secret imports from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"secretImports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"required":["id","importPath","position","createdAt","updatedAt","folderId","importEnv"],"additionalProperties":false}}},"required":["message","secretImports"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-imports/{secretImportId}":{"patch":{"description":"Update secret imports","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project where the secret import is located."},"environment":{"type":"string","description":"The slug of the environment where the secret import is located."},"path":{"type":"string","default":"/","description":"The path of the secret import to update."},"import":{"type":"object","properties":{"environment":{"type":"string","description":"The new environment slug to import from."},"path":{"type":"string","description":"The new path to import from."},"position":{"type":"number","description":"The new position of the secret import. The lowest number will be displayed as the first import."}},"additionalProperties":false}},"required":["workspaceId","environment","import"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretImportId","required":true,"description":"The ID of the secret import to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"secretImport":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"required":["id","importPath","position","createdAt","updatedAt","folderId","importEnv"],"additionalProperties":false}},"required":["message","secretImport"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete secret imports","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to delete the secret import from."},"environment":{"type":"string","description":"The slug of the environment where the secret import is located."},"path":{"type":"string","default":"/","description":"The path of the secret import to delete."}},"required":["workspaceId","environment"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretImportId","required":true,"description":"The ID of the secret import to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"secretImport":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"required":["id","importPath","position","createdAt","updatedAt","folderId","importEnv"],"additionalProperties":false}},"required":["message","secretImport"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get single secret import","parameters":[{"schema":{"type":"string"},"in":"path","name":"secretImportId","required":true,"description":"The ID of the secret import to fetch."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretImport":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"projectId":{"type":"string"},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false},"secretPath":{"type":"string"}},"required":["id","importPath","position","createdAt","updatedAt","folderId","environment","projectId","importEnv","secretPath"],"additionalProperties":false}},"required":["secretImport"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-imports/{secretImportId}/replication-resync":{"post":{"description":"Resync secret replication of secret imports","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project where the secret import is located."},"environment":{"type":"string","description":"The slug of the environment where the secret import is located."},"path":{"type":"string","default":"/","description":"The path of the secret import to update."}},"required":["workspaceId","environment"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretImportId","required":true,"description":"The ID of the secret import to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-imports/secrets":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"secretPath":{"type":"string"},"environment":{"type":"string"},"environmentInfo":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"folderId":{"type":"string"},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secretPath","environment","environmentInfo","secrets"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-imports/secrets/raw":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"secretPath":{"type":"string"},"environment":{"type":"string"},"environmentInfo":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"folderId":{"type":"string"},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secretPath","environment","environmentInfo","secrets"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/folders":{"post":{"description":"Create folders","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to create the folder in."},"environment":{"type":"string","description":"The slug of the environment to create the folder in."},"name":{"type":"string","description":"The name of the folder to create."},"path":{"type":"string","default":"/","description":"The path of the folder to create."},"directory":{"type":"string","default":"/","description":"The directory of the folder to create. (Deprecated in favor of path)"}},"required":["workspaceId","environment","name"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get folders","parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true,"description":"The ID of the project to list folders from."},{"schema":{"type":"string"},"in":"query","name":"environment","required":true,"description":"The slug of the environment to list folders from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"path","required":false,"description":"The path to list folders from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"directory","required":false,"description":"The directory to list folders from. (Deprecated in favor of path)"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}}},"required":["folders"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/folders/{folderId}":{"patch":{"description":"Update folder","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project where the folder is located."},"environment":{"type":"string","description":"The slug of the environment where the folder is located."},"name":{"type":"string","description":"The new name of the folder."},"path":{"type":"string","default":"/","description":"The path of the folder to update."},"directory":{"type":"string","default":"/","description":"The new directory of the folder to update. (Deprecated in favor of path)"}},"required":["workspaceId","environment","name"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"folderId","required":true,"description":"The ID of the folder to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/folders/batch":{"patch":{"description":"Update folders by batch","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project where the folder is located."},"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the folder to update."},"environment":{"type":"string","description":"The slug of the environment where the folder is located."},"name":{"type":"string","description":"The new name of the folder."},"path":{"type":"string","default":"/","description":"The path of the folder to update."}},"required":["id","environment","name"],"additionalProperties":false},"minItems":1}},"required":["projectSlug","folders"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}}},"required":["folders"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/folders/{folderIdOrName}":{"delete":{"description":"Delete a folder","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to delete the folder from."},"environment":{"type":"string","description":"The slug of the environment where the folder is located."},"path":{"type":"string","default":"/","description":"The path of the folder to delete."},"directory":{"type":"string","default":"/","description":"The directory of the folder to delete. (Deprecated in favor of path)"}},"required":["workspaceId","environment"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"folderIdOrName","required":true,"description":"The ID or name of the folder to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/folders/{id}":{"get":{"description":"Get folder by id","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the folder to get details."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"environment":{"type":"object","properties":{"envId":{"type":"string"},"envName":{"type":"string"},"envSlug":{"type":"string"}},"required":["envId","envName","envSlug"],"additionalProperties":false},"path":{"type":"string"},"projectId":{"type":"string"}},"required":["id","name","createdAt","updatedAt","envId","environment","path","projectId"],"additionalProperties":false}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"integration":{"type":"string"}},"required":["id","slug","integration"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack/install":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"slug","required":true},{"schema":{"type":"string"},"in":"query","name":"description","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack/reinstall":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack":{"get":{"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"integration":{"type":"string"},"teamName":{"type":"string"}},"required":["id","slug","integration","teamName"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack/{id}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"integration":{"type":"string"},"teamName":{"type":"string"}},"required":["id","slug","integration","teamName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"integration":{"type":"string"},"teamName":{"type":"string"}},"required":["id","slug","integration","teamName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string"},"description":{"type":"string"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"integration":{"type":"string"},"teamName":{"type":"string"}},"required":["id","slug","integration","teamName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack/{id}/channels":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workflow-integrations/slack/oauth_redirect":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/api/v1/workspace/{workspaceId}/keys":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"publicKeys":{"type":"array","items":{"type":"object","properties":{"publicKey":{"type":"string"},"userId":{"type":"string"}},"required":["userId"],"additionalProperties":false}}},"required":["publicKeys"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/users":{"get":{"parameters":[{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"includeGroupMembers","required":false},{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"isGroupMember":{"type":"boolean"},"user":{"type":"object","properties":{"email":{"type":"string","nullable":true},"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"publicKey":{"type":"string"}},"required":["username","id","publicKey"],"additionalProperties":false},"project":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}}},"required":["id","userId","projectId","isGroupMember","user","project","roles"],"additionalProperties":false}}},"required":["users"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace":{"get":{"parameters":[{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"includeRoles","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true},"_id":{"type":"string"},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}}},"required":["id","name","slug","orgId","createdAt","updatedAt","_id","environments"],"additionalProperties":false}}},"required":["workspaces"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}":{"get":{"description":"Get project","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true},"_id":{"type":"string"},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}}},"required":["id","name","slug","orgId","createdAt","updatedAt","_id","environments"],"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete project","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"description":"The new name of the project."},"description":{"type":"string","maxLength":256,"description":"An optional description label for the project."},"autoCapitalization":{"type":"boolean","description":"Disable or enable auto-capitalization for the project."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["workspace"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/name":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/auto-capitalization":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"autoCapitalization":{"type":"boolean"}},"required":["autoCapitalization"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceSlug}/version-limit":{"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pitVersionLimit":{"type":"number","minimum":1,"maximum":100}},"required":["pitVersionLimit"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceSlug}/audit-logs-retention":{"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"auditLogsRetentionDays":{"type":"number","minimum":0}},"required":["auditLogsRetentionDays"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/integrations":{"get":{"description":"List integrations for a project.","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to list integrations for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt","environment"],"additionalProperties":false}}},"required":["integrations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/authorizations":{"get":{"description":"List integration auth objects for a workspace.","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to list integration auths for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"authorizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}}},"required":["authorizations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/service-token-data":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serviceTokenData":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{},"permissions":{"type":"array","items":{"type":"string"}},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"projectId":{"type":"string"}},"required":["id","name","permissions","createdAt","updatedAt","createdBy","projectId"],"additionalProperties":false}}},"required":["serviceTokenData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/slack-config":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slackIntegrationId":{"type":"string","format":"uuid"},"isAccessRequestNotificationEnabled":{"type":"boolean","default":false},"accessRequestChannels":{"type":"string","default":""},"isSecretRequestNotificationEnabled":{"type":"boolean","default":false},"secretRequestChannels":{"type":"string","default":""}},"required":["id","slackIntegrationId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slackIntegrationId":{"type":"string"},"isAccessRequestNotificationEnabled":{"type":"boolean"},"accessRequestChannels":{"type":"string","default":""},"isSecretRequestNotificationEnabled":{"type":"boolean"},"secretRequestChannels":{"type":"string","default":""}},"required":["slackIntegrationId","isAccessRequestNotificationEnabled","isSecretRequestNotificationEnabled"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slackIntegrationId":{"type":"string","format":"uuid"},"isAccessRequestNotificationEnabled":{"type":"boolean","default":false},"accessRequestChannels":{"type":"string","default":""},"isSecretRequestNotificationEnabled":{"type":"boolean","default":false},"secretRequestChannels":{"type":"string","default":""}},"required":["id","slackIntegrationId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/environments/{envId}":{"get":{"description":"Get Environment","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project the environment belongs to."},{"schema":{"type":"string"},"in":"path","name":"envId","required":true,"description":"The ID of the environment to fetch."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"position":{"type":"number"},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","position","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/environments/{envId}":{"get":{"description":"Get Environment by ID","parameters":[{"schema":{"type":"string"},"in":"path","name":"envId","required":true,"description":"The ID of the environment to fetch."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"position":{"type":"number"},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","position","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/environments":{"post":{"description":"Create environment","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the environment to create."},"position":{"type":"number","minimum":1,"description":"The position of the environment. The lowest number will be displayed as the first environment."},"slug":{"type":"string","description":"The slug of the environment to create."}},"required":["name","slug"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to create the environment in."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"position":{"type":"number"},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","position","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace","environment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/environments/{id}":{"patch":{"description":"Update environment","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"The new slug of the environment."},"name":{"type":"string","description":"The new name of the environment."},"position":{"type":"number","description":"The new position of the environment. The lowest number will be displayed as the first environment."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to update the environment in."},{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the environment to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"position":{"type":"number"},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","position","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace","environment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete environment","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to delete the environment from."},{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the environment to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"position":{"type":"number"},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","position","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["message","workspace","environment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/key":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"encryptedKey":{"type":"string"},"nonce":{"type":"string"},"userId":{"type":"string"}},"required":["encryptedKey","nonce","userId"],"additionalProperties":false}},"required":["key"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/memberships":{"get":{"description":"Return project user memberships","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to get memberships from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"user":{"type":"object","properties":{"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"username":{"type":"string"},"publicKey":{"type":"string"}},"required":["id","username","publicKey"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}}},"required":["id","createdAt","userId","projectId","user","roles"],"additionalProperties":false}}},"required":["memberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"orgMembershipId":{"type":"string"},"workspaceEncryptedKey":{"type":"string"},"workspaceEncryptedNonce":{"type":"string"}},"required":["orgMembershipId","workspaceEncryptedKey","workspaceEncryptedNonce"],"additionalProperties":false},"minItems":1}},"required":["members"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true}},"required":["id","role","createdAt","updatedAt","orgId"],"additionalProperties":false}}},"required":["success","data"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/memberships/{membershipId}":{"get":{"description":"Return project user membership","parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to get memberships from."},{"schema":{"type":"string","minLength":1},"in":"path","name":"membershipId","required":true,"description":"The ID of the user's project membership."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"user":{"type":"object","properties":{"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"username":{"type":"string"},"publicKey":{"type":"string"}},"required":["id","username","publicKey"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}}},"required":["id","createdAt","userId","projectId","user","roles"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update project user membership","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[false],"default":false}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[true]},"temporaryMode":{"type":"string","enum":["relative"]},"temporaryRange":{"type":"string"},"temporaryAccessStartTime":{"type":"string","format":"date-time"}},"required":["role","isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]},"minItems":1,"description":"A list of roles to update the membership to."}},"required":["roles"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to update the membership for."},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true,"description":"The ID of the membership to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"customRoleId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","role","projectMembershipId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete project user membership","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/memberships/details":{"post":{"description":"Return project user memberships","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","minLength":1,"description":"The username to get project membership of. Email is the default username."}},"required":["username"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to get memberships from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"user":{"type":"object","properties":{"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"publicKey":{"type":"string"}},"required":["id","publicKey"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}}},"required":["id","userId","projectId","user","roles"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{workspaceId}/leave":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectId}/tags":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to list tags from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"}},"required":["id","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}}},"required":["workspaceTags"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of the tag to create."},"color":{"type":"string","description":"The color of the tag to create."}},"required":["slug","color"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to create the tag in."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTag":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"}},"required":["id","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["workspaceTag"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectId}/tags/{tagId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to get tags from."},{"schema":{"type":"string"},"in":"path","name":"tagId","required":true,"description":"The ID of the tag to get details."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTag":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"},"name":{"type":"string"}},"required":["id","slug","createdAt","updatedAt","projectId","name"],"additionalProperties":false}},"required":["workspaceTag"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of the tag to update."},"color":{"type":"string","description":"The color of the tag to update."}},"required":["slug","color"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to update the tag in."},{"schema":{"type":"string"},"in":"path","name":"tagId","required":true,"description":"The ID of the tag to get details."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTag":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"}},"required":["id","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["workspaceTag"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to delete the tag from."},{"schema":{"type":"string"},"in":"path","name":"tagId","required":true,"description":"The ID of the tag to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTag":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"}},"required":["id","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["workspaceTag"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/workspace/{projectId}/tags/slug/{tagSlug}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to get tags from."},{"schema":{"type":"string"},"in":"path","name":"tagSlug","required":true,"description":"The slug of the tag to get details."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceTag":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdByActorType":{"type":"string","default":"user"},"name":{"type":"string"}},"required":["id","slug","createdAt","updatedAt","projectId","name"],"additionalProperties":false}},"required":["workspaceTag"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca":{"post":{"description":"Create CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"Slug of the project to create the CA in."},"type":{"type":"string","enum":["root","intermediate"],"description":"The type of CA to create."},"friendlyName":{"type":"string","description":"A friendly name for the CA."},"commonName":{"type":"string","description":"The common name (CN) for the CA."},"organization":{"type":"string","description":"The organization (O) for the CA."},"ou":{"type":"string","description":"The organization unit (OU) for the CA."},"country":{"type":"string","description":"The country name (C) for the CA."},"province":{"type":"string","description":"The state of province name for the CA."},"locality":{"type":"string","description":"The locality name for the CA."},"notBefore":{"type":"string","description":"The date and time when the CA becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the CA expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"maxPathLength":{"type":"number","minimum":-1,"default":-1,"description":"The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain."},"keyAlgorithm":{"type":"string","enum":["RSA_2048","RSA_4096","EC_prime256v1","EC_secp384r1"],"default":"RSA_2048","description":"The type of public key algorithm and size, in bits, of the key pair for the CA; when you create an intermediate CA, you must use a key algorithm supported by the parent CA."},"requireTemplateForIssuance":{"type":"boolean","default":false,"description":"Whether or not certificates for this CA can only be issued through certificate templates."}},"required":["projectSlug","type","commonName","organization","ou","country","province","locality"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ca":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"parentCaId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"friendlyName":{"type":"string"},"organization":{"type":"string"},"ou":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"},"locality":{"type":"string"},"commonName":{"type":"string"},"dn":{"type":"string"},"serialNumber":{"type":"string","nullable":true},"maxPathLength":{"type":"number","nullable":true},"keyAlgorithm":{"type":"string"},"notBefore":{"type":"string","format":"date-time","nullable":true},"notAfter":{"type":"string","format":"date-time","nullable":true},"activeCaCertId":{"type":"string","format":"uuid","nullable":true},"requireTemplateForIssuance":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","projectId","type","status","friendlyName","organization","ou","country","province","locality","commonName","dn","keyAlgorithm"],"additionalProperties":false}},"required":["ca"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}":{"get":{"description":"Get CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ca":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"parentCaId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"friendlyName":{"type":"string"},"organization":{"type":"string"},"ou":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"},"locality":{"type":"string"},"commonName":{"type":"string"},"dn":{"type":"string"},"serialNumber":{"type":"string","nullable":true},"maxPathLength":{"type":"number","nullable":true},"keyAlgorithm":{"type":"string"},"notBefore":{"type":"string","format":"date-time","nullable":true},"notAfter":{"type":"string","format":"date-time","nullable":true},"activeCaCertId":{"type":"string","format":"uuid","nullable":true},"requireTemplateForIssuance":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","projectId","type","status","friendlyName","organization","ou","country","province","locality","commonName","dn","keyAlgorithm"],"additionalProperties":false}},"required":["ca"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","disabled"],"description":"The status of the CA to update to. This can be one of active or disabled."},"requireTemplateForIssuance":{"type":"boolean","description":"Whether or not certificates for this CA can only be issued through certificate templates."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ca":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"parentCaId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"friendlyName":{"type":"string"},"organization":{"type":"string"},"ou":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"},"locality":{"type":"string"},"commonName":{"type":"string"},"dn":{"type":"string"},"serialNumber":{"type":"string","nullable":true},"maxPathLength":{"type":"number","nullable":true},"keyAlgorithm":{"type":"string"},"notBefore":{"type":"string","format":"date-time","nullable":true},"notAfter":{"type":"string","format":"date-time","nullable":true},"activeCaCertId":{"type":"string","format":"uuid","nullable":true},"requireTemplateForIssuance":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","projectId","type","status","friendlyName","organization","ou","country","province","locality","commonName","dn","keyAlgorithm"],"additionalProperties":false}},"required":["ca"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ca":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"parentCaId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"friendlyName":{"type":"string"},"organization":{"type":"string"},"ou":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"},"locality":{"type":"string"},"commonName":{"type":"string"},"dn":{"type":"string"},"serialNumber":{"type":"string","nullable":true},"maxPathLength":{"type":"number","nullable":true},"keyAlgorithm":{"type":"string"},"notBefore":{"type":"string","format":"date-time","nullable":true},"notAfter":{"type":"string","format":"date-time","nullable":true},"activeCaCertId":{"type":"string","format":"uuid","nullable":true},"requireTemplateForIssuance":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","projectId","type","status","friendlyName","organization","ou","country","province","locality","commonName","dn","keyAlgorithm"],"additionalProperties":false}},"required":["ca"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/certificates/{caCertId}/der":{"get":{"description":"Get DER-encoded certificate of CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to get the CA certificate from."},{"schema":{"type":"string"},"in":"path","name":"caCertId","required":true,"description":"The ID of the CA certificate to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/csr":{"get":{"description":"Get CA CSR","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to generate CSR from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"csr":{"type":"string","description":"The generated CSR from the CA."}},"required":["csr"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/renew":{"post":{"description":"Perform CA certificate renewal","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["existing"],"description":"The type of behavior to use for the renewal operation. Currently Infisical is only able to renew a CA certificate with the same key pair."},"notAfter":{"type":"string","description":"The expiry date and time for the renewed CA certificate in YYYY-MM-DDTHH:mm:ss.sssZ format."}},"required":["type","notAfter"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to renew the CA certificate for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The renewed CA certificate body."},"certificateChain":{"type":"string","description":"The certificate chain of the CA."},"serialNumber":{"type":"string","description":"The serial number of the renewed CA certificate."}},"required":["certificate","certificateChain","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/ca-certificates":{"get":{"description":"Get list of past and current CA certificates for a CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to get the CA certificates for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"certificate":{"type":"string","description":"The certificate body of the CA certificate."},"certificateChain":{"type":"string","description":"The certificate chain of the CA certificate."},"serialNumber":{"type":"string","description":"The serial number of the CA certificate."},"version":{"type":"number","description":"The version of the CA certificate. The version is incremented for each CA renewal operation."}},"required":["certificate","certificateChain","serialNumber","version"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/certificate":{"get":{"description":"Get current CA cert and cert chain of a CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to get the certificate body and certificate chain from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The certificate body of the CA."},"certificateChain":{"type":"string","description":"The certificate chain of the CA."},"serialNumber":{"type":"string","description":"The serial number of the CA certificate."}},"required":["certificate","certificateChain","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/sign-intermediate":{"post":{"description":"Create intermediate CA certificate from parent CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"csr":{"type":"string","minLength":1,"description":"The pem-encoded CSR to sign with the CA."},"notBefore":{"type":"string","description":"The date and time when the intermediate CA becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the intermediate CA expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"maxPathLength":{"type":"number","minimum":-1,"default":-1,"description":"The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain."}},"required":["csr","notAfter"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to sign the intermediate certificate with."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The signed intermediate certificate."},"certificateChain":{"type":"string","description":"The certificate chain of the intermediate certificate."},"issuingCaCertificate":{"type":"string","description":"The certificate of the issuing CA."},"serialNumber":{"type":"string","description":"The serial number of the intermediate certificate."}},"required":["certificate","certificateChain","issuingCaCertificate","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/import-certificate":{"post":{"description":"Import certificate and chain to CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The certificate body to import."},"certificateChain":{"type":"string","description":"The certificate chain to import."}},"required":["certificate","certificateChain"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to import the certificate for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"caId":{"type":"string"}},"required":["message","caId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/issue-certificate":{"post":{"description":"Issue certificate from CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to add the certificate to."},"friendlyName":{"type":"string","description":"A friendly name for the certificate."},"commonName":{"type":"string","minLength":1,"description":"The common name (CN) for the certificate."},"altNames":{"type":"string","default":"","description":"A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses."},"ttl":{"type":"string","description":"The time to live for the certificate such as 1m, 1h, 1d, 1y, ..."},"notBefore":{"type":"string","description":"The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]}},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]}}},"required":["commonName","ttl"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to issue the certificate from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The issued certificate."},"issuingCaCertificate":{"type":"string","description":"The certificate of the issuing CA."},"certificateChain":{"type":"string","description":"The certificate chain of the issued certificate."},"privateKey":{"type":"string","description":"The private key of the issued certificate."},"serialNumber":{"type":"string","description":"The serial number of the issued certificate."}},"required":["certificate","issuingCaCertificate","certificateChain","privateKey","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/sign-certificate":{"post":{"description":"Sign certificate from CA","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"csr":{"type":"string","minLength":1,"description":"The pem-encoded CSR to sign with the CA to be used for certificate issuance."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to add the certificate to."},"friendlyName":{"type":"string","description":"A friendly name for the certificate."},"commonName":{"type":"string","minLength":1,"description":"The common name (CN) for the certificate."},"altNames":{"type":"string","default":"","description":"A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses."},"ttl":{"type":"string","description":"The time to live for the certificate such as 1m, 1h, 1d, 1y, ..."},"notBefore":{"type":"string","description":"The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]}},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]}}},"required":["csr","ttl"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to issue the certificate from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The issued certificate."},"issuingCaCertificate":{"type":"string","description":"The certificate of the issuing CA."},"certificateChain":{"type":"string","description":"The certificate chain of the issued certificate."},"serialNumber":{"type":"string","description":"The serial number of the issued certificate."}},"required":["certificate","issuingCaCertificate","certificateChain","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/certificate-templates":{"get":{"description":"Get list of certificate templates for the CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to issue the certificate from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificateTemplates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"ttl":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","createdAt","updatedAt"],"additionalProperties":false}}},"required":["certificateTemplates"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/ca/{caId}/crls":{"get":{"description":"Get list of CRLs of the CA","parameters":[{"schema":{"type":"string"},"in":"path","name":"caId","required":true,"description":"The ID of the CA to get the certificate revocation lists (CRLs) for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of certificate revocation list (CRL)."},"crl":{"type":"string","description":"The certificate revocation list (CRL)."}},"required":["id","crl"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificates/{serialNumber}":{"get":{"description":"Get certificate","parameters":[{"schema":{"type":"string"},"in":"path","name":"serialNumber","required":true,"description":"The serial number of the certificate to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caId":{"type":"string","format":"uuid"},"status":{"type":"string"},"serialNumber":{"type":"string"},"friendlyName":{"type":"string"},"commonName":{"type":"string"},"notBefore":{"type":"string","format":"date-time"},"notAfter":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"revocationReason":{"type":"number","nullable":true},"altNames":{"type":"string","default":"","nullable":true},"caCertId":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid","nullable":true},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true}},"required":["id","createdAt","updatedAt","caId","status","serialNumber","friendlyName","commonName","notBefore","notAfter","caCertId"],"additionalProperties":false}},"required":["certificate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete certificate","parameters":[{"schema":{"type":"string"},"in":"path","name":"serialNumber","required":true,"description":"The serial number of the certificate to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caId":{"type":"string","format":"uuid"},"status":{"type":"string"},"serialNumber":{"type":"string"},"friendlyName":{"type":"string"},"commonName":{"type":"string"},"notBefore":{"type":"string","format":"date-time"},"notAfter":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"revocationReason":{"type":"number","nullable":true},"altNames":{"type":"string","default":"","nullable":true},"caCertId":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid","nullable":true},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true}},"required":["id","createdAt","updatedAt","caId","status","serialNumber","friendlyName","commonName","notBefore","notAfter","caCertId"],"additionalProperties":false}},"required":["certificate"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificates/issue-certificate":{"post":{"description":"Issue certificate","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caId":{"type":"string","description":"The ID of the CA to issue the certificate from."},"certificateTemplateId":{"type":"string","description":"The ID of the certificate template to issue the certificate from."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to add the certificate to."},"friendlyName":{"type":"string","description":"A friendly name for the certificate."},"commonName":{"type":"string","minLength":1,"description":"The common name (CN) for the certificate."},"altNames":{"type":"string","default":"","description":"A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses."},"ttl":{"type":"string","description":"The time to live for the certificate such as 1m, 1h, 1d, 1y, ..."},"notBefore":{"type":"string","description":"The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]},"description":"The key usage extension of the certificate."},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]},"description":"The extended key usage extension of the certificate."}},"required":["commonName","ttl"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The issued certificate."},"issuingCaCertificate":{"type":"string","description":"The certificate of the issuing CA."},"certificateChain":{"type":"string","description":"The certificate chain of the issued certificate."},"privateKey":{"type":"string","description":"The private key of the issued certificate."},"serialNumber":{"type":"string","description":"The serial number of the issued certificate."}},"required":["certificate","issuingCaCertificate","certificateChain","privateKey","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificates/sign-certificate":{"post":{"description":"Sign certificate","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caId":{"type":"string","description":"The ID of the CA to issue the certificate from."},"certificateTemplateId":{"type":"string","description":"The ID of the certificate template to issue the certificate from."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to add the certificate to."},"csr":{"type":"string","minLength":1,"description":"The pem-encoded CSR to sign with the CA to be used for certificate issuance."},"friendlyName":{"type":"string","description":"A friendly name for the certificate."},"commonName":{"type":"string","minLength":1,"description":"The common name (CN) for the certificate."},"altNames":{"type":"string","default":"","description":"A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses."},"ttl":{"type":"string","description":"The time to live for the certificate such as 1m, 1h, 1d, 1y, ..."},"notBefore":{"type":"string","description":"The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format."},"notAfter":{"type":"string","description":"The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]},"description":"The key usage extension of the certificate."},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]},"description":"The extended key usage extension of the certificate."}},"required":["csr","ttl"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The issued certificate."},"issuingCaCertificate":{"type":"string","description":"The certificate of the issuing CA."},"certificateChain":{"type":"string","description":"The certificate chain of the issued certificate."},"serialNumber":{"type":"string","description":"The serial number of the issued certificate."}},"required":["certificate","issuingCaCertificate","certificateChain","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificates/{serialNumber}/revoke":{"post":{"description":"Revoke","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"revocationReason":{"type":"string","enum":["UNSPECIFIED","KEY_COMPROMISE","CA_COMPROMISE","AFFILIATION_CHANGED","SUPERSEDED","CESSATION_OF_OPERATION","CERTIFICATE_HOLD","PRIVILEGE_WITHDRAWN","A_A_COMPROMISE"],"description":"The reason for revoking the certificate."}},"required":["revocationReason"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"serialNumber","required":true,"description":"The serial number of the certificate to revoke. The revoked certificate will be added to the certificate revocation list (CRL) of the CA."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"serialNumber":{"type":"string","description":"The serial number of the revoked certificate."},"revokedAt":{"type":"string","format":"date-time","description":"The date and time when the certificate was revoked."}},"required":["message","serialNumber","revokedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificates/{serialNumber}/certificate":{"get":{"description":"Get certificate body of certificate","parameters":[{"schema":{"type":"string"},"in":"path","name":"serialNumber","required":true,"description":"The serial number of the certificate to get the certificate body and certificate chain for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificate":{"type":"string","description":"The certificate body of the certificate."},"certificateChain":{"type":"string","description":"The certificate chain of the certificate."},"serialNumber":{"type":"string","description":"The serial number of the certificate."}},"required":["certificate","certificateChain","serialNumber"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificate-templates/{certificateTemplateId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true,"description":"The ID of the certificate template to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"ttl":{"type":"string"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"projectId":{"type":"string"},"caName":{"type":"string"}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","projectId","caName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caId":{"type":"string","description":"The ID of the certificate authority to update the association with the template."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to update the binding to the template."},"name":{"type":"string","minLength":1,"description":"The updated name of the template."},"commonName":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9 *@\\-\\\\.\\\\]+$","description":"The updated regular expression string for validating common names."},"subjectAlternativeName":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9 *@\\-\\\\.\\\\]+$","description":"The updated regular expression string for validating subject alternative names."},"ttl":{"type":"string","description":"The updated max TTL for the template."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]},"description":"The updated key usage constraint or default value for when template is used during certificate issuance."},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]},"description":"The updated extended key usage constraint or default value for when template is used during certificate issuance."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true,"description":"The ID of the certificate template to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"ttl":{"type":"string"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"projectId":{"type":"string"},"caName":{"type":"string"}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","projectId","caName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true,"description":"The ID of the certificate template to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"ttl":{"type":"string"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"projectId":{"type":"string"},"caName":{"type":"string"}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","projectId","caName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificate-templates":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caId":{"type":"string","description":"The ID of the certificate authority to associate the template with."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to bind to the template."},"name":{"type":"string","minLength":1,"description":"The name of the template."},"commonName":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9 *@\\-\\\\.\\\\]+$","description":"The regular expression string to use for validating common names."},"subjectAlternativeName":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-zA-Z0-9 *@\\-\\\\.\\\\]+$","description":"The regular expression string to use for validating subject alternative names."},"ttl":{"type":"string","description":"The max TTL for the template."},"keyUsages":{"type":"array","items":{"type":"string","enum":["digitalSignature","keyEncipherment","nonRepudiation","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"]},"default":["digitalSignature","keyEncipherment"],"description":"The key usage constraint or default value for when template is used during certificate issuance."},"extendedKeyUsages":{"type":"array","items":{"type":"string","enum":["clientAuth","serverAuth","codeSigning","emailProtection","timeStamping","ocspSigning"]},"default":[],"description":"The extended key usage constraint or default value for when template is used during certificate issuance."}},"required":["caId","name","commonName","subjectAlternativeName","ttl"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"ttl":{"type":"string"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"projectId":{"type":"string"},"caName":{"type":"string"}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","projectId","caName"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/certificate-templates/{certificateTemplateId}/est-config":{"post":{"description":"Create Certificate Template EST configuration","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caChain":{"type":"string"},"passphrase":{"type":"string","minLength":1},"isEnabled":{"type":"boolean","default":true},"disableBootstrapCertValidation":{"type":"boolean","default":false}},"required":["passphrase"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid"},"isEnabled":{"type":"boolean"},"disableBootstrapCertValidation":{"type":"boolean","default":false}},"required":["id","certificateTemplateId","isEnabled"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update Certificate Template EST configuration","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"caChain":{"type":"string"},"passphrase":{"type":"string","minLength":1},"disableBootstrapCertValidation":{"type":"boolean"},"isEnabled":{"type":"boolean"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid"},"isEnabled":{"type":"boolean"},"disableBootstrapCertValidation":{"type":"boolean","default":false}},"required":["id","certificateTemplateId","isEnabled"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get Certificate Template EST configuration","parameters":[{"schema":{"type":"string"},"in":"path","name":"certificateTemplateId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid"},"isEnabled":{"type":"boolean"},"disableBootstrapCertValidation":{"type":"boolean","default":false},"caChain":{"type":"string"}},"required":["id","certificateTemplateId","isEnabled","caChain"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/alerts":{"post":{"description":"Create PKI alert","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"The ID of the project to create the alert in."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to bind to the alert."},"name":{"type":"string","description":"The name of the alert."},"alertBeforeDays":{"type":"number","description":"The number of days before the certificate expires to trigger the alert."},"emails":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":5,"description":"The email addresses to send the alert email to."}},"required":["projectId","pkiCollectionId","name","alertBeforeDays","emails"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid"},"name":{"type":"string"},"alertBeforeDays":{"type":"number"},"recipientEmails":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","pkiCollectionId","name","alertBeforeDays","recipientEmails"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/alerts/{alertId}":{"get":{"description":"Get PKI alert","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertId","required":true,"description":"The ID of the alert to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid"},"name":{"type":"string"},"alertBeforeDays":{"type":"number"},"recipientEmails":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","pkiCollectionId","name","alertBeforeDays","recipientEmails"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update PKI alert","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the alert to update to."},"alertBeforeDays":{"type":"number","description":"The number of days before the certificate expires to trigger the alert to update to."},"pkiCollectionId":{"type":"string","description":"The ID of the PKI collection to bind to the alert to update to."},"emails":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":5,"description":"The email addresses to send the alert email to update to."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"alertId","required":true,"description":"The ID of the alert to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid"},"name":{"type":"string"},"alertBeforeDays":{"type":"number"},"recipientEmails":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","pkiCollectionId","name","alertBeforeDays","recipientEmails"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete PKI alert","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertId","required":true,"description":"The ID of the alert to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid"},"name":{"type":"string"},"alertBeforeDays":{"type":"number"},"recipientEmails":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","pkiCollectionId","name","alertBeforeDays","recipientEmails"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/collections":{"post":{"description":"Create PKI collection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"The ID of the project to create the PKI collection in."},"name":{"type":"string","description":"The name of the PKI collection."},"description":{"type":"string","default":"","description":"A description for the PKI collection."}},"required":["projectId","name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","name","description"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/collections/{collectionId}":{"get":{"description":"Get PKI collection","parameters":[{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","name","description"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update PKI collection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the PKI collection to update to."},"description":{"type":"string","description":"The description for the PKI collection to update to."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","name","description"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete PKI collection","parameters":[{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","name","description"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/collections/{collectionId}/items":{"get":{"description":"Get items in PKI collection","parameters":[{"schema":{"type":"string","enum":["certificate","ca"]},"in":"query","name":"type","required":false,"description":"The type of the PKI collection item to list."},{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":25},"in":"query","name":"limit","required":false,"description":"The number of items to return."},{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to list items from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"collectionItems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"pkiCollectionId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["certificate","ca"]},"itemId":{"type":"string"},"notBefore":{"type":"string","format":"date-time"},"notAfter":{"type":"string","format":"date-time"},"friendlyName":{"type":"string"}},"required":["id","createdAt","updatedAt","pkiCollectionId","type","itemId","notBefore","notAfter","friendlyName"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["collectionItems","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"description":"Add item to PKI collection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["certificate","ca"],"description":"The type of the PKI collection item to add."},"itemId":{"type":"string","description":"The resource ID of the PKI collection item to add."}},"required":["type","itemId"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to add the item to."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"pkiCollectionId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["certificate","ca"],"description":"The type of the PKI collection item to add."},"itemId":{"type":"string","description":"The resource ID of the PKI collection item to add."}},"required":["id","createdAt","updatedAt","pkiCollectionId","type","itemId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/pki/collections/{collectionId}/items/{collectionItemId}":{"delete":{"description":"Remove item from PKI collection","parameters":[{"schema":{"type":"string"},"in":"path","name":"collectionId","required":true,"description":"The ID of the PKI collection to delete the item from."},{"schema":{"type":"string"},"in":"path","name":"collectionItemId","required":true,"description":"The ID of the PKI collection item to delete."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"pkiCollectionId":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["certificate","ca"],"description":"The type of the deleted PKI collection item."},"itemId":{"type":"string","description":"The resource ID of the deleted PKI collection item."}},"required":["id","createdAt","updatedAt","pkiCollectionId","type","itemId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/bot/{projectId}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bot":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"isActive":{"type":"boolean","default":false},"publicKey":{"type":"string"},"encryptedProjectKey":{"type":"string","nullable":true},"encryptedProjectKeyNonce":{"type":"string","nullable":true},"projectId":{"type":"string"},"senderId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","publicKey","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["bot"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/bot/{botId}/active":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isActive":{"type":"boolean"},"botKey":{"type":"object","properties":{"nonce":{"type":"string"},"encryptedKey":{"type":"string"}},"additionalProperties":false}},"required":["isActive"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"botId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bot":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"isActive":{"type":"boolean","default":false},"publicKey":{"type":"string"},"encryptedProjectKey":{"type":"string","nullable":true},"encryptedProjectKeyNonce":{"type":"string","nullable":true},"projectId":{"type":"string"},"senderId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","publicKey","projectId","createdAt","updatedAt"],"additionalProperties":false}},"required":["bot"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration":{"post":{"description":"Create an integration to sync secrets.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuthId":{"type":"string","description":"The ID of the integration auth object to link with integration."},"app":{"type":"string","description":"The name of the external integration providers app entity that you want to sync secrets with. Used in Netlify, GitHub, Vercel integrations."},"isActive":{"type":"boolean","description":"Whether the integration should be active or disabled.","default":true},"appId":{"type":"string","description":"The ID of the external integration providers app entity that you want to sync secrets with. Used in Netlify, GitHub, Vercel integrations."},"secretPath":{"type":"string","default":"/","description":"The path of the secrets to sync secrets from."},"sourceEnvironment":{"type":"string","description":"The environment to sync secret from."},"targetEnvironment":{"type":"string","description":"The target environment of the integration provider. Used in cloudflare pages, TeamCity, Gitlab integrations."},"targetEnvironmentId":{"type":"string","description":"The target environment ID of the integration provider. Used in cloudflare pages, teamcity, gitlab integrations."},"targetService":{"type":"string","description":"The service based grouping identifier of the external provider. Used in Terraform cloud, Checkly, Railway and NorthFlank."},"targetServiceId":{"type":"string","description":"The service based grouping identifier ID of the external provider. Used in Terraform cloud, Checkly, Railway and NorthFlank."},"owner":{"type":"string","description":"External integration providers service entity owner. Used in Github."},"url":{"type":"string","description":"The self-hosted URL of the platform to integrate with."},"path":{"type":"string","description":"Path to save the synced secrets. Used by Gitlab, AWS Parameter Store, Vault."},"region":{"type":"string","description":"AWS region to sync secrets to."},"scope":{"type":"string","description":"Scope of the provider. Used by Github, Qovery."},"metadata":{"type":"object","properties":{"initialSyncBehavior":{"type":"string","description":"Type of syncing behavoir with the integration."},"secretPrefix":{"type":"string","description":"The prefix for the saved secret. Used by GCP."},"secretSuffix":{"type":"string","description":"The suffix for the saved secret. Used by GCP."},"mappingBehavior":{"type":"string","enum":["one-to-one","many-to-one"],"description":"The mapping behavior of the integration."},"shouldAutoRedeploy":{"type":"boolean","description":"Used by Render to trigger auto deploy."},"secretGCPLabel":{"type":"object","properties":{"labelName":{"type":"string"},"labelValue":{"type":"string"}},"required":["labelName","labelValue"],"additionalProperties":false,"description":"The label for GCP secrets."},"secretAWSTag":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false},"description":"The tags for AWS secrets."},"githubVisibility":{"anyOf":[{"type":"string","enum":["selected"]},{"type":"string","enum":["private"]},{"type":"string","enum":["all"]}],"description":"Define where the secrets from the Github Integration should be visible. Option 'selected' lets you directly define which repositories to sync secrets to."},"githubVisibilityRepoIds":{"type":"array","items":{"type":"string"},"description":"The repository IDs to sync secrets to when using the Github Integration. Only applicable when using Organization scope, and visibility is set to 'selected'."},"kmsKeyId":{"type":"string","description":"The ID of the encryption key from AWS KMS."},"shouldDisableDelete":{"type":"boolean","description":"The flag to disable deletion of secrets in AWS Parameter Store."},"shouldEnableDelete":{"type":"boolean","description":"The flag to enable deletion of secrets."},"shouldMaskSecrets":{"type":"boolean","description":"Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Masked'."},"shouldProtectSecrets":{"type":"boolean","description":"Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Protected'."},"octopusDeployScopeValues":{"type":"object","properties":{"Environment":{"type":"array","items":{"type":"string"}},"Action":{"type":"array","items":{"type":"string"}},"Channel":{"type":"array","items":{"type":"string"}},"Machine":{"type":"array","items":{"type":"string"}},"ProcessOwner":{"type":"array","items":{"type":"string"}},"Role":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Specifies the scope values to set on synced secrets to Octopus Deploy."}},"additionalProperties":false,"default":{}}},"required":["integrationAuthId","sourceEnvironment"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true},"environment":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"}},"required":["slug","name","id"],"additionalProperties":false}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt","environment"],"additionalProperties":false}},"required":["integration"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration/{integrationId}":{"patch":{"description":"Update an integration by integration id","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"app":{"type":"string","description":"The name of the external integration providers app entity that you want to sync secrets with. Used in Netlify, GitHub, Vercel integrations."},"appId":{"type":"string","description":"The ID of the external integration providers app entity that you want to sync secrets with. Used in Netlify, GitHub, Vercel integrations."},"isActive":{"type":"boolean","description":"Whether the integration should be active or disabled."},"secretPath":{"type":"string","default":"/","description":"The path of the secrets to sync secrets from."},"targetEnvironment":{"type":"string","description":"The target environment of the integration provider. Used in cloudflare pages, TeamCity, Gitlab integrations."},"owner":{"type":"string","description":"External integration providers service entity owner. Used in Github."},"environment":{"type":"string","description":"The environment to sync secrets from."},"metadata":{"type":"object","properties":{"initialSyncBehavior":{"type":"string","description":"Type of syncing behavoir with the integration."},"secretPrefix":{"type":"string","description":"The prefix for the saved secret. Used by GCP."},"secretSuffix":{"type":"string","description":"The suffix for the saved secret. Used by GCP."},"mappingBehavior":{"type":"string","enum":["one-to-one","many-to-one"],"description":"The mapping behavior of the integration."},"shouldAutoRedeploy":{"type":"boolean","description":"Used by Render to trigger auto deploy."},"secretGCPLabel":{"type":"object","properties":{"labelName":{"type":"string"},"labelValue":{"type":"string"}},"required":["labelName","labelValue"],"additionalProperties":false,"description":"The label for GCP secrets."},"secretAWSTag":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}},"required":["key","value"],"additionalProperties":false},"description":"The tags for AWS secrets."},"githubVisibility":{"anyOf":[{"type":"string","enum":["selected"]},{"type":"string","enum":["private"]},{"type":"string","enum":["all"]}],"description":"Define where the secrets from the Github Integration should be visible. Option 'selected' lets you directly define which repositories to sync secrets to."},"githubVisibilityRepoIds":{"type":"array","items":{"type":"string"},"description":"The repository IDs to sync secrets to when using the Github Integration. Only applicable when using Organization scope, and visibility is set to 'selected'."},"kmsKeyId":{"type":"string","description":"The ID of the encryption key from AWS KMS."},"shouldDisableDelete":{"type":"boolean","description":"The flag to disable deletion of secrets in AWS Parameter Store."},"shouldEnableDelete":{"type":"boolean","description":"The flag to enable deletion of secrets."},"shouldMaskSecrets":{"type":"boolean","description":"Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Masked'."},"shouldProtectSecrets":{"type":"boolean","description":"Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Protected'."},"octopusDeployScopeValues":{"type":"object","properties":{"Environment":{"type":"array","items":{"type":"string"}},"Action":{"type":"array","items":{"type":"string"}},"Channel":{"type":"array","items":{"type":"string"}},"Machine":{"type":"array","items":{"type":"string"}},"ProcessOwner":{"type":"array","items":{"type":"string"}},"Role":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Specifies the scope values to set on synced secrets to Octopus Deploy."}},"additionalProperties":false}},"required":["isActive"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true,"description":"The ID of the integration object."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true},"environment":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"}},"required":["slug","name","id"],"additionalProperties":false}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt","environment"],"additionalProperties":false}},"required":["integration"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get an integration by integration id","parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true,"description":"The ID of the integration object."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true},"environment":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"id":{"type":"string"}},"required":["slug","name","id"],"additionalProperties":false}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt","environment"],"additionalProperties":false}},"required":["integration"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Remove an integration using the integration object ID","parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"shouldDeleteIntegrationSecrets","required":false},{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true,"description":"The ID of the integration object."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt"],"additionalProperties":false}},"required":["integration"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration/{integrationId}/sync":{"post":{"description":"Manually trigger sync of an integration by integration id","parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationId","required":true,"description":"The ID of the integration object to manually sync."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"isActive":{"type":"boolean"},"url":{"type":"string","nullable":true},"app":{"type":"string","nullable":true},"appId":{"type":"string","nullable":true},"targetEnvironment":{"type":"string","nullable":true},"targetEnvironmentId":{"type":"string","nullable":true},"targetService":{"type":"string","nullable":true},"targetServiceId":{"type":"string","nullable":true},"owner":{"type":"string","nullable":true},"path":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"scope":{"type":"string","nullable":true},"integration":{"type":"string"},"metadata":{"nullable":true},"integrationAuthId":{"type":"string","format":"uuid"},"envId":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"isSynced":{"type":"boolean","nullable":true},"syncMessage":{"type":"string","nullable":true},"lastSyncJobId":{"type":"string","nullable":true}},"required":["id","isActive","integration","integrationAuthId","envId","createdAt","updatedAt"],"additionalProperties":false}},"required":["integration"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/integration-options":{"get":{"description":"List of integrations available.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationOptions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"clientSlug":{"type":"string"},"image":{"type":"string"},"isAvailable":{"type":"boolean"},"type":{"type":"string"},"clientId":{"type":"string"},"docsLink":{"type":"string"}},"required":["name","slug","image","type"],"additionalProperties":false}}},"required":["integrationOptions"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}":{"get":{"description":"Get details of an integration authorization by auth object id.","parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true,"description":"The ID of integration authentication object."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Remove an integration auth object by object id.","parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true,"description":"The ID of integration authentication object to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth":{"delete":{"description":"Remove all integration's auth object from the project.","parameters":[{"schema":{"type":"string"},"in":"query","name":"integration","required":true,"description":"The slug of the integration to be unauthorized."},{"schema":{"type":"string"},"in":"query","name":"projectId","required":true,"description":"The ID of the project to delete the integration auth from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/oauth-token":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"code":{"type":"string"},"integration":{"type":"string"},"installationId":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["workspaceId","code","integration"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/access-token":{"post":{"description":"Create the integration authentication object required for syncing secrets.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to create the integration auth for."},"integration":{"type":"string","description":"The slug of integration for the auth object."},"accessId":{"type":"string","description":"The unique authorized access ID of the external integration provider."},"accessToken":{"type":"string","description":"The unique authorized access token of the external integration provider."},"awsAssumeIamRoleArn":{"type":"string","format":"uri","description":"The AWS IAM Role to be assumed by Infisical."},"url":{"type":"string","format":"uri"},"namespace":{"type":"string"},"refreshToken":{"type":"string","description":"The refresh token for integration authorization."}},"required":["workspaceId","integration"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/apps":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"teamId","required":false},{"schema":{"type":"string"},"in":"query","name":"azureDevOpsOrgName","required":false},{"schema":{"type":"string"},"in":"query","name":"workspaceSlug","required":false},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"apps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"appId":{"type":"string"},"owner":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":["apps"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/teams":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"teams":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}}},"required":["teams"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/vercel/branches":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"appId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"branches":{"type":"array","items":{"type":"string"}}},"required":["branches"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/checkly/groups":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"accountId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"groupId":{"type":"number"}},"required":["name","groupId"],"additionalProperties":false}}},"required":["groups"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/github/orgs":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"orgId":{"type":"string"}},"required":["name","orgId"],"additionalProperties":false}}},"required":["orgs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/duplicate":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string"}},"required":["projectId"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"integrationAuth":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"integration":{"type":"string"},"teamId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true},"namespace":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","integration","createdAt","updatedAt"],"additionalProperties":false}},"required":["integrationAuth"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/github/envs":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"repoOwner","required":true},{"schema":{"type":"string"},"in":"query","name":"repoName","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"envs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"envId":{"type":"string"}},"required":["name","envId"],"additionalProperties":false}}},"required":["envs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/orgs":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"orgId":{"type":"string"}},"required":["name","orgId"],"additionalProperties":false}}},"required":["orgs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/aws-secrets-manager/kms-keys":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"region","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"kmsKeys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"alias":{"type":"string"}},"required":["id","alias"],"additionalProperties":false}}},"required":["kmsKeys"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/projects":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"orgId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"projectId":{"type":"string"}},"required":["name","projectId"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/environments":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"environmentId":{"type":"string"}},"required":["name","environmentId"],"additionalProperties":false}}},"required":["environments"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/apps":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"environmentId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"apps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"appId":{"type":"string"}},"required":["name","appId"],"additionalProperties":false}}},"required":["apps"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/containers":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"environmentId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"containers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"appId":{"type":"string"}},"required":["name","appId"],"additionalProperties":false}}},"required":["containers"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/qovery/jobs":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"environmentId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"appId":{"type":"string"}},"required":["name","appId"],"additionalProperties":false}}},"required":["jobs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/heroku/pipelines":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pipelines":{"type":"array","items":{"type":"object","properties":{"app":{"type":"object","properties":{"appId":{"type":"string"}},"required":["appId"],"additionalProperties":false},"stage":{"type":"string"},"pipeline":{"type":"object","properties":{"name":{"type":"string"},"pipelineId":{"type":"string"}},"required":["name","pipelineId"],"additionalProperties":false}},"required":["app","stage","pipeline"],"additionalProperties":false}}},"required":["pipelines"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/railway/environments":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"appId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"environmentId":{"type":"string"}},"required":["name","environmentId"],"additionalProperties":false}}},"required":["environments"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/railway/services":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"appId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"serviceId":{"type":"string"}},"required":["name","serviceId"],"additionalProperties":false}}},"required":["services"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/bitbucket/workspaces":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"uuid":{"type":"string"},"type":{"type":"string"},"is_private":{"type":"boolean"},"created_on":{"type":"string"},"updated_on":{"type":"string"}},"required":["name","slug","uuid","type","is_private","created_on"],"additionalProperties":false}}},"required":["workspaces"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/bitbucket/environments":{"get":{"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"workspaceSlug","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"repoSlug","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"uuid":{"type":"string"},"type":{"type":"string"}},"required":["name","slug","uuid","type"],"additionalProperties":false}}},"required":["environments"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/northflank/secret-groups":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"appId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secretGroups":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"groupId":{"type":"string"}},"required":["name","groupId"],"additionalProperties":false}}},"required":["secretGroups"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/teamcity/build-configs":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"appId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"buildConfigs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"buildConfigId":{"type":"string"}},"required":["name","buildConfigId"],"additionalProperties":false}}},"required":["buildConfigs"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/octopus-deploy/scope-values":{"get":{"parameters":[{"schema":{"type":"string","enum":["project"]},"in":"query","name":"scope","required":true},{"schema":{"type":"string"},"in":"query","name":"spaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"resourceId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"Environments":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"Machines":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"Actions":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"Roles":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"Channels":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"TenantTags":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"}},"required":["Name","Id"],"additionalProperties":false}},"Processes":{"type":"array","items":{"type":"object","properties":{"ProcessType":{"type":"string"},"Name":{"type":"string"},"Id":{"type":"string"}},"required":["ProcessType","Name","Id"],"additionalProperties":false}}},"required":["Environments","Machines","Actions","Roles","Channels","TenantTags","Processes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/integration-auth/{integrationAuthId}/octopus-deploy/spaces":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"integrationAuthId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"spaces":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string"},"Id":{"type":"string"},"IsDefault":{"type":"boolean"}},"required":["Name","Id","IsDefault"],"additionalProperties":false}}},"required":["spaces"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/webhooks":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["general","slack"],"default":"general"},"workspaceId":{"type":"string"},"environment":{"type":"string"},"webhookUrl":{"type":"string","format":"uri"},"webhookSecretKey":{"type":"string"},"secretPath":{"type":"string","default":"/"}},"required":["workspaceId","environment","webhookUrl"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"lastStatus":{"type":"string","nullable":true},"lastRunErrorMessage":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"type":{"type":"string","default":"general","nullable":true},"projectId":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","envId","projectId","environment"],"additionalProperties":false}},"required":["message","webhook"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":false},{"schema":{"type":"string"},"in":"query","name":"secretPath","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"webhooks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"lastStatus":{"type":"string","nullable":true},"lastRunErrorMessage":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"type":{"type":"string","default":"general","nullable":true},"projectId":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false},"url":{"type":"string"}},"required":["id","createdAt","updatedAt","envId","projectId","environment","url"],"additionalProperties":false}}},"required":["message","webhooks"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/webhooks/{webhookId}":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isDisabled":{"type":"boolean","default":false}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"lastStatus":{"type":"string","nullable":true},"lastRunErrorMessage":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"type":{"type":"string","default":"general","nullable":true},"projectId":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","envId","projectId","environment"],"additionalProperties":false}},"required":["message","webhook"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/api/v1/webhooks/{webhookId}/test":{"post":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"webhookId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"webhook":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"secretPath":{"type":"string","default":"/"},"lastStatus":{"type":"string","nullable":true},"lastRunErrorMessage":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"type":{"type":"string","default":"general","nullable":true},"projectId":{"type":"string"},"environment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"required":["id","createdAt","updatedAt","envId","projectId","environment"],"additionalProperties":false}},"required":["message","webhook"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/identities":{"post":{"description":"Create identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the identity to create."},"organizationId":{"type":"string","description":"The organization ID to which the identity belongs."},"role":{"type":"string","minLength":1,"default":"no-access","description":"The role of the identity. Possible values are 'no-access', 'member', and 'admin'."},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["key","value"],"additionalProperties":false}}},"required":["name","organizationId"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identity":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"authMethod":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["id","name","createdAt","updatedAt","authMethods"],"additionalProperties":false}},"required":["identity"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List identities","parameters":[{"schema":{"type":"string"},"in":"query","name":"orgId","required":true,"description":"The ID of the organization to list identities."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"customRole":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"permissions":{},"description":{"type":"string","nullable":true}},"required":["id","name","slug"],"additionalProperties":false},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false}},"required":["id","role","orgId","createdAt","updatedAt","identityId","identity"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["identities","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/identities/{identityId}":{"patch":{"description":"Update identity","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The new name of the identity."},"role":{"type":"string","minLength":1,"description":"The new role of the identity."},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["key","value"],"additionalProperties":false}}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identity":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"authMethod":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["identity"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete identity","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identity":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"authMethod":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["identity"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Get an identity by id","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to get details."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identity":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["key","id","value"],"additionalProperties":false}},"customRole":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"permissions":{},"description":{"type":"string","nullable":true}},"required":["id","name","slug"],"additionalProperties":false},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false}},"required":["id","role","orgId","createdAt","updatedAt","identityId","identity"],"additionalProperties":false}},"required":["identity"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/identities/{identityId}/identity-memberships":{"get":{"description":"List project memberships that identity with id is part of","parameters":[{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to get details."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"identityId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false},"project":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}},"required":["id","identityId","createdAt","updatedAt","roles","identity","project"],"additionalProperties":false}}},"required":["identityMemberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-sharing":{"get":{"parameters":[{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false},{"schema":{"type":"number","minimum":1,"maximum":100,"default":25},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"encryptedValue":{"type":"string","nullable":true},"iv":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true},"hashedHex":{"type":"string","nullable":true},"expiresAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"expiresAfterViews":{"type":"number","nullable":true},"accessType":{"type":"string","default":"anyone"},"name":{"type":"string","nullable":true},"lastViewedAt":{"type":"string","format":"date-time","nullable":true},"password":{"type":"string","nullable":true},"encryptedSecret":{"nullable":true},"identifier":{"type":"string","nullable":true}},"required":["id","expiresAt","createdAt","updatedAt"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["secrets","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":50},"password":{"type":"string"},"secretValue":{"type":"string"},"expiresAt":{"type":"string"},"expiresAfterViews":{"type":"number","minimum":1},"accessType":{"type":"string","enum":["anyone","organization"],"default":"organization"}},"required":["secretValue","expiresAt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-sharing/public/{id}":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"hashedHex":{"type":"string","minLength":1},"password":{"type":"string"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isPasswordProtected":{"type":"boolean"},"secret":{"type":"object","properties":{"encryptedValue":{"type":"string","nullable":true},"iv":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true},"expiresAt":{"type":"string","format":"date-time"},"expiresAfterViews":{"type":"number","nullable":true},"accessType":{"type":"string","default":"anyone"},"orgName":{"type":"string"},"secretValue":{"type":"string"}},"required":["expiresAt"],"additionalProperties":false}},"required":["isPasswordProtected"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-sharing/public":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"secretValue":{"type":"string","maxLength":10000},"password":{"type":"string"},"expiresAt":{"type":"string"},"expiresAfterViews":{"type":"number","minimum":1}},"required":["secretValue","expiresAt"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/secret-sharing/{sharedSecretId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"sharedSecretId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"encryptedValue":{"type":"string","nullable":true},"iv":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true},"hashedHex":{"type":"string","nullable":true},"expiresAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"expiresAfterViews":{"type":"number","nullable":true},"accessType":{"type":"string","default":"anyone"},"name":{"type":"string","nullable":true},"lastViewedAt":{"type":"string","format":"date-time","nullable":true},"password":{"type":"string","nullable":true},"encryptedSecret":{"nullable":true},"identifier":{"type":"string","nullable":true}},"required":["id","expiresAt","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/user-engagement/me/wish":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1}},"required":["text"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dashboard/secrets-overview":{"get":{"description":"List project secrets overview","parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true,"description":"The ID of the project to list secrets/folders from."},{"schema":{"type":"string"},"in":"query","name":"environments","required":true,"description":"The slugs of the environments to list secrets/folders from (comma separated, ie 'environments=dev,staging,prod')."},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false,"description":"The secret path to list secrets/folders from."},{"schema":{"type":"number","minimum":0,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th secret/folder."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":100},"in":"query","name":"limit","required":false,"description":"The number of secrets/folders to return."},{"schema":{"type":"string","enum":["name"],"default":"name"},"in":"query","name":"orderBy","required":false,"description":"The column to order secrets/folders by."},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"orderDirection","required":false,"description":"The direction to order secrets/folders in."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string to filter secret keys and folder names by."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeSecrets","required":false,"description":"Whether to include project secrets in the response."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeFolders","required":false,"description":"Whether to include project folders in the response."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeDynamicSecrets","required":false,"description":"Whether to include dynamic project secrets in the response."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"environment":{"type":"string"}},"required":["id","name","createdAt","updatedAt","envId","environment"],"additionalProperties":false}},"dynamicSecrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"string"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt","environment"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"totalFolderCount":{"type":"number"},"totalDynamicSecretCount":{"type":"number"},"totalSecretCount":{"type":"number"},"totalCount":{"type":"number"}},"required":["totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dashboard/secrets-details":{"get":{"description":"List project secrets details","parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true,"description":"The ID of the project to list secrets/folders from."},{"schema":{"type":"string"},"in":"query","name":"environment","required":true,"description":"The slug of the environment to list secrets/folders from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false,"description":"The secret path to list secrets/folders from."},{"schema":{"type":"number","minimum":0,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th secret/folder."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":100},"in":"query","name":"limit","required":false,"description":"The number of secrets/folders to return."},{"schema":{"type":"string","enum":["name"],"default":"name"},"in":"query","name":"orderBy","required":false,"description":"The column to order secrets/folders by."},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"orderDirection","required":false,"description":"The direction to order secrets/folders in."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string to filter secret keys and folder names by."},{"schema":{"type":"string"},"in":"query","name":"tags","required":false,"description":"The tags to filter secrets by (comma separated, ie 'tags=billing,engineering')."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeSecrets","required":false,"description":"Whether to include project secrets in the response."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeFolders","required":false,"description":"Whether to include project folders in the response."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeDynamicSecrets","required":false,"description":"Whether to include dynamic project secrets in the response."},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string"}],"default":true},"in":"query","name":"includeImports","required":false,"description":"Whether to include project secret imports in the response."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1,"nullable":true},"importPath":{"type":"string"},"position":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"folderId":{"type":"string","format":"uuid"},"isReplication":{"type":"boolean","default":false,"nullable":true},"isReplicationSuccess":{"type":"boolean","nullable":true},"replicationStatus":{"type":"string","nullable":true},"lastReplicated":{"type":"string","format":"date-time","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"importEnv":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}},"required":["id","importPath","position","createdAt","updatedAt","folderId","importEnv"],"additionalProperties":false}},"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true}},"required":["id","name","createdAt","updatedAt","envId"],"additionalProperties":false}},"dynamicSecrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"totalImportCount":{"type":"number"},"totalFolderCount":{"type":"number"},"totalDynamicSecretCount":{"type":"number"},"totalSecretCount":{"type":"number"},"totalCount":{"type":"number"}},"required":["totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dashboard/secrets-deep-search":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true},{"schema":{"type":"string"},"in":"query","name":"environments","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false},{"schema":{"type":"string"},"in":"query","name":"search","required":false},{"schema":{"type":"string"},"in":"query","name":"tags","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number","default":1,"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"envId":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid","nullable":true},"isReserved":{"type":"boolean","default":false,"nullable":true},"path":{"type":"string"}},"required":["id","name","createdAt","updatedAt","envId","path"],"additionalProperties":false}},"dynamicSecrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"defaultTTL":{"type":"string"},"maxTTL":{"type":"string","nullable":true},"folderId":{"type":"string","format":"uuid"},"status":{"type":"string","nullable":true},"statusDetails":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"path":{"type":"string"},"environment":{"type":"string"}},"required":["id","name","version","type","defaultTTL","folderId","createdAt","updatedAt","path","environment"],"additionalProperties":false}},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/dashboard/secrets-by-keys":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false},{"schema":{"type":"string"},"in":"query","name":"keys","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/kms/keys":{"post":{"description":"Create KMS key","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"The ID of the project to create the key in."},"name":{"type":"string","minLength":1,"maxLength":32,"description":"The name of the key to be created. Must be slug-friendly."},"description":{"type":"string","maxLength":500,"description":"An optional description of the key."},"encryptionAlgorithm":{"type":"string","enum":["aes-256-gcm","aes-128-gcm"],"default":"aes-256-gcm","description":"The algorithm to use when performing cryptographic operations with the key."}},"required":["projectId","name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true}},"required":["id","orgId","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["key"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List KMS keys","parameters":[{"schema":{"type":"string"},"in":"query","name":"projectId","required":true,"description":"The ID of the project to list keys from."},{"schema":{"type":"number","minimum":0,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th key."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":100},"in":"query","name":"limit","required":false,"description":"The number of keys to return."},{"schema":{"type":"string","enum":["name"],"default":"name"},"in":"query","name":"orderBy","required":false,"description":"The column to order keys by."},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"orderDirection","required":false,"description":"The direction to order keys in."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string to filter key names by."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true},"version":{"type":"number","default":1},"encryptionAlgorithm":{"type":"string"}},"required":["id","orgId","name","createdAt","updatedAt","encryptionAlgorithm"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["keys","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/kms/keys/{keyId}":{"patch":{"description":"Update KMS key","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":32,"description":"The updated name of this key. Must be slug-friendly."},"isDisabled":{"type":"boolean","description":"The flag to enable or disable this key."},"description":{"type":"string","maxLength":500,"description":"The updated description of this key."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"keyId","required":true,"description":"The ID of the key to be updated."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true}},"required":["id","orgId","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["key"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete KMS key","parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"keyId","required":true,"description":"The ID of the key to be deleted."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"description":{"type":"string","nullable":true},"isDisabled":{"type":"boolean","default":false,"nullable":true},"isReserved":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string","nullable":true},"slug":{"type":"string","nullable":true}},"required":["id","orgId","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["key"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/kms/keys/{keyId}/encrypt":{"post":{"description":"Encrypt data with KMS key","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"plaintext":{"type":"string","description":"The plaintext to be encrypted (base64 encoded)."}},"required":["plaintext"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"keyId","required":true,"description":"The ID of the key to encrypt the data with."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ciphertext":{"type":"string"}},"required":["ciphertext"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/kms/keys/{keyId}/decrypt":{"post":{"description":"Decrypt data with KMS key","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ciphertext":{"type":"string","description":"The ciphertext to be decrypted (base64 encoded)."}},"required":["ciphertext"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string","format":"uuid"},"in":"path","name":"keyId","required":true,"description":"The ID of the key to decrypt the data with."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plaintext":{"type":"string"}},"required":["plaintext"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v1/external-group-mappings":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"groupName":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","groupName","role","orgId","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mappings":{"type":"array","items":{"type":"object","properties":{"groupName":{"type":"string","minLength":1},"roleSlug":{"type":"string","minLength":1}},"required":["groupName","roleSlug"],"additionalProperties":false}}},"required":["mappings"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"groupName":{"type":"string"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","groupName","role","orgId","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/roles":{"post":{"description":"Create a project role","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"description":"The slug of the role."},"name":{"type":"string","minLength":1,"description":"The name of the role."},"description":{"type":"string","description":"The description for the role."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permissions assigned to the role."}},"required":["slug","name","permissions"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"Id of the project to create the role for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List project role","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"}},"required":["id","name","slug","createdAt","updatedAt","projectId"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/roles/{roleId}":{"patch":{"description":"Update a project role","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"The slug of the role."},"name":{"type":"string","description":"The name of the role."},"description":{"type":"string","description":"The description for the role."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permissions assigned to the role."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to update the role for."},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true,"description":"The ID of the role to update"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete a project role","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to delete the role for."},{"schema":{"type":"string"},"in":"path","name":"roleId","required":true,"description":"The ID of the role to update"}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"version":{"type":"number","default":1}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/roles/slug/{roleSlug}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project."},{"schema":{"type":"string"},"in":"path","name":"roleSlug","required":true,"description":"The slug of the role to get details."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"}},"required":["id","name","slug","permissions","createdAt","updatedAt","projectId"],"additionalProperties":false}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/identity-project-additional-privilege":{"post":{"description":"Add an additional privilege for identity.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"identityId":{"type":"string","minLength":1,"description":"The ID of the identity to create the privilege for."},"projectId":{"type":"string","minLength":1,"description":"The ID of the project of the identity in."},"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The slug of the privilege to create."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permission for the privilege."},"type":{"anyOf":[{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[false]}},"required":["isTemporary"],"additionalProperties":false},{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[true]},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"The TTL for the temporary access given. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"The start time in ISO format when the temporary access should begin."}},"required":["isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]}},"required":["identityId","projectId","permissions","type"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"List privileges for the specified identity by project.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"identityId","required":true,"description":"The ID of the identity to list."},{"schema":{"type":"string","minLength":1},"in":"query","name":"projectId","required":true,"description":"The ID of the project that the identity is in."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privileges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["privileges"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/identity-project-additional-privilege/{id}":{"patch":{"description":"Update a specific identity privilege.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":60,"description":"The slug of the privilege to update."},"permissions":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"subject":{"type":"string","enum":["secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretName":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]},"secretTags":{"type":"object","properties":{"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-folders"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-imports"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["dynamic-secrets"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},{"type":"array","items":{"type":"string","enum":["read-root-credential","create-root-credential","edit-root-credential","delete-root-credential","lease"]},"minItems":1}],"description":"Describe what action an entity can take."},"conditions":{"type":"object","properties":{"environment":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false}]},"secretPath":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$eq":{"type":"string","minLength":1},"$ne":{"type":"string","minLength":1},"$in":{"type":"array","items":{"type":"string","minLength":1}},"$glob":{"type":"string","minLength":1}},"additionalProperties":false}]}},"additionalProperties":false,"description":"When specified, only matching conditions will be allowed to access given resource."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-approval"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rotation"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["secret-rollback"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create"]},{"type":"array","items":{"type":"string","enum":["read","create"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["member"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["groups"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["role"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["integrations"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["webhooks"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["identity"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["service-tokens"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["settings"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["environments"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["tags"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["audit-logs"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["ip-allowlist"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-authorities"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["certificate-templates"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-alerts"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["pki-collections"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["workspace"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit","delete"]},{"type":"array","items":{"type":"string","enum":["edit","delete"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["kms"],"description":"The entity this permission pertains to."},"action":{"anyOf":[{"type":"string","enum":["edit"]},{"type":"array","items":{"type":"string","enum":["edit"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false},{"type":"object","properties":{"subject":{"type":"string","enum":["cmek"],"description":"The entity this permission pertains to."},"inverted":{"type":"boolean","description":"Whether rule allows or forbids."},"action":{"anyOf":[{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},{"type":"array","items":{"type":"string","enum":["read","create","edit","delete","encrypt","decrypt"]},"minItems":1}],"description":"Describe what action an entity can take."}},"required":["subject","action"],"additionalProperties":false}]},"description":"The permission for the privilege."},"type":{"anyOf":[{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[false],"description":"Whether the privilege is temporary."}},"required":["isTemporary"],"additionalProperties":false},{"type":"object","properties":{"isTemporary":{"type":"boolean","enum":[true],"description":"Whether the privilege is temporary."},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary access given. Types: relative."},"temporaryRange":{"type":"string","description":"The TTL for the temporary access given. Eg: 1m, 1h, 1d."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"The start time in ISO format when the temporary access should begin."}},"required":["isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]}},"required":["slug","type"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the identity privilege."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete the specified identity privilege.","parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true,"description":"The ID of the identity privilege."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Retrieve details of a specific privilege by id.","parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true,"description":"The ID of the identity privilege."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/identity-project-additional-privilege/slug/{privilegeSlug}":{"get":{"description":"Retrieve details of a specific privilege by slug.","parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"identityId","required":true,"description":"The ID of the identity to list."},{"schema":{"type":"string","minLength":1},"in":"query","name":"projectSlug","required":true,"description":"The slug of the project of the identity in."},{"schema":{"type":"string","minLength":1},"in":"path","name":"privilegeSlug","required":true,"description":"The slug of the privilege."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"privilege":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"permissions":{"type":"array","items":{"type":"object","properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"action":{"anyOf":[{"type":"string","minLength":1},{"type":"array","items":{"type":"string"}}]},"conditions":{},"inverted":{"type":"boolean"}},"required":["action"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","slug","projectMembershipId","permissions","createdAt","updatedAt"],"additionalProperties":false}},"required":["privilege"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/auth/mfa/send":{"post":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/auth/mfa/check/totp":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isVerified":{"type":"boolean"}},"required":["isVerified"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/auth/mfa/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mfaToken":{"type":"string"},"mfaMethod":{"type":"string","enum":["email","totp"],"default":"email"}},"required":["mfaToken"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"encryptionVersion":{"type":"number","default":1,"nullable":true},"protectedKey":{"type":"string","nullable":true},"protectedKeyIV":{"type":"string","nullable":true},"protectedKeyTag":{"type":"string","nullable":true},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"token":{"type":"string"}},"required":["protectedKey","protectedKeyIV","protectedKeyTag","publicKey","encryptedPrivateKey","iv","tag","token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/emails/code":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string"}},"required":["username"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/emails/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string"},"code":{"type":"string"}},"required":["username","code"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/mfa":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"isMfaEnabled":{"type":"boolean"},"selectedMfaMethod":{"type":"string","enum":["email","totp"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/name":{"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"}},"required":["firstName","lastName"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/auth-methods":{"put":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"authMethods":{"type":"array","items":{"type":"string","enum":["email","google","github","gitlab","okta-saml","azure-saml","jumpcloud-saml","google-saml","keycloak-saml","ldap","oidc"]},"minItems":1}},"required":["authMethods"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/organizations":{"get":{"description":"Return organizations that current user is part of","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}}},"required":["organizations"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/api-keys":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","createdAt","updatedAt","userId"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"expiresIn":{"type":"number"}},"required":["name","expiresIn"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string"},"apiKeyData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","createdAt","updatedAt","userId"],"additionalProperties":false}},"required":["apiKey","apiKeyData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/api-keys/{apiKeyDataId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"apiKeyDataId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"apiKeyData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","createdAt","updatedAt","userId"],"additionalProperties":false}},"required":["apiKeyData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me/sessions":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ip":{"type":"string"},"userAgent":{"type":"string","nullable":true},"refreshVersion":{"type":"number","default":1},"accessVersion":{"type":"number","default":1},"lastUsed":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","ip","lastUsed","createdAt","updatedAt","userId"],"additionalProperties":false}}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/users/me":{"get":{"description":"Retrieve the current user on the request","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true},"clientPublicKey":{"type":"string","nullable":true},"serverPrivateKey":{"type":"string","nullable":true},"encryptionVersion":{"type":"number","default":2,"nullable":true},"protectedKey":{"type":"string","nullable":true},"protectedKeyIV":{"type":"string","nullable":true},"protectedKeyTag":{"type":"string","nullable":true},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"},"userId":{"type":"string","format":"uuid"}},"required":["id","createdAt","updatedAt","username","publicKey","encryptedPrivateKey","iv","tag","salt","verifier","userId"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/service-token":{"get":{"description":"Return Infisical Token data","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{},"permissions":{"type":"array","items":{"type":"string"}},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"secretHash":{"type":"string"},"encryptedKey":{"type":"string","nullable":true},"iv":{"type":"string","nullable":true},"tag":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"projectId":{"type":"string"},"workspace":{"type":"string"},"user":{"type":"object","properties":{"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"devices":{"nullable":true},"email":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"__v":{"type":"number","default":0},"_id":{"type":"string"}},"required":["id","createdAt","updatedAt","_id"],"additionalProperties":false},"_id":{"type":"string"},"__v":{"type":"number","default":0}},"required":["id","name","permissions","secretHash","createdAt","updatedAt","createdBy","projectId","workspace","user","_id"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"workspaceId":{"type":"string"},"scopes":{"type":"array","items":{"type":"object","properties":{"environment":{"type":"string"},"secretPath":{"type":"string"}},"required":["environment","secretPath"],"additionalProperties":false},"minItems":1},"encryptedKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"expiresIn":{"type":"number","nullable":true},"permissions":{"type":"array","items":{"type":"string","enum":["read","write"]}}},"required":["name","workspaceId","scopes","encryptedKey","iv","tag","expiresIn","permissions"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serviceToken":{"type":"string"},"serviceTokenData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{},"permissions":{"type":"array","items":{"type":"string"}},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"projectId":{"type":"string"}},"required":["id","name","permissions","createdAt","updatedAt","createdBy","projectId"],"additionalProperties":false}},"required":["serviceToken","serviceTokenData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/service-token/{serviceTokenId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"serviceTokenId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serviceTokenData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{},"permissions":{"type":"array","items":{"type":"string"}},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"projectId":{"type":"string"}},"required":["id","name","permissions","createdAt","updatedAt","createdBy","projectId"],"additionalProperties":false}},"required":["serviceTokenData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{organizationId}/memberships":{"get":{"description":"Return organization user memberships","parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to get memberships from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true},"user":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string","nullable":true},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"publicKey":{"type":"string"}},"required":["username","id","publicKey"],"additionalProperties":false}},"required":["id","role","orgId","user"],"additionalProperties":false}}},"required":["users"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{organizationId}/workspaces":{"get":{"description":"Return projects in organization that user is apart of","parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to get projects from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"organization":{"type":"string"},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}},"required":["name","slug"],"additionalProperties":false}}},"required":["id","name","slug","organization","environments"],"additionalProperties":false}}},"required":["workspaces"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{organizationId}/memberships/{membershipId}":{"get":{"description":"Get organization user membership","parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to get the membership for."},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true,"description":"The ID of the membership to get."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"value":{"type":"string","minLength":1}},"required":["key","id","value"],"additionalProperties":false}},"user":{"type":"object","properties":{"username":{"type":"string"},"email":{"type":"string","nullable":true},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"publicKey":{"type":"string","nullable":true}},"required":["username","id","publicKey"],"additionalProperties":false}},"required":["id","role","orgId","user"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update organization user memberships","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","description":"The new role of the membership."},"isActive":{"type":"boolean","description":"The active status of the membership"},"metadata":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"description":"The key for user metadata tag."},"value":{"type":"string","minLength":1,"description":"The value for user metadata tag."}},"required":["key","value"],"additionalProperties":false}}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to update the membership for."},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true,"description":"The ID of the membership to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true}},"required":["id","role","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete organization user memberships","parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to delete the membership from."},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true,"description":"The ID of the membership to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"membership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string","default":"invited"},"inviteEmail":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"roleId":{"type":"string","format":"uuid","nullable":true},"projectFavorites":{"type":"array","items":{"type":"string"},"nullable":true},"isActive":{"type":"boolean","default":true}},"required":["id","role","createdAt","updatedAt","orgId"],"additionalProperties":false}},"required":["membership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{organizationId}/memberships/{membershipId}/project-memberships":{"get":{"description":"Get project memberships given organization membership","parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true,"description":"The ID of the organization to delete the membership from."},{"schema":{"type":"string"},"in":"path","name":"membershipId","required":true,"description":"The ID of the membership to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"user":{"type":"object","properties":{"email":{"type":"string","nullable":true},"username":{"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"id":{"type":"string","format":"uuid"},"publicKey":{"type":"string"}},"required":["username","id","publicKey"],"additionalProperties":false},"project":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}}},"required":["id","userId","projectId","user","project","roles"],"additionalProperties":false}}},"required":["memberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}},"required":["organization"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{organizationId}":{"delete":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"organizationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"customerId":{"type":"string","nullable":true},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"authEnforced":{"type":"boolean","default":false,"nullable":true},"scimEnabled":{"type":"boolean","default":false,"nullable":true},"kmsDefaultKeyId":{"type":"string","format":"uuid","nullable":true},"kmsEncryptedDataKey":{"nullable":true},"defaultMembershipRole":{"type":"string","default":"member"},"enforceMfa":{"type":"boolean","default":false},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","name","slug","createdAt","updatedAt"],"additionalProperties":false}},"required":["organization"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/organizations/{orgId}/identity-memberships":{"get":{"description":"Return organization identity memberships","parameters":[{"schema":{"type":"number","minimum":0,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th identity membership."},{"schema":{"type":"number","minimum":1,"maximum":20000,"default":100},"in":"query","name":"limit","required":false,"description":"The number of identity memberships to return."},{"schema":{"type":"string","enum":["name"],"default":"name"},"in":"query","name":"orderBy","required":false,"description":"The column to order identity memberships by."},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"orderDirection","required":false,"description":"The direction identity memberships will be sorted in."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string that identity membership names will be filtered by."},{"schema":{"type":"string"},"in":"path","name":"orgId","required":true,"description":"The ID of the organization to get identity memberships from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"roleId":{"type":"string","format":"uuid","nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"identityId":{"type":"string","format":"uuid"},"customRole":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"permissions":{},"description":{"type":"string","nullable":true}},"required":["id","name","slug"],"additionalProperties":false},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false}},"required":["id","role","orgId","createdAt","updatedAt","identityId","identity"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["identityMemberships","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{workspaceId}/encrypted-key":{"get":{"description":"Return encrypted project key","parameters":[{"schema":{"type":"string"},"in":"path","name":"workspaceId","required":true,"description":"The ID of the project to get the key from."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"encryptedKey":{"type":"string"},"nonce":{"type":"string"},"receiverId":{"type":"string","format":"uuid"},"senderId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sender":{"type":"object","properties":{"publicKey":{"type":"string"}},"required":["publicKey"],"additionalProperties":false}},"required":["id","encryptedKey","nonce","receiverId","projectId","createdAt","updatedAt","sender"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/upgrade":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userPrivateKey":{"type":"string"}},"required":["userPrivateKey"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/upgrade/status":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","nullable":true}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace":{"post":{"description":"Create a new project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectName":{"type":"string","description":"The name of the project to create."},"projectDescription":{"type":"string","description":"An optional description label for the project."},"slug":{"type":"string","minLength":5,"maxLength":36,"description":"An optional slug for the project."},"kmsKeyId":{"type":"string"},"template":{"type":"string","default":"default","description":"The name of the project template, if specified, to apply to this project."}},"required":["projectName"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true},"_id":{"type":"string"},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}}},"required":["id","name","slug","orgId","createdAt","updatedAt","_id","environments"],"additionalProperties":false}},"required":["project"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{slug}":{"delete":{"description":"Delete project","parameters":[{"schema":{"type":"string","minLength":5,"maxLength":36},"in":"path","name":"slug","required":true,"description":"The slug of the project to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"parameters":[{"schema":{"type":"string","minLength":5,"maxLength":36},"in":"path","name":"slug","required":true,"description":"The slug of the project to get."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true},"_id":{"type":"string"},"environments":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"id":{"type":"string"}},"required":["name","slug","id"],"additionalProperties":false}}},"required":["id","name","slug","orgId","createdAt","updatedAt","_id","environments"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The new name of the project."},"description":{"type":"string","description":"An optional description label for the project."},"autoCapitalization":{"type":"boolean","description":"Disable or enable auto-capitalization for the project."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":5,"maxLength":36},"in":"path","name":"slug","required":true,"description":"The slug of the project to update."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slug":{"type":"string"},"autoCapitalization":{"type":"boolean","default":true,"nullable":true},"orgId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"version":{"type":"number","default":1},"upgradeStatus":{"type":"string","nullable":true},"pitVersionLimit":{"type":"number","default":10},"kmsCertificateKeyId":{"type":"string","format":"uuid","nullable":true},"auditLogsRetentionDays":{"type":"number","nullable":true}},"required":["id","name","slug","orgId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{slug}/cas":{"get":{"parameters":[{"schema":{"type":"string","enum":["active","pending-certificate"]},"in":"query","name":"status","required":false,"description":"The status of the CA to filter by."},{"schema":{"type":"string"},"in":"query","name":"friendlyName","required":false,"description":"The friendly name of the CA to filter by."},{"schema":{"type":"string"},"in":"query","name":"commonName","required":false,"description":"The common name of the CA to filter by."},{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th CA."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":25},"in":"query","name":"limit","required":false,"description":"The number of CAs to return."},{"schema":{"type":"string","minLength":5,"maxLength":36},"in":"path","name":"slug","required":true,"description":"The slug of the project to list CAs for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"cas":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"parentCaId":{"type":"string","format":"uuid","nullable":true},"projectId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"friendlyName":{"type":"string"},"organization":{"type":"string"},"ou":{"type":"string"},"country":{"type":"string"},"province":{"type":"string"},"locality":{"type":"string"},"commonName":{"type":"string"},"dn":{"type":"string"},"serialNumber":{"type":"string","nullable":true},"maxPathLength":{"type":"number","nullable":true},"keyAlgorithm":{"type":"string"},"notBefore":{"type":"string","format":"date-time","nullable":true},"notAfter":{"type":"string","format":"date-time","nullable":true},"activeCaCertId":{"type":"string","format":"uuid","nullable":true},"requireTemplateForIssuance":{"type":"boolean","default":false}},"required":["id","createdAt","updatedAt","projectId","type","status","friendlyName","organization","ou","country","province","locality","commonName","dn","keyAlgorithm"],"additionalProperties":false}}},"required":["cas"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{slug}/certificates":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"friendlyName","required":false,"description":"The friendly name of the certificate to filter by."},{"schema":{"type":"string"},"in":"query","name":"commonName","required":false,"description":"The common name of the certificate to filter by."},{"schema":{"type":"number","minimum":0,"maximum":100,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th certificate."},{"schema":{"type":"number","minimum":1,"maximum":100,"default":25},"in":"query","name":"limit","required":false,"description":"The number of certificates to return."},{"schema":{"type":"string","minLength":5,"maxLength":36},"in":"path","name":"slug","required":true,"description":"The slug of the project to list certificates for."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"caId":{"type":"string","format":"uuid"},"status":{"type":"string"},"serialNumber":{"type":"string"},"friendlyName":{"type":"string"},"commonName":{"type":"string"},"notBefore":{"type":"string","format":"date-time"},"notAfter":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time","nullable":true},"revocationReason":{"type":"number","nullable":true},"altNames":{"type":"string","default":"","nullable":true},"caCertId":{"type":"string","format":"uuid"},"certificateTemplateId":{"type":"string","format":"uuid","nullable":true},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true}},"required":["id","createdAt","updatedAt","caId","status","serialNumber","friendlyName","commonName","notBefore","notAfter","caCertId"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["certificates","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/pki-alerts":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid"},"name":{"type":"string"},"alertBeforeDays":{"type":"number"},"recipientEmails":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","pkiCollectionId","name","alertBeforeDays","recipientEmails"],"additionalProperties":false}}},"required":["alerts"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/pki-collections":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"projectId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","createdAt","updatedAt","projectId","name","description"],"additionalProperties":false}}},"required":["collections"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/certificate-templates":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"certificateTemplates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"caId":{"type":"string","format":"uuid"},"name":{"type":"string"},"commonName":{"type":"string"},"subjectAlternativeName":{"type":"string"},"pkiCollectionId":{"type":"string","format":"uuid","nullable":true},"ttl":{"type":"string"},"keyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"extendedKeyUsages":{"type":"array","items":{"type":"string"},"nullable":true},"projectId":{"type":"string"},"caName":{"type":"string"}},"required":["id","caId","name","commonName","subjectAlternativeName","ttl","projectId","caName"],"additionalProperties":false}}},"required":["certificateTemplates"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/identity-memberships/{identityId}":{"post":{"description":"Create project identity membership","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","default":"no-access"},"roles":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","description":"The role slug to assign to the newly created identity project membership."},"isTemporary":{"type":"boolean","enum":[false],"default":false,"description":"The role slug to assign to the newly created identity project membership."}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","description":"The role slug to assign to the newly created identity project membership."},"isTemporary":{"type":"boolean","enum":[true],"description":"The role slug to assign to the newly created identity project membership."},"temporaryMode":{"type":"string","enum":["relative"],"description":"The role slug to assign to the newly created identity project membership."},"temporaryRange":{"type":"string","description":"The role slug to assign to the newly created identity project membership."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"The role slug to assign to the newly created identity project membership."}},"required":["role","isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]},"description":"A list of role slugs to assign to the newly created identity project membership."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"identityId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMembership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"identityId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","identityId","createdAt","updatedAt"],"additionalProperties":false}},"required":["identityMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update project identity memberships","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string","description":"The role slug to assign to the newly created identity project membership."},"isTemporary":{"type":"boolean","enum":[false],"default":false,"description":"Whether the assigned role is temporary. If isTemporary is set true, must provide temporaryMode, temporaryRange and temporaryAccessStartTime."}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string","description":"The role slug to assign to the newly created identity project membership."},"isTemporary":{"type":"boolean","enum":[true],"description":"Whether the assigned role is temporary. If isTemporary is set true, must provide temporaryMode, temporaryRange and temporaryAccessStartTime."},"temporaryMode":{"type":"string","enum":["relative"],"description":"Type of temporary expiry."},"temporaryRange":{"type":"string","description":"Expiry time for temporary access. In relative mode it could be 1s, 2m ,3h, etc."},"temporaryAccessStartTime":{"type":"string","format":"date-time","description":"Time to which the temporary access starts."}},"required":["role","isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]},"minItems":1,"description":"A list of role slugs to assign to the identity project membership."}},"required":["roles"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to update the identity membership for."},{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to update the membership for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"customRoleId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","role","projectMembershipId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete project identity memberships","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to delete the identity membership from."},{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to delete the membership from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMembership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"identityId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","identityId","createdAt","updatedAt"],"additionalProperties":false}},"required":["identityMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Return project identity membership","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to get the identity membership for."},{"schema":{"type":"string"},"in":"path","name":"identityId","required":true,"description":"The ID of the identity to get the membership for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMembership":{"type":"object","properties":{"id":{"type":"string"},"identityId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false},"project":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}},"required":["id","identityId","createdAt","updatedAt","roles","identity","project"],"additionalProperties":false}},"required":["identityMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/identity-memberships":{"get":{"description":"Return project identity memberships","parameters":[{"schema":{"type":"number","minimum":0,"default":0},"in":"query","name":"offset","required":false,"description":"The offset to start from. If you enter 10, it will start from the 10th identity membership."},{"schema":{"type":"number","minimum":1,"maximum":20000,"default":100},"in":"query","name":"limit","required":false,"description":"The number of identity memberships to return."},{"schema":{"type":"string","enum":["name"],"default":"name"},"in":"query","name":"orderBy","required":false,"description":"The column to order identity memberships by."},{"schema":{"type":"string","enum":["asc","desc"],"default":"asc"},"in":"query","name":"orderDirection","required":false,"description":"The direction identity memberships will be sorted in."},{"schema":{"type":"string"},"in":"query","name":"search","required":false,"description":"The text string that identity membership names will be filtered by."},{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to get identity memberships from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"identityMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"identityId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}},"identity":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"authMethods":{"type":"array","items":{"type":"string"}}},"required":["name","id","authMethods"],"additionalProperties":false},"project":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"],"additionalProperties":false}},"required":["id","identityId","createdAt","updatedAt","roles","identity","project"],"additionalProperties":false}},"totalCount":{"type":"number"}},"required":["identityMemberships","totalCount"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/groups/{groupId}":{"post":{"description":"Add group to project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","minLength":1,"default":"no-access","description":"The role for the group to assume in the project."},"roles":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[false],"default":false}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[true]},"temporaryMode":{"type":"string","enum":["relative"]},"temporaryRange":{"type":"string"},"temporaryAccessStartTime":{"type":"string","format":"date-time"}},"required":["role","isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]}}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to add the group to."},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true,"description":"The ID of the group to add to the project."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupMembership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"groupId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","groupId","createdAt","updatedAt"],"additionalProperties":false}},"required":["groupMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update group in project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[false],"default":false}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"role":{"type":"string"},"isTemporary":{"type":"boolean","enum":[true]},"temporaryMode":{"type":"string","enum":["relative"]},"temporaryRange":{"type":"string"},"temporaryAccessStartTime":{"type":"string","format":"date-time"}},"required":["role","isTemporary","temporaryMode","temporaryRange","temporaryAccessStartTime"],"additionalProperties":false}]},"minItems":1,"description":"A list of roles to update the group to."}},"required":["roles"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to update the group in."},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true,"description":"The ID of the group to update in the project."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"role":{"type":"string"},"projectMembershipId":{"type":"string","format":"uuid"},"customRoleId":{"type":"string","format":"uuid","nullable":true},"isTemporary":{"type":"boolean","default":false},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","role","projectMembershipId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["roles"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Remove group from project","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to delete the group from."},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true,"description":"The ID of the group to delete from the project."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupMembership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"groupId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","groupId","createdAt","updatedAt"],"additionalProperties":false}},"required":["groupMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"get":{"description":"Return project group","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"in":"path","name":"groupId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupMembership":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}},"group":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"slug":{"type":"string"}},"required":["name","id","slug"],"additionalProperties":false}},"required":["id","groupId","createdAt","updatedAt","roles","group"],"additionalProperties":false}},"required":["groupMembership"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/groups":{"get":{"description":"Return list of groups in project","parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to list groups for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"groupId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string"},"customRoleId":{"type":"string","nullable":true},"customRoleName":{"type":"string","nullable":true},"customRoleSlug":{"type":"string","nullable":true},"isTemporary":{"type":"boolean"},"temporaryMode":{"type":"string","nullable":true},"temporaryRange":{"type":"string","nullable":true},"temporaryAccessStartTime":{"type":"string","format":"date-time","nullable":true},"temporaryAccessEndTime":{"type":"string","format":"date-time","nullable":true}},"required":["id","role","isTemporary"],"additionalProperties":false}},"group":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string","format":"uuid"},"slug":{"type":"string"}},"required":["name","id","slug"],"additionalProperties":false}},"required":["id","groupId","createdAt","updatedAt","roles","group"],"additionalProperties":false}}},"required":["groupMemberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v2/workspace/{projectId}/memberships":{"post":{"description":"Invite members to project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string","format":"email"},"default":[],"description":"A list of organization member emails to invite to the project."},"usernames":{"type":"array","items":{"type":"string"},"default":[],"description":"A list of usernames to invite to the project."},"roleSlugs":{"type":"array","items":{"type":"string"},"minItems":1,"description":"A list of role slugs to assign to the newly created project membership. If nothing is provided, it will default to the Member role."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to invite the member to."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}}},"required":["memberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Remove members from project","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string","format":"email"},"default":[],"description":"A list of organization member emails to remove from the project."},"usernames":{"type":"array","items":{"type":"string"},"default":[],"description":"A list of usernames to remove from the project."}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true,"description":"The ID of the project to remove the member from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"memberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"},"projectId":{"type":"string"}},"required":["id","createdAt","updatedAt","userId","projectId"],"additionalProperties":false}}},"required":["memberships"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/signup/email/signup":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/signup/email/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"code":{"type":"string"}},"required":["email","code"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"token":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false}},"required":["message","token","user"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/signup/complete-account/signup":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"protectedKey":{"type":"string"},"protectedKeyIV":{"type":"string"},"protectedKeyTag":{"type":"string"},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"encryptedPrivateKeyIV":{"type":"string"},"encryptedPrivateKeyTag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"},"organizationName":{"type":"string","minLength":1},"providerAuthToken":{"type":"string","nullable":true},"attributionSource":{"type":"string"},"password":{"type":"string"}},"required":["email","firstName","protectedKey","protectedKeyIV","protectedKeyTag","publicKey","encryptedPrivateKey","encryptedPrivateKeyIV","encryptedPrivateKeyTag","salt","verifier","organizationName","password"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false},"token":{"type":"string"},"organizationId":{"type":"string","nullable":true}},"required":["message","user","token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/signup/complete-account/invite":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"protectedKey":{"type":"string"},"protectedKeyIV":{"type":"string"},"protectedKeyTag":{"type":"string"},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"encryptedPrivateKeyIV":{"type":"string"},"encryptedPrivateKeyTag":{"type":"string"},"salt":{"type":"string"},"verifier":{"type":"string"},"tokenMetadata":{"type":"string"}},"required":["email","password","firstName","protectedKey","protectedKeyIV","protectedKeyTag","publicKey","encryptedPrivateKey","encryptedPrivateKeyIV","encryptedPrivateKeyTag","salt","verifier"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"user":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","nullable":true},"authMethods":{"type":"array","items":{"type":"string"},"nullable":true},"superAdmin":{"type":"boolean","default":false,"nullable":true},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"isAccepted":{"type":"boolean","default":false,"nullable":true},"isMfaEnabled":{"type":"boolean","default":false,"nullable":true},"mfaMethods":{"type":"array","items":{"type":"string"},"nullable":true},"devices":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isGhost":{"type":"boolean","default":false},"username":{"type":"string"},"isEmailVerified":{"type":"boolean","default":false,"nullable":true},"consecutiveFailedMfaAttempts":{"type":"number","default":0,"nullable":true},"isLocked":{"type":"boolean","default":false,"nullable":true},"temporaryLockDateEnd":{"type":"string","format":"date-time","nullable":true},"consecutiveFailedPasswordAttempts":{"type":"number","default":0,"nullable":true},"selectedMfaMethod":{"type":"string","nullable":true}},"required":["id","createdAt","updatedAt","username"],"additionalProperties":false},"token":{"type":"string"}},"required":["message","user","token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/auth/login1":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"providerAuthToken":{"type":"string"},"clientPublicKey":{"type":"string"}},"required":["email","clientPublicKey"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serverPublicKey":{"type":"string"},"salt":{"type":"string"}},"required":["serverPublicKey","salt"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/auth/select-organization":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"userAgent":{"type":"string","enum":["cli"]}},"required":["organizationId"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"isMfaEnabled":{"type":"boolean"},"mfaMethod":{"type":"string"}},"required":["token","isMfaEnabled"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/auth/login2":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"providerAuthToken":{"type":"string"},"clientProof":{"type":"string"},"captchaToken":{"type":"string"},"password":{"type":"string"}},"required":["email","clientProof"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"encryptionVersion":{"type":"number","default":1,"nullable":true},"protectedKey":{"type":"string","nullable":true},"protectedKeyIV":{"type":"string","nullable":true},"protectedKeyTag":{"type":"string","nullable":true},"publicKey":{"type":"string"},"encryptedPrivateKey":{"type":"string"},"iv":{"type":"string"},"tag":{"type":"string"},"token":{"type":"string"}},"required":["protectedKey","protectedKeyIV","protectedKeyTag","publicKey","encryptedPrivateKey","iv","tag","token"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/users/me/api-keys":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"apiKeyData":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUsed":{"type":"string","format":"date-time","nullable":true},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"userId":{"type":"string","format":"uuid"}},"required":["id","name","createdAt","updatedAt","userId"],"additionalProperties":false}}},"required":["apiKeyData"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/tags/{secretName}":{"post":{"description":"Attach tags to a secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project where the secret is located."},"environment":{"type":"string","description":"The slug of the environment where the secret is located"},"secretPath":{"type":"string","default":"/","description":"The path of the secret to attach tags to."},"type":{"type":"string","enum":["shared","personal"],"default":"shared","description":"The type of the secret to attach tags to. (shared/personal)"},"tagSlugs":{"type":"array","items":{"type":"string"},"minItems":1,"description":"An array of existing tag slugs to attach to the secret."}},"required":["projectSlug","environment","tagSlugs"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to attach tags to."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","tags"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Detach tags from a secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project where the secret is located."},"environment":{"type":"string","description":"The slug of the environment where the secret is located."},"secretPath":{"type":"string","default":"/","description":"The path of the secret to detach tags from."},"type":{"type":"string","enum":["shared","personal"],"default":"shared","description":"The type of the secret to attach tags to. (shared/personal)"},"tagSlugs":{"type":"array","items":{"type":"string"},"minItems":1,"description":"An array of existing tag slugs to detach from the secret."}},"required":["projectSlug","environment","tagSlugs"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to detach tags from."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","tags"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/raw":{"get":{"description":"List secrets","parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":false,"description":"The ID of the project to list secrets from."},{"schema":{"type":"string"},"in":"query","name":"workspaceSlug","required":false,"description":"The slug of the project to list secrets from. This parameter is only applicable by machine identities."},{"schema":{"type":"string"},"in":"query","name":"environment","required":false,"description":"The slug of the environment to list secrets from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false,"description":"The secret path to list secrets from."},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"expandSecretReferences","required":false,"description":"Whether or not to expand secret references."},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"recursive","required":false,"description":"Whether or not to fetch all secrets from the specified base path, and all of its subdirectories. Note, the max depth is 20 deep."},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"include_imports","required":false,"description":"Weather to include imported secrets or not."},{"schema":{"type":"string"},"in":"query","name":"tagSlugs","required":false,"description":"The comma separated tag slugs to filter secrets."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"imports":{"type":"array","items":{"type":"object","properties":{"secretPath":{"type":"string"},"environment":{"type":"string"},"folderId":{"type":"string"},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment"],"additionalProperties":false}}},"required":["secretPath","environment","secrets"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/raw/{secretName}":{"get":{"description":"Get a secret by name","parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":false,"description":"The ID of the project to get the secret from."},{"schema":{"type":"string"},"in":"query","name":"workspaceSlug","required":false,"description":"The slug of the project to get the secret from."},{"schema":{"type":"string"},"in":"query","name":"environment","required":false,"description":"The slug of the environment to get the secret from."},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false,"description":"The path of the secret to get."},{"schema":{"type":"number"},"in":"query","name":"version","required":false,"description":"The version of the secret to get."},{"schema":{"type":"string","enum":["shared","personal"],"default":"shared"},"in":"query","name":"type","required":false,"description":"The type of the secret to get."},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"expandSecretReferences","required":false,"description":"Whether or not to expand secret references."},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"include_imports","required":false,"description":"Weather to include imported secrets or not."},{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to get."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"description":"Create secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to create the secret in."},"environment":{"type":"string","description":"The slug of the environment to create the secret in."},"secretPath":{"type":"string","default":"/","description":"The path to create the secret in."},"secretValue":{"type":"string","description":"The value of the secret to create."},"secretComment":{"type":"string","default":"","description":"Attach a comment to the secret."},"tagIds":{"type":"array","items":{"type":"string"},"description":"The ID of the tags to be attached to the created secret."},"skipMultilineEncoding":{"type":"boolean","description":"Skip multiline encoding for the secret value."},"type":{"type":"string","enum":["shared","personal"],"default":"shared","description":"The type of the secret to create."},"secretReminderRepeatDays":{"type":"number","nullable":true,"description":"Interval for secret rotation notifications, measured in days."},"secretReminderNote":{"type":"string","nullable":true,"description":"Note to be attached in notification email."}},"required":["workspaceId","environment","secretValue"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to create."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project to update the secret in."},"environment":{"type":"string","description":"The slug of the environment where the secret is located."},"secretValue":{"type":"string","description":"The new value of the secret."},"secretPath":{"type":"string","default":"/","description":"The path of the secret to update."},"skipMultilineEncoding":{"type":"boolean","description":"Skip multiline encoding for the secret value."},"type":{"type":"string","enum":["shared","personal"],"default":"shared","description":"The type of the secret to update."},"tagIds":{"type":"array","items":{"type":"string"},"description":"The ID of the tags to be attached to the updated secret."},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"secretReminderNote":{"type":"string","nullable":true,"description":"Note to be attached in notification email."},"secretReminderRepeatDays":{"type":"number","nullable":true,"description":"Interval for secret rotation notifications, measured in days."},"newSecretName":{"type":"string","minLength":1,"description":"The new name for the secret."},"secretComment":{"type":"string","description":"Update comment to the secret."}},"required":["workspaceId","environment","secretValue"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to update."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete secret","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","description":"The ID of the project where the secret is located."},"environment":{"type":"string","description":"The slug of the environment where the secret is located."},"secretPath":{"type":"string","default":"/","description":"The path of the secret."},"type":{"type":"string","enum":["shared","personal"],"default":"shared","description":"The type of the secret to delete."}},"required":["workspaceId","environment"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to delete."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"recursive","required":false},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"include_imports","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"color":{"type":"string","nullable":true},"name":{"type":"string"}},"required":["id","slug","name"],"additionalProperties":false}}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","_id","workspace","environment","tags"],"additionalProperties":false}},"imports":{"type":"array","items":{"type":"object","properties":{"secretPath":{"type":"string"},"environment":{"type":"string"},"folderId":{"type":"string"},"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","_id","workspace","environment"],"additionalProperties":false}}},"required":["secretPath","environment","secrets"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/{secretName}":{"get":{"parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true},{"schema":{"type":"string"},"in":"query","name":"environment","required":true},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false},{"schema":{"type":"string","enum":["shared","personal"],"default":"shared"},"in":"query","name":"type","required":false},{"schema":{"type":"number"},"in":"query","name":"version","required":false},{"schema":{"type":"string","enum":["true","false"],"default":"false"},"in":"query","name":"include_imports","required":false},{"schema":{"type":"string"},"in":"path","name":"secretName","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"workspace":{"type":"string"},"environment":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","workspace","environment"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string"},"type":{"type":"string","enum":["shared","personal"],"default":"shared"},"secretPath":{"type":"string","default":"/"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string"},"secretCommentIV":{"type":"string"},"secretCommentTag":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"skipMultilineEncoding":{"type":"boolean"}},"required":["workspaceId","environment","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","_id","workspace","environment"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string"},"secretId":{"type":"string"},"type":{"type":"string","enum":["shared","personal"],"default":"shared"},"secretPath":{"type":"string","default":"/"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string"},"secretCommentIV":{"type":"string"},"secretCommentTag":{"type":"string"},"secretReminderRepeatDays":{"type":"number","minimum":1,"maximum":365,"nullable":true},"secretReminderNote":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"skipMultilineEncoding":{"type":"boolean"},"secretName":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretKeyCiphertext":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["workspaceId","environment","secretValueCiphertext","secretValueIV","secretValueTag"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","_id","workspace","environment"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["shared","personal"],"default":"shared"},"secretPath":{"type":"string","default":"/"},"secretId":{"type":"string"},"workspaceId":{"type":"string"},"environment":{"type":"string"}},"required":["workspaceId","environment"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"secretName","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secret":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","_id","workspace","environment"],"additionalProperties":false}},"required":["secret"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/move":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string"},"sourceEnvironment":{"type":"string"},"sourceSecretPath":{"type":"string","default":"/"},"destinationEnvironment":{"type":"string"},"destinationSecretPath":{"type":"string","default":"/"},"secretIds":{"type":"array","items":{"type":"string"}},"shouldOverwrite":{"type":"boolean","default":false}},"required":["projectSlug","sourceEnvironment","destinationEnvironment","secretIds"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"isSourceUpdated":{"type":"boolean"},"isDestinationUpdated":{"type":"boolean"}},"required":["isSourceUpdated","isDestinationUpdated"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/batch":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string","default":"/"},"secrets":{"type":"array","items":{"type":"object","properties":{"secretName":{"type":"string"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string"},"secretCommentIV":{"type":"string"},"secretCommentTag":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"skipMultilineEncoding":{"type":"boolean"}},"required":["secretName","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag"],"additionalProperties":false},"minItems":1}},"required":["workspaceId","environment","secrets"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string","default":"/"},"secrets":{"type":"array","items":{"type":"object","properties":{"secretName":{"type":"string"},"type":{"type":"string","enum":["shared","personal"],"default":"shared"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretCommentCiphertext":{"type":"string"},"secretCommentIV":{"type":"string"},"secretCommentTag":{"type":"string"},"skipMultilineEncoding":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}}},"required":["secretName","secretValueCiphertext","secretValueIV","secretValueTag","secretKeyCiphertext","secretKeyIV","secretKeyTag"],"additionalProperties":false},"minItems":1}},"required":["workspaceId","environment","secrets"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string","default":"/"},"secrets":{"type":"array","items":{"type":"object","properties":{"secretName":{"type":"string"},"type":{"type":"string","enum":["shared","personal"],"default":"shared"}},"required":["secretName"],"additionalProperties":false},"minItems":1}},"required":["workspaceId","environment","secrets"],"additionalProperties":false}}},"required":true},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/batch/raw":{"post":{"description":"Create many secrets","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project to update the secret in."},"workspaceId":{"type":"string","description":"The ID of the project to update the secret in."},"environment":{"type":"string","description":"The slug of the environment to create the secret in."},"secretPath":{"type":"string","default":"/","description":"The path to create the secret in."},"secrets":{"type":"array","items":{"type":"object","properties":{"secretKey":{"type":"string","description":"The name of the secret to create."},"secretValue":{"type":"string","description":"The value of the secret to create."},"secretComment":{"type":"string","default":"","description":"Attach a comment to the secret."},"skipMultilineEncoding":{"type":"boolean","description":"Skip multiline encoding for the secret value."},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"tagIds":{"type":"array","items":{"type":"string"},"description":"The ID of the tags to be attached to the created secret."}},"required":["secretKey","secretValue"],"additionalProperties":false},"minItems":1}},"required":["environment","secrets"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"patch":{"description":"Update many secrets","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project to delete the secret in."},"workspaceId":{"type":"string","description":"The ID of the project where the secret is located."},"environment":{"type":"string","description":"The slug of the environment where the secret is located."},"secretPath":{"type":"string","default":"/","description":"The path of the secret to update."},"secrets":{"type":"array","items":{"type":"object","properties":{"secretKey":{"type":"string","description":"The name of the secret to update."},"secretValue":{"type":"string","description":"The new value of the secret."},"secretComment":{"type":"string","description":"Update comment to the secret."},"skipMultilineEncoding":{"type":"boolean","description":"Skip multiline encoding for the secret value."},"newSecretName":{"type":"string","minLength":1,"description":"The new name for the secret."},"tagIds":{"type":"array","items":{"type":"string"},"description":"The ID of the tags to be attached to the updated secret."},"secretReminderNote":{"type":"string","nullable":true,"description":"Note to be attached in notification email."},"secretReminderRepeatDays":{"type":"number","nullable":true,"description":"Interval for secret rotation notifications, measured in days."}},"required":["secretKey","secretValue"],"additionalProperties":false},"minItems":1}},"required":["environment","secrets"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}},"delete":{"description":"Delete many secrets","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectSlug":{"type":"string","description":"The slug of the project to delete the secret in."},"workspaceId":{"type":"string","description":"The ID of the project where the secret is located."},"environment":{"type":"string","description":"The slug of the environment where the secret is located."},"secretPath":{"type":"string","default":"/","description":"The path of the secret."},"secrets":{"type":"array","items":{"type":"object","properties":{"secretKey":{"type":"string","description":"The name of the secret to delete."},"type":{"type":"string","enum":["shared","personal"],"default":"shared"}},"required":["secretKey"],"additionalProperties":false},"minItems":1}},"required":["environment","secrets"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"_id":{"type":"string"},"workspace":{"type":"string"},"environment":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"secretKey":{"type":"string"},"secretValue":{"type":"string"},"secretComment":{"type":"string"},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","_id","workspace","environment","version","type","secretKey","secretValue","secretComment","createdAt","updatedAt"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false},{"type":"object","properties":{"approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"policyId":{"type":"string","format":"uuid"},"hasMerged":{"type":"boolean","default":false},"status":{"type":"string","default":"open"},"conflicts":{"nullable":true},"slug":{"type":"string"},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"isReplicated":{"type":"boolean","nullable":true},"committerUserId":{"type":"string","format":"uuid"},"statusChangedByUserId":{"type":"string","format":"uuid","nullable":true},"bypassReason":{"type":"string","nullable":true}},"required":["id","policyId","slug","folderId","createdAt","updatedAt","committerUserId"],"additionalProperties":false}},"required":["approval"],"additionalProperties":false,"description":"When secret protection policy is enabled"}]}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/raw/{secretName}/secret-reference-tree":{"get":{"description":"Get secret reference tree","parameters":[{"schema":{"type":"string"},"in":"query","name":"workspaceId","required":true,"description":"The ID of the project where the secret is located."},{"schema":{"type":"string"},"in":"query","name":"environment","required":true,"description":"The slug of the environment where the the secret is located."},{"schema":{"type":"string","default":"/"},"in":"query","name":"secretPath","required":false,"description":"The folder path where the secret is located."},{"schema":{"type":"string"},"in":"path","name":"secretName","required":true,"description":"The name of the secret to get the reference tree for."}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tree":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"},"environment":{"type":"string"},"secretPath":{"type":"string"},"children":{"type":"array","items":{}}},"required":["key","environment","secretPath","children"],"additionalProperties":false},"value":{"type":"string"}},"required":["tree"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/secrets/backfill-secret-references":{"post":{"description":"Backfill secret references","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","minLength":1}},"required":["projectId"],"additionalProperties":false}}},"required":true},"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/workspaces/{projectId}/secrets/blind-index-status":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"boolean"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/workspaces/{projectId}/secrets":{"get":{"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secrets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"number","default":1},"type":{"type":"string","default":"shared"},"secretKeyCiphertext":{"type":"string"},"secretKeyIV":{"type":"string"},"secretKeyTag":{"type":"string"},"secretValueCiphertext":{"type":"string"},"secretValueIV":{"type":"string"},"secretValueTag":{"type":"string"},"secretCommentCiphertext":{"type":"string","nullable":true},"secretCommentIV":{"type":"string","nullable":true},"secretCommentTag":{"type":"string","nullable":true},"secretReminderNote":{"type":"string","nullable":true},"secretReminderRepeatDays":{"type":"number","nullable":true},"skipMultilineEncoding":{"type":"boolean","default":false,"nullable":true},"algorithm":{"type":"string","default":"aes-256-gcm"},"keyEncoding":{"type":"string","default":"utf8"},"metadata":{"nullable":true},"userId":{"type":"string","format":"uuid","nullable":true},"folderId":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"environment":{"type":"string"},"workspace":{"type":"string"}},"required":["id","secretKeyCiphertext","secretKeyIV","secretKeyTag","secretValueCiphertext","secretValueIV","secretValueTag","folderId","createdAt","updatedAt","environment","workspace"],"additionalProperties":false}}},"required":["secrets"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/workspaces/{projectId}/secrets/names":{"post":{"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"secretsToUpdate":{"type":"array","items":{"type":"object","properties":{"secretName":{"type":"string"},"secretId":{"type":"string"}},"required":["secretName","secretId"],"additionalProperties":false}}},"required":["secretsToUpdate"],"additionalProperties":false}}},"required":true},"parameters":[{"schema":{"type":"string"},"in":"path","name":"projectId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[400]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[401]},"message":{},"error":{"type":"string"}},"required":["requestId","statusCode","error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[403]},"message":{"type":"string"},"details":{},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[404]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string"},"statusCode":{"type":"number","enum":[500]},"message":{"type":"string"},"error":{"type":"string"}},"required":["requestId","statusCode","message","error"],"additionalProperties":false}}}}}}},"/api/v3/migrate/env-key":{"post":{"responses":{"200":{"description":"Default Response"}}}}},"servers":[{"url":"https://us.infisical.com","description":"Production server (US)"},{"url":"https://eu.infisical.com","description":"Production server (EU)"},{"url":"http://localhost:8080","description":"Local server"}]}
\ No newline at end of file