@faiber/faiber-asset 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
@@ -123,3 +123,21 @@ Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services
123
123
  Create assets with `{name, asset_type}` (`Coin`, `Badge`, `XP`, `Charge`, or `Gem`) and ranks with `{name, min_xp}`. User AI plan updates accept `{tier}`. `dashboard({month: "2026-10"})` selects a month. Charge mapping conditions are tagged objects such as `{type: "xp_balance", operator: "gte", value: "100"}`. Action criteria, reward conditions, caps and multiplier models are exported alongside the operation models.
124
124
 
125
125
  `economyPolicy()` returns `null` before configuration and includes `configuration_revision` afterward; policy updates return the saved policy. Policy models include funding settings and evidence bindings, and capabilities include rule creation/update flags. Economy journal accepts `before` and `descending`; own-history supports `after` and `limit` only. Gift list/detail payloads remain product-owned JSON because Asset forwards the configured adapter's data unchanged; Asset annotates detail/items with `can_copy` and exposes a concrete token-copy response.
126
+
127
+ ### Funded Do and private Dox
128
+
129
+ `asset.doEconomy` manages the separately configured funded-rewards policy. It does
130
+ not change the existing scoped economy's prohibition on coin purchases. Prices
131
+ use integer rial and integer coins. Operators configure inactive packs, catalog
132
+ items, backing, delivery costs, review requirements and promotion reserves.
133
+
134
+ Policy updates require `admin:coin_settings:update`, a current version and an
135
+ audit reason. Read-only policy/audit calls require `admin:coin_settings:read`.
136
+ Campaign funding uses a stable `request_id`; retries cannot issue twice.
137
+ Financial transfers, purchases and entitlement delivery require trusted backend
138
+ integrations. Never put their credentials in a browser.
139
+
140
+ ```ts
141
+ const snapshot = await asset.doEconomy.policy({ signal: controller.signal });
142
+ console.log(snapshot.data.data.version, snapshot.data.data.policy.enabled);
143
+ ```
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/economy.types.ts","../src/contracts.types.ts","../src/operations.types.ts","../src/types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[70,71],[70],[70,71,72,73,74,75],[70,73],[70,71,72,74],[71,73],[61],[60,61],[60,61,62,63,64,65,66,67,68,69],[60,61,65],[60]],"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":"4a42bf7b821679a7f79829140f2da49474354ad19ae9d1756b77028aa8270045","signature":"cdd207955f2d6fc4a4fe6ef0b216a0d4d3ef52a7fb9d6b2bc4dcdadbb39c3a11","impliedFormat":99},{"version":"98f028bd1d35558ac0e1b2ae61db8012ac212bcbf831cb473acfb3d2b82f4fe9","signature":"b192e0d879e5c278493bfde5095b0250e044827ca7609c3a37cd5254df0cccca","impliedFormat":99},{"version":"64761d51e0620d071ec295f2bff9029c3433a594833f33d0eda98021ce3706f6","signature":"132c7c6f594d92a83927a12a7879a4ab59df744e672eb73836e655a739609e92","impliedFormat":99},{"version":"53d89e1644808d1b66f19dc5088213a2c3208ef6b402c9deffc5dd6e647fd0f5","impliedFormat":99},{"version":"fa360c4a5af4bf5b9ab7fe4d126d850afcb0d6f93e081a30a202069063979363","signature":"6999527a27598aa4178fa2da170dc0f147ee57bed3f8b637a4d0ed8337d4f3bc","impliedFormat":99},{"version":"1d05d48f29663758dae88f0615192f91a56b0332806fcba2a040d88522a6bbaf","signature":"7bda908236b4802a7766d3ca81d3b62ef7c3cfb9edacf4cfda183f631c7e4ac9","impliedFormat":99}],"root":[[71,76]],"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":[[72,1],[71,2],[76,3],[75,4],[73,5],[74,6],[64,7],[65,8],[63,7],[70,9],[67,10],[66,10],[61,11]],"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/economy.types.ts","../src/contracts.types.ts","../src/do-dox.ts","../src/operations.types.ts","../src/types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[70,71],[70],[70,71,72,73,74,75,76],[70,74],[70,71,72,75],[71,74],[61],[60,61],[60,61,62,63,64,65,66,67,68,69],[60,61,65],[60]],"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":"4a42bf7b821679a7f79829140f2da49474354ad19ae9d1756b77028aa8270045","signature":"cdd207955f2d6fc4a4fe6ef0b216a0d4d3ef52a7fb9d6b2bc4dcdadbb39c3a11","impliedFormat":99},{"version":"98f028bd1d35558ac0e1b2ae61db8012ac212bcbf831cb473acfb3d2b82f4fe9","signature":"b192e0d879e5c278493bfde5095b0250e044827ca7609c3a37cd5254df0cccca","impliedFormat":99},{"version":"ea667515e855e5c301c7446a8949fc6e04efb3dc9202db42011f87d00002c825","signature":"baad39d5a004d2572fd95ebb3c658a9d931b7bb1e45d92a08d772e5f452f68bb","impliedFormat":99},{"version":"64761d51e0620d071ec295f2bff9029c3433a594833f33d0eda98021ce3706f6","signature":"132c7c6f594d92a83927a12a7879a4ab59df744e672eb73836e655a739609e92","impliedFormat":99},{"version":"53d89e1644808d1b66f19dc5088213a2c3208ef6b402c9deffc5dd6e647fd0f5","impliedFormat":99},{"version":"fa360c4a5af4bf5b9ab7fe4d126d850afcb0d6f93e081a30a202069063979363","signature":"1df555a2a16ac881f4c45988a0c683db92e91d65a2c3c4929dd9e93f91ceced5","impliedFormat":99},{"version":"04326f7346a013ba0a075af10af09a16db5a066b00bca252830aa44997aa331b","signature":"f98ce3af4ae61a0bd8cb33f1663a9372466b32ca15561f5c9cd6ed3766734f13","impliedFormat":99}],"root":[[71,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":[[72,1],[73,2],[71,2],[77,3],[76,4],[74,5],[75,6],[64,7],[65,8],[63,7],[70,9],[67,10],[66,10],[61,11]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,171 @@
1
+ import { ServiceApi, type RequestOptions } from '@faiber/sdk-core';
2
+ export interface DoPack {
3
+ id: string;
4
+ coins: number;
5
+ price_rial: number;
6
+ enabled: boolean;
7
+ }
8
+ export interface AssetDoRefundReceipt {
9
+ id: string;
10
+ profile_id: string;
11
+ order_id: string;
12
+ transaction_id: string;
13
+ coins: number;
14
+ amount_rial: number;
15
+ status: 'pending' | 'refunded';
16
+ }
17
+ export interface AssetDoRefundRequest {
18
+ id: string;
19
+ operation_id: string;
20
+ profile_id: string;
21
+ order_id: string;
22
+ }
23
+ /** Trusted backend integration. Supply x-do-service-token for Task requests or x-do-refund-token for Payment reads; never expose these credentials in a browser. */
24
+ export declare class DoRefundIntegrationApi extends ServiceApi {
25
+ reserve(body: AssetDoRefundRequest, options?: RequestOptions<AssetDoRefundRequest>): Promise<import("axios").AxiosResponse<DoResponse<AssetDoRefundReceipt>, AssetDoRefundRequest, {}, any>>;
26
+ receipt(id: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<DoResponse<AssetDoRefundReceipt>, any, {}, any>>;
27
+ }
28
+ export interface DoItem {
29
+ id: string;
30
+ title_en: string;
31
+ title_fa: string;
32
+ kind: 'cosmetic' | 'badge' | 'plan';
33
+ coins: number;
34
+ cost_rial: number;
35
+ enabled: boolean;
36
+ plan: string | null;
37
+ }
38
+ export interface DoPolicy {
39
+ pilot_profiles?: string[];
40
+ enabled: boolean;
41
+ public_creation: boolean;
42
+ public_participation: boolean;
43
+ packs: DoPack[];
44
+ catalog: DoItem[];
45
+ reserve_rial_per_do: number;
46
+ fee_basis_points: number;
47
+ marketing_budget_rial: number;
48
+ margin_basis_points: number;
49
+ delivery_cost_rial: Record<string, number>;
50
+ high_value_threshold: number;
51
+ standard_approvals: number;
52
+ high_value_approvals: number;
53
+ review_hours: number;
54
+ appeal_days: number;
55
+ first_week_discount: number;
56
+ later_discount: number;
57
+ referral_extra_discount: number;
58
+ referral_reward: number;
59
+ referral_monthly_limit: number;
60
+ referral_campaign_id: string | null;
61
+ }
62
+ export interface DoResponse<T> {
63
+ status: string;
64
+ message: string;
65
+ data: T;
66
+ }
67
+ export interface DoPolicySnapshot {
68
+ can_edit: boolean;
69
+ version: number;
70
+ policy: DoPolicy;
71
+ }
72
+ export interface DoPolicyEdit {
73
+ version: number;
74
+ policy: DoPolicy;
75
+ reason: string;
76
+ }
77
+ export interface DoRiskEdit {
78
+ profile_id: string;
79
+ held: boolean;
80
+ reason: string;
81
+ }
82
+ export interface DoRiskResult {
83
+ held: boolean;
84
+ }
85
+ export interface DoCampaignFunding {
86
+ request_id: string;
87
+ campaign_id: string;
88
+ owner_id: string;
89
+ coins: number;
90
+ reason: string;
91
+ }
92
+ export interface DoFundingResult {
93
+ funded: number;
94
+ reserved_rial: number;
95
+ }
96
+ export interface DoPolicyAuditData {
97
+ reason: string;
98
+ before: DoPolicy;
99
+ after: DoPolicy;
100
+ }
101
+ export interface DoRiskAuditData {
102
+ profile_id: string;
103
+ held: boolean;
104
+ reason: string;
105
+ }
106
+ export interface DoFundingAuditData {
107
+ actor: string;
108
+ campaign_id: string;
109
+ owner_id: string;
110
+ coins: number;
111
+ reason: string;
112
+ }
113
+ export type DoAuditEvent = {
114
+ id: string;
115
+ actor_id: string;
116
+ created_at: string;
117
+ } & ({
118
+ action: 'risk_signal';
119
+ data: {
120
+ profile_id: string;
121
+ reason: 'circular_funding';
122
+ assignment_id: string;
123
+ };
124
+ } | {
125
+ action: 'risk_appeal';
126
+ data: {
127
+ profile_id: string;
128
+ reason: string;
129
+ };
130
+ } | {
131
+ action: 'policy';
132
+ data: DoPolicyAuditData;
133
+ } | {
134
+ action: 'risk';
135
+ data: DoRiskAuditData;
136
+ } | {
137
+ action: 'marketing_fund';
138
+ data: DoFundingAuditData;
139
+ });
140
+ export interface DoRiskAppeal {
141
+ id: string;
142
+ profile_id: string;
143
+ reason: string;
144
+ status: 'open' | 'resolved';
145
+ created_at: string;
146
+ }
147
+ export interface DoAudit {
148
+ risk_appeals: DoRiskAppeal[];
149
+ outstanding: number;
150
+ balances: number;
151
+ backing_rial: string;
152
+ submitted: number;
153
+ pending: number;
154
+ audit: DoAuditEvent[];
155
+ }
156
+ /** Product-isolated funded rewards policy. The existing scoped economy remains separate.
157
+ * All methods inherit FaiberClient authentication, cancellation, and full Axios responses.
158
+ */
159
+ export declare class DoEconomyApi extends ServiceApi {
160
+ /** Reads packs, benefit prices, review rules and promotion reserves. Requires admin:coin_settings:read. */
161
+ policy(options?: RequestOptions): Promise<import("axios").AxiosResponse<DoResponse<DoPolicySnapshot>, any, {}, any>>;
162
+ /** Saves an audited version of policy. Requires admin:coin_settings:update; stale versions and underfunded packs return 409. */
163
+ savePolicy(body: DoPolicyEdit, options?: RequestOptions<DoPolicyEdit>): Promise<import("axios").AxiosResponse<DoResponse<DoPolicySnapshot>, DoPolicyEdit, {}, any>>;
164
+ /** Reads outstanding backing and the latest 100 operator audit records. Requires admin:coin_settings:read. */
165
+ audit(options?: RequestOptions): Promise<import("axios").AxiosResponse<DoResponse<DoAudit>, any, {}, any>>;
166
+ /** Holds or releases a profile's payouts/redemptions with an audited reason. Requires admin:coin_settings:update. */
167
+ setRisk(body: DoRiskEdit, options?: RequestOptions<DoRiskEdit>): Promise<import("axios").AxiosResponse<DoResponse<DoRiskResult>, DoRiskEdit, {}, any>>;
168
+ /** Funds a campaign from explicit marketing reserves. Requires admin:coin_settings:update. Reuse request_id on retries; changed semantics return 409. */
169
+ fundCampaign(body: DoCampaignFunding, options?: RequestOptions<DoCampaignFunding>): Promise<import("axios").AxiosResponse<DoResponse<DoFundingResult>, DoCampaignFunding, {}, any>>;
170
+ }
171
+ //# sourceMappingURL=do-dox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"do-dox.d.ts","sourceRoot":"","sources":["../src/do-dox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,WAAW,MAAM;IAAG,EAAE,EAAC,MAAM,CAAC;IAAC,KAAK,EAAC,MAAM,CAAC;IAAC,UAAU,EAAC,MAAM,CAAC;IAAC,OAAO,EAAC,OAAO,CAAA;CAAE;AACvF,MAAM,WAAW,oBAAoB;IAAE,EAAE,EAAC,MA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IAAA,MAAM,EAAC,MAAM,CAAC;IAAA,MAAM,EAAC,MAAM,GAAC,UAAU,CAAC;IAAA,UAAU,EAAC,MAAM,CAAA;CAAC;AACpH,MAAM,WAAW,OAAO;IAAG,YAAY,EAAC,YAAY,EAAE,CAAC;IAAA,WAAW,EAAC,MAAM,CAAC;IAAC,QAAQ,EAAC,MAAM,CAAC;IAAC,YAAY,EAAC,MAAM,CAAC;IAAC,SAAS,EAAC,MAAM,CAAC;IAAC,OAAO,EAAC,MAAM,CAAC;IAAC,KAAK,EAAC,YAAY,EAAE,CAAA;CAAE;AAEzK;;GAEG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,2GAA2G;IAC3G,MAAM,CAAC,OAAO,CAAC,EAAC,cAAc;IAC9B,gIAAgI;IAChI,UAAU,CAAC,IAAI,EAAC,YAAY,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,YAAY,CAAC;IAClE,8GAA8G;IAC9G,KAAK,CAAC,OAAO,CAAC,EAAC,cAAc;IAC7B,qHAAqH;IACrH,OAAO,CAAC,IAAI,EAAC,UAAU,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,UAAU,CAAC;IAC3D,yJAAyJ;IACzJ,YAAY,CAAC,IAAI,EAAC,iBAAiB,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,iBAAiB,CAAC;CAC/E"}
package/dist/do-dox.js ADDED
@@ -0,0 +1,22 @@
1
+ import { ServiceApi } from '@faiber/sdk-core';
2
+ /** Trusted backend integration. Supply x-do-service-token for Task requests or x-do-refund-token for Payment reads; never expose these credentials in a browser. */
3
+ export class DoRefundIntegrationApi extends ServiceApi {
4
+ reserve(body, options) { return this.client.post('/api/v1/internal/do/refunds', body, options); }
5
+ receipt(id, options) { return this.client.get(`/api/v1/internal/do/refunds/${encodeURIComponent(id)}`, undefined, options); }
6
+ }
7
+ /** Product-isolated funded rewards policy. The existing scoped economy remains separate.
8
+ * All methods inherit FaiberClient authentication, cancellation, and full Axios responses.
9
+ */
10
+ export class DoEconomyApi extends ServiceApi {
11
+ /** Reads packs, benefit prices, review rules and promotion reserves. Requires admin:coin_settings:read. */
12
+ policy(options) { return this.client.get('/api/v1/do/policy', undefined, options); }
13
+ /** Saves an audited version of policy. Requires admin:coin_settings:update; stale versions and underfunded packs return 409. */
14
+ savePolicy(body, options) { return this.client.put('/api/v1/do/policy', body, options); }
15
+ /** Reads outstanding backing and the latest 100 operator audit records. Requires admin:coin_settings:read. */
16
+ audit(options) { return this.client.get('/api/v1/do/audit', undefined, options); }
17
+ /** Holds or releases a profile's payouts/redemptions with an audited reason. Requires admin:coin_settings:update. */
18
+ setRisk(body, options) { return this.client.post('/api/v1/do/risk', body, options); }
19
+ /** Funds a campaign from explicit marketing reserves. Requires admin:coin_settings:update. Reuse request_id on retries; changed semantics return 409. */
20
+ fundCampaign(body, options) { return this.client.post('/api/v1/do/campaign-funding', body, options); }
21
+ }
22
+ //# sourceMappingURL=do-dox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"do-dox.js","sourceRoot":"","sources":["../src/do-dox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAKnE,oKAAoK;AACpK,MAAM,OAAO,sBAAuB,SAAQ,UAAU;IACrD,OAAO,CAAC,IAAyB,EAAC,OAA6C,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAwD,6BAA6B,EAAC,IAAI,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;IAC5M,OAAO,CAAC,EAAS,EAAC,OAAuB,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmC,+BAA+B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAC,SAAS,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;CAC/K;AAyBD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IAC1C,2GAA2G;IAC3G,MAAM,CAAC,OAAuB,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA+B,mBAAmB,EAAC,SAAS,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;IAC5H,gIAAgI;IAChI,UAAU,CAAC,IAAiB,EAAC,OAAqC,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA4C,mBAAmB,EAAC,IAAI,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;IACxK,8GAA8G;IAC9G,KAAK,CAAC,OAAuB,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,kBAAkB,EAAC,SAAS,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;IACjH,qHAAqH;IACrH,OAAO,CAAC,IAAe,EAAC,OAAmC,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAsC,iBAAiB,EAAC,IAAI,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;IAC1J,yJAAyJ;IACzJ,YAAY,CAAC,IAAsB,EAAC,OAA0C,IAAE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAgD,6BAA6B,EAAC,IAAI,EAAC,OAAO,CAAC,CAAA,CAAA,CAAC;CACpM"}
package/dist/index.d.ts CHANGED
@@ -1,79 +1,81 @@
1
+ import { DoEconomyApi } from "./do-dox.js";
1
2
  import type * as E from "./economy.types.js";
2
3
  import { RestResource, ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
3
4
  import type * as T from "./types.js";
4
5
  import type * as O from "./operations.types.js";
5
6
  import { AssetOperations } from "./operations.js";
6
7
  export declare class AssetApi extends ServiceApi {
8
+ readonly doEconomy: DoEconomyApi;
7
9
  /** Reads versioned scoped-reward policy. Requires admin:coin_settings:read. */
8
- economyPolicy(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyPolicyResponse, any, {}>>;
10
+ economyPolicy(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyPolicyResponse, any, {}, any>>;
9
11
  /** Updates a higher policy version; launch/supply/currency remain immutable. Requires admin:coin_settings:update. */
10
- updateEconomyPolicy(data: E.EconomyPolicy, options?: RequestOptions<E.EconomyPolicy>): Promise<import("axios").AxiosResponse<E.EconomyPolicyUpdateResponse, E.EconomyPolicy, {}>>;
12
+ updateEconomyPolicy(data: E.EconomyPolicy, options?: RequestOptions<E.EconomyPolicy>): Promise<import("axios").AxiosResponse<E.EconomyPolicyUpdateResponse, E.EconomyPolicy, {}, any>>;
11
13
  /** Executes an audited operator reward or scope closure; rejects broker-only commands. Requires admin:action:complete. */
12
14
  economyCommand(data: E.EconomyOperatorCommand, options?: RequestOptions<E.EconomyOperatorCommand>): Promise<import("axios").AxiosResponse<E.EconomyCommandResponse<E.EconomyRewardReceipt | E.EconomyPackReceipt | E.EconomyMoneyQuoteReceipt | E.EconomyCreditReceipt | E.EconomyClosureReceipt | E.EconomyDuplicateReceipt | E.EconomyPendingClosureReceipt | {
13
15
  crafted: string;
14
- }>, E.EconomyOperatorCommand, {}>>;
16
+ }>, E.EconomyOperatorCommand, {}, any>>;
15
17
  /** Lists scoped budgets, bank counters, recovery balances or other named projections. Requires admin:bank_transaction:read. */
16
- economyObjects<K extends E.EconomyObjectKind>(kind: K, params?: E.EconomyObjectQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyObjectsResponse<K>, any, {}>>;
18
+ economyObjects<K extends E.EconomyObjectKind>(kind: K, params?: E.EconomyObjectQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyObjectsResponse<K>, any, {}, any>>;
17
19
  /** Reads immutable journal entries using a sequence cursor. Requires admin:user_asset_log:read. */
18
- economyJournal(params?: E.EconomyJournalQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyJournalResponse, any, {}>>;
20
+ economyJournal(params?: E.EconomyJournalQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyJournalResponse, any, {}, any>>;
19
21
  /** Reads the authenticated user's wallet, free-session entitlements, Charge and purchases. Requires admin:wallet:read_own. */
20
- myEconomy(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyObjectsResponse<keyof E.EconomyObjectMap>, any, {}>>;
22
+ myEconomy(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyObjectsResponse<keyof E.EconomyObjectMap>, any, {}, any>>;
21
23
  /** Buys a configured item using Coin, crafting ingredients, or a ten-minute money quote. Reuse event_id on retry. Requires admin:wallet:read_own. */
22
24
  purchaseEconomyItem(data: E.EconomyPurchaseInput, options?: RequestOptions<E.EconomyPurchaseInput>): Promise<import("axios").AxiosResponse<E.EconomyCommandResponse<E.EconomyRewardReceipt | E.EconomyPackReceipt | E.EconomyMoneyQuoteReceipt | E.EconomyCreditReceipt | E.EconomyClosureReceipt | E.EconomyDuplicateReceipt | E.EconomyPendingClosureReceipt | {
23
25
  crafted: string;
24
- }>, E.EconomyPurchaseInput, {}>>;
26
+ }>, E.EconomyPurchaseInput, {}, any>>;
25
27
  /** Applies only the credits that fit below the session Charge maximum, preserving the remainder. Requires admin:wallet:read_own. */
26
- applySessionChargeCredit(sessionId: Identifier, data: E.EconomyCreditInput, options?: RequestOptions<E.EconomyCreditInput>): Promise<import("axios").AxiosResponse<E.EconomyCommandResponse<E.EconomyCreditReceipt>, E.EconomyCreditInput, {}>>;
28
+ applySessionChargeCredit(sessionId: Identifier, data: E.EconomyCreditInput, options?: RequestOptions<E.EconomyCreditInput>): Promise<import("axios").AxiosResponse<E.EconomyCommandResponse<E.EconomyCreditReceipt>, E.EconomyCreditInput, {}, any>>;
27
29
  /** Reads live Coin value and bank shortfall in explicit currency units. Requires admin:wallet:read_own. */
28
- economyValuation(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyValuationResponse, any, {}>>;
30
+ economyValuation(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyValuationResponse, any, {}, any>>;
29
31
  /** Reads only the authenticated profile's immutable changes, using sequence pagination. Requires admin:wallet:read_own. */
30
- myEconomyHistory(params?: E.EconomyHistoryQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyHistoryResponse, any, {}>>;
32
+ myEconomyHistory(params?: E.EconomyHistoryQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyHistoryResponse, any, {}, any>>;
31
33
  /** Simulates an award and rolls back every change. Evidence still requires verification for completion. Requires admin:wallet:read_own. */
32
34
  previewEconomyReward(data: E.EconomyPreviewInput, options?: RequestOptions<E.EconomyPreviewInput>): Promise<import("axios").AxiosResponse<E.EconomyCommandResponse<E.EconomyRewardReceipt | E.EconomyPackReceipt | E.EconomyMoneyQuoteReceipt | E.EconomyCreditReceipt | E.EconomyClosureReceipt | E.EconomyDuplicateReceipt | E.EconomyPendingClosureReceipt | {
33
35
  crafted: string;
34
- }>, E.EconomyPreviewInput, {}>>;
36
+ }>, E.EconomyPreviewInput, {}, any>>;
35
37
  /** Reads a single role's period or global XP rankings. Replays do not change live rankings. Requires admin:wallet:read_own. */
36
- economyLeaderboard(params: E.EconomyLeaderboardQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyLeaderboardResponse, any, {}>>;
38
+ economyLeaderboard(params: E.EconomyLeaderboardQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyLeaderboardResponse, any, {}, any>>;
37
39
  /** Reads permission-aware operator controls. Requires admin:wallet:read_own or admin:coin_settings:read. */
38
- economyCapabilities(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyCapabilitiesResponse, any, {}>>;
40
+ economyCapabilities(options?: RequestOptions): Promise<import("axios").AxiosResponse<E.EconomyCapabilitiesResponse, any, {}, any>>;
39
41
  readonly operations: AssetOperations;
40
42
  readonly assets: RestResource<O.CatalogAssetsShowGetResponseData, O.CatalogAssetsCreatePostInput, O.CatalogAssetsUpdatePatchInput, O.CatalogAssetsIndexGetResponse, O.CatalogAssetsShowGetResponse, O.CatalogAssetsIndexGetQuery, import("./contracts.types.js").AssetEmptyDataResponse>;
41
43
  readonly ranks: RestResource<O.RankRanksShowGetResponseData, O.RankRanksCreatePostInput, O.RankRanksUpdatePatchInput, O.RankRanksIndexGetResponse, O.RankRanksShowGetResponse, O.RankRanksIndexGetQuery, import("./contracts.types.js").AssetEmptyDataResponse>;
42
44
  readonly actions: RestResource<import("./contracts.types.js").AssetActionRecord, import("./contracts.types.js").AssetActionCreateInput, Partial<import("./contracts.types.js").AssetActionCreateInput>, import("./contracts.types.js").AssetActionPageResponse, import("./contracts.types.js").AssetActionRecordResponse, O.ActionActionsIndexGetQuery, import("./contracts.types.js").AssetEmptyDataResponse>;
43
45
  /** Reads global monthly legacy economy totals; month defaults to server local current month. Declared gateway permission: admin:dashboard:read. */
44
- dashboard(params?: O.DashboardDashboardShowGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.DashboardDashboardShowGetResponse, any, {}>>;
46
+ dashboard(params?: O.DashboardDashboardShowGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.DashboardDashboardShowGetResponse, any, {}, any>>;
45
47
  /** Reads or initializes the current profile billing wallet. Configure the authenticated gateway; Decimal balance is a string. */
46
- wallet(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingWalletShowGetResponse, any, {}>>;
48
+ wallet(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingWalletShowGetResponse, any, {}, any>>;
47
49
  /** Reads the authenticated profile's complete enriched asset balances. */
48
- myAssets(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeAssetsShowGetResponse, unknown, {}>>;
50
+ myAssets(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeAssetsShowGetResponse, unknown, {}, any>>;
49
51
  /** Lists the authenticated profile's server-paginated asset achievement history. */
50
- assetHistory(params?: T.AssetHistoryQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeAssetHistoryGetResponse, unknown, {}>>;
52
+ assetHistory(params?: T.AssetHistoryQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeAssetHistoryGetResponse, unknown, {}, any>>;
51
53
  /** Returns global or cohort-scoped rankings plus the current user's neighboring ranks. */
52
- leaderboard(params?: T.LeaderboardQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.LeaderboardLeaderboardIndexGetResponse, any, {}>>;
54
+ leaderboard(params?: T.LeaderboardQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.LeaderboardLeaderboardIndexGetResponse, any, {}, any>>;
53
55
  /** Lists completed daily metered costs for the authenticated Faiber account. */
54
- dailyCosts(params?: T.DailyCostQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeTransactionDaysGetResponse, any, {}>>;
56
+ dailyCosts(params?: T.DailyCostQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletMeTransactionDaysGetResponse, any, {}, any>>;
55
57
  /** Starts a top-up and returns the payment-provider handoff URL. */
56
- topUpWallet(data: T.WalletTopUpInput, options?: RequestOptions<T.WalletTopUpInput>): Promise<import("axios").AxiosResponse<O.WalletBillingWalletTopupPostResponse, O.WalletBillingWalletTopupPostInput, {}>>;
58
+ topUpWallet(data: T.WalletTopUpInput, options?: RequestOptions<T.WalletTopUpInput>): Promise<import("axios").AxiosResponse<O.WalletBillingWalletTopupPostResponse, O.WalletBillingWalletTopupPostInput, {}, any>>;
57
59
  /** Reads one user's wallet and recent ledger entries. Requires `admin:charge:read`. */
58
- adminUserWallet(profileId: Identifier, params?: T.AdminWalletQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingAdminUserWalletShowGetResponse, any, {}>>;
60
+ adminUserWallet(profileId: Identifier, params?: T.AdminWalletQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingAdminUserWalletShowGetResponse, any, {}, any>>;
59
61
  /** Credits or debits one user's wallet and records an auditable ledger entry. Requires `admin:charge:update`. */
60
- adjustAdminUserWallet(profileId: Identifier, data: T.AdminWalletAdjustmentInput, options?: RequestOptions<T.AdminWalletAdjustmentInput>): Promise<import("axios").AxiosResponse<O.WalletBillingAdminUserWalletShowGetResponse, O.WalletBillingAdminUserWalletAdjustPostInput, {}>>;
62
+ adjustAdminUserWallet(profileId: Identifier, data: T.AdminWalletAdjustmentInput, options?: RequestOptions<T.AdminWalletAdjustmentInput>): Promise<import("axios").AxiosResponse<O.WalletBillingAdminUserWalletShowGetResponse, O.WalletBillingAdminUserWalletAdjustPostInput, {}, any>>;
61
63
  /** Reads effective project pricing without creating or changing a sandbox allocation. */
62
- sandboxProjectPricing(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.SandboxBillingShowPricingGetResponse, any, {}>>;
64
+ sandboxProjectPricing(project: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.SandboxBillingShowPricingGetResponse, any, {}, any>>;
63
65
  /** Moves an existing sandbox allocation and subscription to a linked Faiber financial owner. */
64
- setSandboxFinancialOwner(project: Identifier, data: O.SandboxBillingAdminProjectFinancialOwnerPutInput, options?: RequestOptions<O.SandboxBillingAdminProjectFinancialOwnerPutInput>): Promise<import("axios").AxiosResponse<O.SandboxBillingAdminProjectFinancialOwnerPutResponseData, O.SandboxBillingAdminProjectFinancialOwnerPutInput, {}>>;
66
+ setSandboxFinancialOwner(project: Identifier, data: O.SandboxBillingAdminProjectFinancialOwnerPutInput, options?: RequestOptions<O.SandboxBillingAdminProjectFinancialOwnerPutInput>): Promise<import("axios").AxiosResponse<O.SandboxBillingAdminProjectFinancialOwnerPutResponseData, O.SandboxBillingAdminProjectFinancialOwnerPutInput, {}, any>>;
65
67
  /** Sets or clears the fixed monthly price charged for a sandbox project. */
66
- setSandboxFixedPrice(profileId: Identifier, project: Identifier, data: O.SandboxBillingAdminProjectPricingOverridePutInput, options?: RequestOptions<O.SandboxBillingAdminProjectPricingOverridePutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").AssetSandboxAllocationResponse, O.SandboxBillingAdminProjectPricingOverridePutInput, {}>>;
68
+ setSandboxFixedPrice(profileId: Identifier, project: Identifier, data: O.SandboxBillingAdminProjectPricingOverridePutInput, options?: RequestOptions<O.SandboxBillingAdminProjectPricingOverridePutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").AssetSandboxAllocationResponse, O.SandboxBillingAdminProjectPricingOverridePutInput, {}, any>>;
67
69
  /** Lists current-profile subscriptions with an optional project filter; response data contains subscriptions without pagination. */
68
- subscriptions(params?: O.WalletBillingSubscriptionsIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingSubscriptionsIndexGetResponse, any, {}>>;
70
+ subscriptions(params?: O.WalletBillingSubscriptionsIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingSubscriptionsIndexGetResponse, any, {}, any>>;
69
71
  /** Lists active plan products ordered by price; the backend may initialize missing allowance metadata. */
70
- plans(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingPlansIndexGetResponse, any, {}>>;
72
+ plans(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.WalletBillingPlansIndexGetResponse, any, {}, any>>;
71
73
  /** Reads bank_value_sum as an exact decimal string. Declared gateway permission: admin:bank_transaction:read. */
72
- bankSummary(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.BankBankSummaryShowGetResponse, any, {}>>;
74
+ bankSummary(options?: RequestOptions): Promise<import("axios").AxiosResponse<O.BankBankSummaryShowGetResponse, any, {}, any>>;
73
75
  /** Pages bank transactions by profile/type/search with bracket pagination. Declared gateway permission: admin:bank_transaction:read. */
74
- bankTransactions(params?: O.BankBankTransactionsIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.BankBankTransactionsIndexGetResponse, any, {}>>;
76
+ bankTransactions(params?: O.BankBankTransactionsIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<O.BankBankTransactionsIndexGetResponse, any, {}, any>>;
75
77
  /** Sets a user plan tier; paid tiers expire after 30 days. Declared gateway permission: admin:charge:update. */
76
- setAiPlan(profileId: Identifier, data: T.SetAiPlanInput, options?: RequestOptions<T.SetAiPlanInput>): Promise<import("axios").AxiosResponse<O.LlmUsagePlanShowGetResponse, O.LlmUsagePlanSetPutInput, {}>>;
78
+ setAiPlan(profileId: Identifier, data: T.SetAiPlanInput, options?: RequestOptions<T.SetAiPlanInput>): Promise<import("axios").AxiosResponse<O.LlmUsagePlanShowGetResponse, O.LlmUsagePlanSetPutInput, {}, any>>;
77
79
  }
78
80
  export * from "@faiber/sdk-core";
79
81
  export * from "./types.js";
@@ -81,4 +83,5 @@ export * from "./operations.js";
81
83
  export * from "./operations.types.js";
82
84
  export * from "./economy.types.js";
83
85
  export * from "./contracts.types.js";
86
+ export * from "./do-dox.js";
84
87
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAG,MAAM,kBAAkB,CAAC;AACnG,OAAO,KAAK,KAAK,CAAC,MAAM,YAAY,CAAC;AACrC,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,qBAAa,QAAS,SAAQ,UAAU;IACpC,+EAA+E;IAC/E,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc;IACtC,qHAAqH;IACrH,mBAAmB,CAAC,IAAI,EAAC,CAAC,CAAC,aAAa,EAAE,OAAO,CAAC,EAAC,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC;IAClF,0HAA0H;IAC1H,cAAc,CAAC,IAAI,EAAC,CAAC,CAAC,sBAAsB,EAAC,OAAO,CAAC,EAAC,cAAc,CAAC,CAAC,CAAC,sBAAsB,CAAC;;;IAC9F,+HAA+H;IAC/H,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,iBAAiB,E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AAE,cAAc;IAGnE,gGAAgG;IAChG,wBAAwB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,gDAAgD,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,gDAAgD,CAAC;IAGpL,4EAA4E;IAC5E,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,iDAAiD,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,iDAAiD,CAAC;IAGzM,oIAAoI;IACpI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,uCAAuC,EAAE,OAAO,CAAC,EAAE,cAAc;IAG1F,0GAA0G;IAC1G,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc;IAG9B,iHAAiH;IACjH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc;IAGpC,wIAAwI;IACxI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,iCAAiC,EAAE,OAAO,CAAC,EAAE,cAAc;IAGvF,gHAAgH;IAChH,SAAS,CAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC;CAGtG;AACD,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,sBAAsB,CAAC;AAErC,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,8 @@
1
+ import { DoEconomyApi } from "./do-dox.js";
1
2
  import { RestResource, ServiceApi, } from "@faiber/sdk-core";
2
3
  import { AssetOperations } from "./operations.js";
3
4
  export class AssetApi extends ServiceApi {
5
+ doEconomy = new DoEconomyApi(this.client);
4
6
  /** Reads versioned scoped-reward policy. Requires admin:coin_settings:read. */
5
7
  economyPolicy(options) { return this.client.get("/api/v1/economy/policy", undefined, options); }
6
8
  /** Updates a higher policy version; launch/supply/currency remain immutable. Requires admin:coin_settings:update. */
@@ -102,4 +104,5 @@ export * from "./operations.js";
102
104
  export * from "./operations.types.js";
103
105
  export * from "./economy.types.js";
104
106
  export * from "./contracts.types.js";
107
+ export * from "./do-dox.js";
105
108
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,UAAU,GAAyC,MAAM,kBAAkB,CAAC;AAGnG,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,MAAM,OAAO,QAAS,SAAQ,UAAU;IACpC,+EAA+E;IAC/E,aAAa,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA0B,wBAAwB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC1I,qHAAqH;IACrH,mBAAmB,CAAC,IAAoB,EAAE,OAAwC,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAgD,wBAAwB,EAAC,IAAI,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACrM,0HAA0H;IAC1H,cAAc,CAAC,IAA6B,EAAC,OAAiD,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAoD,0BAA0B,EAAC,IAAI,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACxN,+HAA+H;IAC/H,cAAc,CAAgC,IAAM,EAAC,MAA4B,EAAC,OAAuB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8B,2BAA2B,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAC,MAAM,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzO,mGAAmG;IACnG,cAAc,CAAC,MAA6B,EA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