From 2ecc7424d98c2d234f9e589158dace91fe9524cf Mon Sep 17 00:00:00 2001 From: Mahyar Mirrashed Date: Thu, 13 Mar 2025 11:12:24 -0700 Subject: [PATCH] feat(models): add model for environments --- cli/packages/api/model.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 {