@everfur/sdk 0.1.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/CHANGELOG.md +74 -0
- package/LICENSE +21 -0
- package/README.md +161 -0
- package/animations/package.json +8 -0
- package/chat/package.json +8 -0
- package/client/package.json +8 -0
- package/core/package.json +8 -0
- package/dist/CameraPort-Cv31Pz7g.d.cts +29 -0
- package/dist/CameraPort-Cv31Pz7g.d.ts +29 -0
- package/dist/ChatController-CKdBvPj2.d.ts +146 -0
- package/dist/ChatController-CpUMvvZf.d.cts +146 -0
- package/dist/EverfurResult-D92-uL82.d.cts +240 -0
- package/dist/EverfurResult-D92-uL82.d.ts +240 -0
- package/dist/FilePort-BabWrv7I.d.cts +22 -0
- package/dist/FilePort-BabWrv7I.d.ts +22 -0
- package/dist/PhotoController-BItt5M7u.d.cts +43 -0
- package/dist/PhotoController-D8zMTdcW.d.ts +43 -0
- package/dist/TelemetryPort-BDNr00hu.d.cts +12 -0
- package/dist/TelemetryPort-BDNr00hu.d.ts +12 -0
- package/dist/animations/index.cjs +1997 -0
- package/dist/animations/index.d.cts +517 -0
- package/dist/animations/index.d.ts +517 -0
- package/dist/animations/index.js +1972 -0
- package/dist/cacheEpoch-DknKn3S0.d.cts +36 -0
- package/dist/cacheEpoch-DknKn3S0.d.ts +36 -0
- package/dist/chat/index.cjs +1170 -0
- package/dist/chat/index.d.cts +59 -0
- package/dist/chat/index.d.ts +59 -0
- package/dist/chat/index.js +1167 -0
- package/dist/client/index.cjs +2317 -0
- package/dist/client/index.d.cts +65 -0
- package/dist/client/index.d.ts +65 -0
- package/dist/client/index.js +2217 -0
- package/dist/config-BSjBdxrZ.d.cts +501 -0
- package/dist/config-CiJ0PVBB.d.ts +501 -0
- package/dist/core/index.cjs +3175 -0
- package/dist/core/index.d.cts +70 -0
- package/dist/core/index.d.ts +70 -0
- package/dist/core/index.js +3163 -0
- package/dist/identity-Brl-lDd6.d.cts +91 -0
- package/dist/identity-DK9zORrG.d.ts +91 -0
- package/dist/ids-CJ1S6adf.d.cts +46 -0
- package/dist/ids-CJ1S6adf.d.ts +46 -0
- package/dist/index.cjs +4488 -0
- package/dist/index.d.cts +156 -0
- package/dist/index.d.ts +156 -0
- package/dist/index.js +4464 -0
- package/dist/petsRepository-BEGb97M9.d.cts +326 -0
- package/dist/petsRepository-Bu18r2kK.d.ts +326 -0
- package/dist/photo/index.cjs +2189 -0
- package/dist/photo/index.d.cts +43 -0
- package/dist/photo/index.d.ts +43 -0
- package/dist/photo/index.js +2186 -0
- package/dist/projection-CeIUsbSk.d.cts +8 -0
- package/dist/projection-CeIUsbSk.d.ts +8 -0
- package/dist/records/index.cjs +2840 -0
- package/dist/records/index.d.cts +224 -0
- package/dist/records/index.d.ts +224 -0
- package/dist/records/index.js +2834 -0
- package/dist/requestFunnel-DuUH-kAe.d.cts +28 -0
- package/dist/requestFunnel-dio5OmR9.d.ts +28 -0
- package/dist/resolve-Dq_4_agU.d.cts +86 -0
- package/dist/resolve-Dq_4_agU.d.ts +86 -0
- package/dist/runtime-BgQnA594.d.cts +349 -0
- package/dist/runtime-CBA-LvdM.d.ts +349 -0
- package/dist/server/index.cjs +533 -0
- package/dist/server/index.d.cts +48 -0
- package/dist/server/index.d.ts +48 -0
- package/dist/server/index.js +530 -0
- package/dist/testing/index.cjs +825 -0
- package/dist/testing/index.d.cts +113 -0
- package/dist/testing/index.d.ts +113 -0
- package/dist/testing/index.js +822 -0
- package/dist/testing/rn/index.cjs +449 -0
- package/dist/testing/rn/index.d.cts +49 -0
- package/dist/testing/rn/index.d.ts +49 -0
- package/dist/testing/rn/index.js +444 -0
- package/dist/video/index.cjs +1941 -0
- package/dist/video/index.d.cts +66 -0
- package/dist/video/index.d.ts +66 -0
- package/dist/video/index.js +1938 -0
- package/package.json +311 -0
- package/photo/package.json +8 -0
- package/records/package.json +8 -0
- package/server/device-blocked.cjs +15 -0
- package/server/package.json +9 -0
- package/testing/package.json +8 -0
- package/testing/rn/package.json +8 -0
- package/video/package.json +8 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export { K as KvPort } from '../cacheEpoch-DknKn3S0.cjs';
|
|
2
|
+
export { C as CapabilityKind, a as CapabilityRegistry, b as CapabilityServices, c as ChatControllerRegistry, d as ChatScope, e as CreateEverfurRuntimeInput, f as CreateRuntimeOptions, E as EntitlementPoller, g as EntitlementPollerDeps, h as EntitlementSnapshot, i as EntitlementStore, j as EverfurRuntime, k as EverfurRuntimeConfig, L as LogLevel, l as LogRecord, m as LogSink, M as MIN_POLL_INTERVAL_SECONDS, N as NULL_SECURE_STORE, P as PollScheduler, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort, T as TimerHandle, o as createEntitlementPoller, p as createEverfurRuntime } from '../runtime-BgQnA594.cjs';
|
|
3
|
+
export { T as TelemetryPort, n as noopTelemetry } from '../TelemetryPort-BDNr00hu.cjs';
|
|
4
|
+
import { S as SuggestedPromptCategory, C as ChatController } from '../ChatController-CpUMvvZf.cjs';
|
|
5
|
+
export { a as ChatControllerDeps, b as ChatHandlers, c as ChatMessage, d as ChatSnapshot, e as ChatStatus, f as Citation, E as ErrorPolicyPort, M as MESSAGE_MAX_CHARS, g as SendOptions, T as Timers, h as createChatController, i as defaultErrorPolicy } from '../ChatController-CpUMvvZf.cjs';
|
|
6
|
+
export { C as CameraPort, a as CaptureOptions, M as MediaSource, u as unavailableCamera } from '../CameraPort-Cv31Pz7g.cjs';
|
|
7
|
+
export { F as FileHandle, a as FilePort } from '../FilePort-BabWrv7I.cjs';
|
|
8
|
+
import { P as PetRef, a as ConversationId } from '../ids-CJ1S6adf.cjs';
|
|
9
|
+
import '../resolve-Dq_4_agU.cjs';
|
|
10
|
+
import '../petsRepository-BEGb97M9.cjs';
|
|
11
|
+
import '../EverfurResult-D92-uL82.cjs';
|
|
12
|
+
import '../requestFunnel-DuUH-kAe.cjs';
|
|
13
|
+
import '../config-BSjBdxrZ.cjs';
|
|
14
|
+
import '../identity-Brl-lDd6.cjs';
|
|
15
|
+
|
|
16
|
+
/** The settled outcome of a guarded optional-module load. Never a throw. */
|
|
17
|
+
type OptionalModule<T> = {
|
|
18
|
+
readonly available: true;
|
|
19
|
+
readonly module: T;
|
|
20
|
+
} | {
|
|
21
|
+
readonly available: false;
|
|
22
|
+
readonly module: null;
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Load an optional native peer behind a guard. `load` is the host-provided thunk (typically a `require`).
|
|
27
|
+
* An optional `validate` type-guard rejects a present-but-wrong-shape module (a version whose surface drifted)
|
|
28
|
+
* without throwing. Returns a settled result; NEVER throws.
|
|
29
|
+
*
|
|
30
|
+
* @param name human-readable peer name, only used to build the `reason` string.
|
|
31
|
+
* @param load the thunk that resolves the module (e.g. `() => require('expo-secure-store')`).
|
|
32
|
+
* @param validate optional shape guard; when it returns false the module is treated as unavailable.
|
|
33
|
+
*/
|
|
34
|
+
declare function optionalModule<T>(name: string, load: () => unknown, validate?: (candidate: unknown) => candidate is T): OptionalModule<T>;
|
|
35
|
+
|
|
36
|
+
interface ChatBootstrapInput {
|
|
37
|
+
/** omit => general conversation */
|
|
38
|
+
readonly petRef?: PetRef;
|
|
39
|
+
/** from KvPort auto-resume, if any */
|
|
40
|
+
readonly resumeConversationId?: ConversationId;
|
|
41
|
+
}
|
|
42
|
+
interface ChatBootstrapDiagnostics {
|
|
43
|
+
readonly candidateConversationIds: readonly string[];
|
|
44
|
+
/** a 403 was seen (observed, not an auth block) */
|
|
45
|
+
readonly sawForbidden: boolean;
|
|
46
|
+
/** a 401 was seen (auth block) */
|
|
47
|
+
readonly sawUnauthorized: boolean;
|
|
48
|
+
readonly sawConversationInitFailure: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface ChatBootstrapResult {
|
|
51
|
+
/** null => first send() will create + retry (warning set) */
|
|
52
|
+
readonly conversationId: ConversationId | null;
|
|
53
|
+
readonly petRef: PetRef | null;
|
|
54
|
+
readonly suggestedPrompts: readonly SuggestedPromptCategory[];
|
|
55
|
+
/** SAFE display copy: an auth failure blocks (code-derived, never raw wire text) */
|
|
56
|
+
readonly error: string | null;
|
|
57
|
+
/** SAFE display copy: conversation not pre-initialized; the first send retries */
|
|
58
|
+
readonly warning: string | null;
|
|
59
|
+
readonly diagnostics: ChatBootstrapDiagnostics;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Prime chat. Settles to a result; never throws. Parallel prompts + conversation prime, resumed id tried
|
|
63
|
+
* first. A 401 anywhere sets `error` (auth block). A 403 sets `sawForbidden` only. A conversation-init
|
|
64
|
+
* failure sets `warning` and leaves `conversationId` null so the first send recreates.
|
|
65
|
+
*/
|
|
66
|
+
declare function bootstrapChat(input: ChatBootstrapInput, deps: {
|
|
67
|
+
readonly controller: ChatController;
|
|
68
|
+
}): Promise<ChatBootstrapResult>;
|
|
69
|
+
|
|
70
|
+
export { type ChatBootstrapDiagnostics, type ChatBootstrapInput, type ChatBootstrapResult, ChatController, type OptionalModule, SuggestedPromptCategory, bootstrapChat, optionalModule };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export { K as KvPort } from '../cacheEpoch-DknKn3S0.js';
|
|
2
|
+
export { C as CapabilityKind, a as CapabilityRegistry, b as CapabilityServices, c as ChatControllerRegistry, d as ChatScope, e as CreateEverfurRuntimeInput, f as CreateRuntimeOptions, E as EntitlementPoller, g as EntitlementPollerDeps, h as EntitlementSnapshot, i as EntitlementStore, j as EverfurRuntime, k as EverfurRuntimeConfig, L as LogLevel, l as LogRecord, m as LogSink, M as MIN_POLL_INTERVAL_SECONDS, N as NULL_SECURE_STORE, P as PollScheduler, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort, T as TimerHandle, o as createEntitlementPoller, p as createEverfurRuntime } from '../runtime-CBA-LvdM.js';
|
|
3
|
+
export { T as TelemetryPort, n as noopTelemetry } from '../TelemetryPort-BDNr00hu.js';
|
|
4
|
+
import { S as SuggestedPromptCategory, C as ChatController } from '../ChatController-CKdBvPj2.js';
|
|
5
|
+
export { a as ChatControllerDeps, b as ChatHandlers, c as ChatMessage, d as ChatSnapshot, e as ChatStatus, f as Citation, E as ErrorPolicyPort, M as MESSAGE_MAX_CHARS, g as SendOptions, T as Timers, h as createChatController, i as defaultErrorPolicy } from '../ChatController-CKdBvPj2.js';
|
|
6
|
+
export { C as CameraPort, a as CaptureOptions, M as MediaSource, u as unavailableCamera } from '../CameraPort-Cv31Pz7g.js';
|
|
7
|
+
export { F as FileHandle, a as FilePort } from '../FilePort-BabWrv7I.js';
|
|
8
|
+
import { P as PetRef, a as ConversationId } from '../ids-CJ1S6adf.js';
|
|
9
|
+
import '../resolve-Dq_4_agU.js';
|
|
10
|
+
import '../petsRepository-Bu18r2kK.js';
|
|
11
|
+
import '../EverfurResult-D92-uL82.js';
|
|
12
|
+
import '../requestFunnel-dio5OmR9.js';
|
|
13
|
+
import '../config-CiJ0PVBB.js';
|
|
14
|
+
import '../identity-DK9zORrG.js';
|
|
15
|
+
|
|
16
|
+
/** The settled outcome of a guarded optional-module load. Never a throw. */
|
|
17
|
+
type OptionalModule<T> = {
|
|
18
|
+
readonly available: true;
|
|
19
|
+
readonly module: T;
|
|
20
|
+
} | {
|
|
21
|
+
readonly available: false;
|
|
22
|
+
readonly module: null;
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Load an optional native peer behind a guard. `load` is the host-provided thunk (typically a `require`).
|
|
27
|
+
* An optional `validate` type-guard rejects a present-but-wrong-shape module (a version whose surface drifted)
|
|
28
|
+
* without throwing. Returns a settled result; NEVER throws.
|
|
29
|
+
*
|
|
30
|
+
* @param name human-readable peer name, only used to build the `reason` string.
|
|
31
|
+
* @param load the thunk that resolves the module (e.g. `() => require('expo-secure-store')`).
|
|
32
|
+
* @param validate optional shape guard; when it returns false the module is treated as unavailable.
|
|
33
|
+
*/
|
|
34
|
+
declare function optionalModule<T>(name: string, load: () => unknown, validate?: (candidate: unknown) => candidate is T): OptionalModule<T>;
|
|
35
|
+
|
|
36
|
+
interface ChatBootstrapInput {
|
|
37
|
+
/** omit => general conversation */
|
|
38
|
+
readonly petRef?: PetRef;
|
|
39
|
+
/** from KvPort auto-resume, if any */
|
|
40
|
+
readonly resumeConversationId?: ConversationId;
|
|
41
|
+
}
|
|
42
|
+
interface ChatBootstrapDiagnostics {
|
|
43
|
+
readonly candidateConversationIds: readonly string[];
|
|
44
|
+
/** a 403 was seen (observed, not an auth block) */
|
|
45
|
+
readonly sawForbidden: boolean;
|
|
46
|
+
/** a 401 was seen (auth block) */
|
|
47
|
+
readonly sawUnauthorized: boolean;
|
|
48
|
+
readonly sawConversationInitFailure: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface ChatBootstrapResult {
|
|
51
|
+
/** null => first send() will create + retry (warning set) */
|
|
52
|
+
readonly conversationId: ConversationId | null;
|
|
53
|
+
readonly petRef: PetRef | null;
|
|
54
|
+
readonly suggestedPrompts: readonly SuggestedPromptCategory[];
|
|
55
|
+
/** SAFE display copy: an auth failure blocks (code-derived, never raw wire text) */
|
|
56
|
+
readonly error: string | null;
|
|
57
|
+
/** SAFE display copy: conversation not pre-initialized; the first send retries */
|
|
58
|
+
readonly warning: string | null;
|
|
59
|
+
readonly diagnostics: ChatBootstrapDiagnostics;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Prime chat. Settles to a result; never throws. Parallel prompts + conversation prime, resumed id tried
|
|
63
|
+
* first. A 401 anywhere sets `error` (auth block). A 403 sets `sawForbidden` only. A conversation-init
|
|
64
|
+
* failure sets `warning` and leaves `conversationId` null so the first send recreates.
|
|
65
|
+
*/
|
|
66
|
+
declare function bootstrapChat(input: ChatBootstrapInput, deps: {
|
|
67
|
+
readonly controller: ChatController;
|
|
68
|
+
}): Promise<ChatBootstrapResult>;
|
|
69
|
+
|
|
70
|
+
export { type ChatBootstrapDiagnostics, type ChatBootstrapInput, type ChatBootstrapResult, ChatController, type OptionalModule, SuggestedPromptCategory, bootstrapChat, optionalModule };
|