@faiber/faiber-task 1.4.0 → 1.6.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
@@ -1,5 +1,17 @@
1
1
  # @faiber/faiber-task
2
2
 
3
+ ## Offline synchronization
4
+
5
+ `api.offline.capabilities()` discovers the coordinated offline-sync backend.
6
+ `api.offline.apply(change, {signal})` submits a named `OfflineChange` with a stable
7
+ UUID, original UTC `changed_at`, target, kind and payload. Retain the exact payload
8
+ on retry. `OfflineSyncResult.outcome` is `applied` or `superseded`, and its snapshot
9
+ contains the current authorized task/checklist/document. Conflict ordering is per
10
+ work item by original edit time, with UUID tie-breaking. Note-document payloads
11
+ must contain full Yjs state. Domain permission and validation errors remain errors;
12
+ clients retain unsynced work. These APIs require the Task offline migration and
13
+ endpoint deployment; package types alone do not enable server support.
14
+
3
15
  Typed client for every authenticated Faiber Tasks route. Tasks is the sandbox-local authority
4
16
  for projects, work items, sprints, scoped access grants, reporting, comments, agent proposals,
5
17
  and realtime invalidation events.
@@ -153,3 +165,22 @@ unconfigured realtime can return 503.
153
165
  Project `settings`, work-item `custom_fields`, session/commit `metadata` and agent-proposal
154
166
  `payload` deliberately retain JSON extension data because the service stores
155
167
  `serde_json::Value`; fixed outer envelopes and all declared nested models remain typed.
