@buildbase/sdk 0.0.10 → 0.0.12
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 +2 -1
- package/dist/index.d.ts +1099 -33
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/saas-os.css +1 -1
- package/dist/types/api/types.d.ts +83 -4
- package/dist/types/components/ErrorBoundary.d.ts +49 -2
- package/dist/types/components/features/index.d.ts +109 -0
- package/dist/types/components/user/auth.d.ts +64 -0
- package/dist/types/components/user/role.d.ts +70 -0
- package/dist/types/contexts/AuthContext/actions.d.ts +1 -0
- package/dist/types/contexts/AuthContext/reducer.d.ts +9 -3
- package/dist/types/contexts/AuthContext/types.d.ts +2 -0
- package/dist/types/contexts/shared/useAppSelector.d.ts +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/lib/api-utils.d.ts +164 -0
- package/dist/types/lib/error-handler.d.ts +40 -0
- package/dist/types/providers/auth/hooks.d.ts +67 -6
- package/dist/types/providers/auth/types.d.ts +7 -3
- package/dist/types/providers/os/hooks.d.ts +40 -1
- package/dist/types/providers/user/hooks.d.ts +71 -0
- package/dist/types/providers/workspace/api.d.ts +42 -2
- package/dist/types/providers/workspace/hooks.d.ts +105 -0
- package/dist/types/providers/workspace/subscription-hooks.d.ts +399 -19
- package/package.json +14 -12
package/README.md
CHANGED
|
@@ -212,7 +212,7 @@ const {
|
|
|
212
212
|
isAuthenticated, // Boolean: true if user is authenticated
|
|
213
213
|
isLoading, // Boolean: true when checking authentication status
|
|
214
214
|
isRedirecting, // Boolean: true when redirecting for OAuth
|
|
215
|
-
status, //
|
|
215
|
+
status, // AuthStatus: 'loading' | 'redirecting' | 'authenticating' | 'authenticated' | 'unauthenticated' (use AuthStatus enum for type-safe checks)
|
|
216
216
|
signIn, // Function: initiates sign-in flow
|
|
217
217
|
signOut, // Function: signs out the user
|
|
218
218
|
openWorkspaceSettings, // Function: opens workspace settings dialog
|
|
@@ -529,6 +529,7 @@ function SettingsExample() {
|
|
|
529
529
|
### Enums
|
|
530
530
|
|
|
531
531
|
- `ApiVersion` - API version enum (currently only `V1`)
|
|
532
|
+
- `AuthStatus` - Auth status enum: `loading` \| `redirecting` \| `authenticating` \| `authenticated` \| `unauthenticated`. Use with `useSaaSAuth().status`; `isLoading`, `isAuthenticated`, and `isRedirecting` are derived from it.
|
|
532
533
|
|
|
533
534
|
### Types
|
|
534
535
|
|