@faiber/faiber-idp 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @faiber/faiber-idp
2
2
 
3
- Typed, framework-neutral TypeScript client for Faiber identity, authentication, users, roles, and permissions.
3
+ Authentication, sessions, users, roles, permissions, OAuth identities, and identity settings.
4
4
 
5
5
  ## Install
6
6
 
@@ -8,7 +8,7 @@ Typed, framework-neutral TypeScript client for Faiber identity, authentication,
8
8
  npm install @faiber/faiber-idp
9
9
  ```
10
10
 
11
- ## Create a client
11
+ ## Configure
12
12
 
13
13
  ```ts
14
14
  import { FaiberClient, MemoryTokenProvider } from "@faiber/sdk-core";
@@ -22,23 +22,52 @@ const client = new FaiberClient("idp", {
22
22
  });
23
23
  const api = new IdpApi(client);
24
24
 
25
- const result = await api.login({ email, password });
25
+ const login = await api.login({
26
+ grant_type: "password",
27
+ username: "admin@example.com",
28
+ password: "secret",
29
+ client_id: "2",
30
+ client_secret: "client-secret",
31
+ });
32
+ await tokens.setTokens({
33
+ accessToken: login.data.data.access_token,
34
+ refreshToken: login.data.data.refresh_token,
35
+ });
26
36
  ```
27
37
 
28
- All methods return a full Axios `AxiosResponse`. Entities, named request inputs, response envelopes, pagination models, and shared core types are exported from the package. Use `client.request<TResponse, TBody>()` for project-specific endpoints.
38
+ ## Complete capability
29
39
 
30
- ## Authentication
40
+ This package exposes 46 registered operations from the identity and access 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`.
31
41
 
32
- Pass a `TokenProvider` for bearer authentication, or set `withCredentials: true` for secure cookie sessions. The SDK never reads browser storage or environment variables implicitly.
42
+ | Area | Operations | HTTP methods |
43
+ |---|---:|---|
44
+ | `acl` | 7 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
45
+ | `auth` | 15 | `DELETE`, `GET`, `POST` |
46
+ | `integration` | 1 | `GET` |
47
+ | `router` | 2 | `GET` |
48
+ | `settings` | 2 | `GET`, `PUT` |
49
+ | `user` | 19 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
33
50
 
34
- ## Errors and cancellation
51
+ Login, web login, account login, and OTP login are encoded as `application/x-www-form-urlencoded` exactly as required by the IDP service. Role assignment uses role UUIDs; role names returned by the service are not restricted to a hard-coded SDK union.
52
+
53
+ ## Authentication and authorization
54
+
55
+ Use a `TokenProvider` to forward the signed-in user's Bearer token, or enable `withCredentials` for secure HttpOnly cookie sessions. Permission requirements copied from service route guards are included in each operation's JSDoc. The SDK does not embed API keys, credentials, localhost URLs, sandbox hosts, or production hosts.
35
56
 
36
- Axios errors are preserved so callers can inspect `response.status`, structured API error bodies, headers, and request IDs. Pass normal Axios options as the final argument:
57
+ ## Inputs, queries, responses, and transport
58
+
59
+ 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.
60
+
61
+ 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`.
62
+
63
+ ## Errors and cancellation
37
64
 
38
65
  ```ts
