You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "DERPLatency is mapped by region name (e.g. \"New York City\", \"Seattle\").",
@@ -2907,19 +2940,27 @@ const docTemplate = `{
2907
2940
"type": "string"
2908
2941
},
2909
2942
"resource_id": {
2910
-
"type": "string"
2943
+
"type": "string",
2944
+
"format": "uuid"
2911
2945
},
2912
2946
"startup_script": {
2913
2947
"type": "string"
2914
2948
},
2915
2949
"status": {
2916
-
"type": "string"
2950
+
"type": "string",
2951
+
"enum": [
2952
+
"connecting",
2953
+
"connected",
2954
+
"disconnected",
2955
+
"timeout"
2956
+
]
2917
2957
},
2918
2958
"troubleshooting_url": {
2919
2959
"type": "string"
2920
2960
},
2921
2961
"updated_at": {
2922
-
"type": "string"
2962
+
"type": "string",
2963
+
"format": "date-time"
2923
2964
},
2924
2965
"version": {
2925
2966
"type": "string"
@@ -2934,6 +2975,42 @@ const docTemplate = `{
2934
2975
}
2935
2976
}
2936
2977
},
2978
+
"codersdk.WorkspaceAgentMetadata": {
2979
+
"type": "object",
2980
+
"properties": {
2981
+
"apps": {
2982
+
"type": "array",
2983
+
"items": {
2984
+
"$ref": "#/definitions/codersdk.WorkspaceApp"
2985
+
}
2986
+
},
2987
+
"derpmap": {
2988
+
"$ref": "#/definitions/tailcfg.DERPMap"
2989
+
},
2990
+
"directory": {
2991
+
"type": "string"
2992
+
},
2993
+
"environment_variables": {
2994
+
"type": "object",
2995
+
"additionalProperties": {
2996
+
"type": "string"
2997
+
}
2998
+
},
2999
+
"git_auth_configs": {
3000
+
"description": "GitAuthConfigs stores the number of Git configurations\nthe Coder deployment has. If this number is \u003e0, we\nset up special configuration in the workspace.",
3001
+
"type": "integer"
3002
+
},
3003
+
"motd_file": {
3004
+
"type": "string"
3005
+
},
3006
+
"startup_script": {
3007
+
"type": "string"
3008
+
},
3009
+
"vscode_port_proxy_uri": {
3010
+
"type": "string"
3011
+
}
3012
+
}
3013
+
},
2937
3014
"codersdk.WorkspaceApp": {
2938
3015
"type": "object",
2939
3016
"properties": {
@@ -2960,10 +3037,16 @@ const docTemplate = `{
2960
3037
"type": "string"
2961
3038
},
2962
3039
"id": {
2963
-
"type": "string"
3040
+
"type": "string",
3041
+
"format": "uuid"
2964
3042
},
2965
3043
"sharing_level": {
2966
-
"type": "string"
3044
+
"type": "string",
3045
+
"enum": [
3046
+
"owner",
3047
+
"authenticated",
3048
+
"public"
3049
+
]
2967
3050
},
2968
3051
"slug": {
2969
3052
"description": "Slug is a unique identifier within the agent.",
@@ -3156,6 +3239,107 @@ const docTemplate = `{
3156
3239
},
3157
3240
"netip.Addr": {
3158
3241
"type": "object"
3242
+
},
3243
+
"tailcfg.DERPMap": {
3244
+
"type": "object",
3245
+
"properties": {
3246
+
"omitDefaultRegions": {
3247
+
"description": "OmitDefaultRegions specifies to not use Tailscale's DERP servers, and only use those\nspecified in this DERPMap. If there are none set outside of the defaults, this is a noop.",
3248
+
"type": "boolean"
3249
+
},
3250
+
"regions": {
3251
+
"description": "Regions is the set of geographic regions running DERP node(s).\n\nIt's keyed by the DERPRegion.RegionID.\n\nThe numbers are not necessarily contiguous.",
3252
+
"type": "object",
3253
+
"additionalProperties": {
3254
+
"$ref": "#/definitions/tailcfg.DERPRegion"
3255
+
}
3256
+
}
3257
+
}
3258
+
},
3259
+
"tailcfg.DERPNode": {
3260
+
"type": "object",
3261
+
"properties": {
3262
+
"certName": {
3263
+
"description": "CertName optionally specifies the expected TLS cert common\nname. If empty, HostName is used. If CertName is non-empty,\nHostName is only used for the TCP dial (if IPv4/IPv6 are\nnot present) + TLS ClientHello.",
3264
+
"type": "string"
3265
+
},
3266
+
"derpport": {
3267
+
"description": "DERPPort optionally provides an alternate TLS port number\nfor the DERP HTTPS server.\n\nIf zero, 443 is used.",
3268
+
"type": "integer"
3269
+
},
3270
+
"forceHTTP": {
3271
+
"description": "ForceHTTP is used by unit tests to force HTTP.\nIt should not be set by users.",
3272
+
"type": "boolean"
3273
+
},
3274
+
"hostName": {
3275
+
"description": "HostName is the DERP node's hostname.\n\nIt is required but need not be unique; multiple nodes may\nhave the same HostName but vary in configuration otherwise.",
3276
+
"type": "string"
3277
+
},
3278
+
"insecureForTests": {
3279
+
"description": "InsecureForTests is used by unit tests to disable TLS verification.\nIt should not be set by users.",
3280
+
"type": "boolean"
3281
+
},
3282
+
"ipv4": {
3283
+
"description": "IPv4 optionally forces an IPv4 address to use, instead of using DNS.\nIf empty, A record(s) from DNS lookups of HostName are used.\nIf the string is not an IPv4 address, IPv4 is not used; the\nconventional string to disable IPv4 (and not use DNS) is\n\"none\".",
3284
+
"type": "string"
3285
+
},
3286
+
"ipv6": {
3287
+
"description": "IPv6 optionally forces an IPv6 address to use, instead of using DNS.\nIf empty, AAAA record(s) from DNS lookups of HostName are used.\nIf the string is not an IPv6 address, IPv6 is not used; the\nconventional string to disable IPv6 (and not use DNS) is\n\"none\".",
3288
+
"type": "string"
3289
+
},
3290
+
"name": {
3291
+
"description": "Name is a unique node name (across all regions).\nIt is not a host name.\nIt's typically of the form \"1b\", \"2a\", \"3b\", etc. (region\nID + suffix within that region)",
3292
+
"type": "string"
3293
+
},
3294
+
"regionID": {
3295
+
"description": "RegionID is the RegionID of the DERPRegion that this node\nis running in.",
3296
+
"type": "integer"
3297
+
},
3298
+
"stunonly": {
3299
+
"description": "STUNOnly marks a node as only a STUN server and not a DERP\nserver.",
3300
+
"type": "boolean"
3301
+
},
3302
+
"stunport": {
3303
+
"description": "Port optionally specifies a STUN port to use.\nZero means 3478.\nTo disable STUN on this node, use -1.",
3304
+
"type": "integer"
3305
+
},
3306
+
"stuntestIP": {
3307
+
"description": "STUNTestIP is used in tests to override the STUN server's IP.\nIf empty, it's assumed to be the same as the DERP server.",
3308
+
"type": "string"
3309
+
}
3310
+
}
3311
+
},
3312
+
"tailcfg.DERPRegion": {
3313
+
"type": "object",
3314
+
"properties": {
3315
+
"avoid": {
3316
+
"description": "Avoid is whether the client should avoid picking this as its home\nregion. The region should only be used if a peer is there.\nClients already using this region as their home should migrate\naway to a new region without Avoid set.",
3317
+
"type": "boolean"
3318
+
},
3319
+
"embeddedRelay": {
3320
+
"description": "EmbeddedRelay is true when the region is bundled with the Coder\ncontrol plane.",
3321
+
"type": "boolean"
3322
+
},
3323
+
"nodes": {
3324
+
"description": "Nodes are the DERP nodes running in this region, in\npriority order for the current client. Client TLS\nconnections should ideally only go to the first entry\n(falling back to the second if necessary). STUN packets\nshould go to the first 1 or 2.\n\nIf nodes within a region route packets amongst themselves,\nbut not to other regions. That said, each user/domain\nshould get a the same preferred node order, so if all nodes\nfor a user/network pick the first one (as they should, when\nthings are healthy), the inter-cluster routing is minimal\nto zero.",
3325
+
"type": "array",
3326
+
"items": {
3327
+
"$ref": "#/definitions/tailcfg.DERPNode"
3328
+
}
3329
+
},
3330
+
"regionCode": {
3331
+
"description": "RegionCode is a short name for the region. It's usually a popular\ncity or airport code in the region: \"nyc\", \"sf\", \"sin\",\n\"fra\", etc.",
3332
+
"type": "string"
3333
+
},
3334
+
"regionID": {
3335
+
"description": "RegionID is a unique integer for a geographic region.\n\nIt corresponds to the legacy derpN.tailscale.com hostnames\nused by older clients. (Older clients will continue to resolve\nderpN.tailscale.com when contacting peers, rather than use\nthe server-provided DERPMap)\n\nRegionIDs must be non-zero, positive, and guaranteed to fit\nin a JavaScript number.\n\nRegionIDs in range 900-999 are reserved for end users to run their\nown DERP nodes.",
3336
+
"type": "integer"
3337
+
},
3338
+
"regionName": {
3339
+
"description": "RegionName is a long English name for the region: \"New York City\",\n\"San Francisco\", \"Singapore\", \"Frankfurt\", etc.",
0 commit comments