@stack-spot/portal-network 0.76.0 → 0.77.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/CHANGELOG.md +14 -0
- package/dist/api/cloudPlatform.d.ts +47 -3
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +30 -2
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +265 -61
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +96 -7
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +26 -1
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +37 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +16 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +19 -1
- package/dist/client/cloud-platform.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +82 -4
- package/src/api/cloudPlatformHorizon.ts +646 -128
- package/src/client/cloud-platform-horizon.ts +17 -1
- package/src/client/cloud-platform.ts +13 -3
|
@@ -2,7 +2,7 @@ import apis from '../apis.json';
|
|
|
2
2
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
3
3
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
4
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
5
|
-
import { apply, defaults, getOrganization, getRuntime, getTenant } from '../api/cloudPlatformHorizon.js';
|
|
5
|
+
import { apply, createOrganization, createRuntime, createTenant, defaults, getOrganization, getRuntime, getTenant, listOrganizations } from '../api/cloudPlatformHorizon.js';
|
|
6
6
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
7
7
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
8
8
|
constructor() {
|
|
@@ -16,6 +16,15 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
16
16
|
writable: true,
|
|
17
17
|
value: this.mutation(removeAuthorizationParam(apply))
|
|
18
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Get a list of organizations
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(this, "listOrganizations", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: this.query(removeAuthorizationParam(listOrganizations))
|
|
27
|
+
});
|
|
19
28
|
/**
|
|
20
29
|
* Get details of an organization
|
|
21
30
|
*/
|
|
@@ -43,6 +52,33 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
43
52
|
writable: true,
|
|
44
53
|
value: this.query(removeAuthorizationParam(getRuntime))
|
|
45
54
|
});
|
|
55
|
+
/**
|
|
56
|
+
* Create an tenant
|
|
57
|
+
*/
|
|
58
|
+
Object.defineProperty(this, "createTenant", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: this.mutation(removeAuthorizationParam(createTenant))
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Create an runtime
|
|
66
|
+
*/
|
|
67
|
+
Object.defineProperty(this, "createRuntime", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true,
|
|
71
|
+
value: this.mutation(removeAuthorizationParam(createRuntime))
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Create an organization
|
|
75
|
+
*/
|
|
76
|
+
Object.defineProperty(this, "createOrganization", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: this.mutation(removeAuthorizationParam(createOrganization))
|
|
81
|
+
});
|
|
46
82
|
}
|
|
47
83
|
buildStackSpotError(error) {
|
|
48
84
|
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform-horizon.js","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-platform-horizon.js","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACzK,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,MAAM,0BAA2B,SAAQ,uBAAuB;IAC9D;QACE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAMhD;;WAEG;QACH;;;;mBAAQ,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;WAAA;QACtD;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;WAAA;QAC1E;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,eAAe,CAAC,CAAC;WAAA;QACtE;;WAEG;QACH;;;;mBAAe,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;WAAA;QAC9D;;WAEG;QACH;;;;mBAAgB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;WAAA;QAChE;;WAEG;QACH;;;;mBAAe,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;WAAA;QACpE;;WAEG;QACH;;;;mBAAgB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,aAAa,CAAC,CAAC;WAAA;QACtE;;WAEG;QACH;;;;mBAAqB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;WAAA;IApChF,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrF,CAAC;CAiCF;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,0BAA0B,EAAE,CAAA"}
|
|
@@ -52,6 +52,7 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
52
52
|
listDnsZones: import("../network/types.js").QueryObject<Omit<{
|
|
53
53
|
authorization: string;
|
|
54
54
|
foundationId: string;
|
|
55
|
+
projectId?: string | undefined;
|
|
55
56
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListDnsZoneResponse>;
|
|
56
57
|
/**
|
|
57
58
|
* Create a dns zone
|
|
@@ -165,6 +166,21 @@ declare class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
165
166
|
foundationId: string;
|
|
166
167
|
createSubnetRequest: import("../api/cloudPlatform.js").CreateSubnetRequest;
|
|
167
168
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").SubnetResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* Get a list of inbounds
|
|
171
|
+
*/
|
|
172
|
+
listInbounds: import("../network/types.js").QueryObject<Omit<{
|
|
173
|
+
authorization: string;
|
|
174
|
+
foundationId: string;
|
|
175
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").ListInboundResponse>;
|
|
176
|
+
/**
|
|
177
|
+
* Create a inbound
|
|
178
|
+
*/
|
|
179
|
+
createInbound: import("../network/types.js").MutationObject<Omit<{
|
|
180
|
+
authorization: string;
|
|
181
|
+
foundationId: string;
|
|
182
|
+
createInboundRequest: import("../api/cloudPlatform.js").CreateInboundRequest;
|
|
183
|
+
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatform.js").InboundResponse>;
|
|
168
184
|
}
|
|
169
185
|
export declare const cloudPlatformClient: CloudPlatformClient;
|
|
170
186
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"cloud-platform.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA+B7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,cAAM,mBAAoB,SAAQ,uBAAuB;;IAKvD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,eAAe;;kGAAwD;IACvE;;OAEG;IACH,UAAU;;;8FAAsD;IAChE;;OAEG;IACH,SAAS;;;;0FAAkD;IAC3D;;OAEG;IACH,aAAa;;SAAkD;IAC/D;;OAEG;IACH,gBAAgB;;;8FAA4D;IAC5E;;OAEG;IACH,YAAY;;;;0FAAwD;IACpE;;OAEG;IACH,YAAY;;;;+FAAoD;IAChE;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,SAAS;;;4FAAiD;IAC1D;;OAEG;IACH,UAAU;;;;wFAAsD;IAChE;;OAEG;IACH,gBAAgB;;;mGAAyD;IACzE;;OAEG;IACH,cAAc;;;;+FAAuD;IACrE;;OAEG;IACH,iBAAiB;;;;+FAA6D;IAC9E;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,cAAc;;;;2FAAmD;IACjE;;OAEG;IACH,cAAc;;;;;iGAAsD;IACpE;;OAEG;IACH,eAAe;;;;6FAA2D;IAC1E;;OAEG;IACH,YAAY;;;;+FAAoD;IAChE;;OAEG;IACH,aAAa;;;;2FAAyD;IACtE;;OAEG;IACH,WAAW;;;;;8FAAmD;IAC9D;;OAEG;IACH,YAAY;;;;0FAAwD;IACpE;;OAEG;IACH,YAAY;;;+FAAoD;IAChE;;OAEG;IACH,aAAa;;;;2FAAyD;CACvE;AAED,eAAO,MAAM,mBAAmB,qBAA4B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createCertificate, createCidr, createDnsRecord, createDnsZone, createFolder, createFoundation, createNetwork, createProject, createSubnet, defaults, getCertificate, getFolder, getFoundation, getProject, listCertificates, listCidr, listDnsRecord, listDnsZone, listFoundations, listNetwork, listSubnet, providers, } from '../api/cloudPlatform.js';
|
|
1
|
+
import { createCertificate, createCidr, createDnsRecord, createDnsZone, createFolder, createFoundation, createInbound, createNetwork, createProject, createSubnet, defaults, getCertificate, getFolder, getFoundation, getProject, listCertificates, listCidr, listDnsRecord, listDnsZone, listFoundations, listInbound, listNetwork, listSubnet, providers, } from '../api/cloudPlatform.js';
|
|
2
2
|
import apis from '../apis.json';
|
|
3
3
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
4
4
|
import { cntDictionary } from '../error/dictionary/cnt.js';
|
|
@@ -196,6 +196,24 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
|
|
|
196
196
|
writable: true,
|
|
197
197
|
value: this.mutation(removeAuthorizationParam(createSubnet))
|
|
198
198
|
});
|
|
199
|
+
/**
|
|
200
|
+
* Get a list of inbounds
|
|
201
|
+
*/
|
|
202
|
+
Object.defineProperty(this, "listInbounds", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
configurable: true,
|
|
205
|
+
writable: true,
|
|
206
|
+
value: this.query(removeAuthorizationParam(listInbound))
|
|
207
|
+
});
|
|
208
|
+
/**
|
|
209
|
+
* Create a inbound
|
|
210
|
+
*/
|
|
211
|
+
Object.defineProperty(this, "createInbound", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
configurable: true,
|
|
214
|
+
writable: true,
|
|
215
|
+
value: this.mutation(removeAuthorizationParam(createInbound))
|
|
216
|
+
});
|
|
199
217
|
}
|
|
200
218
|
buildStackSpotError(error) {
|
|
201
219
|
return new DefaultAPIError(error.data, error.status, cntDictionary, error.headers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform.js","sourceRoot":"","sources":["../../src/client/cloud-platform.ts"],"names":[],"mappings":"AACA,OACA,EACE,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,SAAS,EACT,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,WAAW,EACX,eAAe,EACf,WAAW,EACX,UAAU,EACV,SAAS,GACV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,aAA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132
132
|
};
|
|
133
133
|
export type ProjectDetails = {
|
|
134
134
|
name: string;
|
|
135
|
-
|
|
135
|
+
folderName: string;
|
|
136
136
|
};
|
|
137
137
|
export type ProjectResponse = {
|
|
138
138
|
stackSpotAccountId: string;
|
|
@@ -186,6 +186,33 @@ export type CreateNetworkRequest = {
|
|
|
186
186
|
netmaskLength: number;
|
|
187
187
|
networkName: string;
|
|
188
188
|
};
|
|
189
|
+
export type InboundDetails = {
|
|
190
|
+
recordName: string;
|
|
191
|
+
};
|
|
192
|
+
export type InboundResponse = {
|
|
193
|
+
stackSpotAccountId: string;
|
|
194
|
+
foundationId: string;
|
|
195
|
+
projectId: string;
|
|
196
|
+
inboundId: string;
|
|
197
|
+
details: InboundDetails;
|
|
198
|
+
status: "READY" | "PENDING" | "ERROR";
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
deletedAt?: string;
|
|
202
|
+
};
|
|
203
|
+
export type ListInboundResponse = {
|
|
204
|
+
stackSpotAccountId: string;
|
|
205
|
+
foundationId: string;
|
|
206
|
+
pendingResources: boolean;
|
|
207
|
+
content: InboundResponse[];
|
|
208
|
+
};
|
|
209
|
+
export type CreateInboundRequest = {
|
|
210
|
+
projectId: string;
|
|
211
|
+
dnsZoneId: string;
|
|
212
|
+
certificateId: string;
|
|
213
|
+
domain: string;
|
|
214
|
+
applicationLoadBalancer: string;
|
|
215
|
+
};
|
|
189
216
|
export type FolderContent = {
|
|
190
217
|
"type": "FOLDER" | "PROJECT";
|
|
191
218
|
id: string;
|
|
@@ -234,7 +261,8 @@ export type ListDnsZoneResponse = {
|
|
|
234
261
|
};
|
|
235
262
|
export type CreateDnsZoneRequest = {
|
|
236
263
|
domain: string;
|
|
237
|
-
"type": "PUBLIC";
|
|
264
|
+
"type": "PUBLIC" | "PRIVATE";
|
|
265
|
+
projectId?: string;
|
|
238
266
|
};
|
|
239
267
|
export type DnsRecordDetails = {
|
|
240
268
|
recordName: string;
|
|
@@ -338,6 +366,7 @@ export type CreatePublicCertificateRequest = {
|
|
|
338
366
|
"type": "CreatePublicCertificateRequest";
|
|
339
367
|
} & CreateCertificateRequestBase & {
|
|
340
368
|
domainName?: string;
|
|
369
|
+
forInbound?: boolean;
|
|
341
370
|
dnsZoneId?: string;
|
|
342
371
|
};
|
|
343
372
|
export type ImportCertificateRequest = {
|
|
@@ -552,6 +581,37 @@ export function createNetwork({ authorization, foundationId, createNetworkReques
|
|
|
552
581
|
})
|
|
553
582
|
})));
|
|
554
583
|
}
|
|
584
|
+
export function listInbound({ authorization, foundationId }: {
|
|
585
|
+
authorization: string;
|
|
586
|
+
foundationId: string;
|
|
587
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
588
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
589
|
+
status: 200;
|
|
590
|
+
data: ListInboundResponse;
|
|
591
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, {
|
|
592
|
+
...opts,
|
|
593
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
594
|
+
Authorization: authorization
|
|
595
|
+
})
|
|
596
|
+
}));
|
|
597
|
+
}
|
|
598
|
+
export function createInbound({ authorization, foundationId, createInboundRequest }: {
|
|
599
|
+
authorization: string;
|
|
600
|
+
foundationId: string;
|
|
601
|
+
createInboundRequest: CreateInboundRequest;
|
|
602
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
603
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
604
|
+
status: 200;
|
|
605
|
+
data: InboundResponse;
|
|
606
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, oazapfts.json({
|
|
607
|
+
...opts,
|
|
608
|
+
method: "POST",
|
|
609
|
+
body: createInboundRequest,
|
|
610
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
611
|
+
Authorization: authorization
|
|
612
|
+
})
|
|
613
|
+
})));
|
|
614
|
+
}
|
|
555
615
|
export function getFolder({ authorization, foundationId, folderId }: {
|
|
556
616
|
authorization: string;
|
|
557
617
|
foundationId: string;
|
|
@@ -586,14 +646,17 @@ export function createFolder({ authorization, foundationId, createFolderRequest
|
|
|
586
646
|
})
|
|
587
647
|
})));
|
|
588
648
|
}
|
|
589
|
-
export function listDnsZone({ authorization, foundationId }: {
|
|
649
|
+
export function listDnsZone({ authorization, foundationId, projectId }: {
|
|
590
650
|
authorization: string;
|
|
591
651
|
foundationId: string;
|
|
652
|
+
projectId?: string;
|
|
592
653
|
}, opts?: Oazapfts.RequestOpts) {
|
|
593
654
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
594
655
|
status: 200;
|
|
595
656
|
data: ListDnsZoneResponse;
|
|
596
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones
|
|
657
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones${QS.query(QS.explode({
|
|
658
|
+
projectId
|
|
659
|
+
}))}`, {
|
|
597
660
|
...opts,
|
|
598
661
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
599
662
|
Authorization: authorization
|
|
@@ -803,6 +866,21 @@ export function getNetwork({ authorization, foundationId, networkId }: {
|
|
|
803
866
|
})
|
|
804
867
|
}));
|
|
805
868
|
}
|
|
869
|
+
export function getInbound({ authorization, foundationId, inboundId }: {
|
|
870
|
+
authorization: string;
|
|
871
|
+
foundationId: string;
|
|
872
|
+
inboundId: string;
|
|
873
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
874
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
875
|
+
status: 200;
|
|
876
|
+
data: InboundResponse;
|
|
877
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}`, {
|
|
878
|
+
...opts,
|
|
879
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
880
|
+
Authorization: authorization
|
|
881
|
+
})
|
|
882
|
+
}));
|
|
883
|
+
}
|
|
806
884
|
export function getDnsZone({ authorization, foundationId, dnsZoneId }: {
|
|
807
885
|
authorization: string;
|
|
808
886
|
foundationId: string;
|