@faiber/faiber-task 0.21.1 → 0.23.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/README.md +38 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/collaboration.d.ts +291 -0
- package/dist/collaboration.d.ts.map +1 -0
- package/dist/collaboration.js +99 -0
- package/dist/collaboration.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +629 -81
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +775 -110
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +493 -1
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +8 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/workspace.d.ts +42 -0
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -68,3 +68,41 @@ const applied = await task.workspaceAssistant.apply(
|
|
|
68
68
|
|
|
69
69
|
`revise` validates edited operations and produces a new revision. On a conflict, `refresh` rebuilds the preview from current records; review it again before applying. Approval is transactional and idempotent for the same revision. All methods inherit caller authentication, cancellation, and Axios error handling. They require `task:access:use` plus each operation's current Task capability; project-owner billing never grants access. Initial `createWorkItem` checklists and personal reminders are committed together with the task.
|
|
70
70
|
Administrative 2Done reports: `adminUserPlans({ user_ids })` returns sandbox subscriptions for up to 100 comma-separated user UUIDs; `incomeReport({ from, to, plan?, page? })` returns confirmed purchases and daily cash income in toman. Dates are inclusive YYYY-MM-DD in Asia/Tehran, at most 366 days. Both require verified administrator role and Task access. Methods retain the full Axios response and accept cancellation options.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Boards, private sources and note memory
|
|
74
|
+
|
|
75
|
+
`task.collaboration` exposes versioned shared workflows, private attachments, note media,
|
|
76
|
+
imports, indexing and owner-pooled allowances. Inspect `config()` before offering a
|
|
77
|
+
feature and use its deployment-specific file/audio ceilings. Stage IDs and canonical
|
|
78
|
+
categories remain stable when names change. Only space managers edit shared stages;
|
|
79
|
+
participants can transition only assigned tasks. A 409 requires refreshed versions and
|
|
80
|
+
an updated preview before retrying a move.
|
|
81
|
+
|
|
82
|
+
Create an attachment reservation with a stable request UUID and SHA-256 checksum, upload
|
|
83
|
+
with `uploadAttachment`, then poll `attachment` until scanning marks it clean. Bind clean
|
|
84
|
+
IDs to a comment or use `attachNoteMedia`/`setNoteCover` with the current note version.
|
|
85
|
+
Downloads recheck Task permissions. Storage remains charged while retained originals
|
|
86
|
+
exist; unbinding a file preserves note text and schedules abandoned-object cleanup.
|
|
87
|
+
|
|
88
|
+
`startNoteImport` accepts a clean private original; `startSourceImport` accepts a public
|
|
89
|
+
HTTP(S) page. Poll `noteImport`, show extraction and provenance, then explicitly approve
|
|
90
|
+
with `applyNoteImport`. One conversion consumes one import; OCR and audio also use their
|
|
91
|
+
configured allowances. Cancellation and retry use the job version. Never automatically
|
|
92
|
+
apply extracted content. `workspaceAssistant.propose` supports `import_note` with the
|
|
93
|
+
current import/note versions, append/replace mode and an optional reviewed summary; the
|
|
94
|
+
original stays attached. A changed source or note returns 409.
|
|
95
|
+
|
|
96
|
+
`searchNotes` defaults to one specified project and accepts up to nine additional
|
|
97
|
+
accessible projects. Task reauthorizes every returned note/version before returning a
|
|
98
|
+
citation. `noteIndexing` and `retryNoteIndexing` expose progress and authorized retry.
|
|
99
|
+
New content remains directly readable through explicit note selection during indexing.
|
|
100
|
+
Saved supported originals are extracted asynchronously without changing note writing.
|
|
101
|
+
|
|
102
|
+
Reviewed `archive_note` operations take `archived: true` or `false`. They retain content,
|
|
103
|
+
files and history. Default assistant queries and knowledge search omit archived notes;
|
|
104
|
+
explicit note selection remains permission checked. Use `include_archived: true` only
|
|
105
|
+
when the user requests archived records. All methods preserve Axios responses and accept
|
|
106
|
+
request options, including cancellation signals.
|
|
107
|
+
|
|
108
|
+
Internal operations require a trusted server credential and current tenant scope. Never call them from a browser or expose the service credential to application users.
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/realtime.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/workspace.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66,67],[60,61,64],[60],[68,69,70,71,72],[68,70,71],[68,69],[68]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"fdd1b5a8a2b98f82c94e4dc4e3b207ca81766b656d23acd3c7458fffd9af21dd","impliedFormat":99},{"version":"592008e6c10d18a553a527be32dc1803ad429c17d8090a7434a21f5aff0a4676","signature":"16ce85d152ce54425d82072b79ba0fe972be07fab382397d488e86e822c8e881","impliedFormat":99},{"version":"77a40bd42909c411211aaa1e017c3cbf088980be8fc8253c21460369cd89256b","signature":"957290d195fac41901b74d0336ea5f6d39e6b1f893cc05c8ef38cdfed375fd26","impliedFormat":99},{"version":"20b01ce2d70acefff6fb1cf3df29f21fd213fe080c4c146475e0fa60386b366e","signature":"6c03f7c38960990bcb88f5896be7df8527e98fa639dd1b08a108c3b07d7eb2d0","impliedFormat":99},{"version":"cb611d0f9ad32bacb3d424b8a56a748ecd0641cc8b0e570f0c5b5eb758f55fbf","signature":"e6a4d605f200cf1474350431c9d19cfbf4ea432e5f379ef2374045930c4f84f0","impliedFormat":99},{"version":"1026aed88dd91af5b720be0b61e6fd8a61a86c2bf5f34d261103c9127b746ce9","signature":"f95085f520e3541452a5017658ff8b05deb8097b3c4be3b89586a991dc18fea9","impliedFormat":99}],"root":[[69,73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[68,3],[66,4],[65,4],[61,5],[73,6],[72,7],[71,8],[69,9],[70,8]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/realtime.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/collaboration.ts","../src/workspace.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66,67],[60,61,64],[60],[68,69],[68,69,70,71,72,73],[68,72],[68,69,70],[68,70]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"74d1d74d5dadbbb70e8e294d3419c58885629a9fc95141cbf158a3febb523300","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"fdd1b5a8a2b98f82c94e4dc4e3b207ca81766b656d23acd3c7458fffd9af21dd","impliedFormat":99},{"version":"f6e792714a11c9df04fa880ffdda968d2ede9e10dbe26a636dba1a417ff053a7","signature":"00bb4ac10201b49751a930d12f45a55b8190ef7f29dae80ef0799a3768411e65","impliedFormat":99},{"version":"b923ddcec4ffb6aa6b86420ff9dbbefc5f5e3525edc7c2ee051ac68f76c2bd25","signature":"4945b0e5b5523866d143b4cf48129942c01201b1d3ec9e5c247ba3a23c8c8896","impliedFormat":99},{"version":"dffe79a11398c10b1d71a5d57cc483a995a0ccc49799eed6e09791d9a19dcf99","signature":"cb53510b6cff7fca5be8a0c4f8e62851803c79256f421f240ad1a0e4e8c4be26","impliedFormat":99},{"version":"3387b600c7c092c4f555012f3757611fd5f1be309da21a2ecba80447ae3778ca","signature":"8a8e3c0edda01ab2abc6143244b96cf2d2e4ecf7f773e6cd14b8ae05df8b5a4a","impliedFormat":99},{"version":"1555f778ccf877d4b8fc094b0b243dca025b7230a969cbd44f6e3342b94c3d40","signature":"4a38d73ddcbea7acdd0fd7d93dce0dbc3d292111695857807b856fc54565788a","impliedFormat":99},{"version":"fb0689e1376ced7352d775027fbcb931c8c7b281bd8b268826ae920d4e52b555","signature":"a41e2b8fcfbacc0c081734cbb08e94214605e3c05d25eaa8e088cf27fab0f059","impliedFormat":99}],"root":[[69,74]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[68,3],[66,4],[65,4],[61,5],[70,6],[74,7],[73,8],[72,9],[69,10],[71,6]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { ServiceApi, type Identifier, type RequestOptions } from '@faiber/sdk-core';
|
|
2
|
+
import type { TaskResponse } from './types.js';
|
|
3
|
+
export type StageCategory = 'backlog' | 'unstarted' | 'started' | 'completed' | 'cancelled';
|
|
4
|
+
export interface BoardStage {
|
|
5
|
+
id: string;
|
|
6
|
+
key: string;
|
|
7
|
+
name: Record<string, string>;
|
|
8
|
+
category: StageCategory;
|
|
9
|
+
position: number;
|
|
10
|
+
wip_limit: number | null;
|
|
11
|
+
}
|
|
12
|
+
export interface BoardWorkflow {
|
|
13
|
+
id: string;
|
|
14
|
+
project_id: string;
|
|
15
|
+
version: number;
|
|
16
|
+
stages: BoardStage[];
|
|
17
|
+
}
|
|
18
|
+
export interface SaveBoardWorkflow {
|
|
19
|
+
version: number;
|
|
20
|
+
stages: BoardStage[];
|
|
21
|
+
destinations?: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
export type MemoryBucket = 'storage_bytes' | 'imports' | 'research' | 'audio_seconds';
|
|
24
|
+
export interface MemoryAllowance {
|
|
25
|
+
bucket: MemoryBucket;
|
|
26
|
+
limit: number;
|
|
27
|
+
used: number;
|
|
28
|
+
reserved: number;
|
|
29
|
+
remaining: number;
|
|
30
|
+
}
|
|
31
|
+
export interface MemoryUsage {
|
|
32
|
+
owner_id: string;
|
|
33
|
+
plan: string;
|
|
34
|
+
period_start: string;
|
|
35
|
+
period_end: string;
|
|
36
|
+
allowances: MemoryAllowance[];
|
|
37
|
+
}
|
|
38
|
+
export type AttachmentPurpose = 'comment' | 'cover' | 'inline' | 'note' | 'import';
|
|
39
|
+
export type AttachmentStatus = 'pending' | 'quarantined' | 'clean' | 'rejected' | 'deleted';
|
|
40
|
+
export interface TaskAttachment {
|
|
41
|
+
id: string;
|
|
42
|
+
work_item_id: string;
|
|
43
|
+
filename: string;
|
|
44
|
+
content_type: string;
|
|
45
|
+
size_bytes: number;
|
|
46
|
+
status: AttachmentStatus;
|
|
47
|
+
purpose: AttachmentPurpose;
|
|
48
|
+
version: number;
|
|
49
|
+
}
|
|
50
|
+
export interface CreateAttachment {
|
|
51
|
+
request_id: string;
|
|
52
|
+
filename: string;
|
|
53
|
+
content_type: string;
|
|
54
|
+
size_bytes: number;
|
|
55
|
+
checksum_sha256: string;
|
|
56
|
+
purpose: AttachmentPurpose;
|
|
57
|
+
}
|
|
58
|
+
export interface UploadAttachment {
|
|
59
|
+
file: Blob;
|
|
60
|
+
filename: string;
|
|
61
|
+
}
|
|
62
|
+
export interface DeletedAttachment {
|
|
63
|
+
id: string;
|
|
64
|
+
deleted: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface NoteMediaItem {
|
|
67
|
+
attachment: TaskAttachment;
|
|
68
|
+
role: 'cover' | 'inline' | 'attachment' | 'source';
|
|
69
|
+
description: string;
|
|
70
|
+
focus_x: number;
|
|
71
|
+
focus_y: number;
|
|
72
|
+
}
|
|
73
|
+
export interface NoteMedia {
|
|
74
|
+
note_id: string;
|
|
75
|
+
version: number;
|
|
76
|
+
items: NoteMediaItem[];
|
|
77
|
+
}
|
|
78
|
+
export interface SetNoteCover {
|
|
79
|
+
version: number;
|
|
80
|
+
attachment_id: string | null;
|
|
81
|
+
description?: string;
|
|
82
|
+
focus_x?: number;
|
|
83
|
+
focus_y?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface AddNoteMedia {
|
|
86
|
+
version: number;
|
|
87
|
+
attachment_id: string;
|
|
88
|
+
role: 'inline' | 'attachment' | 'source';
|
|
89
|
+
description?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface CollaborationConfig {
|
|
92
|
+
media: boolean;
|
|
93
|
+
boards: boolean;
|
|
94
|
+
knowledge?: boolean;
|
|
95
|
+
imports?: boolean;
|
|
96
|
+
web_imports?: boolean;
|
|
97
|
+
max_web_bytes?: number;
|
|
98
|
+
media_imports?: boolean;
|
|
99
|
+
max_import_image_bytes?: number;
|
|
100
|
+
max_import_audio_bytes?: number;
|
|
101
|
+
max_import_audio_seconds?: number;
|
|
102
|
+
research?: boolean;
|
|
103
|
+
voice?: boolean;
|
|
104
|
+
max_file_bytes: number;
|
|
105
|
+
max_audio_bytes: number;
|
|
106
|
+
}
|
|
107
|
+
export interface PlanMemoryLimit {
|
|
108
|
+
plan: 'none' | 'trial' | 'personal' | 'planner' | 'business' | 'legend';
|
|
109
|
+
storage_bytes: number;
|
|
110
|
+
imports: number;
|
|
111
|
+
research: number;
|
|
112
|
+
audio_seconds: number;
|
|
113
|
+
version: number;
|
|
114
|
+
}
|
|
115
|
+
export interface PlanMemoryLimits {
|
|
116
|
+
items: PlanMemoryLimit[];
|
|
117
|
+
}
|
|
118
|
+
export interface RemoveNoteMedia {
|
|
119
|
+
version: number;
|
|
120
|
+
}
|
|
121
|
+
export type AttachmentDownload = ArrayBuffer | Uint8Array;
|
|
122
|
+
export interface NoteImportJob {
|
|
123
|
+
project_id: string;
|
|
124
|
+
id: string;
|
|
125
|
+
note_id: string;
|
|
126
|
+
attachment_id: string | null;
|
|
127
|
+
source_url?: string | null;
|
|
128
|
+
index_only?: boolean;
|
|
129
|
+
media_kind?: 'document' | 'image' | 'audio';
|
|
130
|
+
language?: 'auto' | 'fa' | 'en';
|
|
131
|
+
note_version: number;
|
|
132
|
+
version: number;
|
|
133
|
+
status: 'queued' | 'processing' | 'preview' | 'applied' | 'failed' | 'cancelled';
|
|
134
|
+
error_code?: string;
|
|
135
|
+
result?: DocumentExtraction;
|
|
136
|
+
}
|
|
137
|
+
export interface DocumentExtraction {
|
|
138
|
+
provenance?: {
|
|
139
|
+
url: string;
|
|
140
|
+
original_url: string;
|
|
141
|
+
title: string;
|
|
142
|
+
retrieved_at: string;
|
|
143
|
+
content_type: string;
|
|
144
|
+
};
|
|
145
|
+
text: string;
|
|
146
|
+
tables?: ExtractedTable[];
|
|
147
|
+
pages?: number;
|
|
148
|
+
duration_ms?: number;
|
|
149
|
+
warnings?: string[];
|
|
150
|
+
converter_version?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface ExtractedTable {
|
|
153
|
+
title: string;
|
|
154
|
+
rows: string[][];
|
|
155
|
+
}
|
|
156
|
+
export interface StartSourceImport {
|
|
157
|
+
id: string;
|
|
158
|
+
url: string;
|
|
159
|
+
version: number;
|
|
160
|
+
}
|
|
161
|
+
export interface StartNoteImport {
|
|
162
|
+
language?: 'auto' | 'fa' | 'en';
|
|
163
|
+
id: string;
|
|
164
|
+
attachment_id: string;
|
|
165
|
+
version: number;
|
|
166
|
+
}
|
|
167
|
+
export interface ControlNoteImport {
|
|
168
|
+
version: number;
|
|
169
|
+
action: 'cancel' | 'retry' | 'refresh';
|
|
170
|
+
}
|
|
171
|
+
export interface ApplyNoteImport {
|
|
172
|
+
version: number;
|
|
173
|
+
mode: 'append' | 'replace';
|
|
174
|
+
summary?: string | null;
|
|
175
|
+
}
|
|
176
|
+
export interface NoteIndexing {
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
note_id: string;
|
|
179
|
+
version: number;
|
|
180
|
+
job: {
|
|
181
|
+
status: 'queued' | 'processing' | 'indexed' | 'failed';
|
|
182
|
+
requested_version: number;
|
|
183
|
+
indexed_version: number | null;
|
|
184
|
+
last_error: string | null;
|
|
185
|
+
} | null;
|
|
186
|
+
}
|
|
187
|
+
export interface NoteCitation {
|
|
188
|
+
kind: 'task_note';
|
|
189
|
+
note_id: string;
|
|
190
|
+
project_id: string;
|
|
191
|
+
version: number;
|
|
192
|
+
passage?: number;
|
|
193
|
+
path: string;
|
|
194
|
+
title?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface NoteKnowledgeQuery {
|
|
197
|
+
project_id: string;
|
|
198
|
+
additional_project_ids?: string[];
|
|
199
|
+
query: string;
|
|
200
|
+
note_id?: string;
|
|
201
|
+
locale?: string;
|
|
202
|
+
}
|
|
203
|
+
export interface NoteProvenance {
|
|
204
|
+
authority: 'task';
|
|
205
|
+
note_version?: number;
|
|
206
|
+
indexing?: boolean;
|
|
207
|
+
untrusted_evidence: true;
|
|
208
|
+
}
|
|
209
|
+
export interface NoteKnowledgeSource {
|
|
210
|
+
id: string;
|
|
211
|
+
title: string | Record<string, string>;
|
|
212
|
+
content: string | Record<string, string>;
|
|
213
|
+
citation: NoteCitation;
|
|
214
|
+
provenance: NoteProvenance;
|
|
215
|
+
}
|
|
216
|
+
export interface NoteKnowledgeResult {
|
|
217
|
+
sources: NoteKnowledgeSource[];
|
|
218
|
+
citations: NoteCitation[];
|
|
219
|
+
scope: string[];
|
|
220
|
+
indexing_pending: boolean;
|
|
221
|
+
}
|
|
222
|
+
/** Collaborative Task contracts; every method inherits the authenticated Faiber transport.
|
|
223
|
+
* All endpoints require task:access:use and current local resource permissions.
|
|
224
|
+
*/
|
|
225
|
+
export declare class TaskCollaborationOperations extends ServiceApi {
|
|
226
|
+
/** Current user's owner-pooled allowances; requires task:access:use. */
|
|
227
|
+
ownUsage(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<MemoryUsage>, any, {}>>;
|
|
228
|
+
/** Configured limits for all six tiers. Does not change prices or AI/image allowances. */
|
|
229
|
+
memoryLimits(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<PlanMemoryLimits>, any, {}>>;
|
|
230
|
+
/** Administrator-only, atomic versioned update. Supply all six tiers; stale versions return 409. */
|
|
231
|
+
configureMemoryLimits(data: PlanMemoryLimits, options?: RequestOptions<PlanMemoryLimits>): Promise<import("axios").AxiosResponse<TaskResponse<PlanMemoryLimits>, PlanMemoryLimits, {}>>;
|
|
232
|
+
/** Read enabled collaboration features and deployment upload ceilings. Requires task:access:use. */
|
|
233
|
+
config(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<CollaborationConfig>, any, {}>>;
|
|
234
|
+
/** Read stable stage IDs and workflow version. Requires project.read; inaccessible projects return 404. */
|
|
235
|
+
workflow(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<BoardWorkflow>, any, {}>>;
|
|
236
|
+
/** Replace shared stage order/names; managers only. Supply destinations for occupied removed stages.
|
|
237
|
+
* Existing IDs, keys and categories remain stable. Returns 409 on a stale workflow or missing destination.
|
|
238
|
+
*/
|
|
239
|
+
saveWorkflow(project: Identifier, data: SaveBoardWorkflow, options?: RequestOptions<SaveBoardWorkflow>): Promise<import("axios").AxiosResponse<TaskResponse<BoardWorkflow>, SaveBoardWorkflow, {}>>;
|
|
240
|
+
/** Read owner-pooled remaining limits for an accessible project, including reserved usage. */
|
|
241
|
+
usage(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<MemoryUsage>, any, {}>>;
|
|
242
|
+
/** Reserve a private upload. Use a stable request UUID on retries. Requires attachment.create
|
|
243
|
+
* plus comment.create or note update access; returns 409 on exhausted storage or conflicting retries.
|
|
244
|
+
*/
|
|
245
|
+
createAttachment(item: Identifier, data: CreateAttachment, options?: RequestOptions<CreateAttachment>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, CreateAttachment, {}>>;
|
|
246
|
+
/** Upload the reserved bytes using FormData. Signal and onUploadProgress are supported.
|
|
247
|
+
* A successful upload remains quarantined until scanning finishes; size/type/hash mismatches return 400.
|
|
248
|
+
*/
|
|
249
|
+
uploadAttachment(id: Identifier, data: UploadAttachment, options?: RequestOptions<FormData>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, FormData, {}>>;
|
|
250
|
+
/** Poll scan status. Unbound files are visible only to their uploader; requires current task read access. */
|
|
251
|
+
attachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, any, {}>>;
|
|
252
|
+
/** Download clean bytes after a fresh permission check. Returns binary data in browser/Node Axios adapters;
|
|
253
|
+
* quarantined files return 409. Preserve the full response to retain Content-Disposition and request IDs.
|
|
254
|
+
*/
|
|
255
|
+
downloadAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<AttachmentDownload, unknown, {}>>;
|
|
256
|
+
/** Delete an unbound upload and release retained storage. Requires ownership/delete_own or attachment.manage.
|
|
257
|
+
* Bound files return 409; remove their note/comment reference first.
|
|
258
|
+
*/
|
|
259
|
+
deleteAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<DeletedAttachment>, any, {}>>;
|
|
260
|
+
/** Read authorized note media and the note version used by cover updates. */
|
|
261
|
+
noteMedia(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, any, {}>>;
|
|
262
|
+
/** Bind a clean upload to a note as an inline image, attachment or original source.
|
|
263
|
+
* Requires note edit access and the current note version. Retrying identical bindings is idempotent.
|
|
264
|
+
*/
|
|
265
|
+
attachNoteMedia(id: Identifier, data: AddNoteMedia, options?: RequestOptions<AddNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, AddNoteMedia, {}>>;
|
|
266
|
+
/** Remove a retained file binding without deleting imported text. Requires note edit access and current version.
|
|
267
|
+
* Storage remains charged until private-object cleanup completes. Cover removal uses setNoteCover instead.
|
|
268
|
+
*/
|
|
269
|
+
removeNoteMedia(id: Identifier, attachment: Identifier, data: RemoveNoteMedia, options?: RequestOptions<RemoveNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, RemoveNoteMedia, {}>>;
|
|
270
|
+
/** Set, reposition or remove a clean note cover; requires note edit access.
|
|
271
|
+
* Set attachment_id to null to remove. Focus coordinates are 0..1. Stale note versions return 409.
|
|
272
|
+
*/
|
|
273
|
+
setNoteCover(id: Identifier, data: SetNoteCover, options?: RequestOptions<SetNoteCover>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, SetNoteCover, {}>>;
|
|
274
|
+
/** Indexing state for the current authoritative note version; requires note read access. */
|
|
275
|
+
noteIndexing(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteIndexing>, any, {}>>;
|
|
276
|
+
/** Retry a failed projection; requires note edit access. */
|
|
277
|
+
retryNoteIndexing(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteIndexing>, import("@faiber/sdk-core").JsonObject, {}>>;
|
|
278
|
+
/** Search at most ten explicitly selected accessible spaces. Every source is reauthorized by Task. */
|
|
279
|
+
searchNotes(data: NoteKnowledgeQuery, options?: RequestOptions<NoteKnowledgeQuery>): Promise<import("axios").AxiosResponse<TaskResponse<NoteKnowledgeResult>, NoteKnowledgeQuery, {}>>;
|
|
280
|
+
/** Queue a public-page import for an editable note. Reserves an import and bounded retained storage; unsafe URLs return 400. */
|
|
281
|
+
startSourceImport(id: Identifier, data: StartSourceImport, options?: RequestOptions<StartSourceImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, StartSourceImport, {}>>;
|
|
282
|
+
/** Queue extraction of a clean original uploaded by the caller. Requires note edit access. Stable IDs deduplicate retries; quota exhaustion returns 409. */
|
|
283
|
+
startNoteImport(id: Identifier, data: StartNoteImport, options?: RequestOptions<StartNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, StartNoteImport, {}>>;
|
|
284
|
+
/** Poll an import owned by the current user; revoked note edit access denies access. */
|
|
285
|
+
noteImport(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, any, {}>>;
|
|
286
|
+
/** Cancel, retry or refresh a preview's target version. Stale job versions return 409. */
|
|
287
|
+
controlNoteImport(id: Identifier, data: ControlNoteImport, options?: RequestOptions<ControlNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, ControlNoteImport, {}>>;
|
|
288
|
+
/** Explicitly approve a preview; stale note versions return 409. Original binding and note changes are atomic. */
|
|
289
|
+
applyNoteImport(id: Identifier, data: ApplyNoteImport, options?: RequestOptions<ApplyNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, ApplyNoteImport, {}>>;
|
|
290
|
+
}
|
|
291
|
+
//# sourceMappingURL=collaboration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../src/collaboration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;AAC5F,MAAM,WAAW,UAAU;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,MAAM,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C,eAAe,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,eAAe,CAAC;IAC3F,wFAAwF;IACxF,UAAU,CAAC,EAAE,EAAC,UAAU,EAAC,OAAO,CAAC,EAAC,cAAc;IAChD,0FAA0F;IAC1F,iBAAiB,CAAC,EAAE,EAAC,UAAU,EAAC,IAAI,EAAC,iBAAiB,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,iBAAiB,CAAC;IACjG,kHAAkH;IAClH,eAAe,CAAC,EAAE,EAAC,UAAU,EAAC,IAAI,EAAC,eAAe,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,eAAe,CAAC;CAE5F"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { ServiceApi } from '@faiber/sdk-core';
|
|
2
|
+
/** Collaborative Task contracts; every method inherits the authenticated Faiber transport.
|
|
3
|
+
* All endpoints require task:access:use and current local resource permissions.
|
|
4
|
+
*/
|
|
5
|
+
export class TaskCollaborationOperations extends ServiceApi {
|
|
6
|
+
/** Current user's owner-pooled allowances; requires task:access:use. */
|
|
7
|
+
ownUsage(options) { return this.client.get('/api/v1/memory-usage', undefined, options); }
|
|
8
|
+
/** Configured limits for all six tiers. Does not change prices or AI/image allowances. */
|
|
9
|
+
memoryLimits(options) { return this.client.get('/api/v1/plans/memory-limits', undefined, options); }
|
|
10
|
+
/** Administrator-only, atomic versioned update. Supply all six tiers; stale versions return 409. */
|
|
11
|
+
configureMemoryLimits(data, options) { return this.client.put('/api/v1/plans/admin/memory-limits', data, options); }
|
|
12
|
+
/** Read enabled collaboration features and deployment upload ceilings. Requires task:access:use. */
|
|
13
|
+
config(options) {
|
|
14
|
+
return this.client.get('/api/v1/collaboration/config', undefined, options);
|
|
15
|
+
}
|
|
16
|
+
/** Read stable stage IDs and workflow version. Requires project.read; inaccessible projects return 404. */
|
|
17
|
+
workflow(project, options) {
|
|
18
|
+
return this.client.get(`/api/v1/projects/${encodeURIComponent(project)}/board-workflow`, undefined, options);
|
|
19
|
+
}
|
|
20
|
+
/** Replace shared stage order/names; managers only. Supply destinations for occupied removed stages.
|
|
21
|
+
* Existing IDs, keys and categories remain stable. Returns 409 on a stale workflow or missing destination.
|
|
22
|
+
*/
|
|
23
|
+
saveWorkflow(project, data, options) {
|
|
24
|
+
return this.client.put(`/api/v1/projects/${encodeURIComponent(project)}/board-workflow`, data, options);
|
|
25
|
+
}
|
|
26
|
+
/** Read owner-pooled remaining limits for an accessible project, including reserved usage. */
|
|
27
|
+
usage(project, options) {
|
|
28
|
+
return this.client.get(`/api/v1/projects/${encodeURIComponent(project)}/memory-usage`, undefined, options);
|
|
29
|
+
}
|
|
30
|
+
/** Reserve a private upload. Use a stable request UUID on retries. Requires attachment.create
|
|
31
|
+
* plus comment.create or note update access; returns 409 on exhausted storage or conflicting retries.
|
|
32
|
+
*/
|
|
33
|
+
createAttachment(item, data, options) {
|
|
34
|
+
return this.client.post(`/api/v1/work-items/${encodeURIComponent(item)}/attachments`, data, options);
|
|
35
|
+
}
|
|
36
|
+
/** Upload the reserved bytes using FormData. Signal and onUploadProgress are supported.
|
|
37
|
+
* A successful upload remains quarantined until scanning finishes; size/type/hash mismatches return 400.
|
|
38
|
+
*/
|
|
39
|
+
uploadAttachment(id, data, options) {
|
|
40
|
+
const form = new FormData();
|
|
41
|
+
form.append('file', data.file, data.filename);
|
|
42
|
+
return this.client.put(`/api/v1/attachments/${encodeURIComponent(id)}/content`, form, options);
|
|
43
|
+
}
|
|
44
|
+
/** Poll scan status. Unbound files are visible only to their uploader; requires current task read access. */
|
|
45
|
+
attachment(id, options) {
|
|
46
|
+
return this.client.get(`/api/v1/attachments/${encodeURIComponent(id)}`, undefined, options);
|
|
47
|
+
}
|
|
48
|
+
/** Download clean bytes after a fresh permission check. Returns binary data in browser/Node Axios adapters;
|
|
49
|
+
* quarantined files return 409. Preserve the full response to retain Content-Disposition and request IDs.
|
|
50
|
+
*/
|
|
51
|
+
downloadAttachment(id, options) {
|
|
52
|
+
return this.client.request({ ...options, method: 'GET', url: `/api/v1/attachments/${encodeURIComponent(id)}/download`, responseType: 'arraybuffer' });
|
|
53
|
+
}
|
|
54
|
+
/** Delete an unbound upload and release retained storage. Requires ownership/delete_own or attachment.manage.
|
|
55
|
+
* Bound files return 409; remove their note/comment reference first.
|
|
56
|
+
*/
|
|
57
|
+
deleteAttachment(id, options) {
|
|
58
|
+
return this.client.delete(`/api/v1/attachments/${encodeURIComponent(id)}`, options);
|
|
59
|
+
}
|
|
60
|
+
/** Read authorized note media and the note version used by cover updates. */
|
|
61
|
+
noteMedia(id, options) {
|
|
62
|
+
return this.client.get(`/api/v1/notes/${encodeURIComponent(id)}/media`, undefined, options);
|
|
63
|
+
}
|
|
64
|
+
/** Bind a clean upload to a note as an inline image, attachment or original source.
|
|
65
|
+
* Requires note edit access and the current note version. Retrying identical bindings is idempotent.
|
|
66
|
+
*/
|
|
67
|
+
attachNoteMedia(id, data, options) {
|
|
68
|
+
return this.client.post(`/api/v1/notes/${encodeURIComponent(id)}/media`, data, options);
|
|
69
|
+
}
|
|
70
|
+
/** Remove a retained file binding without deleting imported text. Requires note edit access and current version.
|
|
71
|
+
* Storage remains charged until private-object cleanup completes. Cover removal uses setNoteCover instead.
|
|
72
|
+
*/
|
|
73
|
+
removeNoteMedia(id, attachment, data, options) {
|
|
74
|
+
return this.client.request({ ...options, method: 'DELETE', url: `/api/v1/notes/${encodeURIComponent(id)}/media/${encodeURIComponent(attachment)}`, data });
|
|
75
|
+
}
|
|
76
|
+
/** Set, reposition or remove a clean note cover; requires note edit access.
|
|
77
|
+
* Set attachment_id to null to remove. Focus coordinates are 0..1. Stale note versions return 409.
|
|
78
|
+
*/
|
|
79
|
+
setNoteCover(id, data, options) {
|
|
80
|
+
return this.client.put(`/api/v1/notes/${encodeURIComponent(id)}/cover`, data, options);
|
|
81
|
+
}
|
|
82
|
+
/** Indexing state for the current authoritative note version; requires note read access. */
|
|
83
|
+
noteIndexing(id, options) { return this.client.get(`/api/v1/notes/${encodeURIComponent(id)}/indexing`, undefined, options); }
|
|
84
|
+
/** Retry a failed projection; requires note edit access. */
|
|
85
|
+
retryNoteIndexing(id, options) { return this.client.post(`/api/v1/notes/${encodeURIComponent(id)}/indexing`, undefined, options); }
|
|
86
|
+
/** Search at most ten explicitly selected accessible spaces. Every source is reauthorized by Task. */
|
|
87
|
+
searchNotes(data, options) { return this.client.post('/api/v1/notes/knowledge/search', data, options); }
|
|
88
|
+
/** Queue a public-page import for an editable note. Reserves an import and bounded retained storage; unsafe URLs return 400. */
|
|
89
|
+
startSourceImport(id, data, options) { return this.client.post(`/api/v1/notes/${encodeURIComponent(id)}/source-imports`, data, options); }
|
|
90
|
+
/** Queue extraction of a clean original uploaded by the caller. Requires note edit access. Stable IDs deduplicate retries; quota exhaustion returns 409. */
|
|
91
|
+
startNoteImport(id, data, options) { return this.client.post(`/api/v1/notes/${encodeURIComponent(id)}/imports`, data, options); }
|
|
92
|
+
/** Poll an import owned by the current user; revoked note edit access denies access. */
|
|
93
|
+
noteImport(id, options) { return this.client.get(`/api/v1/note-imports/${encodeURIComponent(id)}`, undefined, options); }
|
|
94
|
+
/** Cancel, retry or refresh a preview's target version. Stale job versions return 409. */
|
|
95
|
+
controlNoteImport(id, data, options) { return this.client.post(`/api/v1/note-imports/${encodeURIComponent(id)}`, data, options); }
|
|
96
|
+
/** Explicitly approve a preview; stale note versions return 409. Original binding and note changes are atomic. */
|
|
97
|
+
applyNoteImport(id, data, options) { return this.client.post(`/api/v1/note-imports/${encodeURIComponent(id)}/apply`, data, options); }
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=collaboration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration.js","sourceRoot":"","sources":["../src/collaboration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AAwCpF;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,UAAU;IACzD,wEAAwE;IACxE,QAAQ,CAAC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} from "./collaboration.js";
|
|
2
3
|
import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
|
|
3
4
|
import type * as T from "./types.js";
|
|
4
5
|
/** Typed client for every authenticated route mounted by Faiber Tasks. */
|
|
5
6
|
import { TaskOperations } from "./operations.js";
|
|
6
7
|
export declare class TaskApi extends ServiceApi {
|
|
8
|
+
readonly collaboration: TaskCollaborationOperations;
|
|
7
9
|
readonly workspaceAssistant: TaskWorkspaceOperations;
|
|
8
10
|
readonly operations: TaskOperations;
|
|
9
11
|
/** Read authorized project checklist snapshots atomically; requires access:use and work_item.read. */
|
|
@@ -83,6 +85,7 @@ export declare class TaskApi extends ServiceApi {
|
|
|
83
85
|
openEvents(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.TaskEventStreamBody, unknown, {}>>;
|
|
84
86
|
}
|
|
85
87
|
export * from "./types.js";
|
|
88
|
+
export * from "./collaboration.js";
|
|
86
89
|
export * from "@faiber/sdk-core";
|
|
87
90
|
export * from "./operations.js";
|
|
88
91
|
export * from "./operations.types.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,KAAK,KAAK,CAAC,MAAM,YAAY,CAAC;AAOrC,0EAA0E;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,qBAAa,OAAQ,SAAQ,UAAU;IACrC,QAAQ,CAAC,kBAAkB,0BAA4C;IACrE,QAAQ,CAAC,UAAU,iBAAmC;IACxD,sGAAsG;IACtG,iBAAiB,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAC1D,yFAAyF;IACzF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AC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;IAIzD,wEAAwE;IACxE,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC;IAI9F,yFAAyF;IACzF,oBAAoB,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAQ7D,4DAA4D;IAC5D,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc;CASpC;AAED,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TaskWorkspaceOperations } from "./workspace.js";
|
|
2
|
+
import { TaskCollaborationOperations } from "./collaboration.js";
|
|
2
3
|
import { ServiceApi } from "@faiber/sdk-core";
|
|
3
4
|
const versionOptions = (version, options) => ({
|
|
4
5
|
...options,
|
|
@@ -7,6 +8,7 @@ const versionOptions = (version, options) => ({
|
|
|
7
8
|
/** Typed client for every authenticated route mounted by Faiber Tasks. */
|
|
8
9
|
import { TaskOperations } from "./operations.js";
|
|
9
10
|
export class TaskApi extends ServiceApi {
|
|
11
|
+
collaboration = new TaskCollaborationOperations(this.client);
|
|
10
12
|
workspaceAssistant = new TaskWorkspaceOperations(this.client);
|
|
11
13
|
operations = new TaskOperations(this.client);
|
|
12
14
|
/** Read authorized project checklist snapshots atomically; requires access:use and work_item.read. */
|
|
@@ -143,6 +145,7 @@ export class TaskApi extends ServiceApi {
|
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
export * from "./types.js";
|
|
148
|
+
export * from "./collaboration.js";
|
|
146
149
|
export * from "@faiber/sdk-core";
|
|
147
150
|
export * from "./operations.js";
|
|
148
151
|
export * from "./operations.types.js";
|