@supernova-studio/client 1.37.5 → 1.37.6

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.ts CHANGED
@@ -1746,6 +1746,7 @@ declare const DTOCodeComponent: z$1.ZodObject<{
1746
1746
  updatedAt: Date;
1747
1747
  persistentId: string;
1748
1748
  description: string;
1749
+ tags: Record<string, string> | null;
1749
1750
  properties: Record<string, {
1750
1751
  name: string;
1751
1752
  description: string;
@@ -1758,7 +1759,6 @@ declare const DTOCodeComponent: z$1.ZodObject<{
1758
1759
  fileName: string;
1759
1760
  }[] | undefined;
1760
1761
  }>;
1761
- tags: Record<string, string> | null;
1762
1762
  designSystemVersionId: string;
1763
1763
  exportName: string;
1764
1764
  componentPath: string;
@@ -1768,6 +1768,7 @@ declare const DTOCodeComponent: z$1.ZodObject<{
1768
1768
  updatedAt: Date;
1769
1769
  persistentId: string;
1770
1770
  description: string;
1771
+ tags: Record<string, string> | null;
1771
1772
  properties: Record<string, {
1772
1773
  name: string;
1773
1774
  description: string;
@@ -1780,7 +1781,6 @@ declare const DTOCodeComponent: z$1.ZodObject<{
1780
1781
  fileName: string;
1781
1782
  }[] | undefined;
1782
1783
  }>;
1783
- tags: Record<string, string> | null;
1784
1784
  designSystemVersionId: string;
1785
1785
  exportName: string;
1786
1786
  componentPath: string;
@@ -1843,6 +1843,7 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1843
1843
  updatedAt: Date;
1844
1844
  persistentId: string;
1845
1845
  description: string;
1846
+ tags: Record<string, string> | null;
1846
1847
  properties: Record<string, {
1847
1848
  name: string;
1848
1849
  description: string;
@@ -1855,7 +1856,6 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1855
1856
  fileName: string;
1856
1857
  }[] | undefined;
1857
1858
  }>;
1858
- tags: Record<string, string> | null;
1859
1859
  designSystemVersionId: string;
1860
1860
  exportName: string;
1861
1861
  componentPath: string;
@@ -1865,6 +1865,7 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1865
1865
  updatedAt: Date;
1866
1866
  persistentId: string;
1867
1867
  description: string;
1868
+ tags: Record<string, string> | null;
1868
1869
  properties: Record<string, {
1869
1870
  name: string;
1870
1871
  description: string;
@@ -1877,7 +1878,6 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1877
1878
  fileName: string;
1878
1879
  }[] | undefined;
1879
1880
  }>;
1880
- tags: Record<string, string> | null;
1881
1881
  designSystemVersionId: string;
1882
1882
  exportName: string;
1883
1883
  componentPath: string;
@@ -1889,6 +1889,7 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1889
1889
  updatedAt: Date;
1890
1890
  persistentId: string;
1891
1891
  description: string;
1892
+ tags: Record<string, string> | null;
1892
1893
  properties: Record<string, {
1893
1894
  name: string;
1894
1895
  description: string;
@@ -1901,7 +1902,6 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1901
1902
  fileName: string;
1902
1903
  }[] | undefined;
1903
1904
  }>;
1904
- tags: Record<string, string> | null;
1905
1905
  designSystemVersionId: string;
1906
1906
  exportName: string;
1907
1907
  componentPath: string;
@@ -1913,6 +1913,7 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1913
1913
  updatedAt: Date;
1914
1914
  persistentId: string;
1915
1915
  description: string;
1916
+ tags: Record<string, string> | null;
1916
1917
  properties: Record<string, {
1917
1918
  name: string;
1918
1919
  description: string;
@@ -1925,7 +1926,6 @@ declare const DTOCodeComponentResponse: z$1.ZodObject<{
1925
1926
  fileName: string;
1926
1927
  }[] | undefined;
1927
1928
  }>;
1928
- tags: Record<string, string> | null;
1929
1929
  designSystemVersionId: string;
1930
1930
  exportName: string;
1931
1931
  componentPath: string;
@@ -1989,6 +1989,7 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
1989
1989
  updatedAt: Date;
1990
1990
  persistentId: string;
1991
1991
  description: string;
1992
+ tags: Record<string, string> | null;
1992
1993
  properties: Record<string, {
1993
1994
  name: string;
1994
1995
  description: string;
@@ -2001,7 +2002,6 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2001
2002
  fileName: string;
2002
2003
  }[] | undefined;
2003
2004
  }>;
2004
- tags: Record<string, string> | null;
2005
2005
  designSystemVersionId: string;
2006
2006
  exportName: string;
2007
2007
  componentPath: string;
@@ -2011,6 +2011,7 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2011
2011
  updatedAt: Date;
