@stack-spot/portal-network 0.193.0 → 0.194.0-beta.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 +172 -0
- package/dist/api/account.d.ts +4 -116
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +9 -95
- package/dist/api/account.js.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +73 -126
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +82 -66
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +214 -42
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +108 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/client/account.d.ts +4 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +10 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +46 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +47 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +155 -51
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +146 -47
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +72 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +73 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discover.d.ts +7 -1
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/types.d.ts +14 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +2 -1
- package/src/api/account.ts +21 -192
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +147 -204
- package/src/api/codeShift.ts +373 -47
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +5 -0
- package/src/client/ai.ts +42 -1
- package/src/client/cloud-platform.ts +84 -29
- package/src/client/code-shift.ts +40 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +17 -2
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/src/api/cloudPlatform.ts
CHANGED
|
@@ -79,21 +79,6 @@ export type NetworkResponse = {
|
|
|
79
79
|
updatedAt: string;
|
|
80
80
|
deletedAt?: string;
|
|
81
81
|
};
|
|
82
|
-
export type InboundDetails = {
|
|
83
|
-
recordName: string;
|
|
84
|
-
};
|
|
85
|
-
export type InboundResponse = {
|
|
86
|
-
stackSpotAccountId: string;
|
|
87
|
-
foundationId: string;
|
|
88
|
-
projectId: string;
|
|
89
|
-
inboundId: string;
|
|
90
|
-
details: InboundDetails;
|
|
91
|
-
tags: Tag[];
|
|
92
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
93
|
-
createdAt: string;
|
|
94
|
-
updatedAt: string;
|
|
95
|
-
deletedAt?: string;
|
|
96
|
-
};
|
|
97
82
|
export type FolderContent = {
|
|
98
83
|
"type": "FOLDER" | "PROJECT";
|
|
99
84
|
id: string;
|
|
@@ -132,6 +117,25 @@ export type DnsZoneResponse = {
|
|
|
132
117
|
updatedAt: string;
|
|
133
118
|
deletedAt?: string;
|
|
134
119
|
};
|
|
120
|
+
export type DnsRecordDetails = {
|
|
121
|
+
recordName: string;
|
|
122
|
+
records: string[];
|
|
123
|
+
ttl: number;
|
|
124
|
+
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
125
|
+
dnsZoneName: string;
|
|
126
|
+
};
|
|
127
|
+
export type DnsRecordResponse = {
|
|
128
|
+
stackSpotAccountId: string;
|
|
129
|
+
foundationId: string;
|
|
130
|
+
dnsZoneId: string;
|
|
131
|
+
dnsRecordId: string;
|
|
132
|
+
details: DnsRecordDetails;
|
|
133
|
+
tags: Tag[];
|
|
134
|
+
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
deletedAt?: string;
|
|
138
|
+
};
|
|
135
139
|
export type CidrDetails = {
|
|
136
140
|
cidrNotation: string;
|
|
137
141
|
networkAddress: string;
|
|
@@ -296,54 +300,6 @@ export type CreateNetworkRequest = {
|
|
|
296
300
|
networkType: "WORKLOAD";
|
|
297
301
|
tags?: Tag[];
|
|
298
302
|
};
|
|
299
|
-
export type NetworkConnectionDetails = {
|
|
300
|
-
accepted?: boolean;
|
|
301
|
-
requesterNetwork: NetworkResponse;
|
|
302
|
-
accepterNetwork: NetworkResponse;
|
|
303
|
-
};
|
|
304
|
-
export type NetworkConnectionResponse = {
|
|
305
|
-
stackSpotAccountId: string;
|
|
306
|
-
foundationId: string;
|
|
307
|
-
accepterNetworkId: string;
|
|
308
|
-
accepterProjectId: string;
|
|
309
|
-
requesterNetworkId: string;
|
|
310
|
-
requesterProjectId: string;
|
|
311
|
-
networkConnectionId: string;
|
|
312
|
-
details: NetworkConnectionDetails;
|
|
313
|
-
tags: Tag[];
|
|
314
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
315
|
-
createdAt: string;
|
|
316
|
-
updatedAt: string;
|
|
317
|
-
deletedAt?: string;
|
|
318
|
-
};
|
|
319
|
-
export type ListNetworkConnectionResponse = {
|
|
320
|
-
stackSpotAccountId: string;
|
|
321
|
-
foundationId: string;
|
|
322
|
-
accepterNetworkId?: string;
|
|
323
|
-
accepterProjectId?: string;
|
|
324
|
-
requesterNetworkId?: string;
|
|
325
|
-
requesterProjectId?: string;
|
|
326
|
-
pendingResources: boolean;
|
|
327
|
-
content: NetworkConnectionResponse[];
|
|
328
|
-
};
|
|
329
|
-
export type CreateNetworkConnectionRequest = {
|
|
330
|
-
accepterNetworkId: string;
|
|
331
|
-
requesterNetworkId: string;
|
|
332
|
-
tags?: Tag[];
|
|
333
|
-
};
|
|
334
|
-
export type ListInboundResponse = {
|
|
335
|
-
stackSpotAccountId: string;
|
|
336
|
-
foundationId: string;
|
|
337
|
-
pendingResources: boolean;
|
|
338
|
-
content: InboundResponse[];
|
|
339
|
-
};
|
|
340
|
-
export type CreateInboundRequest = {
|
|
341
|
-
projectId: string;
|
|
342
|
-
certificateId: string;
|
|
343
|
-
domain: string;
|
|
344
|
-
applicationLoadBalancer: string;
|
|
345
|
-
tags?: Tag[];
|
|
346
|
-
};
|
|
347
303
|
export type CreateFolderRequest = {
|
|
348
304
|
parentFolderId: string;
|
|
349
305
|
name: string;
|
|
@@ -361,25 +317,6 @@ export type CreateDnsZoneRequest = {
|
|
|
361
317
|
projectId?: string;
|
|
362
318
|
tags?: Tag[];
|
|
363
319
|
};
|
|
364
|
-
export type DnsRecordDetails = {
|
|
365
|
-
recordName: string;
|
|
366
|
-
records: string[];
|
|
367
|
-
ttl: number;
|
|
368
|
-
"type": "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "PTR" | "SOA" | "SRV" | "TXT";
|
|
369
|
-
dnsZoneName: string;
|
|
370
|
-
};
|
|
371
|
-
export type DnsRecordResponse = {
|
|
372
|
-
stackSpotAccountId: string;
|
|
373
|
-
foundationId: string;
|
|
374
|
-
dnsZoneId: string;
|
|
375
|
-
dnsRecordId: string;
|
|
376
|
-
details: DnsRecordDetails;
|
|
377
|
-
tags: Tag[];
|
|
378
|
-
status: "READY" | "PENDING" | "PENDING_APPROVAL" | "ERROR";
|
|
379
|
-
createdAt: string;
|
|
380
|
-
updatedAt: string;
|
|
381
|
-
deletedAt?: string;
|
|
382
|
-
};
|
|
383
320
|
export type ListDnsRecordResponse = {
|
|
384
321
|
stackSpotAccountId: string;
|
|
385
322
|
foundationId: string;
|
|
@@ -500,25 +437,22 @@ export function putNetworkTags({ authorization, xAccountId, foundationId, networ
|
|
|
500
437
|
})
|
|
501
438
|
})));
|
|
502
439
|
}
|
|
503
|
-
export function
|
|
440
|
+
export function getFolderTags({ authorization, xAccountId, foundationId, folderId }: {
|
|
504
441
|
authorization: string;
|
|
505
442
|
xAccountId?: string;
|
|
506
443
|
foundationId: string;
|
|
507
|
-
|
|
508
|
-
body: Tag[];
|
|
444
|
+
folderId: string;
|
|
509
445
|
}, opts?: Oazapfts.RequestOpts) {
|
|
510
446
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
511
447
|
status: 202;
|
|
512
|
-
data:
|
|
513
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
448
|
+
data: Tag[];
|
|
449
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, {
|
|
514
450
|
...opts,
|
|
515
|
-
method: "PUT",
|
|
516
|
-
body,
|
|
517
451
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
518
452
|
Authorization: authorization,
|
|
519
453
|
"x-account-id": xAccountId
|
|
520
454
|
})
|
|
521
|
-
}))
|
|
455
|
+
}));
|
|
522
456
|
}
|
|
523
457
|
export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }: {
|
|
524
458
|
authorization: string;
|
|
@@ -560,6 +494,26 @@ export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZon
|
|
|
560
494
|
})
|
|
561
495
|
})));
|
|
562
496
|
}
|
|
497
|
+
export function putDnsRecordRecords({ authorization, xAccountId, foundationId, dnsRecordId, body }: {
|
|
498
|
+
authorization: string;
|
|
499
|
+
xAccountId?: string;
|
|
500
|
+
foundationId: string;
|
|
501
|
+
dnsRecordId: string;
|
|
502
|
+
body: string[];
|
|
503
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
504
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
505
|
+
status: 200;
|
|
506
|
+
data: DnsRecordResponse;
|
|
507
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}/records`, oazapfts.json({
|
|
508
|
+
...opts,
|
|
509
|
+
method: "PUT",
|
|
510
|
+
body,
|
|
511
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
512
|
+
Authorization: authorization,
|
|
513
|
+
"x-account-id": xAccountId
|
|
514
|
+
})
|
|
515
|
+
})));
|
|
516
|
+
}
|
|
563
517
|
export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }: {
|
|
564
518
|
authorization: string;
|
|
565
519
|
xAccountId?: string;
|
|
@@ -788,7 +742,7 @@ export function listNetwork({ authorization, xAccountId, foundationId, projectId
|
|
|
788
742
|
projectId?: string;
|
|
789
743
|
}, opts?: Oazapfts.RequestOpts) {
|
|
790
744
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
791
|
-
status:
|
|
745
|
+
status: 200;
|
|
792
746
|
data: ListNetworkResponse;
|
|
793
747
|
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
794
748
|
projectId
|
|
@@ -819,103 +773,6 @@ export function createNetwork({ authorization, xAccountId, foundationId, createN
|
|
|
819
773
|
})
|
|
820
774
|
})));
|
|
821
775
|
}
|
|
822
|
-
export function listNetworkConnection({ authorization, xAccountId, foundationId, accepterNetworkId, accepterProjectId, requesterNetworkId, requesterProjectId }: {
|
|
823
|
-
authorization: string;
|
|
824
|
-
xAccountId?: string;
|
|
825
|
-
foundationId: string;
|
|
826
|
-
accepterNetworkId?: string;
|
|
827
|
-
accepterProjectId?: string;
|
|
828
|
-
requesterNetworkId?: string;
|
|
829
|
-
requesterProjectId?: string;
|
|
830
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
831
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
832
|
-
status: 200;
|
|
833
|
-
data: ListNetworkConnectionResponse;
|
|
834
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections${QS.query(QS.explode({
|
|
835
|
-
accepterNetworkId,
|
|
836
|
-
accepterProjectId,
|
|
837
|
-
requesterNetworkId,
|
|
838
|
-
requesterProjectId
|
|
839
|
-
}))}`, {
|
|
840
|
-
...opts,
|
|
841
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
842
|
-
Authorization: authorization,
|
|
843
|
-
"x-account-id": xAccountId
|
|
844
|
-
})
|
|
845
|
-
}));
|
|
846
|
-
}
|
|
847
|
-
export function createNetworkConnection({ authorization, xAccountId, foundationId, createNetworkConnectionRequest }: {
|
|
848
|
-
authorization: string;
|
|
849
|
-
xAccountId?: string;
|
|
850
|
-
foundationId: string;
|
|
851
|
-
createNetworkConnectionRequest: CreateNetworkConnectionRequest;
|
|
852
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
853
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
854
|
-
status: 202;
|
|
855
|
-
data: NetworkConnectionResponse;
|
|
856
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections`, oazapfts.json({
|
|
857
|
-
...opts,
|
|
858
|
-
method: "POST",
|
|
859
|
-
body: createNetworkConnectionRequest,
|
|
860
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
861
|
-
Authorization: authorization,
|
|
862
|
-
"x-account-id": xAccountId
|
|
863
|
-
})
|
|
864
|
-
})));
|
|
865
|
-
}
|
|
866
|
-
export function acceptNetworkConnection({ authorization, xAccountId, foundationId, networkConnectionId }: {
|
|
867
|
-
authorization: string;
|
|
868
|
-
xAccountId?: string;
|
|
869
|
-
foundationId: string;
|
|
870
|
-
networkConnectionId: string;
|
|
871
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
872
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
873
|
-
status: 200;
|
|
874
|
-
data: NetworkConnectionResponse;
|
|
875
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/network-connections/${encodeURIComponent(networkConnectionId)}/accept`, {
|
|
876
|
-
...opts,
|
|
877
|
-
method: "POST",
|
|
878
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
879
|
-
Authorization: authorization,
|
|
880
|
-
"x-account-id": xAccountId
|
|
881
|
-
})
|
|
882
|
-
}));
|
|
883
|
-
}
|
|
884
|
-
export function listInbound({ authorization, xAccountId, foundationId }: {
|
|
885
|
-
authorization: string;
|
|
886
|
-
xAccountId?: string;
|
|
887
|
-
foundationId: string;
|
|
888
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
889
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
890
|
-
status: 200;
|
|
891
|
-
data: ListInboundResponse;
|
|
892
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, {
|
|
893
|
-
...opts,
|
|
894
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
895
|
-
Authorization: authorization,
|
|
896
|
-
"x-account-id": xAccountId
|
|
897
|
-
})
|
|
898
|
-
}));
|
|
899
|
-
}
|
|
900
|
-
export function createInbound({ authorization, xAccountId, foundationId, createInboundRequest }: {
|
|
901
|
-
authorization: string;
|
|
902
|
-
xAccountId?: string;
|
|
903
|
-
foundationId: string;
|
|
904
|
-
createInboundRequest: CreateInboundRequest;
|
|
905
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
906
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
907
|
-
status: 202;
|
|
908
|
-
data: InboundResponse;
|
|
909
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds`, oazapfts.json({
|
|
910
|
-
...opts,
|
|
911
|
-
method: "POST",
|
|
912
|
-
body: createInboundRequest,
|
|
913
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
914
|
-
Authorization: authorization,
|
|
915
|
-
"x-account-id": xAccountId
|
|
916
|
-
})
|
|
917
|
-
})));
|
|
918
|
-
}
|
|
919
776
|
export function getFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
920
777
|
authorization: string;
|
|
921
778
|
xAccountId?: string;
|
|
@@ -1140,6 +997,21 @@ export function getVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
|
1140
997
|
})
|
|
1141
998
|
}));
|
|
1142
999
|
}
|
|
1000
|
+
export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }: {
|
|
1001
|
+
authorization: string;
|
|
1002
|
+
xAccountId?: string;
|
|
1003
|
+
foundationId: string;
|
|
1004
|
+
vpnId: string;
|
|
1005
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1006
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
1007
|
+
...opts,
|
|
1008
|
+
method: "DELETE",
|
|
1009
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1010
|
+
Authorization: authorization,
|
|
1011
|
+
"x-account-id": xAccountId
|
|
1012
|
+
})
|
|
1013
|
+
}));
|
|
1014
|
+
}
|
|
1143
1015
|
export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }: {
|
|
1144
1016
|
authorization: string;
|
|
1145
1017
|
xAccountId?: string;
|
|
@@ -1208,33 +1080,31 @@ export function getProject({ authorization, xAccountId, foundationId, projectId
|
|
|
1208
1080
|
})
|
|
1209
1081
|
}));
|
|
1210
1082
|
}
|
|
1211
|
-
export function
|
|
1083
|
+
export function deleteProject({ authorization, xAccountId, foundationId, projectId }: {
|
|
1212
1084
|
authorization: string;
|
|
1213
1085
|
xAccountId?: string;
|
|
1214
1086
|
foundationId: string;
|
|
1215
|
-
|
|
1087
|
+
projectId: string;
|
|
1216
1088
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1217
|
-
return oazapfts.ok(oazapfts.
|
|
1218
|
-
status: 202;
|
|
1219
|
-
data: NetworkResponse;
|
|
1220
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1089
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
1221
1090
|
...opts,
|
|
1091
|
+
method: "DELETE",
|
|
1222
1092
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1223
1093
|
Authorization: authorization,
|
|
1224
1094
|
"x-account-id": xAccountId
|
|
1225
1095
|
})
|
|
1226
1096
|
}));
|
|
1227
1097
|
}
|
|
1228
|
-
export function
|
|
1098
|
+
export function getNetwork({ authorization, xAccountId, foundationId, networkId }: {
|
|
1229
1099
|
authorization: string;
|
|
1230
1100
|
xAccountId?: string;
|
|
1231
1101
|
foundationId: string;
|
|
1232
|
-
|
|
1102
|
+
networkId: string;
|
|
1233
1103
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1234
1104
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1235
1105
|
status: 200;
|
|
1236
|
-
data:
|
|
1237
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
1106
|
+
data: NetworkResponse;
|
|
1107
|
+
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1238
1108
|
...opts,
|
|
1239
1109
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1240
1110
|
Authorization: authorization,
|
|
@@ -1242,17 +1112,15 @@ export function getNetworkConnection({ authorization, xAccountId, foundationId,
|
|
|
1242
1112
|
})
|
|
1243
1113
|
}));
|
|
1244
1114
|
}
|
|
1245
|
-
export function
|
|
1115
|
+
export function deleteNetwork({ authorization, xAccountId, foundationId, networkId }: {
|
|
1246
1116
|
authorization: string;
|
|
1247
1117
|
xAccountId?: string;
|
|
1248
1118
|
foundationId: string;
|
|
1249
|
-
|
|
1119
|
+
networkId: string;
|
|
1250
1120
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1251
|
-
return oazapfts.ok(oazapfts.
|
|
1252
|
-
status: 200;
|
|
1253
|
-
data: InboundResponse;
|
|
1254
|
-
}>(`/v1/foundations/${encodeURIComponent(foundationId)}/inbounds/${encodeURIComponent(inboundId)}`, {
|
|
1121
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
1255
1122
|
...opts,
|
|
1123
|
+
method: "DELETE",
|
|
1256
1124
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1257
1125
|
Authorization: authorization,
|
|
1258
1126
|
"x-account-id": xAccountId
|
|
@@ -1276,6 +1144,21 @@ export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId
|
|
|
1276
1144
|
})
|
|
1277
1145
|
}));
|
|
1278
1146
|
}
|
|
1147
|
+
export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }: {
|
|
1148
|
+
authorization: string;
|
|
1149
|
+
xAccountId?: string;
|
|
1150
|
+
foundationId: string;
|
|
1151
|
+
dnsZoneId: string;
|
|
1152
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1153
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
1154
|
+
...opts,
|
|
1155
|
+
method: "DELETE",
|
|
1156
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1157
|
+
Authorization: authorization,
|
|
1158
|
+
"x-account-id": xAccountId
|
|
1159
|
+
})
|
|
1160
|
+
}));
|
|
1161
|
+
}
|
|
1279
1162
|
export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
|
|
1280
1163
|
authorization: string;
|
|
1281
1164
|
xAccountId?: string;
|
|
@@ -1293,6 +1176,21 @@ export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecor
|
|
|
1293
1176
|
})
|
|
1294
1177
|
}));
|
|
1295
1178
|
}
|
|
1179
|
+
export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }: {
|
|
1180
|
+
authorization: string;
|
|
1181
|
+
xAccountId?: string;
|
|
1182
|
+
foundationId: string;
|
|
1183
|
+
dnsRecordId: string;
|
|
1184
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1185
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
1186
|
+
...opts,
|
|
1187
|
+
method: "DELETE",
|
|
1188
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1189
|
+
Authorization: authorization,
|
|
1190
|
+
"x-account-id": xAccountId
|
|
1191
|
+
})
|
|
1192
|
+
}));
|
|
1193
|
+
}
|
|
1296
1194
|
export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
1297
1195
|
authorization: string;
|
|
1298
1196
|
xAccountId?: string;
|
|
@@ -1310,6 +1208,21 @@ export function getCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
|
1310
1208
|
})
|
|
1311
1209
|
}));
|
|
1312
1210
|
}
|
|
1211
|
+
export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }: {
|
|
1212
|
+
authorization: string;
|
|
1213
|
+
xAccountId?: string;
|
|
1214
|
+
foundationId: string;
|
|
1215
|
+
cidrId: string;
|
|
1216
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1217
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
1218
|
+
...opts,
|
|
1219
|
+
method: "DELETE",
|
|
1220
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1221
|
+
Authorization: authorization,
|
|
1222
|
+
"x-account-id": xAccountId
|
|
1223
|
+
})
|
|
1224
|
+
}));
|
|
1225
|
+
}
|
|
1313
1226
|
export function getCertificate({ authorization, xAccountId, foundationId, certificateId }: {
|
|
1314
1227
|
authorization: string;
|
|
1315
1228
|
xAccountId?: string;
|
|
@@ -1327,6 +1240,21 @@ export function getCertificate({ authorization, xAccountId, foundationId, certif
|
|
|
1327
1240
|
})
|
|
1328
1241
|
}));
|
|
1329
1242
|
}
|
|
1243
|
+
export function deleteCertificate({ authorization, xAccountId, foundationId, certificateId }: {
|
|
1244
|
+
authorization: string;
|
|
1245
|
+
xAccountId?: string;
|
|
1246
|
+
foundationId: string;
|
|
1247
|
+
certificateId: string;
|
|
1248
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1249
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
1250
|
+
...opts,
|
|
1251
|
+
method: "DELETE",
|
|
1252
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1253
|
+
Authorization: authorization,
|
|
1254
|
+
"x-account-id": xAccountId
|
|
1255
|
+
})
|
|
1256
|
+
}));
|
|
1257
|
+
}
|
|
1330
1258
|
export function getProvisionAvailability({ cloudProvider }: {
|
|
1331
1259
|
cloudProvider: string;
|
|
1332
1260
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1351,3 +1279,18 @@ export function providers(opts?: Oazapfts.RequestOpts) {
|
|
|
1351
1279
|
...opts
|
|
1352
1280
|
}));
|
|
1353
1281
|
}
|
|
1282
|
+
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }: {
|
|
1283
|
+
authorization: string;
|
|
1284
|
+
xAccountId?: string;
|
|
1285
|
+
foundationId: string;
|
|
1286
|
+
folderId: string;
|
|
1287
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1288
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}`, {
|
|
1289
|
+
...opts,
|
|
1290
|
+
method: "DELETE",
|
|
1291
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1292
|
+
Authorization: authorization,
|
|
1293
|
+
"x-account-id": xAccountId
|
|
1294
|
+
})
|
|
1295
|
+
}));
|
|
1296
|
+
}
|