@supernova-studio/client 1.51.0 → 1.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -314365,23 +314365,27 @@ declare const DTOSandboxTemplateBuildCreateInput: z$1.ZodObject<{
314365
314365
  designSystemId: z$1.ZodString;
314366
314366
  name: z$1.ZodString;
314367
314367
  version: z$1.ZodString;
314368
+ isExistingVersionUpdateAllowed: z$1.ZodBoolean;
314368
314369
  }, "strip", z$1.ZodTypeAny, {
314369
314370
  name: string;
314370
314371
  designSystemId: string;
314371
314372
  workspaceId: string;
314372
314373
  version: string;
314374
+ isExistingVersionUpdateAllowed: boolean;
314373
314375
  }, {
314374
314376
  name: string;
314375
314377
  designSystemId: string;
314376
314378
  workspaceId: string;
314377
314379
  version: string;
314380
+ isExistingVersionUpdateAllowed: boolean;
314378
314381
  }>;
314379
314382
  type DTOSandboxTemplateBuildCreateInput = z$1.infer<typeof DTOSandboxTemplateBuildCreateInput>;
314380
314383
  declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314381
314384
  /** @deprecated use domain + build.dockerImagePath */
314382
- dockerUrl: z$1.ZodString;
314385
+ dockerUrl: z$1.ZodOptional<z$1.ZodString>;
314383
314386
  dockerRegistryDomain: z$1.ZodString;
314384
- dockerAccessToken: z$1.ZodString;
314387
+ /** @deprecated use docker-login endpoint */
314388
+ dockerAccessToken: z$1.ZodOptional<z$1.ZodString>;
314385
314389
  build: z$1.ZodObject<{
314386
314390
  id: z$1.ZodString;
314387
314391
  workspaceId: z$1.ZodString;
@@ -314433,9 +314437,9 @@ declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314433
314437
  error?: string | undefined;
314434
314438
  finishedAt?: string | undefined;
314435
314439
  };
314436
- dockerUrl: string;
314437
314440
  dockerRegistryDomain: string;
314438
- dockerAccessToken: string;
314441
+ dockerUrl?: string | undefined;
314442
+ dockerAccessToken?: string | undefined;
314439
314443
  }, {
314440
314444
  build: {
314441
314445
  id: string;
@@ -314450,9 +314454,9 @@ declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314450
314454
  error?: string | undefined;
314451
314455
  finishedAt?: string | undefined;
314452
314456
  };
314453
- dockerUrl: string;
314454
314457
  dockerRegistryDomain: string;
314455
- dockerAccessToken: string;
314458
+ dockerUrl?: string | undefined;
314459
+ dockerAccessToken?: string | undefined;
314456
314460
  }>;
314457
314461
  type DTOSandboxTemplateBuildCreateResponse = z$1.infer<typeof DTOSandboxTemplateBuildCreateResponse>;
314458
314462
  declare const DTOSandboxTemplateBuildFinalizeResponse: z$1.ZodObject<{
@@ -344072,6 +344076,19 @@ declare const DTOSubscription: z$1.ZodObject<{
344072
344076
  errorReason: string;
344073
344077
  max?: number | undefined;
344074
344078
  }>;
344079
+ sandboxTemplates: z$1.ZodObject<{
344080
+ enabled: z$1.ZodBoolean;
344081
+ errorMessage: z$1.ZodString;
344082
+ errorReason: z$1.ZodString;
344083
+ }, "strip", z$1.ZodTypeAny, {
344084
+ errorMessage: string;
344085
+ errorReason: string;
344086
+ enabled: boolean;
344087
+ }, {
344088
+ errorMessage: string;
344089
+ errorReason: string;
344090
+ enabled: boolean;
344091
+ }>;
344075
344092
  }, "strip", z$1.ZodTypeAny, {
344076
344093
  analytics: {
344077
344094
  errorMessage: string;
@@ -344230,6 +344247,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344230
344247
  errorReason: string;
344231
344248
  max?: number | undefined;
344232
344249
  };
344250
+ sandboxTemplates: {
344251
+ errorMessage: string;
344252
+ errorReason: string;
344253
+ enabled: boolean;
344254
+ };
344233
344255
  }, {
344234
344256
  analytics: {
344235
344257
  errorMessage: string;
@@ -344388,6 +344410,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344388
344410
  errorReason: string;
344389
344411
  max?: number | undefined;
344390
344412
  };
344413
+ sandboxTemplates: {
344414
+ errorMessage: string;
344415
+ errorReason: string;
344416
+ enabled: boolean;
344417
+ };
344391
344418
  }>>;
