Skip to content

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

feat(models): add model for environments

Mahyar Mirrashed2ecc7424d98c
diff --git a/cli/packages/api/model.go b/cli/packages/api/model.go
index 72dbbc97b5..1eb936f245 100644
--- a/cli/packages/api/model.go
+++ b/cli/packages/api/model.go
@@ -2,6 +2,12 @@ package api
import "time"
+type Environment struct {
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ ID string `json:"id"`
+}
+
// Stores info for login one
type LoginOneRequest struct {
Email string `json:"email"`
@@ -14,7 +20,6 @@ type LoginOneResponse struct {
}
// Stores info for login two
-
type LoginTwoRequest struct {
Email string `json:"email"`
ClientProof string `json:"clientProof"`
@@ -168,9 +173,10 @@ type Secret struct {
}
type Project struct {
- ID string `json:"id"`
- Name string `json:"name"`
- Slug string `json:"slug"`
+ ID string `json:"id"`
+ Name string `json:"name"`
+ Slug string `json:"slug"`
+ Environments []Environment `json:"environments"`
}
type RawSecret struct {