mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add additional fields to first time setup trial flow (#11533)
* feat: add additional fields to first time setup trial flow * trial generator typo
This commit is contained in:
Generated
+42
-6
@@ -1511,18 +1511,28 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"email": "string",
|
||||
"password": "string",
|
||||
"trial": true,
|
||||
"trial_info": {
|
||||
"company_name": "string",
|
||||
"country": "string",
|
||||
"developers": "string",
|
||||
"first_name": "string",
|
||||
"job_title": "string",
|
||||
"last_name": "string",
|
||||
"phone_number": "string"
|
||||
},
|
||||
"username": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ---------- | ------- | -------- | ------------ | ----------- |
|
||||
| `email` | string | true | | |
|
||||
| `password` | string | true | | |
|
||||
| `trial` | boolean | false | | |
|
||||
| `username` | string | true | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| ------------ | ---------------------------------------------------------------------- | -------- | ------------ | ----------- |
|
||||
| `email` | string | true | | |
|
||||
| `password` | string | true | | |
|
||||
| `trial` | boolean | false | | |
|
||||
| `trial_info` | [codersdk.CreateFirstUserTrialInfo](#codersdkcreatefirstusertrialinfo) | false | | |
|
||||
| `username` | string | true | | |
|
||||
|
||||
## codersdk.CreateFirstUserResponse
|
||||
|
||||
@@ -1540,6 +1550,32 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `organization_id` | string | false | | |
|
||||
| `user_id` | string | false | | |
|
||||
|
||||
## codersdk.CreateFirstUserTrialInfo
|
||||
|
||||
```json
|
||||
{
|
||||
"company_name": "string",
|
||||
"country": "string",
|
||||
"developers": "string",
|
||||
"first_name": "string",
|
||||
"job_title": "string",
|
||||
"last_name": "string",
|
||||
"phone_number": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
| -------------- | ------ | -------- | ------------ | ----------- |
|
||||
| `company_name` | string | false | | |
|
||||
| `country` | string | false | | |
|
||||
| `developers` | string | false | | |
|
||||
| `first_name` | string | false | | |
|
||||
| `job_title` | string | false | | |
|
||||
| `last_name` | string | false | | |
|
||||
| `phone_number` | string | false | | |
|
||||
|
||||
## codersdk.CreateGroupRequest
|
||||
|
||||
```json
|
||||
|
||||
Generated
+9
@@ -226,6 +226,15 @@ curl -X POST http://coder-server:8080/api/v2/users/first \
|
||||
"email": "string",
|
||||
"password": "string",
|
||||
"trial": true,
|
||||
"trial_info": {
|
||||
"company_name": "string",
|
||||
"country": "string",
|
||||
"developers": "string",
|
||||
"first_name": "string",
|
||||
"job_title": "string",
|
||||
"last_name": "string",
|
||||
"phone_number": "string"
|
||||
},
|
||||
"username": "string"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user