@distilled.cloud/tailscale 1.0.0-rc.20 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +17 -8
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +25 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +15 -8
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/tailscale.d.ts +40 -86
- package/lib/services/tailscale.d.ts.map +1 -1
- package/lib/services/tailscale.js +130 -133
- package/lib/services/tailscale.js.map +1 -1
- package/lib/services.lazy/tailscale.js +3 -3
- package/lib/traits.d.ts.map +1 -1
- package/lib/unstable-services/index.d.ts +2 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +1 -0
- package/lib/unstable-services/tailscale.d.ts +129 -0
- package/lib/unstable-services/tailscale.d.ts.map +1 -0
- package/lib/unstable-services/tailscale.js +2 -0
- package/lib/unstable-services/tailscale.js.map +1 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/tailscale.js +1 -0
- package/package.json +12 -5
- package/src/credentials.ts +78 -98
- package/src/errors.ts +23 -1
- package/src/protocol.ts +41 -44
- package/src/services/tailscale.ts +758 -811
- package/src/unstable-services/index.ts +2 -0
- package/src/unstable-services/tailscale.ts +319 -0
|
@@ -4,8 +4,7 @@ import * as C from "@distilled.cloud/core/category";
|
|
|
4
4
|
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
6
|
import type * as Redacted from "effect/Redacted";
|
|
7
|
-
import {
|
|
8
|
-
import { paginateCursor } from "../pagination.ts";
|
|
7
|
+
import { TailscaleServiceErrors } from "../errors.ts";
|
|
9
8
|
import { TailscaleProtocol, type TailscaleOpError, type TailscaleOpContext } from "../protocol.ts";
|
|
10
9
|
import * as Retry from "../retry.ts";
|
|
11
10
|
import * as T from "../traits.ts";
|
|
@@ -31,23 +30,39 @@ export class BadRequest
|
|
|
31
30
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
32
31
|
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
33
32
|
message: S.String,
|
|
33
|
+
body: /*@__PURE__*/ S.optional(
|
|
34
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
35
|
+
),
|
|
36
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
34
37
|
}).pipe(C.withBadRequestError),
|
|
35
38
|
[{ status: 400 }],
|
|
36
|
-
)
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
declare readonly body?: Error | string;
|
|
42
|
+
}
|
|
37
43
|
|
|
38
44
|
export class Conflict
|
|
39
45
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
40
46
|
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
41
47
|
message: S.String,
|
|
48
|
+
body: /*@__PURE__*/ S.optional(
|
|
49
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
50
|
+
),
|
|
51
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
42
52
|
}).pipe(C.withConflictError),
|
|
43
53
|
[{ status: 409 }],
|
|
44
|
-
)
|
|
54
|
+
)
|
|
55
|
+
{
|
|
56
|
+
declare readonly body?: Error | string;
|
|
57
|
+
}
|
|
45
58
|
|
|
46
59
|
/** The device invite does not exist: it was deleted, its device was deleted, or the ID is malformed (Tailscale answers HTTP 400 with `invalid invite`). */
|
|
47
60
|
export class DeviceInviteNotFound
|
|
48
61
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
49
62
|
/*@__PURE__*/ S.TaggedError<DeviceInviteNotFound>()("DeviceInviteNotFound", {
|
|
50
63
|
message: S.String,
|
|
64
|
+
body: /*@__PURE__*/ S.optional(S.Unknown),
|
|
65
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
51
66
|
}).pipe(C.withBadRequestError),
|
|
52
67
|
[{ status: 400, message: { includes: "invalid invite" } }],
|
|
53
68
|
) {}
|
|
@@ -57,6 +72,10 @@ export class FeatureNotAvailable
|
|
|
57
72
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
58
73
|
/*@__PURE__*/ S.TaggedError<FeatureNotAvailable>()("FeatureNotAvailable", {
|
|
59
74
|
message: S.String,
|
|
75
|
+
body: /*@__PURE__*/ S.optional(
|
|
76
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
77
|
+
),
|
|
78
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
60
79
|
}).pipe(C.withAuthError),
|
|
61
80
|
[
|
|
62
81
|
{ status: 403, message: { includes: "feature not available on current billing plan" } },
|
|
@@ -64,66 +83,94 @@ export class FeatureNotAvailable
|
|
|
64
83
|
{ status: 403, message: { includes: "current plan does not allow" } },
|
|
65
84
|
{ status: 400, message: { includes: "current plan does not allow" } },
|
|
66
85
|
],
|
|
67
|
-
)
|
|
86
|
+
)
|
|
87
|
+
{
|
|
88
|
+
declare readonly body?: Error | string;
|
|
89
|
+
}
|
|
68
90
|
|
|
69
91
|
export class Forbidden
|
|
70
92
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
71
93
|
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
72
94
|
message: S.String,
|
|
95
|
+
body: /*@__PURE__*/ S.optional(
|
|
96
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
97
|
+
),
|
|
98
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
73
99
|
}).pipe(C.withAuthError),
|
|
74
100
|
[{ status: 403 }],
|
|
75
|
-
)
|
|
101
|
+
)
|
|
102
|
+
{
|
|
103
|
+
declare readonly body?: Error | string;
|
|
104
|
+
}
|
|
76
105
|
|
|
77
106
|
export class NotFound
|
|
78
107
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
79
108
|
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
80
109
|
message: S.String,
|
|
110
|
+
body: /*@__PURE__*/ S.optional(
|
|
111
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
112
|
+
),
|
|
113
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
81
114
|
}).pipe(C.withBadRequestError),
|
|
82
115
|
[{ status: 404 }],
|
|
83
|
-
)
|
|
116
|
+
)
|
|
117
|
+
{
|
|
118
|
+
declare readonly body?: Error | string;
|
|
119
|
+
}
|
|
84
120
|
|
|
85
121
|
export class PreconditionFailed
|
|
86
122
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
87
123
|
/*@__PURE__*/ S.TaggedError<PreconditionFailed>()("PreconditionFailed", {
|
|
88
124
|
message: S.String,
|
|
125
|
+
body: /*@__PURE__*/ S.optional(
|
|
126
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
127
|
+
),
|
|
128
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
89
129
|
}),
|
|
90
130
|
[{ status: 412 }],
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
96
|
-
/*@__PURE__*/ S.TaggedError<TailnetDisplayNameAlreadyExists>()(
|
|
97
|
-
"TailnetDisplayNameAlreadyExists",
|
|
98
|
-
{
|
|
99
|
-
message: S.String,
|
|
100
|
-
},
|
|
101
|
-
).pipe(C.withBadRequestError),
|
|
102
|
-
[{ status: 400, message: { includes: "display names must be unique" } }],
|
|
103
|
-
) {}
|
|
131
|
+
)
|
|
132
|
+
{
|
|
133
|
+
declare readonly body?: Error | string;
|
|
134
|
+
}
|
|
104
135
|
|
|
105
136
|
/** The credential cannot reach this tailnet: the tailnet ID is wrong, or the tailnet is one the credential has no access to (HTTP 404, 'tailnet "<id>" not found'). A missing object in a tailnet the credential can reach is NotFound instead. */
|
|
106
137
|
export class TailnetNotFound
|
|
107
138
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
108
139
|
/*@__PURE__*/ S.TaggedError<TailnetNotFound>()("TailnetNotFound", {
|
|
109
140
|
message: S.String,
|
|
141
|
+
body: /*@__PURE__*/ S.optional(
|
|
142
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(0, __c0, 0)), S.String]),
|
|
143
|
+
),
|
|
144
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
110
145
|
}).pipe(C.withBadRequestError),
|
|
111
146
|
[{ status: 404, message: { matches: '^tailnet ".*" not found$' } }],
|
|
112
|
-
)
|
|
147
|
+
)
|
|
148
|
+
{
|
|
149
|
+
declare readonly body?: Error | string;
|
|
150
|
+
}
|
|
113
151
|
|
|
114
152
|
export class UnprocessableEntity
|
|
115
153
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
116
154
|
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
117
155
|
message: S.String,
|
|
156
|
+
body: /*@__PURE__*/ S.optional(
|
|
157
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(760, __c95, 0)), S.String]),
|
|
158
|
+
),
|
|
159
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
118
160
|
}).pipe(C.withBadRequestError),
|
|
119
161
|
[{ status: 422 }],
|
|
120
|
-
)
|
|
162
|
+
)
|
|
163
|
+
{
|
|
164
|
+
declare readonly body?: Error422Body | string;
|
|
165
|
+
}
|
|
121
166
|
|
|
122
167
|
/** The operation is only permitted for user-owned keys, such as a user's API access token, and the credential is not one (HTTP 403, 'operation only permitted for user-owned keys'). */
|
|
123
168
|
export class UserOwnedKeyRequired
|
|
124
169
|
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
125
170
|
/*@__PURE__*/ S.TaggedError<UserOwnedKeyRequired>()("UserOwnedKeyRequired", {
|
|
126
171
|
message: S.String,
|
|
172
|
+
body: /*@__PURE__*/ S.optional(S.Unknown),
|
|
173
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
127
174
|
}).pipe(C.withAuthError),
|
|
128
175
|
[{ status: 403, message: { includes: "operation only permitted for user-owned keys" } }],
|
|
129
176
|
) {}
|
|
@@ -218,7 +265,7 @@ export interface BatchUpdateCustomDevicePostureAttributesRequest {
|
|
|
218
265
|
/** An optional comment indicating why attributes are being set, which will be added to the audit log. */
|
|
219
266
|
comment?: string | undefined;
|
|
220
267
|
}
|
|
221
|
-
export type BatchUpdateCustomDevicePostureAttributesResponse = unknown;
|
|
268
|
+
export type BatchUpdateCustomDevicePostureAttributesResponse = unknown | null;
|
|
222
269
|
export interface CreateDeviceInvitesRequestBodyItem {
|
|
223
270
|
/** Whether the invite can be accepted more than once. When set to `true`, it results in an invite that can be accepted up to 1,000 times. */
|
|
224
271
|
multiUse?: boolean | undefined;
|
|
@@ -413,34 +460,6 @@ export interface OAuthApp {
|
|
|
413
460
|
/** The time the OAuth app was last updated. */
|
|
414
461
|
updated?: string | undefined;
|
|
415
462
|
}
|
|
416
|
-
export interface CreateOrganizationTailnetRequest {
|
|
417
|
-
/** The organization identifier. Use a dash (`-`) to reference the organization of the access token being used to make the API call. */
|
|
418
|
-
organization: string;
|
|
419
|
-
/** A custom name for the tailnet. It can contain letters, numbers, spaces, apostrophes, and hyphens, and must be unique within the organization. */
|
|
420
|
-
displayName: string;
|
|
421
|
-
}
|
|
422
|
-
/** OAuth client credentials with the `all` scope for the newly created tailnet. The secret is returned only once. */
|
|
423
|
-
export interface TailnetOAuthClient {
|
|
424
|
-
/** A stable, globally unique identifier for the OAuth client. */
|
|
425
|
-
id?: string | undefined;
|
|
426
|
-
/** The OAuth client secret. */
|
|
427
|
-
secret?: Redacted.Redacted<string> | undefined;
|
|
428
|
-
}
|
|
429
|
-
export interface CreateOrganizationTailnetResponse {
|
|
430
|
-
/** A stable, globally unique identifier for the tailnet. */
|
|
431
|
-
id?: string | undefined;
|
|
432
|
-
/** The tailnet name provided in the request. */
|
|
433
|
-
displayName?: string | undefined;
|
|
434
|
-
/** A stable, globally unique identifier for the organization. */
|
|
435
|
-
orgId?: string | undefined;
|
|
436
|
-
/** The DNS suffix used to construct fully qualified domain names for devices in this tailnet. */
|
|
437
|
-
dnsName?: string | undefined;
|
|
438
|
-
/** RFC3339 timestamp of when the tailnet was created. */
|
|
439
|
-
createdAt?: string | undefined;
|
|
440
|
-
oauthClient?: TailnetOAuthClient | undefined;
|
|
441
|
-
/** True if the requested tailnet already exists. */
|
|
442
|
-
alreadyExists?: boolean | undefined;
|
|
443
|
-
}
|
|
444
463
|
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
445
464
|
export type CreatePostureIntegrationRequestProvider =
|
|
446
465
|
| "falcon"
|
|
@@ -663,11 +682,6 @@ export interface DeleteServiceRequest {
|
|
|
663
682
|
serviceName: string;
|
|
664
683
|
}
|
|
665
684
|
export interface DeleteServiceResponse {}
|
|
666
|
-
export interface DeleteTailnetRequest {
|
|
667
|
-
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
668
|
-
tailnet: string;
|
|
669
|
-
}
|
|
670
|
-
export interface DeleteTailnetResponse {}
|
|
671
685
|
export interface DeleteUserRequest {
|
|
672
686
|
/** ID of the user. */
|
|
673
687
|
userId: string;
|
|
@@ -1683,34 +1697,6 @@ export type ListOAuthAppsResponseOauthAppsList = Array<OAuthApp>;
|
|
|
1683
1697
|
export interface ListOAuthAppsResponse {
|
|
1684
1698
|
oauthApps?: ListOAuthAppsResponseOauthAppsList | undefined;
|
|
1685
1699
|
}
|
|
1686
|
-
export interface ListOrganizationTailnetsRequest {
|
|
1687
|
-
/** The organization identifier. Use a dash (`-`) to reference the organization of the access token being used to make the API call. */
|
|
1688
|
-
organization: string;
|
|
1689
|
-
/** Maximum number of tailnets to return per page; defaults to the maximum of 100. */
|
|
1690
|
-
limit?: number | undefined;
|
|
1691
|
-
/** Opaque pagination cursor from a previous response. */
|
|
1692
|
-
cursor?: string | undefined;
|
|
1693
|
-
}
|
|
1694
|
-
export interface OrganizationTailnet {
|
|
1695
|
-
/** A stable, globally unique identifier for the tailnet. */
|
|
1696
|
-
id?: string | undefined;
|
|
1697
|
-
/** The tailnet's display name. */
|
|
1698
|
-
displayName?: string | undefined;
|
|
1699
|
-
/** A stable, globally unique identifier for the organization. */
|
|
1700
|
-
orgId?: string | undefined;
|
|
1701
|
-
/** RFC3339 timestamp of when the tailnet was created. */
|
|
1702
|
-
createdAt?: string | undefined;
|
|
1703
|
-
}
|
|
1704
|
-
/** Tailnets in the organization. */
|
|
1705
|
-
export type ListOrganizationTailnetsResponseTailnetsList = Array<OrganizationTailnet>;
|
|
1706
|
-
export interface ListOrganizationTailnetsResponse {
|
|
1707
|
-
/** Tailnets in the organization. */
|
|
1708
|
-
tailnets: ListOrganizationTailnetsResponseTailnetsList;
|
|
1709
|
-
/** Opaque pagination cursor for the next page. */
|
|
1710
|
-
cursor?: string | undefined;
|
|
1711
|
-
/** Total number of tailnets in the organization. */
|
|
1712
|
-
totalCount?: number | undefined;
|
|
1713
|
-
}
|
|
1714
1700
|
export interface ListServiceHostsRequest {
|
|
1715
1701
|
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1716
1702
|
tailnet: string;
|
|
@@ -2209,7 +2195,7 @@ export interface UpdateTailnetSettingsRequest {
|
|
|
2209
2195
|
/** Whether provisioning of [HTTPS certificates](/docs/how-to/set-up-https-certificates) is enabled for this tailnet. */
|
|
2210
2196
|
httpsEnabled?: boolean | null | undefined;
|
|
2211
2197
|
}
|
|
2212
|
-
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
2198
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). A pending user cannot be made the owner until they are approved. */
|
|
2213
2199
|
export type UpdateUserRoleRequestRole =
|
|
2214
2200
|
| "owner"
|
|
2215
2201
|
| "member"
|
|
@@ -2221,7 +2207,7 @@ export type UpdateUserRoleRequestRole =
|
|
|
2221
2207
|
export interface UpdateUserRoleRequest {
|
|
2222
2208
|
/** ID of the user. */
|
|
2223
2209
|
userId: string;
|
|
2224
|
-
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
2210
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). A pending user cannot be made the owner until they are approved. */
|
|
2225
2211
|
role?: UpdateUserRoleRequestRole | (string & {}) | undefined;
|
|
2226
2212
|
}
|
|
2227
2213
|
export interface UpdateUserRoleResponse {}
|
|
@@ -2249,6 +2235,13 @@ export interface ValidateAwsExternalIdRequest {
|
|
|
2249
2235
|
roleArn?: string | undefined;
|
|
2250
2236
|
}
|
|
2251
2237
|
export interface ValidateAwsExternalIdResponse {}
|
|
2238
|
+
export interface Error {
|
|
2239
|
+
message: string;
|
|
2240
|
+
}
|
|
2241
|
+
export interface Error422Body {
|
|
2242
|
+
/** The reason for validation failure. */
|
|
2243
|
+
message?: string | undefined;
|
|
2244
|
+
}
|
|
2252
2245
|
export type AcceptDeviceInviteError = BadRequest | TailscaleOpError;
|
|
2253
2246
|
/** Accept a device invite Accepts the invitation to share a device into the requesting user's tailnet. Note that device invites cannot be accepted using an API access token generated from an OAuth client as the shared device is scoped to a user. */
|
|
2254
2247
|
export const acceptDeviceInvite: API.OperationMethod<
|
|
@@ -2257,9 +2250,10 @@ export const acceptDeviceInvite: API.OperationMethod<
|
|
|
2257
2250
|
AcceptDeviceInviteError,
|
|
2258
2251
|
TailscaleOpContext
|
|
2259
2252
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2260
|
-
input: __S(
|
|
2261
|
-
output: __S(
|
|
2262
|
-
errors: [BadRequest
|
|
2253
|
+
input: __S(8, __c1, 0) as any as S.Schema<AcceptDeviceInviteRequest>,
|
|
2254
|
+
output: __S(11, __c1, 3) as any as S.Schema<AcceptDeviceInviteResponse>,
|
|
2255
|
+
errors: [BadRequest],
|
|
2256
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2263
2257
|
protocol: TailscaleProtocol,
|
|
2264
2258
|
retry: Retry.Retry,
|
|
2265
2259
|
telemetry: TELEMETRY,
|
|
@@ -2274,9 +2268,10 @@ export const approveUser: API.OperationMethod<
|
|
|
2274
2268
|
ApproveUserError,
|
|
2275
2269
|
TailscaleOpContext
|
|
2276
2270
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2277
|
-
input: __S(
|
|
2278
|
-
output: __S(
|
|
2279
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
2271
|
+
input: __S(16, __c2, 0) as any as S.Schema<ApproveUserRequest>,
|
|
2272
|
+
output: __S(24, __c3, 0) as any as S.Schema<ApproveUserResponse>,
|
|
2273
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2274
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2280
2275
|
protocol: TailscaleProtocol,
|
|
2281
2276
|
retry: Retry.Retry,
|
|
2282
2277
|
telemetry: TELEMETRY,
|
|
@@ -2291,9 +2286,10 @@ export const authorizeDevice: API.OperationMethod<
|
|
|
2291
2286
|
AuthorizeDeviceError,
|
|
2292
2287
|
TailscaleOpContext
|
|
2293
2288
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2294
|
-
input: __S(
|
|
2295
|
-
output: __S(
|
|
2296
|
-
errors: [BadRequest, NotFound
|
|
2289
|
+
input: __S(32, __c4, 0) as any as S.Schema<AuthorizeDeviceRequest>,
|
|
2290
|
+
output: __S(24, __c3, 0) as any as S.Schema<AuthorizeDeviceResponse>,
|
|
2291
|
+
errors: [BadRequest, NotFound],
|
|
2292
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2297
2293
|
protocol: TailscaleProtocol,
|
|
2298
2294
|
retry: Retry.Retry,
|
|
2299
2295
|
telemetry: TELEMETRY,
|
|
@@ -2312,9 +2308,10 @@ export const batchUpdateCustomDevicePostureAttributes: API.OperationMethod<
|
|
|
2312
2308
|
BatchUpdateCustomDevicePostureAttributesError,
|
|
2313
2309
|
TailscaleOpContext
|
|
2314
2310
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2315
|
-
input: __S(
|
|
2316
|
-
output: __S(
|
|
2317
|
-
errors: [BadRequest, NotFound, TailnetNotFound
|
|
2311
|
+
input: __S(43, __c5, 3) as any as S.Schema<BatchUpdateCustomDevicePostureAttributesRequest>,
|
|
2312
|
+
output: __S(44, __c5, 4) as any as S.Schema<BatchUpdateCustomDevicePostureAttributesResponse>,
|
|
2313
|
+
errors: [BadRequest, NotFound, TailnetNotFound],
|
|
2314
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2318
2315
|
protocol: TailscaleProtocol,
|
|
2319
2316
|
retry: Retry.Retry,
|
|
2320
2317
|
telemetry: TELEMETRY,
|
|
@@ -2329,9 +2326,10 @@ export const createDeviceInvites: API.OperationMethod<
|
|
|
2329
2326
|
CreateDeviceInvitesError,
|
|
2330
2327
|
TailscaleOpContext
|
|
2331
2328
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2332
|
-
input: __S(
|
|
2333
|
-
output: __S(
|
|
2334
|
-
errors: [NotFound
|
|
2329
|
+
input: __S(50, __c6, 2) as any as S.Schema<CreateDeviceInvitesRequest>,
|
|
2330
|
+
output: __S(65, __c8, 1) as any as S.Schema<CreateDeviceInvitesResponse>,
|
|
2331
|
+
errors: [NotFound],
|
|
2332
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2335
2333
|
protocol: TailscaleProtocol,
|
|
2336
2334
|
retry: Retry.Retry,
|
|
2337
2335
|
telemetry: TELEMETRY,
|
|
@@ -2346,9 +2344,10 @@ export const createKey: API.OperationMethod<
|
|
|
2346
2344
|
CreateKeyError,
|
|
2347
2345
|
TailscaleOpContext
|
|
2348
2346
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2349
|
-
input: __S(
|
|
2350
|
-
output: __S(
|
|
2351
|
-
errors: [NotFound, TailnetNotFound
|
|
2347
|
+
input: __S(72, __c9, 0) as any as S.Schema<CreateKeyRequest>,
|
|
2348
|
+
output: __S(100, __c12, 4) as any as S.Schema<Key>,
|
|
2349
|
+
errors: [NotFound, TailnetNotFound],
|
|
2350
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2352
2351
|
protocol: TailscaleProtocol,
|
|
2353
2352
|
retry: Retry.Retry,
|
|
2354
2353
|
telemetry: TELEMETRY,
|
|
@@ -2368,37 +2367,16 @@ export const createOAuthApp: API.OperationMethod<
|
|
|
2368
2367
|
CreateOAuthAppError,
|
|
2369
2368
|
TailscaleOpContext
|
|
2370
2369
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2371
|
-
input: __S(
|
|
2372
|
-
output: __S(
|
|
2373
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2370
|
+
input: __S(104, __c13, 0) as any as S.Schema<CreateOAuthAppRequest>,
|
|
2371
|
+
output: __S(112, __c14, 0) as any as S.Schema<OAuthApp>,
|
|
2372
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2373
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2374
2374
|
protocol: TailscaleProtocol,
|
|
2375
2375
|
retry: Retry.Retry,
|
|
2376
2376
|
telemetry: TELEMETRY,
|
|
2377
2377
|
span: "CreateOAuthApp",
|
|
2378
2378
|
}));
|
|
2379
2379
|
|
|
2380
|
-
export type CreateOrganizationTailnetError =
|
|
2381
|
-
| BadRequest
|
|
2382
|
-
| Forbidden
|
|
2383
|
-
| NotFound
|
|
2384
|
-
| TailnetDisplayNameAlreadyExists
|
|
2385
|
-
| TailscaleOpError;
|
|
2386
|
-
/** Create a tailnet Create an [API-only tailnet](https://tailscale.com/docs/features/tailnet-creation-api) in the organization. API-only tailnets have no human users and do not appear in the admin console. Use them for applications and infrastructure that manage tailnets entirely through the API. All plans can create a maximum of 10 tailnets, including their original tailnet. If your use case requires more than 10 tailnets, [contact sales](https://tailscale.com/contact/sales). The response includes an OAuth client for the new tailnet. The client secret is returned only in this response and cannot be retrieved later, so be sure to record it. OAuth Scope: `tailnets`. */
|
|
2387
|
-
export const createOrganizationTailnet: API.OperationMethod<
|
|
2388
|
-
CreateOrganizationTailnetRequest,
|
|
2389
|
-
CreateOrganizationTailnetResponse,
|
|
2390
|
-
CreateOrganizationTailnetError,
|
|
2391
|
-
TailscaleOpContext
|
|
2392
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
2393
|
-
input: __S(144, __c18, 0) as any as S.Schema<CreateOrganizationTailnetRequest>,
|
|
2394
|
-
output: __S(146, __c18, 2) as any as S.Schema<CreateOrganizationTailnetResponse>,
|
|
2395
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetDisplayNameAlreadyExists, UnknownTailscaleError],
|
|
2396
|
-
protocol: TailscaleProtocol,
|
|
2397
|
-
retry: Retry.Retry,
|
|
2398
|
-
telemetry: TELEMETRY,
|
|
2399
|
-
span: "CreateOrganizationTailnet",
|
|
2400
|
-
}));
|
|
2401
|
-
|
|
2402
2380
|
export type CreatePostureIntegrationError =
|
|
2403
2381
|
| Forbidden
|
|
2404
2382
|
| Conflict
|
|
@@ -2411,9 +2389,10 @@ export const createPostureIntegration: API.OperationMethod<
|
|
|
2411
2389
|
CreatePostureIntegrationError,
|
|
2412
2390
|
TailscaleOpContext
|
|
2413
2391
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2414
|
-
input: __S(
|
|
2415
|
-
output: __S(
|
|
2416
|
-
errors: [Forbidden, Conflict, TailnetNotFound
|
|
2392
|
+
input: __S(120, __c15, 0) as any as S.Schema<CreatePostureIntegrationRequest>,
|
|
2393
|
+
output: __S(129, __c16, 1) as any as S.Schema<PostureIntegrationOutput>,
|
|
2394
|
+
errors: [Forbidden, Conflict, TailnetNotFound],
|
|
2395
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2417
2396
|
protocol: TailscaleProtocol,
|
|
2418
2397
|
retry: Retry.Retry,
|
|
2419
2398
|
telemetry: TELEMETRY,
|
|
@@ -2432,9 +2411,10 @@ export const createUserInvites: API.OperationMethod<
|
|
|
2432
2411
|
CreateUserInvitesError,
|
|
2433
2412
|
TailscaleOpContext
|
|
2434
2413
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2435
|
-
input: __S(
|
|
2436
|
-
output: __S(
|
|
2437
|
-
errors: [NotFound, FeatureNotAvailable, TailnetNotFound
|
|
2414
|
+
input: __S(138, __c17, 2) as any as S.Schema<CreateUserInvitesRequest>,
|
|
2415
|
+
output: __S(153, __c19, 1) as any as S.Schema<CreateUserInvitesResponse>,
|
|
2416
|
+
errors: [NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
2417
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2438
2418
|
protocol: TailscaleProtocol,
|
|
2439
2419
|
retry: Retry.Retry,
|
|
2440
2420
|
telemetry: TELEMETRY,
|
|
@@ -2454,9 +2434,10 @@ export const createWebhook: API.OperationMethod<
|
|
|
2454
2434
|
CreateWebhookError,
|
|
2455
2435
|
TailscaleOpContext
|
|
2456
2436
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2457
|
-
input: __S(
|
|
2458
|
-
output: __S(
|
|
2459
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2437
|
+
input: __S(160, __c20, 0) as any as S.Schema<CreateWebhookRequest>,
|
|
2438
|
+
output: __S(176, __c22, 0) as any as S.Schema<Webhook>,
|
|
2439
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2440
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2460
2441
|
protocol: TailscaleProtocol,
|
|
2461
2442
|
retry: Retry.Retry,
|
|
2462
2443
|
telemetry: TELEMETRY,
|
|
@@ -2474,9 +2455,10 @@ export const deleteCustomDevicePostureAttributes: API.OperationMethod<
|
|
|
2474
2455
|
DeleteCustomDevicePostureAttributesError,
|
|
2475
2456
|
TailscaleOpContext
|
|
2476
2457
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2477
|
-
input: __S(
|
|
2478
|
-
output: __S(
|
|
2479
|
-
errors: [NotFound, FeatureNotAvailable
|
|
2458
|
+
input: __S(184, __c23, 0) as any as S.Schema<DeleteCustomDevicePostureAttributesRequest>,
|
|
2459
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteCustomDevicePostureAttributesResponse>,
|
|
2460
|
+
errors: [NotFound, FeatureNotAvailable],
|
|
2461
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2480
2462
|
protocol: TailscaleProtocol,
|
|
2481
2463
|
retry: Retry.Retry,
|
|
2482
2464
|
telemetry: TELEMETRY,
|
|
@@ -2491,9 +2473,10 @@ export const deleteDevice: API.OperationMethod<
|
|
|
2491
2473
|
DeleteDeviceError,
|
|
2492
2474
|
TailscaleOpContext
|
|
2493
2475
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2494
|
-
input: __S(
|
|
2495
|
-
output: __S(
|
|
2496
|
-
errors: [BadRequest
|
|
2476
|
+
input: __S(192, __c24, 0) as any as S.Schema<DeleteDeviceRequest>,
|
|
2477
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteDeviceResponse>,
|
|
2478
|
+
errors: [BadRequest],
|
|
2479
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2497
2480
|
protocol: TailscaleProtocol,
|
|
2498
2481
|
retry: Retry.Retry,
|
|
2499
2482
|
telemetry: TELEMETRY,
|
|
@@ -2508,9 +2491,10 @@ export const deleteDeviceInvite: API.OperationMethod<
|
|
|
2508
2491
|
DeleteDeviceInviteError,
|
|
2509
2492
|
TailscaleOpContext
|
|
2510
2493
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2511
|
-
input: __S(
|
|
2512
|
-
output: __S(
|
|
2513
|
-
errors: [NotFound, DeviceInviteNotFound
|
|
2494
|
+
input: __S(200, __c25, 0) as any as S.Schema<DeleteDeviceInviteRequest>,
|
|
2495
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteDeviceInviteResponse>,
|
|
2496
|
+
errors: [NotFound, DeviceInviteNotFound],
|
|
2497
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2514
2498
|
protocol: TailscaleProtocol,
|
|
2515
2499
|
retry: Retry.Retry,
|
|
2516
2500
|
telemetry: TELEMETRY,
|
|
@@ -2525,9 +2509,10 @@ export const deleteKey: API.OperationMethod<
|
|
|
2525
2509
|
DeleteKeyError,
|
|
2526
2510
|
TailscaleOpContext
|
|
2527
2511
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2528
|
-
input: __S(
|
|
2529
|
-
output: __S(
|
|
2530
|
-
errors: [Forbidden, NotFound, TailnetNotFound
|
|
2512
|
+
input: __S(208, __c26, 0) as any as S.Schema<DeleteKeyRequest>,
|
|
2513
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteKeyResponse>,
|
|
2514
|
+
errors: [Forbidden, NotFound, TailnetNotFound],
|
|
2515
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2531
2516
|
protocol: TailscaleProtocol,
|
|
2532
2517
|
retry: Retry.Retry,
|
|
2533
2518
|
telemetry: TELEMETRY,
|
|
@@ -2547,9 +2532,10 @@ export const deleteOAuthApp: API.OperationMethod<
|
|
|
2547
2532
|
DeleteOAuthAppError,
|
|
2548
2533
|
TailscaleOpContext
|
|
2549
2534
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2550
|
-
input: __S(
|
|
2551
|
-
output: __S(
|
|
2552
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2535
|
+
input: __S(216, __c27, 0) as any as S.Schema<DeleteOAuthAppRequest>,
|
|
2536
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteOAuthAppResponse>,
|
|
2537
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2538
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2553
2539
|
protocol: TailscaleProtocol,
|
|
2554
2540
|
retry: Retry.Retry,
|
|
2555
2541
|
telemetry: TELEMETRY,
|
|
@@ -2564,9 +2550,10 @@ export const deletePostureIntegration: API.OperationMethod<
|
|
|
2564
2550
|
DeletePostureIntegrationError,
|
|
2565
2551
|
TailscaleOpContext
|
|
2566
2552
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2567
|
-
input: __S(
|
|
2568
|
-
output: __S(
|
|
2569
|
-
errors: [Forbidden, NotFound
|
|
2553
|
+
input: __S(224, __c28, 0) as any as S.Schema<DeletePostureIntegrationRequest>,
|
|
2554
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeletePostureIntegrationResponse>,
|
|
2555
|
+
errors: [Forbidden, NotFound],
|
|
2556
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2570
2557
|
protocol: TailscaleProtocol,
|
|
2571
2558
|
retry: Retry.Retry,
|
|
2572
2559
|
telemetry: TELEMETRY,
|
|
@@ -2586,32 +2573,16 @@ export const deleteService: API.OperationMethod<
|
|
|
2586
2573
|
DeleteServiceError,
|
|
2587
2574
|
TailscaleOpContext
|
|
2588
2575
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2589
|
-
input: __S(
|
|
2590
|
-
output: __S(
|
|
2591
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2576
|
+
input: __S(232, __c29, 0) as any as S.Schema<DeleteServiceRequest>,
|
|
2577
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteServiceResponse>,
|
|
2578
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2579
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2592
2580
|
protocol: TailscaleProtocol,
|
|
2593
2581
|
retry: Retry.Retry,
|
|
2594
2582
|
telemetry: TELEMETRY,
|
|
2595
2583
|
span: "DeleteService",
|
|
2596
2584
|
}));
|
|
2597
2585
|
|
|
2598
|
-
export type DeleteTailnetError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2599
|
-
/** Delete a tailnet Delete the specified tailnet and all of its users, devices, and configuration. [API-only tailnets](https://tailscale.com/docs/features/tailnet-creation-api) can be deleted using an access token for the tailnet being deleted. You can get a tailnet-specific access token by exchanging either the OAuth client credentials returned when the tailnet was created or an OAuth client from the creating tailnet that has the `all` scope. OAuth Scope: `all`. */
|
|
2600
|
-
export const deleteTailnet: API.OperationMethod<
|
|
2601
|
-
DeleteTailnetRequest,
|
|
2602
|
-
DeleteTailnetResponse,
|
|
2603
|
-
DeleteTailnetError,
|
|
2604
|
-
TailscaleOpContext
|
|
2605
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
2606
|
-
input: __S(272, __c34, 0) as any as S.Schema<DeleteTailnetRequest>,
|
|
2607
|
-
output: __S(48, __c6, 0) as any as S.Schema<DeleteTailnetResponse>,
|
|
2608
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownTailscaleError],
|
|
2609
|
-
protocol: TailscaleProtocol,
|
|
2610
|
-
retry: Retry.Retry,
|
|
2611
|
-
telemetry: TELEMETRY,
|
|
2612
|
-
span: "DeleteTailnet",
|
|
2613
|
-
}));
|
|
2614
|
-
|
|
2615
2586
|
export type DeleteUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2616
2587
|
/** Delete a user Delete a user from their tailnet. Learn more about [deleting users](/docs/features/sharing/how-to/remove-team-members#deleting-users). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot delete their own user. */
|
|
2617
2588
|
export const deleteUser: API.OperationMethod<
|
|
@@ -2620,9 +2591,10 @@ export const deleteUser: API.OperationMethod<
|
|
|
2620
2591
|
DeleteUserError,
|
|
2621
2592
|
TailscaleOpContext
|
|
2622
2593
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2623
|
-
input: __S(
|
|
2624
|
-
output: __S(
|
|
2625
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
2594
|
+
input: __S(240, __c30, 0) as any as S.Schema<DeleteUserRequest>,
|
|
2595
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteUserResponse>,
|
|
2596
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2597
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2626
2598
|
protocol: TailscaleProtocol,
|
|
2627
2599
|
retry: Retry.Retry,
|
|
2628
2600
|
telemetry: TELEMETRY,
|
|
@@ -2637,9 +2609,10 @@ export const deleteUserInvite: API.OperationMethod<
|
|
|
2637
2609
|
DeleteUserInviteError,
|
|
2638
2610
|
TailscaleOpContext
|
|
2639
2611
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2640
|
-
input: __S(
|
|
2641
|
-
output: __S(
|
|
2642
|
-
errors: [NotFound, UserOwnedKeyRequired
|
|
2612
|
+
input: __S(248, __c31, 0) as any as S.Schema<DeleteUserInviteRequest>,
|
|
2613
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteUserInviteResponse>,
|
|
2614
|
+
errors: [NotFound, UserOwnedKeyRequired],
|
|
2615
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2643
2616
|
protocol: TailscaleProtocol,
|
|
2644
2617
|
retry: Retry.Retry,
|
|
2645
2618
|
telemetry: TELEMETRY,
|
|
@@ -2654,9 +2627,10 @@ export const deleteWebhook: API.OperationMethod<
|
|
|
2654
2627
|
DeleteWebhookError,
|
|
2655
2628
|
TailscaleOpContext
|
|
2656
2629
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2657
|
-
input: __S(
|
|
2658
|
-
output: __S(
|
|
2659
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
2630
|
+
input: __S(256, __c32, 0) as any as S.Schema<DeleteWebhookRequest>,
|
|
2631
|
+
output: __S(24, __c3, 0) as any as S.Schema<DeleteWebhookResponse>,
|
|
2632
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2633
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2660
2634
|
protocol: TailscaleProtocol,
|
|
2661
2635
|
retry: Retry.Retry,
|
|
2662
2636
|
telemetry: TELEMETRY,
|
|
@@ -2676,9 +2650,10 @@ export const disableLogStreaming: API.OperationMethod<
|
|
|
2676
2650
|
DisableLogStreamingError,
|
|
2677
2651
|
TailscaleOpContext
|
|
2678
2652
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2679
|
-
input: __S(
|
|
2680
|
-
output: __S(
|
|
2681
|
-
errors: [Forbidden, NotFound, FeatureNotAvailable, TailnetNotFound
|
|
2653
|
+
input: __S(264, __c33, 0) as any as S.Schema<DisableLogStreamingRequest>,
|
|
2654
|
+
output: __S(24, __c3, 0) as any as S.Schema<DisableLogStreamingResponse>,
|
|
2655
|
+
errors: [Forbidden, NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
2656
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2682
2657
|
protocol: TailscaleProtocol,
|
|
2683
2658
|
retry: Retry.Retry,
|
|
2684
2659
|
telemetry: TELEMETRY,
|
|
@@ -2693,9 +2668,10 @@ export const expireDeviceKey: API.OperationMethod<
|
|
|
2693
2668
|
ExpireDeviceKeyError,
|
|
2694
2669
|
TailscaleOpContext
|
|
2695
2670
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2696
|
-
input: __S(
|
|
2697
|
-
output: __S(
|
|
2698
|
-
errors: [NotFound
|
|
2671
|
+
input: __S(272, __c34, 0) as any as S.Schema<ExpireDeviceKeyRequest>,
|
|
2672
|
+
output: __S(24, __c3, 0) as any as S.Schema<ExpireDeviceKeyResponse>,
|
|
2673
|
+
errors: [NotFound],
|
|
2674
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2699
2675
|
protocol: TailscaleProtocol,
|
|
2700
2676
|
retry: Retry.Retry,
|
|
2701
2677
|
telemetry: TELEMETRY,
|
|
@@ -2710,9 +2686,10 @@ export const getAwsExternalId: API.OperationMethod<
|
|
|
2710
2686
|
GetAwsExternalIdError,
|
|
2711
2687
|
TailscaleOpContext
|
|
2712
2688
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2713
|
-
input: __S(
|
|
2714
|
-
output: __S(
|
|
2715
|
-
errors: [Forbidden, NotFound, TailnetNotFound
|
|
2689
|
+
input: __S(280, __c35, 0) as any as S.Schema<GetAwsExternalIdRequest>,
|
|
2690
|
+
output: __S(281, __c35, 1) as any as S.Schema<AwsExternalId>,
|
|
2691
|
+
errors: [Forbidden, NotFound, TailnetNotFound],
|
|
2692
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2716
2693
|
protocol: TailscaleProtocol,
|
|
2717
2694
|
retry: Retry.Retry,
|
|
2718
2695
|
telemetry: TELEMETRY,
|
|
@@ -2727,9 +2704,10 @@ export const getContacts: API.OperationMethod<
|
|
|
2727
2704
|
GetContactsError,
|
|
2728
2705
|
TailscaleOpContext
|
|
2729
2706
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2730
|
-
input: __S(
|
|
2731
|
-
output: __S(
|
|
2732
|
-
errors: [Forbidden, NotFound, TailnetNotFound
|
|
2707
|
+
input: __S(288, __c36, 0) as any as S.Schema<GetContactsRequest>,
|
|
2708
|
+
output: __S(290, __c36, 2) as any as S.Schema<GetContactsResponse>,
|
|
2709
|
+
errors: [Forbidden, NotFound, TailnetNotFound],
|
|
2710
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2733
2711
|
protocol: TailscaleProtocol,
|
|
2734
2712
|
retry: Retry.Retry,
|
|
2735
2713
|
telemetry: TELEMETRY,
|
|
@@ -2744,9 +2722,10 @@ export const getDevice: API.OperationMethod<
|
|
|
2744
2722
|
GetDeviceError,
|
|
2745
2723
|
TailscaleOpContext
|
|
2746
2724
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2747
|
-
input: __S(
|
|
2748
|
-
output: __S(
|
|
2749
|
-
errors: [BadRequest, NotFound
|
|
2725
|
+
input: __S(296, __c37, 0) as any as S.Schema<GetDeviceRequest>,
|
|
2726
|
+
output: __S(311, __c38, 7) as any as S.Schema<Device>,
|
|
2727
|
+
errors: [BadRequest, NotFound],
|
|
2728
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2750
2729
|
protocol: TailscaleProtocol,
|
|
2751
2730
|
retry: Retry.Retry,
|
|
2752
2731
|
telemetry: TELEMETRY,
|
|
@@ -2761,9 +2740,10 @@ export const getDeviceInvite: API.OperationMethod<
|
|
|
2761
2740
|
GetDeviceInviteError,
|
|
2762
2741
|
TailscaleOpContext
|
|
2763
2742
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2764
|
-
input: __S(
|
|
2765
|
-
output: __S(
|
|
2766
|
-
errors: [NotFound, DeviceInviteNotFound
|
|
2743
|
+
input: __S(312, __c39, 0) as any as S.Schema<GetDeviceInviteRequest>,
|
|
2744
|
+
output: __S(57, __c7, 1) as any as S.Schema<DeviceInvite>,
|
|
2745
|
+
errors: [NotFound, DeviceInviteNotFound],
|
|
2746
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2767
2747
|
protocol: TailscaleProtocol,
|
|
2768
2748
|
retry: Retry.Retry,
|
|
2769
2749
|
telemetry: TELEMETRY,
|
|
@@ -2778,9 +2758,10 @@ export const getDevicePostureAttributes: API.OperationMethod<
|
|
|
2778
2758
|
GetDevicePostureAttributesError,
|
|
2779
2759
|
TailscaleOpContext
|
|
2780
2760
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2781
|
-
input: __S(
|
|
2782
|
-
output: __S(
|
|
2783
|
-
errors: [NotFound
|
|
2761
|
+
input: __S(320, __c40, 0) as any as S.Schema<GetDevicePostureAttributesRequest>,
|
|
2762
|
+
output: __S(329, __c41, 1) as any as S.Schema<DevicePostureAttributes>,
|
|
2763
|
+
errors: [NotFound],
|
|
2764
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2784
2765
|
protocol: TailscaleProtocol,
|
|
2785
2766
|
retry: Retry.Retry,
|
|
2786
2767
|
telemetry: TELEMETRY,
|
|
@@ -2795,9 +2776,10 @@ export const getDnsConfiguration: API.OperationMethod<
|
|
|
2795
2776
|
GetDnsConfigurationError,
|
|
2796
2777
|
TailscaleOpContext
|
|
2797
2778
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2798
|
-
input: __S(
|
|
2799
|
-
output: __S(
|
|
2800
|
-
errors: [NotFound, TailnetNotFound
|
|
2779
|
+
input: __S(336, __c42, 0) as any as S.Schema<GetDnsConfigurationRequest>,
|
|
2780
|
+
output: __S(348, __c43, 4) as any as S.Schema<DnsConfiguration>,
|
|
2781
|
+
errors: [NotFound, TailnetNotFound],
|
|
2782
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2801
2783
|
protocol: TailscaleProtocol,
|
|
2802
2784
|
retry: Retry.Retry,
|
|
2803
2785
|
telemetry: TELEMETRY,
|
|
@@ -2812,9 +2794,10 @@ export const getDnsPreferences: API.OperationMethod<
|
|
|
2812
2794
|
GetDnsPreferencesError,
|
|
2813
2795
|
TailscaleOpContext
|
|
2814
2796
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2815
|
-
input: __S(
|
|
2816
|
-
output: __S(
|
|
2817
|
-
errors: [NotFound, TailnetNotFound
|
|
2797
|
+
input: __S(352, __c44, 0) as any as S.Schema<GetDnsPreferencesRequest>,
|
|
2798
|
+
output: __S(360, __c45, 0) as any as S.Schema<DnsPreferences>,
|
|
2799
|
+
errors: [NotFound, TailnetNotFound],
|
|
2800
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2818
2801
|
protocol: TailscaleProtocol,
|
|
2819
2802
|
retry: Retry.Retry,
|
|
2820
2803
|
telemetry: TELEMETRY,
|
|
@@ -2825,9 +2808,10 @@ export type GetKeyError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
|
2825
2808
|
/** Get key Returns a JSON object with information about a specific api access token, OAuth client, federated identity, or auth key, such as its creation and expiration dates and its capabilities. OAuth Scope: `api_access_tokens:read` grants access to personal API access tokens. OAuth Scope: `auth_keys:read` grants access to machine auth keys. OAuth Scope: `oauth_keys:read` grants access to OAuth clients and OAuth tokens. OAuth Scope: `federated_keys:read` grants access to federated identities. */
|
|
2826
2809
|
export const getKey: API.OperationMethod<GetKeyRequest, Key, GetKeyError, TailscaleOpContext> =
|
|
2827
2810
|
/*@__PURE__*/ API.make(() => ({
|
|
2828
|
-
input: __S(
|
|
2829
|
-
output: __S(
|
|
2830
|
-
errors: [NotFound, TailnetNotFound
|
|
2811
|
+
input: __S(368, __c46, 0) as any as S.Schema<GetKeyRequest>,
|
|
2812
|
+
output: __S(100, __c12, 4) as any as S.Schema<Key>,
|
|
2813
|
+
errors: [NotFound, TailnetNotFound],
|
|
2814
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2831
2815
|
protocol: TailscaleProtocol,
|
|
2832
2816
|
retry: Retry.Retry,
|
|
2833
2817
|
telemetry: TELEMETRY,
|
|
@@ -2846,9 +2830,10 @@ export const getLogStreamingConfiguration: API.OperationMethod<
|
|
|
2846
2830
|
GetLogStreamingConfigurationError,
|
|
2847
2831
|
TailscaleOpContext
|
|
2848
2832
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2849
|
-
input: __S(
|
|
2850
|
-
output: __S(
|
|
2851
|
-
errors: [NotFound, FeatureNotAvailable, TailnetNotFound
|
|
2833
|
+
input: __S(376, __c47, 0) as any as S.Schema<GetLogStreamingConfigurationRequest>,
|
|
2834
|
+
output: __S(377, __c47, 1) as any as S.Schema<LogstreamEndpointConfigurationOutput>,
|
|
2835
|
+
errors: [NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
2836
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2852
2837
|
protocol: TailscaleProtocol,
|
|
2853
2838
|
retry: Retry.Retry,
|
|
2854
2839
|
telemetry: TELEMETRY,
|
|
@@ -2867,9 +2852,10 @@ export const getLogStreamingStatus: API.OperationMethod<
|
|
|
2867
2852
|
GetLogStreamingStatusError,
|
|
2868
2853
|
TailscaleOpContext
|
|
2869
2854
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2870
|
-
input: __S(
|
|
2871
|
-
output: __S(
|
|
2872
|
-
errors: [NotFound, FeatureNotAvailable, TailnetNotFound
|
|
2855
|
+
input: __S(384, __c48, 0) as any as S.Schema<GetLogStreamingStatusRequest>,
|
|
2856
|
+
output: __S(385, __c48, 1) as any as S.Schema<LogstreamEndpointPublishingStatus>,
|
|
2857
|
+
errors: [NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
2858
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2873
2859
|
protocol: TailscaleProtocol,
|
|
2874
2860
|
retry: Retry.Retry,
|
|
2875
2861
|
telemetry: TELEMETRY,
|
|
@@ -2889,9 +2875,10 @@ export const getOAuthApp: API.OperationMethod<
|
|
|
2889
2875
|
GetOAuthAppError,
|
|
2890
2876
|
TailscaleOpContext
|
|
2891
2877
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2892
|
-
input: __S(
|
|
2893
|
-
output: __S(
|
|
2894
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2878
|
+
input: __S(392, __c49, 0) as any as S.Schema<GetOAuthAppRequest>,
|
|
2879
|
+
output: __S(112, __c14, 0) as any as S.Schema<OAuthApp>,
|
|
2880
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2881
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2895
2882
|
protocol: TailscaleProtocol,
|
|
2896
2883
|
retry: Retry.Retry,
|
|
2897
2884
|
telemetry: TELEMETRY,
|
|
@@ -2911,9 +2898,10 @@ export const getPolicyFile: API.OperationMethod<
|
|
|
2911
2898
|
GetPolicyFileError,
|
|
2912
2899
|
TailscaleOpContext
|
|
2913
2900
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2914
|
-
input: __S(
|
|
2915
|
-
output: __S(
|
|
2916
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2901
|
+
input: __S(400, __c50, 0) as any as S.Schema<GetPolicyFileRequest>,
|
|
2902
|
+
output: __S(408, __c51, 0) as any as S.Schema<GetPolicyFileResponse>,
|
|
2903
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2904
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2917
2905
|
protocol: TailscaleProtocol,
|
|
2918
2906
|
retry: Retry.Retry,
|
|
2919
2907
|
telemetry: TELEMETRY,
|
|
@@ -2928,9 +2916,10 @@ export const getPostureIntegration: API.OperationMethod<
|
|
|
2928
2916
|
GetPostureIntegrationError,
|
|
2929
2917
|
TailscaleOpContext
|
|
2930
2918
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2931
|
-
input: __S(
|
|
2932
|
-
output: __S(
|
|
2933
|
-
errors: [NotFound
|
|
2919
|
+
input: __S(416, __c52, 0) as any as S.Schema<GetPostureIntegrationRequest>,
|
|
2920
|
+
output: __S(129, __c16, 1) as any as S.Schema<PostureIntegrationOutput>,
|
|
2921
|
+
errors: [NotFound],
|
|
2922
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2934
2923
|
protocol: TailscaleProtocol,
|
|
2935
2924
|
retry: Retry.Retry,
|
|
2936
2925
|
telemetry: TELEMETRY,
|
|
@@ -2945,9 +2934,10 @@ export const getPostureIntegrations: API.OperationMethod<
|
|
|
2945
2934
|
GetPostureIntegrationsError,
|
|
2946
2935
|
TailscaleOpContext
|
|
2947
2936
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2948
|
-
input: __S(
|
|
2949
|
-
output: __S(
|
|
2950
|
-
errors: [Forbidden, TailnetNotFound
|
|
2937
|
+
input: __S(424, __c53, 0) as any as S.Schema<GetPostureIntegrationsRequest>,
|
|
2938
|
+
output: __S(426, __c53, 2) as any as S.Schema<GetPostureIntegrationsResponse>,
|
|
2939
|
+
errors: [Forbidden, TailnetNotFound],
|
|
2940
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2951
2941
|
protocol: TailscaleProtocol,
|
|
2952
2942
|
retry: Retry.Retry,
|
|
2953
2943
|
telemetry: TELEMETRY,
|
|
@@ -2967,9 +2957,10 @@ export const getService: API.OperationMethod<
|
|
|
2967
2957
|
GetServiceError,
|
|
2968
2958
|
TailscaleOpContext
|
|
2969
2959
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2970
|
-
input: __S(
|
|
2971
|
-
output: __S(
|
|
2972
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2960
|
+
input: __S(432, __c54, 0) as any as S.Schema<GetServiceRequest>,
|
|
2961
|
+
output: __S(440, __c55, 0) as any as S.Schema<VIPServiceInfo>,
|
|
2962
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2963
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2973
2964
|
protocol: TailscaleProtocol,
|
|
2974
2965
|
retry: Retry.Retry,
|
|
2975
2966
|
telemetry: TELEMETRY,
|
|
@@ -2989,9 +2980,10 @@ export const getServiceDeviceApproval: API.OperationMethod<
|
|
|
2989
2980
|
GetServiceDeviceApprovalError,
|
|
2990
2981
|
TailscaleOpContext
|
|
2991
2982
|
> = /*@__PURE__*/ API.make(() => ({
|
|
2992
|
-
input: __S(
|
|
2993
|
-
output: __S(
|
|
2994
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
2983
|
+
input: __S(448, __c56, 0) as any as S.Schema<GetServiceDeviceApprovalRequest>,
|
|
2984
|
+
output: __S(456, __c57, 0) as any as S.Schema<VIPServiceApproval>,
|
|
2985
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
2986
|
+
serviceErrors: TailscaleServiceErrors,
|
|
2995
2987
|
protocol: TailscaleProtocol,
|
|
2996
2988
|
retry: Retry.Retry,
|
|
2997
2989
|
telemetry: TELEMETRY,
|
|
@@ -3006,9 +2998,10 @@ export const getSplitDns: API.OperationMethod<
|
|
|
3006
2998
|
GetSplitDnsError,
|
|
3007
2999
|
TailscaleOpContext
|
|
3008
3000
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3009
|
-
input: __S(
|
|
3010
|
-
output: __S(
|
|
3011
|
-
errors: [NotFound, TailnetNotFound
|
|
3001
|
+
input: __S(464, __c58, 0) as any as S.Schema<GetSplitDnsRequest>,
|
|
3002
|
+
output: __S(473, __c59, 1) as any as S.Schema<GetSplitDnsResponse>,
|
|
3003
|
+
errors: [NotFound, TailnetNotFound],
|
|
3004
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3012
3005
|
protocol: TailscaleProtocol,
|
|
3013
3006
|
retry: Retry.Retry,
|
|
3014
3007
|
telemetry: TELEMETRY,
|
|
@@ -3016,16 +3009,17 @@ export const getSplitDns: API.OperationMethod<
|
|
|
3016
3009
|
}));
|
|
3017
3010
|
|
|
3018
3011
|
export type GetTailnetSettingsError = BadRequest | NotFound | TailnetNotFound | TailscaleOpError;
|
|
3019
|
-
/** Get tailnet settings Retrieve the settings for a specific tailnet. OAuth Scope: `feature_settings:read` - required to view all settings except those governed by the below scopes. OAuth Scope: `logs:network:read` - required to view the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings:read` - required to view the `
|
|
3012
|
+
/** Get tailnet settings Retrieve the settings for a specific tailnet. OAuth Scope: `feature_settings:read` - required to view all settings except those governed by the below scopes. OAuth Scope: `logs:network:read` - required to view the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings:read` - required to view the `httpsEnabled` setting. OAuth Scope: `policy_file:read` - required to view the `aclsExternallyManagedOn` & `aclsExternalLink` settings. */
|
|
3020
3013
|
export const getTailnetSettings: API.OperationMethod<
|
|
3021
3014
|
GetTailnetSettingsRequest,
|
|
3022
3015
|
TailnetSettings,
|
|
3023
3016
|
GetTailnetSettingsError,
|
|
3024
3017
|
TailscaleOpContext
|
|
3025
3018
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3026
|
-
input: __S(
|
|
3027
|
-
output: __S(
|
|
3028
|
-
errors: [BadRequest, NotFound, TailnetNotFound
|
|
3019
|
+
input: __S(480, __c60, 0) as any as S.Schema<GetTailnetSettingsRequest>,
|
|
3020
|
+
output: __S(488, __c61, 0) as any as S.Schema<TailnetSettings>,
|
|
3021
|
+
errors: [BadRequest, NotFound, TailnetNotFound],
|
|
3022
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3029
3023
|
protocol: TailscaleProtocol,
|
|
3030
3024
|
retry: Retry.Retry,
|
|
3031
3025
|
telemetry: TELEMETRY,
|
|
@@ -3036,9 +3030,10 @@ export type GetUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
|
3036
3030
|
/** Get a user Retrieve details about the specified user. OAuth Scope: `users:read`. */
|
|
3037
3031
|
export const getUser: API.OperationMethod<GetUserRequest, User, GetUserError, TailscaleOpContext> =
|
|
3038
3032
|
/*@__PURE__*/ API.make(() => ({
|
|
3039
|
-
input: __S(
|
|
3040
|
-
output: __S(
|
|
3041
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3033
|
+
input: __S(496, __c62, 0) as any as S.Schema<GetUserRequest>,
|
|
3034
|
+
output: __S(504, __c63, 0) as any as S.Schema<User>,
|
|
3035
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3036
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3042
3037
|
protocol: TailscaleProtocol,
|
|
3043
3038
|
retry: Retry.Retry,
|
|
3044
3039
|
telemetry: TELEMETRY,
|
|
@@ -3053,9 +3048,10 @@ export const getUserInvite: API.OperationMethod<
|
|
|
3053
3048
|
GetUserInviteError,
|
|
3054
3049
|
TailscaleOpContext
|
|
3055
3050
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3056
|
-
input: __S(
|
|
3057
|
-
output: __S(
|
|
3058
|
-
errors: [NotFound
|
|
3051
|
+
input: __S(512, __c64, 0) as any as S.Schema<GetUserInviteRequest>,
|
|
3052
|
+
output: __S(144, __c18, 0) as any as S.Schema<UserInvite>,
|
|
3053
|
+
errors: [NotFound],
|
|
3054
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3059
3055
|
protocol: TailscaleProtocol,
|
|
3060
3056
|
retry: Retry.Retry,
|
|
3061
3057
|
telemetry: TELEMETRY,
|
|
@@ -3070,9 +3066,10 @@ export const getWebhook: API.OperationMethod<
|
|
|
3070
3066
|
GetWebhookError,
|
|
3071
3067
|
TailscaleOpContext
|
|
3072
3068
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3073
|
-
input: __S(
|
|
3074
|
-
output: __S(
|
|
3075
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3069
|
+
input: __S(520, __c65, 0) as any as S.Schema<GetWebhookRequest>,
|
|
3070
|
+
output: __S(176, __c22, 0) as any as S.Schema<Webhook>,
|
|
3071
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3072
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3076
3073
|
protocol: TailscaleProtocol,
|
|
3077
3074
|
retry: Retry.Retry,
|
|
3078
3075
|
telemetry: TELEMETRY,
|
|
@@ -3092,9 +3089,10 @@ export const listConfigurationAuditLogs: API.OperationMethod<
|
|
|
3092
3089
|
ListConfigurationAuditLogsError,
|
|
3093
3090
|
TailscaleOpContext
|
|
3094
3091
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3095
|
-
input: __S(
|
|
3096
|
-
output: __S(
|
|
3097
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3092
|
+
input: __S(528, __c66, 0) as any as S.Schema<ListConfigurationAuditLogsRequest>,
|
|
3093
|
+
output: __S(533, __c66, 5) as any as S.Schema<ListConfigurationAuditLogsResponse>,
|
|
3094
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3095
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3098
3096
|
protocol: TailscaleProtocol,
|
|
3099
3097
|
retry: Retry.Retry,
|
|
3100
3098
|
telemetry: TELEMETRY,
|
|
@@ -3109,9 +3107,10 @@ export const listDeviceInvites: API.OperationMethod<
|
|
|
3109
3107
|
ListDeviceInvitesError,
|
|
3110
3108
|
TailscaleOpContext
|
|
3111
3109
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3112
|
-
input: __S(
|
|
3113
|
-
output: __S(
|
|
3114
|
-
errors: [NotFound
|
|
3110
|
+
input: __S(536, __c67, 0) as any as S.Schema<ListDeviceInvitesRequest>,
|
|
3111
|
+
output: __S(65, __c8, 1) as any as S.Schema<ListDeviceInvitesResponse>,
|
|
3112
|
+
errors: [NotFound],
|
|
3113
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3115
3114
|
protocol: TailscaleProtocol,
|
|
3116
3115
|
retry: Retry.Retry,
|
|
3117
3116
|
telemetry: TELEMETRY,
|
|
@@ -3126,9 +3125,10 @@ export const listDeviceRoutes: API.OperationMethod<
|
|
|
3126
3125
|
ListDeviceRoutesError,
|
|
3127
3126
|
TailscaleOpContext
|
|
3128
3127
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3129
|
-
input: __S(
|
|
3130
|
-
output: __S(
|
|
3131
|
-
errors: [NotFound
|
|
3128
|
+
input: __S(544, __c68, 0) as any as S.Schema<ListDeviceRoutesRequest>,
|
|
3129
|
+
output: __S(552, __c69, 0) as any as S.Schema<DeviceRoutes>,
|
|
3130
|
+
errors: [NotFound],
|
|
3131
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3132
3132
|
protocol: TailscaleProtocol,
|
|
3133
3133
|
retry: Retry.Retry,
|
|
3134
3134
|
telemetry: TELEMETRY,
|
|
@@ -3143,9 +3143,10 @@ export const listDnsNameservers: API.OperationMethod<
|
|
|
3143
3143
|
ListDnsNameserversError,
|
|
3144
3144
|
TailscaleOpContext
|
|
3145
3145
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3146
|
-
input: __S(
|
|
3147
|
-
output: __S(
|
|
3148
|
-
errors: [NotFound, TailnetNotFound
|
|
3146
|
+
input: __S(560, __c70, 0) as any as S.Schema<ListDnsNameserversRequest>,
|
|
3147
|
+
output: __S(561, __c70, 1) as any as S.Schema<ListDnsNameserversResponse>,
|
|
3148
|
+
errors: [NotFound, TailnetNotFound],
|
|
3149
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3149
3150
|
protocol: TailscaleProtocol,
|
|
3150
3151
|
retry: Retry.Retry,
|
|
3151
3152
|
telemetry: TELEMETRY,
|
|
@@ -3160,9 +3161,10 @@ export const listDnsSearchPaths: API.OperationMethod<
|
|
|
3160
3161
|
ListDnsSearchPathsError,
|
|
3161
3162
|
TailscaleOpContext
|
|
3162
3163
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3163
|
-
input: __S(
|
|
3164
|
-
output: __S(
|
|
3165
|
-
errors: [NotFound, TailnetNotFound
|
|
3164
|
+
input: __S(568, __c71, 0) as any as S.Schema<ListDnsSearchPathsRequest>,
|
|
3165
|
+
output: __S(576, __c72, 0) as any as S.Schema<DnsSearchPaths>,
|
|
3166
|
+
errors: [NotFound, TailnetNotFound],
|
|
3167
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3166
3168
|
protocol: TailscaleProtocol,
|
|
3167
3169
|
retry: Retry.Retry,
|
|
3168
3170
|
telemetry: TELEMETRY,
|
|
@@ -3182,9 +3184,10 @@ export const listNetworkFlowLogs: API.OperationMethod<
|
|
|
3182
3184
|
ListNetworkFlowLogsError,
|
|
3183
3185
|
TailscaleOpContext
|
|
3184
3186
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3185
|
-
input: __S(
|
|
3186
|
-
output: __S(
|
|
3187
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3187
|
+
input: __S(584, __c73, 0) as any as S.Schema<ListNetworkFlowLogsRequest>,
|
|
3188
|
+
output: __S(589, __c73, 5) as any as S.Schema<ListNetworkFlowLogsResponse>,
|
|
3189
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3190
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3188
3191
|
protocol: TailscaleProtocol,
|
|
3189
3192
|
retry: Retry.Retry,
|
|
3190
3193
|
telemetry: TELEMETRY,
|
|
@@ -3204,43 +3207,16 @@ export const listOAuthApps: API.OperationMethod<
|
|
|
3204
3207
|
ListOAuthAppsError,
|
|
3205
3208
|
TailscaleOpContext
|
|
3206
3209
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3207
|
-
input: __S(
|
|
3208
|
-
output: __S(
|
|
3209
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3210
|
+
input: __S(592, __c74, 0) as any as S.Schema<ListOAuthAppsRequest>,
|
|
3211
|
+
output: __S(594, __c74, 2) as any as S.Schema<ListOAuthAppsResponse>,
|
|
3212
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3213
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3210
3214
|
protocol: TailscaleProtocol,
|
|
3211
3215
|
retry: Retry.Retry,
|
|
3212
3216
|
telemetry: TELEMETRY,
|
|
3213
3217
|
span: "ListOAuthApps",
|
|
3214
3218
|
}));
|
|
3215
3219
|
|
|
3216
|
-
export type ListOrganizationTailnetsError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
3217
|
-
/** List tailnets List all tailnets in the organization, including the original tailnet and any [API-only tailnets](https://tailscale.com/docs/features/tailnet-creation-api) created with the tailnet creation API. OAuth Scope: `tailnets:read`. */
|
|
3218
|
-
export const listOrganizationTailnets: API.PaginatedOperationMethod<
|
|
3219
|
-
ListOrganizationTailnetsRequest,
|
|
3220
|
-
ListOrganizationTailnetsResponse,
|
|
3221
|
-
ListOrganizationTailnetsError,
|
|
3222
|
-
TailscaleOpContext,
|
|
3223
|
-
OrganizationTailnet
|
|
3224
|
-
> = /*@__PURE__*/ API.makePaginated(
|
|
3225
|
-
() => ({
|
|
3226
|
-
input: __S(640, __c80, 0) as any as S.Schema<ListOrganizationTailnetsRequest>,
|
|
3227
|
-
output: __S(643, __c80, 3) as any as S.Schema<ListOrganizationTailnetsResponse>,
|
|
3228
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownTailscaleError],
|
|
3229
|
-
protocol: TailscaleProtocol,
|
|
3230
|
-
retry: Retry.Retry,
|
|
3231
|
-
telemetry: TELEMETRY,
|
|
3232
|
-
span: "ListOrganizationTailnets",
|
|
3233
|
-
pagination: {
|
|
3234
|
-
mode: "cursor",
|
|
3235
|
-
inputToken: "cursor",
|
|
3236
|
-
outputToken: "cursor",
|
|
3237
|
-
items: "tailnets",
|
|
3238
|
-
pageSize: "limit",
|
|
3239
|
-
} as const,
|
|
3240
|
-
}),
|
|
3241
|
-
paginateCursor,
|
|
3242
|
-
) as any;
|
|
3243
|
-
|
|
3244
3220
|
export type ListServiceHostsError =
|
|
3245
3221
|
| BadRequest
|
|
3246
3222
|
| Forbidden
|
|
@@ -3254,9 +3230,10 @@ export const listServiceHosts: API.OperationMethod<
|
|
|
3254
3230
|
ListServiceHostsError,
|
|
3255
3231
|
TailscaleOpContext
|
|
3256
3232
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3257
|
-
input: __S(
|
|
3258
|
-
output: __S(
|
|
3259
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3233
|
+
input: __S(600, __c75, 0) as any as S.Schema<ListServiceHostsRequest>,
|
|
3234
|
+
output: __S(603, __c75, 3) as any as S.Schema<ListServiceHostsResponse>,
|
|
3235
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3236
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3260
3237
|
protocol: TailscaleProtocol,
|
|
3261
3238
|
retry: Retry.Retry,
|
|
3262
3239
|
telemetry: TELEMETRY,
|
|
@@ -3276,9 +3253,10 @@ export const listServices: API.OperationMethod<
|
|
|
3276
3253
|
ListServicesError,
|
|
3277
3254
|
TailscaleOpContext
|
|
3278
3255
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3279
|
-
input: __S(
|
|
3280
|
-
output: __S(
|
|
3281
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3256
|
+
input: __S(608, __c76, 0) as any as S.Schema<ListServicesRequest>,
|
|
3257
|
+
output: __S(610, __c76, 2) as any as S.Schema<ListServicesResponse>,
|
|
3258
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3259
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3282
3260
|
protocol: TailscaleProtocol,
|
|
3283
3261
|
retry: Retry.Retry,
|
|
3284
3262
|
telemetry: TELEMETRY,
|
|
@@ -3293,9 +3271,10 @@ export const listTailnetDevices: API.OperationMethod<
|
|
|
3293
3271
|
ListTailnetDevicesError,
|
|
3294
3272
|
TailscaleOpContext
|
|
3295
3273
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3296
|
-
input: __S(
|
|
3297
|
-
output: __S(
|
|
3298
|
-
errors: [NotFound, TailnetNotFound
|
|
3274
|
+
input: __S(616, __c77, 0) as any as S.Schema<ListTailnetDevicesRequest>,
|
|
3275
|
+
output: __S(618, __c77, 2) as any as S.Schema<ListTailnetDevicesResponse>,
|
|
3276
|
+
errors: [NotFound, TailnetNotFound],
|
|
3277
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3299
3278
|
protocol: TailscaleProtocol,
|
|
3300
3279
|
retry: Retry.Retry,
|
|
3301
3280
|
telemetry: TELEMETRY,
|
|
@@ -3310,9 +3289,10 @@ export const listTailnetKeys: API.OperationMethod<
|
|
|
3310
3289
|
ListTailnetKeysError,
|
|
3311
3290
|
TailscaleOpContext
|
|
3312
3291
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3313
|
-
input: __S(
|
|
3314
|
-
output: __S(
|
|
3315
|
-
errors: [NotFound, TailnetNotFound
|
|
3292
|
+
input: __S(624, __c78, 0) as any as S.Schema<ListTailnetKeysRequest>,
|
|
3293
|
+
output: __S(626, __c78, 2) as any as S.Schema<ListTailnetKeysResponse>,
|
|
3294
|
+
errors: [NotFound, TailnetNotFound],
|
|
3295
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3316
3296
|
protocol: TailscaleProtocol,
|
|
3317
3297
|
retry: Retry.Retry,
|
|
3318
3298
|
telemetry: TELEMETRY,
|
|
@@ -3327,9 +3307,10 @@ export const listUserInvites: API.OperationMethod<
|
|
|
3327
3307
|
ListUserInvitesError,
|
|
3328
3308
|
TailscaleOpContext
|
|
3329
3309
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3330
|
-
input: __S(
|
|
3331
|
-
output: __S(
|
|
3332
|
-
errors: [NotFound, TailnetNotFound
|
|
3310
|
+
input: __S(632, __c79, 0) as any as S.Schema<ListUserInvitesRequest>,
|
|
3311
|
+
output: __S(153, __c19, 1) as any as S.Schema<ListUserInvitesResponse>,
|
|
3312
|
+
errors: [NotFound, TailnetNotFound],
|
|
3313
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3333
3314
|
protocol: TailscaleProtocol,
|
|
3334
3315
|
retry: Retry.Retry,
|
|
3335
3316
|
telemetry: TELEMETRY,
|
|
@@ -3344,9 +3325,10 @@ export const listUsers: API.OperationMethod<
|
|
|
3344
3325
|
ListUsersError,
|
|
3345
3326
|
TailscaleOpContext
|
|
3346
3327
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3347
|
-
input: __S(
|
|
3348
|
-
output: __S(
|
|
3349
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3328
|
+
input: __S(640, __c80, 0) as any as S.Schema<ListUsersRequest>,
|
|
3329
|
+
output: __S(642, __c80, 2) as any as S.Schema<ListUsersResponse>,
|
|
3330
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3331
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3350
3332
|
protocol: TailscaleProtocol,
|
|
3351
3333
|
retry: Retry.Retry,
|
|
3352
3334
|
telemetry: TELEMETRY,
|
|
@@ -3366,9 +3348,10 @@ export const listWebhooks: API.OperationMethod<
|
|
|
3366
3348
|
ListWebhooksError,
|
|
3367
3349
|
TailscaleOpContext
|
|
3368
3350
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3369
|
-
input: __S(
|
|
3370
|
-
output: __S(
|
|
3371
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3351
|
+
input: __S(648, __c81, 0) as any as S.Schema<ListWebhooksRequest>,
|
|
3352
|
+
output: __S(650, __c81, 2) as any as S.Schema<ListWebhooksResponse>,
|
|
3353
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3354
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3372
3355
|
protocol: TailscaleProtocol,
|
|
3373
3356
|
retry: Retry.Retry,
|
|
3374
3357
|
telemetry: TELEMETRY,
|
|
@@ -3388,9 +3371,10 @@ export const previewRuleMatches: API.OperationMethod<
|
|
|
3388
3371
|
PreviewRuleMatchesError,
|
|
3389
3372
|
TailscaleOpContext
|
|
3390
3373
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3391
|
-
input: __S(
|
|
3392
|
-
output: __S(
|
|
3393
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3374
|
+
input: __S(656, __c82, 0) as any as S.Schema<PreviewRuleMatchesRequest>,
|
|
3375
|
+
output: __S(659, __c82, 3) as any as S.Schema<PreviewRuleMatchesResponse>,
|
|
3376
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3377
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3394
3378
|
protocol: TailscaleProtocol,
|
|
3395
3379
|
retry: Retry.Retry,
|
|
3396
3380
|
telemetry: TELEMETRY,
|
|
@@ -3410,9 +3394,10 @@ export const resendContactVerificationEmail: API.OperationMethod<
|
|
|
3410
3394
|
ResendContactVerificationEmailError,
|
|
3411
3395
|
TailscaleOpContext
|
|
3412
3396
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3413
|
-
input: __S(
|
|
3414
|
-
output: __S(
|
|
3415
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3397
|
+
input: __S(664, __c83, 0) as any as S.Schema<ResendContactVerificationEmailRequest>,
|
|
3398
|
+
output: __S(24, __c3, 0) as any as S.Schema<ResendContactVerificationEmailResponse>,
|
|
3399
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3400
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3416
3401
|
protocol: TailscaleProtocol,
|
|
3417
3402
|
retry: Retry.Retry,
|
|
3418
3403
|
telemetry: TELEMETRY,
|
|
@@ -3427,9 +3412,10 @@ export const resendDeviceInvite: API.OperationMethod<
|
|
|
3427
3412
|
ResendDeviceInviteError,
|
|
3428
3413
|
TailscaleOpContext
|
|
3429
3414
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3430
|
-
input: __S(
|
|
3431
|
-
output: __S(
|
|
3432
|
-
errors: [NotFound
|
|
3415
|
+
input: __S(672, __c84, 0) as any as S.Schema<ResendDeviceInviteRequest>,
|
|
3416
|
+
output: __S(24, __c3, 0) as any as S.Schema<ResendDeviceInviteResponse>,
|
|
3417
|
+
errors: [NotFound],
|
|
3418
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3433
3419
|
protocol: TailscaleProtocol,
|
|
3434
3420
|
retry: Retry.Retry,
|
|
3435
3421
|
telemetry: TELEMETRY,
|
|
@@ -3444,9 +3430,10 @@ export const resendUserInvite: API.OperationMethod<
|
|
|
3444
3430
|
ResendUserInviteError,
|
|
3445
3431
|
TailscaleOpContext
|
|
3446
3432
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3447
|
-
input: __S(
|
|
3448
|
-
output: __S(
|
|
3449
|
-
errors: [NotFound
|
|
3433
|
+
input: __S(680, __c85, 0) as any as S.Schema<ResendUserInviteRequest>,
|
|
3434
|
+
output: __S(24, __c3, 0) as any as S.Schema<ResendUserInviteResponse>,
|
|
3435
|
+
errors: [NotFound],
|
|
3436
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3450
3437
|
protocol: TailscaleProtocol,
|
|
3451
3438
|
retry: Retry.Retry,
|
|
3452
3439
|
telemetry: TELEMETRY,
|
|
@@ -3461,9 +3448,10 @@ export const restoreUser: API.OperationMethod<
|
|
|
3461
3448
|
RestoreUserError,
|
|
3462
3449
|
TailscaleOpContext
|
|
3463
3450
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3464
|
-
input: __S(
|
|
3465
|
-
output: __S(
|
|
3466
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3451
|
+
input: __S(688, __c86, 0) as any as S.Schema<RestoreUserRequest>,
|
|
3452
|
+
output: __S(24, __c3, 0) as any as S.Schema<RestoreUserResponse>,
|
|
3453
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3454
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3467
3455
|
protocol: TailscaleProtocol,
|
|
3468
3456
|
retry: Retry.Retry,
|
|
3469
3457
|
telemetry: TELEMETRY,
|
|
@@ -3478,9 +3466,10 @@ export const rotateWebhookSecret: API.OperationMethod<
|
|
|
3478
3466
|
RotateWebhookSecretError,
|
|
3479
3467
|
TailscaleOpContext
|
|
3480
3468
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3481
|
-
input: __S(
|
|
3482
|
-
output: __S(
|
|
3483
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3469
|
+
input: __S(696, __c87, 0) as any as S.Schema<RotateWebhookSecretRequest>,
|
|
3470
|
+
output: __S(176, __c22, 0) as any as S.Schema<Webhook>,
|
|
3471
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3472
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3484
3473
|
protocol: TailscaleProtocol,
|
|
3485
3474
|
retry: Retry.Retry,
|
|
3486
3475
|
telemetry: TELEMETRY,
|
|
@@ -3498,9 +3487,10 @@ export const setCustomDevicePostureAttributes: API.OperationMethod<
|
|
|
3498
3487
|
SetCustomDevicePostureAttributesError,
|
|
3499
3488
|
TailscaleOpContext
|
|
3500
3489
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3501
|
-
input: __S(
|
|
3502
|
-
output: __S(
|
|
3503
|
-
errors: [NotFound, FeatureNotAvailable
|
|
3490
|
+
input: __S(704, __c88, 0) as any as S.Schema<SetCustomDevicePostureAttributesRequest>,
|
|
3491
|
+
output: __S(329, __c41, 1) as any as S.Schema<DevicePostureAttributes>,
|
|
3492
|
+
errors: [NotFound, FeatureNotAvailable],
|
|
3493
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3504
3494
|
protocol: TailscaleProtocol,
|
|
3505
3495
|
retry: Retry.Retry,
|
|
3506
3496
|
telemetry: TELEMETRY,
|
|
@@ -3515,9 +3505,10 @@ export const setDeviceIp: API.OperationMethod<
|
|
|
3515
3505
|
SetDeviceIpError,
|
|
3516
3506
|
TailscaleOpContext
|
|
3517
3507
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3518
|
-
input: __S(
|
|
3519
|
-
output: __S(
|
|
3520
|
-
errors: [BadRequest, NotFound
|
|
3508
|
+
input: __S(712, __c89, 0) as any as S.Schema<SetDeviceIpRequest>,
|
|
3509
|
+
output: __S(24, __c3, 0) as any as S.Schema<SetDeviceIpResponse>,
|
|
3510
|
+
errors: [BadRequest, NotFound],
|
|
3511
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3521
3512
|
protocol: TailscaleProtocol,
|
|
3522
3513
|
retry: Retry.Retry,
|
|
3523
3514
|
telemetry: TELEMETRY,
|
|
@@ -3532,9 +3523,10 @@ export const setDeviceName: API.OperationMethod<
|
|
|
3532
3523
|
SetDeviceNameError,
|
|
3533
3524
|
TailscaleOpContext
|
|
3534
3525
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3535
|
-
input: __S(
|
|
3536
|
-
output: __S(
|
|
3537
|
-
errors: [NotFound
|
|
3526
|
+
input: __S(720, __c90, 0) as any as S.Schema<SetDeviceNameRequest>,
|
|
3527
|
+
output: __S(24, __c3, 0) as any as S.Schema<SetDeviceNameResponse>,
|
|
3528
|
+
errors: [NotFound],
|
|
3529
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3538
3530
|
protocol: TailscaleProtocol,
|
|
3539
3531
|
retry: Retry.Retry,
|
|
3540
3532
|
telemetry: TELEMETRY,
|
|
@@ -3549,9 +3541,10 @@ export const setDeviceRoutes: API.OperationMethod<
|
|
|
3549
3541
|
SetDeviceRoutesError,
|
|
3550
3542
|
TailscaleOpContext
|
|
3551
3543
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3552
|
-
input: __S(
|
|
3553
|
-
output: __S(
|
|
3554
|
-
errors: [NotFound
|
|
3544
|
+
input: __S(728, __c91, 0) as any as S.Schema<SetDeviceRoutesRequest>,
|
|
3545
|
+
output: __S(552, __c69, 0) as any as S.Schema<DeviceRoutes>,
|
|
3546
|
+
errors: [NotFound],
|
|
3547
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3555
3548
|
protocol: TailscaleProtocol,
|
|
3556
3549
|
retry: Retry.Retry,
|
|
3557
3550
|
telemetry: TELEMETRY,
|
|
@@ -3566,9 +3559,10 @@ export const setDeviceTags: API.OperationMethod<
|
|
|
3566
3559
|
SetDeviceTagsError,
|
|
3567
3560
|
TailscaleOpContext
|
|
3568
3561
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3569
|
-
input: __S(
|
|
3570
|
-
output: __S(
|
|
3571
|
-
errors: [BadRequest
|
|
3562
|
+
input: __S(736, __c92, 0) as any as S.Schema<SetDeviceTagsRequest>,
|
|
3563
|
+
output: __S(24, __c3, 0) as any as S.Schema<SetDeviceTagsResponse>,
|
|
3564
|
+
errors: [BadRequest],
|
|
3565
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3572
3566
|
protocol: TailscaleProtocol,
|
|
3573
3567
|
retry: Retry.Retry,
|
|
3574
3568
|
telemetry: TELEMETRY,
|
|
@@ -3583,9 +3577,10 @@ export const setDnsConfiguration: API.OperationMethod<
|
|
|
3583
3577
|
SetDnsConfigurationError,
|
|
3584
3578
|
TailscaleOpContext
|
|
3585
3579
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3586
|
-
input: __S(
|
|
3587
|
-
output: __S(
|
|
3588
|
-
errors: [NotFound, TailnetNotFound
|
|
3580
|
+
input: __S(744, __c93, 0) as any as S.Schema<SetDnsConfigurationRequest>,
|
|
3581
|
+
output: __S(348, __c43, 4) as any as S.Schema<DnsConfiguration>,
|
|
3582
|
+
errors: [NotFound, TailnetNotFound],
|
|
3583
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3589
3584
|
protocol: TailscaleProtocol,
|
|
3590
3585
|
retry: Retry.Retry,
|
|
3591
3586
|
telemetry: TELEMETRY,
|
|
@@ -3600,9 +3595,10 @@ export const setDnsNameservers: API.OperationMethod<
|
|
|
3600
3595
|
SetDnsNameserversError,
|
|
3601
3596
|
TailscaleOpContext
|
|
3602
3597
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3603
|
-
input: __S(
|
|
3604
|
-
output: __S(
|
|
3605
|
-
errors: [NotFound, TailnetNotFound
|
|
3598
|
+
input: __S(752, __c94, 0) as any as S.Schema<SetDnsNameserversRequest>,
|
|
3599
|
+
output: __S(753, __c94, 1) as any as S.Schema<SetDnsNameserversResponse>,
|
|
3600
|
+
errors: [NotFound, TailnetNotFound],
|
|
3601
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3606
3602
|
protocol: TailscaleProtocol,
|
|
3607
3603
|
retry: Retry.Retry,
|
|
3608
3604
|
telemetry: TELEMETRY,
|
|
@@ -3617,9 +3613,10 @@ export const setDnsPreferences: API.OperationMethod<
|
|
|
3617
3613
|
SetDnsPreferencesError,
|
|
3618
3614
|
TailscaleOpContext
|
|
3619
3615
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3620
|
-
input: __S(
|
|
3621
|
-
output: __S(
|
|
3622
|
-
errors: [NotFound, TailnetNotFound
|
|
3616
|
+
input: __S(768, __c96, 0) as any as S.Schema<SetDnsPreferencesRequest>,
|
|
3617
|
+
output: __S(360, __c45, 0) as any as S.Schema<DnsPreferences>,
|
|
3618
|
+
errors: [NotFound, TailnetNotFound],
|
|
3619
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3623
3620
|
protocol: TailscaleProtocol,
|
|
3624
3621
|
retry: Retry.Retry,
|
|
3625
3622
|
telemetry: TELEMETRY,
|
|
@@ -3634,9 +3631,10 @@ export const setDnsSearchPaths: API.OperationMethod<
|
|
|
3634
3631
|
SetDnsSearchPathsError,
|
|
3635
3632
|
TailscaleOpContext
|
|
3636
3633
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3637
|
-
input: __S(
|
|
3638
|
-
output: __S(
|
|
3639
|
-
errors: [NotFound, TailnetNotFound
|
|
3634
|
+
input: __S(776, __c97, 0) as any as S.Schema<SetDnsSearchPathsRequest>,
|
|
3635
|
+
output: __S(576, __c72, 0) as any as S.Schema<DnsSearchPaths>,
|
|
3636
|
+
errors: [NotFound, TailnetNotFound],
|
|
3637
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3640
3638
|
protocol: TailscaleProtocol,
|
|
3641
3639
|
retry: Retry.Retry,
|
|
3642
3640
|
telemetry: TELEMETRY,
|
|
@@ -3647,9 +3645,10 @@ export type SetKeyError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
|
3647
3645
|
/** Set key Set the configuration for an existing OAuth client or federated identity. OAuth Scope: `oauth_keys` grants access to OAuth clients. OAuth Scope: `federated_keys` grants access to federated identities. */
|
|
3648
3646
|
export const setKey: API.OperationMethod<SetKeyRequest, Key, SetKeyError, TailscaleOpContext> =
|
|
3649
3647
|
/*@__PURE__*/ API.make(() => ({
|
|
3650
|
-
input: __S(
|
|
3651
|
-
output: __S(
|
|
3652
|
-
errors: [NotFound, TailnetNotFound
|
|
3648
|
+
input: __S(784, __c98, 0) as any as S.Schema<SetKeyRequest>,
|
|
3649
|
+
output: __S(100, __c12, 4) as any as S.Schema<Key>,
|
|
3650
|
+
errors: [NotFound, TailnetNotFound],
|
|
3651
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3653
3652
|
protocol: TailscaleProtocol,
|
|
3654
3653
|
retry: Retry.Retry,
|
|
3655
3654
|
telemetry: TELEMETRY,
|
|
@@ -3670,16 +3669,10 @@ export const setLogStreamingConfiguration: API.OperationMethod<
|
|
|
3670
3669
|
SetLogStreamingConfigurationError,
|
|
3671
3670
|
TailscaleOpContext
|
|
3672
3671
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3673
|
-
input: __S(
|
|
3674
|
-
output: __S(
|
|
3675
|
-
errors: [
|
|
3676
|
-
|
|
3677
|
-
Forbidden,
|
|
3678
|
-
NotFound,
|
|
3679
|
-
FeatureNotAvailable,
|
|
3680
|
-
TailnetNotFound,
|
|
3681
|
-
UnknownTailscaleError,
|
|
3682
|
-
],
|
|
3672
|
+
input: __S(792, __c99, 0) as any as S.Schema<SetLogStreamingConfigurationRequest>,
|
|
3673
|
+
output: __S(24, __c3, 0) as any as S.Schema<SetLogStreamingConfigurationResponse>,
|
|
3674
|
+
errors: [BadRequest, Forbidden, NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
3675
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3683
3676
|
protocol: TailscaleProtocol,
|
|
3684
3677
|
retry: Retry.Retry,
|
|
3685
3678
|
telemetry: TELEMETRY,
|
|
@@ -3700,16 +3693,10 @@ export const setPolicyFile: API.OperationMethod<
|
|
|
3700
3693
|
SetPolicyFileError,
|
|
3701
3694
|
TailscaleOpContext
|
|
3702
3695
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3703
|
-
input: __S(
|
|
3704
|
-
output: __S(
|
|
3705
|
-
errors: [
|
|
3706
|
-
|
|
3707
|
-
Forbidden,
|
|
3708
|
-
NotFound,
|
|
3709
|
-
PreconditionFailed,
|
|
3710
|
-
TailnetNotFound,
|
|
3711
|
-
UnknownTailscaleError,
|
|
3712
|
-
],
|
|
3696
|
+
input: __S(800, __c100, 0) as any as S.Schema<SetPolicyFileRequest>,
|
|
3697
|
+
output: __S(408, __c51, 0) as any as S.Schema<SetPolicyFileResponse>,
|
|
3698
|
+
errors: [BadRequest, Forbidden, NotFound, PreconditionFailed, TailnetNotFound],
|
|
3699
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3713
3700
|
protocol: TailscaleProtocol,
|
|
3714
3701
|
retry: Retry.Retry,
|
|
3715
3702
|
telemetry: TELEMETRY,
|
|
@@ -3724,9 +3711,10 @@ export const setSplitDns: API.OperationMethod<
|
|
|
3724
3711
|
SetSplitDnsError,
|
|
3725
3712
|
TailscaleOpContext
|
|
3726
3713
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3727
|
-
input: __S(
|
|
3728
|
-
output: __S(
|
|
3729
|
-
errors: [NotFound, TailnetNotFound
|
|
3714
|
+
input: __S(808, __c101, 0) as any as S.Schema<SetSplitDnsRequest>,
|
|
3715
|
+
output: __S(473, __c59, 1) as any as S.Schema<SetSplitDnsResponse>,
|
|
3716
|
+
errors: [NotFound, TailnetNotFound],
|
|
3717
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3730
3718
|
protocol: TailscaleProtocol,
|
|
3731
3719
|
retry: Retry.Retry,
|
|
3732
3720
|
telemetry: TELEMETRY,
|
|
@@ -3741,9 +3729,10 @@ export const suspendUser: API.OperationMethod<
|
|
|
3741
3729
|
SuspendUserError,
|
|
3742
3730
|
TailscaleOpContext
|
|
3743
3731
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3744
|
-
input: __S(
|
|
3745
|
-
output: __S(
|
|
3746
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3732
|
+
input: __S(816, __c102, 0) as any as S.Schema<SuspendUserRequest>,
|
|
3733
|
+
output: __S(24, __c3, 0) as any as S.Schema<SuspendUserResponse>,
|
|
3734
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3735
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3747
3736
|
protocol: TailscaleProtocol,
|
|
3748
3737
|
retry: Retry.Retry,
|
|
3749
3738
|
telemetry: TELEMETRY,
|
|
@@ -3758,9 +3747,10 @@ export const testWebhook: API.OperationMethod<
|
|
|
3758
3747
|
TestWebhookError,
|
|
3759
3748
|
TailscaleOpContext
|
|
3760
3749
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3761
|
-
input: __S(
|
|
3762
|
-
output: __S(
|
|
3763
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3750
|
+
input: __S(824, __c103, 0) as any as S.Schema<TestWebhookRequest>,
|
|
3751
|
+
output: __S(24, __c3, 0) as any as S.Schema<TestWebhookResponse>,
|
|
3752
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3753
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3764
3754
|
protocol: TailscaleProtocol,
|
|
3765
3755
|
retry: Retry.Retry,
|
|
3766
3756
|
telemetry: TELEMETRY,
|
|
@@ -3775,9 +3765,10 @@ export const updateContact: API.OperationMethod<
|
|
|
3775
3765
|
UpdateContactError,
|
|
3776
3766
|
TailscaleOpContext
|
|
3777
3767
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3778
|
-
input: __S(
|
|
3779
|
-
output: __S(
|
|
3780
|
-
errors: [Forbidden, NotFound, TailnetNotFound
|
|
3768
|
+
input: __S(832, __c104, 0) as any as S.Schema<UpdateContactRequest>,
|
|
3769
|
+
output: __S(24, __c3, 0) as any as S.Schema<UpdateContactResponse>,
|
|
3770
|
+
errors: [Forbidden, NotFound, TailnetNotFound],
|
|
3771
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3781
3772
|
protocol: TailscaleProtocol,
|
|
3782
3773
|
retry: Retry.Retry,
|
|
3783
3774
|
telemetry: TELEMETRY,
|
|
@@ -3792,9 +3783,10 @@ export const updateDeviceKey: API.OperationMethod<
|
|
|
3792
3783
|
UpdateDeviceKeyError,
|
|
3793
3784
|
TailscaleOpContext
|
|
3794
3785
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3795
|
-
input: __S(
|
|
3796
|
-
output: __S(
|
|
3797
|
-
errors: [NotFound
|
|
3786
|
+
input: __S(840, __c105, 0) as any as S.Schema<UpdateDeviceKeyRequest>,
|
|
3787
|
+
output: __S(24, __c3, 0) as any as S.Schema<UpdateDeviceKeyResponse>,
|
|
3788
|
+
errors: [NotFound],
|
|
3789
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3798
3790
|
protocol: TailscaleProtocol,
|
|
3799
3791
|
retry: Retry.Retry,
|
|
3800
3792
|
telemetry: TELEMETRY,
|
|
@@ -3814,9 +3806,10 @@ export const updateOAuthApp: API.OperationMethod<
|
|
|
3814
3806
|
UpdateOAuthAppError,
|
|
3815
3807
|
TailscaleOpContext
|
|
3816
3808
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3817
|
-
input: __S(
|
|
3818
|
-
output: __S(
|
|
3819
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3809
|
+
input: __S(848, __c106, 0) as any as S.Schema<UpdateOAuthAppRequest>,
|
|
3810
|
+
output: __S(112, __c14, 0) as any as S.Schema<OAuthApp>,
|
|
3811
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3812
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3820
3813
|
protocol: TailscaleProtocol,
|
|
3821
3814
|
retry: Retry.Retry,
|
|
3822
3815
|
telemetry: TELEMETRY,
|
|
@@ -3831,9 +3824,10 @@ export const updatePostureIntegration: API.OperationMethod<
|
|
|
3831
3824
|
UpdatePostureIntegrationError,
|
|
3832
3825
|
TailscaleOpContext
|
|
3833
3826
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3834
|
-
input: __S(
|
|
3835
|
-
output: __S(
|
|
3836
|
-
errors: [Forbidden, NotFound
|
|
3827
|
+
input: __S(856, __c107, 0) as any as S.Schema<UpdatePostureIntegrationRequest>,
|
|
3828
|
+
output: __S(129, __c16, 1) as any as S.Schema<PostureIntegrationOutput>,
|
|
3829
|
+
errors: [Forbidden, NotFound],
|
|
3830
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3837
3831
|
protocol: TailscaleProtocol,
|
|
3838
3832
|
retry: Retry.Retry,
|
|
3839
3833
|
telemetry: TELEMETRY,
|
|
@@ -3853,9 +3847,10 @@ export const updateService: API.OperationMethod<
|
|
|
3853
3847
|
UpdateServiceError,
|
|
3854
3848
|
TailscaleOpContext
|
|
3855
3849
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3856
|
-
input: __S(
|
|
3857
|
-
output: __S(
|
|
3858
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3850
|
+
input: __S(864, __c108, 0) as any as S.Schema<UpdateServiceRequest>,
|
|
3851
|
+
output: __S(440, __c55, 0) as any as S.Schema<VIPServiceInfo>,
|
|
3852
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3853
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3859
3854
|
protocol: TailscaleProtocol,
|
|
3860
3855
|
retry: Retry.Retry,
|
|
3861
3856
|
telemetry: TELEMETRY,
|
|
@@ -3875,9 +3870,10 @@ export const updateServiceDeviceApproval: API.OperationMethod<
|
|
|
3875
3870
|
UpdateServiceDeviceApprovalError,
|
|
3876
3871
|
TailscaleOpContext
|
|
3877
3872
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3878
|
-
input: __S(
|
|
3879
|
-
output: __S(
|
|
3880
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3873
|
+
input: __S(872, __c109, 0) as any as S.Schema<UpdateServiceDeviceApprovalRequest>,
|
|
3874
|
+
output: __S(456, __c57, 0) as any as S.Schema<VIPServiceApproval>,
|
|
3875
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3876
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3881
3877
|
protocol: TailscaleProtocol,
|
|
3882
3878
|
retry: Retry.Retry,
|
|
3883
3879
|
telemetry: TELEMETRY,
|
|
@@ -3892,9 +3888,10 @@ export const updateSplitDns: API.OperationMethod<
|
|
|
3892
3888
|
UpdateSplitDnsError,
|
|
3893
3889
|
TailscaleOpContext
|
|
3894
3890
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3895
|
-
input: __S(
|
|
3896
|
-
output: __S(
|
|
3897
|
-
errors: [NotFound, TailnetNotFound
|
|
3891
|
+
input: __S(880, __c110, 0) as any as S.Schema<UpdateSplitDnsRequest>,
|
|
3892
|
+
output: __S(473, __c59, 1) as any as S.Schema<UpdateSplitDnsResponse>,
|
|
3893
|
+
errors: [NotFound, TailnetNotFound],
|
|
3894
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3898
3895
|
protocol: TailscaleProtocol,
|
|
3899
3896
|
retry: Retry.Retry,
|
|
3900
3897
|
telemetry: TELEMETRY,
|
|
@@ -3907,16 +3904,17 @@ export type UpdateTailnetSettingsError =
|
|
|
3907
3904
|
| FeatureNotAvailable
|
|
3908
3905
|
| TailnetNotFound
|
|
3909
3906
|
| TailscaleOpError;
|
|
3910
|
-
/** Update tailnet settings Update the settings for a specific tailnet. OAuth Scope: `feature_settings` - required to update all settings except those governed by the below scopes. OAuth Scope: `logs:network` - required to update the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings` - required to update the `
|
|
3907
|
+
/** Update tailnet settings Update the settings for a specific tailnet. OAuth Scope: `feature_settings` - required to update all settings except those governed by the below scopes. OAuth Scope: `logs:network` - required to update the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings` - required to update the `httpsEnabled` setting. OAuth Scope: `policy_file` - required to update the `aclsExternallyManagedOn` & `aclsExternalLink` settings. */
|
|
3911
3908
|
export const updateTailnetSettings: API.OperationMethod<
|
|
3912
3909
|
UpdateTailnetSettingsRequest,
|
|
3913
3910
|
TailnetSettings,
|
|
3914
3911
|
UpdateTailnetSettingsError,
|
|
3915
3912
|
TailscaleOpContext
|
|
3916
3913
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3917
|
-
input: __S(
|
|
3918
|
-
output: __S(
|
|
3919
|
-
errors: [BadRequest, NotFound, FeatureNotAvailable, TailnetNotFound
|
|
3914
|
+
input: __S(888, __c111, 0) as any as S.Schema<UpdateTailnetSettingsRequest>,
|
|
3915
|
+
output: __S(488, __c61, 0) as any as S.Schema<TailnetSettings>,
|
|
3916
|
+
errors: [BadRequest, NotFound, FeatureNotAvailable, TailnetNotFound],
|
|
3917
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3920
3918
|
protocol: TailscaleProtocol,
|
|
3921
3919
|
retry: Retry.Retry,
|
|
3922
3920
|
telemetry: TELEMETRY,
|
|
@@ -3931,9 +3929,10 @@ export const updateUserRole: API.OperationMethod<
|
|
|
3931
3929
|
UpdateUserRoleError,
|
|
3932
3930
|
TailscaleOpContext
|
|
3933
3931
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3934
|
-
input: __S(
|
|
3935
|
-
output: __S(
|
|
3936
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3932
|
+
input: __S(896, __c112, 0) as any as S.Schema<UpdateUserRoleRequest>,
|
|
3933
|
+
output: __S(24, __c3, 0) as any as S.Schema<UpdateUserRoleResponse>,
|
|
3934
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3935
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3937
3936
|
protocol: TailscaleProtocol,
|
|
3938
3937
|
retry: Retry.Retry,
|
|
3939
3938
|
telemetry: TELEMETRY,
|
|
@@ -3948,9 +3947,10 @@ export const updateWebhook: API.OperationMethod<
|
|
|
3948
3947
|
UpdateWebhookError,
|
|
3949
3948
|
TailscaleOpContext
|
|
3950
3949
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3951
|
-
input: __S(
|
|
3952
|
-
output: __S(
|
|
3953
|
-
errors: [BadRequest, Forbidden, NotFound
|
|
3950
|
+
input: __S(904, __c113, 0) as any as S.Schema<UpdateWebhookRequest>,
|
|
3951
|
+
output: __S(176, __c22, 0) as any as S.Schema<Webhook>,
|
|
3952
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
3953
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3954
3954
|
protocol: TailscaleProtocol,
|
|
3955
3955
|
retry: Retry.Retry,
|
|
3956
3956
|
telemetry: TELEMETRY,
|
|
@@ -3970,9 +3970,10 @@ export const validateAndTestPolicyFile: API.OperationMethod<
|
|
|
3970
3970
|
ValidateAndTestPolicyFileError,
|
|
3971
3971
|
TailscaleOpContext
|
|
3972
3972
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3973
|
-
input: __S(
|
|
3974
|
-
output: __S(
|
|
3975
|
-
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound
|
|
3973
|
+
input: __S(913, __c114, 1) as any as S.Schema<ValidateAndTestPolicyFileRequest>,
|
|
3974
|
+
output: __S(914, __c114, 2) as any as S.Schema<ValidateAndTestPolicyFileResponse>,
|
|
3975
|
+
errors: [BadRequest, Forbidden, NotFound, TailnetNotFound],
|
|
3976
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3976
3977
|
protocol: TailscaleProtocol,
|
|
3977
3978
|
retry: Retry.Retry,
|
|
3978
3979
|
telemetry: TELEMETRY,
|
|
@@ -3992,9 +3993,10 @@ export const validateAwsExternalId: API.OperationMethod<
|
|
|
3992
3993
|
ValidateAwsExternalIdError,
|
|
3993
3994
|
TailscaleOpContext
|
|
3994
3995
|
> = /*@__PURE__*/ API.make(() => ({
|
|
3995
|
-
input: __S(
|
|
3996
|
-
output: __S(
|
|
3997
|
-
errors: [Forbidden, NotFound, UnprocessableEntity, TailnetNotFound
|
|
3996
|
+
input: __S(920, __c115, 0) as any as S.Schema<ValidateAwsExternalIdRequest>,
|
|
3997
|
+
output: __S(24, __c3, 0) as any as S.Schema<ValidateAwsExternalIdResponse>,
|
|
3998
|
+
errors: [Forbidden, NotFound, UnprocessableEntity, TailnetNotFound],
|
|
3999
|
+
serviceErrors: TailscaleServiceErrors,
|
|
3998
4000
|
protocol: TailscaleProtocol,
|
|
3999
4001
|
retry: Retry.Retry,
|
|
4000
4002
|
telemetry: TELEMETRY,
|
|
@@ -4007,69 +4009,12 @@ function __c0(j: number): any {
|
|
|
4007
4009
|
case 0:
|
|
4008
4010
|
return S.suspend(() =>
|
|
4009
4011
|
S.Struct({
|
|
4010
|
-
|
|
4011
|
-
role: S.optional(S.String),
|
|
4012
|
-
}).pipe(T.Http({ method: "POST", uri: "/users/{userId}/role", code: 200 })),
|
|
4013
|
-
).annotate({ identifier: "UpdateUserRoleRequest" });
|
|
4014
|
-
}
|
|
4015
|
-
}
|
|
4016
|
-
function __c1(j: number): any {
|
|
4017
|
-
switch (j) {
|
|
4018
|
-
case 0:
|
|
4019
|
-
return S.suspend(() =>
|
|
4020
|
-
S.Struct({
|
|
4021
|
-
endpointId: S.String.pipe(T.Label()),
|
|
4022
|
-
subscriptions: S.optional(__S(200, __c25, 0)),
|
|
4023
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/webhooks/{endpointId}", code: 200 })),
|
|
4024
|
-
).annotate({ identifier: "UpdateWebhookRequest" });
|
|
4025
|
-
}
|
|
4026
|
-
}
|
|
4027
|
-
function __c2(j: number): any {
|
|
4028
|
-
switch (j) {
|
|
4029
|
-
case 0:
|
|
4030
|
-
return S.Array(S.Unknown);
|
|
4031
|
-
case 1:
|
|
4032
|
-
return S.suspend(() =>
|
|
4033
|
-
S.Struct({
|
|
4034
|
-
tailnet: S.String.pipe(T.Label()),
|
|
4035
|
-
body: S.String.pipe(T.HttpBody()),
|
|
4036
|
-
}).pipe(
|
|
4037
|
-
T.Http({
|
|
4038
|
-
method: "POST",
|
|
4039
|
-
uri: "/tailnet/{tailnet}/acl/validate",
|
|
4040
|
-
code: 200,
|
|
4041
|
-
bodyMediaType: "application/hujson",
|
|
4042
|
-
}),
|
|
4043
|
-
),
|
|
4044
|
-
).annotate({ identifier: "ValidateAndTestPolicyFileRequest" });
|
|
4045
|
-
case 2:
|
|
4046
|
-
return S.suspend(() =>
|
|
4047
|
-
S.Struct({
|
|
4048
|
-
message: S.optional(S.String),
|
|
4049
|
-
data: S.optional(__S(16, __c2, 0)),
|
|
4012
|
+
message: S.String,
|
|
4050
4013
|
}),
|
|
4051
|
-
).annotate({ identifier: "
|
|
4014
|
+
).annotate({ identifier: "Error" });
|
|
4052
4015
|
}
|
|
4053
4016
|
}
|
|
4054
|
-
function
|
|
4055
|
-
switch (j) {
|
|
4056
|
-
case 0:
|
|
4057
|
-
return S.suspend(() =>
|
|
4058
|
-
S.Struct({
|
|
4059
|
-
tailnet: S.String.pipe(T.Label()),
|
|
4060
|
-
id: S.String.pipe(T.Label()),
|
|
4061
|
-
roleArn: S.optional(S.String),
|
|
4062
|
-
}).pipe(
|
|
4063
|
-
T.Http({
|
|
4064
|
-
method: "POST",
|
|
4065
|
-
uri: "/tailnet/{tailnet}/aws-external-id/{id}/validate-aws-trust-policy",
|
|
4066
|
-
code: 200,
|
|
4067
|
-
}),
|
|
4068
|
-
),
|
|
4069
|
-
).annotate({ identifier: "ValidateAwsExternalIdRequest" });
|
|
4070
|
-
}
|
|
4071
|
-
}
|
|
4072
|
-
function __c4(j: number): any {
|
|
4017
|
+
function __c1(j: number): any {
|
|
4073
4018
|
switch (j) {
|
|
4074
4019
|
case 0:
|
|
4075
4020
|
return S.suspend(() =>
|
|
@@ -4101,14 +4046,14 @@ function __c4(j: number): any {
|
|
|
4101
4046
|
case 3:
|
|
4102
4047
|
return S.suspend(() =>
|
|
4103
4048
|
S.Struct({
|
|
4104
|
-
device: S.optional(__S(
|
|
4105
|
-
sharer: S.optional(__S(
|
|
4106
|
-
acceptedBy: S.optional(__S(
|
|
4049
|
+
device: S.optional(__S(9, __c1, 1)),
|
|
4050
|
+
sharer: S.optional(__S(10, __c1, 2)),
|
|
4051
|
+
acceptedBy: S.optional(__S(10, __c1, 2)),
|
|
4107
4052
|
}),
|
|
4108
4053
|
).annotate({ identifier: "AcceptDeviceInviteResponse" });
|
|
4109
4054
|
}
|
|
4110
4055
|
}
|
|
4111
|
-
function
|
|
4056
|
+
function __c2(j: number): any {
|
|
4112
4057
|
switch (j) {
|
|
4113
4058
|
case 0:
|
|
4114
4059
|
return S.suspend(() =>
|
|
@@ -4118,13 +4063,13 @@ function __c5(j: number): any {
|
|
|
4118
4063
|
).annotate({ identifier: "ApproveUserRequest" });
|
|
4119
4064
|
}
|
|
4120
4065
|
}
|
|
4121
|
-
function
|
|
4066
|
+
function __c3(j: number): any {
|
|
4122
4067
|
switch (j) {
|
|
4123
4068
|
case 0:
|
|
4124
4069
|
return S.suspend(() => S.Struct({})).annotate({ identifier: "ApproveUserResponse" });
|
|
4125
4070
|
}
|
|
4126
4071
|
}
|
|
4127
|
-
function
|
|
4072
|
+
function __c4(j: number): any {
|
|
4128
4073
|
switch (j) {
|
|
4129
4074
|
case 0:
|
|
4130
4075
|
return S.suspend(() =>
|
|
@@ -4135,7 +4080,7 @@ function __c7(j: number): any {
|
|
|
4135
4080
|
).annotate({ identifier: "AuthorizeDeviceRequest" });
|
|
4136
4081
|
}
|
|
4137
4082
|
}
|
|
4138
|
-
function
|
|
4083
|
+
function __c5(j: number): any {
|
|
4139
4084
|
switch (j) {
|
|
4140
4085
|
case 0:
|
|
4141
4086
|
return S.suspend(() =>
|
|
@@ -4145,26 +4090,26 @@ function __c8(j: number): any {
|
|
|
4145
4090
|
}),
|
|
4146
4091
|
).annotate({ identifier: "BatchUpdateCustomDevicePostureAttributesRequestNodesValueValue" });
|
|
4147
4092
|
case 1:
|
|
4148
|
-
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(
|
|
4093
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(40, __c5, 0)));
|
|
4149
4094
|
case 2:
|
|
4150
|
-
return S.Record(S.String, __S(
|
|
4095
|
+
return S.Record(S.String, __S(41, __c5, 1));
|
|
4151
4096
|
case 3:
|
|
4152
4097
|
return S.suspend(() =>
|
|
4153
4098
|
S.Struct({
|
|
4154
4099
|
tailnet: S.String.pipe(T.Label()),
|
|
4155
|
-
nodes: S.optional(__S(
|
|
4100
|
+
nodes: S.optional(__S(42, __c5, 2)),
|
|
4156
4101
|
comment: S.optional(S.String),
|
|
4157
4102
|
}).pipe(
|
|
4158
4103
|
T.Http({ method: "PATCH", uri: "/tailnet/{tailnet}/device-attributes", code: 200 }),
|
|
4159
4104
|
),
|
|
4160
4105
|
).annotate({ identifier: "BatchUpdateCustomDevicePostureAttributesRequest" });
|
|
4161
4106
|
case 4:
|
|
4162
|
-
return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
4107
|
+
return S.suspend(() => S.NullOr(S.Unknown).pipe(T.RawResponseRoot())).annotate({
|
|
4163
4108
|
identifier: "BatchUpdateCustomDevicePostureAttributesResponse",
|
|
4164
4109
|
});
|
|
4165
4110
|
}
|
|
4166
4111
|
}
|
|
4167
|
-
function
|
|
4112
|
+
function __c6(j: number): any {
|
|
4168
4113
|
switch (j) {
|
|
4169
4114
|
case 0:
|
|
4170
4115
|
return S.suspend(() =>
|
|
@@ -4175,17 +4120,17 @@ function __c9(j: number): any {
|
|
|
4175
4120
|
}),
|
|
4176
4121
|
).annotate({ identifier: "CreateDeviceInvitesRequestBodyItem" });
|
|
4177
4122
|
case 1:
|
|
4178
|
-
return S.Array(__S(
|
|
4123
|
+
return S.Array(__S(48, __c6, 0));
|
|
4179
4124
|
case 2:
|
|
4180
4125
|
return S.suspend(() =>
|
|
4181
4126
|
S.Struct({
|
|
4182
4127
|
deviceId: S.String.pipe(T.Label()),
|
|
4183
|
-
body: S.optional(__S(
|
|
4128
|
+
body: S.optional(__S(49, __c6, 1).pipe(T.HttpBody())),
|
|
4184
4129
|
}).pipe(T.Http({ method: "POST", uri: "/device/{deviceId}/device-invites", code: 200 })),
|
|
4185
4130
|
).annotate({ identifier: "CreateDeviceInvitesRequest" });
|
|
4186
4131
|
}
|
|
4187
4132
|
}
|
|
4188
|
-
function
|
|
4133
|
+
function __c7(j: number): any {
|
|
4189
4134
|
switch (j) {
|
|
4190
4135
|
case 0:
|
|
4191
4136
|
return S.suspend(() =>
|
|
@@ -4209,22 +4154,22 @@ function __c10(j: number): any {
|
|
|
4209
4154
|
lastEmailSentAt: S.optional(S.String),
|
|
4210
4155
|
inviteUrl: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4211
4156
|
accepted: S.optional(S.Boolean),
|
|
4212
|
-
acceptedBy: S.optional(__S(
|
|
4157
|
+
acceptedBy: S.optional(__S(56, __c7, 0)),
|
|
4213
4158
|
}),
|
|
4214
4159
|
).annotate({ identifier: "DeviceInvite" });
|
|
4215
4160
|
}
|
|
4216
4161
|
}
|
|
4217
|
-
function
|
|
4162
|
+
function __c8(j: number): any {
|
|
4218
4163
|
switch (j) {
|
|
4219
4164
|
case 0:
|
|
4220
|
-
return S.Array(__S(
|
|
4165
|
+
return S.Array(__S(57, __c7, 1));
|
|
4221
4166
|
case 1:
|
|
4222
|
-
return S.suspend(() => __S(
|
|
4167
|
+
return S.suspend(() => __S(64, __c8, 0).pipe(T.RawResponseRoot())).annotate({
|
|
4223
4168
|
identifier: "CreateDeviceInvitesResponse",
|
|
4224
4169
|
});
|
|
4225
4170
|
}
|
|
4226
4171
|
}
|
|
4227
|
-
function
|
|
4172
|
+
function __c9(j: number): any {
|
|
4228
4173
|
switch (j) {
|
|
4229
4174
|
case 0:
|
|
4230
4175
|
return S.suspend(() =>
|
|
@@ -4232,31 +4177,31 @@ function __c12(j: number): any {
|
|
|
4232
4177
|
tailnet: S.String.pipe(T.Label()),
|
|
4233
4178
|
keyType: S.optional(S.String),
|
|
4234
4179
|
description: S.optional(S.String),
|
|
4235
|
-
capabilities: S.optional(__S(
|
|
4180
|
+
capabilities: S.optional(__S(99, __c12, 3)),
|
|
4236
4181
|
expirySeconds: S.optional(S.Number),
|
|
4237
|
-
scopes: S.optional(__S(
|
|
4238
|
-
tags: S.optional(__S(
|
|
4182
|
+
scopes: S.optional(__S(80, __c10, 0)),
|
|
4183
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
4239
4184
|
issuer: S.optional(S.String),
|
|
4240
4185
|
subject: S.optional(S.String),
|
|
4241
4186
|
audience: S.optional(S.String),
|
|
4242
|
-
customClaimRules: S.optional(__S(
|
|
4187
|
+
customClaimRules: S.optional(__S(88, __c11, 0)),
|
|
4243
4188
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/keys", code: 200 })),
|
|
4244
4189
|
).annotate({ identifier: "CreateKeyRequest" });
|
|
4245
4190
|
}
|
|
4246
4191
|
}
|
|
4247
|
-
function
|
|
4192
|
+
function __c10(j: number): any {
|
|
4248
4193
|
switch (j) {
|
|
4249
4194
|
case 0:
|
|
4250
4195
|
return S.Array(S.String);
|
|
4251
4196
|
}
|
|
4252
4197
|
}
|
|
4253
|
-
function
|
|
4198
|
+
function __c11(j: number): any {
|
|
4254
4199
|
switch (j) {
|
|
4255
4200
|
case 0:
|
|
4256
4201
|
return S.Record(S.String, S.String);
|
|
4257
4202
|
}
|
|
4258
4203
|
}
|
|
4259
|
-
function
|
|
4204
|
+
function __c12(j: number): any {
|
|
4260
4205
|
switch (j) {
|
|
4261
4206
|
case 0:
|
|
4262
4207
|
return S.Record(S.String, S.Unknown);
|
|
@@ -4266,20 +4211,20 @@ function __c15(j: number): any {
|
|
|
4266
4211
|
reusable: S.optional(S.Boolean),
|
|
4267
4212
|
ephemeral: S.optional(S.Boolean),
|
|
4268
4213
|
preauthorized: S.optional(S.Boolean),
|
|
4269
|
-
tags: S.optional(__S(
|
|
4270
|
-
nodeAttributes: S.optional(__S(
|
|
4214
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
4215
|
+
nodeAttributes: S.optional(__S(96, __c12, 0)),
|
|
4271
4216
|
}),
|
|
4272
4217
|
).annotate({ identifier: "KeyCapabilitiesDevicesCreate" });
|
|
4273
4218
|
case 2:
|
|
4274
4219
|
return S.suspend(() =>
|
|
4275
4220
|
S.Struct({
|
|
4276
|
-
create: S.optional(__S(
|
|
4221
|
+
create: S.optional(__S(97, __c12, 1)),
|
|
4277
4222
|
}),
|
|
4278
4223
|
).annotate({ identifier: "KeyCapabilitiesDevices" });
|
|
4279
4224
|
case 3:
|
|
4280
4225
|
return S.suspend(() =>
|
|
4281
4226
|
S.Struct({
|
|
4282
|
-
devices: S.optional(__S(
|
|
4227
|
+
devices: S.optional(__S(98, __c12, 2)),
|
|
4283
4228
|
}),
|
|
4284
4229
|
).annotate({ identifier: "KeyCapabilities" });
|
|
4285
4230
|
case 4:
|
|
@@ -4293,21 +4238,21 @@ function __c15(j: number): any {
|
|
|
4293
4238
|
updated: S.optional(S.String),
|
|
4294
4239
|
expires: S.optional(S.String),
|
|
4295
4240
|
revoked: S.optional(S.String),
|
|
4296
|
-
capabilities: S.optional(__S(
|
|
4297
|
-
scopes: S.optional(__S(
|
|
4298
|
-
tags: S.optional(__S(
|
|
4241
|
+
capabilities: S.optional(__S(99, __c12, 3)),
|
|
4242
|
+
scopes: S.optional(__S(80, __c10, 0)),
|
|
4243
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
4299
4244
|
description: S.optional(S.String),
|
|
4300
4245
|
invalid: S.optional(S.Boolean),
|
|
4301
4246
|
userId: S.optional(S.String),
|
|
4302
4247
|
audience: S.optional(S.String),
|
|
4303
4248
|
issuer: S.optional(S.String),
|
|
4304
4249
|
subject: S.optional(S.String),
|
|
4305
|
-
customClaimRules: S.optional(__S(
|
|
4250
|
+
customClaimRules: S.optional(__S(88, __c11, 0)),
|
|
4306
4251
|
}),
|
|
4307
4252
|
).annotate({ identifier: "Key" });
|
|
4308
4253
|
}
|
|
4309
4254
|
}
|
|
4310
|
-
function
|
|
4255
|
+
function __c13(j: number): any {
|
|
4311
4256
|
switch (j) {
|
|
4312
4257
|
case 0:
|
|
4313
4258
|
return S.suspend(() =>
|
|
@@ -4315,14 +4260,14 @@ function __c16(j: number): any {
|
|
|
4315
4260
|
tailnet: S.String.pipe(T.Label()),
|
|
4316
4261
|
name: S.String,
|
|
4317
4262
|
description: S.optional(S.String),
|
|
4318
|
-
redirectURIs: __S(
|
|
4319
|
-
scopes: __S(
|
|
4320
|
-
allowedNodeAttributes: S.optional(__S(
|
|
4263
|
+
redirectURIs: __S(80, __c10, 0),
|
|
4264
|
+
scopes: __S(80, __c10, 0),
|
|
4265
|
+
allowedNodeAttributes: S.optional(__S(80, __c10, 0)),
|
|
4321
4266
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/oauth-apps", code: 200 })),
|
|
4322
4267
|
).annotate({ identifier: "CreateOAuthAppRequest" });
|
|
4323
4268
|
}
|
|
4324
4269
|
}
|
|
4325
|
-
function
|
|
4270
|
+
function __c14(j: number): any {
|
|
4326
4271
|
switch (j) {
|
|
4327
4272
|
case 0:
|
|
4328
4273
|
return S.suspend(() =>
|
|
@@ -4330,9 +4275,9 @@ function __c17(j: number): any {
|
|
|
4330
4275
|
id: S.optional(S.String),
|
|
4331
4276
|
name: S.optional(S.String),
|
|
4332
4277
|
description: S.optional(S.String),
|
|
4333
|
-
redirectURIs: S.optional(__S(
|
|
4334
|
-
scopes: S.optional(__S(
|
|
4335
|
-
allowedNodeAttributes: S.optional(__S(
|
|
4278
|
+
redirectURIs: S.optional(__S(80, __c10, 0)),
|
|
4279
|
+
scopes: S.optional(__S(80, __c10, 0)),
|
|
4280
|
+
allowedNodeAttributes: S.optional(__S(80, __c10, 0)),
|
|
4336
4281
|
clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4337
4282
|
created: S.optional(S.String),
|
|
4338
4283
|
updated: S.optional(S.String),
|
|
@@ -4340,39 +4285,7 @@ function __c17(j: number): any {
|
|
|
4340
4285
|
).annotate({ identifier: "OAuthApp" });
|
|
4341
4286
|
}
|
|
4342
4287
|
}
|
|
4343
|
-
function
|
|
4344
|
-
switch (j) {
|
|
4345
|
-
case 0:
|
|
4346
|
-
return S.suspend(() =>
|
|
4347
|
-
S.Struct({
|
|
4348
|
-
organization: S.String.pipe(T.Label()),
|
|
4349
|
-
displayName: S.String,
|
|
4350
|
-
}).pipe(
|
|
4351
|
-
T.Http({ method: "POST", uri: "/organizations/{organization}/tailnets", code: 200 }),
|
|
4352
|
-
),
|
|
4353
|
-
).annotate({ identifier: "CreateOrganizationTailnetRequest" });
|
|
4354
|
-
case 1:
|
|
4355
|
-
return S.suspend(() =>
|
|
4356
|
-
S.Struct({
|
|
4357
|
-
id: S.optional(S.String),
|
|
4358
|
-
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4359
|
-
}),
|
|
4360
|
-
).annotate({ identifier: "TailnetOAuthClient" });
|
|
4361
|
-
case 2:
|
|
4362
|
-
return S.suspend(() =>
|
|
4363
|
-
S.Struct({
|
|
4364
|
-
id: S.optional(S.String),
|
|
4365
|
-
displayName: S.optional(S.String),
|
|
4366
|
-
orgId: S.optional(S.String),
|
|
4367
|
-
dnsName: S.optional(S.String),
|
|
4368
|
-
createdAt: S.optional(S.String),
|
|
4369
|
-
oauthClient: S.optional(__S(145, __c18, 1)),
|
|
4370
|
-
alreadyExists: S.optional(S.Boolean),
|
|
4371
|
-
}),
|
|
4372
|
-
).annotate({ identifier: "CreateOrganizationTailnetResponse" });
|
|
4373
|
-
}
|
|
4374
|
-
}
|
|
4375
|
-
function __c19(j: number): any {
|
|
4288
|
+
function __c15(j: number): any {
|
|
4376
4289
|
switch (j) {
|
|
4377
4290
|
case 0:
|
|
4378
4291
|
return S.suspend(() =>
|
|
@@ -4389,7 +4302,7 @@ function __c19(j: number): any {
|
|
|
4389
4302
|
).annotate({ identifier: "CreatePostureIntegrationRequest" });
|
|
4390
4303
|
}
|
|
4391
4304
|
}
|
|
4392
|
-
function
|
|
4305
|
+
function __c16(j: number): any {
|
|
4393
4306
|
switch (j) {
|
|
4394
4307
|
case 0:
|
|
4395
4308
|
return S.suspend(() =>
|
|
@@ -4410,12 +4323,12 @@ function __c20(j: number): any {
|
|
|
4410
4323
|
tenantId: S.optional(S.String),
|
|
4411
4324
|
id: S.optional(S.String),
|
|
4412
4325
|
configUpdated: S.optional(S.String),
|
|
4413
|
-
status: S.optional(__S(
|
|
4326
|
+
status: S.optional(__S(128, __c16, 0)),
|
|
4414
4327
|
}),
|
|
4415
4328
|
).annotate({ identifier: "PostureIntegrationOutput" });
|
|
4416
4329
|
}
|
|
4417
4330
|
}
|
|
4418
|
-
function
|
|
4331
|
+
function __c17(j: number): any {
|
|
4419
4332
|
switch (j) {
|
|
4420
4333
|
case 0:
|
|
4421
4334
|
return S.suspend(() =>
|
|
@@ -4425,17 +4338,17 @@ function __c21(j: number): any {
|
|
|
4425
4338
|
}),
|
|
4426
4339
|
).annotate({ identifier: "CreateUserInvitesRequestBodyItem" });
|
|
4427
4340
|
case 1:
|
|
4428
|
-
return S.Array(__S(
|
|
4341
|
+
return S.Array(__S(136, __c17, 0));
|
|
4429
4342
|
case 2:
|
|
4430
4343
|
return S.suspend(() =>
|
|
4431
4344
|
S.Struct({
|
|
4432
4345
|
tailnet: S.String.pipe(T.Label()),
|
|
4433
|
-
body: S.optional(__S(
|
|
4346
|
+
body: S.optional(__S(137, __c17, 1).pipe(T.HttpBody())),
|
|
4434
4347
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/user-invites", code: 200 })),
|
|
4435
4348
|
).annotate({ identifier: "CreateUserInvitesRequest" });
|
|
4436
4349
|
}
|
|
4437
4350
|
}
|
|
4438
|
-
function
|
|
4351
|
+
function __c18(j: number): any {
|
|
4439
4352
|
switch (j) {
|
|
4440
4353
|
case 0:
|
|
4441
4354
|
return S.suspend(() =>
|
|
@@ -4451,17 +4364,17 @@ function __c22(j: number): any {
|
|
|
4451
4364
|
).annotate({ identifier: "UserInvite" });
|
|
4452
4365
|
}
|
|
4453
4366
|
}
|
|
4454
|
-
function
|
|
4367
|
+
function __c19(j: number): any {
|
|
4455
4368
|
switch (j) {
|
|
4456
4369
|
case 0:
|
|
4457
|
-
return S.Array(__S(
|
|
4370
|
+
return S.Array(__S(144, __c18, 0));
|
|
4458
4371
|
case 1:
|
|
4459
|
-
return S.suspend(() => __S(
|
|
4372
|
+
return S.suspend(() => __S(152, __c19, 0).pipe(T.RawResponseRoot())).annotate({
|
|
4460
4373
|
identifier: "CreateUserInvitesResponse",
|
|
4461
4374
|
});
|
|
4462
4375
|
}
|
|
4463
4376
|
}
|
|
4464
|
-
function
|
|
4377
|
+
function __c20(j: number): any {
|
|
4465
4378
|
switch (j) {
|
|
4466
4379
|
case 0:
|
|
4467
4380
|
return S.suspend(() =>
|
|
@@ -4469,18 +4382,18 @@ function __c24(j: number): any {
|
|
|
4469
4382
|
tailnet: S.String.pipe(T.Label()),
|
|
4470
4383
|
endpointUrl: S.String.pipe(T.SensitiveValue({})),
|
|
4471
4384
|
providerType: S.optional(S.String),
|
|
4472
|
-
subscriptions: __S(
|
|
4385
|
+
subscriptions: __S(168, __c21, 0),
|
|
4473
4386
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/webhooks", code: 200 })),
|
|
4474
4387
|
).annotate({ identifier: "CreateWebhookRequest" });
|
|
4475
4388
|
}
|
|
4476
4389
|
}
|
|
4477
|
-
function
|
|
4390
|
+
function __c21(j: number): any {
|
|
4478
4391
|
switch (j) {
|
|
4479
4392
|
case 0:
|
|
4480
4393
|
return S.Array(S.String);
|
|
4481
4394
|
}
|
|
4482
4395
|
}
|
|
4483
|
-
function
|
|
4396
|
+
function __c22(j: number): any {
|
|
4484
4397
|
switch (j) {
|
|
4485
4398
|
case 0:
|
|
4486
4399
|
return S.suspend(() =>
|
|
@@ -4491,13 +4404,13 @@ function __c26(j: number): any {
|
|
|
4491
4404
|
creatorLoginName: S.optional(S.String),
|
|
4492
4405
|
created: S.optional(S.String),
|
|
4493
4406
|
lastModified: S.optional(S.String),
|
|
4494
|
-
subscriptions: S.optional(__S(
|
|
4407
|
+
subscriptions: S.optional(__S(168, __c21, 0)),
|
|
4495
4408
|
secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4496
4409
|
}),
|
|
4497
4410
|
).annotate({ identifier: "Webhook" });
|
|
4498
4411
|
}
|
|
4499
4412
|
}
|
|
4500
|
-
function
|
|
4413
|
+
function __c23(j: number): any {
|
|
4501
4414
|
switch (j) {
|
|
4502
4415
|
case 0:
|
|
4503
4416
|
return S.suspend(() =>
|
|
@@ -4514,7 +4427,7 @@ function __c27(j: number): any {
|
|
|
4514
4427
|
).annotate({ identifier: "DeleteCustomDevicePostureAttributesRequest" });
|
|
4515
4428
|
}
|
|
4516
4429
|
}
|
|
4517
|
-
function
|
|
4430
|
+
function __c24(j: number): any {
|
|
4518
4431
|
switch (j) {
|
|
4519
4432
|
case 0:
|
|
4520
4433
|
return S.suspend(() =>
|
|
@@ -4524,7 +4437,7 @@ function __c28(j: number): any {
|
|
|
4524
4437
|
).annotate({ identifier: "DeleteDeviceRequest" });
|
|
4525
4438
|
}
|
|
4526
4439
|
}
|
|
4527
|
-
function
|
|
4440
|
+
function __c25(j: number): any {
|
|
4528
4441
|
switch (j) {
|
|
4529
4442
|
case 0:
|
|
4530
4443
|
return S.suspend(() =>
|
|
@@ -4534,7 +4447,7 @@ function __c29(j: number): any {
|
|
|
4534
4447
|
).annotate({ identifier: "DeleteDeviceInviteRequest" });
|
|
4535
4448
|
}
|
|
4536
4449
|
}
|
|
4537
|
-
function
|
|
4450
|
+
function __c26(j: number): any {
|
|
4538
4451
|
switch (j) {
|
|
4539
4452
|
case 0:
|
|
4540
4453
|
return S.suspend(() =>
|
|
@@ -4545,7 +4458,7 @@ function __c30(j: number): any {
|
|
|
4545
4458
|
).annotate({ identifier: "DeleteKeyRequest" });
|
|
4546
4459
|
}
|
|
4547
4460
|
}
|
|
4548
|
-
function
|
|
4461
|
+
function __c27(j: number): any {
|
|
4549
4462
|
switch (j) {
|
|
4550
4463
|
case 0:
|
|
4551
4464
|
return S.suspend(() =>
|
|
@@ -4558,7 +4471,7 @@ function __c31(j: number): any {
|
|
|
4558
4471
|
).annotate({ identifier: "DeleteOAuthAppRequest" });
|
|
4559
4472
|
}
|
|
4560
4473
|
}
|
|
4561
|
-
function
|
|
4474
|
+
function __c28(j: number): any {
|
|
4562
4475
|
switch (j) {
|
|
4563
4476
|
case 0:
|
|
4564
4477
|
return S.suspend(() =>
|
|
@@ -4568,7 +4481,7 @@ function __c32(j: number): any {
|
|
|
4568
4481
|
).annotate({ identifier: "DeletePostureIntegrationRequest" });
|
|
4569
4482
|
}
|
|
4570
4483
|
}
|
|
4571
|
-
function
|
|
4484
|
+
function __c29(j: number): any {
|
|
4572
4485
|
switch (j) {
|
|
4573
4486
|
case 0:
|
|
4574
4487
|
return S.suspend(() =>
|
|
@@ -4581,17 +4494,7 @@ function __c33(j: number): any {
|
|
|
4581
4494
|
).annotate({ identifier: "DeleteServiceRequest" });
|
|
4582
4495
|
}
|
|
4583
4496
|
}
|
|
4584
|
-
function
|
|
4585
|
-
switch (j) {
|
|
4586
|
-
case 0:
|
|
4587
|
-
return S.suspend(() =>
|
|
4588
|
-
S.Struct({
|
|
4589
|
-
tailnet: S.String.pipe(T.Label()),
|
|
4590
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/tailnet/{tailnet}", code: 200 })),
|
|
4591
|
-
).annotate({ identifier: "DeleteTailnetRequest" });
|
|
4592
|
-
}
|
|
4593
|
-
}
|
|
4594
|
-
function __c35(j: number): any {
|
|
4497
|
+
function __c30(j: number): any {
|
|
4595
4498
|
switch (j) {
|
|
4596
4499
|
case 0:
|
|
4597
4500
|
return S.suspend(() =>
|
|
@@ -4601,7 +4504,7 @@ function __c35(j: number): any {
|
|
|
4601
4504
|
).annotate({ identifier: "DeleteUserRequest" });
|
|
4602
4505
|
}
|
|
4603
4506
|
}
|
|
4604
|
-
function
|
|
4507
|
+
function __c31(j: number): any {
|
|
4605
4508
|
switch (j) {
|
|
4606
4509
|
case 0:
|
|
4607
4510
|
return S.suspend(() =>
|
|
@@ -4611,7 +4514,7 @@ function __c36(j: number): any {
|
|
|
4611
4514
|
).annotate({ identifier: "DeleteUserInviteRequest" });
|
|
4612
4515
|
}
|
|
4613
4516
|
}
|
|
4614
|
-
function
|
|
4517
|
+
function __c32(j: number): any {
|
|
4615
4518
|
switch (j) {
|
|
4616
4519
|
case 0:
|
|
4617
4520
|
return S.suspend(() =>
|
|
@@ -4621,7 +4524,7 @@ function __c37(j: number): any {
|
|
|
4621
4524
|
).annotate({ identifier: "DeleteWebhookRequest" });
|
|
4622
4525
|
}
|
|
4623
4526
|
}
|
|
4624
|
-
function
|
|
4527
|
+
function __c33(j: number): any {
|
|
4625
4528
|
switch (j) {
|
|
4626
4529
|
case 0:
|
|
4627
4530
|
return S.suspend(() =>
|
|
@@ -4638,7 +4541,7 @@ function __c38(j: number): any {
|
|
|
4638
4541
|
).annotate({ identifier: "DisableLogStreamingRequest" });
|
|
4639
4542
|
}
|
|
4640
4543
|
}
|
|
4641
|
-
function
|
|
4544
|
+
function __c34(j: number): any {
|
|
4642
4545
|
switch (j) {
|
|
4643
4546
|
case 0:
|
|
4644
4547
|
return S.suspend(() =>
|
|
@@ -4648,7 +4551,7 @@ function __c39(j: number): any {
|
|
|
4648
4551
|
).annotate({ identifier: "ExpireDeviceKeyRequest" });
|
|
4649
4552
|
}
|
|
4650
4553
|
}
|
|
4651
|
-
function
|
|
4554
|
+
function __c35(j: number): any {
|
|
4652
4555
|
switch (j) {
|
|
4653
4556
|
case 0:
|
|
4654
4557
|
return S.suspend(() =>
|
|
@@ -4666,7 +4569,7 @@ function __c40(j: number): any {
|
|
|
4666
4569
|
).annotate({ identifier: "AwsExternalId" });
|
|
4667
4570
|
}
|
|
4668
4571
|
}
|
|
4669
|
-
function
|
|
4572
|
+
function __c36(j: number): any {
|
|
4670
4573
|
switch (j) {
|
|
4671
4574
|
case 0:
|
|
4672
4575
|
return S.suspend(() =>
|
|
@@ -4685,14 +4588,14 @@ function __c41(j: number): any {
|
|
|
4685
4588
|
case 2:
|
|
4686
4589
|
return S.suspend(() =>
|
|
4687
4590
|
S.Struct({
|
|
4688
|
-
account: S.optional(__S(
|
|
4689
|
-
support: S.optional(__S(
|
|
4690
|
-
security: S.optional(__S(
|
|
4591
|
+
account: S.optional(__S(289, __c36, 1)),
|
|
4592
|
+
support: S.optional(__S(289, __c36, 1)),
|
|
4593
|
+
security: S.optional(__S(289, __c36, 1)),
|
|
4691
4594
|
}),
|
|
4692
4595
|
).annotate({ identifier: "GetContactsResponse" });
|
|
4693
4596
|
}
|
|
4694
4597
|
}
|
|
4695
|
-
function
|
|
4598
|
+
function __c37(j: number): any {
|
|
4696
4599
|
switch (j) {
|
|
4697
4600
|
case 0:
|
|
4698
4601
|
return S.suspend(() =>
|
|
@@ -4703,7 +4606,7 @@ function __c42(j: number): any {
|
|
|
4703
4606
|
).annotate({ identifier: "GetDeviceRequest" });
|
|
4704
4607
|
}
|
|
4705
4608
|
}
|
|
4706
|
-
function
|
|
4609
|
+
function __c38(j: number): any {
|
|
4707
4610
|
switch (j) {
|
|
4708
4611
|
case 0:
|
|
4709
4612
|
return S.suspend(() =>
|
|
@@ -4713,7 +4616,7 @@ function __c43(j: number): any {
|
|
|
4713
4616
|
}),
|
|
4714
4617
|
).annotate({ identifier: "DeviceClientConnectivityLatencyValue" });
|
|
4715
4618
|
case 1:
|
|
4716
|
-
return S.Record(S.String, __S(
|
|
4619
|
+
return S.Record(S.String, __S(304, __c38, 0));
|
|
4717
4620
|
case 2:
|
|
4718
4621
|
return S.suspend(() =>
|
|
4719
4622
|
S.Struct({
|
|
@@ -4728,16 +4631,16 @@ function __c43(j: number): any {
|
|
|
4728
4631
|
case 3:
|
|
4729
4632
|
return S.suspend(() =>
|
|
4730
4633
|
S.Struct({
|
|
4731
|
-
endpoints: S.optional(__S(
|
|
4634
|
+
endpoints: S.optional(__S(80, __c10, 0)),
|
|
4732
4635
|
mappingVariesByDestIP: S.optional(S.Boolean),
|
|
4733
|
-
latency: S.optional(__S(
|
|
4734
|
-
clientSupports: S.optional(__S(
|
|
4636
|
+
latency: S.optional(__S(305, __c38, 1)),
|
|
4637
|
+
clientSupports: S.optional(__S(306, __c38, 2)),
|
|
4735
4638
|
}),
|
|
4736
4639
|
).annotate({ identifier: "DeviceClientConnectivity" });
|
|
4737
4640
|
case 4:
|
|
4738
4641
|
return S.suspend(() =>
|
|
4739
4642
|
S.Struct({
|
|
4740
|
-
serialNumbers: S.optional(__S(
|
|
4643
|
+
serialNumbers: S.optional(__S(80, __c10, 0)),
|
|
4741
4644
|
disabled: S.optional(S.Boolean),
|
|
4742
4645
|
}),
|
|
4743
4646
|
).annotate({ identifier: "DevicePostureIdentity" });
|
|
@@ -4746,7 +4649,7 @@ function __c43(j: number): any {
|
|
|
4746
4649
|
S.Struct({
|
|
4747
4650
|
passing: S.optional(S.Boolean),
|
|
4748
4651
|
impacting: S.optional(S.Boolean),
|
|
4749
|
-
failingAssertions: S.optional(__S(
|
|
4652
|
+
failingAssertions: S.optional(__S(80, __c10, 0)),
|
|
4750
4653
|
}),
|
|
4751
4654
|
).annotate({ identifier: "DevicePostureStatus" });
|
|
4752
4655
|
case 6:
|
|
@@ -4760,7 +4663,7 @@ function __c43(j: number): any {
|
|
|
4760
4663
|
case 7:
|
|
4761
4664
|
return S.suspend(() =>
|
|
4762
4665
|
S.Struct({
|
|
4763
|
-
addresses: S.optional(__S(
|
|
4666
|
+
addresses: S.optional(__S(80, __c10, 0)),
|
|
4764
4667
|
id: S.optional(S.String),
|
|
4765
4668
|
nodeId: S.optional(S.String),
|
|
4766
4669
|
user: S.optional(S.String),
|
|
@@ -4780,22 +4683,22 @@ function __c43(j: number): any {
|
|
|
4780
4683
|
machineKey: S.optional(S.String),
|
|
4781
4684
|
nodeKey: S.optional(S.String),
|
|
4782
4685
|
blocksIncomingConnections: S.optional(S.Boolean),
|
|
4783
|
-
enabledRoutes: S.optional(__S(
|
|
4784
|
-
advertisedRoutes: S.optional(__S(
|
|
4785
|
-
clientConnectivity: S.optional(__S(
|
|
4786
|
-
tags: S.optional(__S(
|
|
4686
|
+
enabledRoutes: S.optional(__S(80, __c10, 0)),
|
|
4687
|
+
advertisedRoutes: S.optional(__S(80, __c10, 0)),
|
|
4688
|
+
clientConnectivity: S.optional(__S(307, __c38, 3)),
|
|
4689
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
4787
4690
|
tailnetLockError: S.optional(S.String),
|
|
4788
4691
|
tailnetLockKey: S.optional(S.String),
|
|
4789
4692
|
sshEnabled: S.optional(S.Boolean),
|
|
4790
|
-
postureIdentity: S.optional(__S(
|
|
4791
|
-
postureStatus: S.optional(__S(
|
|
4693
|
+
postureIdentity: S.optional(__S(308, __c38, 4)),
|
|
4694
|
+
postureStatus: S.optional(__S(309, __c38, 5)),
|
|
4792
4695
|
isEphemeral: S.optional(S.Boolean),
|
|
4793
|
-
distro: S.optional(__S(
|
|
4696
|
+
distro: S.optional(__S(310, __c38, 6)),
|
|
4794
4697
|
}),
|
|
4795
4698
|
).annotate({ identifier: "Device" });
|
|
4796
4699
|
}
|
|
4797
4700
|
}
|
|
4798
|
-
function
|
|
4701
|
+
function __c39(j: number): any {
|
|
4799
4702
|
switch (j) {
|
|
4800
4703
|
case 0:
|
|
4801
4704
|
return S.suspend(() =>
|
|
@@ -4805,7 +4708,7 @@ function __c44(j: number): any {
|
|
|
4805
4708
|
).annotate({ identifier: "GetDeviceInviteRequest" });
|
|
4806
4709
|
}
|
|
4807
4710
|
}
|
|
4808
|
-
function
|
|
4711
|
+
function __c40(j: number): any {
|
|
4809
4712
|
switch (j) {
|
|
4810
4713
|
case 0:
|
|
4811
4714
|
return S.suspend(() =>
|
|
@@ -4815,20 +4718,20 @@ function __c45(j: number): any {
|
|
|
4815
4718
|
).annotate({ identifier: "GetDevicePostureAttributesRequest" });
|
|
4816
4719
|
}
|
|
4817
4720
|
}
|
|
4818
|
-
function
|
|
4721
|
+
function __c41(j: number): any {
|
|
4819
4722
|
switch (j) {
|
|
4820
4723
|
case 0:
|
|
4821
4724
|
return S.Record(S.String, S.Unknown);
|
|
4822
4725
|
case 1:
|
|
4823
4726
|
return S.suspend(() =>
|
|
4824
4727
|
S.Struct({
|
|
4825
|
-
attributes: S.optional(__S(
|
|
4826
|
-
expiries: S.optional(__S(
|
|
4728
|
+
attributes: S.optional(__S(328, __c41, 0)),
|
|
4729
|
+
expiries: S.optional(__S(88, __c11, 0)),
|
|
4827
4730
|
}),
|
|
4828
4731
|
).annotate({ identifier: "DevicePostureAttributes" });
|
|
4829
4732
|
}
|
|
4830
4733
|
}
|
|
4831
|
-
function
|
|
4734
|
+
function __c42(j: number): any {
|
|
4832
4735
|
switch (j) {
|
|
4833
4736
|
case 0:
|
|
4834
4737
|
return S.suspend(() =>
|
|
@@ -4838,7 +4741,7 @@ function __c47(j: number): any {
|
|
|
4838
4741
|
).annotate({ identifier: "GetDnsConfigurationRequest" });
|
|
4839
4742
|
}
|
|
4840
4743
|
}
|
|
4841
|
-
function
|
|
4744
|
+
function __c43(j: number): any {
|
|
4842
4745
|
switch (j) {
|
|
4843
4746
|
case 0:
|
|
4844
4747
|
return S.suspend(() =>
|
|
@@ -4848,9 +4751,9 @@ function __c48(j: number): any {
|
|
|
4848
4751
|
}),
|
|
4849
4752
|
).annotate({ identifier: "DnsConfigurationResolver" });
|
|
4850
4753
|
case 1:
|
|
4851
|
-
return S.Array(__S(
|
|
4754
|
+
return S.Array(__S(344, __c43, 0));
|
|
4852
4755
|
case 2:
|
|
4853
|
-
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(
|
|
4756
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(345, __c43, 1)));
|
|
4854
4757
|
case 3:
|
|
4855
4758
|
return S.suspend(() =>
|
|
4856
4759
|
S.Struct({
|
|
@@ -4861,15 +4764,15 @@ function __c48(j: number): any {
|
|
|
4861
4764
|
case 4:
|
|
4862
4765
|
return S.suspend(() =>
|
|
4863
4766
|
S.Struct({
|
|
4864
|
-
nameservers: S.optional(__S(
|
|
4865
|
-
splitDNS: S.optional(__S(
|
|
4866
|
-
searchPaths: S.optional(__S(
|
|
4867
|
-
preferences: S.optional(__S(
|
|
4767
|
+
nameservers: S.optional(__S(345, __c43, 1)),
|
|
4768
|
+
splitDNS: S.optional(__S(346, __c43, 2)),
|
|
4769
|
+
searchPaths: S.optional(__S(80, __c10, 0)),
|
|
4770
|
+
preferences: S.optional(__S(347, __c43, 3)),
|
|
4868
4771
|
}),
|
|
4869
4772
|
).annotate({ identifier: "DnsConfiguration" });
|
|
4870
4773
|
}
|
|
4871
4774
|
}
|
|
4872
|
-
function
|
|
4775
|
+
function __c44(j: number): any {
|
|
4873
4776
|
switch (j) {
|
|
4874
4777
|
case 0:
|
|
4875
4778
|
return S.suspend(() =>
|
|
@@ -4879,7 +4782,7 @@ function __c49(j: number): any {
|
|
|
4879
4782
|
).annotate({ identifier: "GetDnsPreferencesRequest" });
|
|
4880
4783
|
}
|
|
4881
4784
|
}
|
|
4882
|
-
function
|
|
4785
|
+
function __c45(j: number): any {
|
|
4883
4786
|
switch (j) {
|
|
4884
4787
|
case 0:
|
|
4885
4788
|
return S.suspend(() =>
|
|
@@ -4889,7 +4792,7 @@ function __c50(j: number): any {
|
|
|
4889
4792
|
).annotate({ identifier: "DnsPreferences" });
|
|
4890
4793
|
}
|
|
4891
4794
|
}
|
|
4892
|
-
function
|
|
4795
|
+
function __c46(j: number): any {
|
|
4893
4796
|
switch (j) {
|
|
4894
4797
|
case 0:
|
|
4895
4798
|
return S.suspend(() =>
|
|
@@ -4900,7 +4803,7 @@ function __c51(j: number): any {
|
|
|
4900
4803
|
).annotate({ identifier: "GetKeyRequest" });
|
|
4901
4804
|
}
|
|
4902
4805
|
}
|
|
4903
|
-
function
|
|
4806
|
+
function __c47(j: number): any {
|
|
4904
4807
|
switch (j) {
|
|
4905
4808
|
case 0:
|
|
4906
4809
|
return S.suspend(() =>
|
|
@@ -4929,13 +4832,13 @@ function __c52(j: number): any {
|
|
|
4929
4832
|
s3ExternalId: S.optional(S.String),
|
|
4930
4833
|
gcsBucket: S.optional(S.String),
|
|
4931
4834
|
gcsKeyPrefix: S.optional(S.String),
|
|
4932
|
-
gcsScopes: S.optional(__S(
|
|
4835
|
+
gcsScopes: S.optional(__S(80, __c10, 0)),
|
|
4933
4836
|
gcsCredentials: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
4934
4837
|
}),
|
|
4935
4838
|
).annotate({ identifier: "LogstreamEndpointConfigurationOutput" });
|
|
4936
4839
|
}
|
|
4937
4840
|
}
|
|
4938
|
-
function
|
|
4841
|
+
function __c48(j: number): any {
|
|
4939
4842
|
switch (j) {
|
|
4940
4843
|
case 0:
|
|
4941
4844
|
return S.suspend(() =>
|
|
@@ -4969,7 +4872,7 @@ function __c53(j: number): any {
|
|
|
4969
4872
|
).annotate({ identifier: "LogstreamEndpointPublishingStatus" });
|
|
4970
4873
|
}
|
|
4971
4874
|
}
|
|
4972
|
-
function
|
|
4875
|
+
function __c49(j: number): any {
|
|
4973
4876
|
switch (j) {
|
|
4974
4877
|
case 0:
|
|
4975
4878
|
return S.suspend(() =>
|
|
@@ -4980,7 +4883,7 @@ function __c54(j: number): any {
|
|
|
4980
4883
|
).annotate({ identifier: "GetOAuthAppRequest" });
|
|
4981
4884
|
}
|
|
4982
4885
|
}
|
|
4983
|
-
function
|
|
4886
|
+
function __c50(j: number): any {
|
|
4984
4887
|
switch (j) {
|
|
4985
4888
|
case 0:
|
|
4986
4889
|
return S.suspend(() =>
|
|
@@ -4992,7 +4895,7 @@ function __c55(j: number): any {
|
|
|
4992
4895
|
).annotate({ identifier: "GetPolicyFileRequest" });
|
|
4993
4896
|
}
|
|
4994
4897
|
}
|
|
4995
|
-
function
|
|
4898
|
+
function __c51(j: number): any {
|
|
4996
4899
|
switch (j) {
|
|
4997
4900
|
case 0:
|
|
4998
4901
|
return S.suspend(() =>
|
|
@@ -5003,7 +4906,7 @@ function __c56(j: number): any {
|
|
|
5003
4906
|
).annotate({ identifier: "GetPolicyFileResponse" });
|
|
5004
4907
|
}
|
|
5005
4908
|
}
|
|
5006
|
-
function
|
|
4909
|
+
function __c52(j: number): any {
|
|
5007
4910
|
switch (j) {
|
|
5008
4911
|
case 0:
|
|
5009
4912
|
return S.suspend(() =>
|
|
@@ -5013,7 +4916,7 @@ function __c57(j: number): any {
|
|
|
5013
4916
|
).annotate({ identifier: "GetPostureIntegrationRequest" });
|
|
5014
4917
|
}
|
|
5015
4918
|
}
|
|
5016
|
-
function
|
|
4919
|
+
function __c53(j: number): any {
|
|
5017
4920
|
switch (j) {
|
|
5018
4921
|
case 0:
|
|
5019
4922
|
return S.suspend(() =>
|
|
@@ -5024,16 +4927,16 @@ function __c58(j: number): any {
|
|
|
5024
4927
|
),
|
|
5025
4928
|
).annotate({ identifier: "GetPostureIntegrationsRequest" });
|
|
5026
4929
|
case 1:
|
|
5027
|
-
return S.Array(__S(
|
|
4930
|
+
return S.Array(__S(129, __c16, 1));
|
|
5028
4931
|
case 2:
|
|
5029
4932
|
return S.suspend(() =>
|
|
5030
4933
|
S.Struct({
|
|
5031
|
-
integrations: S.optional(__S(
|
|
4934
|
+
integrations: S.optional(__S(425, __c53, 1)),
|
|
5032
4935
|
}),
|
|
5033
4936
|
).annotate({ identifier: "GetPostureIntegrationsResponse" });
|
|
5034
4937
|
}
|
|
5035
4938
|
}
|
|
5036
|
-
function
|
|
4939
|
+
function __c54(j: number): any {
|
|
5037
4940
|
switch (j) {
|
|
5038
4941
|
case 0:
|
|
5039
4942
|
return S.suspend(() =>
|
|
@@ -5046,22 +4949,22 @@ function __c59(j: number): any {
|
|
|
5046
4949
|
).annotate({ identifier: "GetServiceRequest" });
|
|
5047
4950
|
}
|
|
5048
4951
|
}
|
|
5049
|
-
function
|
|
4952
|
+
function __c55(j: number): any {
|
|
5050
4953
|
switch (j) {
|
|
5051
4954
|
case 0:
|
|
5052
4955
|
return S.suspend(() =>
|
|
5053
4956
|
S.Struct({
|
|
5054
4957
|
name: S.optional(S.String),
|
|
5055
4958
|
displayName: S.optional(S.String),
|
|
5056
|
-
addrs: S.optional(__S(
|
|
4959
|
+
addrs: S.optional(__S(80, __c10, 0)),
|
|
5057
4960
|
comment: S.optional(S.String),
|
|
5058
|
-
ports: S.optional(__S(
|
|
5059
|
-
tags: S.optional(__S(
|
|
4961
|
+
ports: S.optional(__S(80, __c10, 0)),
|
|
4962
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
5060
4963
|
}),
|
|
5061
4964
|
).annotate({ identifier: "VIPServiceInfo" });
|
|
5062
4965
|
}
|
|
5063
4966
|
}
|
|
5064
|
-
function
|
|
4967
|
+
function __c56(j: number): any {
|
|
5065
4968
|
switch (j) {
|
|
5066
4969
|
case 0:
|
|
5067
4970
|
return S.suspend(() =>
|
|
@@ -5079,7 +4982,7 @@ function __c61(j: number): any {
|
|
|
5079
4982
|
).annotate({ identifier: "GetServiceDeviceApprovalRequest" });
|
|
5080
4983
|
}
|
|
5081
4984
|
}
|
|
5082
|
-
function
|
|
4985
|
+
function __c57(j: number): any {
|
|
5083
4986
|
switch (j) {
|
|
5084
4987
|
case 0:
|
|
5085
4988
|
return S.suspend(() =>
|
|
@@ -5090,7 +4993,7 @@ function __c62(j: number): any {
|
|
|
5090
4993
|
).annotate({ identifier: "VIPServiceApproval" });
|
|
5091
4994
|
}
|
|
5092
4995
|
}
|
|
5093
|
-
function
|
|
4996
|
+
function __c58(j: number): any {
|
|
5094
4997
|
switch (j) {
|
|
5095
4998
|
case 0:
|
|
5096
4999
|
return S.suspend(() =>
|
|
@@ -5100,17 +5003,17 @@ function __c63(j: number): any {
|
|
|
5100
5003
|
).annotate({ identifier: "GetSplitDnsRequest" });
|
|
5101
5004
|
}
|
|
5102
5005
|
}
|
|
5103
|
-
function
|
|
5006
|
+
function __c59(j: number): any {
|
|
5104
5007
|
switch (j) {
|
|
5105
5008
|
case 0:
|
|
5106
|
-
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(
|
|
5009
|
+
return S.Record(S.String, /*@__PURE__*/ S.NullOr(__S(80, __c10, 0)));
|
|
5107
5010
|
case 1:
|
|
5108
|
-
return S.suspend(() => __S(
|
|
5011
|
+
return S.suspend(() => __S(472, __c59, 0).pipe(T.RawResponseRoot())).annotate({
|
|
5109
5012
|
identifier: "GetSplitDnsResponse",
|
|
5110
5013
|
});
|
|
5111
5014
|
}
|
|
5112
5015
|
}
|
|
5113
|
-
function
|
|
5016
|
+
function __c60(j: number): any {
|
|
5114
5017
|
switch (j) {
|
|
5115
5018
|
case 0:
|
|
5116
5019
|
return S.suspend(() =>
|
|
@@ -5120,7 +5023,7 @@ function __c65(j: number): any {
|
|
|
5120
5023
|
).annotate({ identifier: "GetTailnetSettingsRequest" });
|
|
5121
5024
|
}
|
|
5122
5025
|
}
|
|
5123
|
-
function
|
|
5026
|
+
function __c61(j: number): any {
|
|
5124
5027
|
switch (j) {
|
|
5125
5028
|
case 0:
|
|
5126
5029
|
return S.suspend(() =>
|
|
@@ -5142,7 +5045,7 @@ function __c66(j: number): any {
|
|
|
5142
5045
|
).annotate({ identifier: "TailnetSettings" });
|
|
5143
5046
|
}
|
|
5144
5047
|
}
|
|
5145
|
-
function
|
|
5048
|
+
function __c62(j: number): any {
|
|
5146
5049
|
switch (j) {
|
|
5147
5050
|
case 0:
|
|
5148
5051
|
return S.suspend(() =>
|
|
@@ -5152,7 +5055,7 @@ function __c67(j: number): any {
|
|
|
5152
5055
|
).annotate({ identifier: "GetUserRequest" });
|
|
5153
5056
|
}
|
|
5154
5057
|
}
|
|
5155
|
-
function
|
|
5058
|
+
function __c63(j: number): any {
|
|
5156
5059
|
switch (j) {
|
|
5157
5060
|
case 0:
|
|
5158
5061
|
return S.suspend(() =>
|
|
@@ -5173,7 +5076,7 @@ function __c68(j: number): any {
|
|
|
5173
5076
|
).annotate({ identifier: "User" });
|
|
5174
5077
|
}
|
|
5175
5078
|
}
|
|
5176
|
-
function
|
|
5079
|
+
function __c64(j: number): any {
|
|
5177
5080
|
switch (j) {
|
|
5178
5081
|
case 0:
|
|
5179
5082
|
return S.suspend(() =>
|
|
@@ -5183,7 +5086,7 @@ function __c69(j: number): any {
|
|
|
5183
5086
|
).annotate({ identifier: "GetUserInviteRequest" });
|
|
5184
5087
|
}
|
|
5185
5088
|
}
|
|
5186
|
-
function
|
|
5089
|
+
function __c65(j: number): any {
|
|
5187
5090
|
switch (j) {
|
|
5188
5091
|
case 0:
|
|
5189
5092
|
return S.suspend(() =>
|
|
@@ -5193,7 +5096,7 @@ function __c70(j: number): any {
|
|
|
5193
5096
|
).annotate({ identifier: "GetWebhookRequest" });
|
|
5194
5097
|
}
|
|
5195
5098
|
}
|
|
5196
|
-
function
|
|
5099
|
+
function __c66(j: number): any {
|
|
5197
5100
|
switch (j) {
|
|
5198
5101
|
case 0:
|
|
5199
5102
|
return S.suspend(() =>
|
|
@@ -5201,9 +5104,9 @@ function __c71(j: number): any {
|
|
|
5201
5104
|
tailnet: S.String.pipe(T.Label()),
|
|
5202
5105
|
start: S.String.pipe(T.Query()),
|
|
5203
5106
|
end: S.String.pipe(T.Query()),
|
|
5204
|
-
actor: S.optional(__S(
|
|
5205
|
-
target: S.optional(__S(
|
|
5206
|
-
event: S.optional(__S(
|
|
5107
|
+
actor: S.optional(__S(80, __c10, 0).pipe(T.Query())),
|
|
5108
|
+
target: S.optional(__S(80, __c10, 0).pipe(T.Query())),
|
|
5109
|
+
event: S.optional(__S(168, __c21, 0).pipe(T.Query())),
|
|
5207
5110
|
}).pipe(
|
|
5208
5111
|
T.Http({ method: "GET", uri: "/tailnet/{tailnet}/logging/configuration", code: 200 }),
|
|
5209
5112
|
),
|
|
@@ -5215,7 +5118,7 @@ function __c71(j: number): any {
|
|
|
5215
5118
|
type: S.optional(S.String),
|
|
5216
5119
|
loginName: S.optional(S.String),
|
|
5217
5120
|
displayName: S.optional(S.String),
|
|
5218
|
-
tags: S.optional(__S(
|
|
5121
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
5219
5122
|
}),
|
|
5220
5123
|
).annotate({ identifier: "ConfigurationAuditLogActor" });
|
|
5221
5124
|
case 2:
|
|
@@ -5236,8 +5139,8 @@ function __c71(j: number): any {
|
|
|
5236
5139
|
deferredAt: S.optional(S.String),
|
|
5237
5140
|
eventGroupID: S.String,
|
|
5238
5141
|
origin: S.String,
|
|
5239
|
-
actor: __S(
|
|
5240
|
-
target: __S(
|
|
5142
|
+
actor: __S(529, __c66, 1),
|
|
5143
|
+
target: __S(530, __c66, 2),
|
|
5241
5144
|
action: S.String,
|
|
5242
5145
|
old: S.optional(S.Unknown),
|
|
5243
5146
|
new: S.optional(S.Unknown),
|
|
@@ -5246,18 +5149,18 @@ function __c71(j: number): any {
|
|
|
5246
5149
|
}),
|
|
5247
5150
|
).annotate({ identifier: "ConfigurationAuditLog" });
|
|
5248
5151
|
case 4:
|
|
5249
|
-
return S.Array(__S(
|
|
5152
|
+
return S.Array(__S(531, __c66, 3));
|
|
5250
5153
|
case 5:
|
|
5251
5154
|
return S.suspend(() =>
|
|
5252
5155
|
S.Struct({
|
|
5253
5156
|
version: S.optional(S.String),
|
|
5254
5157
|
tailnet: S.optional(S.String),
|
|
5255
|
-
logs: S.optional(__S(
|
|
5158
|
+
logs: S.optional(__S(532, __c66, 4)),
|
|
5256
5159
|
}),
|
|
5257
5160
|
).annotate({ identifier: "ListConfigurationAuditLogsResponse" });
|
|
5258
5161
|
}
|
|
5259
5162
|
}
|
|
5260
|
-
function
|
|
5163
|
+
function __c67(j: number): any {
|
|
5261
5164
|
switch (j) {
|
|
5262
5165
|
case 0:
|
|
5263
5166
|
return S.suspend(() =>
|
|
@@ -5267,7 +5170,7 @@ function __c72(j: number): any {
|
|
|
5267
5170
|
).annotate({ identifier: "ListDeviceInvitesRequest" });
|
|
5268
5171
|
}
|
|
5269
5172
|
}
|
|
5270
|
-
function
|
|
5173
|
+
function __c68(j: number): any {
|
|
5271
5174
|
switch (j) {
|
|
5272
5175
|
case 0:
|
|
5273
5176
|
return S.suspend(() =>
|
|
@@ -5277,18 +5180,18 @@ function __c73(j: number): any {
|
|
|
5277
5180
|
).annotate({ identifier: "ListDeviceRoutesRequest" });
|
|
5278
5181
|
}
|
|
5279
5182
|
}
|
|
5280
|
-
function
|
|
5183
|
+
function __c69(j: number): any {
|
|
5281
5184
|
switch (j) {
|
|
5282
5185
|
case 0:
|
|
5283
5186
|
return S.suspend(() =>
|
|
5284
5187
|
S.Struct({
|
|
5285
|
-
advertisedRoutes: S.optional(__S(
|
|
5286
|
-
enabledRoutes: S.optional(__S(
|
|
5188
|
+
advertisedRoutes: S.optional(__S(80, __c10, 0)),
|
|
5189
|
+
enabledRoutes: S.optional(__S(80, __c10, 0)),
|
|
5287
5190
|
}),
|
|
5288
5191
|
).annotate({ identifier: "DeviceRoutes" });
|
|
5289
5192
|
}
|
|
5290
5193
|
}
|
|
5291
|
-
function
|
|
5194
|
+
function __c70(j: number): any {
|
|
5292
5195
|
switch (j) {
|
|
5293
5196
|
case 0:
|
|
5294
5197
|
return S.suspend(() =>
|
|
@@ -5299,12 +5202,12 @@ function __c75(j: number): any {
|
|
|
5299
5202
|
case 1:
|
|
5300
5203
|
return S.suspend(() =>
|
|
5301
5204
|
S.Struct({
|
|
5302
|
-
dns: S.optional(__S(
|
|
5205
|
+
dns: S.optional(__S(80, __c10, 0)),
|
|
5303
5206
|
}),
|
|
5304
5207
|
).annotate({ identifier: "ListDnsNameserversResponse" });
|
|
5305
5208
|
}
|
|
5306
5209
|
}
|
|
5307
|
-
function
|
|
5210
|
+
function __c71(j: number): any {
|
|
5308
5211
|
switch (j) {
|
|
5309
5212
|
case 0:
|
|
5310
5213
|
return S.suspend(() =>
|
|
@@ -5314,17 +5217,17 @@ function __c76(j: number): any {
|
|
|
5314
5217
|
).annotate({ identifier: "ListDnsSearchPathsRequest" });
|
|
5315
5218
|
}
|
|
5316
5219
|
}
|
|
5317
|
-
function
|
|
5220
|
+
function __c72(j: number): any {
|
|
5318
5221
|
switch (j) {
|
|
5319
5222
|
case 0:
|
|
5320
5223
|
return S.suspend(() =>
|
|
5321
5224
|
S.Struct({
|
|
5322
|
-
searchPaths: __S(
|
|
5225
|
+
searchPaths: __S(80, __c10, 0),
|
|
5323
5226
|
}),
|
|
5324
5227
|
).annotate({ identifier: "DnsSearchPaths" });
|
|
5325
5228
|
}
|
|
5326
5229
|
}
|
|
5327
|
-
function
|
|
5230
|
+
function __c73(j: number): any {
|
|
5328
5231
|
switch (j) {
|
|
5329
5232
|
case 0:
|
|
5330
5233
|
return S.suspend(() =>
|
|
@@ -5347,7 +5250,7 @@ function __c78(j: number): any {
|
|
|
5347
5250
|
}),
|
|
5348
5251
|
).annotate({ identifier: "ConnectionCounts" });
|
|
5349
5252
|
case 2:
|
|
5350
|
-
return S.Array(__S(
|
|
5253
|
+
return S.Array(__S(585, __c73, 1));
|
|
5351
5254
|
case 3:
|
|
5352
5255
|
return S.suspend(() =>
|
|
5353
5256
|
S.Struct({
|
|
@@ -5355,23 +5258,23 @@ function __c78(j: number): any {
|
|
|
5355
5258
|
nodeId: S.optional(S.String),
|
|
5356
5259
|
start: S.optional(S.String),
|
|
5357
5260
|
end: S.optional(S.String),
|
|
5358
|
-
virtualTraffic: S.optional(__S(
|
|
5359
|
-
subnetTraffic: S.optional(__S(
|
|
5360
|
-
exitTraffic: S.optional(__S(
|
|
5361
|
-
physicalTraffic: S.optional(__S(
|
|
5261
|
+
virtualTraffic: S.optional(__S(586, __c73, 2)),
|
|
5262
|
+
subnetTraffic: S.optional(__S(586, __c73, 2)),
|
|
5263
|
+
exitTraffic: S.optional(__S(586, __c73, 2)),
|
|
5264
|
+
physicalTraffic: S.optional(__S(586, __c73, 2)),
|
|
5362
5265
|
}),
|
|
5363
5266
|
).annotate({ identifier: "NetworkFlowLog" });
|
|
5364
5267
|
case 4:
|
|
5365
|
-
return S.Array(__S(
|
|
5268
|
+
return S.Array(__S(587, __c73, 3));
|
|
5366
5269
|
case 5:
|
|
5367
5270
|
return S.suspend(() =>
|
|
5368
5271
|
S.Struct({
|
|
5369
|
-
logs: S.optional(__S(
|
|
5272
|
+
logs: S.optional(__S(588, __c73, 4)),
|
|
5370
5273
|
}),
|
|
5371
5274
|
).annotate({ identifier: "ListNetworkFlowLogsResponse" });
|
|
5372
5275
|
}
|
|
5373
5276
|
}
|
|
5374
|
-
function
|
|
5277
|
+
function __c74(j: number): any {
|
|
5375
5278
|
switch (j) {
|
|
5376
5279
|
case 0:
|
|
5377
5280
|
return S.suspend(() =>
|
|
@@ -5380,49 +5283,16 @@ function __c79(j: number): any {
|
|
|
5380
5283
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/oauth-apps", code: 200 })),
|
|
5381
5284
|
).annotate({ identifier: "ListOAuthAppsRequest" });
|
|
5382
5285
|
case 1:
|
|
5383
|
-
return S.Array(__S(
|
|
5286
|
+
return S.Array(__S(112, __c14, 0));
|
|
5384
5287
|
case 2:
|
|
5385
5288
|
return S.suspend(() =>
|
|
5386
5289
|
S.Struct({
|
|
5387
|
-
oauthApps: S.optional(__S(
|
|
5290
|
+
oauthApps: S.optional(__S(593, __c74, 1)),
|
|
5388
5291
|
}),
|
|
5389
5292
|
).annotate({ identifier: "ListOAuthAppsResponse" });
|
|
5390
5293
|
}
|
|
5391
5294
|
}
|
|
5392
|
-
function
|
|
5393
|
-
switch (j) {
|
|
5394
|
-
case 0:
|
|
5395
|
-
return S.suspend(() =>
|
|
5396
|
-
S.Struct({
|
|
5397
|
-
organization: S.String.pipe(T.Label()),
|
|
5398
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
5399
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
5400
|
-
}).pipe(
|
|
5401
|
-
T.Http({ method: "GET", uri: "/organizations/{organization}/tailnets", code: 200 }),
|
|
5402
|
-
),
|
|
5403
|
-
).annotate({ identifier: "ListOrganizationTailnetsRequest" });
|
|
5404
|
-
case 1:
|
|
5405
|
-
return S.suspend(() =>
|
|
5406
|
-
S.Struct({
|
|
5407
|
-
id: S.optional(S.String),
|
|
5408
|
-
displayName: S.optional(S.String),
|
|
5409
|
-
orgId: S.optional(S.String),
|
|
5410
|
-
createdAt: S.optional(S.String),
|
|
5411
|
-
}),
|
|
5412
|
-
).annotate({ identifier: "OrganizationTailnet" });
|
|
5413
|
-
case 2:
|
|
5414
|
-
return S.Array(__S(641, __c80, 1));
|
|
5415
|
-
case 3:
|
|
5416
|
-
return S.suspend(() =>
|
|
5417
|
-
S.Struct({
|
|
5418
|
-
tailnets: __S(642, __c80, 2),
|
|
5419
|
-
cursor: S.optional(S.String),
|
|
5420
|
-
totalCount: S.optional(S.Number),
|
|
5421
|
-
}),
|
|
5422
|
-
).annotate({ identifier: "ListOrganizationTailnetsResponse" });
|
|
5423
|
-
}
|
|
5424
|
-
}
|
|
5425
|
-
function __c81(j: number): any {
|
|
5295
|
+
function __c75(j: number): any {
|
|
5426
5296
|
switch (j) {
|
|
5427
5297
|
case 0:
|
|
5428
5298
|
return S.suspend(() =>
|
|
@@ -5446,16 +5316,16 @@ function __c81(j: number): any {
|
|
|
5446
5316
|
}),
|
|
5447
5317
|
).annotate({ identifier: "ServiceHostInfo" });
|
|
5448
5318
|
case 2:
|
|
5449
|
-
return S.Array(__S(
|
|
5319
|
+
return S.Array(__S(601, __c75, 1));
|
|
5450
5320
|
case 3:
|
|
5451
5321
|
return S.suspend(() =>
|
|
5452
5322
|
S.Struct({
|
|
5453
|
-
hosts: S.optional(__S(
|
|
5323
|
+
hosts: S.optional(__S(602, __c75, 2)),
|
|
5454
5324
|
}),
|
|
5455
5325
|
).annotate({ identifier: "ListServiceHostsResponse" });
|
|
5456
5326
|
}
|
|
5457
5327
|
}
|
|
5458
|
-
function
|
|
5328
|
+
function __c76(j: number): any {
|
|
5459
5329
|
switch (j) {
|
|
5460
5330
|
case 0:
|
|
5461
5331
|
return S.suspend(() =>
|
|
@@ -5464,16 +5334,16 @@ function __c82(j: number): any {
|
|
|
5464
5334
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/services", code: 200 })),
|
|
5465
5335
|
).annotate({ identifier: "ListServicesRequest" });
|
|
5466
5336
|
case 1:
|
|
5467
|
-
return S.Array(__S(
|
|
5337
|
+
return S.Array(__S(440, __c55, 0));
|
|
5468
5338
|
case 2:
|
|
5469
5339
|
return S.suspend(() =>
|
|
5470
5340
|
S.Struct({
|
|
5471
|
-
vipServices: S.optional(__S(
|
|
5341
|
+
vipServices: S.optional(__S(609, __c76, 1)),
|
|
5472
5342
|
}),
|
|
5473
5343
|
).annotate({ identifier: "ListServicesResponse" });
|
|
5474
5344
|
}
|
|
5475
5345
|
}
|
|
5476
|
-
function
|
|
5346
|
+
function __c77(j: number): any {
|
|
5477
5347
|
switch (j) {
|
|
5478
5348
|
case 0:
|
|
5479
5349
|
return S.suspend(() =>
|
|
@@ -5484,16 +5354,16 @@ function __c83(j: number): any {
|
|
|
5484
5354
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/devices", code: 200 })),
|
|
5485
5355
|
).annotate({ identifier: "ListTailnetDevicesRequest" });
|
|
5486
5356
|
case 1:
|
|
5487
|
-
return S.Array(__S(
|
|
5357
|
+
return S.Array(__S(311, __c38, 7));
|
|
5488
5358
|
case 2:
|
|
5489
5359
|
return S.suspend(() =>
|
|
5490
5360
|
S.Struct({
|
|
5491
|
-
devices: S.optional(__S(
|
|
5361
|
+
devices: S.optional(__S(617, __c77, 1)),
|
|
5492
5362
|
}),
|
|
5493
5363
|
).annotate({ identifier: "ListTailnetDevicesResponse" });
|
|
5494
5364
|
}
|
|
5495
5365
|
}
|
|
5496
|
-
function
|
|
5366
|
+
function __c78(j: number): any {
|
|
5497
5367
|
switch (j) {
|
|
5498
5368
|
case 0:
|
|
5499
5369
|
return S.suspend(() =>
|
|
@@ -5503,16 +5373,16 @@ function __c84(j: number): any {
|
|
|
5503
5373
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/keys", code: 200 })),
|
|
5504
5374
|
).annotate({ identifier: "ListTailnetKeysRequest" });
|
|
5505
5375
|
case 1:
|
|
5506
|
-
return S.Array(__S(
|
|
5376
|
+
return S.Array(__S(100, __c12, 4));
|
|
5507
5377
|
case 2:
|
|
5508
5378
|
return S.suspend(() =>
|
|
5509
5379
|
S.Struct({
|
|
5510
|
-
keys: S.optional(__S(
|
|
5380
|
+
keys: S.optional(__S(625, __c78, 1)),
|
|
5511
5381
|
}),
|
|
5512
5382
|
).annotate({ identifier: "ListTailnetKeysResponse" });
|
|
5513
5383
|
}
|
|
5514
5384
|
}
|
|
5515
|
-
function
|
|
5385
|
+
function __c79(j: number): any {
|
|
5516
5386
|
switch (j) {
|
|
5517
5387
|
case 0:
|
|
5518
5388
|
return S.suspend(() =>
|
|
@@ -5522,7 +5392,7 @@ function __c85(j: number): any {
|
|
|
5522
5392
|
).annotate({ identifier: "ListUserInvitesRequest" });
|
|
5523
5393
|
}
|
|
5524
5394
|
}
|
|
5525
|
-
function
|
|
5395
|
+
function __c80(j: number): any {
|
|
5526
5396
|
switch (j) {
|
|
5527
5397
|
case 0:
|
|
5528
5398
|
return S.suspend(() =>
|
|
@@ -5533,16 +5403,16 @@ function __c86(j: number): any {
|
|
|
5533
5403
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/users", code: 200 })),
|
|
5534
5404
|
).annotate({ identifier: "ListUsersRequest" });
|
|
5535
5405
|
case 1:
|
|
5536
|
-
return S.Array(__S(
|
|
5406
|
+
return S.Array(__S(504, __c63, 0));
|
|
5537
5407
|
case 2:
|
|
5538
5408
|
return S.suspend(() =>
|
|
5539
5409
|
S.Struct({
|
|
5540
|
-
users: S.optional(__S(
|
|
5410
|
+
users: S.optional(__S(641, __c80, 1)),
|
|
5541
5411
|
}),
|
|
5542
5412
|
).annotate({ identifier: "ListUsersResponse" });
|
|
5543
5413
|
}
|
|
5544
5414
|
}
|
|
5545
|
-
function
|
|
5415
|
+
function __c81(j: number): any {
|
|
5546
5416
|
switch (j) {
|
|
5547
5417
|
case 0:
|
|
5548
5418
|
return S.suspend(() =>
|
|
@@ -5551,16 +5421,16 @@ function __c87(j: number): any {
|
|
|
5551
5421
|
}).pipe(T.Http({ method: "GET", uri: "/tailnet/{tailnet}/webhooks", code: 200 })),
|
|
5552
5422
|
).annotate({ identifier: "ListWebhooksRequest" });
|
|
5553
5423
|
case 1:
|
|
5554
|
-
return S.Array(__S(
|
|
5424
|
+
return S.Array(__S(176, __c22, 0));
|
|
5555
5425
|
case 2:
|
|
5556
5426
|
return S.suspend(() =>
|
|
5557
5427
|
S.Struct({
|
|
5558
|
-
webhooks: S.optional(S.NullOr(__S(
|
|
5428
|
+
webhooks: S.optional(S.NullOr(__S(649, __c81, 1))),
|
|
5559
5429
|
}),
|
|
5560
5430
|
).annotate({ identifier: "ListWebhooksResponse" });
|
|
5561
5431
|
}
|
|
5562
5432
|
}
|
|
5563
|
-
function
|
|
5433
|
+
function __c82(j: number): any {
|
|
5564
5434
|
switch (j) {
|
|
5565
5435
|
case 0:
|
|
5566
5436
|
return S.suspend(() =>
|
|
@@ -5573,24 +5443,24 @@ function __c88(j: number): any {
|
|
|
5573
5443
|
case 1:
|
|
5574
5444
|
return S.suspend(() =>
|
|
5575
5445
|
S.Struct({
|
|
5576
|
-
users: __S(
|
|
5577
|
-
ports: __S(
|
|
5446
|
+
users: __S(80, __c10, 0),
|
|
5447
|
+
ports: __S(80, __c10, 0),
|
|
5578
5448
|
lineNumber: S.Number,
|
|
5579
5449
|
}),
|
|
5580
5450
|
).annotate({ identifier: "PreviewRuleMatchesResponseMatchesItem" });
|
|
5581
5451
|
case 2:
|
|
5582
|
-
return S.Array(__S(
|
|
5452
|
+
return S.Array(__S(657, __c82, 1));
|
|
5583
5453
|
case 3:
|
|
5584
5454
|
return S.suspend(() =>
|
|
5585
5455
|
S.Struct({
|
|
5586
|
-
matches: __S(
|
|
5456
|
+
matches: __S(658, __c82, 2),
|
|
5587
5457
|
type: S.String,
|
|
5588
5458
|
previewFor: S.String,
|
|
5589
5459
|
}),
|
|
5590
5460
|
).annotate({ identifier: "PreviewRuleMatchesResponse" });
|
|
5591
5461
|
}
|
|
5592
5462
|
}
|
|
5593
|
-
function
|
|
5463
|
+
function __c83(j: number): any {
|
|
5594
5464
|
switch (j) {
|
|
5595
5465
|
case 0:
|
|
5596
5466
|
return S.suspend(() =>
|
|
@@ -5607,7 +5477,7 @@ function __c89(j: number): any {
|
|
|
5607
5477
|
).annotate({ identifier: "ResendContactVerificationEmailRequest" });
|
|
5608
5478
|
}
|
|
5609
5479
|
}
|
|
5610
|
-
function
|
|
5480
|
+
function __c84(j: number): any {
|
|
5611
5481
|
switch (j) {
|
|
5612
5482
|
case 0:
|
|
5613
5483
|
return S.suspend(() =>
|
|
@@ -5619,7 +5489,7 @@ function __c90(j: number): any {
|
|
|
5619
5489
|
).annotate({ identifier: "ResendDeviceInviteRequest" });
|
|
5620
5490
|
}
|
|
5621
5491
|
}
|
|
5622
|
-
function
|
|
5492
|
+
function __c85(j: number): any {
|
|
5623
5493
|
switch (j) {
|
|
5624
5494
|
case 0:
|
|
5625
5495
|
return S.suspend(() =>
|
|
@@ -5629,7 +5499,7 @@ function __c91(j: number): any {
|
|
|
5629
5499
|
).annotate({ identifier: "ResendUserInviteRequest" });
|
|
5630
5500
|
}
|
|
5631
5501
|
}
|
|
5632
|
-
function
|
|
5502
|
+
function __c86(j: number): any {
|
|
5633
5503
|
switch (j) {
|
|
5634
5504
|
case 0:
|
|
5635
5505
|
return S.suspend(() =>
|
|
@@ -5639,7 +5509,7 @@ function __c92(j: number): any {
|
|
|
5639
5509
|
).annotate({ identifier: "RestoreUserRequest" });
|
|
5640
5510
|
}
|
|
5641
5511
|
}
|
|
5642
|
-
function
|
|
5512
|
+
function __c87(j: number): any {
|
|
5643
5513
|
switch (j) {
|
|
5644
5514
|
case 0:
|
|
5645
5515
|
return S.suspend(() =>
|
|
@@ -5649,7 +5519,7 @@ function __c93(j: number): any {
|
|
|
5649
5519
|
).annotate({ identifier: "RotateWebhookSecretRequest" });
|
|
5650
5520
|
}
|
|
5651
5521
|
}
|
|
5652
|
-
function
|
|
5522
|
+
function __c88(j: number): any {
|
|
5653
5523
|
switch (j) {
|
|
5654
5524
|
case 0:
|
|
5655
5525
|
return S.suspend(() =>
|
|
@@ -5669,7 +5539,7 @@ function __c94(j: number): any {
|
|
|
5669
5539
|
).annotate({ identifier: "SetCustomDevicePostureAttributesRequest" });
|
|
5670
5540
|
}
|
|
5671
5541
|
}
|
|
5672
|
-
function
|
|
5542
|
+
function __c89(j: number): any {
|
|
5673
5543
|
switch (j) {
|
|
5674
5544
|
case 0:
|
|
5675
5545
|
return S.suspend(() =>
|
|
@@ -5680,7 +5550,7 @@ function __c95(j: number): any {
|
|
|
5680
5550
|
).annotate({ identifier: "SetDeviceIpRequest" });
|
|
5681
5551
|
}
|
|
5682
5552
|
}
|
|
5683
|
-
function
|
|
5553
|
+
function __c90(j: number): any {
|
|
5684
5554
|
switch (j) {
|
|
5685
5555
|
case 0:
|
|
5686
5556
|
return S.suspend(() =>
|
|
@@ -5691,61 +5561,71 @@ function __c96(j: number): any {
|
|
|
5691
5561
|
).annotate({ identifier: "SetDeviceNameRequest" });
|
|
5692
5562
|
}
|
|
5693
5563
|
}
|
|
5694
|
-
function
|
|
5564
|
+
function __c91(j: number): any {
|
|
5695
5565
|
switch (j) {
|
|
5696
5566
|
case 0:
|
|
5697
5567
|
return S.suspend(() =>
|
|
5698
5568
|
S.Struct({
|
|
5699
5569
|
deviceId: S.String.pipe(T.Label()),
|
|
5700
|
-
routes: S.optional(__S(
|
|
5570
|
+
routes: S.optional(__S(80, __c10, 0)),
|
|
5701
5571
|
}).pipe(T.Http({ method: "POST", uri: "/device/{deviceId}/routes", code: 200 })),
|
|
5702
5572
|
).annotate({ identifier: "SetDeviceRoutesRequest" });
|
|
5703
5573
|
}
|
|
5704
5574
|
}
|
|
5705
|
-
function
|
|
5575
|
+
function __c92(j: number): any {
|
|
5706
5576
|
switch (j) {
|
|
5707
5577
|
case 0:
|
|
5708
5578
|
return S.suspend(() =>
|
|
5709
5579
|
S.Struct({
|
|
5710
5580
|
deviceId: S.String.pipe(T.Label()),
|
|
5711
|
-
tags: S.optional(__S(
|
|
5581
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
5712
5582
|
}).pipe(T.Http({ method: "POST", uri: "/device/{deviceId}/tags", code: 200 })),
|
|
5713
5583
|
).annotate({ identifier: "SetDeviceTagsRequest" });
|
|
5714
5584
|
}
|
|
5715
5585
|
}
|
|
5716
|
-
function
|
|
5586
|
+
function __c93(j: number): any {
|
|
5717
5587
|
switch (j) {
|
|
5718
5588
|
case 0:
|
|
5719
5589
|
return S.suspend(() =>
|
|
5720
5590
|
S.Struct({
|
|
5721
5591
|
tailnet: S.String.pipe(T.Label()),
|
|
5722
|
-
nameservers: S.optional(__S(
|
|
5723
|
-
splitDNS: S.optional(__S(
|
|
5724
|
-
searchPaths: S.optional(__S(
|
|
5725
|
-
preferences: S.optional(__S(
|
|
5592
|
+
nameservers: S.optional(__S(345, __c43, 1)),
|
|
5593
|
+
splitDNS: S.optional(__S(346, __c43, 2)),
|
|
5594
|
+
searchPaths: S.optional(__S(80, __c10, 0)),
|
|
5595
|
+
preferences: S.optional(__S(347, __c43, 3)),
|
|
5726
5596
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/dns/configuration", code: 200 })),
|
|
5727
5597
|
).annotate({ identifier: "SetDnsConfigurationRequest" });
|
|
5728
5598
|
}
|
|
5729
5599
|
}
|
|
5730
|
-
function
|
|
5600
|
+
function __c94(j: number): any {
|
|
5731
5601
|
switch (j) {
|
|
5732
5602
|
case 0:
|
|
5733
5603
|
return S.suspend(() =>
|
|
5734
5604
|
S.Struct({
|
|
5735
5605
|
tailnet: S.String.pipe(T.Label()),
|
|
5736
|
-
dns: S.optional(__S(
|
|
5606
|
+
dns: S.optional(__S(80, __c10, 0)),
|
|
5737
5607
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/dns/nameservers", code: 200 })),
|
|
5738
5608
|
).annotate({ identifier: "SetDnsNameserversRequest" });
|
|
5739
5609
|
case 1:
|
|
5740
5610
|
return S.suspend(() =>
|
|
5741
5611
|
S.Struct({
|
|
5742
|
-
dns: S.optional(__S(
|
|
5612
|
+
dns: S.optional(__S(80, __c10, 0)),
|
|
5743
5613
|
magicDNS: S.optional(S.Boolean),
|
|
5744
5614
|
}),
|
|
5745
5615
|
).annotate({ identifier: "SetDnsNameserversResponse" });
|
|
5746
5616
|
}
|
|
5747
5617
|
}
|
|
5748
|
-
function
|
|
5618
|
+
function __c95(j: number): any {
|
|
5619
|
+
switch (j) {
|
|
5620
|
+
case 0:
|
|
5621
|
+
return S.suspend(() =>
|
|
5622
|
+
S.Struct({
|
|
5623
|
+
message: S.optional(S.String),
|
|
5624
|
+
}),
|
|
5625
|
+
).annotate({ identifier: "Error422Body" });
|
|
5626
|
+
}
|
|
5627
|
+
}
|
|
5628
|
+
function __c96(j: number): any {
|
|
5749
5629
|
switch (j) {
|
|
5750
5630
|
case 0:
|
|
5751
5631
|
return S.suspend(() =>
|
|
@@ -5756,18 +5636,18 @@ function __c101(j: number): any {
|
|
|
5756
5636
|
).annotate({ identifier: "SetDnsPreferencesRequest" });
|
|
5757
5637
|
}
|
|
5758
5638
|
}
|
|
5759
|
-
function
|
|
5639
|
+
function __c97(j: number): any {
|
|
5760
5640
|
switch (j) {
|
|
5761
5641
|
case 0:
|
|
5762
5642
|
return S.suspend(() =>
|
|
5763
5643
|
S.Struct({
|
|
5764
5644
|
tailnet: S.String.pipe(T.Label()),
|
|
5765
|
-
searchPaths: __S(
|
|
5645
|
+
searchPaths: __S(80, __c10, 0),
|
|
5766
5646
|
}).pipe(T.Http({ method: "POST", uri: "/tailnet/{tailnet}/dns/searchpaths", code: 200 })),
|
|
5767
5647
|
).annotate({ identifier: "SetDnsSearchPathsRequest" });
|
|
5768
5648
|
}
|
|
5769
5649
|
}
|
|
5770
|
-
function
|
|
5650
|
+
function __c98(j: number): any {
|
|
5771
5651
|
switch (j) {
|
|
5772
5652
|
case 0:
|
|
5773
5653
|
return S.suspend(() =>
|
|
@@ -5776,17 +5656,17 @@ function __c103(j: number): any {
|
|
|
5776
5656
|
keyId: S.String.pipe(T.Label()),
|
|
5777
5657
|
keyType: S.optional(S.String),
|
|
5778
5658
|
description: S.optional(S.String),
|
|
5779
|
-
scopes: S.optional(__S(
|
|
5780
|
-
tags: S.optional(__S(
|
|
5659
|
+
scopes: S.optional(__S(80, __c10, 0)),
|
|
5660
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
5781
5661
|
issuer: S.optional(S.String),
|
|
5782
5662
|
subject: S.optional(S.String),
|
|
5783
5663
|
audience: S.optional(S.String),
|
|
5784
|
-
customClaimRules: S.optional(__S(
|
|
5664
|
+
customClaimRules: S.optional(__S(88, __c11, 0)),
|
|
5785
5665
|
}).pipe(T.Http({ method: "PUT", uri: "/tailnet/{tailnet}/keys/{keyId}", code: 200 })),
|
|
5786
5666
|
).annotate({ identifier: "SetKeyRequest" });
|
|
5787
5667
|
}
|
|
5788
5668
|
}
|
|
5789
|
-
function
|
|
5669
|
+
function __c99(j: number): any {
|
|
5790
5670
|
switch (j) {
|
|
5791
5671
|
case 0:
|
|
5792
5672
|
return S.suspend(() =>
|
|
@@ -5808,7 +5688,7 @@ function __c104(j: number): any {
|
|
|
5808
5688
|
s3RoleArn: S.optional(S.String),
|
|
5809
5689
|
gcsBucket: S.optional(S.String),
|
|
5810
5690
|
gcsKeyPrefix: S.optional(S.String),
|
|
5811
|
-
gcsScopes: S.optional(__S(
|
|
5691
|
+
gcsScopes: S.optional(__S(80, __c10, 0)),
|
|
5812
5692
|
gcsCredentials: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
5813
5693
|
}).pipe(
|
|
5814
5694
|
T.Http({ method: "PUT", uri: "/tailnet/{tailnet}/logging/{logType}/stream", code: 200 }),
|
|
@@ -5816,7 +5696,7 @@ function __c104(j: number): any {
|
|
|
5816
5696
|
).annotate({ identifier: "SetLogStreamingConfigurationRequest" });
|
|
5817
5697
|
}
|
|
5818
5698
|
}
|
|
5819
|
-
function
|
|
5699
|
+
function __c100(j: number): any {
|
|
5820
5700
|
switch (j) {
|
|
5821
5701
|
case 0:
|
|
5822
5702
|
return S.suspend(() =>
|
|
@@ -5836,18 +5716,18 @@ function __c105(j: number): any {
|
|
|
5836
5716
|
).annotate({ identifier: "SetPolicyFileRequest" });
|
|
5837
5717
|
}
|
|
5838
5718
|
}
|
|
5839
|
-
function
|
|
5719
|
+
function __c101(j: number): any {
|
|
5840
5720
|
switch (j) {
|
|
5841
5721
|
case 0:
|
|
5842
5722
|
return S.suspend(() =>
|
|
5843
5723
|
S.Struct({
|
|
5844
5724
|
tailnet: S.String.pipe(T.Label()),
|
|
5845
|
-
body: S.optional(__S(
|
|
5725
|
+
body: S.optional(__S(472, __c59, 0).pipe(T.HttpBody())),
|
|
5846
5726
|
}).pipe(T.Http({ method: "PUT", uri: "/tailnet/{tailnet}/dns/split-dns", code: 200 })),
|
|
5847
5727
|
).annotate({ identifier: "SetSplitDnsRequest" });
|
|
5848
5728
|
}
|
|
5849
5729
|
}
|
|
5850
|
-
function
|
|
5730
|
+
function __c102(j: number): any {
|
|
5851
5731
|
switch (j) {
|
|
5852
5732
|
case 0:
|
|
5853
5733
|
return S.suspend(() =>
|
|
@@ -5857,7 +5737,7 @@ function __c107(j: number): any {
|
|
|
5857
5737
|
).annotate({ identifier: "SuspendUserRequest" });
|
|
5858
5738
|
}
|
|
5859
5739
|
}
|
|
5860
|
-
function
|
|
5740
|
+
function __c103(j: number): any {
|
|
5861
5741
|
switch (j) {
|
|
5862
5742
|
case 0:
|
|
5863
5743
|
return S.suspend(() =>
|
|
@@ -5867,7 +5747,7 @@ function __c108(j: number): any {
|
|
|
5867
5747
|
).annotate({ identifier: "TestWebhookRequest" });
|
|
5868
5748
|
}
|
|
5869
5749
|
}
|
|
5870
|
-
function
|
|
5750
|
+
function __c104(j: number): any {
|
|
5871
5751
|
switch (j) {
|
|
5872
5752
|
case 0:
|
|
5873
5753
|
return S.suspend(() =>
|
|
@@ -5881,7 +5761,7 @@ function __c109(j: number): any {
|
|
|
5881
5761
|
).annotate({ identifier: "UpdateContactRequest" });
|
|
5882
5762
|
}
|
|
5883
5763
|
}
|
|
5884
|
-
function
|
|
5764
|
+
function __c105(j: number): any {
|
|
5885
5765
|
switch (j) {
|
|
5886
5766
|
case 0:
|
|
5887
5767
|
return S.suspend(() =>
|
|
@@ -5892,7 +5772,7 @@ function __c110(j: number): any {
|
|
|
5892
5772
|
).annotate({ identifier: "UpdateDeviceKeyRequest" });
|
|
5893
5773
|
}
|
|
5894
5774
|
}
|
|
5895
|
-
function
|
|
5775
|
+
function __c106(j: number): any {
|
|
5896
5776
|
switch (j) {
|
|
5897
5777
|
case 0:
|
|
5898
5778
|
return S.suspend(() =>
|
|
@@ -5901,14 +5781,14 @@ function __c111(j: number): any {
|
|
|
5901
5781
|
appId: S.String.pipe(T.Label()),
|
|
5902
5782
|
name: S.String,
|
|
5903
5783
|
description: S.optional(S.String),
|
|
5904
|
-
redirectURIs: __S(
|
|
5905
|
-
scopes: __S(
|
|
5906
|
-
allowedNodeAttributes: S.optional(__S(
|
|
5784
|
+
redirectURIs: __S(80, __c10, 0),
|
|
5785
|
+
scopes: __S(80, __c10, 0),
|
|
5786
|
+
allowedNodeAttributes: S.optional(__S(80, __c10, 0)),
|
|
5907
5787
|
}).pipe(T.Http({ method: "PUT", uri: "/tailnet/{tailnet}/oauth-apps/{appId}", code: 200 })),
|
|
5908
5788
|
).annotate({ identifier: "UpdateOAuthAppRequest" });
|
|
5909
5789
|
}
|
|
5910
5790
|
}
|
|
5911
|
-
function
|
|
5791
|
+
function __c107(j: number): any {
|
|
5912
5792
|
switch (j) {
|
|
5913
5793
|
case 0:
|
|
5914
5794
|
return S.suspend(() =>
|
|
@@ -5923,26 +5803,26 @@ function __c112(j: number): any {
|
|
|
5923
5803
|
).annotate({ identifier: "UpdatePostureIntegrationRequest" });
|
|
5924
5804
|
}
|
|
5925
5805
|
}
|
|
5926
|
-
function
|
|
5806
|
+
function __c108(j: number): any {
|
|
5927
5807
|
switch (j) {
|
|
5928
5808
|
case 0:
|
|
5929
5809
|
return S.suspend(() =>
|
|
5930
5810
|
S.Struct({
|
|
5931
5811
|
tailnet: S.String.pipe(T.Label()),
|
|
5932
5812
|
serviceName: S.String.pipe(T.Label()),
|
|
5933
|
-
addrs: S.optional(__S(
|
|
5813
|
+
addrs: S.optional(__S(80, __c10, 0)),
|
|
5934
5814
|
name: S.optional(S.String),
|
|
5935
5815
|
displayName: S.optional(S.String),
|
|
5936
5816
|
comment: S.optional(S.String),
|
|
5937
|
-
ports: S.optional(__S(
|
|
5938
|
-
tags: S.optional(__S(
|
|
5817
|
+
ports: S.optional(__S(80, __c10, 0)),
|
|
5818
|
+
tags: S.optional(__S(80, __c10, 0)),
|
|
5939
5819
|
}).pipe(
|
|
5940
5820
|
T.Http({ method: "PUT", uri: "/tailnet/{tailnet}/services/{serviceName}", code: 200 }),
|
|
5941
5821
|
),
|
|
5942
5822
|
).annotate({ identifier: "UpdateServiceRequest" });
|
|
5943
5823
|
}
|
|
5944
5824
|
}
|
|
5945
|
-
function
|
|
5825
|
+
function __c109(j: number): any {
|
|
5946
5826
|
switch (j) {
|
|
5947
5827
|
case 0:
|
|
5948
5828
|
return S.suspend(() =>
|
|
@@ -5961,18 +5841,18 @@ function __c114(j: number): any {
|
|
|
5961
5841
|
).annotate({ identifier: "UpdateServiceDeviceApprovalRequest" });
|
|
5962
5842
|
}
|
|
5963
5843
|
}
|
|
5964
|
-
function
|
|
5844
|
+
function __c110(j: number): any {
|
|
5965
5845
|
switch (j) {
|
|
5966
5846
|
case 0:
|
|
5967
5847
|
return S.suspend(() =>
|
|
5968
5848
|
S.Struct({
|
|
5969
5849
|
tailnet: S.String.pipe(T.Label()),
|
|
5970
|
-
body: S.optional(__S(
|
|
5850
|
+
body: S.optional(__S(472, __c59, 0).pipe(T.HttpBody())),
|
|
5971
5851
|
}).pipe(T.Http({ method: "PATCH", uri: "/tailnet/{tailnet}/dns/split-dns", code: 200 })),
|
|
5972
5852
|
).annotate({ identifier: "UpdateSplitDnsRequest" });
|
|
5973
5853
|
}
|
|
5974
5854
|
}
|
|
5975
|
-
function
|
|
5855
|
+
function __c111(j: number): any {
|
|
5976
5856
|
switch (j) {
|
|
5977
5857
|
case 0:
|
|
5978
5858
|
return S.suspend(() =>
|
|
@@ -5994,6 +5874,73 @@ function __c116(j: number): any {
|
|
|
5994
5874
|
).annotate({ identifier: "UpdateTailnetSettingsRequest" });
|
|
5995
5875
|
}
|
|
5996
5876
|
}
|
|
5877
|
+
function __c112(j: number): any {
|
|
5878
|
+
switch (j) {
|
|
5879
|
+
case 0:
|
|
5880
|
+
return S.suspend(() =>
|
|
5881
|
+
S.Struct({
|
|
5882
|
+
userId: S.String.pipe(T.Label()),
|
|
5883
|
+
role: S.optional(S.String),
|
|
5884
|
+
}).pipe(T.Http({ method: "POST", uri: "/users/{userId}/role", code: 200 })),
|
|
5885
|
+
).annotate({ identifier: "UpdateUserRoleRequest" });
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
function __c113(j: number): any {
|
|
5889
|
+
switch (j) {
|
|
5890
|
+
case 0:
|
|
5891
|
+
return S.suspend(() =>
|
|
5892
|
+
S.Struct({
|
|
5893
|
+
endpointId: S.String.pipe(T.Label()),
|
|
5894
|
+
subscriptions: S.optional(__S(168, __c21, 0)),
|
|
5895
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/webhooks/{endpointId}", code: 200 })),
|
|
5896
|
+
).annotate({ identifier: "UpdateWebhookRequest" });
|
|
5897
|
+
}
|
|
5898
|
+
}
|
|
5899
|
+
function __c114(j: number): any {
|
|
5900
|
+
switch (j) {
|
|
5901
|
+
case 0:
|
|
5902
|
+
return S.Array(S.Unknown);
|
|
5903
|
+
case 1:
|
|
5904
|
+
return S.suspend(() =>
|
|
5905
|
+
S.Struct({
|
|
5906
|
+
tailnet: S.String.pipe(T.Label()),
|
|
5907
|
+
body: S.String.pipe(T.HttpBody()),
|
|
5908
|
+
}).pipe(
|
|
5909
|
+
T.Http({
|
|
5910
|
+
method: "POST",
|
|
5911
|
+
uri: "/tailnet/{tailnet}/acl/validate",
|
|
5912
|
+
code: 200,
|
|
5913
|
+
bodyMediaType: "application/hujson",
|
|
5914
|
+
}),
|
|
5915
|
+
),
|
|
5916
|
+
).annotate({ identifier: "ValidateAndTestPolicyFileRequest" });
|
|
5917
|
+
case 2:
|
|
5918
|
+
return S.suspend(() =>
|
|
5919
|
+
S.Struct({
|
|
5920
|
+
message: S.optional(S.String),
|
|
5921
|
+
data: S.optional(__S(912, __c114, 0)),
|
|
5922
|
+
}),
|
|
5923
|
+
).annotate({ identifier: "ValidateAndTestPolicyFileResponse" });
|
|
5924
|
+
}
|
|
5925
|
+
}
|
|
5926
|
+
function __c115(j: number): any {
|
|
5927
|
+
switch (j) {
|
|
5928
|
+
case 0:
|
|
5929
|
+
return S.suspend(() =>
|
|
5930
|
+
S.Struct({
|
|
5931
|
+
tailnet: S.String.pipe(T.Label()),
|
|
5932
|
+
id: S.String.pipe(T.Label()),
|
|
5933
|
+
roleArn: S.optional(S.String),
|
|
5934
|
+
}).pipe(
|
|
5935
|
+
T.Http({
|
|
5936
|
+
method: "POST",
|
|
5937
|
+
uri: "/tailnet/{tailnet}/aws-external-id/{id}/validate-aws-trust-policy",
|
|
5938
|
+
code: 200,
|
|
5939
|
+
}),
|
|
5940
|
+
),
|
|
5941
|
+
).annotate({ identifier: "ValidateAwsExternalIdRequest" });
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5997
5944
|
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
5998
5945
|
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
5999
5946
|
return (__s[i] ??= __L.at(f, j));
|