shoal-web-sdk 1.0.110 → 1.0.112

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.
@@ -170,6 +170,10 @@ export declare const getVersionM2mOptions: (options: Options<GetVersionM2mData>)
170
170
  };
171
171
  };
172
172
  export declare const updateDeploymentStatusM2mMutation: (options?: Partial<Options<UpdateDeploymentStatusM2mData>>) => UseMutationOptions<unknown, UpdateDeploymentStatusM2mError, Options<UpdateDeploymentStatusM2mData>>;
173
+ /**
174
+ * Update a graph by version ID for M2M.
175
+ */
176
+ export declare const updateGraphM2mMutation: (options?: Partial<Options<UpdateGraphM2mData>>) => UseMutationOptions<unknown, UpdateGraphM2mError, Options<UpdateGraphM2mData>>;
173
177
  export declare const fetchGraphM2mQueryKey: (options: Options<FetchGraphM2mData>) => [Pick<Options<FetchGraphM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
174
178
  _id: string;
175
179
  _infinite?: boolean;
@@ -198,10 +202,6 @@ export declare const fetchGraphM2mOptions: (options: Options<FetchGraphM2mData>)
198
202
  [dataTagErrorSymbol]: Error;
199
203
  };
200
204
  };
201
- /**
202
- * Update a graph by version ID for M2M.
203
- */
204
- export declare const updateGraphM2mMutation: (options?: Partial<Options<UpdateGraphM2mData>>) => UseMutationOptions<unknown, UpdateGraphM2mError, Options<UpdateGraphM2mData>>;
205
205
  export declare const fetchNodeM2mQueryKey: (options: Options<FetchNodeM2mData>) => [Pick<Options<FetchNodeM2mData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
206
206
  _id: string;
207
207
  _infinite?: boolean;
@@ -219,6 +219,22 @@ export const updateDeploymentStatusM2mMutation = (options) => {
219
219
  };
220
220
  return mutationOptions;
221
221
  };
222
+ /**
223
+ * Update a graph by version ID for M2M.
224
+ */
225
+ export const updateGraphM2mMutation = (options) => {
226
+ const mutationOptions = {
227
+ mutationFn: async (fnOptions) => {
228
+ const { data } = await updateGraphM2M({
229
+ ...options,
230
+ ...fnOptions,
231
+ throwOnError: true
232
+ });
233
+ return data;
234
+ }
235
+ };
236
+ return mutationOptions;
237
+ };
222
238
  export const fetchGraphM2mQueryKey = (options) => createQueryKey('fetchGraphM2M', options);
223
239
  /**
224
240
  * Fetch a graph by version ID for M2M.
@@ -237,22 +253,6 @@ export const fetchGraphM2mOptions = (options) => {
237
253
  queryKey: fetchGraphM2mQueryKey(options)
238
254
  });
239
255
  };
240
- /**
241
- * Update a graph by version ID for M2M.
242
- */
243
- export const updateGraphM2mMutation = (options) => {
244
- const mutationOptions = {
245
- mutationFn: async (fnOptions) => {
246
- const { data } = await updateGraphM2M({
247
- ...options,
248
- ...fnOptions,
249
- throwOnError: true
250
- });
251
- return data;
252
- }
253
- };
254
- return mutationOptions;
255
- };
256
256
  export const fetchNodeM2mQueryKey = (options) => createQueryKey('fetchNodeM2M', options);
257
257
  /**
258
258
  * Fetch a node by id with its props for M2M.
@@ -31,14 +31,14 @@ export declare const setEnvironmentGcpProjectId: <ThrowOnError extends boolean =
31
31
  export declare const nukeEnvironmentM2M: <ThrowOnError extends boolean = false>(options: Options<NukeEnvironmentM2mData, ThrowOnError>) => import("./client").RequestResult<NukeEnvironmentM2mResponses, NukeEnvironmentM2mErrors, ThrowOnError, "fields">;
32
32
  export declare const getVersionM2M: <ThrowOnError extends boolean = false>(options: Options<GetVersionM2mData, ThrowOnError>) => import("./client").RequestResult<GetVersionM2mResponses, GetVersionM2mErrors, ThrowOnError, "fields">;
33
33
  export declare const updateDeploymentStatusM2M: <ThrowOnError extends boolean = false>(options: Options<UpdateDeploymentStatusM2mData, ThrowOnError>) => import("./client").RequestResult<UpdateDeploymentStatusM2mResponses, UpdateDeploymentStatusM2mErrors, ThrowOnError, "fields">;
34
- /**
35
- * Fetch a graph by version ID for M2M.
36
- */
37
- export declare const fetchGraphM2M: <ThrowOnError extends boolean = false>(options: Options<FetchGraphM2mData, ThrowOnError>) => import("./client").RequestResult<FetchGraphM2mResponses, FetchGraphM2mErrors, ThrowOnError, "fields">;
38
34
  /**
39
35
  * Update a graph by version ID for M2M.
40
36
  */
41
37
  export declare const updateGraphM2M: <ThrowOnError extends boolean = false>(options: Options<UpdateGraphM2mData, ThrowOnError>) => import("./client").RequestResult<UpdateGraphM2mResponses, UpdateGraphM2mErrors, ThrowOnError, "fields">;
38
+ /**
39
+ * Fetch a graph by version ID for M2M.
40
+ */
41
+ export declare const fetchGraphM2M: <ThrowOnError extends boolean = false>(options: Options<FetchGraphM2mData, ThrowOnError>) => import("./client").RequestResult<FetchGraphM2mResponses, FetchGraphM2mErrors, ThrowOnError, "fields">;
42
42
  /**
43
43
  * Fetch a node by id with its props for M2M.
44
44
  */
@@ -162,10 +162,10 @@ export const updateDeploymentStatusM2M = (options) => {
162
162
  });
163
163
  };
164
164
  /**
165
- * Fetch a graph by version ID for M2M.
165
+ * Update a graph by version ID for M2M.
166
166
  */
