@capxul/sdk-react 0.2.0-alpha.3 → 0.2.0-alpha.5
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/index.d.mts +259 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +524 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +37 -75
- package/CHANGELOG.md +0 -283
- package/LICENSE +0 -44
- package/README.md +0 -193
- package/dist/index.cjs +0 -1147
- package/dist/index.d.cts +0 -740
- package/dist/index.d.ts +0 -740
- package/dist/index.js +0 -1086
- package/dist/proof/index.cjs +0 -12785
- package/dist/proof/index.d.cts +0 -753
- package/dist/proof/index.d.ts +0 -753
- package/dist/proof/index.js +0 -12758
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { QueryClient, UseMutationResult, UseQueryResult } from "@tanstack/react-query";
|
|
3
|
+
import { Account, AccountRequirement, AccountStatus, AssignRoleInput, CapxulClient, CapxulSigner, CreateOrgInput, InviteMemberInput, MemberView, OrgId, OrgSpendInput, OrgSpendResult, OrgView, ProductionAdapterInput, Profile, RemoveMemberInput, RoleView, Session, TransferInput, TransferResult } from "@capxul/sdk";
|
|
4
|
+
import { CapxulError } from "@capxul/config";
|
|
5
|
+
import { Account as Account$1, AccountId, Money, SubAccount, SubAccountId } from "@capxul/types";
|
|
6
|
+
|
|
7
|
+
//#region src/provider.d.ts
|
|
8
|
+
interface CapxulProviderProps {
|
|
9
|
+
/** Publishable key — the provider bootstraps the client (browser / app path). */
|
|
10
|
+
readonly publishableKey?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Pre-built client (Node / server consumers that bootstrap before any React
|
|
13
|
+
* tree, and test harnesses). Mutually exclusive with `publishableKey`.
|
|
14
|
+
*/
|
|
15
|
+
readonly client?: CapxulClient;
|
|
16
|
+
/** Init-time account readiness target. Default `"none"`. */
|
|
17
|
+
readonly requirement?: AccountRequirement;
|
|
18
|
+
/** Optional app origin forwarded to the SDK bootstrap request. */
|
|
19
|
+
readonly origin?: ProductionAdapterInput["origin"];
|
|
20
|
+
/** Optional bootstrap host override for live/dev environments. */
|
|
21
|
+
readonly bootstrapBaseUrl?: ProductionAdapterInput["bootstrapBaseUrl"];
|
|
22
|
+
/** Optional auth persistence adapter; Node CLIs pass their filesystem cache. */
|
|
23
|
+
readonly authCache?: ProductionAdapterInput["authCache"];
|
|
24
|
+
/** Optional method invocation timeout in milliseconds. */
|
|
25
|
+
readonly invokeTimeoutMs?: ProductionAdapterInput["invokeTimeoutMs"];
|
|
26
|
+
/**
|
|
27
|
+
* Consumer-held signer for the backend-orchestrated deploy lane
|
|
28
|
+
* (backend-orchestrated-deploy.md). Required for `requirement: "deployed"`.
|
|
29
|
+
*/
|
|
30
|
+
readonly signer?: CapxulSigner;
|
|
31
|
+
/** Bring your own QueryClient; otherwise the provider creates one. */
|
|
32
|
+
readonly queryClient?: QueryClient;
|
|
33
|
+
readonly children: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare function CapxulProvider(props: CapxulProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/internal/capxul-bootstrap-context.d.ts
|
|
38
|
+
type CapxulBootstrapStatus = "bootstrapping" | "ready" | "error";
|
|
39
|
+
interface CapxulBootstrapState {
|
|
40
|
+
readonly status: CapxulBootstrapStatus;
|
|
41
|
+
readonly error: CapxulError | null;
|
|
42
|
+
readonly retry: () => void;
|
|
43
|
+
}
|
|
44
|
+
declare function useCapxul(): CapxulBootstrapState;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/hooks/use-capxul-session.d.ts
|
|
47
|
+
type UseCapxulSessionReturn = UseQueryResult<Session | null, CapxulError>;
|
|
48
|
+
declare function useCapxulSession(): UseCapxulSessionReturn;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/hooks/use-capxul-profile.d.ts
|
|
51
|
+
type UseCapxulProfileReturn = UseQueryResult<Profile | null, CapxulError>;
|
|
52
|
+
declare function useCapxulProfile(): UseCapxulProfileReturn;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/hooks/use-capxul-account.d.ts
|
|
55
|
+
type UseCapxulAccountReturn = UseQueryResult<AccountStatus, CapxulError>;
|
|
56
|
+
declare function useCapxulAccount(): UseCapxulAccountReturn;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/hooks/use-capxul-account-balance.d.ts
|
|
59
|
+
type UseCapxulAccountBalanceReturn = UseQueryResult<Account, CapxulError>;
|
|
60
|
+
type UseCapxulAccountBalanceOptions = {
|
|
61
|
+
/** When false, skips the Convex readBalance action until the account ladder is ready. */readonly enabled?: boolean;
|
|
62
|
+
};
|
|
63
|
+
declare function useCapxulAccountBalance(options?: UseCapxulAccountBalanceOptions): UseCapxulAccountBalanceReturn;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/hooks/use-capxul-account-fund.d.ts
|
|
66
|
+
type UseCapxulAccountFundReturn = UseMutationResult<{
|
|
67
|
+
readonly txHash: string;
|
|
68
|
+
}, CapxulError, Money>;
|
|
69
|
+
declare function useCapxulAccountFund(): UseCapxulAccountFundReturn;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/hooks/use-capxul-sign-in.d.ts
|
|
72
|
+
interface SignInInput {
|
|
73
|
+
readonly email: string;
|
|
74
|
+
}
|
|
75
|
+
interface SignInSuccess {
|
|
76
|
+
readonly sessionId: string;
|
|
77
|
+
readonly expiresAt: number;
|
|
78
|
+
}
|
|
79
|
+
type UseCapxulSignInReturn = UseMutationResult<SignInSuccess, CapxulError, SignInInput>;
|
|
80
|
+
declare function useCapxulSignIn(): UseCapxulSignInReturn;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/hooks/use-capxul-verify-otp.d.ts
|
|
83
|
+
interface VerifyOtpInput {
|
|
84
|
+
readonly email: string;
|
|
85
|
+
readonly code: string;
|
|
86
|
+
}
|
|
87
|
+
type UseCapxulVerifyOtpReturn = UseMutationResult<Session, CapxulError, VerifyOtpInput>;
|
|
88
|
+
declare function useCapxulVerifyOtp(): UseCapxulVerifyOtpReturn;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/hooks/use-capxul-sign-out.d.ts
|
|
91
|
+
type UseCapxulSignOutReturn = UseMutationResult<void, CapxulError, void>;
|
|
92
|
+
declare function useCapxulSignOut(): UseCapxulSignOutReturn;
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/hooks/use-capxul-ensure-ready.d.ts
|
|
95
|
+
type UseCapxulEnsureReadyReturn = UseMutationResult<AccountStatus, CapxulError, void>;
|
|
96
|
+
declare function useCapxulEnsureReady(): UseCapxulEnsureReadyReturn;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/hooks/use-capxul-sub-accounts.d.ts
|
|
99
|
+
type UseCapxulSubAccountsListOptions = {
|
|
100
|
+
readonly enabled?: boolean;
|
|
101
|
+
};
|
|
102
|
+
type UseCapxulSubAccountsListReturn = UseQueryResult<readonly SubAccount[], CapxulError>;
|
|
103
|
+
declare function useCapxulSubAccountsList(accountId: AccountId | undefined, options?: UseCapxulSubAccountsListOptions): UseCapxulSubAccountsListReturn;
|
|
104
|
+
type UseCapxulSubAccountCreateReturn = UseMutationResult<SubAccount, CapxulError, {
|
|
105
|
+
readonly accountId: AccountId;
|
|
106
|
+
readonly name: string;
|
|
107
|
+
}>;
|
|
108
|
+
declare function useCapxulSubAccountCreate(): UseCapxulSubAccountCreateReturn;
|
|
109
|
+
type UseCapxulSubAccountRenameReturn = UseMutationResult<SubAccount, CapxulError, {
|
|
110
|
+
readonly accountId: AccountId;
|
|
111
|
+
readonly subAccountId: SubAccountId;
|
|
112
|
+
readonly name: string;
|
|
113
|
+
}>;
|
|
114
|
+
declare function useCapxulSubAccountRename(): UseCapxulSubAccountRenameReturn;
|
|
115
|
+
type UseCapxulSubAccountDeleteReturn = UseMutationResult<void, CapxulError, {
|
|
116
|
+
readonly accountId: AccountId;
|
|
117
|
+
readonly subAccountId: SubAccountId;
|
|
118
|
+
}>;
|
|
119
|
+
declare function useCapxulSubAccountDelete(): UseCapxulSubAccountDeleteReturn;
|
|
120
|
+
/**
|
|
121
|
+
* Move money between two of the SAME Account's balances (canon §5/§12). The
|
|
122
|
+
* consumer-facing labels are "Add money" (main → sub) and "Move money out"
|
|
123
|
+
* (sub → main), both calling `transfer`. `accountId` is carried only to
|
|
124
|
+
* invalidate the right cache keys; the SDK input itself is `{ from, to, amount }`.
|
|
125
|
+
*/
|
|
126
|
+
type UseCapxulTransferReturn = UseMutationResult<TransferResult, CapxulError, {
|
|
127
|
+
readonly accountId: AccountId;
|
|
128
|
+
} & TransferInput>;
|
|
129
|
+
declare function useCapxulTransfer(): UseCapxulTransferReturn;
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/hooks/use-capxul-orgs.d.ts
|
|
132
|
+
/**
|
|
133
|
+
* List the Orgs you belong to (canon §C1 "Org list" / §C3). Binds directly to
|
|
134
|
+
* the locked `capxul.orgs()` SDK method.
|
|
135
|
+
*/
|
|
136
|
+
type UseCapxulOrgsReturn = UseQueryResult<readonly OrgView[], CapxulError>;
|
|
137
|
+
type UseCapxulOrgsOptions = {
|
|
138
|
+
/**
|
|
139
|
+
* Gate the query on auth readiness. `client.orgs()` is a session-scoped
|
|
140
|
+
* authenticated read; firing it before the session token settles surfaces a
|
|
141
|
+
* spurious `NOT_AUTHENTICATED`. Consumers pass `enabled: <auth-ready>` (e.g.
|
|
142
|
+
* "the Organization surface is active") — mirrors `useCapxulSubAccountsList`.
|
|
143
|
+
* Defaults to `true` to preserve the bare `useCapxulOrgs()` call shape.
|
|
144
|
+
*/
|
|
145
|
+
readonly enabled?: boolean;
|
|
146
|
+
};
|
|
147
|
+
declare function useCapxulOrgs(options?: UseCapxulOrgsOptions): UseCapxulOrgsReturn;
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/hooks/use-capxul-org.d.ts
|
|
150
|
+
type UseCapxulOrgOptions = {
|
|
151
|
+
readonly enabled?: boolean;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* A single Org you belong to, resolved from `capxul.orgs()` and narrowed to the
|
|
155
|
+
* requested `orgId` (canon §C3). Returns `null` when the Org is not in your list.
|
|
156
|
+
* Gated by `orgId !== undefined`. RED until S1.
|
|
157
|
+
*/
|
|
158
|
+
type UseCapxulOrgReturn = UseQueryResult<OrgView | null, CapxulError>;
|
|
159
|
+
declare function useCapxulOrg(orgId: OrgId | undefined, options?: UseCapxulOrgOptions): UseCapxulOrgReturn;
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/hooks/use-capxul-org-members.d.ts
|
|
162
|
+
type UseCapxulOrgMembersOptions = {
|
|
163
|
+
readonly enabled?: boolean;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* The members of an Org (canon §C1 "Members" / §C3, D8/D9). Binds directly to
|
|
167
|
+
* the entity-scoped `capxul.org(orgId).members()` (D13). Gated by
|
|
168
|
+
* `orgId !== undefined`. RED until S3.
|
|
169
|
+
*/
|
|
170
|
+
type UseCapxulOrgMembersReturn = UseQueryResult<readonly MemberView[], CapxulError>;
|
|
171
|
+
declare function useCapxulOrgMembers(orgId: OrgId | undefined, options?: UseCapxulOrgMembersOptions): UseCapxulOrgMembersReturn;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/hooks/use-capxul-org-roles.d.ts
|
|
174
|
+
type UseCapxulOrgRolesOptions = {
|
|
175
|
+
readonly enabled?: boolean;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* The roles seeded on an Org (canon §C1 "Roles" / §C3, D4/D6). Binds directly
|
|
179
|
+
* to the entity-scoped `capxul.org(orgId).roles()` (D13). Gated by
|
|
180
|
+
* `orgId !== undefined`. RED until S2.
|
|
181
|
+
*/
|
|
182
|
+
type UseCapxulOrgRolesReturn = UseQueryResult<readonly RoleView[], CapxulError>;
|
|
183
|
+
declare function useCapxulOrgRoles(orgId: OrgId | undefined, options?: UseCapxulOrgRolesOptions): UseCapxulOrgRolesReturn;
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/hooks/use-capxul-org-deploy-roles.d.ts
|
|
186
|
+
type UseCapxulOrgDeployRolesReturn = UseMutationResult<readonly RoleView[], CapxulError, OrgId>;
|
|
187
|
+
declare function useCapxulOrgDeployRoles(): UseCapxulOrgDeployRolesReturn;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/hooks/use-capxul-org-treasury.d.ts
|
|
190
|
+
type UseCapxulOrgTreasuryOptions = {
|
|
191
|
+
readonly enabled?: boolean;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* The Org treasury — the real M2 `Account` over the Org Safe (canon §C3, D3).
|
|
195
|
+
* NEVER `AccountStatus` (the deploy-readiness ladder, no balance). Binds
|
|
196
|
+
* directly to the entity-scoped `capxul.org(orgId).treasury()` (D13). Gated by
|
|
197
|
+
* `orgId !== undefined`. RED until S1.
|
|
198
|
+
*/
|
|
199
|
+
type UseCapxulOrgTreasuryReturn = UseQueryResult<Account$1, CapxulError>;
|
|
200
|
+
declare function useCapxulOrgTreasury(orgId: OrgId | undefined, options?: UseCapxulOrgTreasuryOptions): UseCapxulOrgTreasuryReturn;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/hooks/use-capxul-create-org.d.ts
|
|
203
|
+
/**
|
|
204
|
+
* Create an Org (canon §C2 J1 / §C3, S1). Binds directly to the locked
|
|
205
|
+
* `capxul.createOrg(input)` SDK method. On success, invalidates the org list.
|
|
206
|
+
* RED until S1 — `mutate` rejects with `Errors.notImplemented("org","createOrg")`.
|
|
207
|
+
*/
|
|
208
|
+
type UseCapxulCreateOrgReturn = UseMutationResult<OrgView, CapxulError, CreateOrgInput>;
|
|
209
|
+
declare function useCapxulCreateOrg(): UseCapxulCreateOrgReturn;
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/hooks/use-capxul-invite-member.d.ts
|
|
212
|
+
/**
|
|
213
|
+
* Invite a member to an Org by email (canon §C2 J2 virality loop / §C3, S3, D8).
|
|
214
|
+
* Entity-scoped via the closed-over `orgId` (D13). Binds directly to
|
|
215
|
+
* `capxul.org(orgId).invite(input)`. On success, invalidates the member list.
|
|
216
|
+
* RED until S3 — `mutate` rejects with `Errors.notImplemented("org","invite")`.
|
|
217
|
+
*/
|
|
218
|
+
type UseCapxulInviteMemberReturn = UseMutationResult<MemberView, CapxulError, InviteMemberInput>;
|
|
219
|
+
declare function useCapxulInviteMember(orgId: OrgId | undefined): UseCapxulInviteMemberReturn;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/hooks/use-capxul-remove-member.d.ts
|
|
222
|
+
/**
|
|
223
|
+
* Remove a member from an Org (canon §C2 J2 / §C3, S3, D7/D8) — drives the
|
|
224
|
+
* on-chain REVOKE + Convex mirror. Keyed on the member's personal Safe address
|
|
225
|
+
* (D7). Entity-scoped via the closed-over `orgId` (D13). Binds directly to
|
|
226
|
+
* `capxul.org(orgId).removeMember(input)`. On success, invalidates the member
|
|
227
|
+
* list. RED until S3 — `mutate` rejects with
|
|
228
|
+
* `Errors.notImplemented("org","removeMember")`.
|
|
229
|
+
*/
|
|
230
|
+
type UseCapxulRemoveMemberReturn = UseMutationResult<void, CapxulError, RemoveMemberInput>;
|
|
231
|
+
declare function useCapxulRemoveMember(orgId: OrgId | undefined): UseCapxulRemoveMemberReturn;
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/hooks/use-capxul-assign-role.d.ts
|
|
234
|
+
/**
|
|
235
|
+
* Assign a role to a member (canon §C2 J2 / §C3, S3, D7/D9) — drives the
|
|
236
|
+
* on-chain GRANT + Convex mirror. Keyed on the member's personal Safe address
|
|
237
|
+
* (D7); the `role` label maps deterministically to the on-chain `roleKey` (D9).
|
|
238
|
+
* Entity-scoped via the closed-over `orgId` (D13). Binds directly to
|
|
239
|
+
* `capxul.org(orgId).assignRole(input)`. On success, invalidates the member
|
|
240
|
+
* list. RED until S3 — `mutate` rejects with
|
|
241
|
+
* `Errors.notImplemented("org","assignRole")`.
|
|
242
|
+
*/
|
|
243
|
+
type UseCapxulAssignRoleReturn = UseMutationResult<MemberView, CapxulError, AssignRoleInput>;
|
|
244
|
+
declare function useCapxulAssignRole(orgId: OrgId | undefined): UseCapxulAssignRoleReturn;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/hooks/use-capxul-org-spend.d.ts
|
|
247
|
+
/**
|
|
248
|
+
* Spend from an Org's scoped sub-account (canon §C2 J3+J4 capstone / §C3, S4,
|
|
249
|
+
* D5) — two-level gated (Level 1 Zodiac cap + Level 2 envelope scope/balance)
|
|
250
|
+
* one-UserOp spend via CapxulPayments. Entity-scoped via the closed-over
|
|
251
|
+
* `orgId` (D13). Binds directly to `capxul.org(orgId).spend(input)`. On success,
|
|
252
|
+
* invalidates the treasury (balance moved). RED until S4 — `mutate` rejects with
|
|
253
|
+
* `Errors.notImplemented("org","spend")`.
|
|
254
|
+
*/
|
|
255
|
+
type UseCapxulOrgSpendReturn = UseMutationResult<OrgSpendResult, CapxulError, OrgSpendInput>;
|
|
256
|
+
declare function useCapxulOrgSpend(orgId: OrgId | undefined): UseCapxulOrgSpendReturn;
|
|
257
|
+
//#endregion
|
|
258
|
+
export { type CapxulBootstrapState, type CapxulBootstrapStatus, CapxulProvider, type CapxulProviderProps, type SignInInput, type SignInSuccess, type UseCapxulAccountBalanceOptions, type UseCapxulAccountBalanceReturn, type UseCapxulAccountFundReturn, type UseCapxulAccountReturn, type UseCapxulAssignRoleReturn, type UseCapxulCreateOrgReturn, type UseCapxulEnsureReadyReturn, type UseCapxulInviteMemberReturn, type UseCapxulOrgDeployRolesReturn, type UseCapxulOrgMembersOptions, type UseCapxulOrgMembersReturn, type UseCapxulOrgOptions, type UseCapxulOrgReturn, type UseCapxulOrgRolesOptions, type UseCapxulOrgRolesReturn, type UseCapxulOrgSpendReturn, type UseCapxulOrgTreasuryOptions, type UseCapxulOrgTreasuryReturn, type UseCapxulOrgsReturn, type UseCapxulProfileReturn, type UseCapxulRemoveMemberReturn, type UseCapxulSessionReturn, type UseCapxulSignInReturn, type UseCapxulSignOutReturn, type UseCapxulSubAccountCreateReturn, type UseCapxulSubAccountDeleteReturn, type UseCapxulSubAccountRenameReturn, type UseCapxulSubAccountsListOptions, type UseCapxulSubAccountsListReturn, type UseCapxulTransferReturn, type UseCapxulVerifyOtpReturn, type VerifyOtpInput, useCapxul, useCapxulAccount, useCapxulAccountBalance, useCapxulAccountFund, useCapxulAssignRole, useCapxulCreateOrg, useCapxulEnsureReady, useCapxulInviteMember, useCapxulOrg, useCapxulOrgDeployRoles, useCapxulOrgMembers, useCapxulOrgRoles, useCapxulOrgSpend, useCapxulOrgTreasury, useCapxulOrgs, useCapxulProfile, useCapxulRemoveMember, useCapxulSession, useCapxulSignIn, useCapxulSignOut, useCapxulSubAccountCreate, useCapxulSubAccountDelete, useCapxulSubAccountRename, useCapxulSubAccountsList, useCapxulTransfer, useCapxulVerifyOtp };
|
|
259
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/provider.tsx","../src/internal/capxul-bootstrap-context.tsx","../src/hooks/use-capxul-session.ts","../src/hooks/use-capxul-profile.ts","../src/hooks/use-capxul-account.ts","../src/hooks/use-capxul-account-balance.ts","../src/hooks/use-capxul-account-fund.ts","../src/hooks/use-capxul-sign-in.ts","../src/hooks/use-capxul-verify-otp.ts","../src/hooks/use-capxul-sign-out.ts","../src/hooks/use-capxul-ensure-ready.ts","../src/hooks/use-capxul-sub-accounts.ts","../src/hooks/use-capxul-orgs.ts","../src/hooks/use-capxul-org.ts","../src/hooks/use-capxul-org-members.ts","../src/hooks/use-capxul-org-roles.ts","../src/hooks/use-capxul-org-deploy-roles.ts","../src/hooks/use-capxul-org-treasury.ts","../src/hooks/use-capxul-create-org.ts","../src/hooks/use-capxul-invite-member.ts","../src/hooks/use-capxul-remove-member.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