2012
2012
  persistentId: string;
2013
2013
  description: string;
2014
+ tags: Record<string, string> | null;
2014
2015
  properties: Record<string, {
2015
2016
  name: string;
2016
2017
  description: string;
@@ -2023,7 +2024,6 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2023
2024
  fileName: string;
2024
2025
  }[] | undefined;
2025
2026
  }>;
2026
- tags: Record<string, string> | null;
2027
2027
  designSystemVersionId: string;
2028
2028
  exportName: string;
2029
2029
  componentPath: string;
@@ -2035,6 +2035,7 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2035
2035
  updatedAt: Date;
2036
2036
  persistentId: string;
2037
2037
  description: string;
2038
+ tags: Record<string, string> | null;
2038
2039
  properties: Record<string, {
2039
2040
  name: string;
2040
2041
  description: string;
@@ -2047,7 +2048,6 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2047
2048
  fileName: string;
2048
2049
  }[] | undefined;
2049
2050
  }>;
2050
- tags: Record<string, string> | null;
2051
2051
  designSystemVersionId: string;
2052
2052
  exportName: string;
2053
2053
  componentPath: string;
@@ -2059,6 +2059,7 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2059
2059
  updatedAt: Date;
2060
2060
  persistentId: string;
2061
2061
  description: string;
2062
+ tags: Record<string, string> | null;
2062
2063
  properties: Record<string, {
2063
2064
  name: string;
2064
2065
  description: string;
@@ -2071,7 +2072,6 @@ declare const DTOCodeComponentListResponse: z$1.ZodObject<{
2071
2072
  fileName: string;
2072
2073
  }[] | undefined;
2073
2074
  }>;
2074
- tags: Record<string, string> | null;
2075
2075
  designSystemVersionId: string;
2076
2076
  exportName: string;
2077
2077
  componentPath: string;
@@ -101931,6 +101931,19 @@ declare const DTOForgeChatMessage: z$1.ZodObject<{
101931
101931
  }, {
101932
101932
  type: "FunctionCallOutput";
101933
101933
  }>]>;
101934
+ userScore: z$1.ZodOptional<z$1.ZodObject<{
101935
+ type: z$1.ZodEnum<["Positive", "Negative"]>;
101936
+ tags: z$1.ZodArray<z$1.ZodString, "many">;
101937
+ comment: z$1.ZodOptional<z$1.ZodString>;
101938
+ }, "strip", z$1.ZodTypeAny, {
101939
+ type: "Positive" | "Negative";
101940
+ tags: string[];
101941
+ comment?: string | undefined;
101942
+ }, {
101943
+ type: "Positive" | "Negative";
101944
+ tags: string[];
101945
+ comment?: string | undefined;
101946
+ }>>;
101934
101947
  }, "strip", z$1.ZodTypeAny, {
101935
101948
  id: string;
101936
101949
  createdAt: Date;
@@ -101951,6 +101964,11 @@ declare const DTOForgeChatMessage: z$1.ZodObject<{
101951
101964
  type: "FunctionCallOutput";
101952
101965
  };
101953
101966
  opikTraceId?: string | undefined;
101967
+ userScore?: {
101968
+ type: "Positive" | "Negative";
101969
+ tags: string[];
101970
+ comment?: string | undefined;
101971
+ } | undefined;
101954
101972
  }, {
101955
101973
  id: string;
101956
101974
  createdAt: Date;
@@ -101971,6 +101989,11 @@ declare const DTOForgeChatMessage: z$1.ZodObject<{
101971
101989
  type: "FunctionCallOutput";
101972
101990
  };
101973
101991
  opikTraceId?: string | undefined;
101992
+ userScore?: {
101993
+ type: "Positive" | "Negative";
101994
+ tags: string[];
101995
+ comment?: string | undefined;
101996
+ } | undefined;
101974
101997
  }>;
101975
101998
  type DTOForgeChatMessage = z$1.infer<typeof DTOForgeChatMessage>;
101976
101999
  declare const DTOForgeChatThread: z$1.ZodObject<{
@@ -102369,6 +102392,19 @@ declare const DTOForgeChatMessageCreateResponse: z$1.ZodObject<{
102369
102392
  }, {
102370
102393
  type: "FunctionCallOutput";
102371
102394
  }>]>;