167
- export const fetchGraphM2M = (options) => {
168
- return (options.client ?? client).get({
167
+ export const updateGraphM2M = (options) => {
168
+ return (options.client ?? client).put({
169
169
  security: [
170
170
  {
171
171
  scheme: 'bearer',
@@ -176,15 +176,19 @@ export const fetchGraphM2M = (options) => {
176
176
  type: 'apiKey'
177
177
  }
178
178
  ],
179
- url: '/m2m/graph/{versionUUID}',
180
- ...options
179
+ url: '/m2m/graph/{versionUUID}/{orgID}',
180
+ ...options,
181
+ headers: {
182
+ 'Content-Type': 'application/json',
183
+ ...options.headers
184
+ }
181
185
  });
182
186
  };
183
187
  /**
184
- * Update a graph by version ID for M2M.
188
+ * Fetch a graph by version ID for M2M.
185
189
  */
186
- export const updateGraphM2M = (options) => {
187
- return (options.client ?? client).put({
190
+ export const fetchGraphM2M = (options) => {
191
+ return (options.client ?? client).get({
188
192
  security: [
189
193
  {
190
194
  scheme: 'bearer',
@@ -196,11 +200,7 @@ export const updateGraphM2M = (options) => {
196
200
  }
197
201
  ],
198
202
  url: '/m2m/graph/{versionUUID}',
199
- ...options,
200
- headers: {
201
- 'Content-Type': 'application/json',
202
- ...options.headers
203
- }
203
+ ...options
204
204
  });
205
205
  };
206
206
  /**
@@ -1566,18 +1566,28 @@ export type UpdateDeploymentStatusM2mResponses = {
1566
1566
  */
1567
1567
  202: unknown;
1568
1568
  };
1569
- export type FetchGraphM2mData = {
1570
- body?: never;
1569
+ export type UpdateGraphM2mData = {
1570
+ body: Nodes;
1571
+ headers: {
1572
+ /**
1573
+ * Clients known etag of the version.
1574
+ */
1575
+ 'If-Match': string;
1576
+ };
1571
1577
  path: {
1578
+ /**
1579
+ * Kinde organisation ID
1580
+ */
1581
+ orgID: string;
1572
1582
  /**
1573
1583
  * A version UUID.
1574
1584
  */
1575
1585
  versionUUID: string;
1576
1586
  };
1577
1587
  query?: never;
1578
- url: '/m2m/graph/{versionUUID}';
1588
+ url: '/m2m/graph/{versionUUID}/{orgID}';
1579
1589
  };
1580
- export type FetchGraphM2mErrors = {
1590
+ export type UpdateGraphM2mErrors = {
1581
1591
  /**
1582
1592
  * Unauthorised user.
1583
1593
  */
@@ -1590,23 +1600,24 @@ export type FetchGraphM2mErrors = {
1590
1600
  * Related content not found.
1591
1601
  */
1592
1602
  404: ErrorResponse;
1603
+ /**
1604
+ * Unprocessable graph state.
1605
+ */
1606
+ 422: ErrorResponse;
1607
+ /**
1608
+ * Unexpected error.
1609
+ */
1610
+ 500: ErrorResponse;
1593
1611
  };
1594
- export type FetchGraphM2mError = FetchGraphM2mErrors[keyof FetchGraphM2mErrors];
1595
- export type FetchGraphM2mResponses = {
1612
+ export type UpdateGraphM2mError = UpdateGraphM2mErrors[keyof UpdateGraphM2mErrors];
1613
+ export type UpdateGraphM2mResponses = {
1596
1614
  /**
1597
- * Graph fetched successfully.
1615
+ * Graph state updated successfully
1598
1616
  */
1599
- 200: Graph;
1617
+ 202: unknown;
1600
1618
  };
1601
- export type FetchGraphM2mResponse = FetchGraphM2mResponses[keyof FetchGraphM2mResponses];
1602
- export type UpdateGraphM2mData = {
1603
- body: Nodes;
1604
- headers: {
1605
- /**
1606
- * Clients known etag of the version.
1607
- */
1608
- 'If-Match': string;
1609
- };
1619
+ export type FetchGraphM2mData = {
1620
+ body?: never;
1610
1621
  path: {
1611
1622
  /**
1612
1623
  * A version UUID.
@@ -1616,7 +1627,7 @@ export type UpdateGraphM2mData = {
1616
1627
  query?: never;
1617
1628
  url: '/m2m/graph/{versionUUID}';
1618
1629
  };
1619
- export type UpdateGraphM2mErrors = {
1630
+ export type FetchGraphM2mErrors = {
1620
1631
  /**
1621
1632
  * Unauthorised user.
1622
1633
  */
@@ -1629,22 +1640,15 @@ export type UpdateGraphM2mErrors = {
1629
1640
  * Related content not found.
1630
1641
  */
1631
1642
  404: ErrorResponse;
1632
- /**
1633
- * Unprocessable graph state.
1634
- */
1635
- 422: ErrorResponse;
1636
- /**
1637
- * Unexpected error.
1638
- */
1639
- 500: ErrorResponse;
1640
1643
  };
1641
- export type UpdateGraphM2mError = UpdateGraphM2mErrors[keyof UpdateGraphM2mErrors];
1642
- export type UpdateGraphM2mResponses = {
1644
+ export type FetchGraphM2mError = FetchGraphM2mErrors[keyof FetchGraphM2mErrors];
1645
+ export type FetchGraphM2mResponses = {
1643
1646
  /**
1644
- * Graph state updated successfully
1647
+ * Graph fetched successfully.
1645
1648
  */
1646
- 202: unknown;
1649
+ 200: Graph;
1647
1650
  };
1651
+ export type FetchGraphM2mResponse = FetchGraphM2mResponses[keyof FetchGraphM2mResponses];
1648
1652
  export type FetchNodeM2mData = {
1649
1653
  body?: never;
1650
1654
  path: {
@@ -2883,70 +2883,360 @@ export declare const zUpdateDeploymentStatusM2mData: z.ZodObject<{
2883
2883
  }, z.core.$strip>;
2884
2884
  query: z.ZodOptional<z.ZodNever>;
2885
2885
  }, z.core.$strip>;
2886
- export declare const zFetchGraphM2mData: z.ZodObject<{
2887
- body: z.ZodOptional<z.ZodNever>;
2888
- path: z.ZodObject<{
2889
- versionUUID: z.ZodUUID;
2890
- }, z.core.$strip>;
2891
- query: z.ZodOptional<z.ZodNever>;
2892
- }, z.core.$strip>;
2893
- /**
2894
- * Graph fetched successfully.
2895
- */
2896
- export declare const zFetchGraphM2mResponse: z.ZodObject<{
2897
- versionUUID: z.ZodUUID;
2898
- version: z.ZodInt;
2899
- nodes: z.ZodArray<z.ZodObject<{
2900
- id: z.ZodUUID;
2901
- name: z.ZodOptional<z.ZodString>;
2902
- description: z.ZodOptional<z.ZodString>;
2903
- x: z.ZodNumber;
2904
- y: z.ZodNumber;
2905
- width: z.ZodInt;
2906
- height: z.ZodInt;
2907
- release: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2908
- edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2886
+ export declare const zUpdateGraphM2mData: z.ZodObject<{
2887
+ body: z.ZodObject<{
2888
+ nodes: z.ZodArray<z.ZodObject<{
2909
2889
  id: z.ZodUUID;
2910
- src: z.ZodUUID;
2911
- dst: z.ZodUUID;
2890
+ name: z.ZodOptional<z.ZodString>;
2891
+ description: z.ZodOptional<z.ZodString>;
2892
+ x: z.ZodNumber;
2893
+ y: z.ZodNumber;
2894
+ width: z.ZodInt;
2895
+ height: z.ZodInt;
2896
+ release: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2897
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2898
+ id: z.ZodUUID;
2899
+ src: z.ZodUUID;
2900
+ dst: z.ZodUUID;
2901
+ typ: z.ZodEnum<{
2902
+ network: "network";
2903
+ route: "route";
2904
+ output: "output";
2905
+ }>;
2906
+ props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
2907
+ typ: z.ZodLiteral<"network">;
2908
+ }, z.core.$strip>, z.ZodObject<{
2909
+ a: z.ZodOptional<z.ZodString>;
2910
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2911
+ typ: z.ZodLiteral<"route">;
2912
+ }, z.core.$strip>, z.ZodObject<{
2913
+ path: z.ZodString;
2914
+ rewrite: z.ZodOptional<z.ZodString>;
2915
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2916
+ typ: z.ZodLiteral<"output">;
2917
+ }, z.core.$strip>, z.ZodObject<{
2918
+ mappings: z.ZodArray<z.ZodObject<{
2919
+ output_key: z.ZodString;
2920
+ local_env_var_key: z.ZodString;
2921
+ }, z.core.$strip>>;
2922
+ }, z.core.$strip>>]>>;
2923
+ }, z.core.$strip>>>;
2912
2924
  typ: z.ZodEnum<{
2913
- network: "network";
2914
- route: "route";
2915
- output: "output";
2925
+ function: "function";
2926
+ cache: "cache";
2927
+ comment: "comment";
2928
+ container: "container";
2929
+ cronjob: "cronjob";
2930
+ database: "database";
2931
+ neondb: "neondb";
2932
+ mongodb: "mongodb";
2933
+ cloudsql: "cloudsql";
2934
+ queue: "queue";
2935
+ proxy: "proxy";
2936
+ vm: "vm";
2937
+ scheduler: "scheduler";
2916
2938
  }>;
2917
2939
  props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
2918
- typ: z.ZodLiteral<"network">;
2940
+ typ: z.ZodLiteral<"comment">;
2919
2941
  }, z.core.$strip>, z.ZodObject<{
2920
- a: z.ZodOptional<z.ZodString>;
2942
+ comment: z.ZodOptional<z.ZodString>;
2921
2943
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2922
- typ: z.ZodLiteral<"route">;
2944
+ typ: z.ZodLiteral<"cache">;
2923
2945
  }, z.core.$strip>, z.ZodObject<{
2924
- path: z.ZodString;
2925
- rewrite: z.ZodOptional<z.ZodString>;
2946
+ size: z.ZodOptional<z.ZodInt>;
2926
2947
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2927
- typ: z.ZodLiteral<"output">;
2948
+ typ: z.ZodLiteral<"container">;
2928
2949
  }, z.core.$strip>, z.ZodObject<{
2929
- mappings: z.ZodArray<z.ZodObject<{
2930
- output_key: z.ZodString;
2931
- local_env_var_key: z.ZodString;
2950
+ region: z.ZodEnum<{
2951
+ "europe-west2": "europe-west2";
2952
+ }>;
2953
+ port: z.ZodInt;
2954
+ cpu: z.ZodEnum<{
2955
+ 1: "1";
2956
+ 2: "2";
2957
+ }>;
2958
+ memory: z.ZodEnum<{
2959
+ "512Mi": "512Mi";
2960
+ "1Gi": "1Gi";
2961
+ "2Gi": "2Gi";
2962
+ }>;
2963
+ serviceName: z.ZodOptional<z.ZodString>;
2964
+ ingress: z.ZodEnum<{
2965
+ INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
2966
+ INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
2967
+ INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
2968
+ }>;
2969
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
2970
+ maxInstances: z.ZodOptional<z.ZodInt>;
2971
+ minInstances: z.ZodOptional<z.ZodInt>;
2972
+ concurrency: z.ZodOptional<z.ZodInt>;
2973
+ allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
2974
+ uri: z.ZodOptional<z.ZodString>;
2975
+ installationId: z.ZodOptional<z.ZodString>;
2976
+ language: z.ZodOptional<z.ZodString>;
2977
+ framework: z.ZodOptional<z.ZodString>;
2978
+ runtimeVersion: z.ZodOptional<z.ZodString>;
2979
+ env: z.ZodOptional<z.ZodArray<z.ZodString>>;
2980
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2981
+ typ: z.ZodLiteral<"cronjob">;
2982
+ }, z.core.$strip>, z.ZodObject<{
2983
+ cronTab: z.ZodOptional<z.ZodString>;
2984
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2985
+ typ: z.ZodLiteral<"database">;
2986
+ }, z.core.$strip>, z.ZodObject<{
2987
+ space: z.ZodOptional<z.ZodInt>;
2988
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2989
+ typ: z.ZodLiteral<"function">;
2990
+ }, z.core.$strip>, z.ZodObject<{
2991
+ region: z.ZodEnum<{
2992
+ "europe-west2": "europe-west2";
2993
+ }>;
2994
+ language: z.ZodString;
2995
+ runtimeVersion: z.ZodString;
2996
+ serviceName: z.ZodOptional<z.ZodString>;
2997
+ cpu: z.ZodEnum<{
2998
+ 1: "1";
2999
+ 2: "2";
3000
+ }>;
3001
+ memory: z.ZodEnum<{
3002
+ "512Mi": "512Mi";
3003
+ "1Gi": "1Gi";
3004
+ "2Gi": "2Gi";
3005
+ }>;
3006
+ concurrency: z.ZodOptional<z.ZodInt>;
3007
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
3008
+ minInstances: z.ZodOptional<z.ZodInt>;
3009
+ maxInstances: z.ZodOptional<z.ZodInt>;
3010
+ entryPoint: z.ZodString;
3011
+ uri: z.ZodOptional<z.ZodString>;
3012
+ installationId: z.ZodOptional<z.ZodString>;
3013
+ env: z.ZodOptional<z.ZodArray<z.ZodString>>;
3014
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3015
+ typ: z.ZodLiteral<"neondb">;
3016
+ }, z.core.$strip>, z.ZodObject<{
3017
+ orgId: z.ZodOptional<z.ZodString>;
3018
+ orgName: z.ZodOptional<z.ZodString>;
3019
+ projectId: z.ZodOptional<z.ZodString>;
3020
+ projectName: z.ZodOptional<z.ZodString>;
3021
+ branchId: z.ZodOptional<z.ZodString>;
3022
+ branchName: z.ZodOptional<z.ZodString>;
3023
+ dbName: z.ZodOptional<z.ZodString>;
3024
+ roleName: z.ZodOptional<z.ZodString>;
3025
+ regionId: z.ZodOptional<z.ZodString>;
3026
+ pgVersion: z.ZodOptional<z.ZodInt>;
3027
+ autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
3028
+ autoscalingLimitMaxCu: z.ZodOptional<z.ZodNumber>;
3029
+ suspendTimeoutSeconds: z.ZodOptional<z.ZodInt>;
3030
+ connectionUri: z.ZodOptional<z.ZodString>;
3031
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3032
+ typ: z.ZodLiteral<"mongodb">;
3033
+ }, z.core.$strip>, z.ZodObject<{
3034
+ orgId: z.ZodOptional<z.ZodString>;
3035
+ orgName: z.ZodOptional<z.ZodString>;
3036
+ projectId: z.ZodOptional<z.ZodString>;
3037
+ projectName: z.ZodOptional<z.ZodString>;
3038
+ clusterId: z.ZodOptional<z.ZodString>;
3039
+ clusterName: z.ZodOptional<z.ZodString>;
3040
+ cloudProvider: z.ZodOptional<z.ZodString>;
3041
+ regionName: z.ZodOptional<z.ZodString>;
3042
+ instanceSize: z.ZodOptional<z.ZodString>;
3043
+ mongoVersion: z.ZodOptional<z.ZodString>;
3044
+ diskSizeGb: z.ZodOptional<z.ZodNumber>;
3045
+ clusterType: z.ZodOptional<z.ZodString>;
3046
+ backupEnabled: z.ZodOptional<z.ZodBoolean>;
3047
+ connectionString: z.ZodOptional<z.ZodString>;
3048
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3049
+ typ: z.ZodLiteral<"cloudsql">;
3050
+ }, z.core.$strip>, z.ZodObject<{
3051
+ instanceName: z.ZodOptional<z.ZodString>;
3052
+ region: z.ZodOptional<z.ZodEnum<{
3053
+ "europe-west2": "europe-west2";
3054
+ }>>;
3055
+ cpuCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>>;
3056
+ memoryMb: z.ZodOptional<z.ZodInt>;
3057
+ dbVersion: z.ZodOptional<z.ZodEnum<{
3058
+ POSTGRES_15: "POSTGRES_15";
3059
+ POSTGRES_16: "POSTGRES_16";
3060
+ POSTGRES_17: "POSTGRES_17";
3061
+ }>>;
3062
+ dbName: z.ZodOptional<z.ZodString>;
3063
+ storageSizeGb: z.ZodOptional<z.ZodInt>;
3064
+ diskType: z.ZodOptional<z.ZodEnum<{
3065
+ PD_SSD: "PD_SSD";
3066
+ PD_HDD: "PD_HDD";
3067
+ }>>;
3068
+ edition: z.ZodOptional<z.ZodEnum<{
3069
+ ENTERPRISE: "ENTERPRISE";
3070
+ ENTERPRISE_PLUS: "ENTERPRISE_PLUS";
3071
+ }>>;
3072
+ availabilityType: z.ZodOptional<z.ZodEnum<{
3073
+ ZONAL: "ZONAL";
3074
+ REGIONAL: "REGIONAL";
3075
+ }>>;
3076
+ backupEnabled: z.ZodOptional<z.ZodBoolean>;
3077
+ pointInTimeRecoveryEnabled: z.ZodOptional<z.ZodBoolean>;
3078
+ allowedIps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3079
+ connectionUri: z.ZodOptional<z.ZodString>;
3080
+ socketConnectionUri: z.ZodOptional<z.ZodString>;
3081
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3082
+ typ: z.ZodLiteral<"queue">;
3083
+ }, z.core.$strip>, z.ZodObject<{
3084
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3085
+ topicId: z.ZodOptional<z.ZodString>;
3086
+ saEmail: z.ZodOptional<z.ZodString>;
3087
+ subscriptions: z.ZodArray<z.ZodObject<{
3088
+ name: z.ZodString;
3089
+ pushEndpoint: z.ZodOptional<z.ZodString>;
3090
+ ackDeadlineSeconds: z.ZodInt;
3091
+ messageRetentionDuration: z.ZodOptional<z.ZodString>;
3092
+ retainAckedMessages: z.ZodBoolean;
3093
+ enableMessageOrdering: z.ZodBoolean;
3094
+ enableExactlyOnceDelivery: z.ZodBoolean;
3095
+ messageFilter: z.ZodOptional<z.ZodString>;
3096
+ subscriptionId: z.ZodOptional<z.ZodString>;
2932
3097
  }, z.core.$strip>>;
2933
- }, z.core.$strip>>]>>;
2934
- }, z.core.$strip>>>;
2935
- typ: z.ZodEnum<{
2936
- function: "function";
2937
- cache: "cache";
2938
- comment: "comment";
2939
- container: "container";
2940
- cronjob: "cronjob";
2941
- database: "database";
2942
- neondb: "neondb";
2943
- mongodb: "mongodb";
2944
- cloudsql: "cloudsql";
2945
- queue: "queue";
2946
- proxy: "proxy";
2947
- vm: "vm";
2948
- scheduler: "scheduler";
2949
- }>;
3098
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3099
+ typ: z.ZodLiteral<"proxy">;
3100
+ }, z.core.$strip>, z.ZodObject<{
3101
+ subdomain: z.ZodOptional<z.ZodString>;
3102
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3103
+ typ: z.ZodLiteral<"vm">;
3104
+ }, z.core.$strip>, z.ZodObject<{
3105
+ region: z.ZodString;
3106
+ machineType: z.ZodEnum<{
3107
+ "e2-micro": "e2-micro";
3108
+ "e2-small": "e2-small";
3109
+ "e2-medium": "e2-medium";
3110
+ "e2-standard-2": "e2-standard-2";
3111
+ "e2-standard-4": "e2-standard-4";
3112
+ "e2-standard-8": "e2-standard-8";
3113
+ }>;
3114
+ image: z.ZodEnum<{
3115
+ "debian-cloud/debian-12": "debian-cloud/debian-12";
3116
+ "debian-cloud/debian-11": "debian-cloud/debian-11";
3117
+ "ubuntu-os-cloud/ubuntu-2404-lts": "ubuntu-os-cloud/ubuntu-2404-lts";
3118
+ "ubuntu-os-cloud/ubuntu-2204-lts": "ubuntu-os-cloud/ubuntu-2204-lts";
3119
+ "cos-cloud/cos-stable": "cos-cloud/cos-stable";
3120
+ "cos-cloud/cos-beta": "cos-cloud/cos-beta";
3121
+ "cos-cloud/cos-arm64-stable": "cos-cloud/cos-arm64-stable";
3122
+ "cos-cloud/cos-arm64-beta": "cos-cloud/cos-arm64-beta";
3123
+ }>;
3124
+ desiredStatus: z.ZodEnum<{
3125
+ TERMINATED: "TERMINATED";
3126
+ SUSPENDED: "SUSPENDED";
3127
+ RUNNING: "RUNNING";
3128
+ }>;
3129
+ bootDisk: z.ZodObject<{
3130
+ bootDiskType: z.ZodEnum<{
3131
+ "pd-standard": "pd-standard";
3132
+ "pd-balanced": "pd-balanced";
3133
+ "pd-ssd": "pd-ssd";
3134
+ "pd-extreme": "pd-extreme";
3135
+ "hyperdisk-balanced": "hyperdisk-balanced";
3136
+ "hyperdisk-extreme": "hyperdisk-extreme";
3137
+ "hyperdisk-throughput": "hyperdisk-throughput";
3138
+ }>;
3139
+ bootDiskSizeGb: z.ZodCoercedBigInt<unknown>;
3140
+ hasScratchDisk: z.ZodBoolean;
3141
+ }, z.core.$strip>;
3142
+ startUpScript: z.ZodOptional<z.ZodString>;
3143
+ dockerComposeFile: z.ZodOptional<z.ZodString>;
3144
+ sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3145
+ subdomain: z.ZodString;
3146
+ protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
3147
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3148
+ typ: z.ZodLiteral<"scheduler">;
3149
+ }, z.core.$strip>, z.ZodObject<{
3150
+ expression: z.ZodString;
3151
+ timezone: z.ZodOptional<z.ZodString>;
3152
+ requestMethod: z.ZodOptional<z.ZodEnum<{
3153
+ DELETE: "DELETE";
3154
+ GET: "GET";
3155
+ HEAD: "HEAD";
3156
+ OPTIONS: "OPTIONS";
3157
+ PATCH: "PATCH";
3158
+ POST: "POST";
3159
+ PUT: "PUT";
3160
+ }>>;
3161
+ requestPayload: z.ZodOptional<z.ZodString>;
3162
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3163
+ paused: z.ZodBoolean;
3164
+ }, z.core.$strip>>]>>;
3165
+ }, z.core.$strip>>;
3166
+ }, z.core.$strip>;
3167
+ path: z.ZodObject<{
3168
+ orgID: z.ZodString;
3169
+ versionUUID: z.ZodUUID;
3170
+ }, z.core.$strip>;
3171
+ query: z.ZodOptional<z.ZodNever>;
3172
+ headers: z.ZodObject<{
3173
+ 'If-Match': z.ZodString;
3174
+ }, z.core.$strip>;
3175
+ }, z.core.$strip>;
3176
+ export declare const zFetchGraphM2mData: z.ZodObject<{
3177
+ body: z.ZodOptional<z.ZodNever>;
3178
+ path: z.ZodObject<{
3179
+ versionUUID: z.ZodUUID;
3180
+ }, z.core.$strip>;
3181
+ query: z.ZodOptional<z.ZodNever>;
3182
+ }, z.core.$strip>;
3183
+ /**
3184
+ * Graph fetched successfully.
3185
+ */
3186
+ export declare const zFetchGraphM2mResponse: z.ZodObject<{
3187
+ versionUUID: z.ZodUUID;
3188
+ version: z.ZodInt;
3189
+ nodes: z.ZodArray<z.ZodObject<{
3190
+ id: z.ZodUUID;
3191
+ name: z.ZodOptional<z.ZodString>;
3192
+ description: z.ZodOptional<z.ZodString>;
3193
+ x: z.ZodNumber;
3194
+ y: z.ZodNumber;
3195
+ width: z.ZodInt;
3196
+ height: z.ZodInt;
3197
+ release: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3198
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3199
+ id: z.ZodUUID;
3200
+ src: z.ZodUUID;
3201
+ dst: z.ZodUUID;
3202
+ typ: z.ZodEnum<{
3203
+ network: "network";
3204
+ route: "route";
3205
+ output: "output";
3206
+ }>;
3207
+ props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
3208
+ typ: z.ZodLiteral<"network">;
3209
+ }, z.core.$strip>, z.ZodObject<{
3210
+ a: z.ZodOptional<z.ZodString>;
3211
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3212
+ typ: z.ZodLiteral<"route">;
3213
+ }, z.core.$strip>, z.ZodObject<{
3214
+ path: z.ZodString;
3215
+ rewrite: z.ZodOptional<z.ZodString>;
3216
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3217
+ typ: z.ZodLiteral<"output">;
3218
+ }, z.core.$strip>, z.ZodObject<{
3219
+ mappings: z.ZodArray<z.ZodObject<{
3220
+ output_key: z.ZodString;
3221
+ local_env_var_key: z.ZodString;
3222
+ }, z.core.$strip>>;
3223
+ }, z.core.$strip>>]>>;
3224
+ }, z.core.$strip>>>;
3225
+ typ: z.ZodEnum<{
3226
+ function: "function";
3227
+ cache: "cache";
3228
+ comment: "comment";
3229
+ container: "container";
3230
+ cronjob: "cronjob";
3231
+ database: "database";
3232
+ neondb: "neondb";
3233
+ mongodb: "mongodb";
3234
+ cloudsql: "cloudsql";
3235
+ queue: "queue";
3236
+ proxy: "proxy";
3237
+ vm: "vm";
3238
+ scheduler: "scheduler";
3239
+ }>;
2950
3240
  props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
2951
3241
  typ: z.ZodLiteral<"comment">;
2952
3242
  }, z.core.$strip>, z.ZodObject<{
@@ -3175,295 +3465,6 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
3175
3465
  }, z.core.$strip>>]>>;
3176
3466
  }, z.core.$strip>>;
3177
3467
  }, z.core.$strip>;
3178
- export declare const zUpdateGraphM2mData: z.ZodObject<{
3179
- body: z.ZodObject<{
3180
- nodes: z.ZodArray<z.ZodObject<{
3181
- id: z.ZodUUID;
3182
- name: z.ZodOptional<z.ZodString>;
3183
- description: z.ZodOptional<z.ZodString>;
3184
- x: z.ZodNumber;
3185
- y: z.ZodNumber;
3186
- width: z.ZodInt;
3187
- height: z.ZodInt;
3188
- release: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3189
- edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
3190
- id: z.ZodUUID;
3191
- src: z.ZodUUID;
3192
- dst: z.ZodUUID;
3193
- typ: z.ZodEnum<{
3194
- network: "network";
3195
- route: "route";
3196
- output: "output";
3197
- }>;
3198
- props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
3199
- typ: z.ZodLiteral<"network">;
3200
- }, z.core.$strip>, z.ZodObject<{
3201
- a: z.ZodOptional<z.ZodString>;
3202
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3203
- typ: z.ZodLiteral<"route">;
3204
- }, z.core.$strip>, z.ZodObject<{
3205
- path: z.ZodString;
3206
- rewrite: z.ZodOptional<z.ZodString>;
3207
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3208
- typ: z.ZodLiteral<"output">;
3209
- }, z.core.$strip>, z.ZodObject<{
3210
- mappings: z.ZodArray<z.ZodObject<{
3211
- output_key: z.ZodString;
3212
- local_env_var_key: z.ZodString;
3213
- }, z.core.$strip>>;
3214
- }, z.core.$strip>>]>>;
3215
- }, z.core.$strip>>>;
3216
- typ: z.ZodEnum<{
3217
- function: "function";
3218
- cache: "cache";
3219
- comment: "comment";
3220
- container: "container";
3221
- cronjob: "cronjob";
3222
- database: "database";
3223
- neondb: "neondb";
3224
- mongodb: "mongodb";
3225
- cloudsql: "cloudsql";
3226
- queue: "queue";
3227
- proxy: "proxy";
3228
- vm: "vm";
3229
- scheduler: "scheduler";
3230
- }>;
3231
- props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
3232
- typ: z.ZodLiteral<"comment">;
3233
- }, z.core.$strip>, z.ZodObject<{
3234
- comment: z.ZodOptional<z.ZodString>;
3235
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3236
- typ: z.ZodLiteral<"cache">;
3237
- }, z.core.$strip>, z.ZodObject<{
3238
- size: z.ZodOptional<z.ZodInt>;
3239
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3240
- typ: z.ZodLiteral<"container">;
3241
- }, z.core.$strip>, z.ZodObject<{
3242
- region: z.ZodEnum<{
3243
- "europe-west2": "europe-west2";
3244
- }>;
3245
- port: z.ZodInt;
3246
- cpu: z.ZodEnum<{
3247
- 1: "1";
3248
- 2: "2";
3249
- }>;
3250
- memory: z.ZodEnum<{
3251
- "512Mi": "512Mi";
3252
- "1Gi": "1Gi";
3253
- "2Gi": "2Gi";
3254
- }>;
3255
- serviceName: z.ZodOptional<z.ZodString>;
3256
- ingress: z.ZodEnum<{
3257
- INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
3258
- INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
3259
- INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
3260
- }>;
3261
- timeoutSeconds: z.ZodOptional<z.ZodInt>;
3262
- maxInstances: z.ZodOptional<z.ZodInt>;
3263
- minInstances: z.ZodOptional<z.ZodInt>;
3264
- concurrency: z.ZodOptional<z.ZodInt>;
3265
- allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
3266
- uri: z.ZodOptional<z.ZodString>;
3267
- installationId: z.ZodOptional<z.ZodString>;
3268
- language: z.ZodOptional<z.ZodString>;
3269
- framework: z.ZodOptional<z.ZodString>;
3270
- runtimeVersion: z.ZodOptional<z.ZodString>;
3271
- env: z.ZodOptional<z.ZodArray<z.ZodString>>;
3272
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3273
- typ: z.ZodLiteral<"cronjob">;
3274
- }, z.core.$strip>, z.ZodObject<{
3275
- cronTab: z.ZodOptional<z.ZodString>;
3276
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3277
- typ: z.ZodLiteral<"database">;
3278
- }, z.core.$strip>, z.ZodObject<{
3279
- space: z.ZodOptional<z.ZodInt>;
3280
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3281
- typ: z.ZodLiteral<"function">;
3282
- }, z.core.$strip>, z.ZodObject<{
3283
- region: z.ZodEnum<{
3284
- "europe-west2": "europe-west2";
3285
- }>;
3286
- language: z.ZodString;
3287
- runtimeVersion: z.ZodString;
3288
- serviceName: z.ZodOptional<z.ZodString>;
3289
- cpu: z.ZodEnum<{
3290
- 1: "1";
3291
- 2: "2";
3292
- }>;
3293
- memory: z.ZodEnum<{
3294
- "512Mi": "512Mi";
3295
- "1Gi": "1Gi";
3296
- "2Gi": "2Gi";
3297
- }>;
3298
- concurrency: z.ZodOptional<z.ZodInt>;
3299
- timeoutSeconds: z.ZodOptional<z.ZodInt>;
3300
- minInstances: z.ZodOptional<z.ZodInt>;
3301
- maxInstances: z.ZodOptional<z.ZodInt>;
3302
- entryPoint: z.ZodString;
3303
- uri: z.ZodOptional<z.ZodString>;
3304
- installationId: z.ZodOptional<z.ZodString>;
3305
- env: z.ZodOptional<z.ZodArray<z.ZodString>>;
3306
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3307
- typ: z.ZodLiteral<"neondb">;
3308
- }, z.core.$strip>, z.ZodObject<{
3309
- orgId: z.ZodOptional<z.ZodString>;
3310
- orgName: z.ZodOptional<z.ZodString>;
3311
- projectId: z.ZodOptional<z.ZodString>;
3312
- projectName: z.ZodOptional<z.ZodString>;
3313
- branchId: z.ZodOptional<z.ZodString>;
3314
- branchName: z.ZodOptional<z.ZodString>;
3315
- dbName: z.ZodOptional<z.ZodString>;
3316
- roleName: z.ZodOptional<z.ZodString>;
3317
- regionId: z.ZodOptional<z.ZodString>;
3318
- pgVersion: z.ZodOptional<z.ZodInt>;
3319
- autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
3320
- autoscalingLimitMaxCu: z.ZodOptional<z.ZodNumber>;
3321
- suspendTimeoutSeconds: z.ZodOptional<z.ZodInt>;
3322
- connectionUri: z.ZodOptional<z.ZodString>;
3323
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3324
- typ: z.ZodLiteral<"mongodb">;
3325
- }, z.core.$strip>, z.ZodObject<{
3326
- orgId: z.ZodOptional<z.ZodString>;
3327
- orgName: z.ZodOptional<z.ZodString>;
3328
- projectId: z.ZodOptional<z.ZodString>;
3329
- projectName: z.ZodOptional<z.ZodString>;
3330
- clusterId: z.ZodOptional<z.ZodString>;
3331
- clusterName: z.ZodOptional<z.ZodString>;
3332
- cloudProvider: z.ZodOptional<z.ZodString>;
3333
- regionName: z.ZodOptional<z.ZodString>;
3334
- instanceSize: z.ZodOptional<z.ZodString>;
3335
- mongoVersion: z.ZodOptional<z.ZodString>;
3336
- diskSizeGb: z.ZodOptional<z.ZodNumber>;
3337
- clusterType: z.ZodOptional<z.ZodString>;
3338
- backupEnabled: z.ZodOptional<z.ZodBoolean>;
3339
- connectionString: z.ZodOptional<z.ZodString>;
3340
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3341
- typ: z.ZodLiteral<"cloudsql">;
3342
- }, z.core.$strip>, z.ZodObject<{
3343
- instanceName: z.ZodOptional<z.ZodString>;
3344
- region: z.ZodOptional<z.ZodEnum<{
3345
- "europe-west2": "europe-west2";
3346
- }>>;
3347
- cpuCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>, z.ZodLiteral<16>]>>;
3348
- memoryMb: z.ZodOptional<z.ZodInt>;
3349
- dbVersion: z.ZodOptional<z.ZodEnum<{
3350
- POSTGRES_15: "POSTGRES_15";
3351
- POSTGRES_16: "POSTGRES_16";
3352
- POSTGRES_17: "POSTGRES_17";
3353
- }>>;
3354
- dbName: z.ZodOptional<z.ZodString>;
3355
- storageSizeGb: z.ZodOptional<z.ZodInt>;
3356
- diskType: z.ZodOptional<z.ZodEnum<{
3357
- PD_SSD: "PD_SSD";
3358
- PD_HDD: "PD_HDD";
3359
- }>>;
3360
- edition: z.ZodOptional<z.ZodEnum<{
3361
- ENTERPRISE: "ENTERPRISE";
3362
- ENTERPRISE_PLUS: "ENTERPRISE_PLUS";
3363
- }>>;
3364
- availabilityType: z.ZodOptional<z.ZodEnum<{
3365
- ZONAL: "ZONAL";
3366
- REGIONAL: "REGIONAL";
3367
- }>>;
3368
- backupEnabled: z.ZodOptional<z.ZodBoolean>;
3369
- pointInTimeRecoveryEnabled: z.ZodOptional<z.ZodBoolean>;
3370
- allowedIps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3371
- connectionUri: z.ZodOptional<z.ZodString>;
3372
- socketConnectionUri: z.ZodOptional<z.ZodString>;
3373
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3374
- typ: z.ZodLiteral<"queue">;
3375
- }, z.core.$strip>, z.ZodObject<{
3376
- messageRetentionDuration: z.ZodOptional<z.ZodString>;
3377
- topicId: z.ZodOptional<z.ZodString>;
3378
- saEmail: z.ZodOptional<z.ZodString>;
3379
- subscriptions: z.ZodArray<z.ZodObject<{
3380
- name: z.ZodString;
3381
- pushEndpoint: z.ZodOptional<z.ZodString>;
3382
- ackDeadlineSeconds: z.ZodInt;
3383
- messageRetentionDuration: z.ZodOptional<z.ZodString>;
3384
- retainAckedMessages: z.ZodBoolean;
3385
- enableMessageOrdering: z.ZodBoolean;
3386
- enableExactlyOnceDelivery: z.ZodBoolean;
3387
- messageFilter: z.ZodOptional<z.ZodString>;
3388
- subscriptionId: z.ZodOptional<z.ZodString>;
3389
- }, z.core.$strip>>;
3390
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3391
- typ: z.ZodLiteral<"proxy">;
3392
- }, z.core.$strip>, z.ZodObject<{
3393
- subdomain: z.ZodOptional<z.ZodString>;
3394
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3395
- typ: z.ZodLiteral<"vm">;
3396
- }, z.core.$strip>, z.ZodObject<{
3397
- region: z.ZodString;
3398
- machineType: z.ZodEnum<{
3399
- "e2-micro": "e2-micro";
3400
- "e2-small": "e2-small";
3401
- "e2-medium": "e2-medium";
3402
- "e2-standard-2": "e2-standard-2";
3403
- "e2-standard-4": "e2-standard-4";
3404
- "e2-standard-8": "e2-standard-8";
3405
- }>;
3406
- image: z.ZodEnum<{
3407
- "debian-cloud/debian-12": "debian-cloud/debian-12";
3408
- "debian-cloud/debian-11": "debian-cloud/debian-11";
3409
- "ubuntu-os-cloud/ubuntu-2404-lts": "ubuntu-os-cloud/ubuntu-2404-lts";
3410
- "ubuntu-os-cloud/ubuntu-2204-lts": "ubuntu-os-cloud/ubuntu-2204-lts";
3411
- "cos-cloud/cos-stable": "cos-cloud/cos-stable";
3412
- "cos-cloud/cos-beta": "cos-cloud/cos-beta";
3413
- "cos-cloud/cos-arm64-stable": "cos-cloud/cos-arm64-stable";
3414
- "cos-cloud/cos-arm64-beta": "cos-cloud/cos-arm64-beta";
3415
- }>;
3416
- desiredStatus: z.ZodEnum<{
3417
- TERMINATED: "TERMINATED";
3418
- SUSPENDED: "SUSPENDED";
3419
- RUNNING: "RUNNING";
3420
- }>;
3421
- bootDisk: z.ZodObject<{
3422
- bootDiskType: z.ZodEnum<{
3423
- "pd-standard": "pd-standard";
3424
- "pd-balanced": "pd-balanced";
3425
- "pd-ssd": "pd-ssd";
3426
- "pd-extreme": "pd-extreme";
3427
- "hyperdisk-balanced": "hyperdisk-balanced";
3428
- "hyperdisk-extreme": "hyperdisk-extreme";
3429
- "hyperdisk-throughput": "hyperdisk-throughput";
3430
- }>;
3431
- bootDiskSizeGb: z.ZodCoercedBigInt<unknown>;
3432
- hasScratchDisk: z.ZodBoolean;
3433
- }, z.core.$strip>;
3434
- startUpScript: z.ZodOptional<z.ZodString>;
3435
- dockerComposeFile: z.ZodOptional<z.ZodString>;
3436
- sshKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3437
- subdomain: z.ZodString;
3438
- protocolPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodCoercedBigInt<unknown>>>>;
3439
- }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
3440
- typ: z.ZodLiteral<"scheduler">;
3441
- }, z.core.$strip>, z.ZodObject<{
3442
- expression: z.ZodString;
3443
- timezone: z.ZodOptional<z.ZodString>;
3444
- requestMethod: z.ZodOptional<z.ZodEnum<{
3445
- DELETE: "DELETE";
3446
- GET: "GET";
3447
- HEAD: "HEAD";
3448
- OPTIONS: "OPTIONS";
3449
- PATCH: "PATCH";
3450
- POST: "POST";
3451
- PUT: "PUT";
3452
- }>>;
3453
- requestPayload: z.ZodOptional<z.ZodString>;
3454
- requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3455
- paused: z.ZodBoolean;
3456
- }, z.core.$strip>>]>>;
3457
- }, z.core.$strip>>;
3458
- }, z.core.$strip>;
3459
- path: z.ZodObject<{
3460
- versionUUID: z.ZodUUID;
3461
- }, z.core.$strip>;
3462
- query: z.ZodOptional<z.ZodNever>;
3463
- headers: z.ZodObject<{
3464
- 'If-Match': z.ZodString;
3465
- }, z.core.$strip>;
3466
- }, z.core.$strip>;
3467
3468
  export declare const zFetchNodeM2mData: z.ZodObject<{
3468
3469
  body: z.ZodOptional<z.ZodNever>;
3469
3470
  path: z.ZodObject<{
@@ -1307,6 +1307,17 @@ export const zUpdateDeploymentStatusM2mData = z.object({
1307
1307
  }),
1308
1308
  query: z.optional(z.never())
1309
1309
  });
