@startsimpli/integrations 0.2.83 → 0.2.85
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/package.json +2 -2
- package/src/__tests__/api-fetch-factories.test.ts +16 -0
- package/src/__tests__/connect-claude.test.tsx +2 -0
- package/src/api/mcp-tokens.ts +28 -4
- package/src/native/screens/connect-claude/ConnectClaudeScreen.tsx +23 -2
- package/src/native/screens/connect-claude/__tests__/controller.test.ts +50 -0
- package/src/native/screens/connect-claude/controller.ts +32 -3
- package/src/native/screens/connect-claude/fake.ts +29 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startsimpli/integrations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.85",
|
|
4
4
|
"description": "Provider-agnostic types, API clients, hooks, and UI primitives for email + calendar integrations across StartSimpli apps, plus foundry customer email (subpath ./comms).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://startsimpli.com",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"vitest": "^3.0.0",
|
|
99
99
|
"react-native": "0.85.3",
|
|
100
100
|
"react-native-safe-area-context": "~5.7.0",
|
|
101
|
-
"@startsimpli/llm": "0.4.28",
|
|
102
101
|
"@startsimpli/ui": "0.4.167",
|
|
103
102
|
"@startsimpli/ui-native": "0.1.3",
|
|
104
103
|
"@startsimpli/auth": "0.4.47",
|
|
104
|
+
"@startsimpli/llm": "0.4.28",
|
|
105
105
|
"@startsimpli/utils": "0.4.15"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
@@ -54,6 +54,22 @@ describe('createMcpTokensApi', () => {
|
|
|
54
54
|
expect(JSON.parse(String(calls[0].init.body))).toEqual({ foundry: 'tandem', ttl_days: 7 });
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
+
it('lists issued tokens with GET on the issued path', async () => {
|
|
58
|
+
const api = createMcpTokensApi({ baseUrl: 'https://t.example/api/v1', fetch: fakeFetch(() => json({ tokens: [{ jti: 'j1' }] })) });
|
|
59
|
+
const out = await api.listTokens();
|
|
60
|
+
expect(out).toEqual([{ jti: 'j1' }]);
|
|
61
|
+
expect(calls[0].url).toBe('https://t.example/api/v1/auth/mcp-token/issued/');
|
|
62
|
+
expect(calls[0].init.method ?? 'GET').toBe('GET');
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('revokes one token with POST, encoding the jti', async () => {
|
|
66
|
+
const api = createMcpTokensApi({ baseUrl: 'https://t.example/api/v1', fetch: fakeFetch(() => json({ jti: 'a/b', status: 'revoked' })) });
|
|
67
|
+
const out = await api.revokeToken('a/b');
|
|
68
|
+
expect(out.status).toBe('revoked');
|
|
69
|
+
expect(calls[0].url).toBe('https://t.example/api/v1/auth/mcp-token/issued/a%2Fb/revoke/');
|
|
70
|
+
expect(calls[0].init.method).toBe('POST');
|
|
71
|
+
});
|
|
72
|
+
|
|
57
73
|
it('surfaces a refusal as an error carrying the status', async () => {
|
|
58
74
|
const api = createMcpTokensApi({ baseUrl: 'https://t.example/api/v1', fetch: fakeFetch(() => json({ detail: 'no seat' }, 403)) });
|
|
59
75
|
await expect(api.mint({ foundry: 'x' })).rejects.toMatchObject({ status: 403 });
|
package/src/api/mcp-tokens.ts
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* base is correct here and no cross-origin call is made with a bearer on it.
|
|
17
17
|
* A client that hardcoded central's host would break that property.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* `list` and `listTokens` are safe to call on render, `mint` is not. Minting
|
|
20
|
+
* ISSUES A CREDENTIAL — it is not idempotent in any way a user cares about,
|
|
21
|
+
* because every call produces another bearer that stays valid until it expires
|
|
22
|
+
* or is revoked with `revokeToken` (startsim-ja8mt). Nothing in this
|
|
23
23
|
* package may call `mint` from an effect.
|
|
24
24
|
*/
|
|
25
25
|
import { createRequester, request, type ClientDeps, type Requester } from './_fetch';
|
|
@@ -62,9 +62,24 @@ export interface McpMintedToken {
|
|
|
62
62
|
notice: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/** One row of the mint ledger. Never carries the secret itself. */
|
|
66
|
+
export interface McpIssuedToken {
|
|
67
|
+
jti: string;
|
|
68
|
+
foundry: string;
|
|
69
|
+
audience: string;
|
|
70
|
+
issued_at: string;
|
|
71
|
+
expires_at: string;
|
|
72
|
+
revoked_at: string | null;
|
|
73
|
+
status: 'active' | 'revoked' | 'expired';
|
|
74
|
+
}
|
|
75
|
+
|
|
65
76
|
export interface McpTokensApi {
|
|
66
77
|
list(): Promise<McpFoundryList>;
|
|
67
78
|
mint(input: { foundry: string; ttl_days?: number }): Promise<McpMintedToken>;
|
|
79
|
+
/** The caller's own previously issued tokens (bd startsim-ja8mt ledger). */
|
|
80
|
+
listTokens(): Promise<McpIssuedToken[]>;
|
|
81
|
+
/** Withdraw one of the caller's own tokens; it stops working at the tenant. */
|
|
82
|
+
revokeToken(jti: string): Promise<McpIssuedToken>;
|
|
68
83
|
}
|
|
69
84
|
|
|
70
85
|
const BASE = '/auth/mcp-token';
|
|
@@ -84,6 +99,15 @@ function build(request: Requester): McpTokensApi {
|
|
|
84
99
|
mint(input: { foundry: string; ttl_days?: number }): Promise<McpMintedToken> {
|
|
85
100
|
return request<McpMintedToken>(`${BASE}/`, { method: 'POST', body: input });
|
|
86
101
|
},
|
|
102
|
+
|
|
103
|
+
async listTokens(): Promise<McpIssuedToken[]> {
|
|
104
|
+
const r = await request<{ tokens: McpIssuedToken[] }>(`${BASE}/issued/`);
|
|
105
|
+
return r.tokens;
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
revokeToken(jti: string): Promise<McpIssuedToken> {
|
|
109
|
+
return request<McpIssuedToken>(`${BASE}/issued/${encodeURIComponent(jti)}/revoke/`, { method: 'POST' });
|
|
110
|
+
},
|
|
87
111
|
};
|
|
88
112
|
}
|
|
89
113
|
|
|
@@ -2,6 +2,7 @@ import { useEffect, useMemo } from 'react';
|
|
|
2
2
|
import { Share, ScrollView, View } from 'react-native';
|
|
3
3
|
import { Alert, Button, Header, Input, Select, Spinner, Text, useTheme } from '@startsimpli/ui-native';
|
|
4
4
|
import type { McpTokensApi } from '../../../api/mcp-tokens';
|
|
5
|
+
import { readableDate } from '../../../components/pages/connect-claude-format';
|
|
5
6
|
import { useControllerState } from '../../components/useControllerState';
|
|
6
7
|
import { createConnectClaudeController, type ConnectClaudeController, type ShareText } from './controller';
|
|
7
8
|
|
|
@@ -75,14 +76,34 @@ export function ConnectClaudeScreen({ controller }: { controller: ConnectClaudeC
|
|
|
75
76
|
value={s.ttlDays === null ? '' : String(s.ttlDays)}
|
|
76
77
|
onChangeText={(t) => controller.setTtlDays(t.trim() === '' || Number.isNaN(Number(t)) ? null : Number(t))}
|
|
77
78
|
/>
|
|
78
|
-
<Text variant="muted">Up to {s.maxTtl} days. Shorter is safer
|
|
79
|
+
<Text variant="muted">Up to {s.maxTtl} days. Shorter is safer.</Text>
|
|
79
80
|
</View>
|
|
80
81
|
<Alert variant="destructive" title="Before you create this">
|
|
81
82
|
It reads this workspace as you: whatever you can see, it can see. It is shown once and cannot be retrieved again, and it cannot be cancelled before it expires. Turning off your access to the workspace stops new ones being made; it does not switch this one off.
|
|
82
83
|
</Alert>
|
|
83
84
|
{s.error ? <Alert variant="destructive">{s.error}</Alert> : null}
|
|
84
85
|
<Button testID="connect-claude-create" title={s.minting ? 'Creating...' : 'Create connection token'} disabled={!s.selected || s.minting} onPress={() => { void controller.mint(); }} />
|
|
85
|
-
<
|
|
86
|
+
<View style={{ gap: theme.spacing.sm }} testID="connect-claude-issued">
|
|
87
|
+
<Text variant="heading" style={{ fontSize: theme.fontSizes.base }}>Tokens you made earlier</Text>
|
|
88
|
+
{s.tokens.length === 0 ? <Text variant="muted">None yet.</Text> : null}
|
|
89
|
+
{s.tokens.map((t) => (
|
|
90
|
+
<View key={t.jti} style={{ gap: 2 }} testID={`connect-claude-token-${t.jti}`}>
|
|
91
|
+
<Text>{t.foundry}</Text>
|
|
92
|
+
<Text variant="muted">
|
|
93
|
+
{t.status === 'revoked' ? 'Revoked' : t.status === 'expired' ? `Expired ${readableDate(t.expires_at)}` : `Expires ${readableDate(t.expires_at)}`}
|
|
94
|
+
</Text>
|
|
95
|
+
{t.status === 'active' ? (
|
|
96
|
+
<Button
|
|
97
|
+
testID={`connect-claude-revoke-${t.jti}`}
|
|
98
|
+
title={s.revoking === t.jti ? 'Revoking...' : 'Revoke'}
|
|
99
|
+
variant="outline"
|
|
100
|
+
disabled={s.revoking !== ''}
|
|
101
|
+
onPress={() => { void controller.revoke(t.jti); }}
|
|
102
|
+
/>
|
|
103
|
+
) : null}
|
|
104
|
+
</View>
|
|
105
|
+
))}
|
|
106
|
+
</View>
|
|
86
107
|
</View>
|
|
87
108
|
);
|
|
88
109
|
}
|
|
@@ -114,3 +114,53 @@ describe('connect claude: list on open, mint only on a tap', () => {
|
|
|
114
114
|
expect(c.getState().expiry).toMatch(/about \d+ days/);
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
|
+
|
|
118
|
+
describe('connect claude: issued tokens', () => {
|
|
119
|
+
it('lists earlier tokens on open without minting', async () => {
|
|
120
|
+
const { api, c } = setup({ issued: [
|
|
121
|
+
{ jti: 'old-1', foundry: 'tandem', audience: 'tandem', issued_at: '2026-10-01T00:00:00Z', expires_at: '2026-11-30T00:00:00Z', revoked_at: null, status: 'active' },
|
|
122
|
+
] });
|
|
123
|
+
await settle(() => c.getState().phase === 'ready');
|
|
124
|
+
expect(c.getState().tokens.map((t) => t.jti)).toEqual(['old-1']);
|
|
125
|
+
expect(api.calls.listTokens).toBe(1);
|
|
126
|
+
expect(api.calls.mint).toEqual([]);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it('revoke calls the server once for that jti and marks it revoked', async () => {
|
|
130
|
+
const { api, c } = setup({ issued: [
|
|
131
|
+
{ jti: 'old-1', foundry: 'tandem', audience: 'tandem', issued_at: '2026-10-01T00:00:00Z', expires_at: '2026-11-30T00:00:00Z', revoked_at: null, status: 'active' },
|
|
132
|
+
] });
|
|
133
|
+
await settle(() => c.getState().phase === 'ready');
|
|
134
|
+
await Promise.all([c.revoke('old-1'), c.revoke('old-1')]);
|
|
135
|
+
expect(api.calls.revoke).toEqual(['old-1']);
|
|
136
|
+
expect(c.getState().tokens[0].status).toBe('revoked');
|
|
137
|
+
expect(c.getState().revoking).toBe('');
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
it('a failed revoke leaves the token active and says why', async () => {
|
|
141
|
+
const { c } = setup({ revokeError: new Error('offline'), issued: [
|
|
142
|
+
{ jti: 'old-1', foundry: 'tandem', audience: 'tandem', issued_at: '2026-10-01T00:00:00Z', expires_at: '2026-11-30T00:00:00Z', revoked_at: null, status: 'active' },
|
|
143
|
+
] });
|
|
144
|
+
await settle(() => c.getState().phase === 'ready');
|
|
145
|
+
await c.revoke('old-1');
|
|
146
|
+
expect(c.getState().tokens[0].status).toBe('active');
|
|
147
|
+
expect(c.getState().error).toBe('offline');
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
it('a freshly minted token appears in the list once the form is back', async () => {
|
|
151
|
+
const { c } = setup();
|
|
152
|
+
await settle(() => c.getState().phase === 'ready');
|
|
153
|
+
await c.mint();
|
|
154
|
+
c.done();
|
|
155
|
+
await settle(() => c.getState().tokens.length === 1);
|
|
156
|
+
expect(c.getState().tokens[0].jti).toBe('fake-jti-1');
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
it('a failed token list does not break the form', async () => {
|
|
160
|
+
const { c } = setup({ listTokensError: new Error('offline') });
|
|
161
|
+
await settle(() => c.getState().phase === 'ready');
|
|
162
|
+
expect(c.getState().phase).toBe('ready');
|
|
163
|
+
expect(c.getState().tokens).toEqual([]);
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* refresh, retry or effect may reach it. The token lives in memory only, is shown
|
|
9
9
|
* once, and `done()` forgets it - nothing is stored on the phone.
|
|
10
10
|
*/
|
|
11
|
-
import type { McpFoundry, McpMintedToken, McpTokensApi } from '../../../api/mcp-tokens';
|
|
11
|
+
import type { McpFoundry, McpIssuedToken, McpMintedToken, McpTokensApi } from '../../../api/mcp-tokens';
|
|
12
12
|
import { expiryLine } from '../../../components/pages/connect-claude-format';
|
|
13
13
|
import { createStore, errorMessage } from '../store';
|
|
14
14
|
|
|
@@ -24,6 +24,10 @@ export interface ConnectClaudeState {
|
|
|
24
24
|
/** Chosen lifetime in days; null = the server default. */
|
|
25
25
|
ttlDays: number | null;
|
|
26
26
|
minting: boolean;
|
|
27
|
+
/** Tokens issued earlier (the mint ledger), newest first. */
|
|
28
|
+
tokens: McpIssuedToken[];
|
|
29
|
+
/** jti currently being revoked; empty when none. */
|
|
30
|
+
revoking: string;
|
|
27
31
|
minted: McpMintedToken | null;
|
|
28
32
|
/** "Expires November 5, 2026 - about 30 days" for the minted token. */
|
|
29
33
|
expiry: string;
|
|
@@ -41,6 +45,8 @@ export interface ConnectClaudeController {
|
|
|
41
45
|
/** The ONLY call site of `api.mint`. */
|
|
42
46
|
mint(): Promise<void>;
|
|
43
47
|
share(which: 'token' | 'command'): Promise<void>;
|
|
48
|
+
/** Revoke one earlier token. Idempotent per jti while in flight. */
|
|
49
|
+
revoke(jti: string): Promise<void>;
|
|
44
50
|
/** Forget the token and return to the form. */
|
|
45
51
|
done(): void;
|
|
46
52
|
}
|
|
@@ -50,7 +56,7 @@ export function createConnectClaudeController(
|
|
|
50
56
|
): ConnectClaudeController {
|
|
51
57
|
const store = createStore<ConnectClaudeState>({
|
|
52
58
|
phase: 'loading', foundries: [], maxTtl: 90, defaultTtl: 30, selected: foundrySlug ?? '', ttlDays: null,
|
|
53
|
-
minting: false, minted: null, expiry: '', error: null, shared: '',
|
|
59
|
+
minting: false, tokens: [], revoking: '', minted: null, expiry: '', error: null, shared: '',
|
|
54
60
|
});
|
|
55
61
|
let inFlight = false;
|
|
56
62
|
|
|
@@ -66,7 +72,15 @@ export function createConnectClaudeController(
|
|
|
66
72
|
store.set({ phase: 'error', error: errorMessage(e, 'Could not load your workspaces.') });
|
|
67
73
|
}
|
|
68
74
|
}
|
|
75
|
+
async function refreshTokens() {
|
|
76
|
+
try {
|
|
77
|
+
store.set({ tokens: await api.listTokens() });
|
|
78
|
+
} catch {
|
|
79
|
+
// The ledger is secondary to the form: a failed list must not block making a token.
|
|
80
|
+
}
|
|
81
|
+
}
|
|
69
82
|
void refresh();
|
|
83
|
+
void refreshTokens();
|
|
70
84
|
|
|
71
85
|
return {
|
|
72
86
|
getState: store.getState,
|
|
@@ -103,6 +117,21 @@ export function createConnectClaudeController(
|
|
|
103
117
|
store.set({ shared: '' });
|
|
104
118
|
}
|
|
105
119
|
},
|
|
106
|
-
|
|
120
|
+
async revoke(jti) {
|
|
121
|
+
if (store.getState().revoking) return;
|
|
122
|
+
store.set({ revoking: jti, error: null });
|
|
123
|
+
try {
|
|
124
|
+
const row = await api.revokeToken(jti);
|
|
125
|
+
store.set({ tokens: store.getState().tokens.map((t) => (t.jti === jti ? row : t)) });
|
|
126
|
+
} catch (e) {
|
|
127
|
+
store.set({ error: errorMessage(e, 'The token could not be revoked.') });
|
|
128
|
+
} finally {
|
|
129
|
+
store.set({ revoking: '' });
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
done() {
|
|
133
|
+
store.set({ minted: null, expiry: '', shared: '', error: null });
|
|
134
|
+
void refreshTokens();
|
|
135
|
+
},
|
|
107
136
|
};
|
|
108
137
|
}
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
* An in-memory `McpTokensApi` for simulators and tests. Never touches a tenant or
|
|
3
3
|
* central: nothing here can mint, list or revoke a real credential.
|
|
4
4
|
*/
|
|
5
|
-
import type { McpFoundry, McpFoundryList, McpMintedToken, McpTokensApi } from '../../../api/mcp-tokens';
|
|
5
|
+
import type { McpFoundry, McpFoundryList, McpIssuedToken, McpMintedToken, McpTokensApi } from '../../../api/mcp-tokens';
|
|
6
6
|
|
|
7
7
|
export interface FakeMcpTokensOptions {
|
|
8
8
|
foundries?: McpFoundry[];
|
|
9
9
|
listError?: Error;
|
|
10
10
|
mintError?: Error;
|
|
11
11
|
mintDelayMs?: number;
|
|
12
|
+
/** Tokens already on the ledger. */
|
|
13
|
+
issued?: McpIssuedToken[];
|
|
14
|
+
listTokensError?: Error;
|
|
15
|
+
revokeError?: Error;
|
|
12
16
|
/** Clock for `issued_at` / `expires_at`. */
|
|
13
17
|
now?: () => number;
|
|
14
18
|
}
|
|
15
19
|
|
|
16
|
-
export type FakeMcpTokensApi = McpTokensApi & { calls: { list: number; mint: Array<{ foundry: string; ttl_days?: number }> } };
|
|
20
|
+
export type FakeMcpTokensApi = McpTokensApi & { calls: { list: number; listTokens: number; revoke: string[]; mint: Array<{ foundry: string; ttl_days?: number }> } };
|
|
17
21
|
|
|
18
22
|
const DEFAULT_FOUNDRIES: McpFoundry[] = [
|
|
19
23
|
{ slug: 'tandem', name: 'Tandem', audience: 'tandem', mcp_url: 'https://tandem.example/mcp', state: 'active' },
|
|
@@ -22,7 +26,8 @@ const DEFAULT_FOUNDRIES: McpFoundry[] = [
|
|
|
22
26
|
export function createFakeMcpTokensApi(options: FakeMcpTokensOptions = {}): FakeMcpTokensApi {
|
|
23
27
|
const foundries = options.foundries ?? DEFAULT_FOUNDRIES;
|
|
24
28
|
const now = options.now ?? Date.now;
|
|
25
|
-
const calls: FakeMcpTokensApi['calls'] = { list: 0, mint: [] };
|
|
29
|
+
const calls: FakeMcpTokensApi['calls'] = { list: 0, listTokens: 0, revoke: [], mint: [] };
|
|
30
|
+
const ledger: McpIssuedToken[] = [...(options.issued ?? [])];
|
|
26
31
|
let minted = 0;
|
|
27
32
|
return {
|
|
28
33
|
calls,
|
|
@@ -39,6 +44,12 @@ export function createFakeMcpTokensApi(options: FakeMcpTokensOptions = {}): Fake
|
|
|
39
44
|
const foundry = foundries.find((f) => f.slug === input.foundry) ?? foundries[0];
|
|
40
45
|
const ttl = input.ttl_days ?? 30;
|
|
41
46
|
const issued = now();
|
|
47
|
+
ledger.unshift({
|
|
48
|
+
jti: `fake-jti-${minted}`, foundry: foundry.slug, audience: foundry.audience,
|
|
49
|
+
issued_at: new Date(issued).toISOString(),
|
|
50
|
+
expires_at: new Date(issued + ttl * 86_400_000).toISOString(),
|
|
51
|
+
revoked_at: null, status: 'active',
|
|
52
|
+
});
|
|
42
53
|
return {
|
|
43
54
|
token: `fake-mcp-token-${minted}`,
|
|
44
55
|
token_type: 'Bearer',
|
|
@@ -50,8 +61,22 @@ export function createFakeMcpTokensApi(options: FakeMcpTokensOptions = {}): Fake
|
|
|
50
61
|
expires_at: new Date(issued + ttl * 86_400_000).toISOString(),
|
|
51
62
|
mcp_url: foundry.mcp_url,
|
|
52
63
|
claude_code_command: `claude mcp add --transport http ${foundry.slug} ${foundry.mcp_url} --header "Authorization: Bearer fake-mcp-token-${minted}"`,
|
|
53
|
-
notice: 'This token is shown once. It reads this workspace as you and
|
|
64
|
+
notice: 'This token is shown once. It reads this workspace as you and can be revoked from the list.',
|
|
54
65
|
};
|
|
55
66
|
},
|
|
67
|
+
async listTokens(): Promise<McpIssuedToken[]> {
|
|
68
|
+
calls.listTokens += 1;
|
|
69
|
+
if (options.listTokensError) throw options.listTokensError;
|
|
70
|
+
return ledger.map((t) => ({ ...t }));
|
|
71
|
+
},
|
|
72
|
+
async revokeToken(jti: string): Promise<McpIssuedToken> {
|
|
73
|
+
calls.revoke.push(jti);
|
|
74
|
+
if (options.revokeError) throw options.revokeError;
|
|
75
|
+
const row = ledger.find((t) => t.jti === jti);
|
|
76
|
+
if (!row) throw Object.assign(new Error('No such token.'), { status: 404 });
|
|
77
|
+
row.status = 'revoked';
|
|
78
|
+
row.revoked_at = new Date(now()).toISOString();
|
|
79
|
+
return { ...row };
|
|
80
|
+
},
|
|
56
81
|
};
|
|
57
82
|
}
|