Skip to content

Commit af3f67a

Browse files
committed
Rename codersdk.WorkspaceAppHostResponse to codersdk.AppHostResponse
1 parent f194439 commit af3f67a

File tree

6 files changed

+48
-48
lines changed

6 files changed

+48
-48
lines changed

coderd/apidoc/docs.go

Lines changed: 10 additions & 10 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: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/workspaceapps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const (
7777
// @Security CoderSessionToken
7878
// @Produce json
7979
// @Tags Applications
80-
// @Success 200 {object} codersdk.WorkspaceAppHostResponse
80+
// @Success 200 {object} codersdk.AppHostResponse
8181
// @Router /applications/host [get]
8282
func (api *API) appHost(rw http.ResponseWriter, r *http.Request) {
8383
host := api.AppHostname

docs/api/applications.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ curl -X GET http://coder-server:8080/api/v2/applications/host \
5151

5252
### Responses
5353

54-
| Status | Meaning | Description | Schema |
55-
| ------ | ------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------- |
56-
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.WorkspaceAppHostResponse](schemas.md#codersdkworkspaceapphostresponse) |
54+
| Status | Meaning | Description | Schema |
55+
| ------ | ------------------------------------------------------- | ----------- | -------------------------------------------------------------- |
56+
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.AppHostResponse](schemas.md#codersdkapphostresponse) |
5757

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

docs/api/schemas.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,20 @@
415415
| --------- | ------ | -------- | ------------ | ----------- |
416416
| `license` | string | true | | |
417417

418+
## codersdk.AppHostResponse
419+
420+
```json
421+
{
422+
"host": "string"
423+
}
424+
```
425+
426+
### Properties
427+
428+
| Name | Type | Required | Restrictions | Description |
429+
| ------ | ------ | -------- | ------------ | ------------------------------------------------------------- |
430+
| `host` | string | false | | Host is the externally accessible URL for the Coder instance. |
431+
418432
## codersdk.AppearanceConfig
419433

420434
```json
@@ -5083,20 +5097,6 @@ Parameter represents a set value for the scope.
50835097
| `healthy` |
50845098
| `unhealthy` |
50855099

5086-
## codersdk.WorkspaceAppHostResponse
5087-
5088-
```json
5089-
{
5090-
"host": "string"
5091-
}
5092-
```
5093-
5094-
### Properties
5095-
5096-
| Name | Type | Required | Restrictions | Description |
5097-
| ------ | ------ | -------- | ------------ | ------------------------------------------------------------- |
5098-
| `host` | string | false | | Host is the externally accessible URL for the Coder instance. |
5099-
51005100
## codersdk.WorkspaceAppSharingLevel
51015101

51025102
```json

site/src/api/typesGenerated.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export interface AgentStatsReportResponse {
2525
readonly tx_bytes: number
2626
}
2727

28+
// From codersdk/deployment.go
29+
export interface AppHostResponse {
30+
readonly host: string
31+
}
32+
2833
// From codersdk/deployment.go
2934
export interface AppearanceConfig {
3035
readonly logo_url: string
@@ -330,7 +335,7 @@ export interface DeploymentConfigField<T extends Flaggable> {
330335
readonly value: T
331336
}
332337

333-
// From codersdk/insights.go
338+
// From codersdk/deployment.go
334339
export interface DeploymentDAUsResponse {
335340
readonly entries: DAUEntry[]
336341
}
@@ -468,7 +473,7 @@ export interface Organization {
468473
readonly updated_at: string
469474
}
470475

471-
// From codersdk/organizationmember.go
476+
// From codersdk/organizations.go
472477
export interface OrganizationMember {
473478
readonly user_id: string
474479
readonly organization_id: string
@@ -615,7 +620,7 @@ export interface Role {
615620
readonly display_name: string
616621
}
617622

618-
// From codersdk/sse.go
623+
// From codersdk/serversentevents.go
619624
export interface ServerSentEvent {
620625
readonly type: ServerSentEventType
621626
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
@@ -936,11 +941,6 @@ export interface WorkspaceApp {
936941
readonly health: WorkspaceAppHealth
937942
}
938943

939-
// From codersdk/workspaces.go
940-
export interface WorkspaceAppHostResponse {
941-
readonly host: string
942-
}
943-
944944
// From codersdk/workspacebuilds.go
945945
export interface WorkspaceBuild {
946946
readonly id: string
@@ -986,7 +986,7 @@ export interface WorkspaceOptions {
986986
readonly include_deleted?: boolean
987987
}
988988

989-
// From codersdk/quota.go
989+
// From codersdk/workspaces.go
990990
export interface WorkspaceQuota {
991991
readonly credits_consumed: number
992992
readonly budget: number
@@ -1167,7 +1167,7 @@ export const ResourceTypes: ResourceType[] = [
11671167
"workspace_build",
11681168
]
11691169

1170-
// From codersdk/sse.go
1170+
// From codersdk/serversentevents.go
11711171
export type ServerSentEventType = "data" | "error" | "ping"
11721172
export const ServerSentEventTypes: ServerSentEventType[] = [
11731173
"data",

0 commit comments

Comments
 (0)