Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
d4052c6
add list organizations command
DerBurri May 6, 2026
c070f99
feat(test): removed old code
DerBurri May 6, 2026
b57a8df
add missing err checks for stdout closing
DerBurri May 6, 2026
a1649ae
chore(docs): Auto-update docs and licenses
DerBurri May 13, 2026
72a2fde
feat(api): Add organization filtering to ListTeams
DerBurri May 13, 2026
6dd80a4
chore(docs): Auto-update docs and licenses
DerBurri May 13, 2026
dc58d0a
feat(cli):
DerBurri May 13, 2026
75be883
chore(docs): Auto-update docs and licenses
DerBurri May 13, 2026
d4702e8
chore(lint): removed unused orgId field in createTeamOpts
DerBurri May 13, 2026
e6a22e7
add logic seperation for teams and org teams
DerBurri May 20, 2026
c2c03cd
add unit tests for team creation
DerBurri May 20, 2026
7219222
updated openapi client
DerBurri May 20, 2026
1be5923
add team management features
DerBurri Jun 3, 2026
c35bd68
refactor: update organization ID handling in team commands
DerBurri Jun 3, 2026
a8a0f4c
chore(docs): Auto-update docs and licenses
DerBurri Jun 3, 2026
ba56ecf
feat: implement organization management API and update team-related f…
DerBurri Jun 17, 2026
2dc61a8
added examples
DerBurri Jun 17, 2026
08546da
chore(docs): Auto-update docs and licenses
DerBurri Jun 17, 2026
5a25c63
test: Add unit test for email validation
DerBurri Jun 17, 2026
45f19a6
add examples
DerBurri Jun 17, 2026
cfe7b83
add email validation
DerBurri Jun 17, 2026
d9ed4b8
chore(docs): Auto-update docs and licenses
DerBurri Jun 17, 2026
6160ce1
removed reduntant code
DerBurri Jun 17, 2026
1bddd71
chore(docs): Auto-update docs and licenses
DerBurri Jun 17, 2026
99bc811
remove: unnecessary team name flag in team_remove.go
DerBurri Jun 17, 2026
c2f4fea
feat: minor refactorings
DerBurri Jun 17, 2026
f42b1b2
fixed test
DerBurri Jun 17, 2026
ecf96d1
fix: correct error message for unset team ID in RemoveTeam command
DerBurri Jun 17, 2026
e416452
changed validation for userId to <= 0
DerBurri Jun 17, 2026
292ff5d
chore(docs): Auto-update docs and licenses
DerBurri Jun 17, 2026
3f9d26e
Merge branch 'add-organization-api' of https://github.com/codesphere-…
DerBurri Jun 17, 2026
a15fa12
fixed linter errors
DerBurri Jun 17, 2026
04ecf45
Codesphere MCP server (#272)
siherrmann Jun 16, 2026
c814364
fixed team create exampl
DerBurri Jul 1, 2026
8880edd
fixed format for team member remove
DerBurri Jul 1, 2026
95588a3
fixed Codesphere typo
DerBurri Jul 1, 2026
2034779
fixed typo in test
DerBurri Jul 1, 2026
5370ec0
removed debugging message
DerBurri Jul 1, 2026
7026500
updated openapi client, datatype of ids changed from float32 to int
DerBurri Jul 1, 2026
f70d39a
chore(docs): Auto-update docs and licenses
DerBurri Jul 1, 2026
fc8c823
made team name required
DerBurri Jul 1, 2026
30cee23
checked if team is nil for getteam
DerBurri Jul 1, 2026
a1f5e5c
removed orgID from remove team because not necessary for api
DerBurri Jul 1, 2026
9d6afe5
add list team member function
DerBurri Jul 1, 2026
0824734
chore(docs): Auto-update docs and licenses
DerBurri Jul 1, 2026
c6524f8
chore: regenerate mocks to resolve conflicts
DerBurri Jul 1, 2026
00652fe
fix: update uuid dependency to correct version
DerBurri Jul 1, 2026
f70614c
Codesphere MCP server (#272)
siherrmann Jun 16, 2026
0932819
fix: remove explicit embedded struct selector to resolve QF1008
DerBurri Jul 1, 2026
0c58e0f
refac: removed unused TeamIdByName function
DerBurri Jul 6, 2026
b98620c
feat{TeamIdBy/Name} Added filtering for the TeamIdByName for the orgI…
DerBurri Jul 6, 2026
c518513
chore(docs): Auto-update docs and licenses
DerBurri Jul 1, 2026
972b7ee
fix: add check for orgID and provide different message for team creation
DerBurri Jul 6, 2026
719e934
fix: correct spelling of "Codesphere" in error messages across team r…
DerBurri Jul 6, 2026
8a27168
fix: remove extra space in example command for adding team member wit…
DerBurri Jul 6, 2026
df882c7
fix: update parameter types from float32 to int in mock API methods
DerBurri Jul 6, 2026
93e31a8
updated api client
DerBurri Jul 6, 2026
e82d47e
rebased on main
DerBurri Jul 6, 2026
1fee531
fix: suppress unused variable warning by ignoring Close return value …
DerBurri Jul 6, 2026
3112fe9
removed unnecessary comment for team member add because there the Org…
DerBurri Jul 7, 2026
82347ea
chore(docs): Auto-update docs and licenses
DerBurri Jul 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ Version: v0.4.3
License: MIT
License URL: https://github.com/google/jsonschema-go/blob/v0.4.3/LICENSE

----------
Module: github.com/google/uuid
Version: v1.6.0
License: BSD-3-Clause
License URL: https://github.com/google/uuid/blob/v1.6.0/LICENSE

----------
Module: github.com/hashicorp/go-cleanhttp
Version: v0.5.2
Expand All @@ -191,9 +197,9 @@ License URL: https://github.com/jbenet/go-context/blob/d14ea06fba99/LICENSE

----------
Module: github.com/jedib0t/go-pretty/v6
Version: v6.8.1
Version: v6.8.2
License: MIT
License URL: https://github.com/jedib0t/go-pretty/blob/v6.8.1/LICENSE
License URL: https://github.com/jedib0t/go-pretty/blob/v6.8.2/LICENSE

----------
Module: github.com/json-iterator/go
Expand Down Expand Up @@ -503,9 +509,9 @@ License URL: https://cs.opensource.google/go/x/time/+/v0.15.0:LICENSE

----------
Module: golang.org/x/tools
Version: v0.46.0
Version: v0.47.0
License: BSD-3-Clause
License URL: https://cs.opensource.google/go/x/tools/+/v0.46.0:LICENSE
License URL: https://cs.opensource.google/go/x/tools/+/v0.47.0:LICENSE

----------
Module: google.golang.org/protobuf
Expand Down
19 changes: 7 additions & 12 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,30 +87,30 @@ func (c *Client) ListDataCenters() ([]DataCenter, error) {
}

func (c *Client) ListDomains(teamId int) ([]Domain, error) {
domains, r, err := c.api.DomainsAPI.DomainsListDomains(c.ctx, float32(teamId)).Execute()
domains, r, err := c.api.DomainsAPI.DomainsListDomains(c.ctx, teamId).Execute()
return domains, errors.FormatAPIError(r, err)
}

func (c *Client) GetDomain(teamId int, domainName string) (*Domain, error) {
domain, r, err := c.api.DomainsAPI.DomainsGetDomain(c.ctx, float32(teamId), domainName).Execute()
domain, r, err := c.api.DomainsAPI.DomainsGetDomain(c.ctx, teamId, domainName).Execute()
return domain, errors.FormatAPIError(r, err)
}

func (c *Client) CreateDomain(teamId int, domainName string) (*Domain, error) {
domain, r, err := c.api.DomainsAPI.DomainsCreateDomain(c.ctx, float32(teamId), domainName).Execute()
domain, r, err := c.api.DomainsAPI.DomainsCreateDomain(c.ctx, teamId, domainName).Execute()
return domain, errors.FormatAPIError(r, err)
}

func (c *Client) DeleteDomain(teamId int, domainName string) error {
r, err := c.api.DomainsAPI.DomainsDeleteDomain(c.ctx, float32(teamId), domainName).Execute()
r, err := c.api.DomainsAPI.DomainsDeleteDomain(c.ctx, teamId, domainName).Execute()
return errors.FormatAPIError(r, err)
}

func (c *Client) UpdateDomain(
teamId int, domainName string, args UpdateDomainArgs,
) (*Domain, error) {
domain, r, err := c.api.DomainsAPI.
DomainsUpdateDomain(c.ctx, float32(teamId), domainName).
DomainsUpdateDomain(c.ctx, teamId, domainName).
DomainsUpdateDomainRequest(args).
Execute()
return domain, errors.FormatAPIError(r, err)
Expand All @@ -120,7 +120,7 @@ func (c *Client) VerifyDomain(
teamId int, domainName string,
) (*DomainVerificationStatus, error) {
status, r, err := c.api.DomainsAPI.
DomainsVerifyDomain(c.ctx, float32(teamId), domainName).Execute()
DomainsVerifyDomain(c.ctx, teamId, domainName).Execute()
return status, errors.FormatAPIError(r, err)
}

Expand All @@ -136,7 +136,7 @@ func (c *Client) UpdateWorkspaceConnections(
req[path] = ids
}
domain, r, err := c.api.DomainsAPI.
DomainsUpdateWorkspaceConnections(c.ctx, float32(teamId), domainName).
DomainsUpdateWorkspaceConnections(c.ctx, teamId, domainName).
RequestBody(req).Execute()
return domain, errors.FormatAPIError(r, err)
}
Expand All @@ -145,8 +145,3 @@ func (c *Client) ListBaseimages() ([]Baseimage, error) {
baseimages, r, err := c.api.MetadataAPI.MetadataGetWorkspaceBaseImages(c.ctx).Execute()
return baseimages, errors.FormatAPIError(r, err)
}

func (c *Client) ListOrganizations() ([]Organization, error) {
organizations, r, err := c.api.OrganizationsAPI.OrganizationsListOrganizations(c.ctx).Execute()
return organizations, errors.FormatAPIError(r, err)
}
63 changes: 42 additions & 21 deletions api/openapi_client/api_domains.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading