@supernova-studio/client 1.31.2 → 1.31.3

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
@@ -68475,7 +68475,7 @@ declare const DTOFeatureMessage: z__default.ZodObject<{
68475
68475
  /**
68476
68476
  * Link agent response object describing current state of
68477
68477
  */
68478
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
68478
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
68479
68479
  attachments: z__default.ZodOptional<z__default.ZodObject<{
68480
68480
  iterationId: z__default.ZodOptional<z__default.ZodString>;
68481
68481
  }, "strip", z__default.ZodTypeAny, {
@@ -68502,7 +68502,7 @@ declare const DTOFeatureMessage: z__default.ZodObject<{
68502
68502
  isPrompt?: boolean | undefined;
68503
68503
  startsNewThread?: boolean | undefined;
68504
68504
  parentMessageId?: string | undefined;
68505
- agentResponseTrackerId?: string | undefined;
68505
+ agentResponseTrackerId?: string | null | undefined;
68506
68506
  attachments?: {
68507
68507
  iterationId?: string | undefined;
68508
68508
  } | undefined;
@@ -68523,7 +68523,7 @@ declare const DTOFeatureMessage: z__default.ZodObject<{
68523
68523
  isPrompt?: boolean | undefined;
68524
68524
  startsNewThread?: boolean | undefined;
68525
68525
  parentMessageId?: string | undefined;
68526
- agentResponseTrackerId?: string | undefined;
68526
+ agentResponseTrackerId?: string | null | undefined;
68527
68527
  attachments?: {
68528
68528
  iterationId?: string | undefined;
68529
68529
  } | undefined;
@@ -68685,7 +68685,7 @@ declare const DTOFeatureMessageCreateInput: z__default.ZodObject<Pick<{
68685
68685
  /**
68686
68686
  * Link agent response object describing current state of
68687
68687
  */
68688
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
68688
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
68689
68689
  attachments: z__default.ZodOptional<z__default.ZodObject<{
68690
68690
  iterationId: z__default.ZodOptional<z__default.ZodString>;
68691
68691
  }, "strip", z__default.ZodTypeAny, {
@@ -68711,7 +68711,7 @@ declare const DTOFeatureMessageCreateInput: z__default.ZodObject<Pick<{
68711
68711
  isPrompt?: boolean | undefined;
68712
68712
  startsNewThread?: boolean | undefined;
68713
68713
  parentMessageId?: string | undefined;
68714
- agentResponseTrackerId?: string | undefined;
68714
+ agentResponseTrackerId?: string | null | undefined;
68715
68715
  }, {
68716
68716
  id: string;
68717
68717
  createdAt: string;
@@ -68728,18 +68728,73 @@ declare const DTOFeatureMessageCreateInput: z__default.ZodObject<Pick<{
68728
68728
  isPrompt?: boolean | undefined;
68729
68729
  startsNewThread?: boolean | undefined;
68730
68730
  parentMessageId?: string | undefined;
68731
- agentResponseTrackerId?: string | undefined;
68731
+ agentResponseTrackerId?: string | null | undefined;
68732
68732
  }>;
68733
68733
  type DTOFeatureMessageCreateInput = z__default.infer<typeof DTOFeatureMessageCreateInput>;
68734
68734
  declare const DTOFeatureMessageUpdateInput: z__default.ZodObject<{
68735
+ createdAt: z__default.ZodOptional<z__default.ZodString>;
68736
+ sender: z__default.ZodOptional<z__default.ZodDiscriminatedUnion<"type", [z__default.ZodObject<{
68737
+ type: z__default.ZodLiteral<"User">;
68738
+ userId: z__default.ZodString;
68739
+ }, "strip", z__default.ZodTypeAny, {
68740
+ type: "User";
68741
+ userId: string;
68742
+ }, {
68743
+ type: "User";
68744
+ userId: string;
68745
+ }>, z__default.ZodObject<{
68746
+ type: z__default.ZodLiteral<"Agent">;
68747
+ }, "strip", z__default.ZodTypeAny, {
68748
+ type: "Agent";
68749
+ }, {
68750
+ type: "Agent";
68751
+ }>, z__default.ZodObject<{
68752
+ type: z__default.ZodLiteral<"System">;
68753
+ onBehalfOfUserId: z__default.ZodString;
68754
+ }, "strip", z__default.ZodTypeAny, {
68755
+ type: "System";
68756
+ onBehalfOfUserId: string;
68757
+ }, {
68758
+ type: "System";
68759
+ onBehalfOfUserId: string;
68760
+ }>]>>;
68735
68761
  body: z__default.ZodOptional<z__default.ZodString>;
68736
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodOptional<z__default.ZodString>>;
68762
+ isPrompt: z__default.ZodOptional<z__default.ZodOptional<z__default.ZodBoolean>>;
68763
+ startsNewThread: z__default.ZodOptional<z__default.ZodOptional<z__default.ZodBoolean>>;
68764
+ parentMessageId: z__default.ZodOptional<z__default.ZodOptional<z__default.ZodString>>;
68765
+ agentResponseTrackerId: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>>;
68737
68766
  }, "strip", z__default.ZodTypeAny, {
68767
+ createdAt?: string | undefined;
68768
+ sender?: {
68769
+ type: "User";
68770
+ userId: string;
68771
+ } | {
68772
+ type: "Agent";
68773
+ } | {
68774
+ type: "System";
68775
+ onBehalfOfUserId: string;
68776
+ } | undefined;
68738
68777
  body?: string | undefined;
68739
- agentResponseTrackerId?: string | undefined;
68778
+ isPrompt?: boolean | undefined;
68779
+ startsNewThread?: boolean | undefined;
68780
+ parentMessageId?: string | undefined;
68781
+ agentResponseTrackerId?: string | null | undefined;
68740
68782
  }, {
68783
+ createdAt?: string | undefined;
68784
+ sender?: {
68785
+ type: "User";
68786
+ userId: string;
68787
+ } | {
68788
+ type: "Agent";
68789
+ } | {
68790
+ type: "System";
68791
+ onBehalfOfUserId: string;
68792
+ } | undefined;
68741
68793
  body?: string | undefined;
68742
- agentResponseTrackerId?: string | undefined;
68794
+ isPrompt?: boolean | undefined;
68795
+ startsNewThread?: boolean | undefined;
68796
+ parentMessageId?: string | undefined;
68797
+ agentResponseTrackerId?: string | null | undefined;
68743
68798
  }>;
68744
68799
  type DTOFeatureMessageUpdateInput = z__default.infer<typeof DTOFeatureMessageUpdateInput>;
68745
68800
  declare const DTOFeatureMessageReactionDeleteInput: z__default.ZodObject<{
@@ -68980,7 +69035,7 @@ declare const DTOFeatureMessageResponse: z__default.ZodObject<{
68980
69035
  /**
68981
69036
  * Link agent response object describing current state of
68982
69037
  */
68983
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
69038
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
68984
69039
  attachments: z__default.ZodOptional<z__default.ZodObject<{
68985
69040
  iterationId: z__default.ZodOptional<z__default.ZodString>;
68986
69041
  }, "strip", z__default.ZodTypeAny, {
@@ -69007,7 +69062,7 @@ declare const DTOFeatureMessageResponse: z__default.ZodObject<{
69007
69062
  isPrompt?: boolean | undefined;
69008
69063
  startsNewThread?: boolean | undefined;
69009
69064
  parentMessageId?: string | undefined;
69010
- agentResponseTrackerId?: string | undefined;
69065
+ agentResponseTrackerId?: string | null | undefined;
69011
69066
  attachments?: {
69012
69067
  iterationId?: string | undefined;
69013
69068
  } | undefined;
@@ -69028,7 +69083,7 @@ declare const DTOFeatureMessageResponse: z__default.ZodObject<{
69028
69083
  isPrompt?: boolean | undefined;
69029
69084
  startsNewThread?: boolean | undefined;
69030
69085
  parentMessageId?: string | undefined;
69031
- agentResponseTrackerId?: string | undefined;
69086
+ agentResponseTrackerId?: string | null | undefined;
69032
69087
  attachments?: {
69033
69088
  iterationId?: string | undefined;
69034
69089
  } | undefined;
@@ -69051,7 +69106,7 @@ declare const DTOFeatureMessageResponse: z__default.ZodObject<{
69051
69106
  isPrompt?: boolean | undefined;
69052
69107
  startsNewThread?: boolean | undefined;
69053
69108
  parentMessageId?: string | undefined;
69054
- agentResponseTrackerId?: string | undefined;
69109
+ agentResponseTrackerId?: string | null | undefined;
69055
69110
  attachments?: {
69056
69111
  iterationId?: string | undefined;
69057
69112
  } | undefined;
@@ -69074,7 +69129,7 @@ declare const DTOFeatureMessageResponse: z__default.ZodObject<{
69074
69129
  isPrompt?: boolean | undefined;
69075
69130
  startsNewThread?: boolean | undefined;
69076
69131
  parentMessageId?: string | undefined;
69077
- agentResponseTrackerId?: string | undefined;
69132
+ agentResponseTrackerId?: string | null | undefined;
69078
69133
  attachments?: {
69079
69134
  iterationId?: string | undefined;
69080
69135
  } | undefined;
@@ -69165,7 +69220,7 @@ declare const DTOFeatureMessageListResponse: z__default.ZodObject<{
69165
69220
  /**
69166
69221
  * Link agent response object describing current state of
69167
69222
  */
69168
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
69223
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
69169
69224
  attachments: z__default.ZodOptional<z__default.ZodObject<{
69170
69225
  iterationId: z__default.ZodOptional<z__default.ZodString>;
69171
69226
  }, "strip", z__default.ZodTypeAny, {
@@ -69192,7 +69247,7 @@ declare const DTOFeatureMessageListResponse: z__default.ZodObject<{
69192
69247
  isPrompt?: boolean | undefined;
69193
69248
  startsNewThread?: boolean | undefined;
69194
69249
  parentMessageId?: string | undefined;
69195
- agentResponseTrackerId?: string | undefined;
69250
+ agentResponseTrackerId?: string | null | undefined;
69196
69251
  attachments?: {
69197
69252
  iterationId?: string | undefined;
69198
69253
  } | undefined;
@@ -69213,7 +69268,7 @@ declare const DTOFeatureMessageListResponse: z__default.ZodObject<{
69213
69268
  isPrompt?: boolean | undefined;
69214
69269
  startsNewThread?: boolean | undefined;
69215
69270
  parentMessageId?: string | undefined;
69216
- agentResponseTrackerId?: string | undefined;
69271
+ agentResponseTrackerId?: string | null | undefined;
69217
69272
  attachments?: {
69218
69273
  iterationId?: string | undefined;
69219
69274
  } | undefined;
@@ -69253,7 +69308,7 @@ declare const DTOFeatureMessageListResponse: z__default.ZodObject<{
69253
69308
  isPrompt?: boolean | undefined;
69254
69309
  startsNewThread?: boolean | undefined;
69255
69310
  parentMessageId?: string | undefined;
69256
- agentResponseTrackerId?: string | undefined;
69311
+ agentResponseTrackerId?: string | null | undefined;
69257
69312
  attachments?: {
69258
69313
  iterationId?: string | undefined;
69259
69314
  } | undefined;
@@ -69283,7 +69338,7 @@ declare const DTOFeatureMessageListResponse: z__default.ZodObject<{
69283
69338
  isPrompt?: boolean | undefined;
69284
69339
  startsNewThread?: boolean | undefined;
69285
69340
  parentMessageId?: string | undefined;
69286
- agentResponseTrackerId?: string | undefined;
69341
+ agentResponseTrackerId?: string | null | undefined;
69287
69342
  attachments?: {
69288
69343
  iterationId?: string | undefined;
69289
69344
  } | undefined;
@@ -69685,7 +69740,7 @@ declare const DTOFeatureEventMessagesSent: z__default.ZodObject<{
69685
69740
  /**
69686
69741
  * Link agent response object describing current state of
69687
69742
  */
69688
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
69743
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
69689
69744
  attachments: z__default.ZodOptional<z__default.ZodObject<{
69690
69745
  iterationId: z__default.ZodOptional<z__default.ZodString>;
69691
69746
  }, "strip", z__default.ZodTypeAny, {
@@ -69712,7 +69767,7 @@ declare const DTOFeatureEventMessagesSent: z__default.ZodObject<{
69712
69767
  isPrompt?: boolean | undefined;
69713
69768
  startsNewThread?: boolean | undefined;
69714
69769
  parentMessageId?: string | undefined;
69715
- agentResponseTrackerId?: string | undefined;
69770
+ agentResponseTrackerId?: string | null | undefined;
69716
69771
  attachments?: {
69717
69772
  iterationId?: string | undefined;
69718
69773
  } | undefined;
@@ -69733,7 +69788,7 @@ declare const DTOFeatureEventMessagesSent: z__default.ZodObject<{
69733
69788
  isPrompt?: boolean | undefined;
69734
69789
  startsNewThread?: boolean | undefined;
69735
69790
  parentMessageId?: string | undefined;
69736
- agentResponseTrackerId?: string | undefined;
69791
+ agentResponseTrackerId?: string | null | undefined;
69737
69792
  attachments?: {
69738
69793
  iterationId?: string | undefined;
69739
69794
  } | undefined;
@@ -69757,7 +69812,7 @@ declare const DTOFeatureEventMessagesSent: z__default.ZodObject<{
69757
69812
  isPrompt?: boolean | undefined;
69758
69813
  startsNewThread?: boolean | undefined;
69759
69814
  parentMessageId?: string | undefined;
69760
- agentResponseTrackerId?: string | undefined;
69815
+ agentResponseTrackerId?: string | null | undefined;
69761
69816
  attachments?: {
69762
69817
  iterationId?: string | undefined;
69763
69818
  } | undefined;
@@ -69781,7 +69836,7 @@ declare const DTOFeatureEventMessagesSent: z__default.ZodObject<{
69781
69836
  isPrompt?: boolean | undefined;
69782
69837
  startsNewThread?: boolean | undefined;
69783
69838
  parentMessageId?: string | undefined;
69784
- agentResponseTrackerId?: string | undefined;
69839
+ agentResponseTrackerId?: string | null | undefined;
69785
69840
  attachments?: {
69786
69841
  iterationId?: string | undefined;
69787
69842
  } | undefined;
@@ -69912,7 +69967,7 @@ declare const DTOFeatureEventAgentResponseFinished: z__default.ZodObject<{
69912
69967
  /**
69913
69968
  * Link agent response object describing current state of
69914
69969
  */
69915
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
69970
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
69916
69971
  attachments: z__default.ZodOptional<z__default.ZodObject<{
69917
69972
  iterationId: z__default.ZodOptional<z__default.ZodString>;
69918
69973
  }, "strip", z__default.ZodTypeAny, {
@@ -69939,7 +69994,7 @@ declare const DTOFeatureEventAgentResponseFinished: z__default.ZodObject<{
69939
69994
  isPrompt?: boolean | undefined;
69940
69995
  startsNewThread?: boolean | undefined;
69941
69996
  parentMessageId?: string | undefined;
69942
- agentResponseTrackerId?: string | undefined;
69997
+ agentResponseTrackerId?: string | null | undefined;
69943
69998
  attachments?: {
69944
69999
  iterationId?: string | undefined;
69945
70000
  } | undefined;
@@ -69960,7 +70015,7 @@ declare const DTOFeatureEventAgentResponseFinished: z__default.ZodObject<{
69960
70015
  isPrompt?: boolean | undefined;
69961
70016
  startsNewThread?: boolean | undefined;
69962
70017
  parentMessageId?: string | undefined;
69963
- agentResponseTrackerId?: string | undefined;
70018
+ agentResponseTrackerId?: string | null | undefined;
69964
70019
  attachments?: {
69965
70020
  iterationId?: string | undefined;
69966
70021
  } | undefined;
@@ -69984,7 +70039,7 @@ declare const DTOFeatureEventAgentResponseFinished: z__default.ZodObject<{
69984
70039
  isPrompt?: boolean | undefined;
69985
70040
  startsNewThread?: boolean | undefined;
69986
70041
  parentMessageId?: string | undefined;
69987
- agentResponseTrackerId?: string | undefined;
70042
+ agentResponseTrackerId?: string | null | undefined;
69988
70043
  attachments?: {
69989
70044
  iterationId?: string | undefined;
69990
70045
  } | undefined;
@@ -70008,7 +70063,7 @@ declare const DTOFeatureEventAgentResponseFinished: z__default.ZodObject<{
70008
70063
  isPrompt?: boolean | undefined;
70009
70064
  startsNewThread?: boolean | undefined;
70010
70065
  parentMessageId?: string | undefined;
70011
- agentResponseTrackerId?: string | undefined;
70066
+ agentResponseTrackerId?: string | null | undefined;
70012
70067
  attachments?: {
70013
70068
  iterationId?: string | undefined;
70014
70069
  } | undefined;
@@ -70067,7 +70122,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70067
70122
  /**
70068
70123
  * Link agent response object describing current state of
70069
70124
  */
70070
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
70125
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
70071
70126
  attachments: z__default.ZodOptional<z__default.ZodObject<{
70072
70127
  iterationId: z__default.ZodOptional<z__default.ZodString>;
70073
70128
  }, "strip", z__default.ZodTypeAny, {
@@ -70094,7 +70149,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70094
70149
  isPrompt?: boolean | undefined;
70095
70150
  startsNewThread?: boolean | undefined;
70096
70151
  parentMessageId?: string | undefined;
70097
- agentResponseTrackerId?: string | undefined;
70152
+ agentResponseTrackerId?: string | null | undefined;
70098
70153
  attachments?: {
70099
70154
  iterationId?: string | undefined;
70100
70155
  } | undefined;
@@ -70115,7 +70170,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70115
70170
  isPrompt?: boolean | undefined;
70116
70171
  startsNewThread?: boolean | undefined;
70117
70172
  parentMessageId?: string | undefined;
70118
- agentResponseTrackerId?: string | undefined;
70173
+ agentResponseTrackerId?: string | null | undefined;
70119
70174
  attachments?: {
70120
70175
  iterationId?: string | undefined;
70121
70176
  } | undefined;
@@ -70139,7 +70194,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70139
70194
  isPrompt?: boolean | undefined;
70140
70195
  startsNewThread?: boolean | undefined;
70141
70196
  parentMessageId?: string | undefined;
70142
- agentResponseTrackerId?: string | undefined;
70197
+ agentResponseTrackerId?: string | null | undefined;
70143
70198
  attachments?: {
70144
70199
  iterationId?: string | undefined;
70145
70200
  } | undefined;
@@ -70163,7 +70218,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70163
70218
  isPrompt?: boolean | undefined;
70164
70219
  startsNewThread?: boolean | undefined;
70165
70220
  parentMessageId?: string | undefined;
70166
- agentResponseTrackerId?: string | undefined;
70221
+ agentResponseTrackerId?: string | null | undefined;
70167
70222
  attachments?: {
70168
70223
  iterationId?: string | undefined;
70169
70224
  } | undefined;
@@ -70288,7 +70343,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70288
70343
  /**
70289
70344
  * Link agent response object describing current state of
70290
70345
  */
70291
- agentResponseTrackerId: z__default.ZodOptional<z__default.ZodString>;
70346
+ agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
70292
70347
  attachments: z__default.ZodOptional<z__default.ZodObject<{
70293
70348
  iterationId: z__default.ZodOptional<z__default.ZodString>;
70294
70349
  }, "strip", z__default.ZodTypeAny, {
@@ -70315,7 +70370,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70315
70370
  isPrompt?: boolean | undefined;
70316
70371
  startsNewThread?: boolean | undefined;
70317
70372
  parentMessageId?: string | undefined;
70318
- agentResponseTrackerId?: string | undefined;
70373
+ agentResponseTrackerId?: string | null | undefined;
70319
70374
  attachments?: {
70320
70375
  iterationId?: string | undefined;
70321
70376
  } | undefined;
@@ -70336,7 +70391,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70336
70391
  isPrompt?: boolean | undefined;
70337
70392
  startsNewThread?: boolean | undefined;
70338
70393
  parentMessageId?: string | undefined;
70339
- agentResponseTrackerId?: string | undefined;
70394
+ agentResponseTrackerId?: string | null | undefined;
70340
70395
  attachments?: {
70341
70396
  iterationId?: string | undefined;
70342
70397
  } | undefined;
@@ -70360,7 +70415,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70360
70415
  isPrompt?: boolean | undefined;
70361
70416
  startsNewThread?: boolean | undefined;
70362
70417
  parentMessageId?: string | undefined;
70363
- agentResponseTrackerId?: string | undefined;
70418
+ agentResponseTrackerId?: string | null | undefined;
70364
70419
  attachments?: {
70365
70420
  iterationId?: string | undefined;
70366
70421
  } | undefined;
@@ -70384,7 +70439,7 @@ declare const DTOFeatureEvent: z__default.ZodDiscriminatedUnion<"type", [z__defa
70384
70439
  isPrompt?: boolean | undefined;
70385
70440
  startsNewThread?: boolean | undefined;
70386
70441
  parentMessageId?: string | undefined;
70387
- agentResponseTrackerId?: string | undefined;
70442
+ agentResponseTrackerId?: string | null | undefined;
70388
70443
  attachments?: {
70389
70444
  iterationId?: string | undefined;
70390
70445
  } | undefined;
@@ -83211,6 +83266,8 @@ declare const DTOForgeProjectFeature: z__default.ZodObject<{
83211
83266
  status: z__default.ZodDefault<z__default.ZodEnum<["Draft", "ReadyForDevelopment"]>>;
83212
83267
  initialPrompt: z__default.ZodString;
83213
83268
  updatedAt: z__default.ZodOptional<z__default.ZodDate>;
83269
+ numberOfIterations: z__default.ZodDefault<z__default.ZodNumber>;
83270
+ lastReplyTimestamp: z__default.ZodOptional<z__default.ZodDate>;
83214
83271
  }, "strip", z__default.ZodTypeAny, {
83215
83272
  status: "Draft" | "ReadyForDevelopment";
83216
83273
  id: string;
@@ -83221,9 +83278,11 @@ declare const DTOForgeProjectFeature: z__default.ZodObject<{
83221
83278
  createdByUserId: string;
83222
83279
  projectId: string;
83223
83280
  initialPrompt: string;
83281
+ numberOfIterations: number;
83224
83282
  updatedAt?: Date | undefined;
83225
83283
  sectionId?: string | undefined;
83226
83284
  isArchived?: boolean | undefined;
83285
+ lastReplyTimestamp?: Date | undefined;
83227
83286
  }, {
83228
83287
  id: string;
83229
83288
  name: string;
@@ -83237,6 +83296,8 @@ declare const DTOForgeProjectFeature: z__default.ZodObject<{
83237
83296
  sortOrder?: number | undefined;
83238
83297
  sectionId?: string | undefined;
83239
83298
  isArchived?: boolean | undefined;
83299
+ numberOfIterations?: number | undefined;
83300
+ lastReplyTimestamp?: Date | undefined;
83240
83301
  }>;
83241
83302
  type DTOForgeProjectFeature = z__default.infer<typeof DTOForgeProjectFeature>;
83242
83303
  declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
@@ -83253,6 +83314,8 @@ declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
83253
83314
  status: z__default.ZodDefault<z__default.ZodEnum<["Draft", "ReadyForDevelopment"]>>;
83254
83315
  initialPrompt: z__default.ZodString;
83255
83316
  updatedAt: z__default.ZodOptional<z__default.ZodDate>;
83317
+ numberOfIterations: z__default.ZodDefault<z__default.ZodNumber>;
83318
+ lastReplyTimestamp: z__default.ZodOptional<z__default.ZodDate>;
83256
83319
  }, "strip", z__default.ZodTypeAny, {
83257
83320
  status: "Draft" | "ReadyForDevelopment";
83258
83321
  id: string;
@@ -83263,9 +83326,11 @@ declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
83263
83326
  createdByUserId: string;
83264
83327
  projectId: string;
83265
83328
  initialPrompt: string;
83329
+ numberOfIterations: number;
83266
83330
  updatedAt?: Date | undefined;
83267
83331
  sectionId?: string | undefined;
83268
83332
  isArchived?: boolean | undefined;
83333
+ lastReplyTimestamp?: Date | undefined;
83269
83334
  }, {
83270
83335
  id: string;
83271
83336
  name: string;
@@ -83279,6 +83344,8 @@ declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
83279
83344
  sortOrder?: number | undefined;
83280
83345
  sectionId?: string | undefined;
83281
83346
  isArchived?: boolean | undefined;
83347
+ numberOfIterations?: number | undefined;
83348
+ lastReplyTimestamp?: Date | undefined;
83282
83349
  }>, "many">;
83283
83350
  }, "strip", z__default.ZodTypeAny, {
83284
83351
  features: {
@@ -83291,9 +83358,11 @@ declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
83291
83358
  createdByUserId: string;
83292
83359
  projectId: string;
83293
83360
  initialPrompt: string;
83361
+ numberOfIterations: number;
83294
83362
  updatedAt?: Date | undefined;
83295
83363
  sectionId?: string | undefined;
83296
83364
  isArchived?: boolean | undefined;
83365
+ lastReplyTimestamp?: Date | undefined;
83297
83366
  }[];
83298
83367
  }, {
83299
83368
  features: {
@@ -83309,6 +83378,8 @@ declare const DTOForgeProjectFeatureListResponse: z__default.ZodObject<{
83309
83378
  sortOrder?: number | undefined;
83310
83379
  sectionId?: string | undefined;
83311
83380
  isArchived?: boolean | undefined;
83381
+ numberOfIterations?: number | undefined;
83382
+ lastReplyTimestamp?: Date | undefined;
83312
83383
  }[];
83313
83384
  }>;
83314
83385
  type DTOForgeProjectFeatureListResponse = z__default.infer<typeof DTOForgeProjectFeatureListResponse>;
@@ -83391,6 +83462,8 @@ declare const DTOForgeProjectFeatureGetResponse: z__default.ZodObject<{
83391
83462
  status: z__default.ZodDefault<z__default.ZodEnum<["Draft", "ReadyForDevelopment"]>>;
83392
83463
  initialPrompt: z__default.ZodString;
83393
83464
  updatedAt: z__default.ZodOptional<z__default.ZodDate>;
83465
+ numberOfIterations: z__default.ZodDefault<z__default.ZodNumber>;
83466
+ lastReplyTimestamp: z__default.ZodOptional<z__default.ZodDate>;
83394
83467
  }, "strip", z__default.ZodTypeAny, {
83395
83468
  status: "Draft" | "ReadyForDevelopment";
83396
83469
  id: string;
@@ -83401,9 +83474,11 @@ declare const DTOForgeProjectFeatureGetResponse: z__default.ZodObject<{
83401
83474
  createdByUserId: string;
83402
83475
  projectId: string;
83403
83476
  initialPrompt: string;
83477
+ numberOfIterations: number;
83404
83478
  updatedAt?: Date | undefined;
83405
83479
  sectionId?: string | undefined;
83406
83480
  isArchived?: boolean | undefined;
83481
+ lastReplyTimestamp?: Date | undefined;
83407
83482
  }, {
83408
83483
  id: string;
83409
83484
  name: string;
@@ -83417,6 +83492,8 @@ declare const DTOForgeProjectFeatureGetResponse: z__default.ZodObject<{
83417
83492
  sortOrder?: number | undefined;
83418
83493
  sectionId?: string | undefined;
83419
83494
  isArchived?: boolean | undefined;
83495
+ numberOfIterations?: number | undefined;
83496
+ lastReplyTimestamp?: Date | undefined;
83420
83497
  }>;
83421
83498
  }, "strip", z__default.ZodTypeAny, {
83422
83499
  feature: {
@@ -83429,9 +83506,11 @@ declare const DTOForgeProjectFeatureGetResponse: z__default.ZodObject<{
83429
83506
  createdByUserId: string;
83430
83507
  projectId: string;
83431
83508
  initialPrompt: string;
83509
+ numberOfIterations: number;
83432
83510
  updatedAt?: Date | undefined;
83433
83511
  sectionId?: string | undefined;
83434
83512
  isArchived?: boolean | undefined;
83513
+ lastReplyTimestamp?: Date | undefined;
83435
83514
  };
83436
83515
  }, {
83437
83516
  feature: {
@@ -83447,6 +83526,8 @@ declare const DTOForgeProjectFeatureGetResponse: z__default.ZodObject<{
83447
83526
  sortOrder?: number | undefined;
83448
83527
  sectionId?: string | undefined;
83449
83528
  isArchived?: boolean | undefined;
83529
+ numberOfIterations?: number | undefined;
83530
+ lastReplyTimestamp?: Date | undefined;
83450
83531
  };
83451
83532
  }>;
83452
83533
  type DTOForgeProjectFeatureGetResponse = z__default.infer<typeof DTOForgeProjectFeatureGetResponse>;
@@ -140406,7 +140487,7 @@ declare class ForgeFeatureMessagesEndpoint {
140406
140487
  isPrompt?: boolean | undefined;
140407
140488
  startsNewThread?: boolean | undefined;
140408
140489
  parentMessageId?: string | undefined;
140409
- agentResponseTrackerId?: string | undefined;
140490
+ agentResponseTrackerId?: string | null | undefined;
140410
140491
  attachments?: {
140411
140492
  iterationId?: string | undefined;
140412
140493
  } | undefined;
@@ -140437,7 +140518,7 @@ declare class ForgeFeatureMessagesEndpoint {
140437
140518
  isPrompt?: boolean | undefined;
140438
140519
  startsNewThread?: boolean | undefined;
140439
140520
  parentMessageId?: string | undefined;
140440
- agentResponseTrackerId?: string | undefined;
140521
+ agentResponseTrackerId?: string | null | undefined;
140441
140522
  attachments?: {
140442
140523
  iterationId?: string | undefined;
140443
140524
  } | undefined;
@@ -140475,9 +140556,11 @@ declare class ForgeFeaturesEndpoint {
140475
140556
  createdByUserId: string;
140476
140557
  projectId: string;
140477
140558
  initialPrompt: string;
140559
+ numberOfIterations: number;
140478
140560
  updatedAt?: Date | undefined;
140479
140561
  sectionId?: string | undefined;
140480
140562
  isArchived?: boolean | undefined;
140563
+ lastReplyTimestamp?: Date | undefined;
140481
140564
  }[];
140482
140565
  }>;
140483
140566
  get(workspaceId: string, projectId: string, featureId: string): Promise<{
@@ -140491,9 +140574,11 @@ declare class ForgeFeaturesEndpoint {
140491
140574
  createdByUserId: string;
140492
140575
  projectId: string;
140493
140576
  initialPrompt: string;
140577
+ numberOfIterations: number;
140494
140578
  updatedAt?: Date | undefined;
140495
140579
  sectionId?: string | undefined;
140496
140580
  isArchived?: boolean | undefined;
140581
+ lastReplyTimestamp?: Date | undefined;
140497
140582
  };
140498
140583
  }>;
140499
140584
  }
@@ -141740,9 +141825,11 @@ declare class ForgeProjectFeaturesEndpoint {
141740
141825
  createdByUserId: string;
141741
141826
  projectId: string;
141742
141827
  initialPrompt: string;
141828
+ numberOfIterations: number;
141743
141829
  updatedAt?: Date | undefined;
141744
141830
  sectionId?: string | undefined;
141745
141831
  isArchived?: boolean | undefined;
141832
+ lastReplyTimestamp?: Date | undefined;
141746
141833
  }[];
141747
141834
  }>;
141748
141835
  get(workspaceId: string, projectId: string, featureId: string): Promise<{
@@ -141756,9 +141843,23 @@ declare class ForgeProjectFeaturesEndpoint {
141756
141843
  createdByUserId: string;
141757
141844
  projectId: string;
141758
141845
  initialPrompt: string;
141846
+ numberOfIterations: number;
141759
141847
  updatedAt?: Date | undefined;
141760
141848
  sectionId?: string | undefined;
141761
141849
  isArchived?: boolean | undefined;
141850
+ lastReplyTimestamp?: Date | undefined;
141851
+ };
141852
+ }>;
141853
+ agentWorkFinalized(workspaceId: string, projectId: string, featureId: string, body: DTOFeatureAgentWorkFinalizeInput): Promise<{
141854
+ iteration: {
141855
+ id: string;
141856
+ createdAt: string;
141857
+ name: string;
141858
+ startedFromMessageId: string;
141859
+ updatedAt?: string | undefined;
141860
+ baseIterationId?: string | undefined;
141861
+ isInProgress?: boolean | undefined;
141862
+ staticPreviewUrl?: string | undefined;
141762
141863
  };
141763
141864
  }>;
141764
141865
  }
@@ -145059,9 +145160,11 @@ declare function applyProjectActionsLocally(input: Input): {
145059
145160
  createdByUserId: string;
145060
145161
  projectId: string;
145061
145162
  initialPrompt: string;
145163
+ numberOfIterations: number;
145062
145164
  updatedAt?: Date | undefined;
145063
145165
  sectionId?: string | undefined;
145064
145166
  isArchived?: boolean | undefined;
145167
+ lastReplyTimestamp?: Date | undefined;
145065
145168
  }[];
145066
145169
  artifactSections: {
145067
145170
  id: string;
@@ -145124,9 +145227,11 @@ declare class LocalProjectActionExecutor {
145124
145227
  createdByUserId: string;
145125
145228
  projectId: string;
145126
145229
  initialPrompt: string;
145230
+ numberOfIterations: number;
145127
145231
  updatedAt?: Date | undefined;
145128
145232
  sectionId?: string | undefined;
145129
145233
  isArchived?: boolean | undefined;
145234
+ lastReplyTimestamp?: Date | undefined;
145130
145235
  }[];
145131
145236
  artifactSections: {
145132
145237
  id: string;
package/dist/index.js CHANGED
@@ -5220,7 +5220,9 @@ var ProjectFeature = _zod.z.object({
5220
5220
  sortOrder: SortOrder.default(0),
5221
5221
  status: ProjectFeatureStatus.default("Draft"),
5222
5222
  initialPrompt: _zod.z.string(),
5223
- updatedAt: _zod.z.coerce.date().optional()
5223
+ updatedAt: _zod.z.coerce.date().optional(),
5224
+ numberOfIterations: _zod.z.number().min(0).default(0),
5225
+ lastReplyTimestamp: _zod.z.coerce.date().optional()
5224
5226
  });
5225
5227
  var ForgeProjectFigmaNode = _zod.z.object({
5226
5228
  id: _zod.z.string().uuid(),
@@ -9136,7 +9138,7 @@ var DTOFeatureMessage = _zod2.default.object({
9136
9138
  /**
9137
9139
  * Link agent response object describing current state of
9138
9140
  */
9139
- agentResponseTrackerId: Id.optional(),
9141
+ agentResponseTrackerId: Id.optional().nullable(),
9140
9142
  attachments: DTOFeatureMessageAttachments.optional(),
9141
9143
  createdAt: _zod2.default.string(),
9142
9144
  updatedAt: _zod2.default.string().optional()
@@ -9214,7 +9216,7 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
9214
9216
  agentResponseTrackerId: true,
9215
9217
  createdAt: true
9216
9218
  });
9217
- var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.pick({ body: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
9219
+ var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
9218
9220
  var DTOFeatureMessageReactionCreateInput = _zod2.default.object({
9219
9221
  messageId: Id,
9220
9222
  emoji: _zod2.default.string()
@@ -11499,6 +11501,16 @@ var ForgeProjectFeaturesEndpoint = class {
11499
11501
  {}
11500
11502
  );
11501
11503
  }
11504
+ agentWorkFinalized(workspaceId, projectId, featureId, body) {
11505
+ return this.requestExecutor.json(
11506
+ `/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/agent-work-finalize`,
11507
+ DTOFeatureIterationResponse,
11508
+ {
11509
+ method: "POST",
11510
+ body
11511
+ }
11512
+ );
11513
+ }
11502
11514
  };
11503
11515
 
11504
11516
  // src/api/endpoints/forge/project-files.ts
@@ -17956,7 +17968,9 @@ var LocalProjectActionExecutor = class {
17956
17968
  updatedAt: /* @__PURE__ */ new Date(),
17957
17969
  createdAt: /* @__PURE__ */ new Date(),
17958
17970
  createdByUserId: this.userId,
17959
- initialPrompt: input.initialPrompt
17971
+ initialPrompt: input.initialPrompt,
17972
+ lastReplyTimestamp: void 0,
17973
+ numberOfIterations: 0
17960
17974
  });
17961
17975
  }
17962
17976
  //