@supernova-studio/client 1.95.5 → 1.96.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 +64024 -113782
- package/dist/index.d.ts +64024 -113782
- package/dist/index.js +13 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5435,7 +5435,8 @@ var DesignSystemMembershipUpdates = z168.object({
|
|
|
5435
5435
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
5436
5436
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
5437
5437
|
removeUserIds: z168.string().array().optional(),
|
|
5438
|
-
deleteInvitationIds: z168.string().array().optional()
|
|
5438
|
+
deleteInvitationIds: z168.string().array().optional(),
|
|
5439
|
+
isDeveloperInvite: z168.boolean().optional()
|
|
5439
5440
|
});
|
|
5440
5441
|
|
|
5441
5442
|
// ../model/src/dsm/pipelines/query.ts
|
|
@@ -6152,12 +6153,14 @@ import { z as z199 } from "zod";
|
|
|
6152
6153
|
var WorkspaceInviteEmailRecipient = z199.object({
|
|
6153
6154
|
email: z199.string(),
|
|
6154
6155
|
role: WorkspaceRoleSchema,
|
|
6155
|
-
seatType: WorkspaceSeatType
|
|
6156
|
+
seatType: WorkspaceSeatType,
|
|
6157
|
+
isDeveloperInvite: z199.boolean().optional()
|
|
6156
6158
|
});
|
|
6157
6159
|
var WorkspaceInviteEmailData = z199.object({
|
|
6158
6160
|
workspace: Workspace,
|
|
6159
6161
|
invitedBy: User,
|
|
6160
|
-
documentationDomain: z199.string().optional()
|
|
6162
|
+
documentationDomain: z199.string().optional(),
|
|
6163
|
+
designSystemName: z199.string().optional()
|
|
6161
6164
|
});
|
|
6162
6165
|
|
|
6163
6166
|
// ../model/src/events/base.ts
|
|
@@ -8015,6 +8018,7 @@ var DTOBillingSupportedModels = z249.enum([
|
|
|
8015
8018
|
"GPT_5_2_CODEX",
|
|
8016
8019
|
"GPT_5_3_CODEX",
|
|
8017
8020
|
"GPT_5_4",
|
|
8021
|
+
"GPT_5_5",
|
|
8018
8022
|
// Claude models
|
|
8019
8023
|
"CLAUDE_OPUS_4_0",
|
|
8020
8024
|
"CLAUDE_OPUS_4_1",
|
|
@@ -8176,7 +8180,8 @@ var DTOWorkspaceInvitation = z252.object({
|
|
|
8176
8180
|
var DTOWorkspaceInvitationInput = z252.object({
|
|
8177
8181
|
email: z252.string().email(),
|
|
8178
8182
|
role: DTOWorkspaceRole,
|
|
8179
|
-
seatType: DTOWorkspaceSeatType.optional()
|
|
8183
|
+
seatType: DTOWorkspaceSeatType.optional(),
|
|
8184
|
+
isDeveloperInvite: z252.boolean().optional()
|
|
8180
8185
|
});
|
|
8181
8186
|
var DTOWorkspaceInvitationsListInput = z252.object({
|
|
8182
8187
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
@@ -11946,19 +11951,6 @@ var DTOForgeProject = z345.object({
|
|
|
11946
11951
|
updatedAt: z345.coerce.date(),
|
|
11947
11952
|
documents: DTOForgeProjectDocumentPreview.array(),
|
|
11948
11953
|
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
11954
|
liveblocksRoomId: z345.string().optional()
|
|
11963
11955
|
});
|
|
11964
11956
|
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
@@ -11969,10 +11961,6 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
11969
11961
|
emoji: true,
|
|
11970
11962
|
tokenThemeSetId: true
|
|
11971
11963
|
}).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
11964
|
projectContextId: z345.string().optional(),
|
|
11977
11965
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
11978
11966
|
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
@@ -14698,7 +14686,8 @@ var RequestExecutor = class {
|
|
|
14698
14686
|
}
|
|
14699
14687
|
let body;
|
|
14700
14688
|
if (requestInit.body && typeof requestInit.body === "object") body = JSON.stringify(requestInit.body);
|
|
14701
|
-
const
|
|
14689
|
+
const fullUrl = this.fullUrl(path, requestInit.query);
|
|
14690
|
+
const response = await fetch(fullUrl, {
|
|
14702
14691
|
...requestInit,
|
|
14703
14692
|
headers: {
|
|
14704
14693
|
...requestInit.headers,
|
|
@@ -14727,7 +14716,7 @@ var RequestExecutor = class {
|
|
|
14727
14716
|
return responseParseResult.data;
|
|
14728
14717
|
}
|
|
14729
14718
|
fullUrl(path, query) {
|
|
14730
|
-
let url =
|
|
14719
|
+
let url = `${this.testServerConfig.baseUrl}/api/v2${path}`;
|
|
14731
14720
|
const queryString = query?.toString();
|
|
14732
14721
|
if (queryString) url += `?${queryString}`;
|
|
14733
14722
|
return url;
|
|
@@ -14753,7 +14742,7 @@ var SupernovaApiClient = class {
|
|
|
14753
14742
|
const apiSecret = config.apiSecret ?? process?.env?.SUPERNOVA_API_SECRET;
|
|
14754
14743
|
const requestExecutor = new RequestExecutor({
|
|
14755
14744
|
apiSecret,
|
|
14756
|
-
|
|
14745
|
+
baseUrl: config.baseUrl,
|
|
14757
14746
|
accessToken: config.accessToken
|
|
14758
14747
|
});
|
|
14759
14748
|
this.authTokens = new AuthTokensEndpoint(requestExecutor);
|