102395
+ userScore: z$1.ZodOptional<z$1.ZodObject<{
102396
+ type: z$1.ZodEnum<["Positive", "Negative"]>;
102397
+ tags: z$1.ZodArray<z$1.ZodString, "many">;
102398
+ comment: z$1.ZodOptional<z$1.ZodString>;
102399
+ }, "strip", z$1.ZodTypeAny, {
102400
+ type: "Positive" | "Negative";
102401
+ tags: string[];
102402
+ comment?: string | undefined;
102403
+ }, {
102404
+ type: "Positive" | "Negative";
102405
+ tags: string[];
102406
+ comment?: string | undefined;
102407
+ }>>;
102372
102408
  }, "strip", z$1.ZodTypeAny, {
102373
102409
  id: string;
102374
102410
  createdAt: Date;
@@ -102389,6 +102425,11 @@ declare const DTOForgeChatMessageCreateResponse: z$1.ZodObject<{
102389
102425
  type: "FunctionCallOutput";
102390
102426
  };
102391
102427
  opikTraceId?: string | undefined;
102428
+ userScore?: {
102429
+ type: "Positive" | "Negative";
102430
+ tags: string[];
102431
+ comment?: string | undefined;
102432
+ } | undefined;
102392
102433
  }, {
102393
102434
  id: string;
102394
102435
  createdAt: Date;
@@ -102409,6 +102450,11 @@ declare const DTOForgeChatMessageCreateResponse: z$1.ZodObject<{
102409
102450
  type: "FunctionCallOutput";
102410
102451
  };
102411
102452
  opikTraceId?: string | undefined;
102453
+ userScore?: {
102454
+ type: "Positive" | "Negative";
102455
+ tags: string[];
102456
+ comment?: string | undefined;
102457
+ } | undefined;
102412
102458
  }>;
102413
102459
  }, "strip", z$1.ZodTypeAny, {
102414
102460
  message: {
@@ -102431,6 +102477,11 @@ declare const DTOForgeChatMessageCreateResponse: z$1.ZodObject<{
102431
102477
  type: "FunctionCallOutput";
102432
102478
  };
102433
102479
  opikTraceId?: string | undefined;
102480
+ userScore?: {
102481
+ type: "Positive" | "Negative";
102482
+ tags: string[];
102483
+ comment?: string | undefined;
102484
+ } | undefined;
102434
102485
  };
102435
102486
  }, {
102436
102487
  message: {
@@ -102453,6 +102504,11 @@ declare const DTOForgeChatMessageCreateResponse: z$1.ZodObject<{
102453
102504
  type: "FunctionCallOutput";
102454
102505
  };
102455
102506
  opikTraceId?: string | undefined;
102507
+ userScore?: {
102508
+ type: "Positive" | "Negative";
102509
+ tags: string[];
102510
+ comment?: string | undefined;
102511
+ } | undefined;
102456
102512
  };
102457
102513
  }>;
102458
102514
  type DTOForgeChatMessageCreateResponse = z$1.infer<typeof DTOForgeChatMessageCreateResponse>;
@@ -102518,6 +102574,19 @@ declare const DTOForgeChatMessageListResponse: z$1.ZodObject<{
102518
102574
  }, {
102519
102575
  type: "FunctionCallOutput";
102520
102576
  }>]>;
102577
+ userScore: z$1.ZodOptional<z$1.ZodObject<{
102578
+ type: z$1.ZodEnum<["Positive", "Negative"]>;
102579
+ tags: z$1.ZodArray<z$1.ZodString, "many">;
102580
+ comment: z$1.ZodOptional<z$1.ZodString>;
102581
+ }, "strip", z$1.ZodTypeAny, {
102582
+ type: "Positive" | "Negative";
102583
+ tags: string[];
102584
+ comment?: string | undefined;
102585
+ }, {
102586
+ type: "Positive" | "Negative";
102587
+ tags: string[];
102588
+ comment?: string | undefined;
102589
+ }>>;
102521
102590
  }, "strip", z$1.ZodTypeAny, {
102522
102591
  id: string;
102523
102592
  createdAt: Date;
@@ -102538,6 +102607,11 @@ declare const DTOForgeChatMessageListResponse: z$1.ZodObject<{
102538
102607
  type: "FunctionCallOutput";
102539
102608
  };
102540
102609
  opikTraceId?: string | undefined;
102610
+ userScore?: {
102611
+ type: "Positive" | "Negative";
102612
+ tags: string[];
102613
+ comment?: string | undefined;
102614
+ } | undefined;
102541
102615
  }, {
102542
102616
  id: string;
102543
102617
  createdAt: Date;
@@ -102558,6 +102632,11 @@ declare const DTOForgeChatMessageListResponse: z$1.ZodObject<{
102558
102632
  type: "FunctionCallOutput";
102559
102633
  };
102560
102634
  opikTraceId?: string | undefined;
102635
+ userScore?: {
102636
+ type: "Positive" | "Negative";
102637
+ tags: string[];
102638
+ comment?: string | undefined;
102639
+ } | undefined;
102561
102640
  }>, "many">;
102562
102641
  totalCount: z$1.ZodNumber;
102563
102642
  hasMore: z$1.ZodBoolean;
@@ -102582,6 +102661,11 @@ declare const DTOForgeChatMessageListResponse: z$1.ZodObject<{
102582
102661
  type: "FunctionCallOutput";
102583
102662
  };
