@faiber/faiber-task 0.23.0 → 1.0.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 CHANGED
@@ -106,3 +106,50 @@ when the user requests archived records. All methods preserve Axios responses an
106
106
  request options, including cancellation signals.
107
107
 
108
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.
109
+
110
+ ## Configurable feedback requests (0.24.1)
111
+
112
+ `task.feedback.capabilities()` returns current verified reporting roles and readiness. A new Task instance has no policy or workflow preset. A workspace manager configures it in `/dashboard/settings/feedback`; it is stored only in that sandbox database. Clients must not encode role mappings or stage counts.
113
+
114
+ Use exported `ReportContext` and `SubmitFeedbackRequest` types, initialize/upload/complete private screenshot evidence, then call `task.feedback.submit(input, crypto.randomUUID())`. Keep the same key and body for retries. Screenshots can be unavailable without blocking submission. `list`, `detail`, `decide`, and authorized `attachmentContent` preserve server ownership and local review scope. A decision uses `expected_version`; stale versions return 409. Only the configured final assignment stage creates a task. `current_stage` contains its bilingual label and action kind. Existing reports retain the submitted route snapshot after policy edits. Management methods require local `workspace.manage`; policy writes use the current version (zero initializes).
115
+
116
+ All calls retain Axios status/headers, authenticated cookies or bearer tokens, AbortSignal cancellation and transport errors. Never submit hidden answers, credentials, signed media URLs or private evidence in broker events.
117
+
118
+ Task source contracts include feedback intake, review decisions and private evidence,
119
+ workspace queries and governed proposal batches, note documents/imports, board workflows,
120
+ owner-pooled usage and plans. `operations` exposes every mounted HTTP operation, including
121
+ internal service operations; internal plan/gift operations require a separate backend
122
+ service credential and should only be called from a trusted server.
123
+
124
+ Read the current ETag/version before updating projects, work items, reminders, preferences
125
+ or proposals. Pass `If-Match` in request headers for generated methods; convenience methods
126
+ accept a version argument. Missing preconditions return 428, stale revisions return 409.
127
+ Work-item creation and feedback submission/decisions require stable `Idempotency-Key`
128
+ headers across retries. Deleting a work item returns 204 with no JSON body. Project and
129
+ work-item collection endpoints include pagination metadata, but this backend pin always
130
+ returns null cursors for those legacy collections; assistant queries provide real UUID cursors.
131
+
132
+ `workspaceAssistant.query` accepts structured `record_type` and `field_filters` only with
133
+ `item_type: 'note'`. Proposals use a discriminated `kind` with its full operation payload.
134
+ Validate or persist a preview, review it, then apply that revision. Application rechecks
135
+ resource access and the preview inside one transaction; a conflict applies nothing.
136
+
137
+ For feedback, call `feedback.capabilities()` before capturing context. Preserve its
138
+ `reporter_id` using `X-Feedback-Reporter-Id` on submission and screenshot operations.
139
+ A 409 `feedback_identity_changed` requires discarding the capture and obtaining a fresh
140
+ binding. This header is a precondition, never an authentication credential. Review and
141
+ assignment require both the configured IDP permission and the local branch/stage role grant.
142
+ Screenshot uploads are raw PNG/JPEG/WebP bytes; general Task attachments use `FormData`.
143
+ Private downloads use byte responses and preserve the Axios response headers.
144
+
145
+ `openEvents()` returns a raw SSE stream of `event: invalidate` / `data: changed` frames,
146
+ with keepalives every 15 seconds. Reconnect and fetch authoritative snapshots after an
147
+ invalidation; no replay cursor is provided. Note realtime uses separately authorized
148
+ Sockudo channels: config is enveloped, while the authorization endpoint returns raw
149
+ `{ auth }`. The SDK exposes the HTTP boundary; connect a compatible realtime client
150
+ using the returned configuration. Disabled collaboration features can return 404 and
151
+ unconfigured realtime can return 503.
152
+
153
+ Project `settings`, work-item `custom_fields`, session/commit `metadata` and agent-proposal
154
+ `payload` deliberately retain JSON extension data because the service stores
155
+ `serde_json::Value`; fixed outer envelopes and all declared nested models remain typed.
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/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"}
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/summary-access.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/collaboration.ts","../src/feedback.ts","../src/workspace.ts","../src/wire.types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66,67,68],[60,61,64],[60],[69,70],[69,70,71,72,73,74,75,76],[60,69,75],[69,70,71,72,73,74],[69,71]],"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":"2368a31d44ccc59758e3b3c682fee74e820b08fad98623905a85092018c06e3b","impliedFormat":99},{"version":"61806e75fc22177d65d9b33c90c4b88e4370abd4dd88d8196ca0fc87d7702fe9","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"e8345259c97aa6b8a84b27963fff00e79b7f45852b0024fffc52c9a7949007ac","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"967088f3793139562bc3fd0e5db990a8bc2885f7444a1f10ea6a5a6479fa6d40","impliedFormat":99},{"version":"6756b343720142c0f4f0c62b8194eefdea2d1774da6f7902bee9e39d4e81c9d4","impliedFormat":99},{"version":"d8c12ac0c9f1cd0b55fa41bb58f88e7166093b7cb7a9e87365ce7c18e9ed4adf","signature":"9a1879812f18d44c6a8668a380baf7232529b83bff6d4a8dc2ea9bb1fd34c1d4","impliedFormat":99},{"version":"9fb873e4cd78263ae2e6657ca22e26e05718890ba76f110ec693494de8c73220","signature":"d6b317d87a788ce5e3d14383e0dd46299f96bcc6ace31e9510ca0404fdfb86c5","impliedFormat":99},{"version":"22d27abdfbb872dad7c261831cd573ef5ac528dd796bb166d522639970b663e1","signature":"83f1cfc99a3f5df7e40bf12e623e013514fb267b82832f579b9d8c6e7f7340fd","impliedFormat":99},{"version":"6873fb559d167e05ca8480ad6890f1732735f36cad30b197610d21829ff8b851","signature":"51fb79bca5e0323f0160309d68020f46e1cdeb3976c3371fbc551df26c790944","impliedFormat":99},{"version":"ec8b1432495d968d083df50e5d600a997a9611c1087f96dba97a26057a1aa633","signature":"34fc4483f0556cd783485135101dcc495bf0df53b1021486174322b5be170624","impliedFormat":99},{"version":"24ef41615f2ac6fb7a66b734d4b172dcad1b175ba5b11a81a8e66dfd23b4e3e8","signature":"ddb43c8974651dbf66fcd8d0fd108a93cfa9f52d19f9003aaffd50345b79320a","impliedFormat":99},{"version":"3b890e1cd21a57f3d43d807156ed36071ccf86c53d5d0cfb086000c89e795adc","signature":"5c6eda195dc9f9e9caf891ac2052dea31a317a0fd0d50324a599b07b77b2f732","impliedFormat":99},{"version":"ef05e0a37745345177726027bad95e08630ef3fbc480f01ad0bae2c0a126bee6","signature":"6a6d6a827f912208cf69dc9e330b7162af900f34fe21327603aa39d681e4c741","impliedFormat":99}],"root":[[70,77]],"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],[69,3],[66,4],[65,4],[61,5],[71,6],[72,6],[77,7],[76,8],[75,9],[70,10],[74,6],[73,6]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -91,16 +91,16 @@ export interface AddNoteMedia {
91
91
  export interface CollaborationConfig {
92
92
  media: boolean;
93
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;
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
104
  max_file_bytes: number;
105
105
  max_audio_bytes: number;
106
106
  }
