@fusebase/fusebase-gate-sdk 2.3.34-sdk.1 → 2.3.34-sdk.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/apis/NotesApi.d.ts
CHANGED
|
@@ -5,12 +5,25 @@
|
|
|
5
5
|
* Domain: notes
|
|
6
6
|
*/
|
|
7
7
|
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { AddWorkspaceNoteAttachmentRequestContract, AddWorkspaceNoteAttachmentResponseContract, AppendWorkspaceMarkdownNoteContentRequestContract, AppendWorkspaceNoteContentRequestContract, CreateWorkspaceMarkdownNoteRequestContract, CreateWorkspaceNoteFolderRequestContract, CreateWorkspaceNoteFolderResponseContract, CreateWorkspaceNoteRequestContract, CreateWorkspaceNoteResponseContract, orgIdInPathRequired, UpdateWorkspaceMarkdownNoteContentRequestContract, WorkspaceIdInPathRequired, WorkspaceMarkdownNoteResponseContract, WorkspaceNoteContentResponseContract, WorkspaceNoteFolderListResponseContract, WorkspaceNoteIdInPathRequired, WorkspaceNoteListResponseContract, WorkspaceNoteParentIdInQueryOptional } from "../types";
|
|
8
|
+
import type { AddWorkspaceMarkdownNoteAttachmentRequestContract, AddWorkspaceMarkdownNoteAttachmentResponseContract, AddWorkspaceNoteAttachmentRequestContract, AddWorkspaceNoteAttachmentResponseContract, AppendWorkspaceMarkdownNoteContentRequestContract, AppendWorkspaceNoteContentRequestContract, CreateWorkspaceMarkdownNoteRequestContract, CreateWorkspaceNoteFolderRequestContract, CreateWorkspaceNoteFolderResponseContract, CreateWorkspaceNoteRequestContract, CreateWorkspaceNoteResponseContract, orgIdInPathRequired, UpdateWorkspaceMarkdownNoteContentRequestContract, WorkspaceIdInPathRequired, WorkspaceMarkdownNoteResponseContract, WorkspaceNoteContentResponseContract, WorkspaceNoteFolderListResponseContract, WorkspaceNoteIdInPathRequired, WorkspaceNoteListResponseContract, WorkspaceNoteParentIdInQueryOptional } from "../types";
|
|
9
9
|
export declare class NotesApi {
|
|
10
10
|
private client;
|
|
11
11
|
constructor(client: Client);
|
|
12
12
|
/**
|
|
13
|
-
* Add
|
|
13
|
+
* Add markdown (v3) note attachment
|
|
14
|
+
* Attaches a stored-file UUID from the files upload flow to a v3 markdown note and appends the matching markdown to the note body: an image for image attachments, a link for every other type. Never touches the v2 editor document — use this op for notes whose `contentVersion` is `markdown_v3` and `addWorkspaceNoteAttachment` for v2 notes. The response carries the canonical attachment `url` and the appended `markdown` snippet, so clients do not have to build the link format themselves.
|
|
15
|
+
*/
|
|
16
|
+
addWorkspaceMarkdownNoteAttachment(params: {
|
|
17
|
+
path: {
|
|
18
|
+
orgId: orgIdInPathRequired;
|
|
19
|
+
workspaceId: WorkspaceIdInPathRequired;
|
|
20
|
+
noteId: WorkspaceNoteIdInPathRequired;
|
|
21
|
+
};
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
body: AddWorkspaceMarkdownNoteAttachmentRequestContract;
|
|
24
|
+
}): Promise<AddWorkspaceMarkdownNoteAttachmentResponseContract>;
|
|
25
|
+
/**
|
|
26
|
+
* Add workspace note attachment (v2 notes)
|
|
14
27
|
* Attaches a stored-file UUID from the files upload flow to a workspace note, then appends an image blot for image attachments or a file blot for all other attachment types. Prefer a real workspace id; when the path workspaceId is `default`, gate resolves it to the organization's default workspace before calling note-service and editor-server.
|
|
15
28
|
*/
|
|
16
29
|
addWorkspaceNoteAttachment(params: {
|
package/dist/apis/NotesApi.js
CHANGED
|
@@ -12,7 +12,22 @@ class NotesApi {
|
|
|
12
12
|
this.client = client;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Add
|
|
15
|
+
* Add markdown (v3) note attachment
|
|
16
|
+
* Attaches a stored-file UUID from the files upload flow to a v3 markdown note and appends the matching markdown to the note body: an image for image attachments, a link for every other type. Never touches the v2 editor document — use this op for notes whose `contentVersion` is `markdown_v3` and `addWorkspaceNoteAttachment` for v2 notes. The response carries the canonical attachment `url` and the appended `markdown` snippet, so clients do not have to build the link format themselves.
|
|
17
|
+
*/
|
|
18
|
+
async addWorkspaceMarkdownNoteAttachment(params) {
|
|
19
|
+
return this.client.request({
|
|
20
|
+
method: "POST",
|
|
21
|
+
path: "/:orgId/workspaces/:workspaceId/markdown-notes/:noteId/attachments",
|
|
22
|
+
pathParams: params.path,
|
|
23
|
+
headers: params.headers,
|
|
24
|
+
body: params.body,
|
|
25
|
+
opId: "addWorkspaceMarkdownNoteAttachment",
|
|
26
|
+
expectedContentType: "application/json",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Add workspace note attachment (v2 notes)
|
|
16
31
|
* Attaches a stored-file UUID from the files upload flow to a workspace note, then appends an image blot for image attachments or a file blot for all other attachment types. Prefer a real workspace id; when the path workspaceId is `default`, gate resolves it to the organization's default workspace before calling note-service and editor-server.
|
|
17
32
|
*/
|
|
18
33
|
async addWorkspaceNoteAttachment(params) {
|
|
@@ -143,6 +143,33 @@ export interface WorkspaceNoteAttachmentContract {
|
|
|
143
143
|
export interface AddWorkspaceNoteAttachmentResponseContract {
|
|
144
144
|
attachment: WorkspaceNoteAttachmentContract;
|
|
145
145
|
}
|
|
146
|
+
export interface AddWorkspaceMarkdownNoteAttachmentRequestContract {
|
|
147
|
+
/**
|
|
148
|
+
* Stored-file UUID returned by completeMultipartFileUpload.
|
|
149
|
+
*/
|
|
150
|
+
storedFileUUID: string;
|
|
151
|
+
/**
|
|
152
|
+
* Alt text for image attachments / link text for other files. Defaults to
|
|
153
|
+
* the attachment display name.
|
|
154
|
+
*/
|
|
155
|
+
alt?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export interface AddWorkspaceMarkdownNoteAttachmentResponseContract {
|
|
158
|
+
attachment: WorkspaceNoteAttachmentContract;
|
|
159
|
+
/**
|
|
160
|
+
* Canonical attachment URL. Use it as-is inside the note markdown.
|
|
161
|
+
*/
|
|
162
|
+
url: string;
|
|
163
|
+
/**
|
|
164
|
+
* Markdown snippet that was appended to the note: an image for image
|
|
165
|
+
* attachments, a link for everything else.
|
|
166
|
+
*/
|
|
167
|
+
markdown: string;
|
|
168
|
+
/**
|
|
169
|
+
* The note after the append, including its new revision.
|
|
170
|
+
*/
|
|
171
|
+
note: WorkspaceMarkdownNoteContract;
|
|
172
|
+
}
|
|
146
173
|
export declare const WorkspaceNoteContentFormatContract: {
|
|
147
174
|
readonly Text: "text";
|
|
148
175
|
readonly Html: "html";
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.3.34-sdk.
|
|
1
|
+
# Release Notes 2.3.34-sdk.3
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.3.34-sdk.
|
|
5
|
-
- Generated at: 2026-07-
|
|
4
|
+
- Previous tag: `v2.3.34-sdk.3`
|
|
5
|
+
- Generated at: 2026-07-21T14:27:05.038Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|