@fias/arche-sdk 2.27.0 → 2.29.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/dist/bridge.d.ts +11 -1
- package/dist/bridge.d.ts.map +1 -1
- package/dist/bridge.js +20 -0
- package/dist/bridge.js.map +1 -1
- package/dist/bridge.test.js +18 -0
- package/dist/bridge.test.js.map +1 -1
- package/dist/entity-ops.d.ts +17 -1
- package/dist/entity-ops.d.ts.map +1 -1
- package/dist/entity-ops.js +74 -6
- package/dist/entity-ops.js.map +1 -1
- package/dist/generated/permissions.d.ts +1 -1
- package/dist/generated/permissions.d.ts.map +1 -1
- package/dist/generated/permissions.js +7 -1
- package/dist/generated/permissions.js.map +1 -1
- package/dist/hooks.d.ts +193 -4
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +601 -5
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.test.js +492 -0
- package/dist/hooks.test.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +609 -10
- package/dist/limits.d.ts +72 -0
- package/dist/limits.d.ts.map +1 -0
- package/dist/limits.js +75 -0
- package/dist/limits.js.map +1 -0
- package/dist/types.d.ts +540 -12
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/templates/default/AGENTS.md +252 -42
- package/templates/default/CLAUDE.md +252 -42
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/generated/permissions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAuEH,0DAEC;AArCY,QAAA,wBAAwB,GAAgC;IACnE,YAAY;IACZ,0BAA0B;IAC1B,uBAAuB;IACvB,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AE,4BAA4B;IAC1C,mBAAmB,EAAE,mCAAmC;IACxD,yBAAyB,EAAE,gDAAgD;IAC3E,sBAAsB,EAAE,yEAAyE;IACjG,uBAAuB,EAAE,mEAAmE;IAC5F,2BAA2B,EACzB,0MAA0M;IAC5M,2BAA2B,EACzB,kJAAkJ;IACpJ,4BAA4B,EAC1B,iFAAiF;IACnF,gCAAgC,EAC9B,yJAAyJ;CAC5J,CAAC"}
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArcheHandoffPayload, FiasUser, FiasTheme, FiasStorageApi, DataSubscriptionState, EntityInvocationApi, FiasTextModel, ClientEntityApi, ImageGenerationApi, ImageEntityFilter, ImageEntitySummary, NllbLanguageOption, AudioGenerationApi, FiasNavigationApi, StepNavigationApi, StepNavigationOptions, FiasDataStoreApi, FiasWorkspacesApi, FiasStoreApi, VaultDocumentsApi, VaultDocumentDownloadUrl, VaultUserDocumentSaveContentResult, ArcheAssetsApi, FiasContentApi, FiasContentErrorCode, CommunityAssetsApi, CompanyEmailApi, FiasAIActionsDeclaration } from './types';
|
|
1
|
+
import type { ArcheHandoffPayload, FiasUser, FiasTheme, FiasStorageApi, DataSubscriptionState, EntityInvocationApi, FiasTextModel, FiasHolder, ClientEntityApi, ImageGenerationApi, ImageEntityFilter, ImageEntitySummary, NllbLanguageOption, AudioGenerationApi, FiasNavigationApi, StepNavigationApi, StepNavigationOptions, FiasDataStoreApi, FiasWorkspacesApi, FiasStoreApi, VaultDocumentsApi, VaultDocumentDownloadUrl, VaultUserDocumentSaveContentResult, ArcheAssetsApi, FiasConnectionsApi, FiasXApi, FiasLinkedInApi, FiasSchedulesApi, ArcheAssetBytesApi, ArcheAssetErrorCode, FiasContentApi, FiasContentErrorCode, FiasLocalStoreApi, FiasLocalStoreErrorCode, CommunityAssetsApi, CompanyEmailApi, FiasAIActionsDeclaration } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Access the current user's profile information.
|
|
4
4
|
* Requires the `user:profile:read` permission in fias-plugin.json.
|
|
@@ -78,6 +78,17 @@ export declare function useEntityInvocation(): EntityInvocationApi;
|
|
|
78
78
|
* a `recommended` entry when it does.
|
|
79
79
|
*/
|
|
80
80
|
export declare function useTextModels(): FiasTextModel[];
|
|
81
|
+
/**
|
|
82
|
+
* The Fias workspace the plugin was opened in: the user's own (`personal`) or
|
|
83
|
+
* an organization's (`org`), and the user's role there.
|
|
84
|
+
*
|
|
85
|
+
* Requires `user:profile:read` or `data:workspace`. Returns `null` until the
|
|
86
|
+
* host has delivered it (usually immediately), and when the host could not
|
|
87
|
+
* resolve it. The value never changes while the plugin is open — switching
|
|
88
|
+
* workspace reopens the plugin. It carries no id and no name, and the
|
|
89
|
+
* platform applies the workspace to every call itself.
|
|
90
|
+
*/
|
|
91
|
+
export declare function useFiasHolder(): FiasHolder | null;
|
|
81
92
|
/**
|
|
82
93
|
* Generate images using platform AI image models.
|
|
83
94
|
*
|
|
@@ -297,6 +308,8 @@ export declare function useFiasDataStore(): FiasDataStoreApi;
|
|
|
297
308
|
* const workspaces = useFiasWorkspaces();
|
|
298
309
|
* const ws = await workspaces.create('Acme Corp');
|
|
299
310
|
* await workspaces.addMember(ws.workspaceId, otherUserId, 'member');
|
|
311
|
+
* // or, inside a Fias org workspace, its members' shared space:
|
|
312
|
+
* const shared = await workspaces.openForWorkspace();
|
|
300
313
|
* // then, with useFiasDataStore():
|
|
301
314
|
* await dataStore.put('ledger', 'tx-1', { amount: 100 }, { workspaceId: ws.workspaceId });
|
|
302
315
|
*
|
|
@@ -355,6 +368,16 @@ export declare function useVaultDocuments(): VaultDocumentsApi;
|
|
|
355
368
|
* state, and refresh `signedUrl` via `getUrl(assetId)` when it's about
|
|
356
369
|
* to expire.
|
|
357
370
|
*
|
|
371
|
+
* The library holds images and short sound effects (MP3 / WAV). `list` and
|
|
372
|
+
* `index` return images unless you pass `kinds` (e.g. `{ kinds: ['audio'] }`),
|
|
373
|
+
* and with `kinds` the entries are typed `ArcheLibraryAsset` — narrow on
|
|
374
|
+
* `contentType` before using an image's size. Keeping sounds here is
|
|
375
|
+
* optional; music is not accepted. Sound effects that must play on cue need
|
|
376
|
+
* decoded Web Audio buffers: load library sounds with
|
|
377
|
+
* {@link useArcheAssetBytes}`().getMany` once per session, or bundle them in
|
|
378
|
+
* the plugin's JS (base64) — not in `public/`, which only an `<audio>`
|
|
379
|
+
* element can play.
|
|
380
|
+
*
|
|
358
381
|
* Permission: `assets:read`.
|
|
359
382
|
*
|
|
360
383
|
* @example
|
|
@@ -363,6 +386,55 @@ export declare function useVaultDocuments(): VaultDocumentsApi;
|
|
|
363
386
|
* // entries[i].signedUrl is a short-lived URL you can use as <img src>
|
|
364
387
|
*/
|
|
365
388
|
export declare function useArcheAssets(): ArcheAssetsApi;
|
|
389
|
+
/**
|
|
390
|
+
* Read the bytes of assets in this arche's asset library — for Web Audio
|
|
391
|
+
* (`AudioContext.decodeAudioData`), canvas pixel work, or anything else a
|
|
392
|
+
* signed URL cannot do (the plugin sandbox has no network). Read each sound
|
|
393
|
+
* once per session and keep the decoded buffer.
|
|
394
|
+
*
|
|
395
|
+
* To load a set of sounds, pass the listed entries to `getMany`: up to 100
|
|
396
|
+
* are read per call, so a whole sound set takes one or two calls. One call
|
|
397
|
+
* per sound would trip the bridge's runaway-loop guard (more than 50 calls in
|
|
398
|
+
* 5 seconds), which blocks every read for 10 seconds — `getBytes` calls made
|
|
399
|
+
* together are batched for the same reason. The host page fetches each asset,
|
|
400
|
+
* so each read costs one asset load like an `<img>` does. Unavailable in the
|
|
401
|
+
* builder preview.
|
|
402
|
+
*
|
|
403
|
+
* Sounds are ready to trigger only once their buffers are decoded: wait for
|
|
404
|
+
* the load before the first cue, and resume the `AudioContext` on the first
|
|
405
|
+
* user gesture.
|
|
406
|
+
*
|
|
407
|
+
* Permissions: `entities:client_invoke` AND `assets:read`.
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* const { list } = useArcheAssets();
|
|
411
|
+
* const { getMany } = useArcheAssetBytes();
|
|
412
|
+
* const { entries } = await list({ kinds: ['audio'], tags: ['sfx:ui'] });
|
|
413
|
+
* const ctx = new AudioContext();
|
|
414
|
+
* const loaded = await getMany(entries);
|
|
415
|
+
* const buffers = new Map<string, AudioBuffer>();
|
|
416
|
+
* for (const entry of entries) {
|
|
417
|
+
* const result = loaded[entry.assetId];
|
|
418
|
+
* if (result instanceof Error) continue; // result.code says why
|
|
419
|
+
* buffers.set(entry.name ?? entry.assetId, await ctx.decodeAudioData(result.bytes));
|
|
420
|
+
* }
|
|
421
|
+
*/
|
|
422
|
+
export declare function useArcheAssetBytes(): ArcheAssetBytesApi;
|
|
423
|
+
/**
|
|
424
|
+
* Entity ID of the arche asset bytes client-side entity — the host-side
|
|
425
|
+
* reader behind {@link useArcheAssetBytes}. Literal here so the SDK
|
|
426
|
+
* stays bundle-clean (no `@fias/entities` runtime dep).
|
|
427
|
+
*
|
|
428
|
+
* SYNC NOTE: must match `ARCHE_ASSET_BYTES_ENTITY_ID` in
|
|
429
|
+
* `packages/entities/src/integrations/arche-asset-bytes/config.ts`. The
|
|
430
|
+
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
431
|
+
*/
|
|
432
|
+
export declare const ARCHE_ASSET_BYTES_ENTITY_ID = "ent_intg_arche_asset_bytes_00000";
|
|
433
|
+
/** A failed asset byte read (`useArcheAssetBytes`): `code` says why. */
|
|
434
|
+
export declare class ArcheAssetError extends Error {
|
|
435
|
+
readonly code: ArcheAssetErrorCode;
|
|
436
|
+
constructor(message: string, code: ArcheAssetErrorCode);
|
|
437
|
+
}
|
|
366
438
|
/**
|
|
367
439
|
* Entity ID of the plugin content pack client-side entity (ADR-021) — the
|
|
368
440
|
* host-side reader behind {@link useFiasContent}. Literal here so the SDK
|
|
@@ -373,6 +445,54 @@ export declare function useArcheAssets(): ArcheAssetsApi;
|
|
|
373
445
|
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
374
446
|
*/
|
|
375
447
|
export declare const PLUGIN_CONTENT_ENTITY_ID = "ent_intg_plugin_content_00000000";
|
|
448
|
+
/**
|
|
449
|
+
* Entity ID of the plugin local store client-side entity (ADR-031) — the
|
|
450
|
+
* host-side store behind {@link useLocalStore}. Literal here so the SDK stays
|
|
451
|
+
* bundle-clean (no `@fias/entities` runtime dep).
|
|
452
|
+
*
|
|
453
|
+
* SYNC NOTE: must match `PLUGIN_LOCAL_STORE_ENTITY_ID` in
|
|
454
|
+
* `packages/entities/src/integrations/plugin-local-store/config.ts`. The
|
|
455
|
+
* architecture test `sdk-entity-id-constants-match.test.ts` pins this.
|
|
456
|
+
*/
|
|
457
|
+
export declare const PLUGIN_LOCAL_STORE_ENTITY_ID = "ent_intg_plugin_local_store_0000";
|
|
458
|
+
/** A failed local-store call: `code` says why. */
|
|
459
|
+
export declare class FiasLocalStoreError extends Error {
|
|
460
|
+
readonly code: FiasLocalStoreErrorCode;
|
|
461
|
+
constructor(message: string, code: FiasLocalStoreErrorCode);
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Keep working data on the user's device — a recovery journal, drafts, a
|
|
465
|
+
* cache — so a refresh, a crash or a closed tab loses nothing. Writes take
|
|
466
|
+
* milliseconds and never touch the network: the host page keeps the data in
|
|
467
|
+
* its own browser storage, in a space only this plugin can read, for the
|
|
468
|
+
* signed-in user in the workspace they are working in (Personal and each org
|
|
469
|
+
* workspace keep separate data; switching workspace switches the store).
|
|
470
|
+
* Signing out clears it.
|
|
471
|
+
*
|
|
472
|
+
* This is NOT where a user's work is kept. It is best-effort device storage —
|
|
473
|
+
* a browser may clear site data, and nothing here reaches another device —
|
|
474
|
+
* so write the journal here and save the user's files through the Vault
|
|
475
|
+
* (`useVaultUserDocuments().saveContent`, `upload`, or the Save dialog).
|
|
476
|
+
*
|
|
477
|
+
* Values: a string, bytes (`ArrayBuffer` / `Uint8Array`), or any JSON value;
|
|
478
|
+
* `get` returns the same kind. One value ≤ 64 MB; the whole store for this
|
|
479
|
+
* user ≤ 256 MB. Over budget, `put` throws `LOCAL_STORE_QUOTA_EXCEEDED`
|
|
480
|
+
* rather than evicting — decide what to keep with `estimate()` and `list()`.
|
|
481
|
+
* For a large snapshot (an image, a big document), put BYTES: a JSON value is
|
|
482
|
+
* validated and serialized on the host page, which costs time proportional
|
|
483
|
+
* to its size on every write, while bytes are only copied. Restore a journal
|
|
484
|
+
* with `getMany(keys)` — one call for up to 100 entries, instead of one call
|
|
485
|
+
* per key.
|
|
486
|
+
*
|
|
487
|
+
* Permission: `storage:local`.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* const store = useLocalStore();
|
|
491
|
+
* await store.put(`session/${docId}`, snapshotJson); // on every change
|
|
492
|
+
* const saved = await store.getJson<Snapshot>(`session/${docId}`); // on load
|
|
493
|
+
* await store.delete(`session/${docId}`); // on close
|
|
494
|
+
*/
|
|
495
|
+
export declare function useLocalStore(): FiasLocalStoreApi;
|
|
376
496
|
/** A failed content read: `code` says why, `path` names the file when there is one. */
|
|
377
497
|
export declare class FiasContentError extends Error {
|
|
378
498
|
readonly code: FiasContentErrorCode;
|
|
@@ -671,6 +791,73 @@ export interface VaultUserDocumentsApi {
|
|
|
671
791
|
* `useVaultDocuments` instead.
|
|
672
792
|
*/
|
|
673
793
|
export declare function useVaultUserDocuments(): VaultUserDocumentsApi;
|
|
794
|
+
/**
|
|
795
|
+
* Outside accounts (X, LinkedIn, …) the workspace the app is open in lets it
|
|
796
|
+
* use (ADR-029 §2). Requires `connections:use`.
|
|
797
|
+
*
|
|
798
|
+
* The app never sees a credential. `connect(provider)` asks the host to show
|
|
799
|
+
* its connect screen, where the person connects an account or lets this app
|
|
800
|
+
* use one already connected; the host makes every grant. Acting as an account
|
|
801
|
+
* (posting, reading its audience) is a verb on the provider's own entity.
|
|
802
|
+
*
|
|
803
|
+
* @example
|
|
804
|
+
* const connections = useFiasConnections();
|
|
805
|
+
* const accounts = await connections.list();
|
|
806
|
+
* const x = accounts.find((a) => a.provider === 'x') ?? (await connections.connect('x'));
|
|
807
|
+
*/
|
|
808
|
+
export declare function useFiasConnections(): FiasConnectionsApi;
|
|
809
|
+
/**
|
|
810
|
+
* X, as an account the workspace this app is open in let it use (ADR-029 §3).
|
|
811
|
+
*
|
|
812
|
+
* Requires `connections:use` in `fias-plugin.json`. Get a `connectionId` from
|
|
813
|
+
* `useFiasConnections()` (`list`, or `connect('x')`). Each call is charged to
|
|
814
|
+
* the user as X prices it: a read by what it returns, a post per post — and a
|
|
815
|
+
* post with a link (any URL or web address) costs more than a plain one. `publishPost` puts a confirm sheet in front of the
|
|
816
|
+
* person — the platform's own words: the account, the workspace, the post —
|
|
817
|
+
* and resolves only after they approve. A decline rejects with
|
|
818
|
+
* `FiasBridgeError` code `USER_DECLINED`. Never available in the dev harness:
|
|
819
|
+
* a post needs a person in the Fias app.
|
|
820
|
+
*
|
|
821
|
+
* @example
|
|
822
|
+
* ```tsx
|
|
823
|
+
* const x = useFiasX();
|
|
824
|
+
* const { posts } = await x.publishPost({ connectionId, posts: [{ text: 'Hello' }] });
|
|
825
|
+
* ```
|
|
826
|
+
*/
|
|
827
|
+
export declare function useFiasX(): FiasXApi;
|
|
828
|
+
/**
|
|
829
|
+
* Schedule one call for later (ADR-029 §5) — e.g. a post at 9 AM tomorrow.
|
|
830
|
+
*
|
|
831
|
+
* Requires `schedule:invoke` in `fias-plugin.json`, plus whatever the call
|
|
832
|
+
* itself needs (`connections:use` to post). For an action outside Fias the
|
|
833
|
+
* person approves the exact call AND its time in a confirm sheet first; a
|
|
834
|
+
* decline rejects with `USER_DECLINED`. When it is due every check runs again
|
|
835
|
+
* — if the account was disconnected or the app lost access, nothing is sent
|
|
836
|
+
* and `list()` shows it as `refused`. There is no edit: cancel and schedule
|
|
837
|
+
* again (a new approval).
|
|
838
|
+
*
|
|
839
|
+
* @example
|
|
840
|
+
* ```tsx
|
|
841
|
+
* const schedules = useFiasSchedules();
|
|
842
|
+
* await schedules.schedule({
|
|
843
|
+
* entityId: X_ENTITY_ID,
|
|
844
|
+
* verb: 'publish_post',
|
|
845
|
+
* payload: { connectionId, posts: [{ text: 'Launch day' }] },
|
|
846
|
+
* fireAt: tomorrowAtNine,
|
|
847
|
+
* });
|
|
848
|
+
* ```
|
|
849
|
+
*/
|
|
850
|
+
export declare function useFiasSchedules(): FiasSchedulesApi;
|
|
851
|
+
/**
|
|
852
|
+
* LinkedIn, as a member account the workspace this app is open in let it use
|
|
853
|
+
* (ADR-029 §3). Requires `connections:use`; get a `connectionId` from
|
|
854
|
+
* `useFiasConnections()`. Each call is charged to the user. No post-metrics or
|
|
855
|
+
* audience calls yet: LinkedIn serves them only with analytics scopes the
|
|
856
|
+
* connection does not ask for. `publishPost` puts
|
|
857
|
+
* a confirm sheet in front of the person and resolves only after they approve;
|
|
858
|
+
* a decline rejects with code `USER_DECLINED`.
|
|
859
|
+
*/
|
|
860
|
+
export declare function useFiasLinkedIn(): FiasLinkedInApi;
|
|
674
861
|
/**
|
|
675
862
|
* Send email AS the Company this app is being used in (ADR-023), from the
|
|
676
863
|
* Company's own verified domain — not from Fias.
|
|
@@ -768,9 +955,11 @@ export interface FiasAIActionsConfig extends FiasAIActionsDeclaration {
|
|
|
768
955
|
* mutate the source. And you are the authoritative type gate — if you cannot
|
|
769
956
|
* open this file, tell the user plainly rather than opening something broken.
|
|
770
957
|
*
|
|
771
|
-
* To be offered as a destination at all,
|
|
772
|
-
*
|
|
773
|
-
*
|
|
958
|
+
* To be offered as a destination at all, declare what you open in
|
|
959
|
+
* `fias-plugin.json` (`"fileIntake": { "kinds": ["document"], "types": [".docx"] }`;
|
|
960
|
+
* `types` narrows a kind to the files you really open) and have Fias approve
|
|
961
|
+
* it; declaring this hook alone does not enrol you. A kind or type added later
|
|
962
|
+
* stays off until it is approved too.
|
|
774
963
|
*/
|
|
775
964
|
export declare function useArcheHandoff(onHandoff: (payload: ArcheHandoffPayload) => void): void;
|
|
776
965
|
/** One recipient of an envelope your app started.
|
package/dist/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EAInB,aAAa,EACb,eAAe,EACf,kBAAkB,EAGlB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAGlB,iBAAiB,EAEjB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAchB,iBAAiB,EAIjB,YAAY,EAMZ,iBAAiB,EAGjB,wBAAwB,EAKxB,kCAAkC,EASlC,cAAc,
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EAInB,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAGlB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAGlB,iBAAiB,EAEjB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAchB,iBAAiB,EAIjB,YAAY,EAMZ,iBAAiB,EAGjB,wBAAwB,EAKxB,kCAAkC,EASlC,cAAc,EAGd,kBAAkB,EAClB,QAAQ,EAMR,eAAe,EACf,gBAAgB,EAGhB,kBAAkB,EAGlB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EAGpB,iBAAiB,EACjB,uBAAuB,EAYvB,kBAAkB,EAMlB,eAAe,EAGf,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAiGjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,IAAI,QAAQ,GAAG,IAAI,CAuB7C;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,IAAI,SAAS,GAAG,IAAI,CAS/C;AAED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