@supernova-studio/client 1.9.19 → 1.10.0
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 +1567 -76
- package/dist/index.d.ts +1567 -76
- package/dist/index.js +15 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +72 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -440,12 +440,12 @@ var Subscription = _zod.z.object({
|
|
|
440
440
|
});
|
|
441
441
|
var ForgeChatMessageSenderType = _zod.z.enum(["User", "Agent"]);
|
|
442
442
|
var ForgeChatMessageSender = _zod.z.discriminatedUnion("type", [
|
|
443
|
-
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.User) }),
|
|
443
|
+
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.User), userId: _zod.z.string() }),
|
|
444
444
|
_zod.z.object({ type: _zod.z.literal(ForgeChatMessageSenderType.Values.Agent), persona: _zod.z.literal("Amy") })
|
|
445
445
|
]);
|
|
446
446
|
var ForgeChatMessage = _zod.z.object({
|
|
447
|
-
id: _zod.z.
|
|
448
|
-
threadId: _zod.z.
|
|
447
|
+
id: _zod.z.string(),
|
|
448
|
+
threadId: _zod.z.string(),
|
|
449
449
|
payload: _zod.z.string(),
|
|
450
450
|
createdAt: _zod.z.coerce.date(),
|
|
451
451
|
updatedAt: _zod.z.coerce.date(),
|
|
@@ -4846,7 +4846,8 @@ var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
|
4846
4846
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4847
4847
|
var ExportJobDocumentationChanges = _zod.z.object({
|
|
4848
4848
|
pagePersistentIds: _zod.z.string().array(),
|
|
4849
|
-
groupPersistentIds: _zod.z.string().array()
|
|
4849
|
+
groupPersistentIds: _zod.z.string().array(),
|
|
4850
|
+
selectivePublishing: _zod.z.boolean().optional()
|
|
4850
4851
|
});
|
|
4851
4852
|
var ExporterDestinationDocs = _zod.z.object({
|
|
4852
4853
|
environment: PublishedDocEnvironment,
|
|
@@ -4860,7 +4861,10 @@ var GitCommonDestinationOptions = _zod.z.object({
|
|
|
4860
4861
|
commitAuthorEmail: nullishToOptional(_zod.z.string()),
|
|
4861
4862
|
commitMessage: nullishToOptional(_zod.z.string()),
|
|
4862
4863
|
pullRequestTitle: nullishToOptional(_zod.z.string()),
|
|
4863
|
-
pullRequestDescription: nullishToOptional(_zod.z.string())
|
|
4864
|
+
pullRequestDescription: nullishToOptional(_zod.z.string()),
|
|
4865
|
+
checkoutNoTags: nullishToOptional(_zod.z.boolean()),
|
|
4866
|
+
checkoutNoBlobs: nullishToOptional(_zod.z.boolean()),
|
|
4867
|
+
checkoutSparse: nullishToOptional(_zod.z.boolean())
|
|
4864
4868
|
});
|
|
4865
4869
|
var ExporterDestinationS3 = _zod.z.object({});
|
|
4866
4870
|
var ExporterDestinationGithub = _zod.z.object({
|
|
@@ -6391,7 +6395,7 @@ var DTOStorybookSourceUpdatePayload = _zod.z.object({
|
|
|
6391
6395
|
fileName: _zod.z.string().optional()
|
|
6392
6396
|
});
|
|
6393
6397
|
var DTOFigmaSourceUpdatePayload = _zod.z.object({
|
|
6394
|
-
themeId: _zod.z.string().
|
|
6398
|
+
themeId: _zod.z.string().nullish(),
|
|
6395
6399
|
scope: DataSourceFigmaScope.optional(),
|
|
6396
6400
|
autoImportMode: DataSourceAutoImportMode.optional()
|
|
6397
6401
|
});
|
|
@@ -6772,7 +6776,7 @@ var DTOForgeChatThreadListResponse = _zod.z.object({
|
|
|
6772
6776
|
});
|
|
6773
6777
|
var DTOForgeChatMessageCreateInput = _zod.z.object({
|
|
6774
6778
|
payload: _zod.z.string(),
|
|
6775
|
-
sender: DTOForgeChatMessageSender
|
|
6779
|
+
sender: DTOForgeChatMessageSender.optional()
|
|
6776
6780
|
});
|
|
6777
6781
|
var DTOForgeChatMessageCreateResponse = _zod.z.object({
|
|
6778
6782
|
message: DTOForgeChatMessage
|
|
@@ -9820,6 +9824,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9820
9824
|
};
|
|
9821
9825
|
|
|
9822
9826
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
9827
|
+
|
|
9823
9828
|
var WorkspaceChatThreadsEndpoint = class {
|
|
9824
9829
|
constructor(requestExecutor) {
|
|
9825
9830
|
this.requestExecutor = requestExecutor;
|
|
@@ -9851,13 +9856,9 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
9851
9856
|
);
|
|
9852
9857
|
}
|
|
9853
9858
|
delete(workspaceId, threadId) {
|
|
9854
|
-
return this.requestExecutor.json(
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
{
|
|
9858
|
-
method: "DELETE"
|
|
9859
|
-
}
|
|
9860
|
-
);
|
|
9859
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, _zod.z.any(), {
|
|
9860
|
+
method: "DELETE"
|
|
9861
|
+
});
|
|
9861
9862
|
}
|
|
9862
9863
|
};
|
|
9863
9864
|
var ChatThreadMessagesEndpoint = class {
|