@supernova-studio/client 1.81.4 → 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.d.mts +1184 -25
- package/dist/index.d.ts +1184 -25
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6214,8 +6214,7 @@ var ExporterFunctionPayload = z203.object({
|
|
|
6214
6214
|
exportContextId: z203.string(),
|
|
6215
6215
|
designSystemId: z203.string(),
|
|
6216
6216
|
workspaceId: z203.string(),
|
|
6217
|
-
exporterId: z203.string()
|
|
6218
|
-
runnerType: z203.enum(["High", "Low"])
|
|
6217
|
+
exporterId: z203.string()
|
|
6219
6218
|
});
|
|
6220
6219
|
|
|
6221
6220
|
// ../model/src/export/export-jobs.ts
|
|
@@ -10716,6 +10715,15 @@ var DTOThreadMessageAttachments = z323.object({
|
|
|
10716
10715
|
templateId: z323.string().optional(),
|
|
10717
10716
|
figmaNodes: DTOForgeFigmaNode.array().optional()
|
|
10718
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
|
+
});
|
|
10719
10727
|
var DTOThreadMessage = z323.object({
|
|
10720
10728
|
id: Id,
|
|
10721
10729
|
threadId: z323.string(),
|
|
@@ -10749,6 +10757,7 @@ var DTOThreadMessage = z323.object({
|
|
|
10749
10757
|
*/
|
|
10750
10758
|
agentResponseTrackerId: Id.optional().nullable(),
|
|
10751
10759
|
attachments: DTOThreadMessageAttachments.optional(),
|
|
10760
|
+
annotations: DTOThreadMessageAnnotations.optional(),
|
|
10752
10761
|
/**
|
|
10753
10762
|
* If defined, this message is considered to be a reply to different message
|
|
10754
10763
|
*/
|
|
@@ -10773,7 +10782,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
10773
10782
|
isPrompt: true,
|
|
10774
10783
|
startsNewThread: true,
|
|
10775
10784
|
parentMessageId: true,
|
|
10776
|
-
promptMetadata: true
|
|
10785
|
+
promptMetadata: true,
|
|
10786
|
+
annotations: true
|
|
10777
10787
|
}).extend({
|
|
10778
10788
|
attachments: DTOThreadMessageAttachmentsCreateInput.optional()
|
|
10779
10789
|
});
|
|
@@ -12315,6 +12325,27 @@ var DTOTrailEventClientCreate = z352.discriminatedUnion("type", [
|
|
|
12315
12325
|
z352.object({ type: z352.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
12316
12326
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
12317
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
|
+
|
|
12318
12349
|
// src/api/endpoints/codegen/exporters.ts
|
|
12319
12350
|
var ExportersEndpoint = class {
|
|
12320
12351
|
constructor(requestExecutor) {
|
|
@@ -14402,6 +14433,7 @@ var RequestExecutor = class {
|
|
|
14402
14433
|
var SupernovaApiClient = class {
|
|
14403
14434
|
constructor(config) {
|
|
14404
14435
|
this.config = config;
|
|
14436
|
+
__publicField(this, "authTokens");
|
|
14405
14437
|
__publicField(this, "users");
|
|
14406
14438
|
__publicField(this, "workspaces");
|
|
14407
14439
|
__publicField(this, "designSystems");
|
|
@@ -14419,6 +14451,7 @@ var SupernovaApiClient = class {
|
|
|
14419
14451
|
host: config.host,
|
|
14420
14452
|
accessToken: config.accessToken
|
|
14421
14453
|
});
|
|
14454
|
+
this.authTokens = new AuthTokensEndpoint(requestExecutor);
|
|
14422
14455
|
this.users = new UsersEndpoint(requestExecutor);
|
|
14423
14456
|
this.workspaces = new WorkspacesEndpoint(requestExecutor);
|
|
14424
14457
|
this.designSystems = new DesignSystemsEndpoint(requestExecutor);
|
|
@@ -20750,6 +20783,7 @@ var TransactionQueue2 = class {
|
|
|
20750
20783
|
}
|
|
20751
20784
|
};
|
|
20752
20785
|
export {
|
|
20786
|
+
AuthTokensEndpoint,
|
|
20753
20787
|
BackendFeatureRoomYDoc,
|
|
20754
20788
|
BackendForgeProjectRoomYDoc,
|
|
20755
20789
|
BackendThreadRoomYDoc,
|
|
@@ -21465,6 +21499,7 @@ export {
|
|
|
21465
21499
|
DTOThreadEventReactionsSent,
|
|
21466
21500
|
DTOThreadMessage,
|
|
21467
21501
|
DTOThreadMessageAgentSender,
|
|
21502
|
+
DTOThreadMessageAnnotations,
|
|
21468
21503
|
DTOThreadMessageAttachments,
|
|
21469
21504
|
DTOThreadMessageAttachmentsCreateInput,
|
|
21470
21505
|
DTOThreadMessageCreateInput,
|