@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.d.mts +65577 -115347
- package/dist/index.d.ts +65577 -115347
- package/dist/index.js +5 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8015,6 +8015,7 @@ var DTOBillingSupportedModels = _zod2.default.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 = _zod.z.object({
|
|
|
11946
11947
|
updatedAt: _zod.z.coerce.date(),
|
|
11947
11948
|
documents: DTOForgeProjectDocumentPreview.array(),
|
|
11948
11949
|
features: DTOForgeProjectFeaturePreview.array(),
|
|
11949
|
-
/** @deprecated use `projectContextId` */
|
|
11950
|
-
fpContextId: _zod.z.string(),
|
|
11951
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
11952
|
-
meta: _zod.z.object({
|
|
11953
|
-
name: _zod.z.string(),
|
|
11954
|
-
description: _zod.z.string().optional()
|
|
11955
|
-
}),
|
|
11956
|
-
/** @deprecated use features.length */
|
|
11957
|
-
numberOfFeatures: _zod.z.number().int().nonnegative(),
|
|
11958
|
-
/** @deprecated use documents.length */
|
|
11959
|
-
numberOfDocuments: _zod.z.number().int().nonnegative().optional(),
|
|
11960
|
-
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
11961
|
-
context: DTOForgeProjectContextV2.optional(),
|
|
11962
11950
|
liveblocksRoomId: _zod.z.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: _zod.z.string().optional(),
|
|
11976
11960
|
projectContextId: _zod.z.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
|
|
14685
|
+
const fullUrl = this.fullUrl(path, requestInit.query);
|
|
14686
|
+
const response = await _nodefetch2.default.call(void 0, 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 =
|
|
14715
|
+
let url = `${this.testServerConfig.baseUrl}/api/v2${path}`;
|
|
14731
14716
|
const queryString = _optionalChain([query, 'optionalAccess', _40 => _40.toString, 'call', _41 => _41()]);
|
|
14732
14717
|
if (queryString) url += `?${queryString}`;
|
|
14733
14718
|
return url;
|
|
@@ -14753,7 +14738,7 @@ var SupernovaApiClient = class {
|
|
|
14753
14738
|
const apiSecret = _nullishCoalesce(config.apiSecret, () => ( _optionalChain([process, 'optionalAccess', _42 => _42.env, 'optionalAccess', _43 => _43.SUPERNOVA_API_SECRET])));
|
|
14754
14739
|
const requestExecutor = new RequestExecutor({
|
|
14755
14740
|
apiSecret,
|
|
14756
|
-
|
|
14741
|
+
baseUrl: config.baseUrl,
|
|
14757
14742
|
accessToken: config.accessToken
|
|
14758
14743
|
});
|
|
14759
14744
|
this.authTokens = new AuthTokensEndpoint(requestExecutor);
|