shoal-web-sdk 0.0.136 → 0.0.138

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.
@@ -93,14 +93,11 @@ export type SpaceOverview = {
93
93
  export type SpaceOrgCodeResponse = {
94
94
  orgCode: string;
95
95
  };
96
- export type EnvironmentStatus = 'idle' | 'deploying';
97
96
  export type EnvironmentOverview = {
98
97
  id: string;
99
98
  name: string;
100
99
  handle: string;
101
100
  description: string;
102
- deployingVersionID?: string;
103
- status: EnvironmentStatus;
104
101
  createdAt: string;
105
102
  updatedAt: string;
106
103
  versions: number;
@@ -277,16 +274,17 @@ export type Uuids = {
277
274
  ids: Array<string>;
278
275
  };
279
276
  export type EnvironmentVersion = {
280
- id?: string;
277
+ id: string;
281
278
  created_at?: string;
282
- last_updated_at?: string;
279
+ last_updated_at: string;
283
280
  deployment_id?: string;
284
281
  deployment_name?: string;
285
- status?: string;
282
+ status: string;
286
283
  deployment_started_at?: string;
287
284
  deployment_completed_at?: string;
288
285
  message?: string;
289
286
  retries?: number;
287
+ version: number;
290
288
  };
291
289
  export type Graph = {
292
290
  versionUUID: string;
@@ -133,20 +133,11 @@ export declare const zOnboardingAnalytics: z.ZodObject<{
133
133
  export declare const zSpaceOrgCodeResponse: z.ZodObject<{
134
134
  orgCode: z.ZodString;
135
135
  }, z.core.$strip>;
136
- export declare const zEnvironmentStatus: z.ZodEnum<{
137
- deploying: "deploying";
138
- idle: "idle";
139
- }>;
140
136
  export declare const zEnvironmentOverview: z.ZodObject<{
141
137
  id: z.ZodUUID;
142
138
  name: z.ZodString;
143
139
  handle: z.ZodString;
144
140
  description: z.ZodString;
145
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
146
- status: z.ZodEnum<{
147
- deploying: "deploying";
148
- idle: "idle";
149
- }>;
150
141
  createdAt: z.ZodISODateTime;
151
142
  updatedAt: z.ZodISODateTime;
152
143
  versions: z.ZodInt;
@@ -164,11 +155,6 @@ export declare const zProjectOverview: z.ZodObject<{
164
155
  name: z.ZodString;
165
156
  handle: z.ZodString;
166
157
  description: z.ZodString;
167
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
168
- status: z.ZodEnum<{
169
- deploying: "deploying";
170
- idle: "idle";
171
- }>;
172
158
  createdAt: z.ZodISODateTime;
173
159
  updatedAt: z.ZodISODateTime;
174
160
  versions: z.ZodInt;
@@ -191,11 +177,6 @@ export declare const zSpaceOverview: z.ZodObject<{
191
177
  name: z.ZodString;
192
178
  handle: z.ZodString;
193
179
  description: z.ZodString;
194
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
195
- status: z.ZodEnum<{
196
- deploying: "deploying";
197
- idle: "idle";
198
- }>;
199
180
  createdAt: z.ZodISODateTime;
200
181
  updatedAt: z.ZodISODateTime;
201
182
  versions: z.ZodInt;
@@ -410,11 +391,6 @@ export declare const zUserSpacesResponse: z.ZodObject<{
410
391
  name: z.ZodString;
411
392
  handle: z.ZodString;
412
393
  description: z.ZodString;
413
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
414
- status: z.ZodEnum<{
415
- deploying: "deploying";
416
- idle: "idle";
417
- }>;
418
394
  createdAt: z.ZodISODateTime;
419
395
  updatedAt: z.ZodISODateTime;
420
396
  versions: z.ZodInt;
@@ -468,16 +444,17 @@ export declare const zUuids: z.ZodObject<{
468
444
  ids: z.ZodArray<z.ZodUUID>;
469
445
  }, z.core.$strip>;
470
446
  export declare const zEnvironmentVersion: z.ZodObject<{
471
- id: z.ZodOptional<z.ZodUUID>;
447
+ id: z.ZodUUID;
472
448
  created_at: z.ZodOptional<z.ZodISODateTime>;
473
- last_updated_at: z.ZodOptional<z.ZodISODateTime>;
449
+ last_updated_at: z.ZodISODateTime;
474
450
  deployment_id: z.ZodOptional<z.ZodUUID>;
475
451
  deployment_name: z.ZodOptional<z.ZodString>;
476
- status: z.ZodOptional<z.ZodString>;
452
+ status: z.ZodString;
477
453
  deployment_started_at: z.ZodOptional<z.ZodISODateTime>;
478
454
  deployment_completed_at: z.ZodOptional<z.ZodISODateTime>;
479
455
  message: z.ZodOptional<z.ZodString>;
480
456
  retries: z.ZodOptional<z.ZodInt>;
457
+ version: z.ZodInt;
481
458
  }, z.core.$strip>;
482
459
  export declare const zNetworkEdgeProps: z.ZodObject<{
483
460
  a: z.ZodOptional<z.ZodString>;
@@ -2037,11 +2014,6 @@ export declare const zListUserSpacesResponse: z.ZodObject<{
2037
2014
  name: z.ZodString;
2038
2015
  handle: z.ZodString;
2039
2016
  description: z.ZodString;
2040
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2041
- status: z.ZodEnum<{
2042
- deploying: "deploying";
2043
- idle: "idle";
2044
- }>;
2045
2017
  createdAt: z.ZodISODateTime;
2046
2018
  updatedAt: z.ZodISODateTime;
2047
2019
  versions: z.ZodInt;
@@ -2088,11 +2060,6 @@ export declare const zCreateSpaceResponse: z.ZodObject<{
2088
2060
  name: z.ZodString;
2089
2061
  handle: z.ZodString;
2090
2062
  description: z.ZodString;
2091
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2092
- status: z.ZodEnum<{
2093
- deploying: "deploying";
2094
- idle: "idle";
2095
- }>;
2096
2063
  createdAt: z.ZodISODateTime;
2097
2064
  updatedAt: z.ZodISODateTime;
2098
2065
  versions: z.ZodInt;
@@ -2171,11 +2138,6 @@ export declare const zGetSpaceOverviewResponse: z.ZodObject<{
2171
2138
  name: z.ZodString;
2172
2139
  handle: z.ZodString;
2173
2140
  description: z.ZodString;
2174
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2175
- status: z.ZodEnum<{
2176
- deploying: "deploying";
2177
- idle: "idle";
2178
- }>;
2179
2141
  createdAt: z.ZodISODateTime;
2180
2142
  updatedAt: z.ZodISODateTime;
2181
2143
  versions: z.ZodInt;
@@ -2346,11 +2308,6 @@ export declare const zCreateProjectResponse: z.ZodObject<{
2346
2308
  name: z.ZodString;
2347
2309
  handle: z.ZodString;
2348
2310
  description: z.ZodString;
2349
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2350
- status: z.ZodEnum<{
2351
- deploying: "deploying";
2352
- idle: "idle";
2353
- }>;
2354
2311
  createdAt: z.ZodISODateTime;
2355
2312
  updatedAt: z.ZodISODateTime;
2356
2313
  versions: z.ZodInt;
@@ -2380,11 +2337,6 @@ export declare const zGetProjectOverviewResponse: z.ZodObject<{
2380
2337
  name: z.ZodString;
2381
2338
  handle: z.ZodString;
2382
2339
  description: z.ZodString;
2383
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2384
- status: z.ZodEnum<{
2385
- deploying: "deploying";
2386
- idle: "idle";
2387
- }>;
2388
2340
  createdAt: z.ZodISODateTime;
2389
2341
  updatedAt: z.ZodISODateTime;
2390
2342
  versions: z.ZodInt;
@@ -2410,11 +2362,6 @@ export declare const zCreateEnvironmentResponse: z.ZodObject<{
2410
2362
  name: z.ZodString;
2411
2363
  handle: z.ZodString;
2412
2364
  description: z.ZodString;
2413
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2414
- status: z.ZodEnum<{
2415
- deploying: "deploying";
2416
- idle: "idle";
2417
- }>;
2418
2365
  createdAt: z.ZodISODateTime;
2419
2366
  updatedAt: z.ZodISODateTime;
2420
2367
  versions: z.ZodInt;
@@ -2436,11 +2383,6 @@ export declare const zGetEnvironmentOverviewResponse: z.ZodObject<{
2436
2383
  name: z.ZodString;
2437
2384
  handle: z.ZodString;
2438
2385
  description: z.ZodString;
2439
- deployingVersionID: z.ZodOptional<z.ZodUUID>;
2440
- status: z.ZodEnum<{
2441
- deploying: "deploying";
2442
- idle: "idle";
2443
- }>;
2444
2386
  createdAt: z.ZodISODateTime;
2445
2387
  updatedAt: z.ZodISODateTime;
2446
2388
  versions: z.ZodInt;
@@ -2458,16 +2400,17 @@ export declare const zGetEnvironmentVersionsData: z.ZodObject<{
2458
2400
  * Environment versions.
2459
2401
  */
2460
2402
  export declare const zGetEnvironmentVersionsResponse: z.ZodArray<z.ZodObject<{
2461
- id: z.ZodOptional<z.ZodUUID>;
2403
+ id: z.ZodUUID;
2462
2404
  created_at: z.ZodOptional<z.ZodISODateTime>;
2463
- last_updated_at: z.ZodOptional<z.ZodISODateTime>;
2405
+ last_updated_at: z.ZodISODateTime;
2464
2406
  deployment_id: z.ZodOptional<z.ZodUUID>;
2465
2407
  deployment_name: z.ZodOptional<z.ZodString>;
2466
- status: z.ZodOptional<z.ZodString>;
2408
+ status: z.ZodString;
2467
2409
  deployment_started_at: z.ZodOptional<z.ZodISODateTime>;
2468
2410
  deployment_completed_at: z.ZodOptional<z.ZodISODateTime>;
2469
2411
  message: z.ZodOptional<z.ZodString>;
2470
2412
  retries: z.ZodOptional<z.ZodInt>;
2413
+ version: z.ZodInt;
2471
2414
  }, z.core.$strip>>;
2472
2415
  export declare const zDeleteEnvironmentVariableData: z.ZodObject<{
2473
2416
  body: z.ZodOptional<z.ZodNever>;
@@ -100,17 +100,11 @@ export const zOnboardingAnalytics = z.object({
100
100
  export const zSpaceOrgCodeResponse = z.object({
101
101
  orgCode: z.string()
102
102
  });
103
- export const zEnvironmentStatus = z.enum([
104
- 'idle',
105
- 'deploying'
106
- ]);
107
103
  export const zEnvironmentOverview = z.object({
108
104
  id: z.uuid(),
109
105
  name: z.string(),
110
106
  handle: z.string(),
111
107
  description: z.string(),
112
- deployingVersionID: z.optional(z.uuid()),
113
- status: zEnvironmentStatus,
114
108
  createdAt: z.iso.datetime(),
115
109
  updatedAt: z.iso.datetime(),
116
110
  versions: z.int()
@@ -292,16 +286,17 @@ export const zUuids = z.object({
292
286
  ids: z.array(z.uuid())
293
287
  });
294
288
  export const zEnvironmentVersion = z.object({
295
- id: z.optional(z.uuid()),
289
+ id: z.uuid(),
296
290
  created_at: z.optional(z.iso.datetime()),
297
- last_updated_at: z.optional(z.iso.datetime()),
291
+ last_updated_at: z.iso.datetime(),
298
292
  deployment_id: z.optional(z.uuid()),
299
293
  deployment_name: z.optional(z.string()),
300
- status: z.optional(z.string()),
294
+ status: z.string(),
301
295
  deployment_started_at: z.optional(z.iso.datetime()),
302
296
  deployment_completed_at: z.optional(z.iso.datetime()),
303
297
  message: z.optional(z.string()),
304
- retries: z.optional(z.int())
298
+ retries: z.optional(z.int()),
299
+ version: z.int()
305
300
  });
306
301
  export const zNetworkEdgeProps = z.object({
307
302
  a: z.optional(z.string())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.136",
3
+ "version": "0.0.138",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",