@supernova-studio/client 1.81.3 → 1.81.5

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
@@ -4471,6 +4471,7 @@ var FigmaExporterProcessedStylesSchema = z125.object({
4471
4471
  backgroundOrigin: z125.union([z125.literal("border-box"), z125.literal("padding-box"), z125.literal("content-box")]).optional(),
4472
4472
  opacity: z125.number().optional(),
4473
4473
  boxShadow: z125.string().optional(),
4474
+ textShadow: z125.string().optional(),
4474
4475
  filter: z125.string().optional(),
4475
4476
  backdropFilter: z125.string().optional(),
4476
4477
  mixBlendMode: z125.union([
@@ -4591,7 +4592,9 @@ var frameNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4591
4592
  });
4592
4593
  var textNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4593
4594
  type: z125.literal("TEXT"),
4594
- characters: z125.string()
4595
+ characters: z125.string(),
4596
+ lineTypes: z125.array(z125.union([z125.literal("NONE"), z125.literal("ORDERED"), z125.literal("UNORDERED")])).optional(),
4597
+ lineIndentations: z125.array(z125.number()).optional()
4595
4598
  });
4596
4599
  var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4597
4600
  type: z125.literal("SVG"),
@@ -6211,8 +6214,7 @@ var ExporterFunctionPayload = z203.object({
6211
6214
  exportContextId: z203.string(),
6212
6215
  designSystemId: z203.string(),
6213
6216
  workspaceId: z203.string(),
6214
- exporterId: z203.string(),
6215
- runnerType: z203.enum(["High", "Low"])
6217
+ exporterId: z203.string()
6216
6218
  });
6217
6219
 
6218
6220
  // ../model/src/export/export-jobs.ts
@@ -10713,6 +10715,15 @@ var DTOThreadMessageAttachments = z323.object({
10713
10715
  templateId: z323.string().optional(),
10714
10716
  figmaNodes: DTOForgeFigmaNode.array().optional()
10715
10717
  });
10718
+ var DTOThreadMessageAnnotations = z323.object({
10719
+ prompt: z323.string(),
10720
+ elements: z323.array(
10721
+ z323.object({
10722
+ xpath: z323.string(),
10723
+ line: z323.string()
10724
+ })
10725
+ )
10726
+ });
10716
10727
  var DTOThreadMessage = z323.object({
10717
10728
  id: Id,
10718
10729
  threadId: z323.string(),
@@ -10746,6 +10757,7 @@ var DTOThreadMessage = z323.object({
10746
10757
  */
10747
10758
  agentResponseTrackerId: Id.optional().nullable(),
10748
10759
  attachments: DTOThreadMessageAttachments.optional(),
10760
+ annotations: DTOThreadMessageAnnotations.optional(),
10749
10761
  /**
10750
10762
  * If defined, this message is considered to be a reply to different message
10751
10763
  */
@@ -10770,7 +10782,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10770
10782
  isPrompt: true,
10771
10783
  startsNewThread: true,
10772
10784
  parentMessageId: true,
10773
- promptMetadata: true
10785
+ promptMetadata: true,
10786
+ annotations: true
10774
10787
  }).extend({
10775
10788
  attachments: DTOThreadMessageAttachmentsCreateInput.optional()
10776
10789
  });
@@ -12312,6 +12325,27 @@ var DTOTrailEventClientCreate = z352.discriminatedUnion("type", [
12312
12325
  z352.object({ type: z352.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
12313
12326
  ]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
12314
12327
 
12328
+ // src/api/endpoints/auth-tokens.ts
12329
+ var AuthTokensEndpoint = class {
12330
+ constructor(requestExecutor) {
12331
+ this.requestExecutor = requestExecutor;
12332
+ }
12333
+ list() {
12334
+ return this.requestExecutor.json("/auth/tokens", DTOAccessTokenListResponse);
12335
+ }
12336
+ create(body) {
12337
+ return this.requestExecutor.json("/auth/tokens", DTOAccessTokenFullResponse, {
12338
+ method: "POST",
12339
+ body
12340
+ });
12341
+ }
12342
+ delete(id) {
12343
+ return this.requestExecutor.json(`/auth/tokens/${id}`, DTOAccessTokenResponse, {
12344
+ method: "DELETE"
12345
+ });
12346
+ }
12347
+ };
12348
+
12315
12349
  // src/api/endpoints/codegen/exporters.ts
12316
12350
  var ExportersEndpoint = class {
12317
12351
  constructor(requestExecutor) {
@@ -14399,6 +14433,7 @@ var RequestExecutor = class {
14399
14433
  var SupernovaApiClient = class {
14400
14434
  constructor(config) {
14401
14435
  this.config = config;
14436
+ __publicField(this, "authTokens");
14402
14437
  __publicField(this, "users");
14403
14438
  __publicField(this, "workspaces");
14404
14439
  __publicField(this, "designSystems");
@@ -14416,6 +14451,7 @@ var SupernovaApiClient = class {
14416
14451
  host: config.host,
14417
14452
  accessToken: config.accessToken
14418
14453
  });
14454
+ this.authTokens = new AuthTokensEndpoint(requestExecutor);
14419
14455
  this.users = new UsersEndpoint(requestExecutor);
14420
14456
  this.workspaces = new WorkspacesEndpoint(requestExecutor);
14421
14457
  this.designSystems = new DesignSystemsEndpoint(requestExecutor);
@@ -20747,6 +20783,7 @@ var TransactionQueue2 = class {
20747
20783
  }
20748
20784
  };
20749
20785
  export {
20786
+ AuthTokensEndpoint,
20750
20787
  BackendFeatureRoomYDoc,
20751
20788
  BackendForgeProjectRoomYDoc,
20752
20789
  BackendThreadRoomYDoc,
@@ -21462,6 +21499,7 @@ export {
21462
21499
  DTOThreadEventReactionsSent,
21463
21500
  DTOThreadMessage,
21464
21501
  DTOThreadMessageAgentSender,
21502
+ DTOThreadMessageAnnotations,
21465
21503
  DTOThreadMessageAttachments,
21466
21504
  DTOThreadMessageAttachmentsCreateInput,
21467
21505
  DTOThreadMessageCreateInput,