@supernova-studio/client 1.47.7 → 1.48.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 CHANGED
@@ -69518,6 +69518,10 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69518
69518
  * To be used for "fix with AI"
69519
69519
  */
69520
69520
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
69521
+ /**
69522
+ * The cost in credits to generate this iteration
69523
+ */
69524
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
69521
69525
  /**
69522
69526
  * URL of a static preview of the feature
69523
69527
  */
@@ -69609,6 +69613,7 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69609
69613
  baseIterationId?: string | undefined;
69610
69614
  isInProgress?: boolean | undefined;
69611
69615
  errorDescription?: string | null | undefined;
69616
+ creditsCost?: number | undefined;
69612
69617
  staticPreviewUrl?: string | undefined;
69613
69618
  isBookmarked?: boolean | undefined;
69614
69619
  thumbnail?: {
@@ -69639,6 +69644,7 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69639
69644
  baseIterationId?: string | undefined;
69640
69645
  isInProgress?: boolean | undefined;
69641
69646
  errorDescription?: string | null | undefined;
69647
+ creditsCost?: number | undefined;
69642
69648
  staticPreviewUrl?: string | undefined;
69643
69649
  isBookmarked?: boolean | undefined;
69644
69650
  thumbnail?: {
@@ -69944,6 +69950,10 @@ declare const DTOFeatureIterationCreateInput: z$1.ZodObject<Pick<{
69944
69950
  * To be used for "fix with AI"
69945
69951
  */
69946
69952
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
69953
+ /**
69954
+ * The cost in credits to generate this iteration
69955
+ */
69956
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
69947
69957
  /**
69948
69958
  * URL of a static preview of the feature
69949
69959
  */
@@ -70845,6 +70855,10 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70845
70855
  * To be used for "fix with AI"
70846
70856
  */
70847
70857
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
70858
+ /**
70859
+ * The cost in credits to generate this iteration
70860
+ */
70861
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
70848
70862
  /**
70849
70863
  * URL of a static preview of the feature
70850
70864
  */
@@ -70936,6 +70950,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70936
70950
  baseIterationId?: string | undefined;
70937
70951
  isInProgress?: boolean | undefined;
70938
70952
  errorDescription?: string | null | undefined;
70953
+ creditsCost?: number | undefined;
70939
70954
  staticPreviewUrl?: string | undefined;
70940
70955
  isBookmarked?: boolean | undefined;
70941
70956
  thumbnail?: {
@@ -70966,6 +70981,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70966
70981
  baseIterationId?: string | undefined;
70967
70982
  isInProgress?: boolean | undefined;
70968
70983
  errorDescription?: string | null | undefined;
70984
+ creditsCost?: number | undefined;
70969
70985
  staticPreviewUrl?: string | undefined;
70970
70986
  isBookmarked?: boolean | undefined;
70971
70987
  thumbnail?: {
@@ -70998,6 +71014,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70998
71014
  baseIterationId?: string | undefined;
70999
71015
  isInProgress?: boolean | undefined;
71000
71016
  errorDescription?: string | null | undefined;
71017
+ creditsCost?: number | undefined;
71001
71018
  staticPreviewUrl?: string | undefined;
71002
71019
  isBookmarked?: boolean | undefined;
71003
71020
  thumbnail?: {
@@ -71030,6 +71047,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
71030
71047
  baseIterationId?: string | undefined;
71031
71048
  isInProgress?: boolean | undefined;
71032
71049
  errorDescription?: string | null | undefined;
71050
+ creditsCost?: number | undefined;
71033
71051
  staticPreviewUrl?: string | undefined;
71034
71052
  isBookmarked?: boolean | undefined;
71035
71053
  thumbnail?: {
@@ -71088,6 +71106,10 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71088
71106
  * To be used for "fix with AI"
71089
71107
  */
71090
71108
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
71109
+ /**
71110
+ * The cost in credits to generate this iteration
71111
+ */
71112
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
71091
71113
  /**
71092
71114
  * URL of a static preview of the feature
71093
71115
  */
@@ -71179,6 +71201,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71179
71201
  baseIterationId?: string | undefined;
71180
71202
  isInProgress?: boolean | undefined;
71181
71203
  errorDescription?: string | null | undefined;
71204
+ creditsCost?: number | undefined;
71182
71205
  staticPreviewUrl?: string | undefined;
71183
71206
  isBookmarked?: boolean | undefined;
71184
71207
  thumbnail?: {
@@ -71209,6 +71232,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71209
71232
  baseIterationId?: string | undefined;
71210
71233
  isInProgress?: boolean | undefined;
71211
71234
  errorDescription?: string | null | undefined;
71235
+ creditsCost?: number | undefined;
71212
71236
  staticPreviewUrl?: string | undefined;
71213
71237
  isBookmarked?: boolean | undefined;
71214
71238
  thumbnail?: {
@@ -71241,6 +71265,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71241
71265
  baseIterationId?: string | undefined;
71242
71266
  isInProgress?: boolean | undefined;
71243
71267
  errorDescription?: string | null | undefined;
71268
+ creditsCost?: number | undefined;
71244
71269
  staticPreviewUrl?: string | undefined;
71245
71270
  isBookmarked?: boolean | undefined;
71246
71271
  thumbnail?: {
@@ -71273,6 +71298,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71273
71298
  baseIterationId?: string | undefined;
71274
71299
  isInProgress?: boolean | undefined;
71275
71300
  errorDescription?: string | null | undefined;
71301
+ creditsCost?: number | undefined;
71276
71302
  staticPreviewUrl?: string | undefined;
71277
71303
  isBookmarked?: boolean | undefined;
71278
71304
  thumbnail?: {
@@ -225392,14 +225418,47 @@ declare const DTOThreadMessageFinalizeInput: z$1.ZodObject<{
225392
225418
  messageId: z$1.ZodString;
225393
225419
  agentMessageBody: z$1.ZodOptional<z$1.ZodString>;
225394
225420
  promptState: z$1.ZodOptional<z$1.ZodEnum<["Success", "Timeout", "Error"]>>;
225421
+ creditsSpend: z$1.ZodOptional<z$1.ZodObject<{
225422
+ inputTokenCount: z$1.ZodNumber;
225423
+ outputTokenCount: z$1.ZodNumber;
225424
+ inputCachedTokenCount: z$1.ZodOptional<z$1.ZodNumber>;
225425
+ modelName: z$1.ZodEnum<["GPT_4_1", "GPT_4_1_MINI", "GPT_4O", "O1", "GPT_5", "GPT_5_MINI", "GPT_5_NANO"]>;
225426
+ action: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<["Ask", "Build", "DocumentUpdate"]>>>;
225427
+ }, "strip", z$1.ZodTypeAny, {
225428
+ inputTokenCount: number;
225429
+ outputTokenCount: number;
225430
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225431
+ action: "Ask" | "Build" | "DocumentUpdate";
225432
+ inputCachedTokenCount?: number | undefined;
225433
+ }, {
225434
+ inputTokenCount: number;
225435
+ outputTokenCount: number;
225436
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225437
+ inputCachedTokenCount?: number | undefined;
225438
+ action?: "Ask" | "Build" | "DocumentUpdate" | undefined;
225439
+ }>>;
225395
225440
  }, "strip", z$1.ZodTypeAny, {
225396
225441
  messageId: string;
225397
225442
  agentMessageBody?: string | undefined;
225398
225443
  promptState?: "Success" | "Error" | "Timeout" | undefined;
225444
+ creditsSpend?: {
225445
+ inputTokenCount: number;
225446
+ outputTokenCount: number;
225447
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225448
+ action: "Ask" | "Build" | "DocumentUpdate";
225449
+ inputCachedTokenCount?: number | undefined;
225450
+ } | undefined;
225399
225451
  }, {
225400
225452
  messageId: string;
225401
225453
  agentMessageBody?: string | undefined;
225402
225454
  promptState?: "Success" | "Error" | "Timeout" | undefined;
225455
+ creditsSpend?: {
225456
+ inputTokenCount: number;
225457
+ outputTokenCount: number;
225458
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225459
+ inputCachedTokenCount?: number | undefined;
225460
+ action?: "Ask" | "Build" | "DocumentUpdate" | undefined;
225461
+ } | undefined;
225403
225462
  }>;
225404
225463
  type DTOThreadMessageFinalizeInput = z$1.infer<typeof DTOThreadMessageFinalizeInput>;
225405
225464
  declare const DTOThreadMessageRetryInput: z$1.ZodObject<{
@@ -251196,6 +251255,7 @@ declare class ForgeFeatureIterationsEndpoint {
251196
251255
  baseIterationId?: string | undefined;
251197
251256
  isInProgress?: boolean | undefined;
251198
251257
  errorDescription?: string | null | undefined;
251258
+ creditsCost?: number | undefined;
251199
251259
  staticPreviewUrl?: string | undefined;
251200
251260
  isBookmarked?: boolean | undefined;
251201
251261
  thumbnail?: {
@@ -251382,6 +251442,7 @@ declare class ForgeProjectFeaturesEndpoint {
251382
251442
  baseIterationId?: string | undefined;
251383
251443
  isInProgress?: boolean | undefined;
251384
251444
  errorDescription?: string | null | undefined;
251445
+ creditsCost?: number | undefined;
251385
251446
  staticPreviewUrl?: string | undefined;
251386
251447
  isBookmarked?: boolean | undefined;
251387
251448
  thumbnail?: {
package/dist/index.d.ts CHANGED
@@ -69518,6 +69518,10 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69518
69518
  * To be used for "fix with AI"
69519
69519
  */
69520
69520
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
69521
+ /**
69522
+ * The cost in credits to generate this iteration
69523
+ */
69524
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
69521
69525
  /**
69522
69526
  * URL of a static preview of the feature
69523
69527
  */
@@ -69609,6 +69613,7 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69609
69613
  baseIterationId?: string | undefined;
69610
69614
  isInProgress?: boolean | undefined;
69611
69615
  errorDescription?: string | null | undefined;
69616
+ creditsCost?: number | undefined;
69612
69617
  staticPreviewUrl?: string | undefined;
69613
69618
  isBookmarked?: boolean | undefined;
69614
69619
  thumbnail?: {
@@ -69639,6 +69644,7 @@ declare const DTOFeatureIteration: z$1.ZodObject<{
69639
69644
  baseIterationId?: string | undefined;
69640
69645
  isInProgress?: boolean | undefined;
69641
69646
  errorDescription?: string | null | undefined;
69647
+ creditsCost?: number | undefined;
69642
69648
  staticPreviewUrl?: string | undefined;
69643
69649
  isBookmarked?: boolean | undefined;
69644
69650
  thumbnail?: {
@@ -69944,6 +69950,10 @@ declare const DTOFeatureIterationCreateInput: z$1.ZodObject<Pick<{
69944
69950
  * To be used for "fix with AI"
69945
69951
  */
69946
69952
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
69953
+ /**
69954
+ * The cost in credits to generate this iteration
69955
+ */
69956
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
69947
69957
  /**
69948
69958
  * URL of a static preview of the feature
69949
69959
  */
@@ -70845,6 +70855,10 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70845
70855
  * To be used for "fix with AI"
70846
70856
  */
70847
70857
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
70858
+ /**
70859
+ * The cost in credits to generate this iteration
70860
+ */
70861
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
70848
70862
  /**
70849
70863
  * URL of a static preview of the feature
70850
70864
  */
@@ -70936,6 +70950,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70936
70950
  baseIterationId?: string | undefined;
70937
70951
  isInProgress?: boolean | undefined;
70938
70952
  errorDescription?: string | null | undefined;
70953
+ creditsCost?: number | undefined;
70939
70954
  staticPreviewUrl?: string | undefined;
70940
70955
  isBookmarked?: boolean | undefined;
70941
70956
  thumbnail?: {
@@ -70966,6 +70981,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70966
70981
  baseIterationId?: string | undefined;
70967
70982
  isInProgress?: boolean | undefined;
70968
70983
  errorDescription?: string | null | undefined;
70984
+ creditsCost?: number | undefined;
70969
70985
  staticPreviewUrl?: string | undefined;
70970
70986
  isBookmarked?: boolean | undefined;
70971
70987
  thumbnail?: {
@@ -70998,6 +71014,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
70998
71014
  baseIterationId?: string | undefined;
70999
71015
  isInProgress?: boolean | undefined;
71000
71016
  errorDescription?: string | null | undefined;
71017
+ creditsCost?: number | undefined;
71001
71018
  staticPreviewUrl?: string | undefined;
71002
71019
  isBookmarked?: boolean | undefined;
71003
71020
  thumbnail?: {
@@ -71030,6 +71047,7 @@ declare const DTOFeatureIterationListResponse: z$1.ZodObject<{
71030
71047
  baseIterationId?: string | undefined;
71031
71048
  isInProgress?: boolean | undefined;
71032
71049
  errorDescription?: string | null | undefined;
71050
+ creditsCost?: number | undefined;
71033
71051
  staticPreviewUrl?: string | undefined;
71034
71052
  isBookmarked?: boolean | undefined;
71035
71053
  thumbnail?: {
@@ -71088,6 +71106,10 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71088
71106
  * To be used for "fix with AI"
71089
71107
  */
71090
71108
  errorDescription: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
71109
+ /**
71110
+ * The cost in credits to generate this iteration
71111
+ */
71112
+ creditsCost: z$1.ZodOptional<z$1.ZodNumber>;
71091
71113
  /**
71092
71114
  * URL of a static preview of the feature
71093
71115
  */
@@ -71179,6 +71201,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71179
71201
  baseIterationId?: string | undefined;
71180
71202
  isInProgress?: boolean | undefined;
71181
71203
  errorDescription?: string | null | undefined;
71204
+ creditsCost?: number | undefined;
71182
71205
  staticPreviewUrl?: string | undefined;
71183
71206
  isBookmarked?: boolean | undefined;
71184
71207
  thumbnail?: {
@@ -71209,6 +71232,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71209
71232
  baseIterationId?: string | undefined;
71210
71233
  isInProgress?: boolean | undefined;
71211
71234
  errorDescription?: string | null | undefined;
71235
+ creditsCost?: number | undefined;
71212
71236
  staticPreviewUrl?: string | undefined;
71213
71237
  isBookmarked?: boolean | undefined;
71214
71238
  thumbnail?: {
@@ -71241,6 +71265,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71241
71265
  baseIterationId?: string | undefined;
71242
71266
  isInProgress?: boolean | undefined;
71243
71267
  errorDescription?: string | null | undefined;
71268
+ creditsCost?: number | undefined;
71244
71269
  staticPreviewUrl?: string | undefined;
71245
71270
  isBookmarked?: boolean | undefined;
71246
71271
  thumbnail?: {
@@ -71273,6 +71298,7 @@ declare const DTOFeatureIterationResponse: z$1.ZodObject<{
71273
71298
  baseIterationId?: string | undefined;
71274
71299
  isInProgress?: boolean | undefined;
71275
71300
  errorDescription?: string | null | undefined;
71301
+ creditsCost?: number | undefined;
71276
71302
  staticPreviewUrl?: string | undefined;
71277
71303
  isBookmarked?: boolean | undefined;
71278
71304
  thumbnail?: {
@@ -225392,14 +225418,47 @@ declare const DTOThreadMessageFinalizeInput: z$1.ZodObject<{
225392
225418
  messageId: z$1.ZodString;
225393
225419
  agentMessageBody: z$1.ZodOptional<z$1.ZodString>;
225394
225420
  promptState: z$1.ZodOptional<z$1.ZodEnum<["Success", "Timeout", "Error"]>>;
225421
+ creditsSpend: z$1.ZodOptional<z$1.ZodObject<{
225422
+ inputTokenCount: z$1.ZodNumber;
225423
+ outputTokenCount: z$1.ZodNumber;
225424
+ inputCachedTokenCount: z$1.ZodOptional<z$1.ZodNumber>;
225425
+ modelName: z$1.ZodEnum<["GPT_4_1", "GPT_4_1_MINI", "GPT_4O", "O1", "GPT_5", "GPT_5_MINI", "GPT_5_NANO"]>;
225426
+ action: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<["Ask", "Build", "DocumentUpdate"]>>>;
225427
+ }, "strip", z$1.ZodTypeAny, {
225428
+ inputTokenCount: number;
225429
+ outputTokenCount: number;
225430
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225431
+ action: "Ask" | "Build" | "DocumentUpdate";
225432
+ inputCachedTokenCount?: number | undefined;
225433
+ }, {
225434
+ inputTokenCount: number;
225435
+ outputTokenCount: number;
225436
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225437
+ inputCachedTokenCount?: number | undefined;
225438
+ action?: "Ask" | "Build" | "DocumentUpdate" | undefined;
225439
+ }>>;
225395
225440
  }, "strip", z$1.ZodTypeAny, {
225396
225441
  messageId: string;
225397
225442
  agentMessageBody?: string | undefined;
225398
225443
  promptState?: "Success" | "Error" | "Timeout" | undefined;
225444
+ creditsSpend?: {
225445
+ inputTokenCount: number;
225446
+ outputTokenCount: number;
225447
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225448
+ action: "Ask" | "Build" | "DocumentUpdate";
225449
+ inputCachedTokenCount?: number | undefined;
225450
+ } | undefined;
225399
225451
  }, {
225400
225452
  messageId: string;
225401
225453
  agentMessageBody?: string | undefined;
225402
225454
  promptState?: "Success" | "Error" | "Timeout" | undefined;
225455
+ creditsSpend?: {
225456
+ inputTokenCount: number;
225457
+ outputTokenCount: number;
225458
+ modelName: "GPT_4_1" | "GPT_4_1_MINI" | "GPT_4O" | "O1" | "GPT_5" | "GPT_5_MINI" | "GPT_5_NANO";
225459
+ inputCachedTokenCount?: number | undefined;
225460
+ action?: "Ask" | "Build" | "DocumentUpdate" | undefined;
225461
+ } | undefined;
225403
225462
  }>;
225404
225463
  type DTOThreadMessageFinalizeInput = z$1.infer<typeof DTOThreadMessageFinalizeInput>;
225405
225464
  declare const DTOThreadMessageRetryInput: z$1.ZodObject<{
@@ -251196,6 +251255,7 @@ declare class ForgeFeatureIterationsEndpoint {
251196
251255
  baseIterationId?: string | undefined;
251197
251256
  isInProgress?: boolean | undefined;
251198
251257
  errorDescription?: string | null | undefined;
251258
+ creditsCost?: number | undefined;
251199
251259
  staticPreviewUrl?: string | undefined;
251200
251260
  isBookmarked?: boolean | undefined;
251201
251261
  thumbnail?: {
@@ -251382,6 +251442,7 @@ declare class ForgeProjectFeaturesEndpoint {
251382
251442
  baseIterationId?: string | undefined;
251383
251443
  isInProgress?: boolean | undefined;
251384
251444
  errorDescription?: string | null | undefined;
251445
+ creditsCost?: number | undefined;
251385
251446
  staticPreviewUrl?: string | undefined;
251386
251447
  isBookmarked?: boolean | undefined;
251387
251448
  thumbnail?: {
package/dist/index.js CHANGED
@@ -9546,6 +9546,10 @@ var DTOFeatureIteration = _zod2.default.object({
9546
9546
  * To be used for "fix with AI"
9547
9547
  */
9548
9548
  errorDescription: _zod2.default.string().nullish(),
9549
+ /**
9550
+ * The cost in credits to generate this iteration
9551
+ */
9552
+ creditsCost: _zod2.default.number().optional(),
9549
9553
  /**
9550
9554
  * URL of a static preview of the feature
9551
9555
  */
@@ -9904,7 +9908,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
9904
9908
  var DTOThreadMessageFinalizeInput = _zod2.default.object({
9905
9909
  messageId: Id,
9906
9910
  agentMessageBody: _zod2.default.string().optional(),
9907
- promptState: DTOThreadPromptState.optional()
9911
+ promptState: DTOThreadPromptState.optional(),
9912
+ creditsSpend: DTOBillingCreditsSpendInput.optional()
9908
9913
  });
9909
9914
  var DTOThreadMessageRetryInput = _zod2.default.object({
9910
9915
  agentMessageId: Id