@stack-spot/portal-network 0.191.0 → 0.192.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 +161 -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 +364 -248
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +289 -109
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +109 -39
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +51 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/client/account.d.ts +33 -19
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +33 -15
- 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 +140 -15
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +195 -43
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +159 -42
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +36 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +37 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -5
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +3 -3
- 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 +698 -398
- package/src/api/codeShift.ts +189 -44
- package/src/api/genAiInference.ts +47 -4
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +36 -17
- package/src/client/ai.ts +136 -13
- package/src/client/cloud-platform.ts +92 -27
- package/src/client/code-shift.ts +20 -1
- package/src/client/types.ts +27 -5
|
@@ -14,349 +14,529 @@ const oazapfts = Oazapfts.runtime(defaults);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://cloud-cloud-platform-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
-
export function
|
|
18
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
17
|
+
export function putVpnTags({ authorization, xAccountId, foundationId, vpnId, body }, opts) {
|
|
18
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/tags`, oazapfts.json({
|
|
19
|
+
...opts,
|
|
20
|
+
method: "PUT",
|
|
21
|
+
body,
|
|
22
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
23
|
+
Authorization: authorization,
|
|
24
|
+
"x-account-id": xAccountId
|
|
25
|
+
})
|
|
26
|
+
})));
|
|
27
|
+
}
|
|
28
|
+
export function putProjectTags({ authorization, xAccountId, foundationId, projectId, body }, opts) {
|
|
29
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}/tags`, oazapfts.json({
|
|
30
|
+
...opts,
|
|
31
|
+
method: "PUT",
|
|
32
|
+
body,
|
|
33
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
34
|
+
Authorization: authorization,
|
|
35
|
+
"x-account-id": xAccountId
|
|
36
|
+
})
|
|
37
|
+
})));
|
|
38
|
+
}
|
|
39
|
+
export function putNetworkTags({ authorization, xAccountId, foundationId, networkId, body }, opts) {
|
|
40
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}/tags`, oazapfts.json({
|
|
41
|
+
...opts,
|
|
42
|
+
method: "PUT",
|
|
43
|
+
body,
|
|
44
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
45
|
+
Authorization: authorization,
|
|
46
|
+
"x-account-id": xAccountId
|
|
47
|
+
})
|
|
48
|
+
})));
|
|
49
|
+
}
|
|
50
|
+
export function getFolderTags({ authorization, xAccountId, foundationId, folderId }, opts) {
|
|
51
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, {
|
|
19
52
|
...opts,
|
|
20
53
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
21
|
-
Authorization: authorization
|
|
54
|
+
Authorization: authorization,
|
|
55
|
+
"x-account-id": xAccountId
|
|
22
56
|
})
|
|
23
57
|
}));
|
|
24
58
|
}
|
|
25
|
-
export function
|
|
26
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
59
|
+
export function putFolderTags({ authorization, xAccountId, foundationId, folderId, body }, opts) {
|
|
60
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}/tags`, oazapfts.json({
|
|
27
61
|
...opts,
|
|
28
|
-
method: "
|
|
29
|
-
body
|
|
62
|
+
method: "PUT",
|
|
63
|
+
body,
|
|
30
64
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
31
|
-
Authorization: authorization
|
|
65
|
+
Authorization: authorization,
|
|
66
|
+
"x-account-id": xAccountId
|
|
32
67
|
})
|
|
33
68
|
})));
|
|
34
69
|
}
|
|
35
|
-
export function
|
|
36
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
70
|
+
export function putDnsZoneTags({ authorization, xAccountId, foundationId, dnsZoneId, body }, opts) {
|
|
71
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}/tags`, oazapfts.json({
|
|
72
|
+
...opts,
|
|
73
|
+
method: "PUT",
|
|
74
|
+
body,
|
|
75
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
76
|
+
Authorization: authorization,
|
|
77
|
+
"x-account-id": xAccountId
|
|
78
|
+
})
|
|
79
|
+
})));
|
|
80
|
+
}
|
|
81
|
+
export function putDnsRecordRecords({ authorization, xAccountId, foundationId, dnsRecordId, body }, opts) {
|
|
82
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}/records`, oazapfts.json({
|
|
83
|
+
...opts,
|
|
84
|
+
method: "PUT",
|
|
85
|
+
body,
|
|
86
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
87
|
+
Authorization: authorization,
|
|
88
|
+
"x-account-id": xAccountId
|
|
89
|
+
})
|
|
90
|
+
})));
|
|
91
|
+
}
|
|
92
|
+
export function putCidrTags({ authorization, xAccountId, foundationId, cidrId, body }, opts) {
|
|
93
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}/tags`, oazapfts.json({
|
|
94
|
+
...opts,
|
|
95
|
+
method: "PUT",
|
|
96
|
+
body,
|
|
97
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
98
|
+
Authorization: authorization,
|
|
99
|
+
"x-account-id": xAccountId
|
|
100
|
+
})
|
|
101
|
+
})));
|
|
102
|
+
}
|
|
103
|
+
export function putCertificateTags({ authorization, xAccountId, foundationId, certificateId, body }, opts) {
|
|
104
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}/tags`, oazapfts.json({
|
|
105
|
+
...opts,
|
|
106
|
+
method: "PUT",
|
|
107
|
+
body,
|
|
108
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
109
|
+
Authorization: authorization,
|
|
110
|
+
"x-account-id": xAccountId
|
|
111
|
+
})
|
|
112
|
+
})));
|
|
113
|
+
}
|
|
114
|
+
export function listFoundations({ authorization, xAccountId }, opts) {
|
|
115
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/foundations", {
|
|
37
116
|
...opts,
|
|
38
117
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
39
|
-
Authorization: authorization
|
|
118
|
+
Authorization: authorization,
|
|
119
|
+
"x-account-id": xAccountId
|
|
40
120
|
})
|
|
41
121
|
}));
|
|
42
122
|
}
|
|
43
|
-
export function
|
|
44
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
123
|
+
export function createFoundation({ authorization, xAccountId, createFoundationRequest }, opts) {
|
|
124
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/foundations", oazapfts.json({
|
|
45
125
|
...opts,
|
|
46
126
|
method: "POST",
|
|
47
|
-
body:
|
|
127
|
+
body: createFoundationRequest,
|
|
48
128
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
49
|
-
Authorization: authorization
|
|
129
|
+
Authorization: authorization,
|
|
130
|
+
"x-account-id": xAccountId
|
|
50
131
|
})
|
|
51
132
|
})));
|
|
52
133
|
}
|
|
53
|
-
export function
|
|
54
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
134
|
+
export function listVpns({ authorization, xAccountId, foundationId }, opts) {
|
|
135
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, {
|
|
55
136
|
...opts,
|
|
56
137
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
57
|
-
Authorization: authorization
|
|
138
|
+
Authorization: authorization,
|
|
139
|
+
"x-account-id": xAccountId
|
|
58
140
|
})
|
|
59
141
|
}));
|
|
60
142
|
}
|
|
61
|
-
export function
|
|
62
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
143
|
+
export function createVpn({ authorization, xAccountId, foundationId, createVpnRequest }, opts) {
|
|
144
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns`, oazapfts.json({
|
|
63
145
|
...opts,
|
|
64
146
|
method: "POST",
|
|
65
|
-
body:
|
|
147
|
+
body: createVpnRequest,
|
|
66
148
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
67
|
-
Authorization: authorization
|
|
149
|
+
Authorization: authorization,
|
|
150
|
+
"x-account-id": xAccountId
|
|
68
151
|
})
|
|
69
152
|
})));
|
|
70
153
|
}
|
|
71
|
-
export function
|
|
72
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
73
|
-
parentFolderId
|
|
74
|
-
}))}`, {
|
|
154
|
+
export function listTenant({ authorization, xAccountId, foundationId }, opts) {
|
|
155
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants`, {
|
|
75
156
|
...opts,
|
|
76
157
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
77
|
-
Authorization: authorization
|
|
158
|
+
Authorization: authorization,
|
|
159
|
+
"x-account-id": xAccountId
|
|
78
160
|
})
|
|
79
161
|
}));
|
|
80
162
|
}
|
|
81
|
-
export function
|
|
82
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
163
|
+
export function createTenant({ authorization, xAccountId, foundationId, createTenantRequest }, opts) {
|
|
164
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants`, oazapfts.json({
|
|
83
165
|
...opts,
|
|
84
166
|
method: "POST",
|
|
85
|
-
body:
|
|
167
|
+
body: createTenantRequest,
|
|
86
168
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
87
|
-
Authorization: authorization
|
|
169
|
+
Authorization: authorization,
|
|
170
|
+
"x-account-id": xAccountId
|
|
88
171
|
})
|
|
89
172
|
})));
|
|
90
173
|
}
|
|
91
|
-
export function
|
|
92
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
174
|
+
export function listRuntime({ authorization, xAccountId, foundationId, tenantId, projectId }, opts) {
|
|
175
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes${QS.query(QS.explode({
|
|
176
|
+
tenantId,
|
|
93
177
|
projectId
|
|
94
178
|
}))}`, {
|
|
95
179
|
...opts,
|
|
96
180
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
97
|
-
Authorization: authorization
|
|
181
|
+
Authorization: authorization,
|
|
182
|
+
"x-account-id": xAccountId
|
|
98
183
|
})
|
|
99
184
|
}));
|
|
100
185
|
}
|
|
101
|
-
export function
|
|
102
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
186
|
+
export function createRuntime({ authorization, xAccountId, foundationId, createRuntimeRequest }, opts) {
|
|
187
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes`, oazapfts.json({
|
|
103
188
|
...opts,
|
|
104
189
|
method: "POST",
|
|
105
|
-
body:
|
|
190
|
+
body: createRuntimeRequest,
|
|
106
191
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
107
|
-
Authorization: authorization
|
|
192
|
+
Authorization: authorization,
|
|
193
|
+
"x-account-id": xAccountId
|
|
108
194
|
})
|
|
109
195
|
})));
|
|
110
196
|
}
|
|
111
|
-
export function
|
|
112
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
113
|
-
|
|
114
|
-
accepterProjectId,
|
|
115
|
-
requesterNetworkId,
|
|
116
|
-
requesterProjectId
|
|
197
|
+
export function listProject({ authorization, xAccountId, foundationId, parentFolderId }, opts) {
|
|
198
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/projects${QS.query(QS.explode({
|
|
199
|
+
parentFolderId
|
|
117
200
|
}))}`, {
|
|
118
201
|
...opts,
|
|
119
202
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
120
|
-
Authorization: authorization
|
|
203
|
+
Authorization: authorization,
|
|
204
|
+
"x-account-id": xAccountId
|
|
121
205
|
})
|
|
122
206
|
}));
|
|
123
207
|
}
|
|
124
|
-
export function
|
|
125
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
208
|
+
export function createProject({ authorization, xAccountId, foundationId, createProjectRequest }, opts) {
|
|
209
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/projects`, oazapfts.json({
|
|
126
210
|
...opts,
|
|
127
211
|
method: "POST",
|
|
128
|
-
body:
|
|
212
|
+
body: createProjectRequest,
|
|
129
213
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
130
|
-
Authorization: authorization
|
|
214
|
+
Authorization: authorization,
|
|
215
|
+
"x-account-id": xAccountId
|
|
131
216
|
})
|
|
132
217
|
})));
|
|
133
218
|
}
|
|
134
|
-
export function
|
|
135
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
219
|
+
export function listNetwork({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
220
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/networks${QS.query(QS.explode({
|
|
221
|
+
projectId
|
|
222
|
+
}))}`, {
|
|
136
223
|
...opts,
|
|
137
224
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
138
|
-
Authorization: authorization
|
|
225
|
+
Authorization: authorization,
|
|
226
|
+
"x-account-id": xAccountId
|
|
139
227
|
})
|
|
140
228
|
}));
|
|
141
229
|
}
|
|
142
|
-
export function
|
|
143
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
230
|
+
export function createNetwork({ authorization, xAccountId, foundationId, createNetworkRequest }, opts) {
|
|
231
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/networks`, oazapfts.json({
|
|
144
232
|
...opts,
|
|
145
233
|
method: "POST",
|
|
146
|
-
body:
|
|
234
|
+
body: createNetworkRequest,
|
|
147
235
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
148
|
-
Authorization: authorization
|
|
236
|
+
Authorization: authorization,
|
|
237
|
+
"x-account-id": xAccountId
|
|
149
238
|
})
|
|
150
239
|
})));
|
|
151
240
|
}
|
|
152
|
-
export function getFolder({ authorization, foundationId, folderId }, opts) {
|
|
241
|
+
export function getFolder({ authorization, xAccountId, foundationId, folderId }, opts) {
|
|
153
242
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/folders${QS.query(QS.explode({
|
|
154
243
|
folderId
|
|
155
244
|
}))}`, {
|
|
156
245
|
...opts,
|
|
157
246
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
158
|
-
Authorization: authorization
|
|
247
|
+
Authorization: authorization,
|
|
248
|
+
"x-account-id": xAccountId
|
|
159
249
|
})
|
|
160
250
|
}));
|
|
161
251
|
}
|
|
162
|
-
export function createFolder({ authorization, foundationId, createFolderRequest }, opts) {
|
|
252
|
+
export function createFolder({ authorization, xAccountId, foundationId, createFolderRequest }, opts) {
|
|
163
253
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/folders`, oazapfts.json({
|
|
164
254
|
...opts,
|
|
165
255
|
method: "POST",
|
|
166
256
|
body: createFolderRequest,
|
|
167
257
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
168
|
-
Authorization: authorization
|
|
258
|
+
Authorization: authorization,
|
|
259
|
+
"x-account-id": xAccountId
|
|
169
260
|
})
|
|
170
261
|
})));
|
|
171
262
|
}
|
|
172
|
-
export function listDnsZone({ authorization, foundationId, projectId, privacy }, opts) {
|
|
263
|
+
export function listDnsZone({ authorization, xAccountId, foundationId, projectId, privacy }, opts) {
|
|
173
264
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones${QS.query(QS.explode({
|
|
174
265
|
projectId,
|
|
175
266
|
privacy
|
|
176
267
|
}))}`, {
|
|
177
268
|
...opts,
|
|
178
269
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
179
|
-
Authorization: authorization
|
|
270
|
+
Authorization: authorization,
|
|
271
|
+
"x-account-id": xAccountId
|
|
180
272
|
})
|
|
181
273
|
}));
|
|
182
274
|
}
|
|
183
|
-
export function createDnsZone({ authorization, foundationId, createDnsZoneRequest }, opts) {
|
|
275
|
+
export function createDnsZone({ authorization, xAccountId, foundationId, createDnsZoneRequest }, opts) {
|
|
184
276
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones`, oazapfts.json({
|
|
185
277
|
...opts,
|
|
186
278
|
method: "POST",
|
|
187
279
|
body: createDnsZoneRequest,
|
|
188
280
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
189
|
-
Authorization: authorization
|
|
281
|
+
Authorization: authorization,
|
|
282
|
+
"x-account-id": xAccountId
|
|
190
283
|
})
|
|
191
284
|
})));
|
|
192
285
|
}
|
|
193
|
-
export function listDnsRecord({ authorization, foundationId, projectId, dnsZoneId }, opts) {
|
|
286
|
+
export function listDnsRecord({ authorization, xAccountId, foundationId, projectId, dnsZoneId }, opts) {
|
|
194
287
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records${QS.query(QS.explode({
|
|
195
288
|
projectId,
|
|
196
289
|
dnsZoneId
|
|
197
290
|
}))}`, {
|
|
198
291
|
...opts,
|
|
199
292
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
200
|
-
Authorization: authorization
|
|
293
|
+
Authorization: authorization,
|
|
294
|
+
"x-account-id": xAccountId
|
|
201
295
|
})
|
|
202
296
|
}));
|
|
203
297
|
}
|
|
204
|
-
export function createDnsRecord({ authorization, foundationId, createDnsRecordRequest }, opts) {
|
|
298
|
+
export function createDnsRecord({ authorization, xAccountId, foundationId, createDnsRecordRequest }, opts) {
|
|
205
299
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records`, oazapfts.json({
|
|
206
300
|
...opts,
|
|
207
301
|
method: "POST",
|
|
208
302
|
body: createDnsRecordRequest,
|
|
209
303
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
210
|
-
Authorization: authorization
|
|
304
|
+
Authorization: authorization,
|
|
305
|
+
"x-account-id": xAccountId
|
|
211
306
|
})
|
|
212
307
|
})));
|
|
213
308
|
}
|
|
214
|
-
export function listCidr({ authorization, foundationId }, opts) {
|
|
309
|
+
export function listCidr({ authorization, xAccountId, foundationId }, opts) {
|
|
215
310
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, {
|
|
216
311
|
...opts,
|
|
217
312
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
218
|
-
Authorization: authorization
|
|
313
|
+
Authorization: authorization,
|
|
314
|
+
"x-account-id": xAccountId
|
|
219
315
|
})
|
|
220
316
|
}));
|
|
221
317
|
}
|
|
222
|
-
export function createCidr({ authorization, foundationId, createCidrRequest }, opts) {
|
|
318
|
+
export function createCidr({ authorization, xAccountId, foundationId, createCidrRequest }, opts) {
|
|
223
319
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs`, oazapfts.json({
|
|
224
320
|
...opts,
|
|
225
321
|
method: "POST",
|
|
226
322
|
body: createCidrRequest,
|
|
227
323
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
228
|
-
Authorization: authorization
|
|
324
|
+
Authorization: authorization,
|
|
325
|
+
"x-account-id": xAccountId
|
|
229
326
|
})
|
|
230
327
|
})));
|
|
231
328
|
}
|
|
232
|
-
export function listCertificates({ authorization, foundationId, forInbound }, opts) {
|
|
329
|
+
export function listCertificates({ authorization, xAccountId, foundationId, forInbound }, opts) {
|
|
233
330
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates${QS.query(QS.explode({
|
|
234
331
|
forInbound
|
|
235
332
|
}))}`, {
|
|
236
333
|
...opts,
|
|
237
334
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
238
|
-
Authorization: authorization
|
|
335
|
+
Authorization: authorization,
|
|
336
|
+
"x-account-id": xAccountId
|
|
239
337
|
})
|
|
240
338
|
}));
|
|
241
339
|
}
|
|
242
|
-
export function createCertificate({ authorization, foundationId, body }, opts) {
|
|
340
|
+
export function createCertificate({ authorization, xAccountId, foundationId, body }, opts) {
|
|
243
341
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates`, oazapfts.json({
|
|
244
342
|
...opts,
|
|
245
343
|
method: "POST",
|
|
246
344
|
body,
|
|
247
345
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
248
|
-
Authorization: authorization
|
|
346
|
+
Authorization: authorization,
|
|
347
|
+
"x-account-id": xAccountId
|
|
249
348
|
})
|
|
250
349
|
})));
|
|
251
350
|
}
|
|
252
|
-
export function
|
|
253
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}
|
|
351
|
+
export function getFoundation({ authorization, xAccountId, foundationId }, opts) {
|
|
352
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
|
|
254
353
|
...opts,
|
|
255
|
-
method: "PATCH",
|
|
256
354
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
257
|
-
Authorization: authorization
|
|
355
|
+
Authorization: authorization,
|
|
356
|
+
"x-account-id": xAccountId
|
|
258
357
|
})
|
|
259
358
|
}));
|
|
260
359
|
}
|
|
261
|
-
export function
|
|
262
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}`, {
|
|
360
|
+
export function getVpn({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
361
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
263
362
|
...opts,
|
|
264
363
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
265
|
-
Authorization: authorization
|
|
364
|
+
Authorization: authorization,
|
|
365
|
+
"x-account-id": xAccountId
|
|
266
366
|
})
|
|
267
367
|
}));
|
|
268
368
|
}
|
|
269
|
-
export function
|
|
270
|
-
return oazapfts.ok(oazapfts.
|
|
369
|
+
export function deleteVpn({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
370
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}`, {
|
|
271
371
|
...opts,
|
|
372
|
+
method: "DELETE",
|
|
272
373
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
273
|
-
Authorization: authorization
|
|
374
|
+
Authorization: authorization,
|
|
375
|
+
"x-account-id": xAccountId
|
|
274
376
|
})
|
|
275
377
|
}));
|
|
276
378
|
}
|
|
277
|
-
export function getVpnConfiguration({ authorization, foundationId, vpnId }, opts) {
|
|
379
|
+
export function getVpnConfiguration({ authorization, xAccountId, foundationId, vpnId }, opts) {
|
|
278
380
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/vpns/${encodeURIComponent(vpnId)}/configuration`, {
|
|
279
381
|
...opts,
|
|
280
382
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
281
|
-
Authorization: authorization
|
|
383
|
+
Authorization: authorization,
|
|
384
|
+
"x-account-id": xAccountId
|
|
282
385
|
})
|
|
283
386
|
}));
|
|
284
387
|
}
|
|
285
|
-
export function
|
|
388
|
+
export function getTenant({ authorization, xAccountId, foundationId, tenantId }, opts) {
|
|
286
389
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/tenants/${encodeURIComponent(tenantId)}`, {
|
|
287
390
|
...opts,
|
|
288
391
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
289
|
-
Authorization: authorization
|
|
392
|
+
Authorization: authorization,
|
|
393
|
+
"x-account-id": xAccountId
|
|
290
394
|
})
|
|
291
395
|
}));
|
|
292
396
|
}
|
|
293
|
-
export function
|
|
397
|
+
export function getRuntime({ authorization, xAccountId, foundationId, runtimeId }, opts) {
|
|
398
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
399
|
+
...opts,
|
|
400
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
401
|
+
Authorization: authorization,
|
|
402
|
+
"x-account-id": xAccountId
|
|
403
|
+
})
|
|
404
|
+
}));
|
|
405
|
+
}
|
|
406
|
+
export function getProject({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
294
407
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
295
408
|
...opts,
|
|
296
409
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
297
|
-
Authorization: authorization
|
|
410
|
+
Authorization: authorization,
|
|
411
|
+
"x-account-id": xAccountId
|
|
298
412
|
})
|
|
299
413
|
}));
|
|
300
414
|
}
|
|
301
|
-
export function
|
|
302
|
-
return oazapfts.ok(oazapfts.
|
|
415
|
+
export function deleteProject({ authorization, xAccountId, foundationId, projectId }, opts) {
|
|
416
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/projects/${encodeURIComponent(projectId)}`, {
|
|
303
417
|
...opts,
|
|
418
|
+
method: "DELETE",
|
|
304
419
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
305
|
-
Authorization: authorization
|
|
420
|
+
Authorization: authorization,
|
|
421
|
+
"x-account-id": xAccountId
|
|
306
422
|
})
|
|
307
423
|
}));
|
|
308
424
|
}
|
|
309
|
-
export function
|
|
310
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/
|
|
425
|
+
export function getNetwork({ authorization, xAccountId, foundationId, networkId }, opts) {
|
|
426
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
311
427
|
...opts,
|
|
312
428
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
313
|
-
Authorization: authorization
|
|
429
|
+
Authorization: authorization,
|
|
430
|
+
"x-account-id": xAccountId
|
|
314
431
|
})
|
|
315
432
|
}));
|
|
316
433
|
}
|
|
317
|
-
export function
|
|
318
|
-
return oazapfts.ok(oazapfts.
|
|
434
|
+
export function deleteNetwork({ authorization, xAccountId, foundationId, networkId }, opts) {
|
|
435
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/networks/${encodeURIComponent(networkId)}`, {
|
|
319
436
|
...opts,
|
|
437
|
+
method: "DELETE",
|
|
320
438
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
321
|
-
Authorization: authorization
|
|
439
|
+
Authorization: authorization,
|
|
440
|
+
"x-account-id": xAccountId
|
|
322
441
|
})
|
|
323
442
|
}));
|
|
324
443
|
}
|
|
325
|
-
export function getDnsZone({ authorization, foundationId, dnsZoneId }, opts) {
|
|
444
|
+
export function getDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }, opts) {
|
|
326
445
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
327
446
|
...opts,
|
|
328
447
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
329
|
-
Authorization: authorization
|
|
448
|
+
Authorization: authorization,
|
|
449
|
+
"x-account-id": xAccountId
|
|
330
450
|
})
|
|
331
451
|
}));
|
|
332
452
|
}
|
|
333
|
-
export function
|
|
453
|
+
export function deleteDnsZone({ authorization, xAccountId, foundationId, dnsZoneId }, opts) {
|
|
454
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-zones/${encodeURIComponent(dnsZoneId)}`, {
|
|
455
|
+
...opts,
|
|
456
|
+
method: "DELETE",
|
|
457
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
458
|
+
Authorization: authorization,
|
|
459
|
+
"x-account-id": xAccountId
|
|
460
|
+
})
|
|
461
|
+
}));
|
|
462
|
+
}
|
|
463
|
+
export function getDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }, opts) {
|
|
334
464
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
335
465
|
...opts,
|
|
336
466
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
337
|
-
Authorization: authorization
|
|
467
|
+
Authorization: authorization,
|
|
468
|
+
"x-account-id": xAccountId
|
|
338
469
|
})
|
|
339
470
|
}));
|
|
340
471
|
}
|
|
341
|
-
export function
|
|
472
|
+
export function deleteDnsRecord({ authorization, xAccountId, foundationId, dnsRecordId }, opts) {
|
|
473
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/dns-records/${encodeURIComponent(dnsRecordId)}`, {
|
|
474
|
+
...opts,
|
|
475
|
+
method: "DELETE",
|
|
476
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
477
|
+
Authorization: authorization,
|
|
478
|
+
"x-account-id": xAccountId
|
|
479
|
+
})
|
|
480
|
+
}));
|
|
481
|
+
}
|
|
482
|
+
export function getCidr({ authorization, xAccountId, foundationId, cidrId }, opts) {
|
|
342
483
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
343
484
|
...opts,
|
|
344
485
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
345
|
-
Authorization: authorization
|
|
486
|
+
Authorization: authorization,
|
|
487
|
+
"x-account-id": xAccountId
|
|
488
|
+
})
|
|
489
|
+
}));
|
|
490
|
+
}
|
|
491
|
+
export function deleteCidr({ authorization, xAccountId, foundationId, cidrId }, opts) {
|
|
492
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/cidrs/${encodeURIComponent(cidrId)}`, {
|
|
493
|
+
...opts,
|
|
494
|
+
method: "DELETE",
|
|
495
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
496
|
+
Authorization: authorization,
|
|
497
|
+
"x-account-id": xAccountId
|
|
346
498
|
})
|
|
347
499
|
}));
|
|
348
500
|
}
|
|
349
|
-
export function getCertificate({ authorization, foundationId, certificateId }, opts) {
|
|
501
|
+
export function getCertificate({ authorization, xAccountId, foundationId, certificateId }, opts) {
|
|
350
502
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
351
503
|
...opts,
|
|
352
504
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
353
|
-
Authorization: authorization
|
|
505
|
+
Authorization: authorization,
|
|
506
|
+
"x-account-id": xAccountId
|
|
354
507
|
})
|
|
355
508
|
}));
|
|
356
509
|
}
|
|
510
|
+
export function deleteCertificate({ authorization, xAccountId, foundationId, certificateId }, opts) {
|
|
511
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/certificates/${encodeURIComponent(certificateId)}`, {
|
|
512
|
+
...opts,
|
|
513
|
+
method: "DELETE",
|
|
514
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
515
|
+
Authorization: authorization,
|
|
516
|
+
"x-account-id": xAccountId
|
|
517
|
+
})
|
|
518
|
+
}));
|
|
519
|
+
}
|
|
520
|
+
export function getProvisionAvailability({ cloudProvider }, opts) {
|
|
521
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/foundations/provision-avaliability${QS.query(QS.explode({
|
|
522
|
+
cloudProvider
|
|
523
|
+
}))}`, {
|
|
524
|
+
...opts
|
|
525
|
+
}));
|
|
526
|
+
}
|
|
357
527
|
export function providers(opts) {
|
|
358
528
|
return oazapfts.ok(oazapfts.fetchJson("/v1/foundations/providers", {
|
|
359
529
|
...opts
|
|
360
530
|
}));
|
|
361
531
|
}
|
|
532
|
+
export function deleteFolder({ authorization, xAccountId, foundationId, folderId }, opts) {
|
|
533
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/foundations/${encodeURIComponent(foundationId)}/folders/${encodeURIComponent(folderId)}`, {
|
|
534
|
+
...opts,
|
|
535
|
+
method: "DELETE",
|
|
536
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
537
|
+
Authorization: authorization,
|
|
538
|
+
"x-account-id": xAccountId
|
|
539
|
+
})
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
362
542
|
//# sourceMappingURL=cloudPlatform.js.map
|