@supernova-studio/client 1.95.5 → 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",
@@ -11946,19 +11947,6 @@ var DTOForgeProject = z345.object({
11946
11947
  updatedAt: z345.coerce.date(),
11947
11948
  documents: DTOForgeProjectDocumentPreview.array(),
11948
11949
  features: DTOForgeProjectFeaturePreview.array(),
11949
- /** @deprecated use `projectContextId` */
11950
- fpContextId: z345.string(),
11951
- /** @deprecated use `name` and `description` properties on project */
11952
- meta: z345.object({
11953
- name: z345.string(),
11954
- description: z345.string().optional()
11955
- }),
11956
- /** @deprecated use features.length */
11957
- numberOfFeatures: z345.number().int().nonnegative(),
11958
- /** @deprecated use documents.length */
11959
- numberOfDocuments: z345.number().int().nonnegative().optional(),
11960
- /** @deprecated prefer fetching from project contexts endpoint separately */
11961
- context: DTOForgeProjectContextV2.optional(),
11962
11950
  liveblocksRoomId: z345.string().optional()
11963
11951
  });
11964
11952
  var DTOForgeProjectCreate = DTOForgeProject.pick({
@@ -11969,10 +11957,6 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
11969
11957
  emoji: true,
11970
11958
  tokenThemeSetId: true
11971
11959
  }).extend({
11972
- /** @deprecated use `name` and `description` properties on project */
11973
- meta: DTOForgeProject.shape.meta.optional(),
11974
- /** @deprecated use `projectContextId` */
11975
- fpContextId: z345.string().optional(),
11976
11960
  projectContextId: z345.string().optional(),
11977
11961
  membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
11978
11962
  initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
@@ -14698,7 +14682,8 @@ var RequestExecutor = class {
14698
14682
  }
14699
14683
  let body;
14700
14684
  if (requestInit.body && typeof requestInit.body === "object") body = JSON.stringify(requestInit.body);
14701
- const response = await fetch(this.fullUrl(path, requestInit.query), {
14685
+ const fullUrl = this.fullUrl(path, requestInit.query);
14686
+ const response = await fetch(fullUrl, {
14702
14687
  ...requestInit,
14703
14688
  headers: {
14704
14689
  ...requestInit.headers,
@@ -14727,7 +14712,7 @@ var RequestExecutor = class {
14727
14712
  return responseParseResult.data;
14728
14713
  }
14729
14714
  fullUrl(path, query) {
14730
- let url = `https://${this.testServerConfig.host}/api/v2${path}`;
14715
+ let url = `${this.testServerConfig.baseUrl}/api/v2${path}`;
14731
14716
  const queryString = query?.toString();
14732
14717
  if (queryString) url += `?${queryString}`;
14733
14718
  return url;
@@ -14753,7 +14738,7 @@ var SupernovaApiClient = class {
14753
14738
  const apiSecret = config.apiSecret ?? process?.env?.SUPERNOVA_API_SECRET;
14754
14739
  const requestExecutor = new RequestExecutor({
14755
14740
  apiSecret,
14756
- host: config.host,
14741
+ baseUrl: config.baseUrl,
14757
14742
  accessToken: config.accessToken
14758
14743
  });
14759
14744
  this.authTokens = new AuthTokensEndpoint(requestExecutor);