344392
344419
  allowedRoles: z$1.ZodArray<z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>, "many">;
344393
344420
  /**
@@ -344640,6 +344667,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344640
344667
  errorReason: string;
344641
344668
  max?: number | undefined;
344642
344669
  };
344670
+ sandboxTemplates: {
344671
+ errorMessage: string;
344672
+ errorReason: string;
344673
+ enabled: boolean;
344674
+ };
344643
344675
  } | undefined;
344644
344676
  stripeSubscriptionMainItemId?: string | undefined;
344645
344677
  currentPeriodStart?: string | undefined;
@@ -344842,6 +344874,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344842
344874
  errorReason: string;
344843
344875
  max?: number | undefined;
344844
344876
  };
344877
+ sandboxTemplates: {
344878
+ errorMessage: string;
344879
+ errorReason: string;
344880
+ enabled: boolean;
344881
+ };
344845
344882
  } | undefined;
344846
344883
  stripeSubscriptionMainItemId?: string | undefined;
344847
344884
  currentPeriodStart?: string | undefined;
@@ -345282,6 +345319,19 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345282
345319
  errorReason: string;
345283
345320
  max?: number | undefined;
345284
345321
  }>;
345322
+ sandboxTemplates: z$1.ZodObject<{
345323
+ enabled: z$1.ZodBoolean;
345324
+ errorMessage: z$1.ZodString;
345325
+ errorReason: z$1.ZodString;
345326
+ }, "strip", z$1.ZodTypeAny, {
345327
+ errorMessage: string;
345328
+ errorReason: string;
345329
+ enabled: boolean;
345330
+ }, {
345331
+ errorMessage: string;
345332
+ errorReason: string;
345333
+ enabled: boolean;
345334
+ }>;
345285
345335
  }, "strip", z$1.ZodTypeAny, {
345286
345336
  analytics: {
345287
345337
  errorMessage: string;
@@ -345440,6 +345490,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345440
345490
  errorReason: string;
345441
345491
  max?: number | undefined;
345442
345492
  };
345493
+ sandboxTemplates: {
345494
+ errorMessage: string;
345495
+ errorReason: string;
345496
+ enabled: boolean;
345497
+ };
345443
345498
  }, {
345444
345499
  analytics: {
345445
345500
  errorMessage: string;
@@ -345598,6 +345653,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345598
345653
  errorReason: string;
345599
345654
  max?: number | undefined;
345600
345655
  };
345656
+ sandboxTemplates: {
345657
+ errorMessage: string;
345658
+ errorReason: string;
345659
+ enabled: boolean;
345660
+ };
345601
345661
  }>>;
345602
345662
  allowedRoles: z$1.ZodArray<z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>, "many">;
345603
345663
  /**
@@ -345850,6 +345910,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345850
345910
  errorReason: string;
345851
345911
  max?: number | undefined;
345852
345912
  };
345913
+ sandboxTemplates: {
345914
+ errorMessage: string;
345915
+ errorReason: string;
345916
+ enabled: boolean;
345917
+ };
345853
345918
  } | undefined;
345854
345919
  stripeSubscriptionMainItemId?: string | undefined;
345855
345920
  currentPeriodStart?: string | undefined;
@@ -346052,6 +346117,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346052
346117
  errorReason: string;
346053
346118
  max?: number | undefined;
346054
346119
  };
346120
+ sandboxTemplates: {
346121
+ errorMessage: string;
346122
+ errorReason: string;
346123
+ enabled: boolean;
346124
+ };
346055
346125
  } | undefined;
346056
346126
  stripeSubscriptionMainItemId?: string | undefined;
346057
346127
  currentPeriodStart?: string | undefined;
@@ -346425,6 +346495,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346425
346495
  errorReason: string;
346426
346496
  max?: number | undefined;
346427
346497
  };
346498
+ sandboxTemplates: {
346499
+ errorMessage: string;
346500
+ errorReason: string;
346501
+ enabled: boolean;
346502
+ };
346428
346503
  } | undefined;
346429
346504
  stripeSubscriptionMainItemId?: string | undefined;
346430
346505
  currentPeriodStart?: string | undefined;
@@ -346666,6 +346741,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346666
346741
  errorReason: string;
346667
346742
  max?: number | undefined;
346668
346743
  };
346744
+ sandboxTemplates: {
346745
+ errorMessage: string;
346746
+ errorReason: string;
346747
+ enabled: boolean;
346748
+ };
346669
346749
  } | undefined;
346670
346750
  stripeSubscriptionMainItemId?: string | undefined;
346671
346751
  currentPeriodStart?: string | undefined;
@@ -368602,9 +368682,9 @@ declare class SandboxTemplateBuildsEndpoint {
368602
368682
  error?: string | undefined;
368603
368683
  finishedAt?: string | undefined;
368604
368684
  };
368605
- dockerUrl: string;
368606
368685
  dockerRegistryDomain: string;
368607
- dockerAccessToken: string;
368686
+ dockerUrl?: string | undefined;
368687
+ dockerAccessToken?: string | undefined;
368608
368688
  }>;
368609
368689
  get(buildId: string): Promise<{
368610
368690
  build: {
@@ -369385,6 +369465,11 @@ declare class WorkspaceSubscriptionEndpoint {
369385
369465
  errorReason: string;
369386
369466
  max?: number | undefined;
369387
369467
  };
369468
+ sandboxTemplates: {
369469
+ errorMessage: string;
369470
+ errorReason: string;
369471
+ enabled: boolean;
369472
+ };
369388
369473
  } | undefined;
369389
369474
  stripeSubscriptionMainItemId?: string | undefined;
369390
369475
  currentPeriodStart?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -314365,23 +314365,27 @@ declare const DTOSandboxTemplateBuildCreateInput: z$1.ZodObject<{
314365
314365
  designSystemId: z$1.ZodString;
314366
314366
  name: z$1.ZodString;
314367
314367
  version: z$1.ZodString;
314368
+ isExistingVersionUpdateAllowed: z$1.ZodBoolean;
314368
314369
  }, "strip", z$1.ZodTypeAny, {
314369
314370
  name: string;
314370
314371
  designSystemId: string;
314371
314372
  workspaceId: string;
314372
314373
  version: string;
314374
+ isExistingVersionUpdateAllowed: boolean;
314373
314375
  }, {
314374
314376
  name: string;
314375
314377
  designSystemId: string;
314376
314378
  workspaceId: string;
314377
314379
  version: string;
314380
+ isExistingVersionUpdateAllowed: boolean;
314378
314381
  }>;
314379
314382
  type DTOSandboxTemplateBuildCreateInput = z$1.infer<typeof DTOSandboxTemplateBuildCreateInput>;
314380
314383
  declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314381
314384
  /** @deprecated use domain + build.dockerImagePath */
