@faiber/faiber-asset 0.24.1 → 1.1.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 +17 -6
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts.types.d.ts +247 -22
- package/dist/contracts.types.d.ts.map +1 -1
- package/dist/economy.types.d.ts +56 -3
- package/dist/economy.types.d.ts.map +1 -1
- package/dist/index.d.ts +44 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +337 -329
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +230 -220
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +169 -553
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +61 -270
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +4 -3
- package/provenance.json +28 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ const wallet = await api.operations.walletBillingWalletShowGet();
|
|
|
28
28
|
|
|
29
29
|
## Complete capability
|
|
30
30
|
|
|
31
|
-
This package exposes
|
|
31
|
+
This package exposes 110 registered operations from the assets and billing service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
|
|
32
32
|
|
|
33
33
|
| Area | Operations | HTTP methods |
|
|
34
34
|
|---|---:|---|
|
|
@@ -38,17 +38,20 @@ This package exposes 86 registered operations from the assets and billing servic
|
|
|
38
38
|
| `catalog` | 5 | `DELETE`, `GET`, `PATCH`, `POST` |
|
|
39
39
|
| `charge` | 2 | `GET`, `PATCH` |
|
|
40
40
|
| `dashboard` | 1 | `GET` |
|
|
41
|
+
| `economy` | 13 | `GET`, `POST`, `PUT` |
|
|
42
|
+
| `fitness` | 1 | `PUT` |
|
|
41
43
|
| `game-escrow` | 4 | `GET`, `POST` |
|
|
42
44
|
| `integration` | 3 | `GET` |
|
|
43
45
|
| `leaderboard` | 1 | `GET` |
|
|
44
46
|
| `llm-usage` | 4 | `DELETE`, `GET`, `PUT` |
|
|
45
47
|
| `logs` | 2 | `GET` |
|
|
46
48
|
| `rank` | 5 | `DELETE`, `GET`, `PATCH`, `POST` |
|
|
47
|
-
| `router` |
|
|
48
|
-
| `sandbox-billing` |
|
|
49
|
+
| `router` | 3 | `GET` |
|
|
50
|
+
| `sandbox-billing` | 11 | `DELETE`, `GET`, `POST`, `PUT` |
|
|
49
51
|
| `service-lifecycle` | 4 | `DELETE`, `POST` |
|
|
52
|
+
| `trial-gifts` | 6 | `GET`, `POST`, `PUT` |
|
|
50
53
|
| `wallet` | 9 | `GET` |
|
|
51
|
-
| `wallet-billing` |
|
|
54
|
+
| `wallet-billing` | 22 | `DELETE`, `GET`, `POST`, `PUT` |
|
|
52
55
|
|
|
53
56
|
Administrative and self-service billing routes are distinct operations. Purchase, top-up, pause, resume, removal, and permanent-data deletion methods preserve the backend verbs and permission annotations.
|
|
54
57
|
|
|
@@ -87,11 +90,13 @@ authorization and cancellation options.
|
|
|
87
90
|
|
|
88
91
|
## Authentication and authorization
|
|
89
92
|
|
|
90
|
-
Use a `TokenProvider`
|
|
93
|
+
Configure the Asset URL to use your authenticated Faiber gateway. Use a `TokenProvider` for an in-memory Bearer token, or `withCredentials` for secure HttpOnly cookie sessions. The pinned Asset service reads trusted gateway identity headers; its route permission annotations describe gateway ACL metadata and do not themselves validate user Bearer tokens or cookies. An enforcing gateway must authenticate the caller and apply those permissions. Every SDK operation uses the shared `FaiberClient` transport.
|
|
94
|
+
|
|
95
|
+
Game escrow operations additionally require a server-only `x-game-service-token` header; fitness product publication uses its own server-only service Bearer token. These credentials must remain on a trusted server. Pass them through request options configured for the relevant operation.
|
|
91
96
|
|
|
92
97
|
## Inputs, queries, responses, and transport
|
|
93
98
|
|
|
94
|
-
All methods return the complete Axios response, including status, headers, and request IDs. Request bodies and query objects are named exported interfaces. Nested pagination uses keys such as `page[number]` and `page[size]` where required by the service. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
|
|
99
|
+
All methods return the complete Axios response, including status, headers, and request IDs. Decimal outputs such as wallet balances, catalog quantities and daily usage costs are strings; decimal inputs accept strings or numbers. Asset/rank/action deletes return `data: null`. Self-service subscriptions return `data.subscriptions` without pagination. Request bodies and query objects are named exported interfaces. Nested pagination uses keys such as `page[number]` and `page[size]` where required by the service. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
|
|
95
100
|
|
|
96
101
|
Generic REST resources are capability-guarded. Calling a legacy method that the service does not register throws `UnsupportedOperationError` before sending a request instead of producing a backend `405`.
|
|
97
102
|
|
|
@@ -112,3 +117,9 @@ Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services
|
|
|
112
117
|
`operations.trialGiftsListGet(product, query)` pages through product-owned gifts; `trialGiftsCreatePost`, `trialGiftsUpdatePut`, and `trialGiftsCopyTokenGet` administer them. Product IDs are `2done` and `fitapp`. Both the declared admin Charge permission and the Asset Charge permission are required. Reuse `request_id` when creating a gift; token copying requires an available vault and an unused gift.
|
|
113
118
|
|
|
114
119
|
`operations.sandboxBillingQuoteResourcesPost(input)` quotes resources without allocating or debiting. Monetary quote values are decimal strings. `walletBillingWalletSubscriptionsPost` atomically purchases subscriptions from the current wallet with a stable `request_id` and a maximum accepted amount; changed quotes return 409 and insufficient balance returns 402. `walletBillingWalletPurchaseShowGet` reads only the authenticated owner's receipt. Fitness product publication is server-only and rejects changes to an already published tier.
|
|
120
|
+
|
|
121
|
+
### Catalog and rule models
|
|
122
|
+
|
|
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
|
+
|
|
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.
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es5.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.dom.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../../../faiber-ts-sdk/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../../../faiber-ts-sdk/node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/realtime.d.ts","../../core/dist/index.d.ts","../src/economy.types.ts","../src/types.ts","../src/operations.types.ts","../src/contracts.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[68,71],[68],[68,69,70,71,72,73],[68,70,72],[68,69],[61],[60,61],[60,61,62,63,64,65,66,67],[60,61,64],[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":"6cc1f17dc5454eb1112cfb4a2e2ddc93de8c3f9016c8db7bdf0328caac374ffa","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"74d1d74d5dadbbb70e8e294d3419c58885629a9fc95141cbf158a3febb523300","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"ac62f6b0f2e963ea9a251ee8384e64cebe0fe4acd32ca177d838d7c5a7ad2b43","impliedFormat":99},{"version":"fdd1b5a8a2b98f82c94e4dc4e3b207ca81766b656d23acd3c7458fffd9af21dd","impliedFormat":99},{"version":"2dfc18923be2d3006e5aad3dfeffaed93f84a00dd1fc7ce69ecccdc7f165e365","signature":"de0c3326814d3feb9f85b8e5b68a18dc30e372e04066626fa2382c83e5d29712","impliedFormat":99},{"version":"0aed9506099c27b37daece9817b4d4f820f3eecf3cd35ddf83bc1899ca0380fc","signature":"649a5b6ae57fefd1e92b0a97fcd45336f76c9cc961100049e54550aa13e467b5","impliedFormat":99},{"version":"69810f54c14c2f5162b5a23bbcf1de229afe65cd385fadce7abcf88148eeee25","signature":"b328df655478fb613feeb87cb822f76c78098adfb9f1d212f0b588f490091e29","impliedFormat":99},{"version":"00f7252be3634c933148271d72dc55e7ab3d5e0ebf80a5ea37d55292891bdee4","signature":"959a130ea1be9352c58a77e0e8d029454dcb7ae793275e9e48c9600b5f76b8af","impliedFormat":99},{"version":"c677be2cd6273035d949a6d924335c7950b3a9902c18fb4a1ad6c0937f909c6a","signature":"4e167aa3530d15f7f493b90f5cb210cc996b5789bb96a87de65b24ae35f293eb","impliedFormat":99},{"version":"eb5783fa4454fb390685f5a81baebb4c184e7323e779ae333a1028fe4e338166","signature":"3306b3f4075b108970f5b780b15ec1ab697660668c45c61cecc82581dca2d3b7","impliedFormat":99}],"root":[[69,74]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[72,1],[69,2],[74,3],[73,1],[71,4],[70,5],[63,6],[64,7],[62,6],[68,8],[66,9],[65,9],[61,10]],"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/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":"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":"64761d51e0620d071ec295f2bff9029c3433a594833f33d0eda98021ce3706f6","signature":"132c7c6f594d92a83927a12a7879a4ab59df744e672eb73836e655a739609e92","impliedFormat":99},{"version":"53d89e1644808d1b66f19dc5088213a2c3208ef6b402c9deffc5dd6e647fd0f5","impliedFormat":99},{"version":"fa360c4a5af4bf5b9ab7fe4d126d850afcb0d6f93e081a30a202069063979363","signature":"1df555a2a16ac881f4c45988a0c683db92e91d65a2c3c4929dd9e93f91ceced5","impliedFormat":99},{"version":"1d05d48f29663758dae88f0615192f91a56b0332806fcba2a040d88522a6bbaf","signature":"88ebf18ff3655a911a2c31ee6302d7208b274684c55d8f58480252e645ae7985","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"}
|
|
@@ -5,28 +5,13 @@ export interface ProductGiftLimits extends JsonObject {
|
|
|
5
5
|
responses?: number;
|
|
6
6
|
plans?: number;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
expires_at: string;
|
|
13
|
-
limits: ProductGiftLimits;
|
|
14
|
-
max_uses: number;
|
|
15
|
-
used_count: number;
|
|
16
|
-
remaining_uses: number;
|
|
17
|
-
created_by: string;
|
|
18
|
-
created_at: string;
|
|
19
|
-
updated_at?: string;
|
|
20
|
-
duration_days?: number;
|
|
21
|
-
can_copy?: boolean;
|
|
22
|
-
token?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ProductTrialGiftPage {
|
|
25
|
-
items: ProductTrialGift[];
|
|
26
|
-
total: number;
|
|
27
|
-
page: number;
|
|
28
|
-
per_page: number;
|
|
8
|
+
/** Product-owned JSON is forwarded unchanged. Asset guarantees only can_copy on detail/create/update;
|
|
9
|
+
* other keys belong to the configured product adapter and are deliberately not asserted here. */
|
|
10
|
+
export interface ProductTrialGift extends JsonObject {
|
|
11
|
+
can_copy: boolean;
|
|
29
12
|
}
|
|
13
|
+
/** Product-owned list JSON is forwarded unchanged; Asset annotates any items with can_copy. */
|
|
14
|
+
export type ProductTrialGiftPage = JsonObject;
|
|
30
15
|
export interface ProductGiftAdapter {
|
|
31
16
|
id: string;
|
|
32
17
|
available: true;
|
|
@@ -62,7 +47,7 @@ export interface ResourceQuote {
|
|
|
62
47
|
currency: string;
|
|
63
48
|
period: 'hourly';
|
|
64
49
|
monthly_estimate: string;
|
|
65
|
-
allocation:
|
|
50
|
+
allocation: ResourceQuoteAllocation;
|
|
66
51
|
}
|
|
67
52
|
export type ResourceQuoteResponse = ApiEnvelope<ResourceQuote>;
|
|
68
53
|
export interface ProductTrialGiftWriteInput {
|
|
@@ -110,4 +95,244 @@ export interface FitnessAssetProduct {
|
|
|
110
95
|
status: number;
|
|
111
96
|
}
|
|
112
97
|
export type FitnessAssetProductResponse = ApiEnvelope<FitnessAssetProduct>;
|
|
98
|
+
/** Successful quote serializes all defaulted allocation fields. */
|
|
99
|
+
export interface ResourceQuoteAllocation {
|
|
100
|
+
max_hourly_amount: string | null;
|
|
101
|
+
accepted_currency: string | null;
|
|
102
|
+
bundle_id: string | null;
|
|
103
|
+
cpu_millicores: number;
|
|
104
|
+
ram_mb: number;
|
|
105
|
+
database_storage_mb: number;
|
|
106
|
+
minio_storage_mb: number;
|
|
107
|
+
app_storage_mb: number;
|
|
108
|
+
volume_storage_mb: Record<string, number>;
|
|
109
|
+
}
|
|
110
|
+
/** Create requires a nonnil idempotency UUID; update does not use this field. */
|
|
111
|
+
export interface ProductTrialGiftCreateInput extends ProductTrialGiftWriteInput {
|
|
112
|
+
request_id: string;
|
|
113
|
+
}
|
|
114
|
+
/** Rust unit serializes as JSON null. */
|
|
115
|
+
export type AssetEmptyDataResponse = ApiEnvelope<null>;
|
|
116
|
+
/** All escrow responses omit status/message and use camelCase inside data. */
|
|
117
|
+
export interface AssetEscrowReceipt {
|
|
118
|
+
matchId: string;
|
|
119
|
+
status: string;
|
|
120
|
+
totalCoins: string;
|
|
121
|
+
payoutCoins: string;
|
|
122
|
+
burnedCoins: string;
|
|
123
|
+
}
|
|
124
|
+
export interface AssetEscrowResponse {
|
|
125
|
+
data: AssetEscrowReceipt;
|
|
126
|
+
}
|
|
127
|
+
/** Flow metadata is concrete in the Cargo.lock-pinned infera-flow-sdk. */
|
|
128
|
+
export interface AssetFlowIntegrationField {
|
|
129
|
+
name: string;
|
|
130
|
+
field_type: string;
|
|
131
|
+
required: boolean;
|
|
132
|
+
description: string;
|
|
133
|
+
}
|
|
134
|
+
export interface AssetFlowIntegrationEvent {
|
|
135
|
+
event_name: string;
|
|
136
|
+
payload_fields: AssetFlowIntegrationField[];
|
|
137
|
+
}
|
|
138
|
+
export interface AssetFlowIntegration {
|
|
139
|
+
queue: string;
|
|
140
|
+
events: AssetFlowIntegrationEvent[];
|
|
141
|
+
}
|
|
142
|
+
export type AssetFlowIntegrationResponse = ApiEnvelope<AssetFlowIntegration>;
|
|
143
|
+
/** Comparison operators accepted by reward and Charge rules. */
|
|
144
|
+
export type AssetCompareOperator = 'eq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
145
|
+
export type AssetDecimalInput = string | number;
|
|
146
|
+
export interface AssetFrequencyPolicy {
|
|
147
|
+
period: string;
|
|
148
|
+
days?: number | null;
|
|
149
|
+
timezone?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface AssetRewardCapPolicy {
|
|
152
|
+
asset_name: string;
|
|
153
|
+
limit: AssetDecimalInput;
|
|
154
|
+
group?: string;
|
|
155
|
+
period?: string;
|
|
156
|
+
days?: number | null;
|
|
157
|
+
timezone?: string;
|
|
158
|
+
}
|
|
159
|
+
/** Named verification policies remain extensible; metadata verification retains arbitrary expected JSON. */
|
|
160
|
+
export type AssetVerificationPolicy = string | {
|
|
161
|
+
metadata_key: string;
|
|
162
|
+
expected_value: import('@faiber/sdk-core').JsonValue;
|
|
163
|
+
};
|
|
164
|
+
/** Stored criteria retain caller JSON and do not materialize deserialization defaults. */
|
|
165
|
+
export interface AssetActionCriteria {
|
|
166
|
+
idempotency_required?: boolean;
|
|
167
|
+
subject_type?: string | null;
|
|
168
|
+
verification?: AssetVerificationPolicy | null;
|
|
169
|
+
frequency?: AssetFrequencyPolicy | null;
|
|
170
|
+
daily_cap?: AssetRewardCapPolicy | null;
|
|
171
|
+
reward_caps?: AssetRewardCapPolicy[];
|
|
172
|
+
minimum_balance_to_spend?: AssetDecimalInput | null;
|
|
173
|
+
economy?: import('./economy.types.js').EconomyActivityPolicy;
|
|
174
|
+
/** Additional domain-specific criteria are stored unchanged. */
|
|
175
|
+
[key: string]: import('@faiber/sdk-core').JsonValue | AssetFrequencyPolicy | AssetRewardCapPolicy | AssetRewardCapPolicy[] | import('./economy.types.js').EconomyActivityPolicy | undefined;
|
|
176
|
+
}
|
|
177
|
+
export type AssetRewardCondition = {
|
|
178
|
+
type: 'always' | 'first_action';
|
|
179
|
+
} | {
|
|
180
|
+
type: 'action_count' | 'consecutive_days';
|
|
181
|
+
operator: AssetCompareOperator;
|
|
182
|
+
value: number;
|
|
183
|
+
} | {
|
|
184
|
+
type: 'event_value';
|
|
185
|
+
operator: AssetCompareOperator;
|
|
186
|
+
value: AssetDecimalInput;
|
|
187
|
+
};
|
|
188
|
+
export interface AssetRewardMultiplier {
|
|
189
|
+
type: 'event_value';
|
|
190
|
+
unit: AssetDecimalInput;
|
|
191
|
+
rounding?: 'floor' | 'ceil' | 'round';
|
|
192
|
+
}
|
|
193
|
+
export interface AssetRuleReward {
|
|
194
|
+
asset_name: string;
|
|
195
|
+
quantity: AssetDecimalInput;
|
|
196
|
+
multiplier?: AssetRewardMultiplier | null;
|
|
197
|
+
}
|
|
198
|
+
export interface AssetRewardRule {
|
|
199
|
+
label?: string | null;
|
|
200
|
+
condition: AssetRewardCondition;
|
|
201
|
+
rewards?: AssetRuleReward[];
|
|
202
|
+
}
|
|
203
|
+
/** The handler stores the submitted rule JSON; optional fields may stay absent in responses. */
|
|
204
|
+
export interface AssetAchievementRules {
|
|
205
|
+
rules?: AssetRewardRule[];
|
|
206
|
+
match?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface AssetActionRecord {
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
title: string | null;
|
|
212
|
+
description: string | null;
|
|
213
|
+
season_id: string | null;
|
|
214
|
+
public: boolean;
|
|
215
|
+
criteria: AssetActionCriteria;
|
|
216
|
+
achievement_assets: AssetAchievementRules;
|
|
217
|
+
status: number;
|
|
218
|
+
}
|
|
219
|
+
export interface AssetActionCreateInput {
|
|
220
|
+
name: string;
|
|
221
|
+
title?: string | null;
|
|
222
|
+
description?: string | null;
|
|
223
|
+
season_id?: string | null;
|
|
224
|
+
public?: boolean | null;
|
|
225
|
+
criteria?: AssetActionCriteria | null;
|
|
226
|
+
achievement_assets?: AssetAchievementRules | null;
|
|
227
|
+
status?: number | null;
|
|
228
|
+
}
|
|
229
|
+
export type AssetActionUpdateInput = Partial<AssetActionCreateInput>;
|
|
230
|
+
export type AssetActionRecordResponse = ApiEnvelope<AssetActionRecord>;
|
|
231
|
+
export interface AssetPaginationMeta {
|
|
232
|
+
page: number;
|
|
233
|
+
page_size: number;
|
|
234
|
+
total_items: number;
|
|
235
|
+
total_pages: number;
|
|
236
|
+
}
|
|
237
|
+
export interface AssetActionPage {
|
|
238
|
+
data: AssetActionRecord[];
|
|
239
|
+
meta: AssetPaginationMeta;
|
|
240
|
+
}
|
|
241
|
+
export type AssetActionPageResponse = ApiEnvelope<AssetActionPage>;
|
|
242
|
+
/** Serde internally tagged union: the wire condition is an object with a type discriminator. */
|
|
243
|
+
export type AssetChargeCondition<D = string> = {
|
|
244
|
+
type: 'always';
|
|
245
|
+
} | {
|
|
246
|
+
type: 'xp_balance' | 'coin_balance';
|
|
247
|
+
operator: AssetCompareOperator;
|
|
248
|
+
value: D;
|
|
249
|
+
} | {
|
|
250
|
+
type: 'xp_rank';
|
|
251
|
+
rank_name: string;
|
|
252
|
+
} | {
|
|
253
|
+
type: 'action_count';
|
|
254
|
+
action_name: string;
|
|
255
|
+
operator: AssetCompareOperator;
|
|
256
|
+
value: number;
|
|
257
|
+
};
|
|
258
|
+
export interface AssetChargeValues<D = string> {
|
|
259
|
+
max_charge: D;
|
|
260
|
+
recharge_period: D;
|
|
261
|
+
recharge_amount: D;
|
|
262
|
+
}
|
|
263
|
+
export interface AssetChargeRule<D = string> {
|
|
264
|
+
label: string | null;
|
|
265
|
+
condition: AssetChargeCondition<D>;
|
|
266
|
+
values: AssetChargeValues<D>;
|
|
267
|
+
}
|
|
268
|
+
export interface AssetChargeMapping {
|
|
269
|
+
rules: AssetChargeRule[];
|
|
270
|
+
match: string;
|
|
271
|
+
}
|
|
272
|
+
export interface AssetChargeRuleInput {
|
|
273
|
+
label?: string | null;
|
|
274
|
+
condition: AssetChargeCondition<AssetDecimalInput>;
|
|
275
|
+
values: AssetChargeValues<AssetDecimalInput>;
|
|
276
|
+
}
|
|
277
|
+
export interface AssetChargeMappingInput {
|
|
278
|
+
rules?: AssetChargeRuleInput[];
|
|
279
|
+
match?: string;
|
|
280
|
+
}
|
|
281
|
+
export interface AssetChargeSettings {
|
|
282
|
+
id: string;
|
|
283
|
+
mapping_rules: AssetChargeMapping;
|
|
284
|
+
status: number;
|
|
285
|
+
}
|
|
286
|
+
export interface AssetChargeSettingsInput {
|
|
287
|
+
mapping_rules: AssetChargeMappingInput;
|
|
288
|
+
status?: number | null;
|
|
289
|
+
}
|
|
290
|
+
export type AssetChargeSettingsResponse = ApiEnvelope<AssetChargeSettings>;
|
|
291
|
+
/** Allocation state. Volume sizes are stored from validated BTreeMap<String, i64> input. */
|
|
292
|
+
export interface AssetSandboxPriceBreakdown extends JsonObject {
|
|
293
|
+
"cpu": string;
|
|
294
|
+
"ram": string;
|
|
295
|
+
"database_storage": string;
|
|
296
|
+
"minio_storage": string;
|
|
297
|
+
"app_storage": string;
|
|
298
|
+
"disk": string;
|
|
299
|
+
"services": string;
|
|
300
|
+
"resource_total": string;
|
|
301
|
+
"total": string;
|
|
302
|
+
"currency": string;
|
|
303
|
+
}
|
|
304
|
+
export interface AssetSandboxUnitPrices extends JsonObject {
|
|
305
|
+
"cpu_millicore_hour": string;
|
|
306
|
+
"ram_mb_hour": string;
|
|
307
|
+
"disk_mb_hour": string;
|
|
308
|
+
"currency": string;
|
|
309
|
+
}
|
|
310
|
+
export interface AssetSandboxAllocation extends JsonObject {
|
|
311
|
+
"id": string;
|
|
312
|
+
"profile_id": string;
|
|
313
|
+
"project": string;
|
|
314
|
+
"cpu_millicores": number;
|
|
315
|
+
"ram_mb": number;
|
|
316
|
+
"database_storage_mb": number;
|
|
317
|
+
"minio_storage_mb": number;
|
|
318
|
+
"app_storage_mb": number;
|
|
319
|
+
"volume_storage_mb": Record<string, number>;
|
|
320
|
+
"bundle_id": string | null;
|
|
321
|
+
"monthly_price_override": string | null;
|
|
322
|
+
"status": string;
|
|
323
|
+
"paused_at": string | null;
|
|
324
|
+
"purge_at": string | null;
|
|
325
|
+
"last_charged_at": string | null;
|
|
326
|
+
"applied_at": string | null;
|
|
327
|
+
"created_at": string;
|
|
328
|
+
"updated_at": string;
|
|
329
|
+
"price": AssetSandboxPriceBreakdown;
|
|
330
|
+
"unit_prices": AssetSandboxUnitPrices;
|
|
331
|
+
"currency": string;
|
|
332
|
+
"hourly_price": string;
|
|
333
|
+
"daily_estimate": string;
|
|
334
|
+
"monthly_estimate": string;
|
|
335
|
+
"next_charge_at": string;
|
|
336
|
+
}
|
|
337
|
+
export type AssetSandboxAllocationResponse = ApiEnvelope<AssetSandboxAllocation>;
|
|
113
338
|
//# sourceMappingURL=contracts.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.types.d.ts","sourceRoot":"","sources":["../src/contracts.types.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,oFAAoF;AACpF,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IAAG,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AAC5F
|
|
1
|
+
{"version":3,"file":"contracts.types.d.ts","sourceRoot":"","sources":["../src/contracts.types.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAChE,oFAAoF;AACpF,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IAAG,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AAC5F;iGACiG;AACjG,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAAG,QAAQ,EAAC,OAAO,CAAA;CAAE;AACzE,+FAA+F;AAC/F,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAC9C,MAAM,WAAW,kBAAkB;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;AACxF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,gBAAgB,CA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AiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,0BAA0B,CAAC;IACpC,aAAa,EAAE,sBAAsB,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,MAAM,MAAM,8BAA8B,GAAG,WAAW,CAAC,sBAAsB,CAAC,CAAC"}
|
package/dist/economy.types.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export interface EconomyPolicy {
|
|
|
39
39
|
manual_roles: string[];
|
|
40
40
|
charge: EconomyChargePolicy;
|
|
41
41
|
catalog: Record<string, EconomyCatalogItem>;
|
|
42
|
+
funding?: EconomyFundingPolicy | null;
|
|
43
|
+
evidence_bindings?: EconomyEvidenceBinding[] | null;
|
|
42
44
|
}
|
|
43
45
|
export interface EconomyActivityPolicy {
|
|
44
46
|
version: number;
|
|
@@ -179,6 +181,7 @@ export interface EconomyObjectMap {
|
|
|
179
181
|
leaderboard: EconomyDecimal;
|
|
180
182
|
pending_refund: EconomyPendingFunding;
|
|
181
183
|
pending_entitlement: EconomyPendingEntitlement;
|
|
184
|
+
configuration_projection: EconomyConfigurationProjection;
|
|
182
185
|
}
|
|
183
186
|
export type EconomyObjectKind = keyof EconomyObjectMap;
|
|
184
187
|
export type EconomyObjectRecord<K extends EconomyObjectKind = EconomyObjectKind> = {
|
|
@@ -195,7 +198,14 @@ export interface EconomyObjectQuery extends QueryParams {
|
|
|
195
198
|
limit?: number;
|
|
196
199
|
offset?: number;
|
|
197
200
|
}
|
|
201
|
+
/** Journal supports both cursors and descending order; own-history only applies after/limit. */
|
|
198
202
|
export interface EconomyJournalQuery extends QueryParams {
|
|
203
|
+
after?: number;
|
|
204
|
+
before?: number;
|
|
205
|
+
descending?: boolean;
|
|
206
|
+
limit?: number;
|
|
207
|
+
}
|
|
208
|
+
export interface EconomyHistoryQuery extends QueryParams {
|
|
199
209
|
after?: number;
|
|
200
210
|
limit?: number;
|
|
201
211
|
}
|
|
@@ -240,6 +250,7 @@ export interface EconomyRewardReceipt {
|
|
|
240
250
|
unit_value: EconomyDecimal;
|
|
241
251
|
rule_version: number;
|
|
242
252
|
coin_clamped: boolean;
|
|
253
|
+
action_limit: boolean;
|
|
243
254
|
}
|
|
244
255
|
export interface EconomyPackReceipt {
|
|
245
256
|
item_id: string;
|
|
@@ -264,7 +275,7 @@ export interface EconomyDuplicateReceipt {
|
|
|
264
275
|
action_limit?: boolean;
|
|
265
276
|
replay_limit?: boolean;
|
|
266
277
|
}
|
|
267
|
-
export interface EconomyCommandResult<T = EconomyRewardReceipt | EconomyPackReceipt | EconomyMoneyQuoteReceipt | EconomyCreditReceipt | EconomyClosureReceipt | EconomyDuplicateReceipt | {
|
|
278
|
+
export interface EconomyCommandResult<T = EconomyRewardReceipt | EconomyPackReceipt | EconomyMoneyQuoteReceipt | EconomyCreditReceipt | EconomyClosureReceipt | EconomyPendingClosureReceipt | EconomyDuplicateReceipt | {
|
|
268
279
|
crafted: string;
|
|
269
280
|
}> {
|
|
270
281
|
event_id: string;
|
|
@@ -281,7 +292,7 @@ export interface EconomyJournalEntry {
|
|
|
281
292
|
occurred_at: string;
|
|
282
293
|
created_at: string;
|
|
283
294
|
}
|
|
284
|
-
export type EconomyPolicyResponse = ApiEnvelope<
|
|
295
|
+
export type EconomyPolicyResponse = ApiEnvelope<EconomyPolicySnapshot | null>;
|
|
285
296
|
export type EconomyObjectsResponse<K extends EconomyObjectKind = EconomyObjectKind> = ApiEnvelope<EconomyObjectRecord<K>[]>;
|
|
286
297
|
export type EconomyJournalResponse = ApiEnvelope<EconomyJournalEntry[]>;
|
|
287
298
|
export type EconomyCommandResponse<T = EconomyCommandResult['data']> = ApiEnvelope<EconomyCommandResult<T>>;
|
|
@@ -328,12 +339,15 @@ export type EconomyLeaderboardResponse = ApiEnvelope<EconomyLeaderboardEntry[]>;
|
|
|
328
339
|
export interface EconomyCapabilities {
|
|
329
340
|
policy_update: boolean;
|
|
330
341
|
reward_review: boolean;
|
|
342
|
+
rule_update: boolean;
|
|
343
|
+
rule_create: boolean;
|
|
331
344
|
}
|
|
332
345
|
export type EconomyCapabilitiesResponse = ApiEnvelope<EconomyCapabilities>;
|
|
333
346
|
/** Owning services deliver these contracts through RabbitMQ, using correlation IDs and durable outboxes. */
|
|
334
347
|
export interface EconomyFundingShare {
|
|
335
348
|
role: string;
|
|
336
349
|
fraction: EconomyDecimal;
|
|
350
|
+
amount?: EconomyDecimal | null;
|
|
337
351
|
}
|
|
338
352
|
export interface EconomyFundingCommand {
|
|
339
353
|
type: 'funding';
|
|
@@ -353,6 +367,7 @@ export interface EconomyRefundCommand {
|
|
|
353
367
|
transaction_id: string;
|
|
354
368
|
revision: number;
|
|
355
369
|
amount: EconomyDecimal;
|
|
370
|
+
allocation_amounts?: Record<string, EconomyDecimal> | null;
|
|
356
371
|
}
|
|
357
372
|
export interface EconomyScopeUpsertCommand {
|
|
358
373
|
type: 'scope_upsert';
|
|
@@ -382,6 +397,8 @@ export interface EconomyEntitlementAdjustCommand {
|
|
|
382
397
|
revision: number;
|
|
383
398
|
delta: EconomyDecimal;
|
|
384
399
|
paid: boolean;
|
|
400
|
+
from_scope_id?: string | null;
|
|
401
|
+
remaining_limit?: EconomyDecimal | null;
|
|
385
402
|
}
|
|
386
403
|
export interface EconomyAdmissionPrepareCommand {
|
|
387
404
|
type: 'admission_prepare';
|
|
@@ -454,7 +471,7 @@ export interface EconomyInternalCreditCommand {
|
|
|
454
471
|
profile_id: string;
|
|
455
472
|
session_id: string;
|
|
456
473
|
}
|
|
457
|
-
export type EconomyBrokerCommand = (EconomyFundingCommand | EconomyRefundCommand | EconomyScopeUpsertCommand | EconomyScopeCloseCommand | EconomyRewardCommand | EconomyEntitlementSetCommand | EconomyEntitlementAdjustCommand | EconomyAdmissionPrepareCommand | EconomyAdmissionReserveCommand | EconomyReservationCommand | EconomySessionBindCommand | EconomySessionLifecycleCommand | EconomySessionOpenCommand | EconomySessionActivityCommand | EconomyInteractionReserveCommand | EconomyPaymentLinkedCommand | EconomyPaymentVerifiedCommand | EconomyInternalPurchaseCommand | EconomyInternalCreditCommand) & {
|
|
474
|
+
export type EconomyBrokerCommand = (EconomyConfigurationAppliedCommand | EconomyFundingCommand | EconomyRefundCommand | EconomyScopeUpsertCommand | EconomyScopeCloseCommand | EconomyRewardCommand | EconomyEntitlementSetCommand | EconomyEntitlementAdjustCommand | EconomyAdmissionPrepareCommand | EconomyAdmissionReserveCommand | EconomyReservationCommand | EconomySessionBindCommand | EconomySessionLifecycleCommand | EconomySessionOpenCommand | EconomySessionActivityCommand | EconomyInteractionReserveCommand | EconomyPaymentLinkedCommand | EconomyPaymentVerifiedCommand | EconomyInternalPurchaseCommand | EconomyInternalCreditCommand) & {
|
|
458
475
|
event_id: string;
|
|
459
476
|
occurred_at: string;
|
|
460
477
|
};
|
|
@@ -468,4 +485,40 @@ export interface EconomyPendingEntitlement {
|
|
|
468
485
|
resolved: boolean;
|
|
469
486
|
}
|
|
470
487
|
export type EconomyCreditResponse = EconomyCommandResponse<EconomyCreditReceipt>;
|
|
488
|
+
/** Funding settings omit per-share amount; only verified funding commands accept explicit rounded amounts. */
|
|
489
|
+
export interface EconomyFundingPolicy {
|
|
490
|
+
basis_points: number;
|
|
491
|
+
allocations: EconomyFundingPolicyShare[];
|
|
492
|
+
}
|
|
493
|
+
export interface EconomyFundingPolicyShare {
|
|
494
|
+
role: string;
|
|
495
|
+
fraction: EconomyDecimal;
|
|
496
|
+
amount?: null;
|
|
497
|
+
}
|
|
498
|
+
export interface EconomyEvidenceBinding {
|
|
499
|
+
producer: string;
|
|
500
|
+
fact: string;
|
|
501
|
+
action_name: string;
|
|
502
|
+
}
|
|
503
|
+
/** GET policy includes the latest published configuration revision; PUT returns the stored policy only. */
|
|
504
|
+
export interface EconomyPolicySnapshot extends EconomyPolicy {
|
|
505
|
+
configuration_revision: number;
|
|
506
|
+
}
|
|
507
|
+
export type EconomyPolicyUpdateResponse = ApiEnvelope<EconomyPolicy>;
|
|
508
|
+
export interface EconomyConfigurationProjection {
|
|
509
|
+
producer: string;
|
|
510
|
+
revision: number;
|
|
511
|
+
policy_version: number;
|
|
512
|
+
applied_at: string;
|
|
513
|
+
}
|
|
514
|
+
export interface EconomyConfigurationAppliedCommand {
|
|
515
|
+
type: 'configuration_applied';
|
|
516
|
+
producer: string;
|
|
517
|
+
revision: number;
|
|
518
|
+
policy_version: number;
|
|
519
|
+
}
|
|
520
|
+
export interface EconomyPendingClosureReceipt {
|
|
521
|
+
pending: true;
|
|
522
|
+
scope_id: string;
|
|
523
|
+
}
|
|
471
524
|
//# sourceMappingURL=economy.types.d.ts.map
|