@scalemule/nextjs 0.1.52 → 0.1.54

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.
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, A as ApiError, a9 as StorageFile } from './index-BQgmT53x.mjs';
3
+ import { U as User, A as ApiError, ad as StorageFile } from './index-2PnO4RAF.mjs';
4
4
 
5
5
  interface MockUserOptions {
6
6
  id?: string;
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, A as ApiError, a9 as StorageFile } from './index-BQgmT53x.js';
3
+ import { U as User, A as ApiError, ad as StorageFile } from './index-2PnO4RAF.js';
4
4
 
5
5
  interface MockUserOptions {
6
6
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import { MoneyClient } from '@scalemule/money';
2
- import { A as ApiError, $ as RegisterRequest, p as ClientContext, U as User, L as LoginResponse, v as LoginRequest, c as ListFilesParams, t as ListFilesResponse, a9 as StorageFile, af as UploadResponse } from './index-BQgmT53x.js';
2
+ import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-2PnO4RAF.js';
3
3
 
4
4
  /**
5
5
  * Server-Side ScaleMule Client
@@ -49,6 +49,16 @@ declare class ScaleMuleServer {
49
49
  */
50
50
  private request;
51
51
  auth: {
52
+ /** Issue a 60-second, single-use transfer code after a server OAuth callback. */
53
+ createSessionHandoff: (sessionToken: string, audience: string) => Promise<{
54
+ code: string;
55
+ expires_in: number;
56
+ }>;
57
+ /** Exchange only on the server; write the returned session into an HTTP-only cookie. */
58
+ exchangeSessionHandoff: (code: string, audience: string) => Promise<{
59
+ session_token: string;
60
+ user_id: string;
61
+ }>;
52
62
  /**
53
63
  * Register a new user
54
64
  */
@@ -1,5 +1,5 @@
1
1
  import { MoneyClient } from '@scalemule/money';
2
- import { A as ApiError, $ as RegisterRequest, p as ClientContext, U as User, L as LoginResponse, v as LoginRequest, c as ListFilesParams, t as ListFilesResponse, a9 as StorageFile, af as UploadResponse } from './index-BQgmT53x.mjs';
2
+ import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-2PnO4RAF.mjs';
3
3
 
4
4
  /**
5
5
  * Server-Side ScaleMule Client
@@ -49,6 +49,16 @@ declare class ScaleMuleServer {
49
49
  */
50
50
  private request;
51
51
  auth: {
52
+ /** Issue a 60-second, single-use transfer code after a server OAuth callback. */
53
+ createSessionHandoff: (sessionToken: string, audience: string) => Promise<{
54
+ code: string;
55
+ expires_in: number;
56
+ }>;
57
+ /** Exchange only on the server; write the returned session into an HTTP-only cookie. */
58
+ exchangeSessionHandoff: (code: string, audience: string) => Promise<{
59
+ session_token: string;
60
+ user_id: string;
61
+ }>;
52
62
  /**
53
63
  * Register a new user
54
64
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/nextjs",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "ScaleMule SDK for Next.js applications - authentication, storage, and user management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@scalemule/ledvery": "^0.0.1",
70
70
  "@scalemule/money": "^0.0.1",
71
- "@scalemule/sdk": "^0.0.68"
71
+ "@scalemule/sdk": "^0.0.69"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "next": ">=14.0.0",