@settlemint/dalp-sdk 3.1.19-main.34868848362 → 3.1.19-main.34886706098
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/dist/auth/client.d.ts +1 -6
- package/dist/auth/live.d.ts +13 -1
- package/dist/auth.js +1 -1
- package/dist/bundler.js +4 -3
- package/dist/{chunk-jv6agqgk.js → chunk-67fwk1hy.js} +6 -1
- package/dist/chunk-7y52nnrf.js +30 -0
- package/dist/chunk-h0z2r2hv.js +4 -0
- package/dist/{chunk-shp8v4ws.js → chunk-tmyd93kk.js} +0 -1
- package/dist/chunk-xp7b97rw.js +12 -0
- package/dist/effect.js +2 -2
- package/dist/generated/api-types.d.ts +6282 -333
- package/dist/generated/console-routes.d.ts +12 -0
- package/dist/generated/routes.d.ts +1 -1
- package/dist/index.js +7 -6
- package/dist/proxy/client-core.d.ts +39 -0
- package/dist/proxy/client.d.ts +7 -21
- package/dist/react-query.js +1 -1
- package/dist/routes/console.d.ts +22 -0
- package/dist/routes/console.js +20 -0
- package/dist/routes/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-dz1jx8y5.js +0 -33
- package/dist/chunk-w4wwzh4s.js +0 -4
package/dist/auth/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DalpFetch } from "../client/ssr-fetch.ts";
|
|
2
|
-
import type { AuthGetApiKeyListResponse, AuthGetOrganizationListResponse, AuthPostApiKeyCreateData, AuthPostApiKeyCreateResponse, AuthPostApiKeyDeleteData, AuthPostApiKeyDeleteResponse,
|
|
2
|
+
import type { AuthGetApiKeyListResponse, AuthGetOrganizationListResponse, AuthPostApiKeyCreateData, AuthPostApiKeyCreateResponse, AuthPostApiKeyDeleteData, AuthPostApiKeyDeleteResponse, AuthPostOrganizationAcceptInvitationData, AuthPostOrganizationAcceptInvitationResponse, AuthPostOrganizationCreateData, AuthPostOrganizationCreateResponse, AuthPostOrganizationRemoveMemberData, AuthPostOrganizationRemoveMemberResponse, AuthPostRevokeOtherSessionsResponse, AuthPostRevokeSessionData, AuthPostRevokeSessionResponse, AuthPostTwoFactorDisableData, AuthPostTwoFactorDisableResponse, AuthPostTwoFactorEnableData, AuthPostTwoFactorEnableResponse, AuthPostTwoFactorVerifyBackupCodeData, AuthPostTwoFactorVerifyBackupCodeResponse, AuthPostTwoFactorVerifyTotpData, AuthPostTwoFactorVerifyTotpResponse, CreateOrganizationInvitationData, CreateOrganizationInvitationResponse, GetSessionResponse, ListUserSessionsResponse, Member, SetActiveOrganizationData, SetActiveOrganizationResponse } from "../generated/api-types.d.ts";
|
|
3
3
|
import { Secret } from "../secret.ts";
|
|
4
4
|
import type { CookieStoreShape } from "../transport/cookie-store.ts";
|
|
5
5
|
export interface DalpAuthClientConfig {
|
|
@@ -103,11 +103,6 @@ export interface DalpCliAuthClient {
|
|
|
103
103
|
readonly disable: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorDisableData>, AuthPostTwoFactorDisableResponse>;
|
|
104
104
|
readonly verifyTotp: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyTotpData>, AuthPostTwoFactorVerifyTotpResponse>;
|
|
105
105
|
readonly verifyBackupCode: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyBackupCodeData>, AuthPostTwoFactorVerifyBackupCodeResponse>;
|
|
106
|
-
readonly generateBackupCodes: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorGenerateBackupCodesData>, AuthPostTwoFactorGenerateBackupCodesResponse>;
|
|
107
|
-
};
|
|
108
|
-
readonly device: {
|
|
109
|
-
readonly approve: DalpRequiredAuthOperation<RequestBody<AuthPostDeviceApproveData>, AuthPostDeviceApproveResponse>;
|
|
110
|
-
readonly deny: DalpRequiredAuthOperation<RequestBody<AuthPostDeviceDenyData>, AuthPostDeviceDenyResponse>;
|
|
111
106
|
};
|
|
112
107
|
}
|
|
113
108
|
export declare function decodeDalpAuthClientConfig(input: DalpAuthClientConfig): Promise<DecodedDalpAuthClientConfig>;
|
package/dist/auth/live.d.ts
CHANGED
|
@@ -50,8 +50,20 @@ type ConfiguredBetterAuthClientOptions = Omit<BetterAuthClientOptions, "plugins"
|
|
|
50
50
|
plugins: ConfiguredBetterAuthPluginTuple;
|
|
51
51
|
};
|
|
52
52
|
export type InferredBetterAuthClient = AuthClient<ConfiguredBetterAuthClientOptions>;
|
|
53
|
+
/**
|
|
54
|
+
* Better Auth members whose routes the mount does not serve, or that are a
|
|
55
|
+
* browser page's step rather than an integrator call. Device approve and deny
|
|
56
|
+
* belong to the verification page, so a CLI keeps only the code and token
|
|
57
|
+
* exchange. Account deletion stays mounted for the signed-in user's
|
|
58
|
+
* email-gated flow, which an SDK caller never starts.
|
|
59
|
+
*/
|
|
60
|
+
type UnservedAuthClientMembers = "deleteUser" | "revokeSessions" | "sendVerificationEmail";
|
|
61
|
+
interface DalpDeviceAuthClient {
|
|
62
|
+
readonly device: Omit<InferredBetterAuthClient["device"], "approve" | "deny">;
|
|
63
|
+
readonly passkey: Omit<InferredBetterAuthClient["passkey"], "updatePasskey">;
|
|
64
|
+
}
|
|
53
65
|
/** Better Auth client with the exact DALP plugin surface and stable operation types. */
|
|
54
|
-
export type DalpAuthClient = Omit<InferredBetterAuthClient, keyof DalpCliAuthClient | keyof DalpWalletAuthClient> & DalpCliAuthClient & DalpWalletAuthClient;
|
|
66
|
+
export type DalpAuthClient = Omit<InferredBetterAuthClient, keyof DalpCliAuthClient | keyof DalpWalletAuthClient | keyof DalpDeviceAuthClient | UnservedAuthClientMembers> & DalpDeviceAuthClient & DalpCliAuthClient & DalpWalletAuthClient;
|
|
55
67
|
export declare function createDalpAuthClient(input: DalpAuthClientConfig): Promise<DalpAuthClient>;
|
|
56
68
|
export declare const makeDalpAuthClient: typeof createDalpAuthClient;
|
|
57
69
|
export {};
|
package/dist/auth.js
CHANGED
package/dist/bundler.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-h0z2r2hv.js";
|
|
2
2
|
import"./chunk-j4sxrfzz.js";
|
|
3
|
-
import"./chunk-
|
|
3
|
+
import"./chunk-tmyd93kk.js";
|
|
4
4
|
import"./chunk-xp3fx2yt.js";
|
|
5
5
|
import {
|
|
6
6
|
createDalpClient2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-xp7b97rw.js";
|
|
8
|
+
import"./chunk-7y52nnrf.js";
|
|
8
9
|
|
|
9
10
|
// src/bundler.ts
|
|
10
11
|
import { getAddress, hexToBigInt, isHex } from "viem";
|
|
@@ -102,7 +102,7 @@ function createCookieStoreFetch2(cookieStore, fetchImpl = globalThis.fetch) {
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@settlemint/dalp-sdk",
|
|
105
|
-
version: "3.1.19-main.
|
|
105
|
+
version: "3.1.19-main.34886706098",
|
|
106
106
|
private: false,
|
|
107
107
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
108
108
|
homepage: "https://settlemint.com",
|
|
@@ -190,6 +190,11 @@ var package_default = {
|
|
|
190
190
|
types: "./dist/routes/index.d.ts",
|
|
191
191
|
import: "./dist/routes/index.js",
|
|
192
192
|
default: "./dist/routes/index.js"
|
|
193
|
+
},
|
|
194
|
+
"./routes/console": {
|
|
195
|
+
types: "./dist/routes/console.d.ts",
|
|
196
|
+
import: "./dist/routes/console.js",
|
|
197
|
+
default: "./dist/routes/console.js"
|
|
193
198
|
}
|
|
194
199
|
},
|
|
195
200
|
publishConfig: {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createTransport,
|
|
3
|
+
streamRequest,
|
|
4
|
+
sendRequest,
|
|
5
|
+
createFetchExecutor,
|
|
6
|
+
createTanstackFactories
|
|
7
|
+
} from "./chunk-tmyd93kk.js";
|
|
8
|
+
import {
|
|
9
|
+
buildProxy,
|
|
10
|
+
findRoute
|
|
11
|
+
} from "./chunk-rb8k4w3q.js";
|
|
12
|
+
|
|
13
|
+
// src/proxy/client-core.ts
|
|
14
|
+
function buildDalpClient(options, table) {
|
|
15
|
+
const transport = createTransport(options);
|
|
16
|
+
const api = buildProxy(table, createFetchExecutor(transport), createTanstackFactories(transport));
|
|
17
|
+
return {
|
|
18
|
+
api,
|
|
19
|
+
conditionalRequests: transport.conditionalRequests,
|
|
20
|
+
execute: async (routeId, input, callOptions) => {
|
|
21
|
+
const route = findRoute(table, routeId);
|
|
22
|
+
if (route === undefined) {
|
|
23
|
+
throw new TypeError(`Unknown DALP route \`${routeId}\``);
|
|
24
|
+
}
|
|
25
|
+
return route.serializer === "sse" ? streamRequest(transport, route, input, callOptions) : await sendRequest(transport, route, input, callOptions);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { buildDalpClient };
|