shoal-web-sdk 1.0.12 → 1.0.13

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.
@@ -10,23 +10,28 @@ export declare const zEnvironmentVariables: z.ZodObject<{
10
10
  value: z.ZodString;
11
11
  }, z.core.$strip>>;
12
12
  }, z.core.$strip>;
13
- export declare const zUpdateTemplate: z.ZodObject<{
13
+ export declare const zUpdateBlueprint: z.ZodObject<{
14
14
  name: z.ZodOptional<z.ZodString>;
15
+ shortDescription: z.ZodOptional<z.ZodString>;
15
16
  description: z.ZodOptional<z.ZodString>;
16
17
  exported: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
18
  }, z.core.$strip>;
18
- export declare const zCreateTemplate: z.ZodObject<{
19
+ export declare const zCreateBlueprint: z.ZodObject<{
19
20
  name: z.ZodString;
21
+ shortDescription: z.ZodOptional<z.ZodString>;
20
22
  description: z.ZodString;
21
23
  exported: z.ZodArray<z.ZodString>;
22
24
  }, z.core.$strip>;
23
- export declare const zTemplate: z.ZodObject<{
25
+ export declare const zBlueprint: z.ZodObject<{
24
26
  id: z.ZodUUID;
25
27
  environment: z.ZodUUID;
26
28
  ref: z.ZodUUID;
27
29
  updatedAt: z.ZodISODateTime;
28
30
  createdAt: z.ZodISODateTime;
31
+ author: z.ZodString;
32
+ updatedBy: z.ZodString;
29
33
  name: z.ZodString;
34
+ shortDescription: z.ZodString;
30
35
  description: z.ZodString;
31
36
  exported: z.ZodArray<z.ZodObject<{
32
37
  key: z.ZodString;
@@ -91,18 +96,21 @@ export declare const zPagination: z.ZodObject<{
91
96
  limit: z.ZodInt;
92
97
  total: z.ZodInt;
93
98
  }, z.core.$strip>;
94
- export declare const zPaginatedTemplates: z.ZodIntersection<z.ZodObject<{
99
+ export declare const zPaginatedBlueprints: z.ZodIntersection<z.ZodObject<{
95
100
  page: z.ZodInt;
96
101
  limit: z.ZodInt;
97
102
  total: z.ZodInt;
98
103
  }, z.core.$strip>, z.ZodObject<{
99
- templates: z.ZodArray<z.ZodObject<{
104
+ blueprints: z.ZodArray<z.ZodObject<{
100
105
  id: z.ZodUUID;
101
106
  environment: z.ZodUUID;
102
107
  ref: z.ZodUUID;
103
108
  updatedAt: z.ZodISODateTime;
104
109
  createdAt: z.ZodISODateTime;
110
+ author: z.ZodString;
111
+ updatedBy: z.ZodString;
105
112
  name: z.ZodString;
113
+ shortDescription: z.ZodString;
106
114
  description: z.ZodString;
107
115
  exported: z.ZodArray<z.ZodObject<{
108
116
  key: z.ZodString;
@@ -1433,9 +1441,13 @@ export declare const zRepoOwner: z.ZodString;
1433
1441
  */
1434
1442
  export declare const zRepoName: z.ZodString;
1435
1443
  /**
1436
- * Template UUID.
1444
+ * Blueprint UUID.
1437
1445
  */
1438
- export declare const zTemplateId: z.ZodUUID;
1446
+ export declare const zBlueprintIdQuery: z.ZodUUID;
1447
+ /**
1448
+ * Blueprint UUID.
1449
+ */
1450
+ export declare const zBlueprintId: z.ZodUUID;
1439
1451
  /**
1440
1452
  * Search value for a searchable field on an endpoint.
1441
1453
  */
@@ -2480,7 +2492,180 @@ export declare const zRecordOnboardingAnalyticsData: z.ZodObject<{
2480
2492
  path: z.ZodOptional<z.ZodNever>;
2481
2493
  query: z.ZodOptional<z.ZodNever>;
2482
2494
  }, z.core.$strip>;
2483
- export declare const zViewTemplatesData: z.ZodObject<{
2495
+ export declare const zPreviewBlueprintData: z.ZodObject<{
2496
+ body: z.ZodOptional<z.ZodNever>;
2497
+ path: z.ZodObject<{
2498
+ blueprint: z.ZodUUID;
2499
+ }, z.core.$strip>;
2500
+ query: z.ZodOptional<z.ZodNever>;
2501
+ }, z.core.$strip>;
2502
+ /**
2503
+ * The blueprint nodes.
2504
+ */
2505
+ export declare const zPreviewBlueprintResponse: z.ZodObject<{
2506
+ nodes: z.ZodArray<z.ZodObject<{
2507
+ id: z.ZodUUID;
2508
+ name: z.ZodOptional<z.ZodString>;
2509
+ description: z.ZodOptional<z.ZodString>;
2510
+ x: z.ZodNumber;
2511
+ y: z.ZodNumber;
2512
+ width: z.ZodInt;
2513
+ height: z.ZodInt;
2514
+ edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
2515
+ id: z.ZodUUID;
2516
+ src: z.ZodUUID;
2517
+ dst: z.ZodUUID;
2518
+ typ: z.ZodEnum<{
2519
+ network: "network";
2520
+ route: "route";
2521
+ }>;
2522
+ props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
2523
+ typ: z.ZodLiteral<"network">;
2524
+ }, z.core.$strip>, z.ZodObject<{
2525
+ a: z.ZodOptional<z.ZodString>;
2526
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2527
+ typ: z.ZodLiteral<"route">;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ path: z.ZodOptional<z.ZodString>;
2530
+ }, z.core.$strip>>]>>;
2531
+ }, z.core.$strip>>>;
2532
+ typ: z.ZodEnum<{
2533
+ function: "function";
2534
+ cache: "cache";
2535
+ comment: "comment";
2536
+ container: "container";
2537
+ cronjob: "cronjob";
2538
+ database: "database";
2539
+ neondb: "neondb";
2540
+ queue: "queue";
2541
+ proxy: "proxy";
2542
+ vm: "vm";
2543
+ scheduler: "scheduler";
2544
+ }>;
2545
+ props: z.ZodOptional<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
2546
+ typ: z.ZodLiteral<"comment">;
2547
+ }, z.core.$strip>, z.ZodObject<{
2548
+ comment: z.ZodOptional<z.ZodString>;
2549
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2550
+ typ: z.ZodLiteral<"cache">;
2551
+ }, z.core.$strip>, z.ZodObject<{
2552
+ size: z.ZodOptional<z.ZodInt>;
2553
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2554
+ typ: z.ZodLiteral<"container">;
2555
+ }, z.core.$strip>, z.ZodObject<{
2556
+ region: z.ZodEnum<{
2557
+ "europe-west2": "europe-west2";
2558
+ }>;
2559
+ port: z.ZodInt;
2560
+ cpu: z.ZodEnum<{
2561
+ 1: "1";
2562
+ 2: "2";
2563
+ }>;
2564
+ memory: z.ZodEnum<{
2565
+ "512Mi": "512Mi";
2566
+ "1Gi": "1Gi";
2567
+ "2Gi": "2Gi";
2568
+ }>;
2569
+ serviceName: z.ZodOptional<z.ZodString>;
2570
+ ingress: z.ZodEnum<{
2571
+ INGRESS_TRAFFIC_ALL: "INGRESS_TRAFFIC_ALL";
2572
+ INGRESS_TRAFFIC_INTERNAL_ONLY: "INGRESS_TRAFFIC_INTERNAL_ONLY";
2573
+ INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER: "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER";
2574
+ }>;
2575
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
2576
+ maxInstances: z.ZodOptional<z.ZodInt>;
2577
+ minInstances: z.ZodOptional<z.ZodInt>;
2578
+ concurrency: z.ZodOptional<z.ZodInt>;
2579
+ allowUnauthenticated: z.ZodOptional<z.ZodBoolean>;
2580
+ uri: z.ZodOptional<z.ZodString>;
2581
+ installationId: z.ZodOptional<z.ZodString>;
2582
+ language: z.ZodOptional<z.ZodString>;
2583
+ framework: z.ZodOptional<z.ZodString>;
2584
+ runtimeVersion: z.ZodOptional<z.ZodString>;
2585
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2586
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2587
+ typ: z.ZodLiteral<"cronjob">;
2588
+ }, z.core.$strip>, z.ZodObject<{
2589
+ cronTab: z.ZodOptional<z.ZodString>;
2590
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2591
+ typ: z.ZodLiteral<"database">;
2592
+ }, z.core.$strip>, z.ZodObject<{
2593
+ space: z.ZodOptional<z.ZodInt>;
2594
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2595
+ typ: z.ZodLiteral<"function">;
2596
+ }, z.core.$strip>, z.ZodObject<{
2597
+ region: z.ZodEnum<{
2598
+ "europe-west2": "europe-west2";
2599
+ }>;
2600
+ language: z.ZodString;
2601
+ runtimeVersion: z.ZodString;
2602
+ serviceName: z.ZodOptional<z.ZodString>;
2603
+ cpu: z.ZodEnum<{
2604
+ 1: "1";
2605
+ 2: "2";
2606
+ }>;
2607
+ memory: z.ZodEnum<{
2608
+ "512Mi": "512Mi";
2609
+ "1Gi": "1Gi";
2610
+ "2Gi": "2Gi";
2611
+ }>;
2612
+ concurrency: z.ZodOptional<z.ZodInt>;
2613
+ timeoutSeconds: z.ZodOptional<z.ZodInt>;
2614
+ minInstances: z.ZodOptional<z.ZodInt>;
2615
+ maxInstances: z.ZodOptional<z.ZodInt>;
2616
+ entryPoint: z.ZodString;
2617
+ uri: z.ZodOptional<z.ZodString>;
2618
+ installationId: z.ZodOptional<z.ZodString>;
2619
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2620
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2621
+ typ: z.ZodLiteral<"neondb">;
2622
+ }, z.core.$strip>, z.ZodObject<{
2623
+ orgId: z.ZodString;
2624
+ orgName: z.ZodString;
2625
+ projectId: z.ZodOptional<z.ZodString>;
2626
+ projectName: z.ZodOptional<z.ZodString>;
2627
+ branchId: z.ZodOptional<z.ZodString>;
2628
+ branchName: z.ZodOptional<z.ZodString>;
2629
+ dbName: z.ZodString;
2630
+ roleName: z.ZodString;
2631
+ regionId: z.ZodString;
2632
+ pgVersion: z.ZodInt;
2633
+ autoscalingLimitMinCu: z.ZodOptional<z.ZodNumber>;
2634
+ autoscalingLimitMaxCu: z.ZodOptional<z.ZodNumber>;
2635
+ suspendTimeoutSeconds: z.ZodInt;
2636
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2637
+ typ: z.ZodLiteral<"queue">;
2638
+ }, z.core.$strip>, z.ZodObject<{
2639
+ foobar: z.ZodOptional<z.ZodString>;
2640
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2641
+ typ: z.ZodLiteral<"proxy">;
2642
+ }, z.core.$strip>, z.ZodObject<{
2643
+ subdomain: z.ZodOptional<z.ZodString>;
2644
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2645
+ typ: z.ZodLiteral<"vm">;
2646
+ }, z.core.$strip>, z.ZodObject<{
2647
+ os: z.ZodOptional<z.ZodString>;
2648
+ }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2649
+ typ: z.ZodLiteral<"scheduler">;
2650
+ }, z.core.$strip>, z.ZodObject<{
2651
+ expression: z.ZodString;
2652
+ timezone: z.ZodOptional<z.ZodString>;
2653
+ requestMethod: z.ZodOptional<z.ZodEnum<{
2654
+ DELETE: "DELETE";
2655
+ GET: "GET";
2656
+ HEAD: "HEAD";
2657
+ OPTIONS: "OPTIONS";
2658
+ PATCH: "PATCH";
2659
+ POST: "POST";
2660
+ PUT: "PUT";
2661
+ }>>;
2662
+ requestPayload: z.ZodOptional<z.ZodString>;
2663
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2664
+ paused: z.ZodBoolean;
2665
+ }, z.core.$strip>>]>>;
2666
+ }, z.core.$strip>>;
2667
+ }, z.core.$strip>;
2668
+ export declare const zViewBlueprintsData: z.ZodObject<{
2484
2669
  body: z.ZodOptional<z.ZodNever>;
2485
2670
  path: z.ZodOptional<z.ZodNever>;
2486
2671
  query: z.ZodOptional<z.ZodObject<{
@@ -2494,20 +2679,23 @@ export declare const zViewTemplatesData: z.ZodObject<{
2494
2679
  }, z.core.$strip>>;
2495
2680
  }, z.core.$strip>;
2496
2681
  /**
2497
- * Paginated templates
2682
+ * Paginated blueprints
2498
2683
  */
2499
- export declare const zViewTemplatesResponse: z.ZodIntersection<z.ZodObject<{
2684
+ export declare const zViewBlueprintsResponse: z.ZodIntersection<z.ZodObject<{
2500
2685
  page: z.ZodInt;
2501
2686
  limit: z.ZodInt;
2502
2687
  total: z.ZodInt;
2503
2688
  }, z.core.$strip>, z.ZodObject<{
2504
- templates: z.ZodArray<z.ZodObject<{
2689
+ blueprints: z.ZodArray<z.ZodObject<{
2505
2690
  id: z.ZodUUID;
2506
2691
  environment: z.ZodUUID;
2507
2692
  ref: z.ZodUUID;
2508
2693
  updatedAt: z.ZodISODateTime;
2509
2694
  createdAt: z.ZodISODateTime;
2695
+ author: z.ZodString;
2696
+ updatedBy: z.ZodString;
2510
2697
  name: z.ZodString;
2698
+ shortDescription: z.ZodString;
2511
2699
  description: z.ZodString;
2512
2700
  exported: z.ZodArray<z.ZodObject<{
2513
2701
  key: z.ZodString;
@@ -2515,50 +2703,26 @@ export declare const zViewTemplatesResponse: z.ZodIntersection<z.ZodObject<{
2515
2703
  }, z.core.$strip>>;
2516
2704
  }, z.core.$strip>>;
2517
2705
  }, z.core.$strip>>;
2518
- export declare const zGetTemplateData: z.ZodObject<{
2706
+ export declare const zGetBlueprintData: z.ZodObject<{
2519
2707
  body: z.ZodOptional<z.ZodNever>;
2520
2708
  path: z.ZodObject<{
2521
- template: z.ZodUUID;
2709
+ blueprint: z.ZodUUID;
2522
2710
  }, z.core.$strip>;
2523
2711
  query: z.ZodOptional<z.ZodNever>;
2524
2712
  }, z.core.$strip>;
2525
2713
  /**
2526
- * The template.
2714
+ * The blueprint.
2527
2715
  */
2528
- export declare const zGetTemplateResponse: z.ZodObject<{
2529
- id: z.ZodUUID;
2530
- environment: z.ZodUUID;
2531
- ref: z.ZodUUID;
2532
- updatedAt: z.ZodISODateTime;
2533
- createdAt: z.ZodISODateTime;
2534
- name: z.ZodString;
2535
- description: z.ZodString;
2536
- exported: z.ZodArray<z.ZodObject<{
2537
- key: z.ZodString;
2538
- value: z.ZodString;
2539
- }, z.core.$strip>>;
2540
- }, z.core.$strip>;
2541
- export declare const zUpdateTemplateData: z.ZodObject<{
2542
- body: z.ZodObject<{
2543
- name: z.ZodOptional<z.ZodString>;
2544
- description: z.ZodOptional<z.ZodString>;
2545
- exported: z.ZodOptional<z.ZodArray<z.ZodString>>;
2546
- }, z.core.$strip>;
2547
- path: z.ZodObject<{
2548
- template: z.ZodUUID;
2549
- }, z.core.$strip>;
2550
- query: z.ZodOptional<z.ZodNever>;
2551
- }, z.core.$strip>;
2552
- /**
2553
- * Updated Template.
2554
- */
2555
- export declare const zUpdateTemplateResponse: z.ZodObject<{
2716
+ export declare const zGetBlueprintResponse: z.ZodObject<{
2556
2717
  id: z.ZodUUID;
2557
2718
  environment: z.ZodUUID;
2558
2719
  ref: z.ZodUUID;
2559
2720
  updatedAt: z.ZodISODateTime;
2560
2721
  createdAt: z.ZodISODateTime;
2722
+ author: z.ZodString;
2723
+ updatedBy: z.ZodString;
2561
2724
  name: z.ZodString;
2725
+ shortDescription: z.ZodString;
2562
2726
  description: z.ZodString;
2563
2727
  exported: z.ZodArray<z.ZodObject<{
2564
2728
  key: z.ZodString;
@@ -3072,10 +3236,10 @@ export declare const zCreateEnvironmentVariableData: z.ZodObject<{
3072
3236
  }, z.core.$strip>;
3073
3237
  query: z.ZodOptional<z.ZodNever>;
3074
3238
  }, z.core.$strip>;
3075
- export declare const zDeleteTemplateData: z.ZodObject<{
3239
+ export declare const zDeleteBlueprintData: z.ZodObject<{
3076
3240
  body: z.ZodOptional<z.ZodNever>;
3077
3241
  path: z.ZodObject<{
3078
- template: z.ZodUUID;
3242
+ blueprint: z.ZodUUID;
3079
3243
  spaceHandle: z.ZodString;
3080
3244
  projectHandle: z.ZodString;
3081
3245
  environmentHandle: z.ZodString;
@@ -3083,12 +3247,47 @@ export declare const zDeleteTemplateData: z.ZodObject<{
3083
3247
  query: z.ZodOptional<z.ZodNever>;
3084
3248
  }, z.core.$strip>;
3085
3249
  /**
3086
- * Template deleted.
3250
+ * Blueprint deleted.
3087
3251
  */
3088
- export declare const zDeleteTemplateResponse: z.ZodVoid;
3089
- export declare const zCreateTemplateData: z.ZodObject<{
3252
+ export declare const zDeleteBlueprintResponse: z.ZodVoid;
3253
+ export declare const zUpdateBlueprintData: z.ZodObject<{
3254
+ body: z.ZodObject<{
3255
+ name: z.ZodOptional<z.ZodString>;
3256
+ shortDescription: z.ZodOptional<z.ZodString>;
3257
+ description: z.ZodOptional<z.ZodString>;
3258
+ exported: z.ZodOptional<z.ZodArray<z.ZodString>>;
3259
+ }, z.core.$strip>;
3260
+ path: z.ZodObject<{
3261
+ blueprint: z.ZodUUID;
3262
+ spaceHandle: z.ZodString;
3263
+ projectHandle: z.ZodString;
3264
+ environmentHandle: z.ZodString;
3265
+ }, z.core.$strip>;
3266
+ query: z.ZodOptional<z.ZodNever>;
3267
+ }, z.core.$strip>;
3268
+ /**
3269
+ * Updated Blueprint.
3270
+ */
3271
+ export declare const zUpdateBlueprintResponse: z.ZodObject<{
3272
+ id: z.ZodUUID;
3273
+ environment: z.ZodUUID;
3274
+ ref: z.ZodUUID;
3275
+ updatedAt: z.ZodISODateTime;
3276
+ createdAt: z.ZodISODateTime;
3277
+ author: z.ZodString;
3278
+ updatedBy: z.ZodString;
3279
+ name: z.ZodString;
3280
+ shortDescription: z.ZodString;
3281
+ description: z.ZodString;
3282
+ exported: z.ZodArray<z.ZodObject<{
3283
+ key: z.ZodString;
3284
+ value: z.ZodString;
3285
+ }, z.core.$strip>>;
3286
+ }, z.core.$strip>;
3287
+ export declare const zCreateBlueprintData: z.ZodObject<{
3090
3288
  body: z.ZodObject<{
3091
3289
  name: z.ZodString;
3290
+ shortDescription: z.ZodOptional<z.ZodString>;
3092
3291
  description: z.ZodString;
3093
3292
  exported: z.ZodArray<z.ZodString>;
3094
3293
  }, z.core.$strip>;
@@ -3100,15 +3299,18 @@ export declare const zCreateTemplateData: z.ZodObject<{
3100
3299
  query: z.ZodOptional<z.ZodNever>;
3101
3300
  }, z.core.$strip>;
3102
3301
  /**
3103
- * Template created
3302
+ * Blueprint created
3104
3303
  */
3105
- export declare const zCreateTemplateResponse: z.ZodObject<{
3304
+ export declare const zCreateBlueprintResponse: z.ZodObject<{
3106
3305
  id: z.ZodUUID;
3107
3306
  environment: z.ZodUUID;
3108
3307
  ref: z.ZodUUID;
3109
3308
  updatedAt: z.ZodISODateTime;
3110
3309
  createdAt: z.ZodISODateTime;
3310
+ author: z.ZodString;
3311
+ updatedBy: z.ZodString;
3111
3312
  name: z.ZodString;
3313
+ shortDescription: z.ZodString;
3112
3314
  description: z.ZodString;
3113
3315
  exported: z.ZodArray<z.ZodObject<{
3114
3316
  key: z.ZodString;
@@ -3151,6 +3353,18 @@ export declare const zGetVersionResponse: z.ZodObject<{
3151
3353
  message: z.ZodOptional<z.ZodString>;
3152
3354
  }, z.core.$strip>>;
3153
3355
  }, z.core.$strip>;
3356
+ export declare const zImportBlueprintData: z.ZodObject<{
3357
+ body: z.ZodOptional<z.ZodNever>;
3358
+ path: z.ZodObject<{
3359
+ spaceHandle: z.ZodString;
3360
+ projectHandle: z.ZodString;
3361
+ environmentHandle: z.ZodString;
3362
+ version: z.ZodString;
3363
+ }, z.core.$strip>;
3364
+ query: z.ZodObject<{
3365
+ blueprint: z.ZodUUID;
3366
+ }, z.core.$strip>;
3367
+ }, z.core.$strip>;
3154
3368
  export declare const zGetGraphOverviewData: z.ZodObject<{
3155
3369
  body: z.ZodOptional<z.ZodNever>;
3156
3370
  path: z.ZodObject<{
@@ -8,23 +8,28 @@ export const zEnvironmentVariable = z.object({
8
8
  export const zEnvironmentVariables = z.object({
9
9
  vars: z.array(zEnvironmentVariable)
10
10
  });
11
- export const zUpdateTemplate = z.object({
11
+ export const zUpdateBlueprint = z.object({
12
12
  name: z.optional(z.string()),
13
+ shortDescription: z.optional(z.string()),
13
14
  description: z.optional(z.string()),
14
15
  exported: z.optional(z.array(z.string()))
15
16
  });
16
- export const zCreateTemplate = z.object({
17
+ export const zCreateBlueprint = z.object({
17
18
  name: z.string(),
19
+ shortDescription: z.optional(z.string()),
18
20
  description: z.string(),
19
21
  exported: z.array(z.string())
20
22
  });
21
- export const zTemplate = z.object({
23
+ export const zBlueprint = z.object({
22
24
  id: z.uuid(),
23
25
  environment: z.uuid(),
24
26
  ref: z.uuid(),
25
27
  updatedAt: z.iso.datetime(),
26
28
  createdAt: z.iso.datetime(),
29
+ author: z.string(),
30
+ updatedBy: z.string(),
27
31
  name: z.string(),
32
+ shortDescription: z.string(),
28
33
  description: z.string(),
29
34
  exported: z.array(zEnvironmentVariable)
30
35
  });
@@ -73,8 +78,8 @@ export const zPagination = z.object({
73
78
  limit: z.int(),
74
79
  total: z.int()
75
80
  });
76
- export const zPaginatedTemplates = zPagination.and(z.object({
77
- templates: z.array(zTemplate)
81
+ export const zPaginatedBlueprints = zPagination.and(z.object({
82
+ blueprints: z.array(zBlueprint)
78
83
  }));
79
84
  export const zInvite = z.object({
80
85
  id: z.uuid(),
@@ -692,9 +697,13 @@ export const zRepoOwner = z.string();
692
697
  */
693
698
  export const zRepoName = z.string();
694
699
  /**
695
- * Template UUID.
700
+ * Blueprint UUID.
696
701
  */
697
- export const zTemplateId = z.uuid();
702
+ export const zBlueprintIdQuery = z.uuid();
703
+ /**
704
+ * Blueprint UUID.
705
+ */
706
+ export const zBlueprintId = z.uuid();
698
707
  /**
699
708
  * Search value for a searchable field on an endpoint.
700
709
  */
@@ -956,7 +965,18 @@ export const zRecordOnboardingAnalyticsData = z.object({
956
965
  path: z.optional(z.never()),
957
966
  query: z.optional(z.never())
958
967
  });
959
- export const zViewTemplatesData = z.object({
968
+ export const zPreviewBlueprintData = z.object({
969
+ body: z.optional(z.never()),
970
+ path: z.object({
971
+ blueprint: z.uuid()
972
+ }),
973
+ query: z.optional(z.never())
974
+ });
975
+ /**
976
+ * The blueprint nodes.
977
+ */
978
+ export const zPreviewBlueprintResponse = zNodes;
979
+ export const zViewBlueprintsData = z.object({
960
980
  body: z.optional(z.never()),
961
981
  path: z.optional(z.never()),
962
982
  query: z.optional(z.object({
@@ -970,31 +990,20 @@ export const zViewTemplatesData = z.object({
970
990
  }))
971
991
  });
972
992
  /**
973
- * Paginated templates
993
+ * Paginated blueprints
974
994
  */
975
- export const zViewTemplatesResponse = zPaginatedTemplates;
976
- export const zGetTemplateData = z.object({
995
+ export const zViewBlueprintsResponse = zPaginatedBlueprints;
996
+ export const zGetBlueprintData = z.object({
977
997
  body: z.optional(z.never()),
978
998
  path: z.object({
979
- template: z.uuid()
999
+ blueprint: z.uuid()
980
1000
  }),
981
1001
  query: z.optional(z.never())
982
1002
  });
983
1003
  /**
984
- * The template.
1004
+ * The blueprint.
985
1005
  */
986
- export const zGetTemplateResponse = zTemplate;
987
- export const zUpdateTemplateData = z.object({
988
- body: zUpdateTemplate,
989
- path: z.object({
990
- template: z.uuid()
991
- }),
992
- query: z.optional(z.never())
993
- });
994
- /**
995
- * Updated Template.
996
- */
997
- export const zUpdateTemplateResponse = zTemplate;
1006
+ export const zGetBlueprintResponse = zBlueprint;
998
1007
  export const zCreateSpaceData = z.object({
999
1008
  body: zCreateSpace,
1000
1009
  path: z.optional(z.never()),
@@ -1271,10 +1280,24 @@ export const zCreateEnvironmentVariableData = z.object({
1271
1280
  }),
1272
1281
  query: z.optional(z.never())
1273
1282
  });
1274
- export const zDeleteTemplateData = z.object({
1283
+ export const zDeleteBlueprintData = z.object({
1275
1284
  body: z.optional(z.never()),
1276
1285
  path: z.object({
1277
- template: z.uuid(),
1286
+ blueprint: z.uuid(),
1287
+ spaceHandle: z.string(),
1288
+ projectHandle: z.string(),
1289
+ environmentHandle: z.string()
1290
+ }),
1291
+ query: z.optional(z.never())
1292
+ });
1293
+ /**
1294
+ * Blueprint deleted.
1295
+ */
1296
+ export const zDeleteBlueprintResponse = z.void();
1297
+ export const zUpdateBlueprintData = z.object({
1298
+ body: zUpdateBlueprint,
1299
+ path: z.object({
1300
+ blueprint: z.uuid(),
1278
1301
  spaceHandle: z.string(),
1279
1302
  projectHandle: z.string(),
1280
1303
  environmentHandle: z.string()
@@ -1282,11 +1305,11 @@ export const zDeleteTemplateData = z.object({
1282
1305
  query: z.optional(z.never())
1283
1306
  });
1284
1307
  /**
1285
- * Template deleted.
1308
+ * Updated Blueprint.
1286
1309
  */
1287
- export const zDeleteTemplateResponse = z.void();
1288
- export const zCreateTemplateData = z.object({
1289
- body: zCreateTemplate,
1310
+ export const zUpdateBlueprintResponse = zBlueprint;
1311
+ export const zCreateBlueprintData = z.object({
1312
+ body: zCreateBlueprint,
1290
1313
  path: z.object({
1291
1314
  spaceHandle: z.string(),
1292
1315
  projectHandle: z.string(),
@@ -1295,9 +1318,9 @@ export const zCreateTemplateData = z.object({
1295
1318
  query: z.optional(z.never())
1296
1319
  });
1297
1320
  /**
1298
- * Template created
1321
+ * Blueprint created
1299
1322
  */
1300
- export const zCreateTemplateResponse = zTemplate;
1323
+ export const zCreateBlueprintResponse = zBlueprint;
1301
1324
  export const zGetVersionData = z.object({
1302
1325
  body: z.optional(z.never()),
1303
1326
  path: z.object({
@@ -1312,6 +1335,18 @@ export const zGetVersionData = z.object({
1312
1335
  * The version (and deployment information).
1313
1336
  */
1314
1337
  export const zGetVersionResponse = zVersion;
1338
+ export const zImportBlueprintData = z.object({
1339
+ body: z.optional(z.never()),
1340
+ path: z.object({
1341
+ spaceHandle: z.string(),
1342
+ projectHandle: z.string(),
1343
+ environmentHandle: z.string(),
1344
+ version: z.string()
1345
+ }),
1346
+ query: z.object({
1347
+ blueprint: z.uuid()
1348
+ })
1349
+ });
1315
1350
  export const zGetGraphOverviewData = z.object({
1316
1351
  body: z.optional(z.never()),
1317
1352
  path: z.object({