@supernova-studio/client 1.42.1 → 1.42.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.mts +2256 -2302
- package/dist/index.d.ts +2256 -2302
- package/dist/index.js +75 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9156,22 +9156,25 @@ var DTOFileReference = DTOFile.pick({
|
|
|
9156
9156
|
url: true,
|
|
9157
9157
|
source: true
|
|
9158
9158
|
});
|
|
9159
|
-
var
|
|
9160
|
-
|
|
9159
|
+
var DTOFileUploadOwnerUser = z310.object({
|
|
9160
|
+
ownerType: z310.literal("User")
|
|
9161
9161
|
});
|
|
9162
|
-
var
|
|
9163
|
-
|
|
9162
|
+
var DTOFileUploadOwnerWorkspace = z310.object({
|
|
9163
|
+
ownerType: z310.literal("Workspace"),
|
|
9164
9164
|
workspaceId: z310.string()
|
|
9165
9165
|
});
|
|
9166
|
-
var
|
|
9166
|
+
var DTOFileUploadOwner = z310.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
|
|
9167
9167
|
var DTOFileUploadInput = z310.object({
|
|
9168
9168
|
size: z310.number(),
|
|
9169
9169
|
name: z310.string(),
|
|
9170
9170
|
checksum: z310.string()
|
|
9171
9171
|
});
|
|
9172
|
-
var
|
|
9172
|
+
var DTOFileUploadBulkPayload = z310.object({
|
|
9173
9173
|
files: DTOFileUploadInput.array()
|
|
9174
|
-
}).and(
|
|
9174
|
+
}).and(DTOFileUploadOwner);
|
|
9175
|
+
var DTOFileFinalizeBulkPayload = z310.object({
|
|
9176
|
+
fileIds: z310.string().array()
|
|
9177
|
+
}).and(DTOFileUploadOwner);
|
|
9175
9178
|
var DTOFileListResponse = z310.object({
|
|
9176
9179
|
files: DTOFile.array()
|
|
9177
9180
|
});
|
|
@@ -9184,6 +9187,9 @@ var DTOFileUploadBulkResponse = z310.object({
|
|
|
9184
9187
|
})
|
|
9185
9188
|
)
|
|
9186
9189
|
});
|
|
9190
|
+
var DTOFileFinalizeBulkResponse = z310.object({
|
|
9191
|
+
files: z310.array(DTOFile)
|
|
9192
|
+
});
|
|
9187
9193
|
|
|
9188
9194
|
// src/api/dto/forge/agent.ts
|
|
9189
9195
|
import { z as z311 } from "zod";
|
|
@@ -9536,15 +9542,10 @@ var DTOFeatureEventReactionsDeleted = z313.object({
|
|
|
9536
9542
|
type: z313.literal("ReactionsDeleted"),
|
|
9537
9543
|
data: DTOFeatureMessageReaction
|
|
9538
9544
|
});
|
|
9539
|
-
var DTOFeatureEventAgentResponseFinished = z313.object({
|
|
9540
|
-
type: z313.literal("AgentResponseFinished"),
|
|
9541
|
-
data: DTOFeatureMessage
|
|
9542
|
-
});
|
|
9543
9545
|
var DTOFeatureEvent = z313.discriminatedUnion("type", [
|
|
9544
9546
|
DTOFeatureEventMessagesSent,
|
|
9545
9547
|
DTOFeatureEventReactionsSent,
|
|
9546
|
-
DTOFeatureEventReactionsDeleted
|
|
9547
|
-
DTOFeatureEventAgentResponseFinished
|
|
9548
|
+
DTOFeatureEventReactionsDeleted
|
|
9548
9549
|
]);
|
|
9549
9550
|
|
|
9550
9551
|
// src/api/dto/forge/feature-room.ts
|
|
@@ -9712,7 +9713,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9712
9713
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
9713
9714
|
});
|
|
9714
9715
|
var DTOThreadMessageFinalizeInput = z317.object({
|
|
9715
|
-
messageId: Id
|
|
9716
|
+
messageId: Id,
|
|
9717
|
+
agentMessageBody: z317.string().optional()
|
|
9716
9718
|
});
|
|
9717
9719
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9718
9720
|
id: true
|
|
@@ -10429,7 +10431,7 @@ var DTOThemeCreatePayload = z335.object({
|
|
|
10429
10431
|
overrides: DTOThemeOverride.array()
|
|
10430
10432
|
});
|
|
10431
10433
|
|
|
10432
|
-
// src/api/dto/trail-events/
|
|
10434
|
+
// src/api/dto/trail-events/trail-events.ts
|
|
10433
10435
|
import { z as z336 } from "zod";
|
|
10434
10436
|
var DTOTrailEventType = z336.enum([
|
|
10435
10437
|
"IterationCreated",
|
|
@@ -11082,7 +11084,7 @@ var FigmaFrameStructuresEndpoint = class {
|
|
|
11082
11084
|
};
|
|
11083
11085
|
|
|
11084
11086
|
// src/api/endpoints/design-system/versions/files.ts
|
|
11085
|
-
var
|
|
11087
|
+
var DesignSystemFilesEndpoint = class {
|
|
11086
11088
|
constructor(requestExecutor) {
|
|
11087
11089
|
this.requestExecutor = requestExecutor;
|
|
11088
11090
|
}
|
|
@@ -11345,7 +11347,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
11345
11347
|
this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
|
|
11346
11348
|
this.documentation = new DocumentationEndpoint(requestExecutor);
|
|
11347
11349
|
this.codeComponents = new CodeComponentsEndpoint(requestExecutor);
|
|
11348
|
-
this.files = new
|
|
11350
|
+
this.files = new DesignSystemFilesEndpoint(requestExecutor);
|
|
11349
11351
|
}
|
|
11350
11352
|
list(dsId) {
|
|
11351
11353
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
@@ -12363,6 +12365,25 @@ var WorkspacesEndpoint = class {
|
|
|
12363
12365
|
}
|
|
12364
12366
|
};
|
|
12365
12367
|
|
|
12368
|
+
// src/api/endpoints/files.ts
|
|
12369
|
+
var FilesEndpoint = class {
|
|
12370
|
+
constructor(requestExecutor) {
|
|
12371
|
+
this.requestExecutor = requestExecutor;
|
|
12372
|
+
}
|
|
12373
|
+
upload(body) {
|
|
12374
|
+
return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
|
|
12375
|
+
method: "POST",
|
|
12376
|
+
body
|
|
12377
|
+
});
|
|
12378
|
+
}
|
|
12379
|
+
finalizeUpload(body) {
|
|
12380
|
+
return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
|
|
12381
|
+
method: "POST",
|
|
12382
|
+
body
|
|
12383
|
+
});
|
|
12384
|
+
}
|
|
12385
|
+
};
|
|
12386
|
+
|
|
12366
12387
|
// src/api/endpoints/liveblocks.ts
|
|
12367
12388
|
var LiveblocksEndpoint = class {
|
|
12368
12389
|
constructor(requestExecutor) {
|
|
@@ -12376,6 +12397,34 @@ var LiveblocksEndpoint = class {
|
|
|
12376
12397
|
}
|
|
12377
12398
|
};
|
|
12378
12399
|
|
|
12400
|
+
// src/api/endpoints/threads.ts
|
|
12401
|
+
var ThreadsEndpoint = class {
|
|
12402
|
+
constructor(requestExecutor) {
|
|
12403
|
+
this.requestExecutor = requestExecutor;
|
|
12404
|
+
}
|
|
12405
|
+
listMessages(threadId) {
|
|
12406
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
|
|
12407
|
+
}
|
|
12408
|
+
postMessage(threadId, body) {
|
|
12409
|
+
return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
|
|
12410
|
+
method: "POST",
|
|
12411
|
+
body
|
|
12412
|
+
});
|
|
12413
|
+
}
|
|
12414
|
+
postReaction(threadId, body) {
|
|
12415
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
|
|
12416
|
+
method: "POST",
|
|
12417
|
+
body
|
|
12418
|
+
});
|
|
12419
|
+
}
|
|
12420
|
+
deleteReaction(threadId, body) {
|
|
12421
|
+
return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
|
|
12422
|
+
method: "DELETE",
|
|
12423
|
+
body
|
|
12424
|
+
});
|
|
12425
|
+
}
|
|
12426
|
+
};
|
|
12427
|
+
|
|
12379
12428
|
// src/api/endpoints/users.ts
|
|
12380
12429
|
var UsersEndpoint = class {
|
|
12381
12430
|
constructor(requestExecutor) {
|
|
@@ -12518,6 +12567,8 @@ var SupernovaApiClient = class {
|
|
|
12518
12567
|
__publicField(this, "codegen");
|
|
12519
12568
|
__publicField(this, "liveblocks");
|
|
12520
12569
|
__publicField(this, "forge");
|
|
12570
|
+
__publicField(this, "files");
|
|
12571
|
+
__publicField(this, "threads");
|
|
12521
12572
|
const requestExecutor = new RequestExecutor({
|
|
12522
12573
|
host: config.host,
|
|
12523
12574
|
accessToken: config.accessToken
|
|
@@ -12528,6 +12579,8 @@ var SupernovaApiClient = class {
|
|
|
12528
12579
|
this.codegen = new CodegenEndpoint(requestExecutor);
|
|
12529
12580
|
this.liveblocks = new LiveblocksEndpoint(requestExecutor);
|
|
12530
12581
|
this.forge = new ForgeEndpoint(requestExecutor);
|
|
12582
|
+
this.files = new FilesEndpoint(requestExecutor);
|
|
12583
|
+
this.threads = new ThreadsEndpoint(requestExecutor);
|
|
12531
12584
|
}
|
|
12532
12585
|
};
|
|
12533
12586
|
|
|
@@ -19206,7 +19259,6 @@ export {
|
|
|
19206
19259
|
DTOFeatureArtifactListResponse,
|
|
19207
19260
|
DTOFeatureArtifactResponse,
|
|
19208
19261
|
DTOFeatureEvent,
|
|
19209
|
-
DTOFeatureEventAgentResponseFinished,
|
|
19210
19262
|
DTOFeatureEventMessagesSent,
|
|
19211
19263
|
DTOFeatureEventReactionsDeleted,
|
|
19212
19264
|
DTOFeatureEventReactionsSent,
|
|
@@ -19264,12 +19316,15 @@ export {
|
|
|
19264
19316
|
DTOFigmaNodeV2,
|
|
19265
19317
|
DTOFigmaSourceUpdatePayload,
|
|
19266
19318
|
DTOFile,
|
|
19319
|
+
DTOFileFinalizeBulkPayload,
|
|
19320
|
+
DTOFileFinalizeBulkResponse,
|
|
19267
19321
|
DTOFileListResponse,
|
|
19268
19322
|
DTOFileReference,
|
|
19269
19323
|
DTOFileResponseItem,
|
|
19270
19324
|
DTOFileSource,
|
|
19271
19325
|
DTOFileSourceFigma,
|
|
19272
19326
|
DTOFileSourceUpload,
|
|
19327
|
+
DTOFileUploadBulkPayload,
|
|
19273
19328
|
DTOFileUploadBulkResponse,
|
|
19274
19329
|
DTOFileUploadFinalizePayload,
|
|
19275
19330
|
DTOFileUploadFinalizeResponse,
|
|
@@ -19601,6 +19656,7 @@ export {
|
|
|
19601
19656
|
DesignSystemBffEndpoint,
|
|
19602
19657
|
DesignSystemComponentEndpoint,
|
|
19603
19658
|
DesignSystemContactsEndpoint,
|
|
19659
|
+
DesignSystemFilesEndpoint,
|
|
19604
19660
|
DesignSystemMembersEndpoint,
|
|
19605
19661
|
DesignSystemPageRedirectsEndpoint,
|
|
19606
19662
|
DesignSystemSourcesEndpoint,
|
|
@@ -19668,6 +19724,7 @@ export {
|
|
|
19668
19724
|
SupernovaApiClient,
|
|
19669
19725
|
ThemesEndpoint,
|
|
19670
19726
|
ThreadRoomBaseYDoc,
|
|
19727
|
+
ThreadsEndpoint,
|
|
19671
19728
|
TokenCollectionsEndpoint,
|
|
19672
19729
|
TokenGroupsEndpoint,
|
|
19673
19730
|
TokensEndpoint,
|