@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.js CHANGED
@@ -5435,7 +5435,8 @@ var DesignSystemMembershipUpdates = _zod.z.object({
5435
5435
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
5436
5436
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
5437
5437
  removeUserIds: _zod.z.string().array().optional(),
5438
- deleteInvitationIds: _zod.z.string().array().optional()
5438
+ deleteInvitationIds: _zod.z.string().array().optional(),
5439
+ isDeveloperInvite: _zod.z.boolean().optional()
5439
5440
  });
5440
5441
 
5441
5442
  // ../model/src/dsm/pipelines/query.ts
@@ -6152,12 +6153,14 @@ var DesignSystemInviteEmailData = _zod.z.object({
6152
6153
  var WorkspaceInviteEmailRecipient = _zod.z.object({
6153
6154
  email: _zod.z.string(),
6154
6155
  role: WorkspaceRoleSchema,
6155
- seatType: WorkspaceSeatType
6156
+ seatType: WorkspaceSeatType,
6157
+ isDeveloperInvite: _zod.z.boolean().optional()
6156
6158
  });
6157
6159
  var WorkspaceInviteEmailData = _zod.z.object({
6158
6160
  workspace: Workspace,
6159
6161
  invitedBy: User,
6160
- documentationDomain: _zod.z.string().optional()
6162
+ documentationDomain: _zod.z.string().optional(),
6163
+ designSystemName: _zod.z.string().optional()
6161
6164
  });
6162
6165
 
6163
6166
  // ../model/src/events/base.ts
@@ -8015,6 +8018,7 @@ var DTOBillingSupportedModels = _zod2.default.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 = _zod.z.object({
8176
8180
  var DTOWorkspaceInvitationInput = _zod.z.object({
8177
8181
  email: _zod.z.string().email(),
8178
8182
  role: DTOWorkspaceRole,
8179
- seatType: DTOWorkspaceSeatType.optional()
8183
+ seatType: DTOWorkspaceSeatType.optional(),
8184
+ isDeveloperInvite: _zod.z.boolean().optional()
8180
8185
  });
8181
8186
  var DTOWorkspaceInvitationsListInput = _zod.z.object({
8182
8187
  invites: DTOWorkspaceInvitationInput.array().max(100),
@@ -11946,19 +11951,6 @@ var DTOForgeProject = _zod.z.object({
11946
11951
  updatedAt: _zod.z.coerce.date(),
11947
11952
  documents: DTOForgeProjectDocumentPreview.array(),
11948
11953
  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
11954
  liveblocksRoomId: _zod.z.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: _zod.z.string().optional(),
11976
11964
  projectContextId: _zod.z.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 response = await _nodefetch2.default.call(void 0, this.fullUrl(path, requestInit.query), {
14689
+ const fullUrl = this.fullUrl(path, requestInit.query);
14690
+ const response = await _nodefetch2.default.call(void 0, 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 = `https://${this.testServerConfig.host}/api/v2${path}`;
14719
+ let url = `${this.testServerConfig.baseUrl}/api/v2${path}`;
14731
14720
  const queryString = _optionalChain([query, 'optionalAccess', _40 => _40.toString, 'call', _41 => _41()]);
14732
14721
  if (queryString) url += `?${queryString}`;
14733
14722
  return url;
@@ -14753,7 +14742,7 @@ var SupernovaApiClient = class {
14753
14742
  const apiSecret = _nullishCoalesce(config.apiSecret, () => ( _optionalChain([process, 'optionalAccess', _42 => _42.env, 'optionalAccess', _43 => _43.SUPERNOVA_API_SECRET])));
14754
14743
  const requestExecutor = new RequestExecutor({
14755
14744
  apiSecret,
14756
- host: config.host,
14745
+ baseUrl: config.baseUrl,
14757
14746
  accessToken: config.accessToken
14758
14747
  });
14759
14748
  this.authTokens = new AuthTokensEndpoint(requestExecutor);