168
+
169
+ ### Funded campaigns and private recognition
170
+
171
+ Campaign jobs use Social posts and claims. Public Do campaign discovery does not
172
+ expose private participant identities or evidence. Starting a job queues a funded
173
+ reservation; proof review queues an idempotent Asset settlement. A pending response
174
+ is not confirmation that a reward has been paid. Read the assignment again to
175
+ observe settlement. Dox campaigns are private and have no spending power.
176
+
177
+ Use stable `request_id` values on retries. A reused ID with different contents
178
+ returns a conflict. Upload scanned evidence using `FormData`; proof downloads
179
+ require participant, campaign moderator, or authorized operator access. These APIs
180
+ require deployed campaign support and configured service integrations. Financial
181
+ features are disabled until funded and enabled by the service operator.
182
+
183
+ ```ts
184
+ const campaigns = await task.rewards.campaigns({ view: 'public' }, { signal: controller.signal });
185
+ console.log(campaigns.status, campaigns.data.data.items);
186
+ ```
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/short-id.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,69],[60,61,65],[60],[70,71],[70,71,72,73,74,75,76,77],[60,70,76],[70,71,72,73,74,75],[70,72]],"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":"61806e75fc22177d65d9b33c90c4b88e4370abd4dd88d8196ca0fc87d7702fe9","impliedFormat":99},{"version":"cd5dcd4588b6b2d1e345d338edef1598cbfd33a138169b5f07a8fd707b63cdca","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":"fbb76e489b24bd45225372dec4fddbbc3e9fe4ea23d4da6015fb209e424db9de","impliedFormat":99},{"version":"d8c12ac0c9f1cd0b55fa41bb58f88e7166093b7cb7a9e87365ce7c18e9ed4adf","signature":"9a1879812f18d44c6a8668a380baf7232529b83bff6d4a8dc2ea9bb1fd34c1d4","impliedFormat":99},{"version":"9fb873e4cd78263ae2e6657ca22e26e05718890ba76f110ec693494de8c73220","signature":"f37d90d02e6df95a56cb9c56beca2037de4621baa5cb1754db503edb3a7b5bbf","impliedFormat":99},{"version":"22d27abdfbb872dad7c261831cd573ef5ac528dd796bb166d522639970b663e1","signature":"fbee805829c27ada14ff2b458a1964911d9ac18662b4f762ce48cdab9b002a6d","impliedFormat":99},{"version":"6873fb559d167e05ca8480ad6890f1732735f36cad30b197610d21829ff8b851","signature":"5f5005bf2de41b2bd2dd2b55b1464e422b77cf9befbd30523a5e7c09cc169c94","impliedFormat":99},{"version":"ec8b1432495d968d083df50e5d600a997a9611c1087f96dba97a26057a1aa633","signature":"34fc4483f0556cd783485135101dcc495bf0df53b1021486174322b5be170624","impliedFormat":99},{"version":"24ef41615f2ac6fb7a66b734d4b172dcad1b175ba5b11a81a8e66dfd23b4e3e8","signature":"ddb43c8974651dbf66fcd8d0fd108a93cfa9f52d19f9003aaffd50345b79320a","impliedFormat":99},{"version":"3b890e1cd21a57f3d43d807156ed36071ccf86c53d5d0cfb086000c89e795adc","signature":"e8f8eaf398451dd3782c58754caff11a6c8a0f36900c7a8d02d92971241b06e4","impliedFormat":99},{"version":"ef05e0a37745345177726027bad95e08630ef3fbc480f01ad0bae2c0a126bee6","signature":"2dd470ec5c01dc9822dcf3515ff55b2c342458dfad54201a8310bca2086a8e6e","impliedFormat":99}],"root":[[71,78]],"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":[[64,1],[65,2],[63,1],[70,3],[67,4],[66,4],[61,5],[72,6],[73,6],[78,7],[77,8],[76,9],[71,10],[75,6],[74,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/short-id.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/campaigns.ts","../src/types.ts","../src/collaboration.ts","../src/feedback.ts","../src/offline.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,69],[60,61,65],[60],[70],[70,72],[70,71,72,73,74,75,76,77,78,79],[60,70,78],[70,72,73,74,76,77],[70,73]],"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":"cd5dcd4588b6b2d1e345d338edef1598cbfd33a138169b5f07a8fd707b63cdca","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":"fbb76e489b24bd45225372dec4fddbbc3e9fe4ea23d4da6015fb209e424db9de","impliedFormat":99},{"version":"93b30063c55373d2787b12f520d7305720285c6c53c886b2d348dcac559436f9","signature":"1521c6d3ccff29db2b0a73da6c4112d79112a885a4952c8c854dc606f80733f5","impliedFormat":99},{"version":"d8c12ac0c9f1cd0b55fa41bb58f88e7166093b7cb7a9e87365ce7c18e9ed4adf","signature":"9a1879812f18d44c6a8668a380baf7232529b83bff6d4a8dc2ea9bb1fd34c1d4","impliedFormat":99},{"version":"9fb873e4cd78263ae2e6657ca22e26e05718890ba76f110ec693494de8c73220","signature":"d6b317d87a788ce5e3d14383e0dd46299f96bcc6ace31e9510ca0404fdfb86c5","impliedFormat":99},{"version":"22d27abdfbb872dad7c261831cd573ef5ac528dd796bb166d522639970b663e1","signature":"83f1cfc99a3f5df7e40bf12e623e013514fb267b82832f579b9d8c6e7f7340fd","impliedFormat":99},{"version":"c11a86bba3c947e9e6ab877f976252dc0dfea59e263f0827828998f24b2d3af4","signature":"6e619f265036aa08c14c17465a8f85a90e59dd1ca5b02be84f09e9dae4f9194a","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":"9a534e513490b432db1f0e868b1e7cf40801fafb7f269e089d0a9d4d133af89e","signature":"416dcf808f832d2a5b8a6bb762e4552b305c5d6a75785bae235bb0ae450a2823","impliedFormat":99}],"root":[[71,80]],"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":[[64,1],[65,2],[63,1],[70,3],[67,4],[66,4],[61,5],[71,6],[73,7],[74,7],[80,8],[75,7],[79,9],[78,10],[72,11],[77,7],[76,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,422 @@
1
+ import { ServiceApi, type RequestOptions } from '@faiber/sdk-core';
2
+ export type CampaignAsset = 'do' | 'dox';
3
+ export type CampaignVisibility = 'public' | 'private';
4
+ export type CampaignStatus = 'draft' | 'published' | 'closed';
5
+ export type AssignmentStatus = 'funding_pending' | 'active' | 'submitted' | 'changes_requested' | 'rejected' | 'appealed' | 'payout_pending' | 'paid' | 'release_pending' | 'released';
6
+ export interface RewardResponse<T> {
7
+ data: T;
8
+ }
9
+ export interface Campaign {
10
+ reward_min?: number | null;
11
+ reward_max?: number | null;
12
+ remaining_slots?: number;
13
+ available_do?: number | null;
14
+ id: string;
15
+ organization_id: string;
16
+ space_id: string | null;
17
+ owner_id: string;
18
+ asset: CampaignAsset;
19
+ visibility: CampaignVisibility;
20
+ status: CampaignStatus;
21
+ official: boolean;
22
+ title: string;
23
+ description: string;
24
+ terms: string;
25
+ cover: string | null;
26
+ starts_at: string;
27
+ ends_at: string;
28
+ version: number;
29
+ created_at: string;
30
+ }
31
+ export interface CampaignInput {
32
+ request_id: string;
33
+ space_id: string | null;
34
+ title: string;
35
+ description: string;
36
+ terms: string;
37
+ cover: string | null;
38
+ asset: CampaignAsset;
39
+ visibility: CampaignVisibility;
40
+ starts_at: string;
41
+ ends_at: string;
42
+ moderators: string[];
43
+ }
44
+ export interface CampaignJob {
45
+ remaining_slots?: number;
46
+ available_slots?: number;
47
+ available?: boolean;
48
+ required_approvals?: number | null;
49
+ id: string;
50
+ campaign_id: string;
51
+ title: string;
52
+ instructions: string;
53
+ reward: number;
54
+ capacity: number;
55
+ per_person: number;
56
+ submission_hours: number;
57
+ evidence_type: 'proof' | 'referral';
58
+ version: number;
59
+ enabled: boolean;
60
+ }
61
+ export interface CampaignJobInput {
62
+ request_id: string;
63
+ title: string;
64
+ instructions: string;
65
+ reward: number;
66
+ capacity: number;
67
+ per_person: number;
68
+ submission_hours: number;
69
+ evidence_type: 'proof' | 'referral';
70
+ }
71
+ export interface CampaignMutation {
72
+ request_id: string;
73
+ version?: number;
74
+ action: 'join' | 'invite' | 'moderator' | 'remove' | 'publish' | 'visibility' | 'fund' | 'close' | 'official' | 'start';
75
+ user_id?: string;
76
+ coins?: number;
77
+ confirmed?: boolean;
78
+ visibility?: CampaignVisibility;
79
+ }
80
+ export interface RewardReceipt {
81
+ id: string;
82
+ version?: number;
83
+ status?: AssignmentStatus | 'pending';
84
+ accepted?: boolean;
85
+ coins?: number;
86
+ approvals?: number;
87
+ }
88
+ export interface CampaignList {
89
+ items: Campaign[];
90
+ page: number;
91
+ }
92
+ export interface CampaignListQuery {
93
+ view?: 'mine' | 'public';
94
+ page?: number;
95
+ space_id?: string;
96
+ }
97
+ export interface CampaignMember {
98
+ user_id: string;
99
+ role: 'participant' | 'moderator';
100
+ active: boolean;
101
+ }
102
+ export interface CampaignAvailability {
103
+ available_do: number | null;
104
+ review_hours: number | null;
105
+ appeal_days: number | null;
106
+ }
107
+ export interface CampaignDetail {
108
+ availability?: CampaignAvailability;
109
+ campaign: Campaign;
110
+ jobs: CampaignJob[];
111
+ role: 'participant' | 'moderator' | null;
112
+ members: CampaignMember[];
113
+ finance: DoSnapshot | null;
114
+ }
115
+ export interface CampaignAssignment {
116
+ id: string;
117
+ campaign_id: string;
118
+ job_id: string;
119
+ user_id: string;
120
+ status: AssignmentStatus;
121
+ reward: number;
122
+ instructions: string;
123
+ required_approvals: number;
124
+ review_hours: number;
125
+ appeal_days: number;
126
+ deadline: string;
127
+ review_deadline: string | null;
128
+ appeal_until: string | null;
129
+ submission_version: number;
130
+ version: number;
131
+ risk_flags: string[];
132
+ last_error: string | null;
133
+ created_at: string;
134
+ campaign_title?: string;
135
+ job_title?: string;
136
+ asset?: CampaignAsset;
137
+ }
138
+ export interface CampaignWorkList {
139
+ items: CampaignAssignment[];
140
+ }
141
+ export interface CampaignWorkQuery {
142
+ view?: 'review' | 'appeals';
143
+ }
144
+ export interface CampaignProof {
145
+ assignment_id: string;
146
+ version: number;
147
+ note: string;
148
+ links: string[];
149
+ attachment_ids: string[];
150
+ external_ids: string[];
151
+ created_at: string;
152
+ }
153
+ export interface ProofFile {
154
+ id: string;
155
+ filename: string;
156
+ mime: string;
157
+ size_bytes: number;
158
+ status: 'uploading' | 'clean' | 'quarantined';
159
+ }
160
+ export interface CampaignReview {
161
+ id: string;
162
+ assignment_id: string;
163
+ submission_version: number;
164
+ reviewer_id: string;
165
+ decision: 'approve' | 'changes' | 'reject' | 'appeal' | 'resolve_approve' | 'resolve_reject';
166
+ reason: string;
167
+ created_at: string;
168
+ }
169
+ export interface CampaignWorkDetail {
170
+ assignment: CampaignAssignment;
171
+ submissions: CampaignProof[];
172
+ reviews: CampaignReview[];
173
+ files: ProofFile[];
174
+ }
175
+ export interface SubmitCampaignProof {
176
+ request_id: string;
177
+ version: number;
178
+ note: string;
179
+ links: string[];
180
+ attachments: string[];
181
+ external_ids: string[];
182
+ }
183
+ export interface ReviewCampaignProof {
184
+ request_id: string;
185
+ version: number;
186
+ decision: CampaignReview['decision'];
187
+ reason: string;
188
+ }
189
+ export interface DoPack {
190
+ id: string;
191
+ coins: number;
192
+ price_rial: number;
193
+ enabled: boolean;
194
+ }
195
+ export interface DoItem {
196
+ id: string;
197
+ title_en: string;
198
+ title_fa: string;
199
+ kind: 'cosmetic' | 'badge' | 'plan';
200
+ coins: number;
201
+ cost_rial: number;
202
+ enabled: boolean;
203
+ plan: string | null;
204
+ }
205
+ export interface DoHistory {
206
+ operation_id: string;
207
+ source: string;
208
+ destination: string;
209
+ coins: number;
210
+ created_at: string;
211
+ }
212
+ export interface DoOrder {
213
+ refund_eligible?: boolean;
214
+ id: string;
215
+ pack: DoPack;
216
+ status: 'pending' | 'paid' | 'refunded' | 'cancelled';
217
+ redirect_url: string | null;
218
+ }
219
+ export interface RewardStreak {
220
+ current_days: number;
221
+ best_days: number;
222
+ freezes: number;
223
+ last_day: string | null;
224
+ }
225
+ export interface RewardEnrollment {
226
+ workspace_id: string;
227
+ user_id: string;
228
+ enrolled_at: string;
229
+ timezone: string;
230
+ first_purchase_id: string | null;
231
+ first_purchase_status: 'reserved' | 'paid' | null;
232
+ referrer_id: string | null;
233
+ }
234
+ export interface RewardReferral {
235
+ status: 'pending' | 'reserved' | 'qualified' | 'expired';
236
+ expires_at: string;
237
+ }
238
+ export interface DoRedemption {
239
+ id: string;
240
+ item: DoItem;
241
+ coins: number;
242
+ status: 'pending' | 'delivered' | 'held';
243
+ created_at: string;
244
+ }
245
+ export interface DoOwnedItem {
246
+ item_id: string;
247
+ kind: 'cosmetic' | 'badge';
248
+ }
249
+ export interface DoRiskHold {
250
+ reason: string;
251
+ created_at: string;
252
+ }
253
+ export interface DoRiskAppeal {
254
+ id: string;
255
+ reason: string;
256
+ status: 'open' | 'resolved';
257
+ created_at: string;
258
+ }
259
+ export interface DoRiskAppealInput {
260
+ request_id: string;
261
+ reason: string;
262
+ }
263
+ export interface DoRiskAppealReceipt {
264
+ id: string;
265
+ status: 'open';
266
+ }
267
+ export interface CampaignBudgetSummary {
268
+ campaign_id: string;
269
+ status: string;
270
+ available: number;
271
+ reserved: number;
272
+ }
273
+ export interface DoRefund {
274
+ id: string;
275
+ order_id: string;
276
+ coins: number;
277
+ amount_rial: number;
278
+ status: 'pending' | 'refunded';
279
+ created_at?: string;
280
+ }
281
+ export interface DoRefundRequest {
282
+ request_id: string;
283
+ }
284
+ export interface DoSnapshot {
285
+ refunds?: DoRefund[];
286
+ refund_reserved?: number;
287
+ campaign_budgets?: CampaignBudgetSummary[];
288
+ risk_hold: DoRiskHold | null;
289
+ risk_appeals: DoRiskAppeal[];
290
+ version: number;
291
+ enabled: boolean;
292
+ public_creation: boolean;
293
+ public_participation: boolean;
294
+ high_value_threshold: number;
295
+ review_hours: number;
296
+ appeal_days: number;
297
+ first_week_discount: number;
298
+ later_discount: number;
299
+ referral_extra_discount: number;
300
+ referral_reward: number;
301
+ referral_monthly_limit: number;
302
+ referral_campaign_id: string | null;
303
+ available: number;
304
+ reserved: number;
305
+ packs: DoPack[];
306
+ catalog: DoItem[];
307
+ history: DoHistory[];
308
+ orders: DoOrder[];
309
+ campaign_available?: number;
310
+ redemptions: DoRedemption[];
311
+ owned_items: DoOwnedItem[];
312
+ standard_approvals: number;
313
+ high_value_approvals: number;
314
+ }
315
+ export interface RewardOverview extends DoSnapshot {
316
+ discount_percent: number;
317
+ enrollment: RewardEnrollment;
318
+ streak: RewardStreak;
319
+ referrals: RewardReferral[];
320
+ }
321
+ export interface RewardPurchase {
322
+ request_id: string;
323
+ pack_id?: string;
324
+ item_id?: string;
325
+ }
326
+ export interface DoPackCheckout {
327
+ redirect_url: string;
328
+ }
329
+ export interface DoPackSettlement {
330
+ credited: number;
331
+ redirect_url?: string;
332
+ status?: 'pending' | 'paid' | 'cancelled';
333
+ }
334
+ export interface RewardCheckin {
335
+ request_id: string;
336
+ timezone: string;
337
+ referrer_id?: string;
338
+ }
339
+ export interface TaskDoxRequest {
340
+ id: string;
341
+ workspace_id: string;
342
+ space_id: string;
343
+ work_item_id: string;
344
+ user_id: string;
345
+ amount: number;
346
+ status: 'pending' | 'approved' | 'awarded';
347
+ reviewer_id: string | null;
348
+ }
349
+ export interface TaskDoxState {
350
+ enabled: boolean;
351
+ request: TaskDoxRequest | null;
352
+ can_offer: boolean;
353
+ can_approve: boolean;
354
+ }
355
+ export interface DoxScore {
356
+ space_id: string;
357
+ enabled: boolean;
358
+ score: number;
359
+ can_manage: boolean;
360
+ }
361
+ export interface DoxMutation {
362
+ request_id: string;
363
+ action: 'request' | 'approve' | 'configure';
364
+ amount?: number;
365
+ enabled?: boolean;
366
+ }
367
+ export interface DoxResult {
368
+ accepted?: boolean;
369
+ enabled?: boolean;
370
+ }
371
+ /** Campaigns and rewards use authenticated Task access; private records additionally
372
+ * enforce campaign/space membership. Every operation preserves Axios responses,
373
+ * supports cancellation and reports unavailable funding as a service error. */
374
+ export declare class RewardsApi extends ServiceApi {
375
+ /** Lists authorized campaigns, 25 per page; view=public never includes private campaigns. */
376
+ campaigns(query?: CampaignListQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<CampaignList>, any, {}, any>>;
377
+ /** Creates a draft; Dox requires a private authorized space. */
378
+ createCampaign(body: CampaignInput, options?: RequestOptions<CampaignInput>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, CampaignInput, {}, any>>;
379
+ /** Gets visible campaign metadata and jobs. Proof and participant identities are private. */
380
+ campaign(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<CampaignDetail>, any, {}, any>>;
381
+ /** Mutates membership, publication, budget or closure; owner permissions apply. */
382
+ changeCampaign(id: string, body: CampaignMutation, options?: RequestOptions<CampaignMutation>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, CampaignMutation, {}, any>>;
383
+ /** Adds a job to an owned draft; accepted reward terms are immutable. */
384
+ addJob(id: string, body: CampaignJobInput, options?: RequestOptions<CampaignJobInput>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, CampaignJobInput, {}, any>>;
385
+ /** Starts an eligible job; pending funding must complete before submission. */
386
+ startJob(id: string, body: CampaignMutation, options?: RequestOptions<CampaignMutation>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, CampaignMutation, {}, any>>;
387
+ /** Lists own assignments or a permitted moderation/appeals queue. */
388
+ work(query?: CampaignWorkQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<CampaignWorkList>, any, {}, any>>;
389
+ /** Gets private evidence, submission versions and review history. */
390
+ assignment(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<CampaignWorkDetail>, any, {}, any>>;
391
+ /** Submits clean attachment IDs or HTTPS proof links using the current assignment version. */
392
+ submit(id: string, body: SubmitCampaignProof, options?: RequestOptions<SubmitCampaignProof>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, SubmitCampaignProof, {}, any>>;
393
+ /** Reviews or appeals a submission; self-approval is forbidden. */
394
+ review(id: string, body: ReviewCampaignProof, options?: RequestOptions<ReviewCampaignProof>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, ReviewCampaignProof, {}, any>>;
395
+ /** Uploads one private proof file. The server scans and validates it before acceptance. */
396
+ upload(id: string, body: FormData, options?: RequestOptions<FormData>): Promise<import("axios").AxiosResponse<RewardResponse<ProofFile>, FormData, {}, any>>;
397
+ /** Downloads evidence only for its participant, moderator or authorized appeal operator. */
398
+ file(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<Blob, any, {}, any>>;
399
+ /** Gets the global Do wallet, catalog, offers and account-wide streak. */
400
+ overview(options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<RewardOverview>, any, {}, any>>;
401
+ /** Appeals a risk hold using a stable request ID. Requires authenticated Task access; the operator's reason stays visible in overview. 409 if an appeal is already open. */
402
+ appealRisk(body: DoRiskAppealInput, options?: RequestOptions<DoRiskAppealInput>): Promise<import("axios").AxiosResponse<RewardResponse<DoRiskAppealReceipt>, DoRiskAppealInput, {}, any>>;
403
+ /** Records one server-dated check-in, with replay protection. */
404
+ checkin(body: RewardCheckin, options?: RequestOptions<RewardCheckin>): Promise<import("axios").AxiosResponse<RewardResponse<RewardStreak>, RewardCheckin, {}, any>>;
405
+ /** Prepares a server-priced coin-pack payment. Never grants coins at checkout. */
406
+ buyPack(body: RewardPurchase, options?: RequestOptions<RewardPurchase>): Promise<import("axios").AxiosResponse<RewardResponse<DoPackCheckout>, RewardPurchase, {}, any>>;
407
+ /** Reconciles a provider-verified pack payment; duplicate callbacks do not mint twice. */
408
+ reconcilePack(id: string, options?: RequestOptions<undefined>): Promise<import("axios").AxiosResponse<RewardResponse<DoPackSettlement>, undefined, {}, any>>;
409
+ /** Reserves only an untouched original purchased pack for refund. Stable request IDs replay safely; committed, transferred or spent origins cannot be refunded. */
410
+ refundPack(id: string, body: DoRefundRequest, options?: RequestOptions<DoRefundRequest>): Promise<import("axios").AxiosResponse<RewardResponse<DoRefund>, DoRefundRequest, {}, any>>;
411
+ /** Buys an enabled catalog item; entitlement delivery may remain pending. */
412
+ redeem(body: RewardPurchase, options?: RequestOptions<RewardPurchase>): Promise<import("axios").AxiosResponse<RewardResponse<RewardReceipt>, RewardPurchase, {}, any>>;
413
+ /** Reads one's private Dox score in an authorized space. */
414
+ dox(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<DoxScore>, any, {}, any>>;
415
+ /** Enables local Dox scoring; requires space campaign management. */
416
+ configureDox(id: string, body: DoxMutation, options?: RequestOptions<DoxMutation>): Promise<import("axios").AxiosResponse<RewardResponse<DoxResult>, DoxMutation, {}, any>>;
417
+ /** Reads the authorized task's private recognition request and available approval actions. Requires Task access and work_item.read; inaccessible IDs return 404. */
418
+ taskDoxState(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<RewardResponse<TaskDoxState>, any, {}, any>>;
419
+ /** Offers Dox before completion or approves another member's completed task. */
420
+ taskDox(id: string, body: DoxMutation, options?: RequestOptions<DoxMutation>): Promise<import("axios").AxiosResponse<RewardResponse<DoxResult>, DoxMutation, {}, any>>;
421
+ }
422
+ //# sourceMappingURL=campaigns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"campaigns.d.ts","sourceRoot":"","sources":["../src/campaigns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,IAAI,GAAC,KAAK,CAAC;AACvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAC,SAAS,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAC,WAAW,GAAC,QAAQ,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAC,QAAQ,GAAC,WAAW,GAAC,mBAAmB,GAAC,UAAU,GAAC,UAAU,GAAC,gBAAgB,GAAC,MAAM,GAAC,iBAAiB,GAAC,UAAU,CAAC;AACrK,MAAM,WAAW,cAAc,CAAC,CAAC;IAAE,IAAI,EAAC,CAAC,CAAA;CAAC;AAC1C,MAAM,WAAW,QAAQ;IAAE,UAAU,CAAC,EAAC,MAAM,GAAC,IAAI,CAAC;IAAA,UAAU,CAAC,EAAC,MAAM,GAAC,IAAI,CAAC;IAAA,eAAe,CAAC,EAAC,MAAM,CAAC;IAAA,YAAY,CAAC,EAAC,MAAM,GAAC,IAAI,CAAC;IAAA,EAAE,EAAC,MAAM,CAAC;IAAA,eAAe,EAAC,MAAM,CAAC;IAAA,QAAQ,EAAC,MAAM,GAAC,IAAI,CAAC;IAAA,QAAQ,EAA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,aAAa,CAAC,EAAE,EAAC,MAAM,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,SAAS,CAAC;IAC1D,mKAAmK;IACnK,UAAU,CAAC,EAAE,EAAC,MAAM,EAAC,IAAI,EAAC,eAAe,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,eAAe,CAAC;IAClF,6EAA6E;IAC7E,MAAM,CAAC,IAAI,EAAC,cAAc,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,cAAc,CAAC;IAClE,4DAA4D;IAC5D,GAAG,CAAC,EAAE,EAAC,MAAM,EAAC,OAAO,CAAC,EAAC,cAAc;IACrC,qEAAqE;IACrE,YAAY,CAAC,EAAE,EAAC,MAAM,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,WAAW,CAAC;IAC5E,oKAAoK;IACpK,YAAY,CAAC,EAAE,EAAC,MAAM,EAAC,OAAO,CAAC,EAAC,cAAc;IAC9C,gFAAgF;IAChF,OAAO,CAAC,EAAE,EAAC,MAAM,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,WAAW,CAAC;CACvE"}
@@ -0,0 +1,53 @@
1
+ import { ServiceApi } from '@faiber/sdk-core';
2
+ /** Campaigns and rewards use authenticated Task access; private records additionally
3
+ * enforce campaign/space membership. Every operation preserves Axios responses,
4
+ * supports cancellation and reports unavailable funding as a service error. */
5
+ export class RewardsApi extends ServiceApi {
6
+ /** Lists authorized campaigns, 25 per page; view=public never includes private campaigns. */
7
+ campaigns(query, options) { return this.client.get('/api/v1/campaigns', query ? { ...query } : undefined, options); }
8
+ /** Creates a draft; Dox requires a private authorized space. */
9
+ createCampaign(body, options) { return this.client.post('/api/v1/campaigns', body, options); }
10
+ /** Gets visible campaign metadata and jobs. Proof and participant identities are private. */
11
+ campaign(id, options) { return this.client.get(`/api/v1/campaigns/${encodeURIComponent(id)}`, undefined, options); }
12
+ /** Mutates membership, publication, budget or closure; owner permissions apply. */
13
+ changeCampaign(id, body, options) { return this.client.post(`/api/v1/campaigns/${encodeURIComponent(id)}`, body, options); }
14
+ /** Adds a job to an owned draft; accepted reward terms are immutable. */
15
+ addJob(id, body, options) { return this.client.post(`/api/v1/campaigns/${encodeURIComponent(id)}/jobs`, body, options); }
16
+ /** Starts an eligible job; pending funding must complete before submission. */
17
+ startJob(id, body, options) { return this.client.post(`/api/v1/campaign-jobs/${encodeURIComponent(id)}/start`, body, options); }
18
+ /** Lists own assignments or a permitted moderation/appeals queue. */
19
+ work(query, options) { return this.client.get('/api/v1/campaign-assignments', query ? { ...query } : undefined, options); }
20
+ /** Gets private evidence, submission versions and review history. */
21
+ assignment(id, options) { return this.client.get(`/api/v1/campaign-assignments/${encodeURIComponent(id)}`, undefined, options); }
22
+ /** Submits clean attachment IDs or HTTPS proof links using the current assignment version. */
23
+ submit(id, body, options) { return this.client.post(`/api/v1/campaign-assignments/${encodeURIComponent(id)}/submit`, body, options); }
24
+ /** Reviews or appeals a submission; self-approval is forbidden. */
25
+ review(id, body, options) { return this.client.post(`/api/v1/campaign-assignments/${encodeURIComponent(id)}/review`, body, options); }
26
+ /** Uploads one private proof file. The server scans and validates it before acceptance. */
27
+ upload(id, body, options) { return this.client.post(`/api/v1/campaign-assignments/${encodeURIComponent(id)}/files`, body, options); }
28
+ /** Downloads evidence only for its participant, moderator or authorized appeal operator. */
29
+ file(id, options) { return this.client.get(`/api/v1/campaign-files/${encodeURIComponent(id)}`, undefined, { ...options, responseType: 'blob' }); }
30
+ /** Gets the global Do wallet, catalog, offers and account-wide streak. */
31
+ overview(options) { return this.client.get('/api/v1/rewards', undefined, options); }
32
+ /** Appeals a risk hold using a stable request ID. Requires authenticated Task access; the operator's reason stays visible in overview. 409 if an appeal is already open. */
33
+ appealRisk(body, options) { return this.client.post('/api/v1/rewards/risk-appeal', body, options); }
34
+ /** Records one server-dated check-in, with replay protection. */
35
+ checkin(body, options) { return this.client.post('/api/v1/rewards/checkin', body, options); }
36
+ /** Prepares a server-priced coin-pack payment. Never grants coins at checkout. */
37
+ buyPack(body, options) { return this.client.post('/api/v1/rewards/packs', body, options); }
38
+ /** Reconciles a provider-verified pack payment; duplicate callbacks do not mint twice. */
39
+ reconcilePack(id, options) { return this.client.post(`/api/v1/rewards/packs/${encodeURIComponent(id)}/reconcile`, undefined, options); }
40
+ /** Reserves only an untouched original purchased pack for refund. Stable request IDs replay safely; committed, transferred or spent origins cannot be refunded. */
41
+ refundPack(id, body, options) { return this.client.post(`/api/v1/rewards/packs/${encodeURIComponent(id)}/refund`, body, options); }
42
+ /** Buys an enabled catalog item; entitlement delivery may remain pending. */
43
+ redeem(body, options) { return this.client.post('/api/v1/rewards/redeem', body, options); }
44
+ /** Reads one's private Dox score in an authorized space. */
45
+ dox(id, options) { return this.client.get(`/api/v1/projects/${encodeURIComponent(id)}/dox`, undefined, options); }
46
+ /** Enables local Dox scoring; requires space campaign management. */
47
+ configureDox(id, body, options) { return this.client.post(`/api/v1/projects/${encodeURIComponent(id)}/dox`, body, options); }
48
+ /** Reads the authorized task's private recognition request and available approval actions. Requires Task access and work_item.read; inaccessible IDs return 404. */
49
+ taskDoxState(id, options) { return this.client.get(`/api/v1/work-items/${encodeURIComponent(id)}/dox`, undefined, options); }
50
+ /** Offers Dox before completion or approves another member's completed task. */
51
+ taskDox(id, body, options) { return this.client.post(`/api/v1/work-items/${encodeURIComponent(id)}/dox`, body, options); }
52
+ }
53
+ //# sourceMappingURL=campaigns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"campaigns.js","sourceRoot":"","sources":["../src/campaigns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAsDnE;;+EAE+E;AAC/E,MAAM,OAAO,UAAW,SAAQ,UAAU;IACzC,6FAA6F;IAC7F,SAAS,CAAC,KAAwB,EAAC,OAAuB,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA+B,mBAAmB,EAAC,KAAK,CA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