@@ -124,15 +124,20 @@ export interface NoteImportJob {
124
124
  id: string;
125
125
  note_id: string;
126
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';
127
+ source_url: string | null;
128
+ index_only: boolean;
129
+ media_kind: 'document' | 'image' | 'audio';
130
+ language: 'auto' | 'fa' | 'en';
131
131
  note_version: number;
132
132
  version: number;
133
133
  status: 'queued' | 'processing' | 'preview' | 'applied' | 'failed' | 'cancelled';
134
- error_code?: string;
135
- result?: DocumentExtraction;
134
+ actor_id: string;
135
+ attempts: number;
136
+ next_attempt: string;
137
+ created_at: string;
138
+ updated_at: string;
139
+ error_code: string | null;
140
+ result: DocumentExtraction | null;
136
141
  }
137
142
  export interface DocumentExtraction {
138
143
  provenance?: {
@@ -224,68 +229,68 @@ export interface NoteKnowledgeResult {
224
229
  */
225
230
  export declare class TaskCollaborationOperations extends ServiceApi {
226
231
  /** Current user's owner-pooled allowances; requires task:access:use. */
227
- ownUsage(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<MemoryUsage>, any, {}>>;
232
+ ownUsage(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<MemoryUsage>, any, {}, any>>;
228
233
  /** 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, {}>>;
234
+ memoryLimits(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<PlanMemoryLimits>, any, {}, any>>;
230
235
  /** 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, {}>>;
236
+ configureMemoryLimits(data: PlanMemoryLimits, options?: RequestOptions<PlanMemoryLimits>): Promise<import("axios").AxiosResponse<TaskResponse<PlanMemoryLimits>, PlanMemoryLimits, {}, any>>;
232
237
  /** Read enabled collaboration features and deployment upload ceilings. Requires task:access:use. */
233
- config(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<CollaborationConfig>, any, {}>>;
238
+ config(options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<CollaborationConfig>, any, {}, any>>;
234
239
  /** 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, {}>>;
240
+ workflow(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<BoardWorkflow>, any, {}, any>>;
236
241
  /** Replace shared stage order/names; managers only. Supply destinations for occupied removed stages.
237
242
  * Existing IDs, keys and categories remain stable. Returns 409 on a stale workflow or missing destination.
238
243
  */
239
- saveWorkflow(project: Identifier, data: SaveBoardWorkflow, options?: RequestOptions<SaveBoardWorkflow>): Promise<import("axios").AxiosResponse<TaskResponse<BoardWorkflow>, SaveBoardWorkflow, {}>>;
244
+ saveWorkflow(project: Identifier, data: SaveBoardWorkflow, options?: RequestOptions<SaveBoardWorkflow>): Promise<import("axios").AxiosResponse<TaskResponse<BoardWorkflow>, SaveBoardWorkflow, {}, any>>;
240
245
  /** 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, {}>>;
246
+ usage(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<MemoryUsage>, any, {}, any>>;
242
247
  /** Reserve a private upload. Use a stable request UUID on retries. Requires attachment.create
243
248
  * plus comment.create or note update access; returns 409 on exhausted storage or conflicting retries.
244
249
  */
245
- createAttachment(item: Identifier, data: CreateAttachment, options?: RequestOptions<CreateAttachment>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, CreateAttachment, {}>>;
250
+ createAttachment(item: Identifier, data: CreateAttachment, options?: RequestOptions<CreateAttachment>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, CreateAttachment, {}, any>>;
246
251
  /** Upload the reserved bytes using FormData. Signal and onUploadProgress are supported.
247
252
  * A successful upload remains quarantined until scanning finishes; size/type/hash mismatches return 400.
248
253
  */
249
- uploadAttachment(id: Identifier, data: UploadAttachment, options?: RequestOptions<FormData>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, FormData, {}>>;
254
+ uploadAttachment(id: Identifier, data: UploadAttachment, options?: RequestOptions<FormData>): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, FormData, {}, any>>;
250
255
  /** 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, {}>>;
256
+ attachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<TaskAttachment>, any, {}, any>>;
252
257
  /** Download clean bytes after a fresh permission check. Returns binary data in browser/Node Axios adapters;
253
258
  * quarantined files return 409. Preserve the full response to retain Content-Disposition and request IDs.
254
259
  */
255
- downloadAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<AttachmentDownload, unknown, {}>>;
260
+ downloadAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<AttachmentDownload, unknown, {}, any>>;
256
261
  /** Delete an unbound upload and release retained storage. Requires ownership/delete_own or attachment.manage.
257
262
  * Bound files return 409; remove their note/comment reference first.
258
263
  */
259
- deleteAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<DeletedAttachment>, any, {}>>;
264
+ deleteAttachment(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<DeletedAttachment>, any, {}, any>>;
260
265
  /** 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, {}>>;
266
+ noteMedia(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, any, {}, any>>;
262
267
  /** Bind a clean upload to a note as an inline image, attachment or original source.
263
268
  * Requires note edit access and the current note version. Retrying identical bindings is idempotent.
264
269
  */
265
- attachNoteMedia(id: Identifier, data: AddNoteMedia, options?: RequestOptions<AddNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, AddNoteMedia, {}>>;
270
+ attachNoteMedia(id: Identifier, data: AddNoteMedia, options?: RequestOptions<AddNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, AddNoteMedia, {}, any>>;
266
271
  /** Remove a retained file binding without deleting imported text. Requires note edit access and current version.
267
272
  * Storage remains charged until private-object cleanup completes. Cover removal uses setNoteCover instead.
268
273
  */
269
- removeNoteMedia(id: Identifier, attachment: Identifier, data: RemoveNoteMedia, options?: RequestOptions<RemoveNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, RemoveNoteMedia, {}>>;
274
+ removeNoteMedia(id: Identifier, attachment: Identifier, data: RemoveNoteMedia, options?: RequestOptions<RemoveNoteMedia>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, RemoveNoteMedia, {}, any>>;
270
275
  /** Set, reposition or remove a clean note cover; requires note edit access.
271
276
  * Set attachment_id to null to remove. Focus coordinates are 0..1. Stale note versions return 409.
272
277
  */
273
- setNoteCover(id: Identifier, data: SetNoteCover, options?: RequestOptions<SetNoteCover>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, SetNoteCover, {}>>;
278
+ setNoteCover(id: Identifier, data: SetNoteCover, options?: RequestOptions<SetNoteCover>): Promise<import("axios").AxiosResponse<TaskResponse<NoteMedia>, SetNoteCover, {}, any>>;
274
279
  /** 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, {}>>;
280
+ noteIndexing(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteIndexing>, any, {}, any>>;
276
281
  /** 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, {}>>;
282
+ retryNoteIndexing(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteIndexing>, import("@faiber/sdk-core").JsonObject, {}, any>>;
278
283
  /** 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, {}>>;
284
+ searchNotes(data: NoteKnowledgeQuery, options?: RequestOptions<NoteKnowledgeQuery>): Promise<import("axios").AxiosResponse<TaskResponse<NoteKnowledgeResult>, NoteKnowledgeQuery, {}, any>>;
280
285
  /** 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, {}>>;
286
+ startSourceImport(id: Identifier, data: StartSourceImport, options?: RequestOptions<StartSourceImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, StartSourceImport, {}, any>>;
282
287
  /** 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, {}>>;
288
+ startNoteImport(id: Identifier, data: StartNoteImport, options?: RequestOptions<StartNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, StartNoteImport, {}, any>>;
284
289
  /** 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, {}>>;
290
+ noteImport(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, any, {}, any>>;
286
291
  /** 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, {}>>;
292
+ controlNoteImport(id: Identifier, data: ControlNoteImport, options?: RequestOptions<ControlNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, ControlNoteImport, {}, any>>;
288
293
  /** 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, {}>>;
294
+ applyNoteImport(id: Identifier, data: ApplyNoteImport, options?: RequestOptions<ApplyNoteImport>): Promise<import("axios").AxiosResponse<TaskResponse<NoteImportJob>, ApplyNoteImport, {}, any>>;
290
295
  }
291
296
  //# sourceMappingURL=collaboration.d.ts.map
@@ -1 +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,W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,EAAC,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,234 @@
1
+ import { ServiceApi, type RequestOptions, type QueryParams, type AxiosResponse } from '@faiber/sdk-core';
2
+ import type { TaskResponse, Project } from './types.js';
3
+ export interface FeedbackViewport {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export interface FeedbackApplicationContext {
8
+ version: string;
9
+ locale: string;
10
+ timezone: string;
11
+ platform: string;
12
+ device?: string | null;
13
+ browser?: string | null;
14
+ viewport?: FeedbackViewport | null;
15
+ }
16
+ export interface FeedbackNavigationContext {
17
+ route: string;
18
+ page_title: string;
19
+ feature: string;
20
+ }
21
+ export interface FeedbackCaptureContext {
22
+ captured_at: string;
23
+ status: 'complete' | 'partial' | 'unavailable' | 'removed';
24
+ reason?: string | null;
25
+ }
26
+ export interface FeedbackExamContext {
27
+ exam_id?: string | null;
28
+ session_id?: string | null;
29
+ attempt_id?: string | null;
30
+ question_id?: string | null;
31
+ state: string;
32
+ remaining_seconds?: number | null;
33
+ }
34
+ export interface FeedbackCertificateContext {
35
+ certificate_id?: string | null;
36
+ template_id?: string | null;
37
+ state: string;
38
+ }
39
+ export interface FeedbackSessionContext {
40
+ classroom_id?: string | null;
41
+ session_id?: string | null;
42
+ room_id?: string | null;
43
+ connection_state: string;
44
+ media_state?: string | null;
45
+ }
46
+ export interface FeedbackPlaybackContext {
47
+ recording_id?: string | null;
48
+ media_id?: string | null;
49
+ position_seconds: number;
50
+ duration_seconds?: number | null;
51
+ state: string;
52
+ quality?: string | null;
53
+ error?: string | null;
54
+ }
55
+ export interface FeedbackDiagnosticEvent {
56
+ at: string;
57
+ kind: string;
58
+ message: string;
59
+ correlation_id?: string | null;
60
+ }
61
+ export interface ReportContext {
62
+ schema_version: 1;
63
+ application: FeedbackApplicationContext;
64
+ navigation: FeedbackNavigationContext;
65
+ capture: FeedbackCaptureContext;
66
+ exam?: FeedbackExamContext | null;
67
+ certificate?: FeedbackCertificateContext | null;
68
+ session?: FeedbackSessionContext | null;
69
+ playback?: FeedbackPlaybackContext | null;
70
+ diagnostics?: FeedbackDiagnosticEvent[];
71
+ }
72
+ export interface SubmitFeedbackRequest {
73
+ request_type: 'bug' | 'feature';
74
+ reporting_role: string;
75
+ title: string;
76
+ description: string;
77
+ expected_behavior: string;
78
+ reproduction_steps?: string;
79
+ source_client: string;
80
+ context: ReportContext;
81
+ attachment_ids?: string[];
82
+ previous_request_id?: string | null;
83
+ }
84
+ export type FeedbackStatus = 'pending_review' | 'task_created' | 'rejected';
85
+ export interface FeedbackRequest extends Omit<SubmitFeedbackRequest, 'attachment_ids'> {
86
+ id: string;
87
+ workspace_id: string;
88
+ reporter_id: string;
89
+ branch: string;
90
+ stage: number;
91
+ current_stage: FeedbackReviewStage | null;
92
+ status: FeedbackStatus;
93
+ policy_version: number;
94
+ version: number;
95
+ work_item_id: string | null;
96
+ created_at: string;
97
+ updated_at: string;
98
+ }
99
+ export interface FeedbackTaskAssignment {
100
+ developer_id: string;
101
+ project_id: string;
102
+ title: string;
103
+ description: string;
104
+ priority: 'low' | 'medium' | 'high' | 'urgent';
105
+ }
106
+ export interface DecideFeedbackRequest {
107
+ expected_version: number;
108
+ decision: 'approve' | 'reject';
109
+ description: string;
110
+ assignment?: FeedbackTaskAssignment | null;
111
+ }
112
+ export interface FeedbackDecision {
113
+ id: string;
114
+ actor_id: string;
115
+ stage: number;
116
+ decision: 'approve' | 'reject';
117
+ description: string;
118
+ request_version: number;
119
+ created_at: string;
120
+ }
121
+ export interface FeedbackAttachment {
122
+ id: string;
123
+ content_type: 'image/png' | 'image/jpeg' | 'image/webp';
124
+ size_bytes: number;
125
+ status: 'pending' | 'ready';
126
+ upload_url: string;
127
+ }
128
+ export interface InitializeFeedbackAttachment {
129
+ content_type: FeedbackAttachment['content_type'];
130
+ size_bytes: number;
131
+ checksum_sha256: string;
132
+ }
133
+ export interface FeedbackDetail {
134
+ request: FeedbackRequest;
135
+ decisions: FeedbackDecision[];
136
+ attachments: FeedbackAttachment[];
137
+ can_decide: boolean;
138
+ }
139
+ export interface FeedbackListQuery extends QueryParams {
140
+ cursor?: string;
141
+ limit?: number;
142
+ status?: FeedbackStatus;
143
+ mine?: boolean;
144
+ reporting_role?: string;
145
+ source_client?: string;
146
+ }
147
+ export interface FeedbackPage {
148
+ items: FeedbackRequest[];
149
+ next_cursor: string | null;
150
+ }
151
+ /** Native /api/v1/feedback/capabilities reporter binding (Task b8ed5921).
152
+ * Freeze reporter_id before capture. Send X-Feedback-Reporter-Id on attachment
153
+ * and submission calls; 409 feedback_identity_changed requires discarding the
154
+ * captured context/screenshot and obtaining a fresh binding. No credential is implied.
155
+ */
156
+ export interface FeedbackCapabilities {
157
+ reporter_id: string;
158
+ identity_binding_version: 1;
159
+ enabled: boolean;
160
+ context_schema_version: 1;
161
+ reporting_roles: string[];
162
+ can_submit: boolean;
163
+ can_review: boolean;
164
+ can_manage_policy: boolean;
165
+ max_context_bytes: number;
166
+ max_screenshot_bytes: number;
167
+ }
168
+ export interface FeedbackReviewStage {
169
+ key: string;
170
+ role: string;
171
+ kind: 'review' | 'assign_task';
172
+ label: {
173
+ en: string;
174
+ fa: string;
175
+ };
176
+ }
177
+ export interface FeedbackRoute {
178
+ reporting_roles: string[];
179
+ branch: string;
180
+ stages: FeedbackReviewStage[];
181
+ }
182
+ export interface FeedbackReviewGrant {
183
+ role: string;
184
+ branch: string;
185
+ stage: number;
186
+ }
187
+ export interface FeedbackPolicy {
188
+ routes: FeedbackRoute[];
189
+ review_grants: FeedbackReviewGrant[];
190
+ developer_roles: string[];
191
+ }
192
+ export interface FeedbackPolicyResult {
193
+ version: number;
194
+ policy: FeedbackPolicy;
195
+ }
196
+ export interface FeedbackDeveloper {
197
+ id: string;
198
+ name: string | null;
199
+ }
200
+ export interface FeedbackAssignees {
201
+ developers: FeedbackDeveloper[];
202
+ projects: Project[];
203
+ }
204
+ /** Sandbox feedback intake. All methods inherit the configured authenticated FaiberClient. */
205
+ export declare class FeedbackApi extends ServiceApi {
206
+ /** Get current user's verified reporting roles; requires tenant login. Disabled/unconfigured services return 404 or enabled=false. */
207
+ capabilities(options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackCapabilities>, any, {}, any>>;
208
+ /** Submit a bug or feature report. Requires feedback:submit; retries must reuse the same key/body. 409 can mean key reuse or a stale X-Feedback-Reporter-Id precondition; stale identity requires a fresh capture. */
209
+ submit(input: SubmitFeedbackRequest, key: string, options?: RequestOptions<SubmitFeedbackRequest>): Promise<AxiosResponse<TaskResponse<FeedbackRequest>, SubmitFeedbackRequest, {}, any>>;
210
+ /** List SQL-scoped reports; requires self-read or review permission plus local grants. */
211
+ list(query?: FeedbackListQuery, options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackPage>, any, {}, any>>;
212
+ /** Read report, immutable history and attachments; unauthorized objects return 404. */
213
+ detail(id: string, options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackDetail>, any, {}, any>>;
214
+ /** Approve/reject current stage with a description. Final assignment-stage approval requires assignment. 409 denotes a stale version. */
215
+ decide(id: string, input: DecideFeedbackRequest, key: string, options?: RequestOptions<DecideFeedbackRequest>): Promise<AxiosResponse<TaskResponse<FeedbackRequest>, DecideFeedbackRequest, {}, any>>;
216
+ /** Initialize a private screenshot upload, at most 10 MiB; requires feedback:submit. */
217
+ initializeAttachment(input: InitializeFeedbackAttachment, options?: RequestOptions<InitializeFeedbackAttachment>): Promise<AxiosResponse<TaskResponse<FeedbackAttachment>, InitializeFeedbackAttachment, {}, any>>;
218
+ /** Upload raw PNG/JPEG/WebP bytes through the authenticated API. Content, dimensions, size and checksum are checked. */
219
+ uploadAttachment(id: string, bytes: Blob, options?: RequestOptions<Blob>): Promise<AxiosResponse<TaskResponse<FeedbackAttachment>, Blob, {}, any>>;
220
+ /** Verify the private object before report submission. Screenshot failures need not block a text report. Preserve X-Feedback-Reporter-Id from capture through completion. */
221
+ completeAttachment(id: string, options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackAttachment>, import("@faiber/sdk-core").JsonObject, {}, any>>;
222
+ /** Download evidence with current report authorization; object-storage URLs are never public. Browser default is Blob; Node callers must select responseType='arraybuffer' for lossless bytes (Node Uint8Array/Buffer or browser ArrayBuffer). */
223
+ attachmentContent(id: string, attachment: string, options: RequestOptions & {
224
+ responseType: 'arraybuffer';
225
+ }): Promise<AxiosResponse<ArrayBuffer | Uint8Array>>;
226
+ attachmentContent(id: string, attachment: string, options?: RequestOptions): Promise<AxiosResponse<Blob>>;
227
+ /** List active developers and authorized software projects; requires feedback:assign and local assignment scope. */
228
+ assignees(options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackAssignees>, any, {}, any>>;
229
+ /** Read workspace routing policy; requires workspace.manage. */
230
+ policy(options?: RequestOptions): Promise<AxiosResponse<TaskResponse<FeedbackPolicyResult>, any, {}, any>>;
231
+ /** Save local routing/grants. Use version 0 for initialization; requires workspace.manage; concurrent edits return 409. */
232
+ savePolicy(input: FeedbackPolicy, version: number, options?: RequestOptions<FeedbackPolicy>): Promise<AxiosResponse<TaskResponse<FeedbackPolicyResult>, FeedbackPolicy, {}, any>>;
233
+ }
234
+ //# sourceMappingURL=feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback.d.ts","sourceRoot":"","sources":["../src/feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,cAA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AAC,UAAU,EAAC,MAAM,EAAC,OAAO,CAAC,EAAC,cAAc,GAAE,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAEnG,oHAAoH;IACpH,SAAS,CAAC,OAAO,CAAC,EAAC,cAAc;IACjC,gEAAgE;IAChE,MAAM,CAAC,OAAO,CAAC,EAAC,cAAc;IAC9B,2HAA2H;IAC3H,UAAU,CAAC,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,cAAc,CAAC;CACtF"}
@@ -0,0 +1,29 @@
1
+ import { ServiceApi } from '@faiber/sdk-core';
2
+ const path = (id) => `/api/v1/feedback/requests/${encodeURIComponent(id)}`;
3
+ /** Sandbox feedback intake. All methods inherit the configured authenticated FaiberClient. */
4
+ export class FeedbackApi extends ServiceApi {
5
+ /** Get current user's verified reporting roles; requires tenant login. Disabled/unconfigured services return 404 or enabled=false. */
6
+ capabilities(options) { return this.client.get('/api/v1/feedback/capabilities', undefined, options); }
7
+ /** Submit a bug or feature report. Requires feedback:submit; retries must reuse the same key/body. 409 can mean key reuse or a stale X-Feedback-Reporter-Id precondition; stale identity requires a fresh capture. */
8
+ submit(input, key, options) { return this.client.post('/api/v1/feedback/requests', input, { ...options, headers: { ...options?.headers, 'Idempotency-Key': key } }); }
9
+ /** List SQL-scoped reports; requires self-read or review permission plus local grants. */
10
+ list(query, options) { return this.client.get('/api/v1/feedback/requests', query, options); }
11
+ /** Read report, immutable history and attachments; unauthorized objects return 404. */
12
+ detail(id, options) { return this.client.get(path(id), undefined, options); }
13
+ /** Approve/reject current stage with a description. Final assignment-stage approval requires assignment. 409 denotes a stale version. */
14
+ decide(id, input, key, options) { return this.client.post(`${path(id)}/decisions`, input, { ...options, headers: { ...options?.headers, 'Idempotency-Key': key } }); }
15
+ /** Initialize a private screenshot upload, at most 10 MiB; requires feedback:submit. */
16
+ initializeAttachment(input, options) { return this.client.post('/api/v1/feedback/attachments', input, options); }
17
+ /** Upload raw PNG/JPEG/WebP bytes through the authenticated API. Content, dimensions, size and checksum are checked. */
18
+ uploadAttachment(id, bytes, options) { return this.client.put(`/api/v1/feedback/attachments/${encodeURIComponent(id)}/content`, bytes, { ...options, headers: { ...options?.headers, 'Content-Type': bytes.type } }); }
19
+ /** Verify the private object before report submission. Screenshot failures need not block a text report. Preserve X-Feedback-Reporter-Id from capture through completion. */
20
+ completeAttachment(id, options) { return this.client.post(`/api/v1/feedback/attachments/${encodeURIComponent(id)}/complete`, undefined, options); }
21
+ attachmentContent(id, attachment, options) { return this.client.request({ responseType: 'blob', ...options, url: `${path(id)}/attachments/${encodeURIComponent(attachment)}/content`, method: 'GET' }); }
22
+ /** List active developers and authorized software projects; requires feedback:assign and local assignment scope. */
23
+ assignees(options) { return this.client.get('/api/v1/feedback/assignees', undefined, options); }
24
+ /** Read workspace routing policy; requires workspace.manage. */
25
+ policy(options) { return this.client.get('/api/v1/feedback/policy', undefined, options); }
26
+ /** Save local routing/grants. Use version 0 for initialization; requires workspace.manage; concurrent edits return 409. */
27
+ savePolicy(input, version, options) { return this.client.put('/api/v1/feedback/policy', input, { ...options, headers: { ...options?.headers, 'If-Match': String(version) } }); }
28
+ }
29
+ //# sourceMappingURL=feedback.js.map