@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.
Files changed (71) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +14 -1
  3. package/dist/ai.cjs +1 -1
  4. package/dist/ai.d.cts +1 -1
  5. package/dist/ai.d.ts +1 -1
  6. package/dist/ai.mjs +1 -1
  7. package/dist/auth.cjs +844 -803
  8. package/dist/auth.d.cts +1 -1
  9. package/dist/auth.d.ts +1 -1
  10. package/dist/auth.mjs +841 -800
  11. package/dist/build-guard.cjs +186 -82
  12. package/dist/build-guard.d.cts +53 -1
  13. package/dist/build-guard.d.ts +53 -1
  14. package/dist/build-guard.mjs +175 -74
  15. package/dist/catalog.cjs +1 -1
  16. package/dist/catalog.d.cts +1 -1
  17. package/dist/catalog.d.ts +1 -1
  18. package/dist/catalog.mjs +1 -1
  19. package/dist/checkout.cjs +62 -49
  20. package/dist/checkout.d.cts +1 -1
  21. package/dist/checkout.d.ts +1 -1
  22. package/dist/checkout.mjs +62 -49
  23. package/dist/db-react.d.cts +1 -1
  24. package/dist/db-react.d.ts +1 -1
  25. package/dist/db.cjs +200 -187
  26. package/dist/db.d.cts +1 -1
  27. package/dist/db.d.ts +1 -1
  28. package/dist/db.mjs +193 -180
  29. package/dist/entitlements.d.cts +1 -1
  30. package/dist/entitlements.d.ts +1 -1
  31. package/dist/firestore-compat.d.cts +1 -1
  32. package/dist/firestore-compat.d.ts +1 -1
  33. package/dist/index.cjs +880 -839
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.mjs +847 -806
  37. package/dist/mobile.cjs +328 -276
  38. package/dist/mobile.d.cts +12 -2
  39. package/dist/mobile.d.ts +12 -2
  40. package/dist/mobile.mjs +328 -276
  41. package/dist/mocks.cjs +5 -5
  42. package/dist/mocks.d.cts +2 -2
  43. package/dist/mocks.d.ts +2 -2
  44. package/dist/mocks.mjs +4 -4
  45. package/dist/notifications.cjs +1 -1
  46. package/dist/notifications.d.cts +1 -1
  47. package/dist/notifications.d.ts +1 -1
  48. package/dist/notifications.mjs +1 -1
  49. package/dist/react.cjs +119 -119
  50. package/dist/react.d.cts +8 -2
  51. package/dist/react.d.ts +8 -2
  52. package/dist/react.mjs +119 -119
  53. package/dist/support.cjs +1 -1
  54. package/dist/support.d.cts +1 -1
  55. package/dist/support.d.ts +1 -1
  56. package/dist/support.mjs +1 -1
  57. package/dist/telemetry.cjs +62 -49
  58. package/dist/telemetry.d.cts +1 -1
  59. package/dist/telemetry.d.ts +1 -1
  60. package/dist/telemetry.mjs +62 -49
  61. package/dist/{types-yv3EDKg2.d.cts → types-Bl_4HROd.d.cts} +62 -3
  62. package/dist/{types-BYPk_3HR.d.ts → types-Bqnsqvow.d.ts} +62 -3
  63. package/dist/usage.cjs +1 -1
  64. package/dist/usage.d.cts +1 -1
  65. package/dist/usage.d.ts +1 -1
  66. package/dist/usage.mjs +1 -1
  67. package/dist/webhooks.cjs +1 -1
  68. package/dist/webhooks.d.cts +1 -1
  69. package/dist/webhooks.d.ts +1 -1
  70. package/dist/webhooks.mjs +1 -1
  71. 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-yv3EDKg2.cjs';
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
- signOut(): Promise<void>;
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-BYPk_3HR.js';
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
- signOut(): Promise<void>;
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 {