314382
- dockerUrl: z$1.ZodString;
314385
+ dockerUrl: z$1.ZodOptional<z$1.ZodString>;
314383
314386
  dockerRegistryDomain: z$1.ZodString;
314384
- dockerAccessToken: z$1.ZodString;
314387
+ /** @deprecated use docker-login endpoint */
314388
+ dockerAccessToken: z$1.ZodOptional<z$1.ZodString>;
314385
314389
  build: z$1.ZodObject<{
314386
314390
  id: z$1.ZodString;
314387
314391
  workspaceId: z$1.ZodString;
@@ -314433,9 +314437,9 @@ declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314433
314437
  error?: string | undefined;
314434
314438
  finishedAt?: string | undefined;
314435
314439
  };
314436
- dockerUrl: string;
314437
314440
  dockerRegistryDomain: string;
314438
- dockerAccessToken: string;
314441
+ dockerUrl?: string | undefined;
314442
+ dockerAccessToken?: string | undefined;
314439
314443
  }, {
314440
314444
  build: {
314441
314445
  id: string;
@@ -314450,9 +314454,9 @@ declare const DTOSandboxTemplateBuildCreateResponse: z$1.ZodObject<{
314450
314454
  error?: string | undefined;
314451
314455
  finishedAt?: string | undefined;
314452
314456
  };
314453
- dockerUrl: string;
314454
314457
  dockerRegistryDomain: string;
314455
- dockerAccessToken: string;
314458
+ dockerUrl?: string | undefined;
314459
+ dockerAccessToken?: string | undefined;
314456
314460
  }>;
314457
314461
  type DTOSandboxTemplateBuildCreateResponse = z$1.infer<typeof DTOSandboxTemplateBuildCreateResponse>;
314458
314462
  declare const DTOSandboxTemplateBuildFinalizeResponse: z$1.ZodObject<{
@@ -344072,6 +344076,19 @@ declare const DTOSubscription: z$1.ZodObject<{
344072
344076
  errorReason: string;
344073
344077
  max?: number | undefined;
344074
344078
  }>;
344079
+ sandboxTemplates: z$1.ZodObject<{
344080
+ enabled: z$1.ZodBoolean;
344081
+ errorMessage: z$1.ZodString;
344082
+ errorReason: z$1.ZodString;
344083
+ }, "strip", z$1.ZodTypeAny, {
344084
+ errorMessage: string;
344085
+ errorReason: string;
344086
+ enabled: boolean;
344087
+ }, {
344088
+ errorMessage: string;
344089
+ errorReason: string;
344090
+ enabled: boolean;
344091
+ }>;
344075
344092
  }, "strip", z$1.ZodTypeAny, {
344076
344093
  analytics: {
344077
344094
  errorMessage: string;
@@ -344230,6 +344247,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344230
344247
  errorReason: string;
344231
344248
  max?: number | undefined;
344232
344249
  };
344250
+ sandboxTemplates: {
344251
+ errorMessage: string;
344252
+ errorReason: string;
344253
+ enabled: boolean;
344254
+ };
344233
344255
  }, {
344234
344256
  analytics: {
344235
344257
  errorMessage: string;
@@ -344388,6 +344410,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344388
344410
  errorReason: string;
344389
344411
  max?: number | undefined;
344390
344412
  };
344413
+ sandboxTemplates: {
344414
+ errorMessage: string;
344415
+ errorReason: string;
344416
+ enabled: boolean;
344417
+ };
344391
344418
  }>>;
344392
344419
  allowedRoles: z$1.ZodArray<z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>, "many">;
344393
344420
  /**
@@ -344640,6 +344667,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344640
344667
  errorReason: string;
344641
344668
  max?: number | undefined;
344642
344669
  };
344670
+ sandboxTemplates: {
344671
+ errorMessage: string;
344672
+ errorReason: string;
344673
+ enabled: boolean;
344674
+ };
344643
344675
  } | undefined;
344644
344676
  stripeSubscriptionMainItemId?: string | undefined;
344645
344677
  currentPeriodStart?: string | undefined;
@@ -344842,6 +344874,11 @@ declare const DTOSubscription: z$1.ZodObject<{
344842
344874
  errorReason: string;
344843
344875
  max?: number | undefined;
344844
344876
  };
344877
+ sandboxTemplates: {
344878
+ errorMessage: string;
344879
+ errorReason: string;
344880
+ enabled: boolean;
344881
+ };
344845
344882
  } | undefined;
344846
344883
  stripeSubscriptionMainItemId?: string | undefined;
344847
344884
  currentPeriodStart?: string | undefined;
@@ -345282,6 +345319,19 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345282
345319
  errorReason: string;
345283
345320
  max?: number | undefined;
345284
345321
  }>;
345322
+ sandboxTemplates: z$1.ZodObject<{
345323
+ enabled: z$1.ZodBoolean;
345324
+ errorMessage: z$1.ZodString;
345325
+ errorReason: z$1.ZodString;
345326
+ }, "strip", z$1.ZodTypeAny, {
345327
+ errorMessage: string;
345328
+ errorReason: string;
345329
+ enabled: boolean;
345330
+ }, {
345331
+ errorMessage: string;
345332
+ errorReason: string;
345333
+ enabled: boolean;
345334
+ }>;
345285
345335
  }, "strip", z$1.ZodTypeAny, {
345286
345336
  analytics: {
345287
345337
  errorMessage: string;
@@ -345440,6 +345490,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345440
345490
  errorReason: string;
345441
345491
  max?: number | undefined;
345442
345492
  };
345493
+ sandboxTemplates: {
345494
+ errorMessage: string;
345495
+ errorReason: string;
345496
+ enabled: boolean;
345497
+ };
345443
345498
  }, {
345444
345499
  analytics: {
345445
345500
  errorMessage: string;
@@ -345598,6 +345653,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345598
345653
  errorReason: string;
345599
345654
  max?: number | undefined;
345600
345655
  };
345656
+ sandboxTemplates: {
345657
+ errorMessage: string;
345658
+ errorReason: string;
345659
+ enabled: boolean;
345660
+ };
345601
345661
  }>>;
345602
345662
  allowedRoles: z$1.ZodArray<z$1.ZodEnum<["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]>, "many">;
345603
345663
  /**
@@ -345850,6 +345910,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
345850
345910
  errorReason: string;
345851
345911
  max?: number | undefined;
345852
345912
  };
345913
+ sandboxTemplates: {
345914
+ errorMessage: string;
345915
+ errorReason: string;
345916
+ enabled: boolean;
345917
+ };
345853
345918
  } | undefined;
345854
345919
  stripeSubscriptionMainItemId?: string | undefined;
345855
345920
  currentPeriodStart?: string | undefined;
@@ -346052,6 +346117,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346052
346117
  errorReason: string;
346053
346118
  max?: number | undefined;
346054
346119
  };
346120
+ sandboxTemplates: {
346121
+ errorMessage: string;
346122
+ errorReason: string;
346123
+ enabled: boolean;
346124
+ };
346055
346125
  } | undefined;
346056
346126
  stripeSubscriptionMainItemId?: string | undefined;
346057
346127
  currentPeriodStart?: string | undefined;
@@ -346425,6 +346495,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346425
346495
  errorReason: string;
346426
346496
  max?: number | undefined;
346427
346497
  };
346498
+ sandboxTemplates: {
346499
+ errorMessage: string;
346500
+ errorReason: string;
346501
+ enabled: boolean;
346502
+ };
346428
346503
  } | undefined;
346429
346504
  stripeSubscriptionMainItemId?: string | undefined;
346430
346505
  currentPeriodStart?: string | undefined;
@@ -346666,6 +346741,11 @@ declare const DTOSubscriptionResponse: z$1.ZodObject<{
346666
346741
  errorReason: string;
346667
346742
  max?: number | undefined;
346668
346743
  };
346744
+ sandboxTemplates: {
346745
+ errorMessage: string;
346746
+ errorReason: string;
346747
+ enabled: boolean;
346748
+ };
346669
346749
  } | undefined;
346670
346750
  stripeSubscriptionMainItemId?: string | undefined;
346671
346751
  currentPeriodStart?: string | undefined;
@@ -368602,9 +368682,9 @@ declare class SandboxTemplateBuildsEndpoint {
368602
368682
  error?: string | undefined;
368603
368683
  finishedAt?: string | undefined;
368604
368684
  };
368605
- dockerUrl: string;
368606
368685
  dockerRegistryDomain: string;
368607
- dockerAccessToken: string;
368686
+ dockerUrl?: string | undefined;
368687
+ dockerAccessToken?: string | undefined;
368608
368688
  }>;
368609
368689
  get(buildId: string): Promise<{
368610
368690
  build: {
@@ -369385,6 +369465,11 @@ declare class WorkspaceSubscriptionEndpoint {
369385
369465
  errorReason: string;
369386
369466
  max?: number | undefined;
369387
369467
  };
369468
+ sandboxTemplates: {
369469
+ errorMessage: string;
369470
+ errorReason: string;
369471
+ enabled: boolean;
369472
+ };
369388
369473
  } | undefined;
369389
369474
  stripeSubscriptionMainItemId?: string | undefined;
369390
369475
  currentPeriodStart?: string | undefined;
package/dist/index.js CHANGED
@@ -350,7 +350,8 @@ var FeaturesSummary = _zod.z.object({
350
350
  forgeActiveFeaturesPerProject: featureLimitedSchema,
351
351
  forgeActiveDocumentsPerProject: featureLimitedSchema,
352
352
  forgePrivateProjects: featureToggleSchema,
353
- forgeActiveProjectContexts: featureLimitedSchema
353
+ forgeActiveProjectContexts: featureLimitedSchema,
354
+ sandboxTemplates: featureToggleSchema
354
355
  });
355
356
  var InvoiceSchema = _zod.z.object({
356
357
  id: _zod.z.string(),
@@ -10961,13 +10962,15 @@ var DTOSandboxTemplateBuildCreateInput = _zod2.default.object({
10961
10962
  workspaceId: _zod2.default.string(),
10962
10963
  designSystemId: _zod2.default.string(),
10963
10964
  name: _zod2.default.string(),
10964
- version: _zod2.default.string()
10965
+ version: _zod2.default.string(),
10966
+ isExistingVersionUpdateAllowed: _zod2.default.boolean()
10965
10967
  });
10966
10968
  var DTOSandboxTemplateBuildCreateResponse = _zod2.default.object({
10967
10969
  /** @deprecated use domain + build.dockerImagePath */
10968
- dockerUrl: _zod2.default.string(),
10970
+ dockerUrl: _zod2.default.string().optional(),
10969
10971
  dockerRegistryDomain: _zod2.default.string(),
10970
- dockerAccessToken: _zod2.default.string(),
10972
+ /** @deprecated use docker-login endpoint */
10973
+ dockerAccessToken: _zod2.default.string().optional(),
10971
10974
  build: DTOSandboxTemplateBuild
10972
10975
  });
10973
10976
  var DTOSandboxTemplateBuildFinalizeResponse = _zod2.default.object({