Skip to content

Commit 5517ee2

Browse files
authored
feat(cli): enabling environment provisioning (#3859)
* feat(cli): enabling environment provisioning * feat(cli): updating service names to match new route
1 parent dce4d3c commit 5517ee2

28 files changed

+6116
-991
lines changed

api/environments.yaml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
openapi: 3.0.1
2+
3+
components:
4+
responses:
5+
EnvironmentResource:
6+
description: "successful operation for environment"
7+
content:
8+
application/json:
9+
schema:
10+
$ref: "#/components/schemas/EnvironmentResource"
11+
12+
Environment:
13+
description: "successful operation for environment"
14+
content:
15+
application/json:
16+
schema:
17+
$ref: "#/components/schemas/Environment"
18+
19+
EnvironmentResources:
20+
description: "successful operation for environment"
21+
content:
22+
application/json:
23+
schema:
24+
$ref: "#/components/schemas/EnvironmentResources"
25+
26+
Environments:
27+
description: "successful operation for environment"
28+
content:
29+
application/json:
30+
schema:
31+
$ref: "#/components/schemas/Environments"
32+
33+
EnvironmentsMe:
34+
description: "successful operation for environment"
35+
content:
36+
application/json:
37+
schema:
38+
$ref: "#/components/schemas/EnvironmentsMe"
39+
40+
requestBodies:
41+
Environment:
42+
description: environment details body
43+
required: true
44+
content:
45+
application/json:
46+
schema:
47+
$ref: "#/components/schemas/Environment"
48+
49+
EnvironmentResource:
50+
description: environment resource details body
51+
required: true
52+
content:
53+
application/json:
54+
schema:
55+
$ref: "#/components/schemas/EnvironmentResource"
56+
57+
schemas:
58+
EnvironmentResources:
59+
type: object
60+
properties:
61+
items:
62+
type: array
63+
items:
64+
$ref: "#/components/schemas/EnvironmentResource"
65+
count:
66+
type: integer
67+
68+
EnvironmentsMe:
69+
type: object
70+
properties:
71+
elements:
72+
type: array
73+
items:
74+
$ref: "#/components/schemas/Environment"
75+
count:
76+
type: integer
77+
78+
Environments:
79+
type: object
80+
properties:
81+
items:
82+
type: array
83+
items:
84+
$ref: "#/components/schemas/Environment"
85+
count:
86+
type: integer
87+
88+
EnvironmentResource:
89+
type: object
90+
properties:
91+
type:
92+
type: string
93+
enum:
94+
- Environment
95+
spec:
96+
$ref: "#/components/schemas/Environment"
97+
98+
Environment:
99+
type: object
100+
required:
101+
- connected
102+
properties:
103+
id:
104+
type: string
105+
readOnly: true
106+
name:
107+
type: string
108+
description:
109+
type: string
110+
labels:
111+
type: object
112+
additionalProperties:
113+
type: string
114+
createdAt:
115+
type: string
116+
format: date-time
117+
readOnly: true
118+
updatedAt:
119+
type: string
120+
format: date-time
121+
readOnly: true
122+
isLocal:
123+
type: boolean
124+
example: false
125+
userID:
126+
type: string
127+
organizationID:
128+
type: string
129+
description: organizationID
130+
example: "733420bd-7e56-461f-8431-6378759e60ae"
131+
agentApiKey:
132+
type: string
133+
resources:
134+
type: string

api/invites.yaml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
openapi: 3.0.1
2+
3+
components:
4+
responses:
5+
Invites:
6+
description: "successful operation for invites"
7+
content:
8+
application/json:
9+
schema:
10+
$ref: "#/components/schemas/Invites"
11+
12+
InviteResources:
13+
description: "successful operation for invites"
14+
content:
15+
application/json:
16+
schema:
17+
$ref: "#/components/schemas/InviteResources"
18+
19+
Invite:
20+
description: "successful operation for invites"
21+
content:
22+
application/json:
23+
schema:
24+
$ref: "#/components/schemas/Invite"
25+
InviteResource:
26+
description: "successful operation for invites"
27+
content:
28+
application/json:
29+
schema:
30+
$ref: "#/components/schemas/InviteResource"
31+
32+
requestBodies:
33+
Invite:
34+
description: invite details body
35+
required: true
36+
content:
37+
application/json:
38+
schema:
39+
$ref: "#/components/schemas/Invite"
40+
41+
InviteResource:
42+
description: invite resource details body
43+
required: true
44+
content:
45+
application/json:
46+
schema:
47+
$ref: "#/components/schemas/InviteResource"
48+
49+
schemas:
50+
InviteResource:
51+
type: object
52+
properties:
53+
type:
54+
type: string
55+
enum:
56+
- Invite
57+
spec:
58+
$ref: "#/components/schemas/Invite"
59+
60+
Invite:
61+
required:
62+
- id
63+
- to
64+
- role
65+
type: object
66+
properties:
67+
id:
68+
type: string
69+
role:
70+
$ref: "./members.yaml#/components/schemas/Role"
71+
to:
72+
type: string
73+
createdAt:
74+
type: string
75+
format: date-time
76+
sentAt:
77+
type: string
78+
format: date-time
79+
type:
80+
type: string
81+
enum:
82+
- "email"
83+
- "public"
84+
default: email
85+
status:
86+
type: string
87+
enum:
88+
- "pending"
89+
- "accepted"
90+
- "revoked"
91+
default: pending
92+
returnTo:
93+
type: string
94+
environments:
95+
type: array
96+
items:
97+
$ref: "#/components/schemas/InviteEnvironment"
98+
InviteEnvironment:
99+
required:
100+
- id
101+
- role
102+
type: object
103+
properties:
104+
id:
105+
type: string
106+
role:
107+
$ref: "./members.yaml#/components/schemas/Role"
108+
environment:
109+
$ref: "./environments.yaml#/components/schemas/Environment"
110+
111+
InviteResources:
112+
type: object
113+
properties:
114+
items:
115+
type: array
116+
items:
117+
$ref: "#/components/schemas/InviteResource"
118+
count:
119+
type: integer
120+
121+
Invites:
122+
type: object
123+
properties:
124+
items:
125+
type: array
126+
items:
127+
$ref: "#/components/schemas/Invite"
128+
count:
129+
type: integer

api/members.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
openapi: 3.0.1
2+
3+
components:
4+
responses:
5+
Members:
6+
description: "successful operation for members"
7+
content:
8+
application/json:
9+
schema:
10+
$ref: "#/components/schemas/Members"
11+
Member:
12+
description: "successful operation for members"
13+
content:
14+
application/json:
15+
schema:
16+
$ref: "#/components/schemas/Member"
17+
requestBodies:
18+
MemberRole:
19+
description: member role update body
20+
required: true
21+
content:
22+
application/json:
23+
schema:
24+
type: object
25+
required:
26+
- role
27+
properties:
28+
role:
29+
$ref: "#/components/schemas/Role"
30+
AssignMember:
31+
description: member role update body
32+
required: true
33+
content:
34+
application/json:
35+
schema:
36+
type: object
37+
required:
38+
- role
39+
- id
40+
properties:
41+
role:
42+
$ref: "#/components/schemas/Role"
43+
id:
44+
type: string
45+
schemas:
46+
Role:
47+
type: string
48+
enum:
49+
- owners
50+
- members
51+
- admins
52+
- billers
53+
- engineers
54+
- runners
55+
- agent
56+
Member:
57+
required:
58+
- id
59+
- user
60+
- role
61+
type: object
62+
properties:
63+
id:
64+
type: string
65+
role:
66+
$ref: "#/components/schemas/Role"
67+
user:
68+
$ref: "./users.yaml#/components/schemas/User"
69+
invite:
70+
$ref: "./invites.yaml#/components/schemas/Invite"
71+
Members:
72+
type: object
73+
properties:
74+
elements:
75+
type: array
76+
items:
77+
$ref: "#/components/schemas/Member"
78+
nextToken:
79+
type: string

0 commit comments

Comments
 (0)