@supernova-studio/client 1.95.4 → 1.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -8015,6 +8015,7 @@ var DTOBillingSupportedModels = z249.enum([
8015
8015
  "GPT_5_2_CODEX",
8016
8016
  "GPT_5_3_CODEX",
8017
8017
  "GPT_5_4",
8018
+ "GPT_5_5",
8018
8019
  // Claude models
8019
8020
  "CLAUDE_OPUS_4_0",
8020
8021
  "CLAUDE_OPUS_4_1",
@@ -10787,9 +10788,10 @@ var DTOForgeFigmaNodeConversionVersion = z327.enum([
10787
10788
  "V8",
10788
10789
  "V9",
10789
10790
  "V10",
10790
- "V11"
10791
+ "V11",
10792
+ "V12"
10791
10793
  ]);
10792
- var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.V11;
10794
+ var ForgeFigmaNodeLatestVersion = DTOForgeFigmaNodeConversionVersion.enum.V12;
10793
10795
  var DTOForgeFigmaNodeOrigin = z327.object({
10794
10796
  /**
10795
10797
  * Figma file ID that was passed into the create request as a part of the Figma node URL
@@ -11945,19 +11947,6 @@ var DTOForgeProject = z345.object({
11945
11947
  updatedAt: z345.coerce.date(),
11946
11948
  documents: DTOForgeProjectDocumentPreview.array(),
11947
11949
  features: DTOForgeProjectFeaturePreview.array(),
11948
- /** @deprecated use `projectContextId` */
11949
- fpContextId: z345.string(),
11950
- /** @deprecated use `name` and `description` properties on project */
11951
- meta: z345.object({
11952
- name: z345.string(),
11953
- description: z345.string().optional()
11954
- }),
11955
- /** @deprecated use features.length */
11956
- numberOfFeatures: z345.number().int().nonnegative(),
11957
- /** @deprecated use documents.length */
11958
- numberOfDocuments: z345.number().int().nonnegative().optional(),
11959
- /** @deprecated prefer fetching from project contexts endpoint separately */
11960
- context: DTOForgeProjectContextV2.optional(),
11961
11950
  liveblocksRoomId: z345.string().optional()
11962
11951
  });
11963
11952
  var DTOForgeProjectCreate = DTOForgeProject.pick({
@@ -11968,10 +11957,6 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
11968
11957
  emoji: true,
11969
11958
  tokenThemeSetId: true
11970
11959
  }).extend({
11971
- /** @deprecated use `name` and `description` properties on project */
11972
- meta: DTOForgeProject.shape.meta.optional(),
11973
- /** @deprecated use `projectContextId` */
11974
- fpContextId: z345.string().optional(),
11975
11960
  projectContextId: z345.string().optional(),
11976
11961
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
11977
11962
  initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
@@ -14697,7 +14682,8 @@ var RequestExecutor = class {
14697
14682
  }
14698
14683
  let body;
14699
14684
  if (requestInit.body && typeof requestInit.body === "object") body = JSON.stringify(requestInit.body);
14700
- const response = await fetch(this.fullUrl(path, requestInit.query), {
14685
+ const fullUrl = this.fullUrl(path, requestInit.query);
14686
+ const response = await fetch(fullUrl, {
14701
14687
  ...requestInit,
14702
14688
  headers: {
14703
14689
  ...requestInit.headers,
@@ -14726,7 +14712,7 @@ var RequestExecutor = class {
14726
14712
  return responseParseResult.data;
14727
14713
  }
14728
14714
  fullUrl(path, query) {
14729
- let url = `https://${this.testServerConfig.host}/api/v2${path}`;
14715
+ let url = `${this.testServerConfig.baseUrl}/api/v2${path}`;
14730
14716
  const queryString = query?.toString();
14731
14717
  if (queryString) url += `?${queryString}`;
14732
14718
  return url;
@@ -14752,7 +14738,7 @@ var SupernovaApiClient = class {
14752
14738
  const apiSecret = config.apiSecret ?? process?.env?.SUPERNOVA_API_SECRET;
14753
14739
  const requestExecutor = new RequestExecutor({
14754
14740
  apiSecret,
14755
- host: config.host,
14741
+ baseUrl: config.baseUrl,
14756
14742
  accessToken: config.accessToken
14757
14743
  });
14758
14744
  this.authTokens = new AuthTokensEndpoint(requestExecutor);