Skip to content

Commit f9c7cc5

Browse files
committed
make gen
1 parent aad5744 commit f9c7cc5

File tree

11 files changed

+155
-10
lines changed

11 files changed

+155
-10
lines changed

coderd/apidoc/docs.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/audit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ curl -X GET http://coder-server:8080/api/v2/audit?q=string \
6363
"email": "user@example.com",
6464
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
6565
"last_seen_at": "2019-08-24T14:15:22Z",
66+
"login_type": "password",
6667
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
6768
"roles": [
6869
{

docs/api/enterprise.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ curl -X GET http://coder-server:8080/api/v2/groups/{group} \
182182
"email": "user@example.com",
183183
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
184184
"last_seen_at": "2019-08-24T14:15:22Z",
185+
"login_type": "password",
185186
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
186187
"roles": [
187188
{
@@ -241,6 +242,7 @@ curl -X DELETE http://coder-server:8080/api/v2/groups/{group} \
241242
"email": "user@example.com",
242243
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
243244
"last_seen_at": "2019-08-24T14:15:22Z",
245+
"login_type": "password",
244246
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
245247
"roles": [
246248
{
@@ -300,6 +302,7 @@ curl -X PATCH http://coder-server:8080/api/v2/groups/{group} \
300302
"email": "user@example.com",
301303
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
302304
"last_seen_at": "2019-08-24T14:15:22Z",
305+
"login_type": "password",
303306
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
304307
"roles": [
305308
{
@@ -434,6 +437,7 @@ curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/groups
434437
"email": "user@example.com",
435438
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
436439
"last_seen_at": "2019-08-24T14:15:22Z",
440+
"login_type": "password",
437441
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
438442
"roles": [
439443
{
@@ -473,6 +477,7 @@ Status Code **200**
473477
| `»» email` | string(email) | true | | |
474478
| `»» id` | string(uuid) | true | | |
475479
| `»» last_seen_at` | string(date-time) | false | | |
480+
| `»» login_type` | [codersdk.LoginType](schemas.md#codersdklogintype) | false | | |
476481
| `»» organization_ids` | array | false | | |
477482
| `»» roles` | array | false | | |
478483
| `»»» display_name` | string | false | | |
@@ -485,10 +490,15 @@ Status Code **200**
485490

486491
#### Enumerated Values
487492

488-
| Property | Value |
489-
| -------- | ----------- |
490-
| `status` | `active` |
491-
| `status` | `suspended` |
493+
| Property | Value |
494+
| ------------ | ----------- |
495+
| `login_type` | `password` |
496+
| `login_type` | `github` |
497+
| `login_type` | `oidc` |
498+
| `login_type` | `token` |
499+
| `login_type` | `none` |
500+
| `status` | `active` |
501+
| `status` | `suspended` |
492502

493503
To perform this operation, you must be authenticated. [Learn more](authentication.md).
494504

@@ -538,6 +548,7 @@ curl -X POST http://coder-server:8080/api/v2/organizations/{organization}/groups
538548
"email": "user@example.com",
539549
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
540550
"last_seen_at": "2019-08-24T14:15:22Z",
551+
"login_type": "password",
541552
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
542553
"roles": [
543554
{
@@ -598,6 +609,7 @@ curl -X GET http://coder-server:8080/api/v2/organizations/{organization}/groups/
598609
"email": "user@example.com",
599610
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
600611
"last_seen_at": "2019-08-24T14:15:22Z",
612+
"login_type": "password",
601613
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
602614
"roles": [
603615
{
@@ -959,6 +971,7 @@ curl -X PATCH http://coder-server:8080/api/v2/scim/v2/Users/{id} \
959971
"email": "user@example.com",
960972
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
961973
"last_seen_at": "2019-08-24T14:15:22Z",
974+
"login_type": "password",
962975
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
963976
"roles": [
964977
{
@@ -1010,6 +1023,7 @@ curl -X GET http://coder-server:8080/api/v2/templates/{template}/acl \
10101023
"email": "user@example.com",
10111024
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
10121025
"last_seen_at": "2019-08-24T14:15:22Z",
1026+
"login_type": "password",
10131027
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
10141028
"role": "admin",
10151029
"roles": [
@@ -1042,6 +1056,7 @@ Status Code **200**
10421056
| `» email` | string(email) | true | | |
10431057
| `» id` | string(uuid) | true | | |
10441058
| `» last_seen_at` | string(date-time) | false | | |
1059+
| `» login_type` | [codersdk.LoginType](schemas.md#codersdklogintype) | false | | |
10451060
| `» organization_ids` | array | false | | |
10461061
| `» role` | [codersdk.TemplateRole](schemas.md#codersdktemplaterole) | false | | |
10471062
| `» roles` | array | false | | |
@@ -1052,12 +1067,17 @@ Status Code **200**
10521067

10531068
#### Enumerated Values
10541069

1055-
| Property | Value |
1056-
| -------- | ----------- |
1057-
| `role` | `admin` |
1058-
| `role` | `use` |
1059-
| `status` | `active` |
1060-
| `status` | `suspended` |
1070+
| Property | Value |
1071+
| ------------ | ----------- |
1072+
| `login_type` | `password` |
1073+
| `login_type` | `github` |
1074+
| `login_type` | `oidc` |
1075+
| `login_type` | `token` |
1076+
| `login_type` | `none` |
1077+
| `role` | `admin` |
1078+
| `role` | `use` |
1079+
| `status` | `active` |
1080+
| `status` | `suspended` |
10611081

10621082
To perform this operation, you must be authenticated. [Learn more](authentication.md).
10631083

docs/api/general.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
279279
"issuer_url": "string",
280280
"scopes": ["string"],
281281
"sign_in_text": "string",
282+
"user_role_field": "string",
283+
"user_role_mapping": {},
284+
"user_roles_default": ["string"],
282285
"username_field": "string"
283286
},
284287
"pg_connection_url": "string",

docs/api/schemas.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@
10001000
"email": "user@example.com",
10011001
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
10021002
"last_seen_at": "2019-08-24T14:15:22Z",
1003+
"login_type": "password",
10031004
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
10041005
"roles": [
10051006
{
@@ -1076,6 +1077,7 @@
10761077
"email": "user@example.com",
10771078
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
10781079
"last_seen_at": "2019-08-24T14:15:22Z",
1080+
"login_type": "password",
10791081
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
10801082
"roles": [
10811083
{
@@ -1985,6 +1987,9 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
19851987
"issuer_url": "string",
19861988
"scopes": ["string"],
19871989
"sign_in_text": "string",
1990+
"user_role_field": "string",
1991+
"user_role_mapping": {},
1992+
"user_roles_default": ["string"],
19881993
"username_field": "string"
19891994
},
19901995
"pg_connection_url": "string",
@@ -2335,6 +2340,9 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
23352340
"issuer_url": "string",
23362341
"scopes": ["string"],
23372342
"sign_in_text": "string",
2343+
"user_role_field": "string",
2344+
"user_role_mapping": {},
2345+
"user_roles_default": ["string"],
23382346
"username_field": "string"
23392347
},
23402348
"pg_connection_url": "string",
@@ -2621,6 +2629,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
26212629
"email": "user@example.com",
26222630
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
26232631
"last_seen_at": "2019-08-24T14:15:22Z",
2632+
"login_type": "password",
26242633
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
26252634
"roles": [
26262635
{
@@ -2837,6 +2846,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
28372846
"email": "user@example.com",
28382847
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
28392848
"last_seen_at": "2019-08-24T14:15:22Z",
2849+
"login_type": "password",
28402850
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
28412851
"roles": [
28422852
{
@@ -3181,6 +3191,9 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
31813191
"issuer_url": "string",
31823192
"scopes": ["string"],
31833193
"sign_in_text": "string",
3194+
"user_role_field": "string",
3195+
"user_role_mapping": {},
3196+
"user_roles_default": ["string"],
31843197
"username_field": "string"
31853198
}
31863199
```
@@ -3203,6 +3216,9 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
32033216
| `issuer_url` | string | false | | |
32043217
| `scopes` | array of string | false | | |
32053218
| `sign_in_text` | string | false | | |
3219+
| `user_role_field` | string | false | | |
3220+
| `user_role_mapping` | object | false | | |
3221+
| `user_roles_default` | array of string | false | | |
32063222
| `username_field` | string | false | | |
32073223

32083224
## codersdk.Organization
@@ -4110,6 +4126,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
41104126
"email": "user@example.com",
41114127
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
41124128
"last_seen_at": "2019-08-24T14:15:22Z",
4129+
"login_type": "password",
41134130
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
41144131
"role": "admin",
41154132
"roles": [
@@ -4132,6 +4149,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
41324149
| `email` | string | true | | |
41334150
| `id` | string | true | | |
41344151
| `last_seen_at` | string | false | | |
4152+
| `login_type` | [codersdk.LoginType](#codersdklogintype) | false | | |
41354153
| `organization_ids` | array of string | false | | |
41364154
| `role` | [codersdk.TemplateRole](#codersdktemplaterole) | false | | |
41374155
| `roles` | array of [codersdk.Role](#codersdkrole) | false | | |
@@ -4158,6 +4176,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
41584176
"email": "user@example.com",
41594177
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
41604178
"last_seen_at": "2019-08-24T14:15:22Z",
4179+
"login_type": "password",
41614180
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
41624181
"roles": [
41634182
{
@@ -4610,6 +4629,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
46104629
"email": "user@example.com",
46114630
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
46124631
"last_seen_at": "2019-08-24T14:15:22Z",
4632+
"login_type": "password",
46134633
"organization_ids": ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
46144634
"roles": [
46154635
{
@@ -4631,6 +4651,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
46314651
| `email` | string | true | | |
46324652
| `id` | string | true | | |
46334653
| `last_seen_at` | string | false | | |
4654+
| `login_type` | [codersdk.LoginType](#codersdklogintype) | false | | |
46344655
| `organization_ids` | array of string | false | | |
46354656
| `roles` | array of [codersdk.Role](#codersdkrole) | false | | |
46364657
| `status` | [codersdk.UserStatus](#codersdkuserstatus) | false | | |

0 commit comments

Comments
 (0)