102584
102663
  opikTraceId?: string | undefined;
102664
+ userScore?: {
102665
+ type: "Positive" | "Negative";
102666
+ tags: string[];
102667
+ comment?: string | undefined;
102668
+ } | undefined;
102585
102669
  }[];
102586
102670
  totalCount: number;
102587
102671
  hasMore: boolean;
@@ -102606,6 +102690,11 @@ declare const DTOForgeChatMessageListResponse: z$1.ZodObject<{
102606
102690
  type: "FunctionCallOutput";
102607
102691
  };
102608
102692
  opikTraceId?: string | undefined;
102693
+ userScore?: {
102694
+ type: "Positive" | "Negative";
102695
+ tags: string[];
102696
+ comment?: string | undefined;
102697
+ } | undefined;
102609
102698
  }[];
102610
102699
  totalCount: number;
102611
102700
  hasMore: boolean;
@@ -136132,6 +136221,7 @@ declare class CodeComponentsEndpoint {
136132
136221
  updatedAt: Date;
136133
136222
  persistentId: string;
136134
136223
  description: string;
136224
+ tags: Record<string, string> | null;
136135
136225
  properties: Record<string, {
136136
136226
  name: string;
136137
136227
  description: string;
@@ -136144,7 +136234,6 @@ declare class CodeComponentsEndpoint {
136144
136234
  fileName: string;
136145
136235
  }[] | undefined;
136146
136236
  }>;
136147
- tags: Record<string, string> | null;
136148
136237
  designSystemVersionId: string;
136149
136238
  exportName: string;
136150
136239
  componentPath: string;
@@ -136157,6 +136246,7 @@ declare class CodeComponentsEndpoint {
136157
136246
  updatedAt: Date;
136158
136247
  persistentId: string;
136159
136248
  description: string;
136249
+ tags: Record<string, string> | null;
136160
136250
  properties: Record<string, {
136161
136251
  name: string;
136162
136252
  description: string;
@@ -136169,7 +136259,6 @@ declare class CodeComponentsEndpoint {
136169
136259
  fileName: string;
136170
136260
  }[] | undefined;
136171
136261
  }>;
136172
- tags: Record<string, string> | null;
136173
136262
  designSystemVersionId: string;
136174
136263
  exportName: string;
136175
136264
  componentPath: string;
@@ -142812,6 +142901,11 @@ declare class ChatThreadMessagesEndpoint {
142812
142901
  type: "FunctionCallOutput";
142813
142902
  };
142814
142903
  opikTraceId?: string | undefined;
142904
+ userScore?: {
142905
+ type: "Positive" | "Negative";
142906
+ tags: string[];
142907
+ comment?: string | undefined;
142908
+ } | undefined;
142815
142909
  }[];
142816
142910
  totalCount: number;
142817
142911
  hasMore: boolean;
@@ -142837,6 +142931,11 @@ declare class ChatThreadMessagesEndpoint {
142837
142931
  type: "FunctionCallOutput";
142838
142932
  };
142839
142933
  opikTraceId?: string | undefined;
142934
+ userScore?: {
142935
+ type: "Positive" | "Negative";
142936
+ tags: string[];
142937
+ comment?: string | undefined;
142938
+ } | undefined;
142840
142939
  };
142841
142940
  }>;
142842
142941
  score(workspaceId: string, threadId: string, body: z$1.input<typeof DTOForgeChatMessageScoreRequest>): Promise<any>;
package/dist/index.js CHANGED
@@ -460,6 +460,12 @@ var ForgeChatMessageSender = _zod.z.discriminatedUnion("type", [
460
460
  _zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.FunctionCallInput) }),
461
461
  _zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.FunctionCallOutput) })
462
462
  ]);
463
+ var ForgeChatMessageUserScoreType = _zod.z.enum(["Positive", "Negative"]);
464
+ var ForgeChatMessageUserScore = _zod.z.object({
465
+ type: ForgeChatMessageUserScoreType,
466
+ tags: _zod.z.string().array(),
467
+ comment: _zod.z.string().optional()
468
+ });
463
469
  var ForgeChatMessage = _zod.z.object({
464
470
  id: _zod.z.string(),
465
471
  threadId: _zod.z.string(),
@@ -467,7 +473,8 @@ var ForgeChatMessage = _zod.z.object({
467
473
  createdAt: _zod.z.coerce.date(),
468
474
  updatedAt: _zod.z.coerce.date(),
469
475
  opikTraceId: _zod.z.string().optional(),
470
- sender: ForgeChatMessageSender
476
+ sender: ForgeChatMessageSender,
477
+ userScore: ForgeChatMessageUserScore.optional()
471
478
  });
472
479
  var ForgeChatThread = _zod.z.object({
473
480
  id: _zod.z.string(),