@faiber/faiber-state-sdk 0.5.2 → 0.7.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/dist/.tsbuildinfo +1 -1
- package/dist/api.d.ts +16 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -0
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/match.d.ts +101 -0
- package/dist/match.d.ts.map +1 -0
- package/dist/match.js +54 -0
- package/dist/match.js.map +1 -0
- package/dist/operations.d.ts +137 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +164 -0
- package/dist/operations.js.map +1 -0
- package/dist/operations.types.d.ts +95 -0
- package/dist/operations.types.d.ts.map +1 -0
- package/dist/operations.types.js +2 -0
- package/dist/operations.types.js.map +1 -0
- package/package.json +2 -2
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/api.ts","../src/prediction.ts","../src/realtime.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68],[68,69,70,71],[68],[67]],"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":"26f987e0668743de897c1f91f5f23d4cbe168995a1c299a40560bc7ac41a93cf","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"61d2eafd69bb2a832180b501e2fb035bbe5421905bf2758789dccafff169324a","signature":"564708a657ebab1f1efbeb4f6cb3194d736ec4da237c0ba85c566947ab1fe1b4","impliedFormat":99},{"version":"61d0da14d9adc1c6d70c29b80f42311dc0804d4a1b37a5962b7339259d42d3f5","signature":"ff3a4b9d9e101c6c56d088ef8d419a68b125e9ffeb5e1dbb69ae01a374841070","impliedFormat":99},{"version":"408a1f9df47e527c6dcff25d2c2cbef9d04186ea643d055704ccc54016bc0732","signature":"9960b39e2a2cf4d4b3b843ce69c83ed77a89cab83ade288d57c1677baf18fbab","impliedFormat":99},{"version":"932fe992ca283174320af6d550cceb10d86cf1309130f20099f695dd062b0f16","signature":"6d4dea0a46463c93a6a7b918af4e93b6374e3aa8f948e26a16efc744335a355c","impliedFormat":99},{"version":"5762fc28bc25857ea9b54907f1cd6c38cb48fed4c0dd5efc4d8edaaefec55d0a","impliedFormat":99}],"root":[[68,72]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[69,6],[72,7],[70,8],[71,8],[68,9]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/match.ts","../src/api.ts","../src/operations.types.ts","../src/operations.ts","../src/prediction.ts","../src/realtime.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69],[68,69,70,71,72,73,74],[67,71],[67],[68]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"61d2eafd69bb2a832180b501e2fb035bbe5421905bf2758789dccafff169324a","signature":"564708a657ebab1f1efbeb4f6cb3194d736ec4da237c0ba85c566947ab1fe1b4","impliedFormat":99},{"version":"6b5056f911cb098a924aa25ad5c24ce2ad517804e92efffbd608583e57f18610","signature":"fcfc7b62d3b938a46fd19ac320b8ddf0ef5557b3cf1ea59ee86b1c7df88ae91a","impliedFormat":99},{"version":"c800fd2f6ff9eb59d3b36fd847ad5e57473c6a0c710d2a4fc30f52c8e34c8813","signature":"5f749e1df6d8ffd4148ac394bb91d7e0f4010b9121a4a05a8551f66902eee9dc","impliedFormat":99},{"version":"061003c8bf52e667ee53beda5d11c3e084a6fd8e3ee5cbe61b18aa614a04e35c","signature":"714b0e1b42ec6b6a8b76805b402c6b919235def6cd3758184d0564703ad90f9d","impliedFormat":99},{"version":"5505095956c5da25ebfecebe44039f5e3a3f293817ebf807c67f40dc7323770b","signature":"c3e0e69a4068aac89687f3805b7d732c1fdea481691c42856fd289f11abb4223","impliedFormat":99},{"version":"408a1f9df47e527c6dcff25d2c2cbef9d04186ea643d055704ccc54016bc0732","signature":"9960b39e2a2cf4d4b3b843ce69c83ed77a89cab83ade288d57c1677baf18fbab","impliedFormat":99},{"version":"932fe992ca283174320af6d550cceb10d86cf1309130f20099f695dd062b0f16","signature":"6d4dea0a46463c93a6a7b918af4e93b6374e3aa8f948e26a16efc744335a355c","impliedFormat":99},{"version":"bcd4f97595b4094d5bbc99bc5a35e5a4a60b5773c371bb633de43f8aa0f85d92","signature":"5a5c7e938a7a26a53106084716b043c10ec34104962e6e330f1321c81d16914e","impliedFormat":99}],"root":[[68,75]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[70,6],[75,7],[72,8],[71,9],[73,10],[74,10],[68,9]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/api.d.ts
CHANGED
|
@@ -42,5 +42,21 @@ export declare class StateApi extends ServiceApi {
|
|
|
42
42
|
}, T.CreateWasmEndpointInput, {}>>;
|
|
43
43
|
/** Invokes a registered endpoint via `POST /api/v1/rooms/{roomId}/endpoints/{slug}`. @param roomId Room UUID. @param slug Endpoint slug. @param data Player/entity inputs. @returns Authoritative state patch in a full Axios response. @throws AxiosError for validation, authorization, not-found, execution, or transport failures. */
|
|
44
44
|
invoke(roomId: string, slug: string, data: T.InvokeWasmInput, options?: RequestOptions<T.InvokeWasmInput>): Promise<import("axios").AxiosResponse<T.StatePatchResponse, T.InvokeWasmInput, {}>>;
|
|
45
|
+
/** Enqueues the authenticated user; identity is never accepted in the body. */
|
|
46
|
+
enqueueMatchmaking(gameId: string, data: import("./match.js").EnqueueMatchmakingInput, options?: RequestOptions<import("./match.js").EnqueueMatchmakingInput>): Promise<import("axios").AxiosResponse<{
|
|
47
|
+
data: import("./match.js").MatchmakingTicket;
|
|
48
|
+
}, import("./match.js").EnqueueMatchmakingInput, {}>>;
|
|
49
|
+
matchmakingTicket(gameId: string, ticketId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<{
|
|
50
|
+
data: import("./match.js").MatchmakingTicket;
|
|
51
|
+
}, any, {}>>;
|
|
52
|
+
cancelMatchmaking(gameId: string, ticketId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<{
|
|
53
|
+
data: import("./match.js").MatchmakingTicket;
|
|
54
|
+
}, any, {}>>;
|
|
55
|
+
matchView<View = import("./match.js").MatchView>(matchId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<{
|
|
56
|
+
data: View;
|
|
57
|
+
}, any, {}>>;
|
|
58
|
+
createMatchConnection(matchId: string, options?: RequestOptions): Promise<import("axios").AxiosResponse<{
|
|
59
|
+
data: import("./match.js").MatchConnectionTicket;
|
|
60
|
+
}, Record<string, never>, {}>>;
|
|
45
61
|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E,IAAI,EAAE,CAAC,CAAC,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,uBAAuB,CAAC;cAAoC,CAAC,CAAC,YAAY;;IACtK,0UAA0U;IAC1U,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC;IACzG,+EAA+E;IAC/E,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,YAAY,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,YAAY,EAAE,uBAAuB,CAAC;cAAmC,OAAO,YAAY,EAAE,iBAAiB;;IACtO,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;cAAkC,OAAO,YAAY,EAAE,iBAAiB;;IACpJ,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;cAAqC,OAAO,YAAY,EAAE,iBAAiB;;IACvJ,SAAS,CAAC,IAAI,GAAG,OAAO,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;cAAkC,IAAI;;IAChI,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;cAAmC,OAAO,YAAY,EAAE,qBAAqB;;CAC7I"}
|
package/dist/api.js
CHANGED
|
@@ -29,5 +29,11 @@ export class StateApi extends ServiceApi {
|
|
|
29
29
|
createEndpoint(worldId, data, options) { return this.client.post(`/api/v1/worlds/${encodeURIComponent(worldId)}/endpoints`, data, options); }
|
|
30
30
|
/** Invokes a registered endpoint via `POST /api/v1/rooms/{roomId}/endpoints/{slug}`. @param roomId Room UUID. @param slug Endpoint slug. @param data Player/entity inputs. @returns Authoritative state patch in a full Axios response. @throws AxiosError for validation, authorization, not-found, execution, or transport failures. */
|
|
31
31
|
invoke(roomId, slug, data, options) { return this.client.post(`/api/v1/rooms/${encodeURIComponent(roomId)}/endpoints/${encodeURIComponent(slug)}`, data, options); }
|
|
32
|
+
/** Enqueues the authenticated user; identity is never accepted in the body. */
|
|
33
|
+
enqueueMatchmaking(gameId, data, options) { return this.client.post(`/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets`, data, options); }
|
|
34
|
+
matchmakingTicket(gameId, ticketId, options) { return this.client.get(`/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets/${encodeURIComponent(ticketId)}`, undefined, options); }
|
|
35
|
+
cancelMatchmaking(gameId, ticketId, options) { return this.client.delete(`/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets/${encodeURIComponent(ticketId)}`, options); }
|
|
36
|
+
matchView(matchId, options) { return this.client.get(`/api/v2/matches/${encodeURIComponent(matchId)}/view`, undefined, options); }
|
|
37
|
+
createMatchConnection(matchId, options) { return this.client.post(`/api/v2/matches/${encodeURIComponent(matchId)}/connections`, {}, options); }
|
|
32
38
|
}
|
|
33
39
|
//# sourceMappingURL=api.js.map
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAGnE,iIAAiI;AACjI,MAAM,OAAO,QAAS,SAAQ,UAAU;IACtC,iMAAiM;IACjM,MAAM,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAwB,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClH,kLAAkL;IAClL,MAAM,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,gBAAgB,EAAE,SA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AAC;IAChN,qBAAqB,CAAC,OAAe,EAAE,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA4E,mBAAmB,kBAAkB,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACpP"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { StateOperations } from "./operations.js";
|
|
1
2
|
export * from "./types.js";
|
|
2
3
|
export * from "./api.js";
|
|
3
4
|
export * from "./prediction.js";
|
|
4
5
|
export * from "./realtime.js";
|
|
6
|
+
export * from "./match.js";
|
|
7
|
+
export * from "./operations.js";
|
|
8
|
+
export * from "./operations.types.js";
|
|
5
9
|
//# 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":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
package/dist/match.d.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export type MatchMode = "ranked_duel" | "ranked_alliance" | "open_court";
|
|
2
|
+
export interface EnqueueMatchmakingInput {
|
|
3
|
+
mode: MatchMode;
|
|
4
|
+
}
|
|
5
|
+
export interface MatchmakingTicket {
|
|
6
|
+
id: string;
|
|
7
|
+
gameId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
mode: MatchMode;
|
|
10
|
+
status: "queued" | "matched" | "cancelled";
|
|
11
|
+
matchId: string | null;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MatchConnectionTicket {
|
|
15
|
+
matchId: string;
|
|
16
|
+
ticket: string;
|
|
17
|
+
websocketUrl: string;
|
|
18
|
+
expiresAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MatchPlayerView<Hero = unknown> {
|
|
21
|
+
userId: string;
|
|
22
|
+
resolve: number;
|
|
23
|
+
insight: number;
|
|
24
|
+
hand: number[] | null;
|
|
25
|
+
handCount: number;
|
|
26
|
+
council: Hero[];
|
|
27
|
+
submittedAnswer: boolean;
|
|
28
|
+
submittedOrder: boolean;
|
|
29
|
+
correctAnswers: number | null;
|
|
30
|
+
}
|
|
31
|
+
export interface MatchQuestion {
|
|
32
|
+
id: string;
|
|
33
|
+
prompt: string;
|
|
34
|
+
kind: string;
|
|
35
|
+
school: string;
|
|
36
|
+
}
|
|
37
|
+
export interface MatchView<Hero = unknown> {
|
|
38
|
+
gameId: string;
|
|
39
|
+
matchId: string;
|
|
40
|
+
mode: MatchMode;
|
|
41
|
+
status: "in_progress" | "finished";
|
|
42
|
+
round: number;
|
|
43
|
+
stateVersion: number;
|
|
44
|
+
serverSequence: number;
|
|
45
|
+
deadline: string;
|
|
46
|
+
school: string;
|
|
47
|
+
players: MatchPlayerView<Hero>[];
|
|
48
|
+
question: MatchQuestion | null;
|
|
49
|
+
winnerIds: string[];
|
|
50
|
+
you: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GameCommand<Payload = unknown> {
|
|
53
|
+
clientCommandId: string;
|
|
54
|
+
expectedStateVersion: number;
|
|
55
|
+
kind: "submit_answer" | "submit_order" | "pass" | "concede";
|
|
56
|
+
payload?: Payload;
|
|
57
|
+
}
|
|
58
|
+
export interface CommandResult {
|
|
59
|
+
clientCommandId: string;
|
|
60
|
+
accepted: boolean;
|
|
61
|
+
code: string;
|
|
62
|
+
stateVersion: number;
|
|
63
|
+
}
|
|
64
|
+
export type MatchRealtimeEvent<View = MatchView> = {
|
|
65
|
+
type: "snapshot";
|
|
66
|
+
view: View;
|
|
67
|
+
} | {
|
|
68
|
+
type: "command_result";
|
|
69
|
+
result?: CommandResult;
|
|
70
|
+
accepted?: false;
|
|
71
|
+
code?: string;
|
|
72
|
+
} | {
|
|
73
|
+
type: "error";
|
|
74
|
+
code: string;
|
|
75
|
+
message?: string;
|
|
76
|
+
};
|
|
77
|
+
export interface MatchRealtimeOptions<View = MatchView> {
|
|
78
|
+
WebSocket?: typeof WebSocket;
|
|
79
|
+
refreshTicket?: () => Promise<MatchConnectionTicket>;
|
|
80
|
+
reconnect?: boolean;
|
|
81
|
+
maxReconnectDelayMs?: number;
|
|
82
|
+
onEvent?: (event: MatchRealtimeEvent<View>) => void;
|
|
83
|
+
}
|
|
84
|
+
/** Reliable, identity-bound match channel. Tickets are delivered in the first
|
|
85
|
+
* frame rather than URL query parameters and may be refreshed for reconnect. */
|
|
86
|
+
export declare class MatchRealtimeClient<View = MatchView> {
|
|
87
|
+
private ticket;
|
|
88
|
+
private readonly options;
|
|
89
|
+
private socket?;
|
|
90
|
+
private closed;
|
|
91
|
+
private attempt;
|
|
92
|
+
private listeners;
|
|
93
|
+
constructor(ticket: MatchConnectionTicket, options?: MatchRealtimeOptions<View>);
|
|
94
|
+
onEvent(listener: (event: MatchRealtimeEvent<View>) => void): () => boolean;
|
|
95
|
+
connect(): Promise<void>;
|
|
96
|
+
send<Payload>(command: GameCommand<Payload>): void;
|
|
97
|
+
close(): void;
|
|
98
|
+
private receive;
|
|
99
|
+
private reconnect;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../src/match.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IAAG,IAAI,EAAE,SAAS,CAAA;CAAE;AAC5D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAC5D,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;CACvF;AACD,MAAM,WAAW,qBAAqB;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE;AACnH,MAAM,WAAW,eAAe,CAAC,IAAI,GAAG,OAAO;IAC7C,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAC3F,OAAO,EAAE,IAAI,EAAE,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CA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
|
|
2
|
+
* frame rather than URL query parameters and may be refreshed for reconnect. */
|
|
3
|
+
export class MatchRealtimeClient {
|
|
4
|
+
ticket;
|
|
5
|
+
options;
|
|
6
|
+
socket;
|
|
7
|
+
closed = false;
|
|
8
|
+
attempt = 0;
|
|
9
|
+
listeners = new Set();
|
|
10
|
+
constructor(ticket, options = {}) {
|
|
11
|
+
this.ticket = ticket;
|
|
12
|
+
this.options = options;
|
|
13
|
+
}
|
|
14
|
+
onEvent(listener) { this.listeners.add(listener); return () => this.listeners.delete(listener); }
|
|
15
|
+
connect() {
|
|
16
|
+
const Socket = this.options.WebSocket ?? globalThis.WebSocket;
|
|
17
|
+
if (!Socket)
|
|
18
|
+
return Promise.reject(new Error("WebSocket is unavailable"));
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
const socket = new Socket(this.ticket.websocketUrl);
|
|
21
|
+
this.socket = socket;
|
|
22
|
+
socket.onopen = () => { this.attempt = 0; socket.send(JSON.stringify({ type: "hello", ticket: this.ticket.ticket })); resolve(); };
|
|
23
|
+
socket.onmessage = message => this.receive(String(message.data));
|
|
24
|
+
socket.onerror = () => reject(new Error("Unable to connect to Faiber State"));
|
|
25
|
+
socket.onclose = () => { if (!this.closed && this.options.reconnect !== false)
|
|
26
|
+
void this.reconnect(); };
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
send(command) {
|
|
30
|
+
const Socket = this.options.WebSocket ?? globalThis.WebSocket;
|
|
31
|
+
if (!Socket || this.socket?.readyState !== Socket.OPEN)
|
|
32
|
+
throw new Error("Match connection is not open");
|
|
33
|
+
this.socket.send(JSON.stringify({ type: "command", command }));
|
|
34
|
+
}
|
|
35
|
+
close() { this.closed = true; this.socket?.close(); }
|
|
36
|
+
receive(raw) {
|
|
37
|
+
try {
|
|
38
|
+
const event = JSON.parse(raw);
|
|
39
|
+
this.options.onEvent?.(event);
|
|
40
|
+
for (const listener of this.listeners)
|
|
41
|
+
listener(event);
|
|
42
|
+
}
|
|
43
|
+
catch { /* Invalid server frames are ignored and cannot mutate client state. */ }
|
|
44
|
+
}
|
|
45
|
+
async reconnect() {
|
|
46
|
+
const base = Math.min(this.options.maxReconnectDelayMs ?? 8_000, 500 * 2 ** this.attempt++);
|
|
47
|
+
await new Promise(resolve => setTimeout(resolve, base / 2 + Math.random() * base / 2));
|
|
48
|
+
if (this.options.refreshTicket)
|
|
49
|
+
this.ticket = await this.options.refreshTicket();
|
|
50
|
+
if (!this.closed)
|
|
51
|
+
await this.connect().catch(() => this.reconnect());
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=match.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.js","sourceRoot":"","sources":["../src/match.ts"],"names":[],"mappings":"AAoCA;gFACgF;AAChF,MAAM,OAAO,mBAAmB;IAMV;IAAgD;IAL5D,MAAM,CAAa;IACnB,MAAM,GAAG,KAAK,CAAC;IACf,OAAO,GAAG,CAAC,CAAC;IACZ,SAAS,GAAG,IAAI,GAAG,EAA6C,CAAC;IAEzE,YAAoB,MAA6B,EAAmB,UAAsC,EAAE;QAAxF,WAAM,GAAN,MAAM,CAAuB;QAAmB,YAAO,GAAP,OAAO,CAAiC;IAAG,CAAC;IAEhH,OAAO,CAAC,QAAmD,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE5I,OAAO;QACL,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,UAAU,CAAC,SAAS,CAAC;QAC9D,IAAI,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC,CAAC;QAC1E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;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jE,CAAC;IAED,KAAK,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAE7C,OAAO,CAAC,GAAW;QACzB,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA6B,CAAC;YAC1D,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;YAC9B,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS;gBAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzD,CAAC;QAAC,MAAM,CAAC,CAAC,uEAAuE,CAAC,CAAC;IACrF,CAAC;IAEO,KAAK,CAAC,SAAS;QACrB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,IAAI,KAAK,EAAE,GAAG,GAAG,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QAC5F,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;QACvF,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa;YAAE,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;QACjF,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
|
|
2
|
+
import type * as T from "./operations.types.js";
|
|
3
|
+
export declare class StateOperations extends ServiceApi {
|
|
4
|
+
/**
|
|
5
|
+
* Performs the realtime operation for the routes capability.
|
|
6
|
+
* Calls `GET /api/v1/realtime` through the shared IDP-aware Faiber client.
|
|
7
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
8
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
9
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
10
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
11
|
+
*/
|
|
12
|
+
routesRealtimeGet(params?: T.RoutesRealtimeGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesRealtimeGetResponse, unknown, {}>>;
|
|
13
|
+
/**
|
|
14
|
+
* Performs the get room operation for the routes capability.
|
|
15
|
+
* Calls `GET /api/v1/rooms/{room_id}` through the shared IDP-aware Faiber client.
|
|
16
|
+
* @param roomId Backend path identifier `room_id`.
|
|
17
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
18
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
19
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
20
|
+
*/
|
|
21
|
+
routesGetRoomGet(roomId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesGetRoomGetResponse, unknown, {}>>;
|
|
22
|
+
/**
|
|
23
|
+
* Performs the invoke endpoint operation for the routes capability.
|
|
24
|
+
* Calls `POST /api/v1/rooms/{room_id}/endpoints/{slug}` through the shared IDP-aware Faiber client.
|
|
25
|
+
* @param roomId Backend path identifier `room_id`.
|
|
26
|
+
* @param slug Backend path identifier `slug`.
|
|
27
|
+
* @param data Typed JSON request body.
|
|
28
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
29
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
30
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
31
|
+
*/
|
|
32
|
+
routesInvokeEndpointPost(roomId: Identifier, slug: Identifier, data: T.RoutesInvokeEndpointPostInput, options?: RequestOptions<T.RoutesInvokeEndpointPostInput>): Promise<import("axios").AxiosResponse<T.RoutesInvokeEndpointPostResponse, T.RoutesInvokeEndpointPostInput, {}>>;
|
|
33
|
+
/**
|
|
34
|
+
* Performs the join room operation for the routes capability.
|
|
35
|
+
* Calls `POST /api/v1/rooms/{room_id}/join` through the shared IDP-aware Faiber client.
|
|
36
|
+
* @param roomId Backend path identifier `room_id`.
|
|
37
|
+
* @param data Typed JSON request body.
|
|
38
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
39
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
40
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
41
|
+
*/
|
|
42
|
+
routesJoinRoomPost(roomId: Identifier, data: T.RoutesJoinRoomPostInput, options?: RequestOptions<T.RoutesJoinRoomPostInput>): Promise<import("axios").AxiosResponse<T.RoutesJoinRoomPostResponse, T.RoutesJoinRoomPostInput, {}>>;
|
|
43
|
+
/**
|
|
44
|
+
* Performs the list worlds operation for the routes capability.
|
|
45
|
+
* Calls `GET /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
46
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
47
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
48
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
49
|
+
*/
|
|
50
|
+
routesListWorldsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesListWorldsGetResponse, unknown, {}>>;
|
|
51
|
+
/**
|
|
52
|
+
* Performs the create world operation for the routes capability.
|
|
53
|
+
* Calls `POST /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
54
|
+
* @param data Typed JSON request body.
|
|
55
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
56
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
57
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
58
|
+
*/
|
|
59
|
+
routesCreateWorldPost(data: T.RoutesCreateWorldPostInput, options?: RequestOptions<T.RoutesCreateWorldPostInput>): Promise<import("axios").AxiosResponse<T.RoutesCreateWorldPostResponse, T.RoutesCreateWorldPostInput, {}>>;
|
|
60
|
+
/**
|
|
61
|
+
* Performs the get world operation for the routes capability.
|
|
62
|
+
* Calls `GET /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
63
|
+
* @param worldId Backend path identifier `world_id`.
|
|
64
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
65
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
66
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
67
|
+
*/
|
|
68
|
+
routesGetWorldGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesGetWorldGetResponse, unknown, {}>>;
|
|
69
|
+
/**
|
|
70
|
+
* Performs the update world operation for the routes capability.
|
|
71
|
+
* Calls `PUT /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
72
|
+
* @param worldId Backend path identifier `world_id`.
|
|
73
|
+
* @param data Typed JSON request body.
|
|
74
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
75
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
76
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
77
|
+
*/
|
|
78
|
+
routesUpdateWorldPut(worldId: Identifier, data: T.RoutesUpdateWorldPutInput, options?: RequestOptions<T.RoutesUpdateWorldPutInput>): Promise<import("axios").AxiosResponse<T.RoutesUpdateWorldPutResponse, T.RoutesUpdateWorldPutInput, {}>>;
|
|
79
|
+
/**
|
|
80
|
+
* Performs the list endpoints operation for the routes capability.
|
|
81
|
+
* Calls `GET /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
82
|
+
* @param worldId Backend path identifier `world_id`.
|
|
83
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
84
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
85
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
86
|
+
*/
|
|
87
|
+
routesListEndpointsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesListEndpointsGetResponse, unknown, {}>>;
|
|
88
|
+
/**
|
|
89
|
+
* Performs the create endpoint operation for the routes capability.
|
|
90
|
+
* Calls `POST /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
91
|
+
* @param worldId Backend path identifier `world_id`.
|
|
92
|
+
* @param data Typed JSON request body.
|
|
93
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
94
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
95
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
96
|
+
*/
|
|
97
|
+
routesCreateEndpointPost(worldId: Identifier, data: T.RoutesCreateEndpointPostInput, options?: RequestOptions<T.RoutesCreateEndpointPostInput>): Promise<import("axios").AxiosResponse<T.RoutesCreateEndpointPostResponse, T.RoutesCreateEndpointPostInput, {}>>;
|
|
98
|
+
/**
|
|
99
|
+
* Performs the list rooms operation for the routes capability.
|
|
100
|
+
* Calls `GET /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
101
|
+
* @param worldId Backend path identifier `world_id`.
|
|
102
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
103
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
104
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
105
|
+
*/
|
|
106
|
+
routesListRoomsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesListRoomsGetResponse, unknown, {}>>;
|
|
107
|
+
/**
|
|
108
|
+
* Performs the create room operation for the routes capability.
|
|
109
|
+
* Calls `POST /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
110
|
+
* @param worldId Backend path identifier `world_id`.
|
|
111
|
+
* @param data Typed JSON request body.
|
|
112
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
113
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
114
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
115
|
+
*/
|
|
116
|
+
routesCreateRoomPost(worldId: Identifier, data: T.RoutesCreateRoomPostInput, options?: RequestOptions<T.RoutesCreateRoomPostInput>): Promise<import("axios").AxiosResponse<T.RoutesCreateRoomPostResponse, T.RoutesCreateRoomPostInput, {}>>;
|
|
117
|
+
/**
|
|
118
|
+
* Performs the list wasm operation for the routes capability.
|
|
119
|
+
* Calls `GET /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
120
|
+
* @param worldId Backend path identifier `world_id`.
|
|
121
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
122
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
123
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
124
|
+
*/
|
|
125
|
+
routesListWasmGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RoutesListWasmGetResponse, unknown, {}>>;
|
|
126
|
+
/**
|
|
127
|
+
* Performs the upload wasm operation for the routes capability.
|
|
128
|
+
* Calls `POST /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
129
|
+
* @param worldId Backend path identifier `world_id`.
|
|
130
|
+
* @param data Typed JSON request body.
|
|
131
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
132
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
133
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
134
|
+
*/
|
|
135
|
+
routesUploadWasmPost(worldId: Identifier, data: T.RoutesUploadWasmPostInput, options?: RequestOptions<T.RoutesUploadWasmPostInput>): Promise<import("axios").AxiosResponse<T.RoutesUploadWasmPostResponse, T.RoutesUploadWasmPostInput, {}>>;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,UAAU;IAC7C;;;;;;;OAOG;IACH,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc;IAG7E;;;;;;;OAOG;IACH,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAG7D;;;;;;;;;OASG;IACH,wBAAwB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,6BAA6B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,6BAA6B,CAAC;IAG/J;;;;;;;;OAQG;IACH,kBAAkB,CAAC,MAAM,EAAE,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,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,yBAAyB,CAAC;CAGnI"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
|
+
export class StateOperations extends ServiceApi {
|
|
3
|
+
/**
|
|
4
|
+
* Performs the realtime operation for the routes capability.
|
|
5
|
+
* Calls `GET /api/v1/realtime` through the shared IDP-aware Faiber client.
|
|
6
|
+
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
7
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
8
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
9
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
10
|
+
*/
|
|
11
|
+
routesRealtimeGet(params, options) {
|
|
12
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/realtime`, params });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Performs the get room operation for the routes capability.
|
|
16
|
+
* Calls `GET /api/v1/rooms/{room_id}` through the shared IDP-aware Faiber client.
|
|
17
|
+
* @param roomId Backend path identifier `room_id`.
|
|
18
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
19
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
20
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
21
|
+
*/
|
|
22
|
+
routesGetRoomGet(roomId, options) {
|
|
23
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/rooms/${encodeURIComponent(roomId)}` });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Performs the invoke endpoint operation for the routes capability.
|
|
27
|
+
* Calls `POST /api/v1/rooms/{room_id}/endpoints/{slug}` through the shared IDP-aware Faiber client.
|
|
28
|
+
* @param roomId Backend path identifier `room_id`.
|
|
29
|
+
* @param slug Backend path identifier `slug`.
|
|
30
|
+
* @param data Typed JSON request body.
|
|
31
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
32
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
33
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
34
|
+
*/
|
|
35
|
+
routesInvokeEndpointPost(roomId, slug, data, options) {
|
|
36
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/rooms/${encodeURIComponent(roomId)}/endpoints/${encodeURIComponent(slug)}`, data: data });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Performs the join room operation for the routes capability.
|
|
40
|
+
* Calls `POST /api/v1/rooms/{room_id}/join` through the shared IDP-aware Faiber client.
|
|
41
|
+
* @param roomId Backend path identifier `room_id`.
|
|
42
|
+
* @param data Typed JSON request body.
|
|
43
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
44
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
45
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
46
|
+
*/
|
|
47
|
+
routesJoinRoomPost(roomId, data, options) {
|
|
48
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/rooms/${encodeURIComponent(roomId)}/join`, data: data });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Performs the list worlds operation for the routes capability.
|
|
52
|
+
* Calls `GET /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
53
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
54
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
55
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
56
|
+
*/
|
|
57
|
+
routesListWorldsGet(options) {
|
|
58
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/worlds` });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Performs the create world operation for the routes capability.
|
|
62
|
+
* Calls `POST /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
63
|
+
* @param data Typed JSON request body.
|
|
64
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
65
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
66
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
67
|
+
*/
|
|
68
|
+
routesCreateWorldPost(data, options) {
|
|
69
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/worlds`, data: data });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Performs the get world operation for the routes capability.
|
|
73
|
+
* Calls `GET /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
74
|
+
* @param worldId Backend path identifier `world_id`.
|
|
75
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
76
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
77
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
78
|
+
*/
|
|
79
|
+
routesGetWorldGet(worldId, options) {
|
|
80
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/worlds/${encodeURIComponent(worldId)}` });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Performs the update world operation for the routes capability.
|
|
84
|
+
* Calls `PUT /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
85
|
+
* @param worldId Backend path identifier `world_id`.
|
|
86
|
+
* @param data Typed JSON request body.
|
|
87
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
88
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
89
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
90
|
+
*/
|
|
91
|
+
routesUpdateWorldPut(worldId, data, options) {
|
|
92
|
+
return this.client.request({ ...options, method: "PUT", url: `/api/v1/worlds/${encodeURIComponent(worldId)}`, data: data });
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Performs the list endpoints operation for the routes capability.
|
|
96
|
+
* Calls `GET /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
97
|
+
* @param worldId Backend path identifier `world_id`.
|
|
98
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
99
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
100
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
101
|
+
*/
|
|
102
|
+
routesListEndpointsGet(worldId, options) {
|
|
103
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/endpoints` });
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Performs the create endpoint operation for the routes capability.
|
|
107
|
+
* Calls `POST /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
108
|
+
* @param worldId Backend path identifier `world_id`.
|
|
109
|
+
* @param data Typed JSON request body.
|
|
110
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
111
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
112
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
113
|
+
*/
|
|
114
|
+
routesCreateEndpointPost(worldId, data, options) {
|
|
115
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/endpoints`, data: data });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Performs the list rooms operation for the routes capability.
|
|
119
|
+
* Calls `GET /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
120
|
+
* @param worldId Backend path identifier `world_id`.
|
|
121
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
122
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
123
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
124
|
+
*/
|
|
125
|
+
routesListRoomsGet(worldId, options) {
|
|
126
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/rooms` });
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Performs the create room operation for the routes capability.
|
|
130
|
+
* Calls `POST /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
131
|
+
* @param worldId Backend path identifier `world_id`.
|
|
132
|
+
* @param data Typed JSON request body.
|
|
133
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
134
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
135
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
136
|
+
*/
|
|
137
|
+
routesCreateRoomPost(worldId, data, options) {
|
|
138
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/rooms`, data: data });
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Performs the list wasm operation for the routes capability.
|
|
142
|
+
* Calls `GET /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
143
|
+
* @param worldId Backend path identifier `world_id`.
|
|
144
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
145
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
146
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
147
|
+
*/
|
|
148
|
+
routesListWasmGet(worldId, options) {
|
|
149
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/wasm` });
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Performs the upload wasm operation for the routes capability.
|
|
153
|
+
* Calls `POST /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
154
|
+
* @param worldId Backend path identifier `world_id`.
|
|
155
|
+
* @param data Typed JSON request body.
|
|
156
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
157
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
158
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
159
|
+
*/
|
|
160
|
+
routesUploadWasmPost(worldId, data, options) {
|
|
161
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/wasm`, data: data });
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AAGhG,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAC7C;;;;;;;OAOG;IACH,iBAAiB,CAAC,MAAiC,EAAE,OAAwB;QAC3E,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1H,CAAC;IACD;;;;;;;OAOG;IACH,gBAAgB,CAAC,MAAkB,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5I,CAAC;IACD;;;;;;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GAAG,EAAE,kBAAkB,kBAAkB,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAClM,CAAC;IACD;;;;;;;OAOG;IACH,iBAAiB,CAAC,OAAmB,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,kBAAkB,kBAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACpJ,CAAC;IACD;;;;;;;;OAQG;IACH,oBAAoB,CAAC,OAAmB,EAAE,IAAiC,EAAE,OAAqD;QAChI,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8D,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,kBAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACjM,CAAC;CACF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
|
+
/** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
|
|
3
|
+
/** Backend query type: RealtimeQuery. */
|
|
4
|
+
export interface RoutesRealtimeGetQuery extends QueryParams {
|
|
5
|
+
"room_id": string;
|
|
6
|
+
"player_id": string;
|
|
7
|
+
"ticket": string;
|
|
8
|
+
}
|
|
9
|
+
/** Backend response type: api. */
|
|
10
|
+
export interface RoutesRealtimeGetResponse extends ApiEnvelope<JsonValue> {
|
|
11
|
+
}
|
|
12
|
+
/** Backend response type: api. */
|
|
13
|
+
export interface RoutesGetRoomGetResponse extends ApiEnvelope<JsonValue> {
|
|
14
|
+
}
|
|
15
|
+
/** Backend request type: InvokeWasm. */
|
|
16
|
+
export interface RoutesInvokeEndpointPostInput extends JsonObject {
|
|
17
|
+
"player_id": string;
|
|
18
|
+
"entity_id": string;
|
|
19
|
+
"inputs"?: number[];
|
|
20
|
+
}
|
|
21
|
+
/** Backend response type: api. */
|
|
22
|
+
export interface RoutesInvokeEndpointPostResponse extends ApiEnvelope<JsonValue> {
|
|
23
|
+
}
|
|
24
|
+
/** Backend request type: JoinRoom. */
|
|
25
|
+
export interface RoutesJoinRoomPostInput extends JsonObject {
|
|
26
|
+
"user_id": string;
|
|
27
|
+
}
|
|
28
|
+
/** Backend response type: api. */
|
|
29
|
+
export interface RoutesJoinRoomPostResponse extends ApiEnvelope<JsonValue> {
|
|
30
|
+
}
|
|
31
|
+
/** Backend response type: api. */
|
|
32
|
+
export interface RoutesListWorldsGetResponse extends ApiEnvelope<JsonValue> {
|
|
33
|
+
}
|
|
34
|
+
/** Backend request type: CreateWorld. */
|
|
35
|
+
export interface RoutesCreateWorldPostInput extends JsonObject {
|
|
36
|
+
"name": string;
|
|
37
|
+
"slug": string;
|
|
38
|
+
"components"?: BackendJson<"ComponentSchema">[];
|
|
39
|
+
"replication"?: BackendJson<"ReplicationConfig">;
|
|
40
|
+
"physics"?: BackendJson<"PhysicsConfig">;
|
|
41
|
+
}
|
|
42
|
+
/** Backend response type: api. */
|
|
43
|
+
export interface RoutesCreateWorldPostResponse extends ApiEnvelope<JsonValue> {
|
|
44
|
+
}
|
|
45
|
+
/** Backend response type: api. */
|
|
46
|
+
export interface RoutesGetWorldGetResponse extends ApiEnvelope<JsonValue> {
|
|
47
|
+
}
|
|
48
|
+
/** Backend request type: UpdateWorld. */
|
|
49
|
+
export interface RoutesUpdateWorldPutInput extends JsonObject {
|
|
50
|
+
"name"?: string | null;
|
|
51
|
+
"components"?: BackendJson<"ComponentSchema">[] | null;
|
|
52
|
+
"replication"?: BackendJson<"ReplicationConfig"> | null;
|
|
53
|
+
"physics"?: BackendJson<"PhysicsConfig"> | null;
|
|
54
|
+
}
|
|
55
|
+
/** Backend response type: api. */
|
|
56
|
+
export interface RoutesUpdateWorldPutResponse extends ApiEnvelope<JsonValue> {
|
|
57
|
+
}
|
|
58
|
+
/** Backend response type: api. */
|
|
59
|
+
export interface RoutesListEndpointsGetResponse extends ApiEnvelope<JsonValue> {
|
|
60
|
+
}
|
|
61
|
+
/** Backend request type: CreateWasmEndpoint. */
|
|
62
|
+
export interface RoutesCreateEndpointPostInput extends JsonObject {
|
|
63
|
+
"module_id": string;
|
|
64
|
+
"slug": string;
|
|
65
|
+
"export": string;
|
|
66
|
+
"component": string;
|
|
67
|
+
"reliable"?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/** Backend response type: api. */
|
|
70
|
+
export interface RoutesCreateEndpointPostResponse extends ApiEnvelope<JsonValue> {
|
|
71
|
+
}
|
|
72
|
+
/** Backend response type: api. */
|
|
73
|
+
export interface RoutesListRoomsGetResponse extends ApiEnvelope<JsonValue> {
|
|
74
|
+
}
|
|
75
|
+
/** Backend request type: CreateRoom. */
|
|
76
|
+
export interface RoutesCreateRoomPostInput extends JsonObject {
|
|
77
|
+
"name": string;
|
|
78
|
+
"capacity"?: number;
|
|
79
|
+
}
|
|
80
|
+
/** Backend response type: api. */
|
|
81
|
+
export interface RoutesCreateRoomPostResponse extends ApiEnvelope<JsonValue> {
|
|
82
|
+
}
|
|
83
|
+
/** Backend response type: api. */
|
|
84
|
+
export interface RoutesListWasmGetResponse extends ApiEnvelope<JsonValue> {
|
|
85
|
+
}
|
|
86
|
+
/** Backend request type: UploadWasm. */
|
|
87
|
+
export interface RoutesUploadWasmPostInput extends JsonObject {
|
|
88
|
+
"name": string;
|
|
89
|
+
"wasm_base64": string;
|
|
90
|
+
"exports"?: string[];
|
|
91
|
+
}
|
|
92
|
+
/** Backend response type: api. */
|
|
93
|
+
export interface RoutesUploadWasmPostResponse extends ApiEnvelope<JsonValue> {
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=operations.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.types.d.ts","sourceRoot":"","sources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,WAAW,yBAA0B,SAAQ,WAAW,CAAC,SAAS,CAAC;CACxE;AAED,wCAAwC;AACxC,MAAM,WAAW,yBAA0B,SAAQ,UAAU;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AACD,kCAAkC;AAClC,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.types.js","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faiber/faiber-state-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@faiber/sdk-core": "0.
|
|
19
|
+
"@faiber/sdk-core": "0.7.0"
|
|
20
20
|
}
|
|
21
21
|
}
|