@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.
- package/README.md +51 -5
- package/dist/client.d.mts +6 -1
- package/dist/client.d.ts +6 -1
- package/dist/client.js +24 -4
- package/dist/client.mjs +24 -4
- package/dist/{index-BQgmT53x.d.mts → index-2PnO4RAF.d.mts} +19 -5
- package/dist/{index-BQgmT53x.d.ts → index-2PnO4RAF.d.ts} +19 -5
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +88 -39
- package/dist/index.mjs +88 -39
- package/dist/server/auth.d.mts +7 -2
- package/dist/server/auth.d.ts +7 -2
- package/dist/server/auth.js +231 -38
- package/dist/server/auth.mjs +231 -39
- package/dist/server/index.d.mts +24 -5
- package/dist/server/index.d.ts +24 -5
- package/dist/server/index.js +256 -64
- package/dist/server/index.mjs +256 -64
- package/dist/server/webhook-handler.d.mts +2 -2
- package/dist/server/webhook-handler.d.ts +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{webhook-handler-44RRJH-r.d.ts → webhook-handler-1nnrmWT0.d.ts} +11 -1
- package/dist/{webhook-handler-DKt6H8FB.d.mts → webhook-handler-DNpCXDDA.d.mts} +11 -1
- package/package.json +2 -2
package/dist/testing.d.mts
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
71
|
+
"@scalemule/sdk": "^0.0.69"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"next": ">=14.0.0",
|