39
- await api.client.get("/health", undefined , { signal: AbortSignal.timeout(5_000) });
66
+ try {
67
+ await api.client.get("/health", undefined, { signal: AbortSignal.timeout(5_000) });
68
+ } catch (error) {
69
+ // Axios errors retain response.status and the service error body.
70
+ }
40
71
  ```
41
72
 
42
- ## Complete SDK
43
-
44
- Install `@faiber/faiber-ts-sdk` when an application uses multiple Faiber services. The complete package provides shared configuration, authentication, uploads, and error handling across services.
73
+ Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services with one configuration.
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/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,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":"8cb9e8d47cc3a150fe2b7eabc95375a7e69a50774be9b8e4107d1d436af9b593","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"b060635c1b555ff21aa5bab5b038e15d67700d6bec6738323a443715931589f1","impliedFormat":99},{"version":"98cf7f2f15a4c87fca87c49b72e140b49ad079ff077d157ee81a9466173854ba","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"5b1091d579eb8d6b39300e818aac66e305b691b82f80f357513c3658f760604f","signature":"2181f24500e7cb071a6893ba6f286694b27e57c0050787581c2058988f8705b0","impliedFormat":99},{"version":"d8cb37c5db6a8b0f834d8616f237ee567a362415e68651ba3ef3551fb6db21ef","signature":"ccba3d64afe534ebff0dea449e0d7159f3c490971455ff4d5a6fd21a3503d8af","impliedFormat":99}],"root":[68,69],"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],[68,7]],"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/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69,70],[67,69],[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":"138724776c2b7fdf331300e22dfdfb8890d0400164f4996c02062e4e5d117927","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":"0ad43847040f935142b57d5c8d9a94e71d329498b5fef8cdf2ecf3d160f1820e","signature":"e38ae10e5b54111a7d34f29167a4ef3281e70b1283e34d0d91288fafc7dd6b0b","impliedFormat":99},{"version":"8ed8d9fbcc804f000006974cb79a1d8010238273b47ef23d846d453c59c81a0d","signature":"7fbadcb90880ab04ff934ec1c2d049a028941096b0899a861e1f6165ac3aa455","impliedFormat":99},{"version":"5ddfaa2c69840c320aa2f873d515da0726bbe2d8bcd255ce2f508961e420168a","signature":"32e6ed5f2335e6d691b21ca9000bffae623905147cbeed82626d2f7a5bdafa3b","impliedFormat":99},{"version":"1b9bc339555a60cf57e0b58940c37e3c43f2a17ebfffa13c87e183b0ddd97da6","signature":"42d3c9a5a14a5ff862118572e9fe8ab71ad1550140e34c5d75cb3d6ff3286a9e","impliedFormat":99}],"root":[[68,71]],"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],[71,6],[70,7],[69,8],[68,8]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
package/dist/index.d.ts CHANGED
@@ -1,16 +1,18 @@
1
1
  import { RestResource, ServiceApi, type Identifier, type OperationResponse, type RequestOptions } from "@faiber/sdk-core";
2
- import type { AccountLoginInput, AuthTokensResponse, ChangePasswordInput, ChangeRolesInput, LoginInput, LogoutUserResponse, OAuthProviderListResponse, OtpLoginInput, Permission, PermissionListResponse, PermissionResponse, RegisterUserInput, Role, RoleListResponse, RoleResponse, SetUserStatusInput, UpdateRoleInput, UpdateUserInput, User, UserListResponse, UserResponse, ValidateSessionResponse, WebLoginInput } from "./types.js";
2
+ import type { AccountLoginInput, AuthTokensResponse, ChangePasswordInput, ChangeRolesInput, CreateRoleInput, CreateUserInput, LoginInput, LogoutUserResponse, OAuthProviderListResponse, OtpLoginInput, Permission, PermissionListResponse, PermissionResponse, RegisterUserInput, Role, RoleListResponse, RoleResponse, SetUserStatusInput, UpdateRoleInput, UpdateUserInput, User, UserListResponse, UserResponse, UserSelfResponse, ValidateSessionResponse, WebLoginInput } from "./types.js";
3
+ import { IdpOperations } from "./operations.js";
3
4
  export declare class IdpApi extends ServiceApi {
4
- readonly users: RestResource<User, RegisterUserInput, UpdateUserInput, UserListResponse, UserResponse>;
5
- readonly roles: RestResource<Role, never, UpdateRoleInput, RoleListResponse, RoleResponse>;
5
+ readonly operations: IdpOperations;
6
+ readonly users: RestResource<User, CreateUserInput, UpdateUserInput, UserListResponse, UserResponse>;
7
+ readonly roles: RestResource<Role, CreateRoleInput, UpdateRoleInput, RoleListResponse, RoleResponse>;
6
8
  readonly permissions: RestResource<Permission, never, never, PermissionListResponse, PermissionResponse>;
7
- login(data: LoginInput, options?: RequestOptions<LoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, LoginInput, {}>>;
8
- webLogin(data: WebLoginInput, options?: RequestOptions<WebLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, WebLoginInput, {}>>;
9
- accountLogin(data: AccountLoginInput, options?: RequestOptions<AccountLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, AccountLoginInput, {}>>;
10
- otpLogin(data: OtpLoginInput, options?: RequestOptions<OtpLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, OtpLoginInput, {}>>;
9
+ login(data: LoginInput, options?: RequestOptions<LoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, URLSearchParams, {}>>;
10
+ webLogin(data: WebLoginInput, options?: RequestOptions<WebLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, URLSearchParams, {}>>;
11
+ accountLogin(data: AccountLoginInput, options?: RequestOptions<AccountLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, URLSearchParams, {}>>;
12
+ otpLogin(data: OtpLoginInput, options?: RequestOptions<OtpLoginInput>): Promise<import("axios").AxiosResponse<AuthTokensResponse, URLSearchParams, {}>>;
11
13
  validate(options?: RequestOptions): Promise<import("axios").AxiosResponse<ValidateSessionResponse, any, {}>>;
12
14
  refresh(options?: RequestOptions): Promise<import("axios").AxiosResponse<AuthTokensResponse, any, {}>>;
13
- self(options?: RequestOptions): Promise<import("axios").AxiosResponse<UserResponse, any, {}>>;
15
+ self(options?: RequestOptions): Promise<import("axios").AxiosResponse<UserSelfResponse, any, {}>>;
14
16
  providers(options?: RequestOptions): Promise<import("axios").AxiosResponse<OAuthProviderListResponse, any, {}>>;
15
17
  linkedIdentities(options?: RequestOptions): Promise<import("axios").AxiosResponse<OAuthProviderListResponse, any, {}>>;
16
18
  register(data: RegisterUserInput, options?: RequestOptions<RegisterUserInput>): Promise<import("axios").AxiosResponse<UserResponse, RegisterUserInput, {}>>;
@@ -21,4 +23,6 @@ export declare class IdpApi extends ServiceApi {
21
23
  }
22
24
  export * from "@faiber/sdk-core";
23
25
  export * from "./types.js";
26
+ export * from "./operations.js";
27
+ export * from "./operations.types.js";
24
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAG,MAAM,kBAAkB,CAAC;AAC3H,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,UAAU,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,aAAa,EAAE,UAAU,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,uBAAuB,E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,CAAC,EAAE,cAAc;IAGjC,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc;IAGhC,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc;IAG7B,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc;IAGlC,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc;IAGzC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;IAG7E,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC;IAG3G,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IAGlG,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC;IAGpG,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;CAG1D;AACD,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,19 +1,21 @@
1
- import { RestResource, ServiceApi, } from "@faiber/sdk-core";
1
+ import { RestResource, ServiceApi, urlEncoded, } from "@faiber/sdk-core";
2
+ import { IdpOperations } from "./operations.js";
2
3
  export class IdpApi extends ServiceApi {
3
- users = new RestResource(this.client, "/api/v1/users");
4
- roles = new RestResource(this.client, "/api/v1/acl/roles");
5
- permissions = new RestResource(this.client, "/api/v1/acl/permissions");
4
+ operations = new IdpOperations(this.client);
5
+ users = new RestResource(this.client, "/api/v1/users", { supported: ["list", "show", "create", "update", "replace", "delete"] });
6
+ roles = new RestResource(this.client, "/api/v1/acl/roles", { supported: ["list", "show", "create", "update", "replace", "delete"] });
7
+ permissions = new RestResource(this.client, "/api/v1/acl/permissions", { supported: ["list"] });
6
8
  login(data, options) {
7
- return this.client.post("/api/v1/auth/login", data, options);
9
+ return this.client.post("/api/v1/auth/login", urlEncoded(data), { ...options, headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
8
10
  }
9
11
  webLogin(data, options) {
10
- return this.client.post("/api/v1/auth/web-login", data, options);
12
+ return this.client.post("/api/v1/auth/web-login", urlEncoded(data), { ...options, headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
11
13
  }
12
14
  accountLogin(data, options) {
13
- return this.client.post("/api/v1/auth/account-login", data, options);
15
+ return this.client.post("/api/v1/auth/account-login", urlEncoded(data), { ...options, headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
14
16
  }
15
17
  otpLogin(data, options) {
16
- return this.client.post("/api/v1/auth/otp-login", data, options);
18
+ return this.client.post("/api/v1/auth/otp-login", urlEncoded(data), { ...options, headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
17
19
  }
18
20
  validate(options) {
19
21
  return this.client.get("/api/v1/auth/validate", undefined, options);
@@ -48,4 +50,6 @@ export class IdpApi extends ServiceApi {
48
50
  }
49
51
  export * from "@faiber/sdk-core";
50
52
  export * from "./types.js";
53
+ export * from "./operations.js";
54
+ export * from "./operations.types.js";
51
55
  //# 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,OAAO,EAAE,YAAY,EAAE,UAAU,GAAiE,MAAM,kBAAkB,CAAC;AAE3H,MAAM,OAAO,MAAO,SAAQ,UAAU;IACzB,KAAK,GAAG,IAAI,YAAY,CAA2E,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACjI,KAAK,GAAG,IAAI,YAAY,CAA+D,IAAI,CAAC,MAAM,EAAE,mBAAmB,CAAC,CA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C;IACD,cAAc,CAAC,MAAkB,EAAE,IAAyB,EAAE,OAA6C;QACvG,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAyC,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACnJ,CAAC;IACD,WAAW,CAAC,MAAkB,EAAE,IAAsB,EAAE,OAA0C;QAC9F,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAiC,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACxI,CAAC;IACD,SAAS,CAAC,MAAkB,EAAE,IAAwB,EAAE,OAA4C;QAChG,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAmC,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACpI,CAAC;IACD,UAAU,CAAC,MAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,iBAAiB,kBAAkB,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzH,CAAC;CACJ;AACD,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,97 @@
1
+ import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
2
+ import type * as T from "./operations.types.js";
3
+ export declare class IdpOperations extends ServiceApi {
4
+ /** GET /; permission: public/session-derived. */
5
+ routerStatusRouteGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RouterStatusRouteGetResponse, unknown, {}>>;
6
+ /** GET /api/openapi.json; permission: public/session-derived. */
7
+ routerOpenapiJsonGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RouterOpenapiJsonGetResponse, unknown, {}>>;
8
+ /** GET /api/v1/acl/permissions; permission: public/session-derived. */
9
+ aclPermissionsIndexGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AclPermissionsIndexGetResponse, unknown, {}>>;
10
+ /** GET /api/v1/acl/roles; permission: public/session-derived. */
11
+ aclRolesIndexGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AclRolesIndexGetResponse, unknown, {}>>;
12
+ /** POST /api/v1/acl/roles; permission: public/session-derived. */
13
+ aclRolesCreatePost(data: T.AclRolesCreatePostInput, options?: RequestOptions<T.AclRolesCreatePostInput>): Promise<import("axios").AxiosResponse<T.AclRolesCreatePostResponse, T.AclRolesCreatePostInput, {}>>;
14
+ /** DELETE /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
15
+ aclRolesDeleteDelete(roleId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AclRolesDeleteDeleteResponse, unknown, {}>>;
16
+ /** GET /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
17
+ aclRolesShowGet(roleId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AclRolesShowGetResponse, unknown, {}>>;
18
+ /** PATCH /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
19
+ aclRolesUpdatePatch(roleId: Identifier, data: T.AclRolesUpdatePatchInput, options?: RequestOptions<T.AclRolesUpdatePatchInput>): Promise<import("axios").AxiosResponse<T.AclRolesUpdatePatchResponse, T.AclRolesUpdatePatchInput, {}>>;
20
+ /** PUT /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
21
+ aclRolesUpdatePut(roleId: Identifier, data: T.AclRolesUpdatePutInput, options?: RequestOptions<T.AclRolesUpdatePutInput>): Promise<import("axios").AxiosResponse<T.AclRolesUpdatePutResponse, T.AclRolesUpdatePutInput, {}>>;
22
+ /** POST /api/v1/auth/account-login; permission: public/session-derived. */
23
+ authLoginAccountPost(data: T.AuthLoginAccountPostInput, options?: RequestOptions<T.AuthLoginAccountPostInput>): Promise<import("axios").AxiosResponse<T.AuthLoginAccountPostResponse, URLSearchParams, {}>>;
24
+ /** POST /api/v1/auth/generate/one-time; permission: public/session-derived. */
25
+ authGenerateOneTimeTokenRoutePost(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthGenerateOneTimeTokenRoutePostResponse, unknown, {}>>;
26
+ /** GET /api/v1/auth/identities; permission: public/session-derived. */
27
+ authListLinkedIdentitiesGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthListLinkedIdentitiesGetResponse, unknown, {}>>;
28
+ /** POST /api/v1/auth/login; permission: public/session-derived. */
29
+ authLoginPost(data: T.AuthLoginPostInput, options?: RequestOptions<T.AuthLoginPostInput>): Promise<import("axios").AxiosResponse<T.AuthLoginPostResponse, URLSearchParams, {}>>;
30
+ /** DELETE /api/v1/auth/oauth/{provider}; permission: public/session-derived. */
31
+ authOauthUnlinkDelete(provider: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthOauthUnlinkDeleteResponse, unknown, {}>>;
32
+ /** GET /api/v1/auth/oauth/{provider}; permission: public/session-derived. */
33
+ authOauthStartGet(provider: Identifier, params?: T.AuthOauthStartGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthOauthStartGetResponse, unknown, {}>>;
34
+ /** GET /api/v1/auth/oauth/{provider}/callback; permission: public/session-derived. */
35
+ authOauthCallbackGet(provider: Identifier, params?: T.AuthOauthCallbackGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthOauthCallbackGetResponse, unknown, {}>>;
36
+ /** GET /api/v1/auth/oauth/providers; permission: public/session-derived. */
37
+ authOauthProvidersGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthOauthProvidersGetResponse, unknown, {}>>;
38
+ /** POST /api/v1/auth/otp-login; permission: public/session-derived. */
39
+ authOtpLoginPost(data: T.AuthOtpLoginPostInput, options?: RequestOptions<T.AuthOtpLoginPostInput>): Promise<import("axios").AxiosResponse<T.AuthOtpLoginPostResponse, URLSearchParams, {}>>;
40
+ /** GET /api/v1/auth/refresh; permission: public/session-derived. */
41
+ authRefreshTokenGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthRefreshTokenGetResponse, unknown, {}>>;
42
+ /** POST /api/v1/auth/secure/generate/one-time; permission: public/session-derived. */
43
+ authGenerateSecureOneTimeTokenRoutePost(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthGenerateSecureOneTimeTokenRoutePostResponse, unknown, {}>>;
44
+ /** GET /api/v1/auth/token-login; permission: public/session-derived. */
45
+ authLoginTokenGet(params?: T.AuthLoginTokenGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthLoginTokenGetResponse, unknown, {}>>;
46
+ /** GET /api/v1/auth/validate; permission: public/session-derived. */
47
+ authValidateGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthValidateGetResponse, unknown, {}>>;
48
+ /** GET /api/v1/auth/web-login; permission: public/session-derived. */
49
+ authLogoutGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.AuthLogoutGetResponse, unknown, {}>>;
50
+ /** POST /api/v1/auth/web-login; permission: public/session-derived. */
51
+ authLoginWebPost(data: T.AuthLoginWebPostInput, options?: RequestOptions<T.AuthLoginWebPostInput>): Promise<import("axios").AxiosResponse<T.AuthLoginWebPostResponse, URLSearchParams, {}>>;
52
+ /** GET /api/v1/integration/flow; permission: public/session-derived. */
53
+ integrationFlowIntegrationShowGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.IntegrationFlowIntegrationShowGetResponse, unknown, {}>>;
54
+ /** GET /api/v1/settings/oauth; permission: public/session-derived. */
55
+ settingsOauthSettingsShowGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.SettingsOauthSettingsShowGetResponse, unknown, {}>>;
56
+ /** PUT /api/v1/settings/oauth; permission: public/session-derived. */
57
+ settingsOauthSettingsUpdatePut(data: T.SettingsOauthSettingsUpdatePutInput, options?: RequestOptions<T.SettingsOauthSettingsUpdatePutInput>): Promise<import("axios").AxiosResponse<T.SettingsOauthSettingsUpdatePutResponse, T.SettingsOauthSettingsUpdatePutInput, {}>>;
58
+ /** GET /api/v1/users; permission: public/session-derived. */
59
+ userUsersIndexGet(params?: T.UserUsersIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUsersIndexGetResponse, unknown, {}>>;
60
+ /** POST /api/v1/users; permission: public/session-derived. */
61
+ userUserCreatePost(data: T.UserUserCreatePostInput, options?: RequestOptions<T.UserUserCreatePostInput>): Promise<import("axios").AxiosResponse<T.UserUserCreatePostResponse, T.UserUserCreatePostInput, {}>>;
62
+ /** DELETE /api/v1/users/{user_id}; permission: public/session-derived. */
63
+ userUserDeleteDelete(userId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUserDeleteDeleteResponse, unknown, {}>>;
64
+ /** GET /api/v1/users/{user_id}; permission: public/session-derived. */
65
+ userUserFindGet(userId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUserFindGetResponse, unknown, {}>>;
66
+ /** PATCH /api/v1/users/{user_id}; permission: public/session-derived. */
67
+ userUserUpdatePatch(userId: Identifier, data: T.UserUserUpdatePatchInput, options?: RequestOptions<T.UserUserUpdatePatchInput>): Promise<import("axios").AxiosResponse<T.UserUserUpdatePatchResponse, T.UserUserUpdatePatchInput, {}>>;
68
+ /** PUT /api/v1/users/{user_id}; permission: public/session-derived. */
69
+ userUserUpdatePut(userId: Identifier, data: T.UserUserUpdatePutInput, options?: RequestOptions<T.UserUserUpdatePutInput>): Promise<import("axios").AxiosResponse<T.UserUserUpdatePutResponse, T.UserUserUpdatePutInput, {}>>;
70
+ /** PATCH /api/v1/users/{user_id}/change-password; permission: public/session-derived. */
71
+ userChangePasswordPatch(userId: Identifier, data: T.UserChangePasswordPatchInput, options?: RequestOptions<T.UserChangePasswordPatchInput>): Promise<import("axios").AxiosResponse<T.UserChangePasswordPatchResponse, T.UserChangePasswordPatchInput, {}>>;
72
+ /** PUT /api/v1/users/{user_id}/change-password; permission: public/session-derived. */
73
+ userChangePasswordPut(userId: Identifier, data: T.UserChangePasswordPutInput, options?: RequestOptions<T.UserChangePasswordPutInput>): Promise<import("axios").AxiosResponse<T.UserChangePasswordPutResponse, T.UserChangePasswordPutInput, {}>>;
74
+ /** PATCH /api/v1/users/{user_id}/change-roles; permission: public/session-derived. */
75
+ userChangeRolesPatch(userId: Identifier, data: T.UserChangeRolesPatchInput, options?: RequestOptions<T.UserChangeRolesPatchInput>): Promise<import("axios").AxiosResponse<T.UserChangeRolesPatchResponse, T.UserChangeRolesPatchInput, {}>>;
76
+ /** PUT /api/v1/users/{user_id}/change-roles; permission: public/session-derived. */
77
+ userChangeRolesPut(userId: Identifier, data: T.UserChangeRolesPutInput, options?: RequestOptions<T.UserChangeRolesPutInput>): Promise<import("axios").AxiosResponse<T.UserChangeRolesPutResponse, T.UserChangeRolesPutInput, {}>>;
78
+ /** GET /api/v1/users/{user_id}/logout; permission: public/session-derived. */
79
+ userUserLogoutGet(userId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUserLogoutGetResponse, unknown, {}>>;
80
+ /** PATCH /api/v1/users/{user_id}/status; permission: public/session-derived. */
81
+ userUserSetStatusPatch(userId: Identifier, data: T.UserUserSetStatusPatchInput, options?: RequestOptions<T.UserUserSetStatusPatchInput>): Promise<import("axios").AxiosResponse<T.UserUserSetStatusPatchResponse, T.UserUserSetStatusPatchInput, {}>>;
82
+ /** PUT /api/v1/users/{user_id}/status; permission: public/session-derived. */
83
+ userUserSetStatusPut(userId: Identifier, data: T.UserUserSetStatusPutInput, options?: RequestOptions<T.UserUserSetStatusPutInput>): Promise<import("axios").AxiosResponse<T.UserUserSetStatusPutResponse, T.UserUserSetStatusPutInput, {}>>;
84
+ /** POST /api/v1/users/register; permission: public/session-derived. */
85
+ userRegisterPost(data: T.UserRegisterPostInput, options?: RequestOptions<T.UserRegisterPostInput>): Promise<import("axios").AxiosResponse<T.UserRegisterPostResponse, T.UserRegisterPostInput, {}>>;
86
+ /** POST /api/v1/users/register-email; permission: public/session-derived. */
87
+ userRegisterWithEmailPost(data: T.UserRegisterWithEmailPostInput, options?: RequestOptions<T.UserRegisterWithEmailPostInput>): Promise<import("axios").AxiosResponse<T.UserRegisterWithEmailPostResponse, T.UserRegisterWithEmailPostInput, {}>>;
88
+ /** POST /api/v1/users/register-phone; permission: public/session-derived. */
89
+ userRegisterWithPhonePost(data: T.UserRegisterWithPhonePostInput, options?: RequestOptions<T.UserRegisterWithPhonePostInput>): Promise<import("axios").AxiosResponse<T.UserRegisterWithPhonePostResponse, T.UserRegisterWithPhonePostInput, {}>>;
90
+ /** GET /api/v1/users/self; permission: public/session-derived. */
91
+ userUserFindSelfGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUserFindSelfGetResponse, unknown, {}>>;
92
+ /** GET /api/v1/users/stats; permission: public/session-derived. */
93
+ userUsersStatsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserUsersStatsGetResponse, unknown, {}>>;
94
+ /** GET /api/v1/users/sync; permission: public/session-derived. */
95
+ userSyncUsersGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.UserSyncUsersGetResponse, unknown, {}>>;
96
+ }
97
+ //# 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,aAAc,SAAQ,UAAU;IAC3C,iDAAiD;IACjD,oBAAoB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG7C,iEAAiE;IACjE,oBAAoB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG7C,uEAAuE;IACvE,sBAAsB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG/C,iEAAiE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AAE,OAAO,CAAC,EAAE,cAAc;IAG9D,gFAAgF;IAChF,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,2BAA2B,CAAC;IAGvI,8EAA8E;IAC9E,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAGjI,uEAAuE;IACvE,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,qBAAqB,CAAC;IAGjG,6EAA6E;IAC7E,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,8BAA8B,CAAC;IAG5H,6EAA6E;IAC7E,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,8BAA8B,CAAC;IAG5H,kEAAkE;IAClE,mBAAmB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG5C,mEAAmE;IACnE,iBAAiB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG1C,kEAAkE;IAClE,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc;CAG1C"}
@@ -0,0 +1,188 @@
1
+ import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
2
+ export class IdpOperations extends ServiceApi {
3
+ /** GET /; permission: public/session-derived. */
4
+ routerStatusRouteGet(options) {
5
+ return this.client.request({ ...options, method: "GET", url: `/` });
6
+ }
7
+ /** GET /api/openapi.json; permission: public/session-derived. */
8
+ routerOpenapiJsonGet(options) {
9
+ return this.client.request({ ...options, method: "GET", url: `/api/openapi.json` });
10
+ }
11
+ /** GET /api/v1/acl/permissions; permission: public/session-derived. */
12
+ aclPermissionsIndexGet(options) {
13
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/acl/permissions` });
14
+ }
15
+ /** GET /api/v1/acl/roles; permission: public/session-derived. */
16
+ aclRolesIndexGet(options) {
17
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/acl/roles` });
18
+ }
19
+ /** POST /api/v1/acl/roles; permission: public/session-derived. */
20
+ aclRolesCreatePost(data, options) {
21
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/acl/roles`, data: data });
22
+ }
23
+ /** DELETE /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
24
+ aclRolesDeleteDelete(roleId, options) {
25
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/acl/roles/${encodeURIComponent(roleId)}` });
26
+ }
27
+ /** GET /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
28
+ aclRolesShowGet(roleId, options) {
29
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/acl/roles/${encodeURIComponent(roleId)}` });
30
+ }
31
+ /** PATCH /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
32
+ aclRolesUpdatePatch(roleId, data, options) {
33
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/acl/roles/${encodeURIComponent(roleId)}`, data: data });
34
+ }
35
+ /** PUT /api/v1/acl/roles/{role_id}; permission: public/session-derived. */
36
+ aclRolesUpdatePut(roleId, data, options) {
37
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/acl/roles/${encodeURIComponent(roleId)}`, data: data });
38
+ }
39
+ /** POST /api/v1/auth/account-login; permission: public/session-derived. */
40
+ authLoginAccountPost(data, options) {
41
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/account-login`, data: urlEncoded(data), headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
42
+ }
43
+ /** POST /api/v1/auth/generate/one-time; permission: public/session-derived. */
44
+ authGenerateOneTimeTokenRoutePost(options) {
45
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/generate/one-time` });
46
+ }
47
+ /** GET /api/v1/auth/identities; permission: public/session-derived. */
48
+ authListLinkedIdentitiesGet(options) {
49
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/identities` });
50
+ }
51
+ /** POST /api/v1/auth/login; permission: public/session-derived. */
52
+ authLoginPost(data, options) {
53
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/login`, data: urlEncoded(data), headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
54
+ }
55
+ /** DELETE /api/v1/auth/oauth/{provider}; permission: public/session-derived. */
56
+ authOauthUnlinkDelete(provider, options) {
57
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/auth/oauth/${encodeURIComponent(provider)}` });
58
+ }
59
+ /** GET /api/v1/auth/oauth/{provider}; permission: public/session-derived. */
60
+ authOauthStartGet(provider, params, options) {
61
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/oauth/${encodeURIComponent(provider)}`, params });
62
+ }
63
+ /** GET /api/v1/auth/oauth/{provider}/callback; permission: public/session-derived. */
64
+ authOauthCallbackGet(provider, params, options) {
65
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/oauth/${encodeURIComponent(provider)}/callback`, params });
66
+ }
67
+ /** GET /api/v1/auth/oauth/providers; permission: public/session-derived. */
68
+ authOauthProvidersGet(options) {
69
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/oauth/providers` });
70
+ }
71
+ /** POST /api/v1/auth/otp-login; permission: public/session-derived. */
72
+ authOtpLoginPost(data, options) {
73
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/otp-login`, data: urlEncoded(data), headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
74
+ }
75
+ /** GET /api/v1/auth/refresh; permission: public/session-derived. */
76
+ authRefreshTokenGet(options) {
77
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/refresh` });
78
+ }
79
+ /** POST /api/v1/auth/secure/generate/one-time; permission: public/session-derived. */
80
+ authGenerateSecureOneTimeTokenRoutePost(options) {
81
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/secure/generate/one-time` });
82
+ }
83
+ /** GET /api/v1/auth/token-login; permission: public/session-derived. */
84
+ authLoginTokenGet(params, options) {
85
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/token-login`, params });
86
+ }
87
+ /** GET /api/v1/auth/validate; permission: public/session-derived. */
88
+ authValidateGet(options) {
89
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/validate` });
90
+ }
91
+ /** GET /api/v1/auth/web-login; permission: public/session-derived. */
92
+ authLogoutGet(options) {
93
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/web-login` });
94
+ }
95
+ /** POST /api/v1/auth/web-login; permission: public/session-derived. */
96
+ authLoginWebPost(data, options) {
97
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/auth/web-login`, data: urlEncoded(data), headers: { ...options?.headers, "Content-Type": "application/x-www-form-urlencoded" } });
98
+ }
99
+ /** GET /api/v1/integration/flow; permission: public/session-derived. */
100
+ integrationFlowIntegrationShowGet(options) {
101
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/flow` });
102
+ }
103
+ /** GET /api/v1/settings/oauth; permission: public/session-derived. */
104
+ settingsOauthSettingsShowGet(options) {
105
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/settings/oauth` });
106
+ }
107
+ /** PUT /api/v1/settings/oauth; permission: public/session-derived. */
108
+ settingsOauthSettingsUpdatePut(data, options) {
109
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/settings/oauth`, data: data });
110
+ }
111
+ /** GET /api/v1/users; permission: public/session-derived. */
112
+ userUsersIndexGet(params, options) {
113
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users`, params });
114
+ }
115
+ /** POST /api/v1/users; permission: public/session-derived. */
116
+ userUserCreatePost(data, options) {
117
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/users`, data: data });
118
+ }
119
+ /** DELETE /api/v1/users/{user_id}; permission: public/session-derived. */
120
+ userUserDeleteDelete(userId, options) {
121
+ return this.client.request({ ...options, method: "DELETE", url: `/api/v1/users/${encodeURIComponent(userId)}` });
122
+ }
123
+ /** GET /api/v1/users/{user_id}; permission: public/session-derived. */
124
+ userUserFindGet(userId, options) {
125
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users/${encodeURIComponent(userId)}` });
126
+ }
127
+ /** PATCH /api/v1/users/{user_id}; permission: public/session-derived. */
128
+ userUserUpdatePatch(userId, data, options) {
129
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/users/${encodeURIComponent(userId)}`, data: data });
130
+ }
131
+ /** PUT /api/v1/users/{user_id}; permission: public/session-derived. */
132
+ userUserUpdatePut(userId, data, options) {
133
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/users/${encodeURIComponent(userId)}`, data: data });
134
+ }
135
+ /** PATCH /api/v1/users/{user_id}/change-password; permission: public/session-derived. */
136
+ userChangePasswordPatch(userId, data, options) {
137
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/users/${encodeURIComponent(userId)}/change-password`, data: data });
138
+ }
139
+ /** PUT /api/v1/users/{user_id}/change-password; permission: public/session-derived. */
140
+ userChangePasswordPut(userId, data, options) {
141
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/users/${encodeURIComponent(userId)}/change-password`, data: data });
142
+ }
143
+ /** PATCH /api/v1/users/{user_id}/change-roles; permission: public/session-derived. */
144
+ userChangeRolesPatch(userId, data, options) {
145
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/users/${encodeURIComponent(userId)}/change-roles`, data: data });
146
+ }
147
+ /** PUT /api/v1/users/{user_id}/change-roles; permission: public/session-derived. */
148
+ userChangeRolesPut(userId, data, options) {
149
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/users/${encodeURIComponent(userId)}/change-roles`, data: data });
150
+ }
151
+ /** GET /api/v1/users/{user_id}/logout; permission: public/session-derived. */
152
+ userUserLogoutGet(userId, options) {
153
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users/${encodeURIComponent(userId)}/logout` });
154
+ }
155
+ /** PATCH /api/v1/users/{user_id}/status; permission: public/session-derived. */
156
+ userUserSetStatusPatch(userId, data, options) {
157
+ return this.client.request({ ...options, method: "PATCH", url: `/api/v1/users/${encodeURIComponent(userId)}/status`, data: data });
158
+ }
159
+ /** PUT /api/v1/users/{user_id}/status; permission: public/session-derived. */
160
+ userUserSetStatusPut(userId, data, options) {
161
+ return this.client.request({ ...options, method: "PUT", url: `/api/v1/users/${encodeURIComponent(userId)}/status`, data: data });
162
+ }
163
+ /** POST /api/v1/users/register; permission: public/session-derived. */
164
+ userRegisterPost(data, options) {
165
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/users/register`, data: data });
166
+ }
167
+ /** POST /api/v1/users/register-email; permission: public/session-derived. */
168
+ userRegisterWithEmailPost(data, options) {
169
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/users/register-email`, data: data });
170
+ }
171
+ /** POST /api/v1/users/register-phone; permission: public/session-derived. */
172
+ userRegisterWithPhonePost(data, options) {
173
+ return this.client.request({ ...options, method: "POST", url: `/api/v1/users/register-phone`, data: data });
174
+ }
175
+ /** GET /api/v1/users/self; permission: public/session-derived. */
176
+ userUserFindSelfGet(options) {
177
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users/self` });
178
+ }
179
+ /** GET /api/v1/users/stats; permission: public/session-derived. */
180
+ userUsersStatsGet(options) {
181
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users/stats` });
182
+ }
183
+ /** GET /api/v1/users/sync; permission: public/session-derived. */
184
+ userSyncUsersGet(options) {
185
+ return this.client.request({ ...options, method: "GET", url: `/api/v1/users/sync` });
186
+ }
187
+ }
188
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EA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AC,CAAC;IAC7J,CAAC;IACD,6EAA6E;IAC7E,yBAAyB,CAAC,IAAsC,EAAE,OAA0D;QAC1H,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,8BAA8B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACrL,CAAC;IACD,6EAA6E;IAC7E,yBAAyB,CAAC,IAAsC,EAAE,OAA0D;QAC1H,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,8BAA8B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACrL,CAAC;IACD,kEAAkE;IAClE,mBAAmB,CAAC,OAAwB;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAgC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACtH,CAAC;IACD,mEAAmE;IACnE,iBAAiB,CAAC,OAAwB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,qBAAqB,EAAE,CAAC,CAAC;IACrH,CAAC;IACD,kEAAkE;IAClE,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,CAAC,CAAC;IACnH,CAAC;CACF"}
@@ -0,0 +1,378 @@
1
+ import type { ApiEnvelope, 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 response type: response without a declared JSON model. */
4
+ export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
+ }
6
+ /** Backend response type: response without a declared JSON model. */
7
+ export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
8
+ }
9
+ /** Backend response type: PermissionListResponse. */
10
+ export interface AclPermissionsIndexGetResponseData extends JsonObject {
11
+ "permissions": JsonValue[];
12
+ "services": string[];
13
+ }
14
+ export interface AclPermissionsIndexGetResponse extends ApiEnvelope<AclPermissionsIndexGetResponseData> {
15
+ }
16
+ /** Backend response type: RoleListResponse. */
17
+ export interface AclRolesIndexGetResponseData extends JsonObject {
18
+ "roles": JsonValue[];
19
+ }
20
+ export interface AclRolesIndexGetResponse extends ApiEnvelope<AclRolesIndexGetResponseData> {
21
+ }
22
+ /** Backend request type: CreateRole. */
23
+ export interface AclRolesCreatePostInput extends JsonObject {
24
+ "name": string;
25
+ "permissions": string[];
26
+ }
27
+ /** Backend response type: RoleSingleResponse. */
28
+ export interface AclRolesCreatePostResponseData extends JsonObject {
29
+ "role": JsonValue;
30
+ }
31
+ export interface AclRolesCreatePostResponse extends ApiEnvelope<AclRolesCreatePostResponseData> {
32
+ }
33
+ /** Backend response type: RoleResponse. */
34
+ export interface AclRolesDeleteDeleteResponseData extends JsonObject {
35
+ "id": string;
36
+ "name": string;
37
+ }
38
+ export interface AclRolesDeleteDeleteResponse extends ApiEnvelope<AclRolesDeleteDeleteResponseData> {
39
+ }
40
+ /** Backend response type: RoleSingleResponse. */
41
+ export interface AclRolesShowGetResponseData extends JsonObject {
42
+ "role": JsonValue;
43
+ }
44
+ export interface AclRolesShowGetResponse extends ApiEnvelope<AclRolesShowGetResponseData> {
45
+ }
46
+ /** Backend request type: UpdateRole. */
47
+ export interface AclRolesUpdatePatchInput extends JsonObject {
48
+ "permissions": string[];
49
+ }
50
+ /** Backend response type: RoleSingleResponse. */
51
+ export interface AclRolesUpdatePatchResponseData extends JsonObject {
52
+ "role": JsonValue;
53
+ }
54
+ export interface AclRolesUpdatePatchResponse extends ApiEnvelope<AclRolesUpdatePatchResponseData> {
55
+ }
56
+ /** Backend request type: UpdateRole. */
57
+ export interface AclRolesUpdatePutInput extends JsonObject {
58
+ "permissions": string[];
59
+ }
60
+ /** Backend response type: RoleSingleResponse. */
61
+ export interface AclRolesUpdatePutResponseData extends JsonObject {
62
+ "role": JsonValue;
63
+ }
64
+ export interface AclRolesUpdatePutResponse extends ApiEnvelope<AclRolesUpdatePutResponseData> {
65
+ }
66
+ /** Backend request type: AccountTokenRequest. */
67
+ export interface AuthLoginAccountPostInput extends JsonObject {
68
+ "account": string;
69
+ "device_id"?: string;
70
+ }
71
+ /** Backend response type: response without a declared JSON model. */
72
+ export interface AuthLoginAccountPostResponse extends ApiEnvelope<JsonValue> {
73
+ }
74
+ /** Backend response type: response without a declared JSON model. */
75
+ export interface AuthGenerateOneTimeTokenRoutePostResponse extends ApiEnvelope<JsonValue> {
76
+ }
77
+ /** Backend response type: LinkedIdentitiesResponse. */
78
+ export interface AuthListLinkedIdentitiesGetResponse extends ApiEnvelope<JsonValue> {
79
+ }
80
+ /** Backend request type: PasswordTokenRequest. */
81
+ export interface AuthLoginPostInput extends JsonObject {
82
+ "grant_type": string;
83
+ "username": string;
84
+ "password": string;
85
+ "client_id": string;
86
+ "client_secret": string;
87
+ "device_id"?: string;
88
+ }
89
+ /** Backend response type: response without a declared JSON model. */
90
+ export interface AuthLoginPostResponse extends ApiEnvelope<JsonValue> {
91
+ }
92
+ /** Backend response type: response without a declared JSON model. */
93
+ export interface AuthOauthUnlinkDeleteResponse extends ApiEnvelope<JsonValue> {
94
+ }
95
+ /** Backend query type: OAuthStartQuery. */
96
+ export interface AuthOauthStartGetQuery extends QueryParams {
97
+ "redirect"?: string;
98
+ "intent"?: string;
99
+ }
100
+ /** Backend response type: response without a declared JSON model. */
101
+ export interface AuthOauthStartGetResponse extends ApiEnvelope<JsonValue> {
102
+ }
103
+ /** Backend query type: OAuthCallbackQuery. */
104
+ export interface AuthOauthCallbackGetQuery extends QueryParams {
105
+ "code"?: string;
106
+ "state"?: string;
107
+ "error"?: string;
108
+ }
109
+ /** Backend response type: response without a declared JSON model. */
110
+ export interface AuthOauthCallbackGetResponse extends ApiEnvelope<JsonValue> {
111
+ }
112
+ /** Backend response type: OAuthProvidersPublicResponse. */
113
+ export interface AuthOauthProvidersGetResponseData extends JsonObject {
114
+ "providers": string[];
115
+ }
116
+ export interface AuthOauthProvidersGetResponse extends ApiEnvelope<AuthOauthProvidersGetResponseData> {
117
+ }
118
+ /** Backend request type: OTPTokenRequest. */
119
+ export interface AuthOtpLoginPostInput extends JsonObject {
120
+ "grant_type": string;
121
+ "username": string;
122
+ "otp_code": string;
123
+ "client_id": string;
124
+ "client_secret": string;
125
+ "device_id"?: string;
126
+ }
127
+ /** Backend response type: response without a declared JSON model. */
128
+ export interface AuthOtpLoginPostResponse extends ApiEnvelope<JsonValue> {
129
+ }
130
+ /** Backend response type: response without a declared JSON model. */
131
+ export interface AuthRefreshTokenGetResponse extends ApiEnvelope<JsonValue> {
132
+ }
133
+ /** Backend response type: response without a declared JSON model. */
134
+ export interface AuthGenerateSecureOneTimeTokenRoutePostResponse extends ApiEnvelope<JsonValue> {
135
+ }
136
+ /** Backend query type: TokenQuery. */
137
+ export interface AuthLoginTokenGetQuery extends QueryParams {
138
+ "token": string;
139
+ "redirect": string;
140
+ }
141
+ /** Backend response type: response without a declared JSON model. */
142
+ export interface AuthLoginTokenGetResponse extends ApiEnvelope<JsonValue> {
143
+ }
144
+ /** Backend response type: response without a declared JSON model. */
145
+ export interface AuthValidateGetResponse extends ApiEnvelope<JsonValue> {
146
+ }
147
+ /** Backend response type: response without a declared JSON model. */
148
+ export interface AuthLogoutGetResponse extends ApiEnvelope<JsonValue> {
149
+ }
150
+ /** Backend request type: PasswordTokenRequest. */
151
+ export interface AuthLoginWebPostInput extends JsonObject {
152
+ "grant_type": string;
153
+ "username": string;
154
+ "password": string;
155
+ "client_id": string;
156
+ "client_secret": string;
157
+ "device_id"?: string;
158
+ }
159
+ /** Backend response type: response without a declared JSON model. */
160
+ export interface AuthLoginWebPostResponse extends ApiEnvelope<JsonValue> {
161
+ }
162
+ /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
163
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
164
+ }
165
+ /** Backend response type: OAuthSettingsResponse. */
166
+ export interface SettingsOauthSettingsShowGetResponseData extends JsonObject {
167
+ "google": JsonValue;
168
+ "github": JsonValue;
169
+ }
170
+ export interface SettingsOauthSettingsShowGetResponse extends ApiEnvelope<SettingsOauthSettingsShowGetResponseData> {
171
+ }
172
+ /** Backend request type: UpdateOAuthSettings. */
173
+ export interface SettingsOauthSettingsUpdatePutInput extends JsonObject {
174
+ "google": JsonValue;
175
+ "github": JsonValue;
176
+ }
177
+ /** Backend response type: OAuthSettingsResponse. */
178
+ export interface SettingsOauthSettingsUpdatePutResponseData extends JsonObject {
179
+ "google": JsonValue;
180
+ "github": JsonValue;
181
+ }
182
+ export interface SettingsOauthSettingsUpdatePutResponse extends ApiEnvelope<SettingsOauthSettingsUpdatePutResponseData> {
183
+ }
184
+ /** Backend query type: UsersQuery. */
185
+ export interface UserUsersIndexGetQuery extends QueryParams {
186
+ "search"?: string;
187
+ "status"?: string;
188
+ "role_id"?: string;
189
+ "page"?: number;
190
+ "per_page"?: number;
191
+ }
192
+ /** Backend response type: UserListResponse. */
193
+ export interface UserUsersIndexGetResponseData extends JsonObject {
194
+ "users": JsonValue[];
195
+ "total": number;
196
+ "page": number;
197
+ "per_page": number;
198
+ }
199
+ export interface UserUsersIndexGetResponse extends ApiEnvelope<UserUsersIndexGetResponseData> {
200
+ }
201
+ /** Backend request type: CreateUser. */
202
+ export interface UserUserCreatePostInput extends JsonObject {
203
+ "phone"?: string;
204
+ "email"?: string;
205
+ "national_code"?: string;
206
+ "password"?: string;
207
+ "roles": string[];
208
+ }
209
+ /** Backend response type: UserResponse. */
210
+ export interface UserUserCreatePostResponseData extends JsonObject {
211
+ "user": JsonValue;
212
+ }
213
+ export interface UserUserCreatePostResponse extends ApiEnvelope<UserUserCreatePostResponseData> {
214
+ }
215
+ /** Backend response type: UserResponse. */
216
+ export interface UserUserDeleteDeleteResponseData extends JsonObject {
217
+ "user": JsonValue;
218
+ }
219
+ export interface UserUserDeleteDeleteResponse extends ApiEnvelope<UserUserDeleteDeleteResponseData> {
220
+ }
221
+ /** Backend response type: UserResponse. */
222
+ export interface UserUserFindGetResponseData extends JsonObject {
223
+ "user": JsonValue;
224
+ }
225
+ export interface UserUserFindGetResponse extends ApiEnvelope<UserUserFindGetResponseData> {
226
+ }
227
+ /** Backend request type: UpdateUser. */
228
+ export interface UserUserUpdatePatchInput extends JsonObject {
229
+ "phone"?: string;
230
+ "email"?: string;
231
+ "national_code"?: string;
232
+ }
233
+ /** Backend response type: UserResponse. */
234
+ export interface UserUserUpdatePatchResponseData extends JsonObject {
235
+ "user": JsonValue;
236
+ }
237
+ export interface UserUserUpdatePatchResponse extends ApiEnvelope<UserUserUpdatePatchResponseData> {
238
+ }
239
+ /** Backend request type: UpdateUser. */
240
+ export interface UserUserUpdatePutInput extends JsonObject {
241
+ "phone"?: string;
242
+ "email"?: string;
243
+ "national_code"?: string;
244
+ }
245
+ /** Backend response type: UserResponse. */
246
+ export interface UserUserUpdatePutResponseData extends JsonObject {
247
+ "user": JsonValue;
248
+ }
249
+ export interface UserUserUpdatePutResponse extends ApiEnvelope<UserUserUpdatePutResponseData> {
250
+ }
251
+ /** Backend request type: UpdateUserPassword. */
252
+ export interface UserChangePasswordPatchInput extends JsonObject {
253
+ "password"?: string;
254
+ }
255
+ /** Backend response type: UserResponse. */
256
+ export interface UserChangePasswordPatchResponseData extends JsonObject {
257
+ "user": JsonValue;
258
+ }
259
+ export interface UserChangePasswordPatchResponse extends ApiEnvelope<UserChangePasswordPatchResponseData> {
260
+ }
261
+ /** Backend request type: UpdateUserPassword. */
262
+ export interface UserChangePasswordPutInput extends JsonObject {
263
+ "password"?: string;
264
+ }
265
+ /** Backend response type: UserResponse. */
266
+ export interface UserChangePasswordPutResponseData extends JsonObject {
267
+ "user": JsonValue;
268
+ }
269
+ export interface UserChangePasswordPutResponse extends ApiEnvelope<UserChangePasswordPutResponseData> {
270
+ }
271
+ /** Backend request type: UpdateUserRoles. */
272
+ export interface UserChangeRolesPatchInput extends JsonObject {
273
+ "roles"?: string[];
274
+ }
275
+ /** Backend response type: UserResponse. */
276
+ export interface UserChangeRolesPatchResponseData extends JsonObject {
277
+ "user": JsonValue;
278
+ }
279
+ export interface UserChangeRolesPatchResponse extends ApiEnvelope<UserChangeRolesPatchResponseData> {
280
+ }
281
+ /** Backend request type: UpdateUserRoles. */
282
+ export interface UserChangeRolesPutInput extends JsonObject {
283
+ "roles"?: string[];
284
+ }
285
+ /** Backend response type: UserResponse. */
286
+ export interface UserChangeRolesPutResponseData extends JsonObject {
287
+ "user": JsonValue;
288
+ }
289
+ export interface UserChangeRolesPutResponse extends ApiEnvelope<UserChangeRolesPutResponseData> {
290
+ }
291
+ /** Backend response type: UserResponse. */
292
+ export interface UserUserLogoutGetResponseData extends JsonObject {
293
+ "user": JsonValue;
294
+ }
295
+ export interface UserUserLogoutGetResponse extends ApiEnvelope<UserUserLogoutGetResponseData> {
296
+ }
297
+ /** Backend request type: UpdateUserStatus. */
298
+ export interface UserUserSetStatusPatchInput extends JsonObject {
299
+ "enabled": boolean;
300
+ }
301
+ /** Backend response type: UserResponse. */
302
+ export interface UserUserSetStatusPatchResponseData extends JsonObject {
303
+ "user": JsonValue;
304
+ }
305
+ export interface UserUserSetStatusPatchResponse extends ApiEnvelope<UserUserSetStatusPatchResponseData> {
306
+ }
307
+ /** Backend request type: UpdateUserStatus. */
308
+ export interface UserUserSetStatusPutInput extends JsonObject {
309
+ "enabled": boolean;
310
+ }
311
+ /** Backend response type: UserResponse. */
312
+ export interface UserUserSetStatusPutResponseData extends JsonObject {
313
+ "user": JsonValue;
314
+ }
315
+ export interface UserUserSetStatusPutResponse extends ApiEnvelope<UserUserSetStatusPutResponseData> {
316
+ }
317
+ /** Backend request type: FullRegister. */
318
+ export interface UserRegisterPostInput extends JsonObject {
319
+ "phone"?: string;
320
+ "email"?: string;
321
+ "national_code"?: string;
322
+ "role"?: string;
323
+ "roles"?: string[];
324
+ }
325
+ /** Backend response type: FindUserResponse. */
326
+ export interface UserRegisterPostResponseData extends JsonObject {
327
+ "user": JsonValue;
328
+ }
329
+ export interface UserRegisterPostResponse extends ApiEnvelope<UserRegisterPostResponseData> {
330
+ }
331
+ /** Backend request type: EmailRegister. */
332
+ export interface UserRegisterWithEmailPostInput extends JsonObject {
333
+ "email": string;
334
+ }
335
+ /** Backend response type: RegisterResponse. */
336
+ export interface UserRegisterWithEmailPostResponseData extends JsonObject {
337
+ "user_id": string;
338
+ "otp_sent": JsonValue;
339
+ }
340
+ export interface UserRegisterWithEmailPostResponse extends ApiEnvelope<UserRegisterWithEmailPostResponseData> {
341
+ }
342
+ /** Backend request type: PhoneRegister. */
343
+ export interface UserRegisterWithPhonePostInput extends JsonObject {
344
+ "phone": string;
345
+ "role"?: string;
346
+ "roles"?: string[];
347
+ }
348
+ /** Backend response type: RegisterResponse. */
349
+ export interface UserRegisterWithPhonePostResponseData extends JsonObject {
350
+ "user_id": string;
351
+ "otp_sent": JsonValue;
352
+ }
353
+ export interface UserRegisterWithPhonePostResponse extends ApiEnvelope<UserRegisterWithPhonePostResponseData> {
354
+ }
355
+ /** Backend response type: UserSelfResponse. */
356
+ export interface UserUserFindSelfGetResponseData extends JsonObject {
357
+ "id": string;
358
+ "phone"?: string;
359
+ "email"?: string;
360
+ "national_code"?: string;
361
+ "status": number;
362
+ "roles": JsonValue[];
363
+ "permissions": JsonValue[];
364
+ }
365
+ export interface UserUserFindSelfGetResponse extends ApiEnvelope<UserUserFindSelfGetResponseData> {
366
+ }
367
+ /** Backend response type: UserStatsResponse. */
368
+ export interface UserUsersStatsGetResponseData extends JsonObject {
369
+ "users_count": number;
370
+ "active_users_count": number;
371
+ "active_sessions_count": number;
372
+ }
373
+ export interface UserUsersStatsGetResponse extends ApiEnvelope<UserUsersStatsGetResponseData> {
374
+ }
375
+ /** Backend response type: bool. */
376
+ export interface UserSyncUsersGetResponse extends ApiEnvelope<boolean> {
377
+ }
378
+ //# sourceMappingURL=operations.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.types.d.ts","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAEpG,0HAA0H;AAC1H,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC3E;AAED,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC3E;AAED,qDAAqD;AACrD,MAAM,WAAW,kCAAmC,SAAQ,UAAU;IACpE,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AACD,MAAM,WAAW,8BAA+B,SAAQ,WAAW,CAAC,kCAAkC,CAAC;CACtG;AAED,+CAA+C;AAC/C,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AACD,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,4BAA4B,CAAC;CAC1F;AAED,wCAAwC;AACxC,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AACD,iDAAiD;AACjD,MAAM,WAAW,8BAA+B,SAAQ,UAAU;IAChE,MAAM,EAAE,SAAS,CAAC;CACnB;AACD,MAAM,WAAW,0BAA2B,SAAQ,WAAW,CAAC,8BAA8B,CAAC;CAC9F;AAED,2CAA2C;AAC3C,MAAM,WAAW,gCAAiC,SAAQ,UAAU;IAClE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E,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,aAAa,EAAE,SAAS,EAAE,CAAC;CAC5B;AACD,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,+BAA+B,CAAC;CAChG;AAED,gDAAgD;AAChD,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,MAAM,CAAC;CACjC;AACD,MAAM,WAAW,yBAA0B,SAAQ,WAAW,CAAC,6BAA6B,CAAC;CAC5F;AAED,mCAAmC;AACnC,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,OAAO,CAAC;CACrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operations.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.types.js","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":""}
package/dist/types.d.ts CHANGED
@@ -1,57 +1,65 @@
1
- import type { ApiEnvelope, Identifier, OperationResponse, ResourceListResponse, ResourceResponse } from "@faiber/sdk-core";
2
- export interface User {
3
- id?: string;
4
- uuid?: string;
1
+ import type { ApiEnvelope, JsonObject, OperationResponse } from "@faiber/sdk-core";
2
+ export interface User extends JsonObject {
3
+ id: string;
5
4
  phone?: string | null;
6
5
  email?: string | null;
7
6
  national_code?: string | null;
8
- status?: string | number | boolean;
9
- roles?: Role[];
10
- created_at?: string;
11
- updated_at?: string;
7
+ status: number;
8
+ active_sessions: number;
9
+ roles: Role[];
12
10
  }
13
- export interface Role {
11
+ export interface Role extends JsonObject {
14
12
  id: string;
15
13
  name: string;
16
14
  title?: string;
17
15
  permissions?: Permission[];
18
16
  }
19
- export interface Permission {
17
+ export interface Permission extends JsonObject {
20
18
  id: string;
21
19
  name: string;
22
20
  title?: string;
23
21
  description?: string | null;
24
22
  }
25
- export interface OAuthProvider {
23
+ export interface OAuthProvider extends JsonObject {
26
24
  name: string;
27
25
  enabled: boolean;
28
26
  authorization_url?: string;
29
27
  }
30
28
  export interface LoginInput {
31
- phone?: string;
32
- email?: string;
33
- username?: string;
29
+ grant_type: string;
30
+ username: string;
34
31
  password: string;
32
+ client_id: string;
33
+ client_secret: string;
34
+ device_id?: string;
35
35
  }
36
36
  export interface WebLoginInput extends LoginInput {
37
- redirect_uri?: string;
38
- remember?: boolean;
39
37
  }
40
38
  export interface AccountLoginInput {
41
39
  account: string;
42
- password: string;
40
+ device_id?: string;
43
41
  }
44
42
  export interface OtpLoginInput {
43
+ grant_type: string;
44
+ username: string;
45
+ otp_code: string;
46
+ client_id: string;
47
+ client_secret: string;
48
+ device_id?: string;
49
+ }
50
+ export interface RegisterUserInput extends JsonObject {
45
51
  phone?: string;
46
52
  email?: string;
47
- code: string;
53
+ national_code?: string;
54
+ role?: string;
55
+ roles?: string[];
48
56
  }
49
- export interface RegisterUserInput {
57
+ export interface CreateUserInput extends JsonObject {
50
58
  phone?: string;
51
59
  email?: string;
52
60
  national_code?: string;
53
61
  password?: string;
54
- role?: string;
62
+ roles: string[];
55
63
  }
56
64
  export interface UpdateUserInput {
57
65
  phone?: string | null;
@@ -59,45 +67,75 @@ export interface UpdateUserInput {
59
67
  national_code?: string | null;
60
68
  }
61
69
  export interface ChangePasswordInput {
62
- password: string;
63
- password_confirmation?: string;
64
- current_password?: string;
70
+ password?: string;
65
71
  }
66
72
  export interface ChangeRolesInput {
67
- role_ids?: Identifier[];
68
- roles?: string[];
73
+ roles: string[];
69
74
  }
70
75
  export interface SetUserStatusInput {
71
- status: string | number | boolean;
76
+ enabled: boolean;
77
+ }
78
+ export interface CreateRoleInput {
79
+ name: string;
80
+ permissions?: string[];
72
81
  }
73
82
  export interface UpdateRoleInput {
74
- permissions: Identifier[];
83
+ permissions: string[];
84
+ }
85
+ export interface AuthTokens extends Record<string, string | number> {
86
+ access_token: string;
87
+ refresh_token: string;
88
+ expires_in: number;
89
+ scope: string;
75
90
  }
76
- export interface AuthTokensResponse {
77
- access_token?: string;
78
- refresh_token?: string;
79
- token?: string;
80
- token_type?: string;
81
- expires_in?: number;
82
- user?: User;
91
+ export interface AuthTokensResponse extends ApiEnvelope<AuthTokens> {
83
92
  }
84
93
  export interface ValidateSessionData {
85
- valid: boolean;
86
- user?: User;
94
+ user_id: string;
87
95
  }
88
96
  export interface ValidateSessionResponse extends ApiEnvelope<ValidateSessionData> {
89
97
  }
90
- export interface UserResponse extends ResourceResponse<User> {
98
+ export interface UserData extends JsonObject {
99
+ user: User;
100
+ }
101
+ export interface UserResponse extends ApiEnvelope<UserData> {
102
+ }
103
+ export interface UserListData extends JsonObject {
104
+ users: User[];
105
+ total: number;
106
+ page: number;
107
+ per_page: number;
108
+ }
109
+ export interface UserListResponse extends ApiEnvelope<UserListData> {
110
+ }
111
+ export interface UserSelf extends JsonObject {
112
+ id: string;
113
+ phone?: string | null;
114
+ email?: string | null;
115
+ national_code?: string | null;
116
+ status: number;
117
+ roles: Role[];
118
+ permissions: Permission[];
119
+ }
120
+ export interface UserSelfResponse extends ApiEnvelope<UserSelf> {
121
+ }
122
+ export interface RoleData extends JsonObject {
123
+ role: Role;
124
+ }
125
+ export interface RoleResponse extends ApiEnvelope<RoleData> {
91
126
  }
92
- export interface UserListResponse extends ResourceListResponse<User> {
127
+ export interface RoleListData extends JsonObject {
128
+ roles: Role[];
93
129
  }
94
- export interface RoleResponse extends ResourceResponse<Role> {
130
+ export interface RoleListResponse extends ApiEnvelope<RoleListData> {
95
131
  }
96
- export interface RoleListResponse extends ResourceListResponse<Role> {
132
+ export interface PermissionListData extends JsonObject {
133
+ permissions: Permission[];
134
+ services: string[];
97
135
  }
98
- export interface PermissionResponse extends ResourceResponse<Permission> {
136
+ export interface PermissionResponse extends ApiEnvelope<Permission> {
99
137
  }
100
- export interface PermissionListResponse extends ResourceListResponse<Permission> {
138
+ export interface PermissionListResponse extends ApiEnvelope<PermissionListData> {
101
139
  }
102
140
  export interface OAuthProviderListResponse extends ApiEnvelope<OAuthProvider[]> {
103
141
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAG,MAAM,kBAAkB,CAAC;AAC5H,MAAM,WAAW,IAAI;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC9B;AACD,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AACD,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD,MAAM,WAAW,UAAU;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC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,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;CAAE;AACzG,MAAM,WAAW,kBAAmB,SAAQ,WAAW,CAAC,UAAU,CAAC;CAClE;AACD,MAAM,WAAW,sBAAuB,SAAQ,WAAW,CAAC,kBAAkB,CAAC;CAC9E;AACD,MAAM,WAAW,yBAA0B,SAAQ,WAAW,CAAC,aAAa,EAAE,CAAC;CAC9E;AACD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAC5D"}
package/package.json CHANGED
@@ -1 +1,20 @@
1
- { "name": "@faiber/faiber-idp", "version": "0.2.0", "type": "module", "sideEffects": false, "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } }, "files": ["dist"], "dependencies": { "@faiber/sdk-core": "0.2.0" } }
1
+ {
2
+ "name": "@faiber/faiber-idp",
3
+ "version": "0.2.2",
4
+ "type": "module",
5
+ "sideEffects": false,
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "@faiber/sdk-core": "0.2.2"
19
+ }
20
+ }