@astrogate/sdk 0.2.0 → 0.3.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/dist/management.d.ts +5 -0
- package/dist/management.js +1 -0
- package/dist/wire.gen.d.ts +130 -3
- package/package.json +1 -1
- package/release.json +2 -2
package/dist/management.d.ts
CHANGED
|
@@ -292,6 +292,11 @@ export declare function createManagement(options: ManagementOptions): {
|
|
|
292
292
|
}>;
|
|
293
293
|
};
|
|
294
294
|
environments: {
|
|
295
|
+
create: (project: string, input: Schemas["CreateEnvironment"], controls: RequestOptions) => Promise<{
|
|
296
|
+
operationId: string;
|
|
297
|
+
resourceId: string;
|
|
298
|
+
statusUrl: string;
|
|
299
|
+
}>;
|
|
295
300
|
list: (project: string, page?: PageOptions, signal?: AbortSignal) => Promise<import("./inventory.js").InventoryPage<{
|
|
296
301
|
id: string;
|
|
297
302
|
projectId: string;
|
package/dist/management.js
CHANGED
|
@@ -123,6 +123,7 @@ export function createManagement(options) {
|
|
|
123
123
|
create: (project, environment, input, controls) => request(`/projects/${id(project)}/environments/${id(environment)}/deployments`, accepted, input, controls),
|
|
124
124
|
},
|
|
125
125
|
environments: {
|
|
126
|
+
create: (project, input, controls) => request(`/projects/${id(project)}/environments`, accepted, input, controls),
|
|
126
127
|
list: (project, page = {}, signal) => request(`/projects/${id(project)}/environments${listQuery(page)}`, pageOf(environment), undefined, undefined, signal),
|
|
127
128
|
get: (project, resource, signal) => request(`/projects/${id(project)}/environments/${id(resource)}`, environment, undefined, undefined, signal),
|
|
128
129
|
getPlacement: (project, environment, signal) => request(`/projects/${id(project)}/environments/${id(environment)}/placement`, placementState, undefined, undefined, signal),
|
package/dist/wire.gen.d.ts
CHANGED
|
@@ -688,7 +688,8 @@ export interface paths {
|
|
|
688
688
|
};
|
|
689
689
|
get: operations["listEnvironments"];
|
|
690
690
|
put?: never;
|
|
691
|
-
|
|
691
|
+
/** @description Create an empty Preview or single Staging scope. Expected revision belongs to the parent project. Resources and permissions are not copied. The operation completes atomically with the scope. */
|
|
692
|
+
post: operations["createEnvironment"];
|
|
692
693
|
delete?: never;
|
|
693
694
|
options?: never;
|
|
694
695
|
head?: never;
|
|
@@ -1347,8 +1348,12 @@ export interface components {
|
|
|
1347
1348
|
location: string;
|
|
1348
1349
|
/** @description Exact optional recovery location, or empty for no standby. */
|
|
1349
1350
|
standbyLocation: string;
|
|
1350
|
-
/**
|
|
1351
|
-
|
|
1351
|
+
/**
|
|
1352
|
+
* @description Ordinary applications default to onDemand. Select alwaysOn explicitly to keep a warm replica; the registered capacity profile owns idle and wake budgets.
|
|
1353
|
+
* @default onDemand
|
|
1354
|
+
* @enum {string}
|
|
1355
|
+
*/
|
|
1356
|
+
runtimeMode?: "onDemand" | "alwaysOn";
|
|
1352
1357
|
};
|
|
1353
1358
|
ChangePlacement: {
|
|
1354
1359
|
/** Format: int64 */
|
|
@@ -1841,6 +1846,16 @@ export interface components {
|
|
|
1841
1846
|
/** Format: date-time */
|
|
1842
1847
|
next?: string;
|
|
1843
1848
|
};
|
|
1849
|
+
CreateEnvironment: {
|
|
1850
|
+
name: string;
|
|
1851
|
+
/** @enum {string} */
|
|
1852
|
+
kind: "preview" | "staging";
|
|
1853
|
+
/**
|
|
1854
|
+
* Format: int64
|
|
1855
|
+
* @description Current parent project revision
|
|
1856
|
+
*/
|
|
1857
|
+
expectedRevision: number;
|
|
1858
|
+
};
|
|
1844
1859
|
};
|
|
1845
1860
|
responses: never;
|
|
1846
1861
|
parameters: never;
|
|
@@ -5843,6 +5858,118 @@ export interface operations {
|
|
|
5843
5858
|
};
|
|
5844
5859
|
};
|
|
5845
5860
|
};
|
|
5861
|
+
createEnvironment: {
|
|
5862
|
+
parameters: {
|
|
5863
|
+
query?: never;
|
|
5864
|
+
header: {
|
|
5865
|
+
"Idempotency-Key": string;
|
|
5866
|
+
};
|
|
5867
|
+
path: {
|
|
5868
|
+
tenant: string;
|
|
5869
|
+
project: string;
|
|
5870
|
+
};
|
|
5871
|
+
cookie?: never;
|
|
5872
|
+
};
|
|
5873
|
+
requestBody: {
|
|
5874
|
+
content: {
|
|
5875
|
+
"application/json": components["schemas"]["CreateEnvironment"];
|
|
5876
|
+
};
|
|
5877
|
+
};
|
|
5878
|
+
responses: {
|
|
5879
|
+
/** @description Durable completed logical environment operation; no native resource implied */
|
|
5880
|
+
202: {
|
|
5881
|
+
headers: {
|
|
5882
|
+
/** @description Operation status URL */
|
|
5883
|
+
Location?: string;
|
|
5884
|
+
[name: string]: unknown;
|
|
5885
|
+
};
|
|
5886
|
+
content: {
|
|
5887
|
+
"application/json": components["schemas"]["Accepted"];
|
|
5888
|
+
};
|
|
5889
|
+
};
|
|
5890
|
+
/** @description Invalid input */
|
|
5891
|
+
400: {
|
|
5892
|
+
headers: {
|
|
5893
|
+
[name: string]: unknown;
|
|
5894
|
+
};
|
|
5895
|
+
content: {
|
|
5896
|
+
"application/json": components["schemas"]["Error"];
|
|
5897
|
+
};
|
|
5898
|
+
};
|
|
5899
|
+
/** @description Missing or invalid credential */
|
|
5900
|
+
401: {
|
|
5901
|
+
headers: {
|
|
5902
|
+
[name: string]: unknown;
|
|
5903
|
+
};
|
|
5904
|
+
content: {
|
|
5905
|
+
"application/json": components["schemas"]["Error"];
|
|
5906
|
+
};
|
|
5907
|
+
};
|
|
5908
|
+
/** @description Missing capability */
|
|
5909
|
+
403: {
|
|
5910
|
+
headers: {
|
|
5911
|
+
[name: string]: unknown;
|
|
5912
|
+
};
|
|
5913
|
+
content: {
|
|
5914
|
+
"application/json": components["schemas"]["Error"];
|
|
5915
|
+
};
|
|
5916
|
+
};
|
|
5917
|
+
/** @description Unknown route or scope */
|
|
5918
|
+
404: {
|
|
5919
|
+
headers: {
|
|
5920
|
+
[name: string]: unknown;
|
|
5921
|
+
};
|
|
5922
|
+
content: {
|
|
5923
|
+
"application/json": components["schemas"]["Error"];
|
|
5924
|
+
};
|
|
5925
|
+
};
|
|
5926
|
+
/** @description Parent revision, name, single-Staging or idempotency conflict */
|
|
5927
|
+
409: {
|
|
5928
|
+
headers: {
|
|
5929
|
+
[name: string]: unknown;
|
|
5930
|
+
};
|
|
5931
|
+
content: {
|
|
5932
|
+
"application/json": components["schemas"]["Error"];
|
|
5933
|
+
};
|
|
5934
|
+
};
|
|
5935
|
+
/** @description Body exceeds 16 KiB */
|
|
5936
|
+
413: {
|
|
5937
|
+
headers: {
|
|
5938
|
+
[name: string]: unknown;
|
|
5939
|
+
};
|
|
5940
|
+
content: {
|
|
5941
|
+
"application/json": components["schemas"]["Error"];
|
|
5942
|
+
};
|
|
5943
|
+
};
|
|
5944
|
+
/** @description JSON required */
|
|
5945
|
+
415: {
|
|
5946
|
+
headers: {
|
|
5947
|
+
[name: string]: unknown;
|
|
5948
|
+
};
|
|
5949
|
+
content: {
|
|
5950
|
+
"application/json": components["schemas"]["Error"];
|
|
5951
|
+
};
|
|
5952
|
+
};
|
|
5953
|
+
/** @description Quota exceeded */
|
|
5954
|
+
429: {
|
|
5955
|
+
headers: {
|
|
5956
|
+
[name: string]: unknown;
|
|
5957
|
+
};
|
|
5958
|
+
content: {
|
|
5959
|
+
"application/json": components["schemas"]["Error"];
|
|
5960
|
+
};
|
|
5961
|
+
};
|
|
5962
|
+
/** @description Dependency unavailable */
|
|
5963
|
+
503: {
|
|
5964
|
+
headers: {
|
|
5965
|
+
[name: string]: unknown;
|
|
5966
|
+
};
|
|
5967
|
+
content: {
|
|
5968
|
+
"application/json": components["schemas"]["Error"];
|
|
5969
|
+
};
|
|
5970
|
+
};
|
|
5971
|
+
};
|
|
5972
|
+
};
|
|
5846
5973
|
listOperatorProducts: {
|
|
5847
5974
|
parameters: {
|
|
5848
5975
|
query?: {
|
package/package.json
CHANGED
package/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrogate/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"sourceRevision": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"sourceRevision": "ae562256245432181de889b5f8c9159e105c2248",
|
|
5
5
|
"cleanSource": true,
|
|
6
6
|
"sdkLockSHA256": "18c62b4e44914fefcd3a06c72121bac03545170d6a77d9d6333dfab276382990",
|
|
7
7
|
"nativeLockSHA256": "747051f0cdb1b0c493967c480c1bef111cde7661cdf66eb2d132803c11bd8d3a",
|