@supatype/client 0.3.6 → 0.8.0
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +69 -30
- package/.turbo/turbo-typecheck.log +2 -2
- package/LICENSE +1 -1
- package/dist/auth-redirect.d.ts +48 -0
- package/dist/auth-redirect.d.ts.map +1 -0
- package/dist/auth-redirect.js +70 -0
- package/dist/auth-redirect.js.map +1 -0
- package/dist/auth.d.ts +86 -4
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +383 -275
- package/dist/auth.js.map +1 -1
- package/dist/bindings.d.ts +16 -0
- package/dist/bindings.d.ts.map +1 -0
- package/dist/bindings.js +13 -0
- package/dist/bindings.js.map +1 -0
- package/dist/caller-types.d.ts +18 -0
- package/dist/caller-types.d.ts.map +1 -0
- package/dist/caller-types.js +22 -0
- package/dist/caller-types.js.map +1 -0
- package/dist/draft-create.d.ts +12 -0
- package/dist/draft-create.d.ts.map +1 -0
- package/dist/draft-create.js +47 -0
- package/dist/draft-create.js.map +1 -0
- package/dist/draft-models-registry.d.ts +27 -0
- package/dist/draft-models-registry.d.ts.map +1 -0
- package/dist/draft-models-registry.js +61 -0
- package/dist/draft-models-registry.js.map +1 -0
- package/dist/error-codes-doc.d.ts +1 -1
- package/dist/error-codes-doc.d.ts.map +1 -1
- package/dist/error-codes-doc.js +42 -34
- package/dist/error-codes-doc.js.map +1 -1
- package/dist/errors.d.ts +102 -60
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +69 -28
- package/dist/errors.js.map +1 -1
- package/dist/exact-response.d.ts.map +1 -1
- package/dist/exact-response.js +2 -1
- package/dist/exact-response.js.map +1 -1
- package/dist/exact-values.d.ts +2 -0
- package/dist/exact-values.d.ts.map +1 -1
- package/dist/exact-values.js +12 -10
- package/dist/exact-values.js.map +1 -1
- package/dist/fetch-with-retry.d.ts +21 -6
- package/dist/fetch-with-retry.d.ts.map +1 -1
- package/dist/fetch-with-retry.js +67 -53
- package/dist/fetch-with-retry.js.map +1 -1
- package/dist/field-kinds-registry.d.ts +11 -3
- package/dist/field-kinds-registry.d.ts.map +1 -1
- package/dist/field-kinds-registry.js +10 -6
- package/dist/field-kinds-registry.js.map +1 -1
- package/dist/filters.d.ts +51 -0
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +117 -0
- package/dist/filters.js.map +1 -0
- package/dist/generated-client.d.ts +7 -0
- package/dist/generated-client.d.ts.map +1 -0
- package/dist/generated-client.js +7 -0
- package/dist/generated-client.js.map +1 -0
- package/dist/graphql-document.d.ts +39 -0
- package/dist/graphql-document.d.ts.map +1 -0
- package/dist/graphql-document.js +228 -0
- package/dist/graphql-document.js.map +1 -0
- package/dist/graphql-json.d.ts +56 -0
- package/dist/graphql-json.d.ts.map +1 -0
- package/dist/graphql-json.js +220 -0
- package/dist/graphql-json.js.map +1 -0
- package/dist/graphql-transport.d.ts +28 -0
- package/dist/graphql-transport.d.ts.map +1 -0
- package/dist/graphql-transport.js +77 -0
- package/dist/graphql-transport.js.map +1 -0
- package/dist/index.d.ts +103 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +170 -165
- package/dist/index.js.map +1 -1
- package/dist/json.d.ts +61 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +83 -0
- package/dist/json.js.map +1 -0
- package/dist/jwt.d.ts +16 -0
- package/dist/jwt.d.ts.map +1 -0
- package/dist/jwt.js +37 -0
- package/dist/jwt.js.map +1 -0
- package/dist/live-preview.d.ts +23 -0
- package/dist/live-preview.d.ts.map +1 -0
- package/dist/live-preview.js +28 -0
- package/dist/live-preview.js.map +1 -0
- package/dist/mutation-request.d.ts +17 -0
- package/dist/mutation-request.d.ts.map +1 -0
- package/dist/mutation-request.js +41 -0
- package/dist/mutation-request.js.map +1 -0
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +8 -6
- package/dist/preview.js.map +1 -1
- package/dist/query-cache.d.ts.map +1 -1
- package/dist/query-cache.js +19 -13
- package/dist/query-cache.js.map +1 -1
- package/dist/query.d.ts +108 -29
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +294 -224
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.ts +57 -2
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +300 -88
- package/dist/realtime.js.map +1 -1
- package/dist/select-types.d.ts +99 -0
- package/dist/select-types.d.ts.map +1 -0
- package/dist/select-types.js +2 -0
- package/dist/select-types.js.map +1 -0
- package/dist/storage.d.ts +81 -11
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +137 -38
- package/dist/storage.js.map +1 -1
- package/dist/table-subscription.d.ts +69 -0
- package/dist/table-subscription.d.ts.map +1 -0
- package/dist/table-subscription.js +93 -0
- package/dist/table-subscription.js.map +1 -0
- package/dist/types.d.ts +98 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +6 -1
- package/dist/types.js.map +1 -1
- package/package.json +6 -2
- package/src/auth-redirect.ts +90 -0
- package/src/auth.ts +434 -281
- package/src/bindings.ts +22 -0
- package/src/caller-types.ts +27 -0
- package/src/draft-create.ts +51 -0
- package/src/draft-models-registry.ts +81 -0
- package/src/error-codes-doc.ts +44 -35
- package/src/errors.ts +72 -28
- package/src/exact-response.ts +2 -1
- package/src/exact-values.ts +16 -9
- package/src/fetch-with-retry.ts +80 -70
- package/src/field-kinds-registry.ts +22 -9
- package/src/filters.ts +133 -0
- package/src/generated-client.ts +6 -0
- package/src/graphql-document.ts +234 -0
- package/src/graphql-json.ts +243 -0
- package/src/graphql-transport.ts +97 -0
- package/src/index.ts +289 -208
- package/src/json.ts +117 -0
- package/src/jwt.ts +37 -0
- package/src/live-preview.ts +37 -0
- package/src/mutation-request.ts +66 -0
- package/src/preview.ts +9 -11
- package/src/query-cache.ts +19 -16
- package/src/query.ts +389 -270
- package/src/realtime.ts +333 -90
- package/src/select-types.ts +184 -0
- package/src/storage.ts +223 -44
- package/src/table-subscription.ts +160 -0
- package/src/types.ts +104 -5
- package/tests/auth-error-codes.test.ts +53 -0
- package/tests/auth-errors.test.ts +84 -0
- package/tests/auth-events.test.ts +136 -0
- package/tests/auth-url-session.test.ts +204 -0
- package/tests/auth.test.ts +187 -26
- package/tests/count.test.ts +60 -0
- package/tests/data-plane-auth.test.ts +21 -46
- package/tests/draft-insert.integration.test.ts +118 -0
- package/tests/draft-insert.test.ts +225 -0
- package/tests/draft-profile.test.ts +55 -84
- package/tests/draft-update.integration.test.ts +122 -0
- package/tests/draft-update.test.ts +174 -0
- package/tests/dynamic-headers.test.ts +45 -0
- package/tests/entry-points.test.ts +42 -0
- package/tests/exact-response.test.ts +4 -4
- package/tests/exact-values.test.ts +14 -25
- package/tests/field-kinds-registry.test.ts +3 -3
- package/tests/filters.test.ts +146 -0
- package/tests/graphql-json.test.ts +199 -0
- package/tests/helpers/mock-websocket.ts +44 -11
- package/tests/helpers/oauth-binding.ts +92 -0
- package/tests/helpers/signup-binding.ts +73 -0
- package/tests/helpers/socket-swap.ts +142 -0
- package/tests/mfa-totp-integration.test.ts +13 -20
- package/tests/postgrest-error-codes.test.ts +85 -0
- package/tests/query-cache.test.ts +116 -117
- package/tests/query.test.ts +29 -31
- package/tests/rate-limit-integration.test.ts +4 -12
- package/tests/realtime-ack-ref.test.ts +112 -0
- package/tests/realtime-exact-values.test.ts +2 -4
- package/tests/realtime-presence.test.ts +75 -0
- package/tests/realtime-session-auth.test.ts +2 -4
- package/tests/realtime-shared-channel.test.ts +209 -0
- package/tests/realtime-swap-status.test.ts +62 -0
- package/tests/retry-integration.test.ts +3 -8
- package/tests/retry-policy.test.ts +166 -0
- package/tests/rpc-resend.test.ts +24 -0
- package/tests/server-bodies.test.ts +187 -0
- package/tests/serverless.test.ts +2 -2
- package/tests/signed-url-absolute.test.ts +2 -5
- package/tests/storage-object-shape.test.ts +101 -0
- package/tests/storage-quota-integration.test.ts +7 -9
- package/tests/storage-reference-url.test.ts +51 -0
- package/tests/storage-upload-browser.test.ts +71 -0
- package/tests/storage-upload-limit-integration.test.ts +17 -31
- package/tests/storage-url-encoding.test.ts +52 -0
- package/tests/subscribe-frame.test.ts +5 -11
- package/tests/support/blob.ts +10 -0
- package/tests/support/fetch-mock.ts +64 -0
- package/tests/support/storage-object.ts +37 -0
- package/tests/table-subscribe.test.ts +41 -14
- package/tests/table-subscription.test.ts +105 -0
- package/tests/table-transport.test.ts +94 -0
- package/tests/tsconfig.json +1 -1
- package/tests/types.test.ts +153 -1
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/query.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { QueryCache, QueryCacheOptions } from "./query-cache.js";
|
|
2
|
-
import type { MaskedField, QueryResult, SelectQueryOptions, SupatypeError } from "./types.js";
|
|
2
|
+
import type { MaskedField, QueryResult, SelectQueryOptions, SupatypeError, TableDef } from "./types.js";
|
|
3
|
+
import type { SelectRow } from "./select-types.js";
|
|
4
|
+
import { FilterBuilder } from "./filters.js";
|
|
5
|
+
import { type FetchOptions, type RequestTransport } from "./fetch-with-retry.js";
|
|
3
6
|
/**
|
|
4
7
|
* Parse `X-Supatype-Masked-Fields: salary=row, ssn=identity`.
|
|
5
8
|
*
|
|
@@ -22,36 +25,31 @@ export declare function asHeadersProvider(headers: Record<string, string> | Head
|
|
|
22
25
|
* lowercase is just as valid over the wire.
|
|
23
26
|
*/
|
|
24
27
|
export declare function bearerToken(headers: Record<string, string>): string;
|
|
25
|
-
export
|
|
28
|
+
export type { RequestTransport };
|
|
29
|
+
/** Send once; on a 401, let the session refresh and send again with freshly resolved headers. */
|
|
30
|
+
export declare function fetchWithOptional401Retry(send: RequestTransport, url: string, init: RequestInit & FetchOptions, resolveHeaders: () => Promise<Record<string, string>>, onUnauthorized?: (() => Promise<void>) | undefined): Promise<Response>;
|
|
31
|
+
/**
|
|
32
|
+
* The total from PostgREST's `Content-Range: <range>/<total>`, or null when there is none.
|
|
33
|
+
*
|
|
34
|
+
* PostgREST sends the header on every read, and the total is `*` unless the request asked for a
|
|
35
|
+
* count with `Prefer: count=...`. Reading `*` as a number gave `NaN` on every ordinary query.
|
|
36
|
+
*/
|
|
37
|
+
export declare function parseContentRangeTotal(header: string | null): number | null;
|
|
38
|
+
export declare class QueryBuilder<TRow> extends FilterBuilder implements PromiseLike<QueryResult<TRow[]>> {
|
|
26
39
|
private readonly baseUrl;
|
|
27
40
|
private readonly path;
|
|
28
41
|
private readonly getHeaders;
|
|
29
42
|
private readonly onUnauthorized;
|
|
43
|
+
private readonly send;
|
|
30
44
|
private readonly extraHeaders;
|
|
31
|
-
private readonly params;
|
|
32
45
|
private readonly queryCache;
|
|
33
46
|
private cacheOptions;
|
|
34
47
|
private readonly countMode;
|
|
35
48
|
private readonly head;
|
|
36
|
-
constructor(baseUrl: string, path: string, headers: Record<string, string> | HeadersProvider, columns?: string | undefined, queryCache?: QueryCache, onUnauthorized?: (() => Promise<void>) | undefined, selectOptions?: SelectQueryOptions | undefined);
|
|
49
|
+
constructor(baseUrl: string, path: string, headers: Record<string, string> | HeadersProvider, columns?: string | undefined, queryCache?: QueryCache, onUnauthorized?: (() => Promise<void>) | undefined, selectOptions?: SelectQueryOptions | undefined, transport?: RequestTransport);
|
|
37
50
|
/** Enable GET caching. Use `{ server: true }` for Valkey-backed server cache. */
|
|
38
51
|
cache(options: QueryCacheOptions): this;
|
|
39
52
|
select(columns: string): this;
|
|
40
|
-
eq(column: string, value: unknown): this;
|
|
41
|
-
neq(column: string, value: unknown): this;
|
|
42
|
-
gt(column: string, value: unknown): this;
|
|
43
|
-
gte(column: string, value: unknown): this;
|
|
44
|
-
lt(column: string, value: unknown): this;
|
|
45
|
-
lte(column: string, value: unknown): this;
|
|
46
|
-
like(column: string, pattern: string): this;
|
|
47
|
-
ilike(column: string, pattern: string): this;
|
|
48
|
-
in(column: string, values: unknown[]): this;
|
|
49
|
-
is(column: string, value: null | boolean): this;
|
|
50
|
-
not(column: string, op: string, value: unknown): this;
|
|
51
|
-
contains(column: string, value: unknown): this;
|
|
52
|
-
containedBy(column: string, value: unknown): this;
|
|
53
|
-
/** PostgREST OR filter: pass conditions in PostgREST syntax, e.g. `"status.eq.active,owner_id.eq.123"`. */
|
|
54
|
-
or(filters: string): this;
|
|
55
53
|
order(column: string, opts?: {
|
|
56
54
|
ascending?: boolean | undefined;
|
|
57
55
|
nullsFirst?: boolean | undefined;
|
|
@@ -69,29 +67,110 @@ export declare class QueryBuilder<TRow> implements PromiseLike<QueryResult<TRow[
|
|
|
69
67
|
private applyServerCacheHeader;
|
|
70
68
|
private mergePreferHeader;
|
|
71
69
|
private _fetch;
|
|
70
|
+
/** The cached result for this read, when it is cached and the cache holds one. */
|
|
71
|
+
private cachedResult;
|
|
72
|
+
/** Cache a read's rows, when this read is cached and it returned rows. */
|
|
73
|
+
private remember;
|
|
74
|
+
/** What the response says: a refusal, no body (HEAD or 204), or the rows. */
|
|
75
|
+
private readResult;
|
|
76
|
+
private cacheKey;
|
|
72
77
|
}
|
|
73
78
|
type HttpMethod = "POST" | "PATCH" | "DELETE";
|
|
74
|
-
|
|
79
|
+
/**
|
|
80
|
+
* An insert sent through `supatype.create_record` (one row) or `supatype.create_records` (several,
|
|
81
|
+
* all or none) rather than as a plain `POST`: the table, which keeps drafts, and the key its new
|
|
82
|
+
* records are read back by.
|
|
83
|
+
*
|
|
84
|
+
* Why at all: a new record on a drafts model is unpublished, and when the model's read rule hides
|
|
85
|
+
* unpublished rows Postgres refuses an insert that asks for the row back, since it checks the
|
|
86
|
+
* returned row against that rule before anything has made it visible to its author.
|
|
87
|
+
* `create_record` inserts without reading back and writes version 1, after which the author sees it.
|
|
88
|
+
*/
|
|
89
|
+
export interface DraftCreate {
|
|
90
|
+
readonly table: string;
|
|
91
|
+
readonly primaryKey: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* An update sent through `supatype.save_drafts` rather than as a plain `PATCH`: the table, which
|
|
95
|
+
* keeps drafts, its key, and whether to publish the new drafts in the same call.
|
|
96
|
+
*
|
|
97
|
+
* Why at all: on a drafts model the live row changes only by publishing, and the database refuses
|
|
98
|
+
* a direct update of it from the API roles.
|
|
99
|
+
*/
|
|
100
|
+
export interface DraftEdit extends DraftCreate {
|
|
101
|
+
readonly publish: boolean;
|
|
102
|
+
}
|
|
103
|
+
/** How a write is made beyond its method and body. */
|
|
104
|
+
export interface MutationOptions {
|
|
105
|
+
upsert?: boolean | undefined;
|
|
106
|
+
/** Create the records through `create_record` or `create_records`, for an insert on a drafts model. */
|
|
107
|
+
createThrough?: DraftCreate | undefined;
|
|
108
|
+
/** Save a draft of each matched record through `save_drafts`, for an update on a drafts model. */
|
|
109
|
+
editThrough?: DraftEdit | undefined;
|
|
110
|
+
/** Send nothing and answer with this: the write asks for something its table cannot do. */
|
|
111
|
+
refusal?: SupatypeError | undefined;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The rows a write hands back for `select(columns)`.
|
|
115
|
+
*
|
|
116
|
+
* Read from the string, as `TableClient.select` does, when the builder knows the tables it was
|
|
117
|
+
* written against. A builder constructed by hand knows only its row, so there it stays the row.
|
|
118
|
+
*/
|
|
119
|
+
type ReturnedRow<TRow, TTables, TName extends string, TColumns extends string> = [
|
|
120
|
+
TTables
|
|
121
|
+
] extends [Record<string, TableDef>] ? SelectRow<TTables, TName, TColumns> : TRow;
|
|
122
|
+
export declare class MutationBuilder<TRow, TTables = unknown, TName extends string = string> extends FilterBuilder implements PromiseLike<QueryResult<TRow[]>> {
|
|
75
123
|
private readonly baseUrl;
|
|
76
124
|
private readonly path;
|
|
77
125
|
private readonly getHeaders;
|
|
78
126
|
private readonly onUnauthorized;
|
|
127
|
+
private readonly send;
|
|
79
128
|
private readonly extraHeaders;
|
|
80
129
|
private readonly method;
|
|
81
130
|
private readonly body;
|
|
82
|
-
private readonly
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
131
|
+
private readonly createThrough;
|
|
132
|
+
private readonly editThrough;
|
|
133
|
+
private readonly refusal;
|
|
134
|
+
constructor(baseUrl: string, path: string, headers: Record<string, string> | HeadersProvider, method: HttpMethod, body?: unknown, opts?: MutationOptions | undefined, onUnauthorized?: (() => Promise<void>) | undefined, transport?: RequestTransport);
|
|
135
|
+
private prefer;
|
|
136
|
+
/**
|
|
137
|
+
* Return the written rows, limited to `columns`.
|
|
138
|
+
*
|
|
139
|
+
* Asks for the representation too, which a delete does not by default: without it PostgREST
|
|
140
|
+
* answers 204 and `delete().select()` returned no rows although it had deleted some.
|
|
141
|
+
*/
|
|
142
|
+
select<TColumns extends string = "*">(columns?: TColumns | undefined): MutationBuilder<ReturnedRow<TRow, TTables, TName, TColumns>, TTables, TName>;
|
|
143
|
+
/** Return the written rows typed as `TResult`, for a shape the select string cannot describe. */
|
|
144
|
+
select<TResult>(columns?: string | undefined): MutationBuilder<TResult, TTables, TName>;
|
|
91
145
|
single(): Promise<QueryResult<TRow>>;
|
|
92
146
|
maybeSingle(): Promise<QueryResult<TRow | null>>;
|
|
93
147
|
then<R1 = QueryResult<TRow[]>, R2 = never>(onfulfilled?: ((value: QueryResult<TRow[]>) => R1 | PromiseLike<R1>) | null | undefined, onrejected?: ((reason: unknown) => R2 | PromiseLike<R2>) | null | undefined): PromiseLike<R1 | R2>;
|
|
148
|
+
/** POST, PATCH and DELETE: the transport applies the timeout and never retries them. */
|
|
149
|
+
private requestInit;
|
|
94
150
|
private _execute;
|
|
151
|
+
/**
|
|
152
|
+
* Create the records as their first drafts, then read them back as an insert returns them.
|
|
153
|
+
*
|
|
154
|
+
* Read from the draft view, which has the table's row type: the live row of a new record holds no
|
|
155
|
+
* locale yet, so reading the table would hand back empty translations for what was just written.
|
|
156
|
+
* The select string applies as it would to the insert's own answer, and several rows come back in
|
|
157
|
+
* the order they were sent.
|
|
158
|
+
*/
|
|
159
|
+
private createDraftRecords;
|
|
160
|
+
/**
|
|
161
|
+
* Save a draft of each record the filters match, publishing it too when asked, then read the
|
|
162
|
+
* drafts back as an update returns its rows. The live rows are left to publishing.
|
|
163
|
+
*
|
|
164
|
+
* The records are the ones the caller reads in the table under the update's filters, as a `PATCH`
|
|
165
|
+
* would match them, and `save_drafts` saves all of them or none.
|
|
166
|
+
*/
|
|
167
|
+
private saveDraftRecords;
|
|
168
|
+
/** The keys of the rows this write's filters match, read from the table as the caller. */
|
|
169
|
+
private matchedKeys;
|
|
170
|
+
/** `keys`' newest drafts, from the draft view, with this write's select and in the order given. */
|
|
171
|
+
private readDrafts;
|
|
172
|
+
/** Call the publishing function `fn` with `body`: the record keys it answers with, in order, or why not. */
|
|
173
|
+
private callPublishing;
|
|
95
174
|
}
|
|
96
175
|
export type { SupatypeError };
|
|
97
176
|
export type { QueryCacheOptions, CacheStatus } from "./query-cache.js";
|
package/dist/query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAe,MAAM,kBAAkB,CAAA;AAElF,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAe,MAAM,kBAAkB,CAAA;AAElF,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGvG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EAAc,KAAK,YAAY,EAAE,KAAK,gBAAg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