1310
+ export const zUpdateGraphM2mData = z.object({
1311
+ body: zNodes,
1312
+ path: z.object({
1313
+ orgID: z.string(),
1314
+ versionUUID: z.uuid()
1315
+ }),
1316
+ query: z.optional(z.never()),
1317
+ headers: z.object({
1318
+ 'If-Match': z.string()
1319
+ })
1320
+ });
1310
1321
  export const zFetchGraphM2mData = z.object({
1311
1322
  body: z.optional(z.never()),
1312
1323
  path: z.object({
@@ -1318,16 +1329,6 @@ export const zFetchGraphM2mData = z.object({
1318
1329
  * Graph fetched successfully.
1319
1330
  */
1320
1331
  export const zFetchGraphM2mResponse = zGraph;
1321
- export const zUpdateGraphM2mData = z.object({
1322
- body: zNodes,
1323
- path: z.object({
1324
- versionUUID: z.uuid()
1325
- }),
1326
- query: z.optional(z.never()),
1327
- headers: z.object({
1328
- 'If-Match': z.string()
1329
- })
1330
- });
1331
1332
  export const zFetchNodeM2mData = z.object({
1332
1333
  body: z.optional(z.never()),
1333
1334
  path: z.object({
@@ -1,6 +1,6 @@
1
1
  import { useMutation } from "@tanstack/react-query";
2
2
  import { GetSuccessResponse } from "../util";
3
- import { GetServiceHealthData, GetSoftDeletedEnvironmentsM2mData, NukeEnvironmentM2mData, NukeEnvironmentM2mResponses, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, LookupApiKeyData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, GetApiKeysData, CreateApiKeyData, CreateApiKeyResponses, RevokeApiKeyData, RevokeApiKeyResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, KickSpaceMemberData, KickSpaceMemberResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, GetProjectEnvironmentsData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, DeleteEnvironmentData, DeleteEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, CloneEnvironmentData, CloneEnvironmentResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, CreateNodeCredentialData, CreateNodeCredentialResponses, CreateBugReportData, CreateBugReportResponses, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
3
+ import { GetServiceHealthData, GetSoftDeletedEnvironmentsM2mData, NukeEnvironmentM2mData, NukeEnvironmentM2mResponses, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchGraphM2mData, FetchNodeM2mData, UpdateNodeM2mData, UpdateNodeM2mResponses, ViewBlueprintsM2mData, CreateSecretM2mData, CreateSecretM2mResponses, GetBlueprintM2mData, CreateNeonProjectM2mData, CreateNeonProjectM2mResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, FetchNeonOrganizationsData, FetchNeonRegionsData, FetchMongoOrganizationsData, FetchMongoRegionsData, ListMongoProjectsData, ListMongoClustersData, FetchMongoOrganizationTierData, FetchNeonConnectionUriData, ListNeonProjectsData, CreateNeonProjectData, CreateNeonProjectResponses, ListNeonBranchesData, CreateNeonBranchData, CreateNeonBranchResponses, ListNeonDatabasesData, CreateNeonDatabaseData, CreateNeonDatabaseResponses, ListNeonRolesData, DeleteNeonDatabaseData, DeleteNeonDatabaseResponses, ListUserSpacesData, GetFeatureFlagsData, LookupApiKeyData, CreateFeatureRequestData, CreateFeatureRequestResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, PreviewBlueprintData, ViewBlueprintsData, GetBlueprintData, CreateSpaceData, CreateSpaceResponses, GetPublicInviteData, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, GetSpaceStatsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, GetApiKeysData, CreateApiKeyData, CreateApiKeyResponses, RevokeApiKeyData, RevokeApiKeyResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, KickSpaceMemberData, KickSpaceMemberResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, GetProjectEnvironmentsData, CreateEnvironmentData, CreateEnvironmentResponses, CreateSecretData, CreateSecretResponses, GetSecretValueData, DeleteEnvironmentData, DeleteEnvironmentResponses, GetEnvironmentOverviewData, GetEnvironmentVersionsData, DeleteEnvironmentVariableData, DeleteEnvironmentVariableResponses, GetEnvironmentVariablesData, UpdateEnvironmentVariableData, UpdateEnvironmentVariableResponses, CreateEnvironmentVariableData, CreateEnvironmentVariableResponses, DeleteBlueprintData, DeleteBlueprintResponses, UpdateBlueprintData, UpdateBlueprintResponses, CreateBlueprintData, CreateBlueprintResponses, GetVersionData, ImportBlueprintData, ImportBlueprintResponses, CloneEnvironmentData, CloneEnvironmentResponses, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedDownloadUrlData, GetNodeEnvironmentVariablesData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, CheckSubdomainUniquenessData, PingNodeData, CreateNodeCredentialData, CreateNodeCredentialResponses, CreateBugReportData, CreateBugReportResponses, GetSpacePropertiesData, SetSpacePropertyData, SetSpacePropertyResponses } from "../../sdk/types.gen";
4
4
  export declare const useGetServiceHealth: (options?: Omit<GetServiceHealthData, "url"> & {
5
5
  enabled?: boolean;
6
6
  }) => {
@@ -423,6 +423,14 @@ export declare const useNukeEnvironmentM2M: (config?: {
423
423
  data: void | undefined;
424
424
  headers: Record<string, string>;
425
425
  }, unknown, Omit<NukeEnvironmentM2mData, "url">, unknown>;
426
+ export declare const useUpdateGraphM2M: (config?: {
427
+ onSuccess?: (data: GetSuccessResponse<UpdateGraphM2mResponses>, headers: Record<string, string>) => void;
428
+ onError?: Parameters<typeof useMutation>["0"]["onError"];
429
+ retry?: boolean;
430
+ }) => import("@tanstack/react-query").UseMutationResult<{
431
+ data: unknown;
432
+ headers: Record<string, string>;
433
+ }, unknown, Omit<UpdateGraphM2mData, "url">, unknown>;
426
434
  export declare const useFetchGraphM2M: (options: Omit<FetchGraphM2mData, "url"> & {
427
435
  enabled?: boolean;
428
436
  }) => {
@@ -630,14 +638,6 @@ export declare const useFetchGraphM2M: (options: Omit<FetchGraphM2mData, "url">
630
638
  headers: Record<string, string>;
631
639
  } | undefined>;
632
640
  };
633
- export declare const useUpdateGraphM2M: (config?: {
634
- onSuccess?: (data: GetSuccessResponse<UpdateGraphM2mResponses>, headers: Record<string, string>) => void;
635
- onError?: Parameters<typeof useMutation>["0"]["onError"];
636
- retry?: boolean;
637
- }) => import("@tanstack/react-query").UseMutationResult<{
638
- data: unknown;
639
- headers: Record<string, string>;
640
- }, unknown, Omit<UpdateGraphM2mData, "url">, unknown>;
641
641
  export declare const useFetchNodeM2M: (options: Omit<FetchNodeM2mData, "url"> & {
642
642
  enabled?: boolean;
643
643
  }) => {
@@ -2,7 +2,7 @@
2
2
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { isPromise, headersToObject } from "../util";
4
4
  import { useToken } from "../../provider/token-provider";
5
- import { getServiceHealth, getSoftDeletedEnvironmentsM2M, nukeEnvironmentM2M, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, lookupApiKey, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, getApiKeys, createApiKey, revokeApiKey, listSpaceMembers, listSpaceMemberRoles, leaveSpace, kickSpaceMember, createProject, getProjectOverview, getProjectEnvironments, createEnvironment, createSecret, getSecretValue, deleteEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, cloneEnvironment, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, createNodeCredential, createBugReport, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
5
+ import { getServiceHealth, getSoftDeletedEnvironmentsM2M, nukeEnvironmentM2M, updateGraphM2M, fetchGraphM2M, fetchNodeM2M, updateNodeM2M, viewBlueprintsM2M, createSecretM2M, getBlueprintM2M, createNeonProjectM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, fetchNeonOrganizations, fetchNeonRegions, fetchMongoOrganizations, fetchMongoRegions, listMongoProjects, listMongoClusters, fetchMongoOrganizationTier, fetchNeonConnectionUri, listNeonProjects, createNeonProject, listNeonBranches, createNeonBranch, listNeonDatabases, createNeonDatabase, listNeonRoles, deleteNeonDatabase, listUserSpaces, getFeatureFlags, lookupApiKey, createFeatureRequest, recordOnboardingAnalytics, previewBlueprint, viewBlueprints, getBlueprint, createSpace, getPublicInvite, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, getSpaceStats, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, getApiKeys, createApiKey, revokeApiKey, listSpaceMembers, listSpaceMemberRoles, leaveSpace, kickSpaceMember, createProject, getProjectOverview, getProjectEnvironments, createEnvironment, createSecret, getSecretValue, deleteEnvironment, getEnvironmentOverview, getEnvironmentVersions, deleteEnvironmentVariable, getEnvironmentVariables, updateEnvironmentVariable, createEnvironmentVariable, deleteBlueprint, updateBlueprint, createBlueprint, getVersion, importBlueprint, cloneEnvironment, getGraphOverview, updateGraphState, deployVersion, requestSignedDownloadUrl, getNodeEnvironmentVariables, requestSignedUploadUrl, checkSubdomainUniqueness, pingNode, createNodeCredential, createBugReport, getSpaceProperties, setSpaceProperty } from "../../sdk/sdk.gen";
6
6
  export const useGetServiceHealth = (options) => {
7
7
  const token = useToken();
8
8
  let { enabled, ...rest } = options || { enabled: true };
@@ -66,6 +66,25 @@ export const useNukeEnvironmentM2M = (config) => {
66
66
  retry: config?.retry
67
67
  });
68
68
  };
69
+ export const useUpdateGraphM2M = (config) => {
70
+ const token = useToken();
71
+ const queryClient = useQueryClient();
72
+ const opts = { throwOnError: true, url: "/m2m/graph/{versionUUID}/{orgID}" };
73
+ const funcer = async (options) => {
74
+ const auth = isPromise(token) ? (await token) || "" : token || "";
75
+ const res = await updateGraphM2M({ ...opts, ...options, auth });
76
+ return { data: res.data, headers: headersToObject(res.response.headers) };
77
+ };
78
+ return useMutation({
79
+ mutationFn: funcer,
80
+ onSuccess: (res, options, c, ctx) => {
81
+ queryClient.invalidateQueries({ queryKey: ["m2m", "graph", options?.path?.versionUUID, options?.path?.orgID] });
82
+ config?.onSuccess && config.onSuccess(res.data, res.headers);
83
+ },
84
+ onError: config?.onError,
85
+ retry: config?.retry
86
+ });
87
+ };
69
88
  export const useFetchGraphM2M = (options) => {
70
89
  const token = useToken();
71
90
  let { enabled, ...rest } = options || { enabled: true };
@@ -88,25 +107,6 @@ export const useFetchGraphM2M = (options) => {
88
107
  });
89
108
  return { ...query, data: query.data?.data, headers: query.data?.headers };
90
109
  };
91
- export const useUpdateGraphM2M = (config) => {
92
- const token = useToken();
93
- const queryClient = useQueryClient();
94
- const opts = { throwOnError: true, url: "/m2m/graph/{versionUUID}" };
95
- const funcer = async (options) => {
96
- const auth = isPromise(token) ? (await token) || "" : token || "";
97
- const res = await updateGraphM2M({ ...opts, ...options, auth });
98
- return { data: res.data, headers: headersToObject(res.response.headers) };
99
- };
100
- return useMutation({
101
- mutationFn: funcer,
102
- onSuccess: (res, options, c, ctx) => {
103
- queryClient.invalidateQueries({ queryKey: ["m2m", "graph", options?.path?.versionUUID] });
104
- config?.onSuccess && config.onSuccess(res.data, res.headers);
105
- },
106
- onError: config?.onError,
107
- retry: config?.retry
108
- });
109
- };
110
110
  export const useFetchNodeM2M = (options) => {
111
111
  const token = useToken();
112
112
  let { enabled, ...rest } = options || { enabled: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",