dub 0.26.0 → 0.26.1
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 +4 -2
- package/docs/sdks/domains/README.md +3 -3
- package/docs/sdks/links/README.md +15 -15
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +12 -1
- package/lib/http.js.map +1 -1
- package/models/operations/getlinkinfo.d.ts +1 -1
- package/models/operations/index.d.ts +2 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/{editdomain.d.ts → updatedomain.d.ts} +18 -18
- package/models/operations/updatedomain.d.ts.map +1 -0
- package/models/operations/{editdomain.js → updatedomain.js} +18 -18
- package/models/operations/updatedomain.js.map +1 -0
- package/models/operations/{editlink.d.ts → updatelink.d.ts} +28 -28
- package/models/operations/{editlink.d.ts.map → updatelink.d.ts.map} +1 -1
- package/models/operations/{editlink.js → updatelink.js} +31 -31
- package/models/operations/{editlink.js.map → updatelink.js.map} +1 -1
- package/package.json +1 -1
- package/sdk/domains.d.ts +3 -3
- package/sdk/domains.d.ts.map +1 -1
- package/sdk/domains.js +4 -4
- package/sdk/domains.js.map +1 -1
- package/sdk/links.d.ts +6 -6
- package/sdk/links.d.ts.map +1 -1
- package/sdk/links.js +18 -18
- package/sdk/links.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +11 -1
- package/src/models/operations/getlinkinfo.ts +1 -1
- package/src/models/operations/index.ts +2 -2
- package/src/models/operations/{editdomain.ts → updatedomain.ts} +22 -21
- package/src/models/operations/{editlink.ts → updatelink.ts} +31 -31
- package/src/sdk/domains.ts +6 -6
- package/src/sdk/links.ts +23 -23
- package/models/operations/editdomain.d.ts.map +0 -1
- package/models/operations/editdomain.js.map +0 -1
|
@@ -7,16 +7,16 @@ import * as z from "zod";
|
|
|
7
7
|
/**
|
|
8
8
|
* The type of redirect to use for this domain.
|
|
9
9
|
*/
|
|
10
|
-
export const
|
|
10
|
+
export const UpdateDomainType = {
|
|
11
11
|
Redirect: "redirect",
|
|
12
12
|
Rewrite: "rewrite",
|
|
13
13
|
} as const;
|
|
14
14
|
/**
|
|
15
15
|
* The type of redirect to use for this domain.
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type UpdateDomainType = (typeof UpdateDomainType)[keyof typeof UpdateDomainType];
|
|
18
18
|
|
|
19
|
-
export type
|
|
19
|
+
export type UpdateDomainRequestBody = {
|
|
20
20
|
/**
|
|
21
21
|
* Name of the domain.
|
|
22
22
|
*/
|
|
@@ -24,7 +24,7 @@ export type EditDomainRequestBody = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The type of redirect to use for this domain.
|
|
26
26
|
*/
|
|
27
|
-
type?:
|
|
27
|
+
type?: UpdateDomainType | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* The page your users will get redirected to when they visit your domain.
|
|
30
30
|
*/
|
|
@@ -43,32 +43,33 @@ export type EditDomainRequestBody = {
|
|
|
43
43
|
placeholder?: string | null | undefined;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export type
|
|
46
|
+
export type UpdateDomainRequest = {
|
|
47
47
|
/**
|
|
48
48
|
* The domain name.
|
|
49
49
|
*/
|
|
50
50
|
slug: string;
|
|
51
|
-
requestBody?:
|
|
51
|
+
requestBody?: UpdateDomainRequestBody | undefined;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
55
|
-
export const
|
|
55
|
+
export const UpdateDomainType$: z.ZodNativeEnum<typeof UpdateDomainType> =
|
|
56
|
+
z.nativeEnum(UpdateDomainType);
|
|
56
57
|
|
|
57
58
|
/** @internal */
|
|
58
|
-
export namespace
|
|
59
|
+
export namespace UpdateDomainRequestBody$ {
|
|
59
60
|
export type Inbound = {
|
|
60
61
|
slug?: string | undefined;
|
|
61
|
-
type?:
|
|
62
|
+
type?: UpdateDomainType | undefined;
|
|
62
63
|
target?: string | null | undefined;
|
|
63
64
|
expiredUrl?: string | null | undefined;
|
|
64
65
|
archived?: boolean | undefined;
|
|
65
66
|
placeholder?: string | null | undefined;
|
|
66
67
|
};
|
|
67
68
|
|
|
68
|
-
export const inboundSchema: z.ZodType<
|
|
69
|
+
export const inboundSchema: z.ZodType<UpdateDomainRequestBody, z.ZodTypeDef, Inbound> = z
|
|
69
70
|
.object({
|
|
70
71
|
slug: z.string().optional(),
|
|
71
|
-
type:
|
|
72
|
+
type: UpdateDomainType$.default("redirect"),
|
|
72
73
|
target: z.nullable(z.string()).optional(),
|
|
73
74
|
expiredUrl: z.nullable(z.string()).optional(),
|
|
74
75
|
archived: z.boolean().default(false),
|
|
@@ -87,17 +88,17 @@ export namespace EditDomainRequestBody$ {
|
|
|
87
88
|
|
|
88
89
|
export type Outbound = {
|
|
89
90
|
slug?: string | undefined;
|
|
90
|
-
type:
|
|
91
|
+
type: UpdateDomainType;
|
|
91
92
|
target?: string | null | undefined;
|
|
92
93
|
expiredUrl?: string | null | undefined;
|
|
93
94
|
archived: boolean;
|
|
94
95
|
placeholder: string | null;
|
|
95
96
|
};
|
|
96
97
|
|
|
97
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
98
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainRequestBody> = z
|
|
98
99
|
.object({
|
|
99
100
|
slug: z.string().optional(),
|
|
100
|
-
type:
|
|
101
|
+
type: UpdateDomainType$.default("redirect"),
|
|
101
102
|
target: z.nullable(z.string()).optional(),
|
|
102
103
|
expiredUrl: z.nullable(z.string()).optional(),
|
|
103
104
|
archived: z.boolean().default(false),
|
|
@@ -116,16 +117,16 @@ export namespace EditDomainRequestBody$ {
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
/** @internal */
|
|
119
|
-
export namespace
|
|
120
|
+
export namespace UpdateDomainRequest$ {
|
|
120
121
|
export type Inbound = {
|
|
121
122
|
slug: string;
|
|
122
|
-
RequestBody?:
|
|
123
|
+
RequestBody?: UpdateDomainRequestBody$.Inbound | undefined;
|
|
123
124
|
};
|
|
124
125
|
|
|
125
|
-
export const inboundSchema: z.ZodType<
|
|
126
|
+
export const inboundSchema: z.ZodType<UpdateDomainRequest, z.ZodTypeDef, Inbound> = z
|
|
126
127
|
.object({
|
|
127
128
|
slug: z.string(),
|
|
128
|
-
RequestBody: z.lazy(() =>
|
|
129
|
+
RequestBody: z.lazy(() => UpdateDomainRequestBody$.inboundSchema).optional(),
|
|
129
130
|
})
|
|
130
131
|
.transform((v) => {
|
|
131
132
|
return {
|
|
@@ -136,13 +137,13 @@ export namespace EditDomainRequest$ {
|
|
|
136
137
|
|
|
137
138
|
export type Outbound = {
|
|
138
139
|
slug: string;
|
|
139
|
-
RequestBody?:
|
|
140
|
+
RequestBody?: UpdateDomainRequestBody$.Outbound | undefined;
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
143
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateDomainRequest> = z
|
|
143
144
|
.object({
|
|
144
145
|
slug: z.string(),
|
|
145
|
-
requestBody: z.lazy(() =>
|
|
146
|
+
requestBody: z.lazy(() => UpdateDomainRequestBody$.outboundSchema).optional(),
|
|
146
147
|
})
|
|
147
148
|
.transform((v) => {
|
|
148
149
|
return {
|
|
@@ -7,17 +7,17 @@ import * as z from "zod";
|
|
|
7
7
|
/**
|
|
8
8
|
* The unique IDs of the tags assigned to the short link.
|
|
9
9
|
*/
|
|
10
|
-
export type
|
|
10
|
+
export type UpdateLinkTagIds = string | Array<string>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The unique name of the tags assigned to the short link (case insensitive).
|
|
14
14
|
*/
|
|
15
|
-
export type
|
|
15
|
+
export type UpdateLinkTagNames = string | Array<string>;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
20
|
+
export type UpdateLinkGeo = {
|
|
21
21
|
af?: string | undefined;
|
|
22
22
|
al?: string | undefined;
|
|
23
23
|
dz?: string | undefined;
|
|
@@ -270,7 +270,7 @@ export type EditLinkGeo = {
|
|
|
270
270
|
xk?: string | undefined;
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
export type
|
|
273
|
+
export type UpdateLinkRequestBody = {
|
|
274
274
|
/**
|
|
275
275
|
* The destination URL of the short link.
|
|
276
276
|
*/
|
|
@@ -360,49 +360,49 @@ export type EditLinkRequestBody = {
|
|
|
360
360
|
/**
|
|
361
361
|
* Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
|
|
362
362
|
*/
|
|
363
|
-
geo?:
|
|
363
|
+
geo?: UpdateLinkGeo | null | undefined;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
export type
|
|
366
|
+
export type UpdateLinkRequest = {
|
|
367
367
|
/**
|
|
368
|
-
* The id of the link to
|
|
368
|
+
* The id of the link to update. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.
|
|
369
369
|
*/
|
|
370
370
|
linkId: string;
|
|
371
|
-
requestBody?:
|
|
371
|
+
requestBody?: UpdateLinkRequestBody | undefined;
|
|
372
372
|
};
|
|
373
373
|
|
|
374
374
|
/** @internal */
|
|
375
|
-
export namespace
|
|
375
|
+
export namespace UpdateLinkTagIds$ {
|
|
376
376
|
export type Inbound = string | Array<string>;
|
|
377
377
|
|
|
378
378
|
export type Outbound = string | Array<string>;
|
|
379
|
-
export const inboundSchema: z.ZodType<
|
|
379
|
+
export const inboundSchema: z.ZodType<UpdateLinkTagIds, z.ZodTypeDef, Inbound> = z.union([
|
|
380
380
|
z.string(),
|
|
381
381
|
z.array(z.string()),
|
|
382
382
|
]);
|
|
383
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
383
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkTagIds> = z.union([
|
|
384
384
|
z.string(),
|
|
385
385
|
z.array(z.string()),
|
|
386
386
|
]);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
/** @internal */
|
|
390
|
-
export namespace
|
|
390
|
+
export namespace UpdateLinkTagNames$ {
|
|
391
391
|
export type Inbound = string | Array<string>;
|
|
392
392
|
|
|
393
393
|
export type Outbound = string | Array<string>;
|
|
394
|
-
export const inboundSchema: z.ZodType<
|
|
394
|
+
export const inboundSchema: z.ZodType<UpdateLinkTagNames, z.ZodTypeDef, Inbound> = z.union([
|
|
395
395
|
z.string(),
|
|
396
396
|
z.array(z.string()),
|
|
397
397
|
]);
|
|
398
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
398
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkTagNames> = z.union([
|
|
399
399
|
z.string(),
|
|
400
400
|
z.array(z.string()),
|
|
401
401
|
]);
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
/** @internal */
|
|
405
|
-
export namespace
|
|
405
|
+
export namespace UpdateLinkGeo$ {
|
|
406
406
|
export type Inbound = {
|
|
407
407
|
AF?: string | undefined;
|
|
408
408
|
AL?: string | undefined;
|
|
@@ -656,7 +656,7 @@ export namespace EditLinkGeo$ {
|
|
|
656
656
|
XK?: string | undefined;
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
-
export const inboundSchema: z.ZodType<
|
|
659
|
+
export const inboundSchema: z.ZodType<UpdateLinkGeo, z.ZodTypeDef, Inbound> = z
|
|
660
660
|
.object({
|
|
661
661
|
AF: z.string().optional(),
|
|
662
662
|
AL: z.string().optional(),
|
|
@@ -1417,7 +1417,7 @@ export namespace EditLinkGeo$ {
|
|
|
1417
1417
|
XK?: string | undefined;
|
|
1418
1418
|
};
|
|
1419
1419
|
|
|
1420
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
1420
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkGeo> = z
|
|
1421
1421
|
.object({
|
|
1422
1422
|
af: z.string().optional(),
|
|
1423
1423
|
al: z.string().optional(),
|
|
@@ -1927,7 +1927,7 @@ export namespace EditLinkGeo$ {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
1929
1929
|
/** @internal */
|
|
1930
|
-
export namespace
|
|
1930
|
+
export namespace UpdateLinkRequestBody$ {
|
|
1931
1931
|
export type Inbound = {
|
|
1932
1932
|
url: string;
|
|
1933
1933
|
domain?: string | undefined;
|
|
@@ -1950,10 +1950,10 @@ export namespace EditLinkRequestBody$ {
|
|
|
1950
1950
|
rewrite?: boolean | undefined;
|
|
1951
1951
|
ios?: string | null | undefined;
|
|
1952
1952
|
android?: string | null | undefined;
|
|
1953
|
-
geo?:
|
|
1953
|
+
geo?: UpdateLinkGeo$.Inbound | null | undefined;
|
|
1954
1954
|
};
|
|
1955
1955
|
|
|
1956
|
-
export const inboundSchema: z.ZodType<
|
|
1956
|
+
export const inboundSchema: z.ZodType<UpdateLinkRequestBody, z.ZodTypeDef, Inbound> = z
|
|
1957
1957
|
.object({
|
|
1958
1958
|
url: z.string(),
|
|
1959
1959
|
domain: z.string().optional(),
|
|
@@ -1976,7 +1976,7 @@ export namespace EditLinkRequestBody$ {
|
|
|
1976
1976
|
rewrite: z.boolean().default(false),
|
|
1977
1977
|
ios: z.nullable(z.string()).optional(),
|
|
1978
1978
|
android: z.nullable(z.string()).optional(),
|
|
1979
|
-
geo: z.nullable(z.lazy(() =>
|
|
1979
|
+
geo: z.nullable(z.lazy(() => UpdateLinkGeo$.inboundSchema)).optional(),
|
|
1980
1980
|
})
|
|
1981
1981
|
.transform((v) => {
|
|
1982
1982
|
return {
|
|
@@ -2027,10 +2027,10 @@ export namespace EditLinkRequestBody$ {
|
|
|
2027
2027
|
rewrite: boolean;
|
|
2028
2028
|
ios?: string | null | undefined;
|
|
2029
2029
|
android?: string | null | undefined;
|
|
2030
|
-
geo?:
|
|
2030
|
+
geo?: UpdateLinkGeo$.Outbound | null | undefined;
|
|
2031
2031
|
};
|
|
2032
2032
|
|
|
2033
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
2033
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkRequestBody> = z
|
|
2034
2034
|
.object({
|
|
2035
2035
|
url: z.string(),
|
|
2036
2036
|
domain: z.string().optional(),
|
|
@@ -2053,7 +2053,7 @@ export namespace EditLinkRequestBody$ {
|
|
|
2053
2053
|
rewrite: z.boolean().default(false),
|
|
2054
2054
|
ios: z.nullable(z.string()).optional(),
|
|
2055
2055
|
android: z.nullable(z.string()).optional(),
|
|
2056
|
-
geo: z.nullable(z.lazy(() =>
|
|
2056
|
+
geo: z.nullable(z.lazy(() => UpdateLinkGeo$.outboundSchema)).optional(),
|
|
2057
2057
|
})
|
|
2058
2058
|
.transform((v) => {
|
|
2059
2059
|
return {
|
|
@@ -2084,16 +2084,16 @@ export namespace EditLinkRequestBody$ {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
2086
2086
|
/** @internal */
|
|
2087
|
-
export namespace
|
|
2087
|
+
export namespace UpdateLinkRequest$ {
|
|
2088
2088
|
export type Inbound = {
|
|
2089
2089
|
linkId: string;
|
|
2090
|
-
RequestBody?:
|
|
2090
|
+
RequestBody?: UpdateLinkRequestBody$.Inbound | undefined;
|
|
2091
2091
|
};
|
|
2092
2092
|
|
|
2093
|
-
export const inboundSchema: z.ZodType<
|
|
2093
|
+
export const inboundSchema: z.ZodType<UpdateLinkRequest, z.ZodTypeDef, Inbound> = z
|
|
2094
2094
|
.object({
|
|
2095
2095
|
linkId: z.string(),
|
|
2096
|
-
RequestBody: z.lazy(() =>
|
|
2096
|
+
RequestBody: z.lazy(() => UpdateLinkRequestBody$.inboundSchema).optional(),
|
|
2097
2097
|
})
|
|
2098
2098
|
.transform((v) => {
|
|
2099
2099
|
return {
|
|
@@ -2104,13 +2104,13 @@ export namespace EditLinkRequest$ {
|
|
|
2104
2104
|
|
|
2105
2105
|
export type Outbound = {
|
|
2106
2106
|
linkId: string;
|
|
2107
|
-
RequestBody?:
|
|
2107
|
+
RequestBody?: UpdateLinkRequestBody$.Outbound | undefined;
|
|
2108
2108
|
};
|
|
2109
2109
|
|
|
2110
|
-
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef,
|
|
2110
|
+
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdateLinkRequest> = z
|
|
2111
2111
|
.object({
|
|
2112
2112
|
linkId: z.string(),
|
|
2113
|
-
requestBody: z.lazy(() =>
|
|
2113
|
+
requestBody: z.lazy(() => UpdateLinkRequestBody$.outboundSchema).optional(),
|
|
2114
2114
|
})
|
|
2115
2115
|
.transform((v) => {
|
|
2116
2116
|
return {
|
package/src/sdk/domains.ts
CHANGED
|
@@ -722,17 +722,17 @@ export class Domains extends ClientSDK {
|
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
/**
|
|
725
|
-
*
|
|
725
|
+
* Update a domain
|
|
726
726
|
*
|
|
727
727
|
* @remarks
|
|
728
|
-
*
|
|
728
|
+
* Update a domain for the authenticated workspace.
|
|
729
729
|
*/
|
|
730
730
|
async update(
|
|
731
731
|
slug: string,
|
|
732
|
-
requestBody?: operations.
|
|
732
|
+
requestBody?: operations.UpdateDomainRequestBody | undefined,
|
|
733
733
|
options?: RequestOptions
|
|
734
734
|
): Promise<components.DomainSchema> {
|
|
735
|
-
const input$: operations.
|
|
735
|
+
const input$: operations.UpdateDomainRequest = {
|
|
736
736
|
slug: slug,
|
|
737
737
|
requestBody: requestBody,
|
|
738
738
|
};
|
|
@@ -743,7 +743,7 @@ export class Domains extends ClientSDK {
|
|
|
743
743
|
|
|
744
744
|
const payload$ = schemas$.parse(
|
|
745
745
|
input$,
|
|
746
|
-
(value$) => operations.
|
|
746
|
+
(value$) => operations.UpdateDomainRequest$.outboundSchema.parse(value$),
|
|
747
747
|
"Input validation failed"
|
|
748
748
|
);
|
|
749
749
|
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
@@ -778,7 +778,7 @@ export class Domains extends ClientSDK {
|
|
|
778
778
|
security$ = {};
|
|
779
779
|
}
|
|
780
780
|
const context = {
|
|
781
|
-
operationID: "
|
|
781
|
+
operationID: "updateDomain",
|
|
782
782
|
oAuth2Scopes: [],
|
|
783
783
|
securitySource: this.options$.token,
|
|
784
784
|
};
|
package/src/sdk/links.ts
CHANGED
|
@@ -991,31 +991,28 @@ export class Links extends ClientSDK {
|
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
/**
|
|
994
|
-
*
|
|
994
|
+
* Delete a link
|
|
995
995
|
*
|
|
996
996
|
* @remarks
|
|
997
|
-
*
|
|
997
|
+
* Delete a link for the authenticated workspace.
|
|
998
998
|
*/
|
|
999
|
-
async
|
|
999
|
+
async delete(
|
|
1000
1000
|
linkId: string,
|
|
1001
|
-
requestBody?: operations.EditLinkRequestBody | undefined,
|
|
1002
1001
|
options?: RequestOptions
|
|
1003
|
-
): Promise<
|
|
1004
|
-
const input$: operations.
|
|
1002
|
+
): Promise<operations.DeleteLinkResponseBody> {
|
|
1003
|
+
const input$: operations.DeleteLinkRequest = {
|
|
1005
1004
|
linkId: linkId,
|
|
1006
|
-
requestBody: requestBody,
|
|
1007
1005
|
};
|
|
1008
1006
|
const headers$ = new Headers();
|
|
1009
1007
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1010
|
-
headers$.set("Content-Type", "application/json");
|
|
1011
1008
|
headers$.set("Accept", "application/json");
|
|
1012
1009
|
|
|
1013
1010
|
const payload$ = schemas$.parse(
|
|
1014
1011
|
input$,
|
|
1015
|
-
(value$) => operations.
|
|
1012
|
+
(value$) => operations.DeleteLinkRequest$.outboundSchema.parse(value$),
|
|
1016
1013
|
"Input validation failed"
|
|
1017
1014
|
);
|
|
1018
|
-
const body$ =
|
|
1015
|
+
const body$ = null;
|
|
1019
1016
|
|
|
1020
1017
|
const pathParams$ = {
|
|
1021
1018
|
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
|
|
@@ -1047,7 +1044,7 @@ export class Links extends ClientSDK {
|
|
|
1047
1044
|
security$ = {};
|
|
1048
1045
|
}
|
|
1049
1046
|
const context = {
|
|
1050
|
-
operationID: "
|
|
1047
|
+
operationID: "deleteLink",
|
|
1051
1048
|
oAuth2Scopes: [],
|
|
1052
1049
|
securitySource: this.options$.token,
|
|
1053
1050
|
};
|
|
@@ -1073,7 +1070,7 @@ export class Links extends ClientSDK {
|
|
|
1073
1070
|
context,
|
|
1074
1071
|
{
|
|
1075
1072
|
security: securitySettings$,
|
|
1076
|
-
method: "
|
|
1073
|
+
method: "DELETE",
|
|
1077
1074
|
path: path$,
|
|
1078
1075
|
headers: headers$,
|
|
1079
1076
|
query: query$,
|
|
@@ -1096,7 +1093,7 @@ export class Links extends ClientSDK {
|
|
|
1096
1093
|
const result = schemas$.parse(
|
|
1097
1094
|
responseBody,
|
|
1098
1095
|
(val$) => {
|
|
1099
|
-
return
|
|
1096
|
+
return operations.DeleteLinkResponseBody$.inboundSchema.parse(val$);
|
|
1100
1097
|
},
|
|
1101
1098
|
"Response validation failed"
|
|
1102
1099
|
);
|
|
@@ -1229,28 +1226,31 @@ export class Links extends ClientSDK {
|
|
|
1229
1226
|
}
|
|
1230
1227
|
|
|
1231
1228
|
/**
|
|
1232
|
-
*
|
|
1229
|
+
* Update a link
|
|
1233
1230
|
*
|
|
1234
1231
|
* @remarks
|
|
1235
|
-
*
|
|
1232
|
+
* Update a link for the authenticated workspace.
|
|
1236
1233
|
*/
|
|
1237
|
-
async
|
|
1234
|
+
async update(
|
|
1238
1235
|
linkId: string,
|
|
1236
|
+
requestBody?: operations.UpdateLinkRequestBody | undefined,
|
|
1239
1237
|
options?: RequestOptions
|
|
1240
|
-
): Promise<
|
|
1241
|
-
const input$: operations.
|
|
1238
|
+
): Promise<components.LinkSchema> {
|
|
1239
|
+
const input$: operations.UpdateLinkRequest = {
|
|
1242
1240
|
linkId: linkId,
|
|
1241
|
+
requestBody: requestBody,
|
|
1243
1242
|
};
|
|
1244
1243
|
const headers$ = new Headers();
|
|
1245
1244
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1245
|
+
headers$.set("Content-Type", "application/json");
|
|
1246
1246
|
headers$.set("Accept", "application/json");
|
|
1247
1247
|
|
|
1248
1248
|
const payload$ = schemas$.parse(
|
|
1249
1249
|
input$,
|
|
1250
|
-
(value$) => operations.
|
|
1250
|
+
(value$) => operations.UpdateLinkRequest$.outboundSchema.parse(value$),
|
|
1251
1251
|
"Input validation failed"
|
|
1252
1252
|
);
|
|
1253
|
-
const body$ =
|
|
1253
|
+
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
|
|
1254
1254
|
|
|
1255
1255
|
const pathParams$ = {
|
|
1256
1256
|
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
|
|
@@ -1282,7 +1282,7 @@ export class Links extends ClientSDK {
|
|
|
1282
1282
|
security$ = {};
|
|
1283
1283
|
}
|
|
1284
1284
|
const context = {
|
|
1285
|
-
operationID: "
|
|
1285
|
+
operationID: "updateLink",
|
|
1286
1286
|
oAuth2Scopes: [],
|
|
1287
1287
|
securitySource: this.options$.token,
|
|
1288
1288
|
};
|
|
@@ -1308,7 +1308,7 @@ export class Links extends ClientSDK {
|
|
|
1308
1308
|
context,
|
|
1309
1309
|
{
|
|
1310
1310
|
security: securitySettings$,
|
|
1311
|
-
method: "
|
|
1311
|
+
method: "PATCH",
|
|
1312
1312
|
path: path$,
|
|
1313
1313
|
headers: headers$,
|
|
1314
1314
|
query: query$,
|
|
@@ -1331,7 +1331,7 @@ export class Links extends ClientSDK {
|
|
|
1331
1331
|
const result = schemas$.parse(
|
|
1332
1332
|
responseBody,
|
|
1333
1333
|
(val$) => {
|
|
1334
|
-
return
|
|
1334
|
+
return components.LinkSchema$.inboundSchema.parse(val$);
|
|
1335
1335
|
},
|
|
1336
1336
|
"Response validation failed"
|
|
1337
1337
|
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editdomain.d.ts","sourceRoot":"","sources":["../../src/models/operations/editdomain.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF,MAAM,MAAM,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,cAAc,CAAgC,CAAC;AAEpG,gBAAgB;AAChB,yBAAiB,sBAAsB,CAAC;IACpC,KAAY,OAAO,GAAG;QAClB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;Q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