@neetru/sdk 3.8.1 → 3.9.1
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/CHANGELOG.md +46 -0
- package/README.md +14 -1
- package/dist/ai.cjs +1 -1
- package/dist/ai.d.cts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.mjs +1 -1
- package/dist/auth.cjs +844 -803
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.mjs +841 -800
- package/dist/build-guard.cjs +186 -82
- package/dist/build-guard.d.cts +53 -1
- package/dist/build-guard.d.ts +53 -1
- package/dist/build-guard.mjs +175 -74
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/checkout.cjs +62 -49
- package/dist/checkout.d.cts +1 -1
- package/dist/checkout.d.ts +1 -1
- package/dist/checkout.mjs +62 -49
- package/dist/db-react.d.cts +1 -1
- package/dist/db-react.d.ts +1 -1
- package/dist/db.cjs +200 -187
- package/dist/db.d.cts +1 -1
- package/dist/db.d.ts +1 -1
- package/dist/db.mjs +193 -180
- package/dist/entitlements.d.cts +1 -1
- package/dist/entitlements.d.ts +1 -1
- package/dist/firestore-compat.d.cts +1 -1
- package/dist/firestore-compat.d.ts +1 -1
- package/dist/index.cjs +880 -839
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +847 -806
- package/dist/mobile.cjs +328 -276
- package/dist/mobile.d.cts +12 -2
- package/dist/mobile.d.ts +12 -2
- package/dist/mobile.mjs +328 -276
- package/dist/mocks.cjs +5 -5
- package/dist/mocks.d.cts +2 -2
- package/dist/mocks.d.ts +2 -2
- package/dist/mocks.mjs +4 -4
- package/dist/notifications.cjs +1 -1
- package/dist/notifications.d.cts +1 -1
- package/dist/notifications.d.ts +1 -1
- package/dist/notifications.mjs +1 -1
- package/dist/react.cjs +119 -119
- package/dist/react.d.cts +8 -2
- package/dist/react.d.ts +8 -2
- package/dist/react.mjs +119 -119
- package/dist/support.cjs +1 -1
- package/dist/support.d.cts +1 -1
- package/dist/support.d.ts +1 -1
- package/dist/support.mjs +1 -1
- package/dist/telemetry.cjs +62 -49
- package/dist/telemetry.d.cts +1 -1
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.mjs +62 -49
- package/dist/{types-yv3EDKg2.d.cts → types-Bl_4HROd.d.cts} +62 -3
- package/dist/{types-BYPk_3HR.d.ts → types-Bqnsqvow.d.ts} +62 -3
- package/dist/usage.cjs +1 -1
- package/dist/usage.d.cts +1 -1
- package/dist/usage.d.ts +1 -1
- package/dist/usage.mjs +1 -1
- package/dist/webhooks.cjs +1 -1
- package/dist/webhooks.d.cts +1 -1
- package/dist/webhooks.d.ts +1 -1
- package/dist/webhooks.mjs +1 -1
- package/package.json +9 -1
package/dist/mobile.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as NeetruClientConfig, v as CompleteSignInResult, a6 as NeetruUser, m as AuthStateListener } from './types-
|
|
1
|
+
import { Y as NeetruClientConfig, v as CompleteSignInResult, a6 as NeetruUser, m as AuthStateListener, am as SignOutResult } from './types-Bl_4HROd.cjs';
|
|
2
2
|
import 'drizzle-orm/node-postgres';
|
|
3
3
|
import './errors.cjs';
|
|
4
4
|
|
|
@@ -122,7 +122,17 @@ interface MobileAuthNamespace {
|
|
|
122
122
|
* o refresh_token e o access_token. A limpeza local acontece SEMPRE, mesmo
|
|
123
123
|
* se o servidor estiver fora; a revogação é melhor esforço (avisa no console).
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Encerra a sessão: limpa o storage do aparelho e revoga `refresh_token` +
|
|
127
|
+
* `access_token` no `/api/v1/oauth/revoke` do Core.
|
|
128
|
+
*
|
|
129
|
+
* A limpeza local acontece SEMPRE (o usuário pediu pra sair — inclusive
|
|
130
|
+
* offline). A revogação remota pode falhar, e NÃO falha em silêncio: o
|
|
131
|
+
* resultado traz `remoteRevocation: 'failed'`, e aí o `refresh_token` de 30
|
|
132
|
+
* dias pode seguir válido no servidor. Não lança — lançar só esconderia o
|
|
133
|
+
* problema no `try/catch` que todo caller de signOut tem.
|
|
134
|
+
*/
|
|
135
|
+
signOut(): Promise<SignOutResult>;
|
|
126
136
|
}
|
|
127
137
|
/** 3.8.0 — resposta do `/userinfo` (escopo decide quais campos vêm). */
|
|
128
138
|
interface MobileUserInfo {
|
package/dist/mobile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as NeetruClientConfig, v as CompleteSignInResult, a6 as NeetruUser, m as AuthStateListener } from './types-
|
|
1
|
+
import { Y as NeetruClientConfig, v as CompleteSignInResult, a6 as NeetruUser, m as AuthStateListener, am as SignOutResult } from './types-Bqnsqvow.js';
|
|
2
2
|
import 'drizzle-orm/node-postgres';
|
|
3
3
|
import './errors.js';
|
|
4
4
|
|
|
@@ -122,7 +122,17 @@ interface MobileAuthNamespace {
|
|
|
122
122
|
* o refresh_token e o access_token. A limpeza local acontece SEMPRE, mesmo
|
|
123
123
|
* se o servidor estiver fora; a revogação é melhor esforço (avisa no console).
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
/**
|
|
126
|
+
* Encerra a sessão: limpa o storage do aparelho e revoga `refresh_token` +
|
|
127
|
+
* `access_token` no `/api/v1/oauth/revoke` do Core.
|
|
128
|
+
*
|
|
129
|
+
* A limpeza local acontece SEMPRE (o usuário pediu pra sair — inclusive
|
|
130
|
+
* offline). A revogação remota pode falhar, e NÃO falha em silêncio: o
|
|
131
|
+
* resultado traz `remoteRevocation: 'failed'`, e aí o `refresh_token` de 30
|
|
132
|
+
* dias pode seguir válido no servidor. Não lança — lançar só esconderia o
|
|
133
|
+
* problema no `try/catch` que todo caller de signOut tem.
|
|
134
|
+
*/
|
|
135
|
+
signOut(): Promise<SignOutResult>;
|
|
126
136
|
}
|
|
127
137
|
/** 3.8.0 — resposta do `/userinfo` (escopo decide quais campos vêm). */
|
|
128
138
|
interface MobileUserInfo {
|