@astrogate/sdk 0.2.0 → 0.3.0
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 +124 -1
- 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;
|
|
@@ -1841,6 +1842,16 @@ export interface components {
|
|
|
1841
1842
|
/** Format: date-time */
|
|
1842
1843
|
next?: string;
|
|
1843
1844
|
};
|
|
1845
|
+
CreateEnvironment: {
|
|
1846
|
+
name: string;
|
|
1847
|
+
/** @enum {string} */
|
|
1848
|
+
kind: "preview" | "staging";
|
|
1849
|
+
/**
|
|
1850
|
+
* Format: int64
|
|
1851
|
+
* @description Current parent project revision
|
|
1852
|
+
*/
|
|
1853
|
+
expectedRevision: number;
|
|
1854
|
+
};
|
|
1844
1855
|
};
|
|
1845
1856
|
responses: never;
|
|
1846
1857
|
parameters: never;
|
|
@@ -5843,6 +5854,118 @@ export interface operations {
|
|
|
5843
5854
|
};
|
|
5844
5855
|
};
|
|
5845
5856
|
};
|
|
5857
|
+
createEnvironment: {
|
|
5858
|
+
parameters: {
|
|
5859
|
+
query?: never;
|
|
5860
|
+
header: {
|
|
5861
|
+
"Idempotency-Key": string;
|
|
5862
|
+
};
|
|
5863
|
+
path: {
|
|
5864
|
+
tenant: string;
|
|
5865
|
+
project: string;
|
|
5866
|
+
};
|
|
5867
|
+
cookie?: never;
|
|
5868
|
+
};
|
|
5869
|
+
requestBody: {
|
|
5870
|
+
content: {
|
|
5871
|
+
"application/json": components["schemas"]["CreateEnvironment"];
|
|
5872
|
+
};
|
|
5873
|
+
};
|
|
5874
|
+
responses: {
|
|
5875
|
+
/** @description Durable completed logical environment operation; no native resource implied */
|
|
5876
|
+
202: {
|
|
5877
|
+
headers: {
|
|
5878
|
+
/** @description Operation status URL */
|
|
5879
|
+
Location?: string;
|
|
5880
|
+
[name: string]: unknown;
|
|
5881
|
+
};
|
|
5882
|
+
content: {
|
|
5883
|
+
"application/json": components["schemas"]["Accepted"];
|
|
5884
|
+
};
|
|
5885
|
+
};
|
|
5886
|
+
/** @description Invalid input */
|
|
5887
|
+
400: {
|
|
5888
|
+
headers: {
|
|
5889
|
+
[name: string]: unknown;
|
|
5890
|
+
};
|
|
5891
|
+
content: {
|
|
5892
|
+
"application/json": components["schemas"]["Error"];
|
|
5893
|
+
};
|
|
5894
|
+
};
|
|
5895
|
+
/** @description Missing or invalid credential */
|
|
5896
|
+
401: {
|
|
5897
|
+
headers: {
|
|
5898
|
+
[name: string]: unknown;
|
|
5899
|
+
};
|
|
5900
|
+
content: {
|
|
5901
|
+
"application/json": components["schemas"]["Error"];
|
|
5902
|
+
};
|
|
5903
|
+
};
|
|
5904
|
+
/** @description Missing capability */
|
|
5905
|
+
403: {
|
|
5906
|
+
headers: {
|
|
5907
|
+
[name: string]: unknown;
|
|
5908
|
+
};
|
|
5909
|
+
content: {
|
|
5910
|
+
"application/json": components["schemas"]["Error"];
|
|
5911
|
+
};
|
|
5912
|
+
};
|
|
5913
|
+
/** @description Unknown route or scope */
|
|
5914
|
+
404: {
|
|
5915
|
+
headers: {
|
|
5916
|
+
[name: string]: unknown;
|
|
5917
|
+
};
|
|
5918
|
+
content: {
|
|
5919
|
+
"application/json": components["schemas"]["Error"];
|
|
5920
|
+
};
|
|
5921
|
+
};
|
|
5922
|
+
/** @description Parent revision, name, single-Staging or idempotency conflict */
|
|
5923
|
+
409: {
|
|
5924
|
+
headers: {
|
|
5925
|
+
[name: string]: unknown;
|
|
5926
|
+
};
|
|
5927
|
+
content: {
|
|
5928
|
+
"application/json": components["schemas"]["Error"];
|
|
5929
|
+
};
|
|
5930
|
+
};
|
|
5931
|
+
/** @description Body exceeds 16 KiB */
|
|
5932
|
+
413: {
|
|
5933
|
+
headers: {
|
|
5934
|
+
[name: string]: unknown;
|
|
5935
|
+
};
|
|
5936
|
+
content: {
|
|
5937
|
+
"application/json": components["schemas"]["Error"];
|
|
5938
|
+
};
|
|
5939
|
+
};
|
|
5940
|
+
/** @description JSON required */
|
|
5941
|
+
415: {
|
|
5942
|
+
headers: {
|
|
5943
|
+
[name: string]: unknown;
|
|
5944
|
+
};
|
|
5945
|
+
content: {
|
|
5946
|
+
"application/json": components["schemas"]["Error"];
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5949
|
+
/** @description Quota exceeded */
|
|
5950
|
+
429: {
|
|
5951
|
+
headers: {
|
|
5952
|
+
[name: string]: unknown;
|
|
5953
|
+
};
|
|
5954
|
+
content: {
|
|
5955
|
+
"application/json": components["schemas"]["Error"];
|
|
5956
|
+
};
|
|
5957
|
+
};
|
|
5958
|
+
/** @description Dependency unavailable */
|
|
5959
|
+
503: {
|
|
5960
|
+
headers: {
|
|
5961
|
+
[name: string]: unknown;
|
|
5962
|
+
};
|
|
5963
|
+
content: {
|
|
5964
|
+
"application/json": components["schemas"]["Error"];
|
|
5965
|
+
};
|
|
5966
|
+
};
|
|
5967
|
+
};
|
|
5968
|
+
};
|
|
5846
5969
|
listOperatorProducts: {
|
|
5847
5970
|
parameters: {
|
|
5848
5971
|
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.0",
|
|
4
|
+
"sourceRevision": "2e9b8e88b8e903876ab1af4f29cab939965b02c4",
|
|
5
5
|
"cleanSource": true,
|
|
6
6
|
"sdkLockSHA256": "18c62b4e44914fefcd3a06c72121bac03545170d6a77d9d6333dfab276382990",
|
|
7
7
|
"nativeLockSHA256": "747051f0cdb1b0c493967c480c1bef111cde7661cdf66eb2d132803c11bd8d3a",
|