@tinkerlandai/indiana-sdk 0.6.1 → 0.6.3

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +13 -9
  3. package/README.zh-CN.md +19 -16
  4. package/dist/{ai-usage-C4Eg6sSr.d.ts → ai-usage-B4W5m4Ie.d.ts} +346 -346
  5. package/dist/chunk-4K25DELJ.js +1 -0
  6. package/dist/chunk-CB63JLGT.js +1 -0
  7. package/dist/chunk-D7YHFS6B.js +4 -0
  8. package/dist/chunk-FF3LWJ26.js +11 -0
  9. package/dist/chunk-FVUPV6YE.js +1 -0
  10. package/dist/chunk-ISUXYPYL.js +1 -0
  11. package/dist/{chunk-GJGI34Q7.js → chunk-QG4GM4RI.js} +1 -1
  12. package/dist/chunk-U6S6AZM6.js +1 -0
  13. package/dist/chunk-VVSQKVE7.js +1 -0
  14. package/dist/chunk-YAMBRNJ2.js +1 -0
  15. package/dist/client-OYRHOMUQ.js +1 -0
  16. package/dist/{configuration-sync-BWn1YZ78.d.ts → configuration-sync-C2mytNwU.d.ts} +59 -41
  17. package/dist/funnel-runtime-host-KPYLOYYN.js +1 -0
  18. package/dist/{funnel-runtime-start-CKVuIOFs.d.ts → funnel-runtime-start-CVb2YonU.d.ts} +826 -789
  19. package/dist/iam.d.ts +131 -0
  20. package/dist/iam.js +1 -0
  21. package/dist/index.d.ts +639 -603
  22. package/dist/index.js +1 -1
  23. package/dist/native-shell.js +1 -1
  24. package/dist/openrouter.d.ts +2 -2
  25. package/dist/openrouter.js +1 -1
  26. package/dist/page.d.ts +19 -18
  27. package/dist/page.js +1 -1
  28. package/dist/paywall-5WU6PX5C.js +1 -0
  29. package/dist/popup.d.ts +18 -17
  30. package/dist/popup.js +174 -15
  31. package/dist/server.d.ts +4 -4
  32. package/dist/server.js +1 -1
  33. package/dist/src-U7PBAUBN.js +1 -0
  34. package/dist/visual.d.ts +10 -1
  35. package/dist/visual.js +2 -1
  36. package/package.json +15 -8
  37. package/dist/chunk-46S4DTCD.js +0 -11
  38. package/dist/chunk-4JBIKJMU.js +0 -4
  39. package/dist/chunk-BIFEEVQO.js +0 -1
  40. package/dist/chunk-FRZNOXK6.js +0 -1
  41. package/dist/chunk-OHDY27EI.js +0 -1
  42. package/dist/chunk-U3TULZCD.js +0 -1
  43. package/dist/funnel-runtime-host-YXWVCKAJ.js +0 -1
  44. package/dist/paywall-GRSGZLVG.js +0 -1
  45. package/dist/src-UWBQFGYH.js +0 -1
  46. package/dist/visual-editor-agent-WW65CMKW.js +0 -1
  47. package/dist/{customer-page-OBB82t8_.d.ts → customer-page-B4FGCVpt.d.ts} +4 -4
  48. package/dist/{screen-BbLE1OMn.d.ts → screen-16d-xADb.d.ts} +160 -160
package/dist/iam.d.ts ADDED
@@ -0,0 +1,131 @@
1
+ import * as zod_mini from 'zod/mini';
2
+ import { z } from 'zod';
3
+
4
+ declare const captureSnapshotSchema: zod_mini.ZodMiniObject<{
5
+ format: z.ZodLiteral<"indiana-runtime-snapshot">;
6
+ schemaVersion: z.ZodLiteral<1>;
7
+ collector: zod_mini.ZodMiniObject<{
8
+ name: z.ZodLiteral<"indiana-bounded-dom">;
9
+ version: z.ZodLiteral<2>;
10
+ buildSha256: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strict>;
12
+ sourceVersionId: z.ZodUUID;
13
+ manifestDigest: z.ZodString;
14
+ pageKey: z.ZodString;
15
+ routeTemplate: z.ZodString;
16
+ sequence: z.ZodNumber;
17
+ label: z.ZodString;
18
+ viewport: zod_mini.ZodMiniObject<{
19
+ width: z.ZodNumber;
20
+ height: z.ZodNumber;
21
+ dpr: z.ZodNumber;
22
+ }, z.core.$strict>;
23
+ privacy: z.ZodLiteral<"masked-default-v2">;
24
+ contentHash: z.ZodString;
25
+ previousContentHash: z.ZodNullable<z.ZodString>;
26
+ document: zod_mini.ZodMiniObject<{
27
+ nodes: z.ZodArray<zod_mini.ZodMiniObject<{
28
+ id: z.ZodNumber;
29
+ parentId: z.ZodNullable<z.ZodNumber>;
30
+ kind: z.ZodEnum<{
31
+ text: "text";
32
+ element: "element";
33
+ }>;
34
+ tag: z.ZodNullable<z.ZodString>;
35
+ text: z.ZodNullable<z.ZodString>;
36
+ attributes: z.ZodRecord<z.ZodString, z.ZodString>;
37
+ shadow: z.ZodBoolean;
38
+ }, z.core.$strict>>;
39
+ css: z.ZodString;
40
+ shadowCss: z.ZodArray<zod_mini.ZodMiniObject<{
41
+ hostId: z.ZodNumber;
42
+ css: z.ZodString;
43
+ }, z.core.$strict>>;
44
+ scroll: zod_mini.ZodMiniObject<{
45
+ x: z.ZodNumber;
46
+ y: z.ZodNumber;
47
+ }, z.core.$strict>;
48
+ }, z.core.$strict>;
49
+ gaps: z.ZodArray<z.ZodString>;
50
+ metrics: zod_mini.ZodMiniObject<{
51
+ maxSliceMs: z.ZodNumber;
52
+ totalWorkMs: z.ZodNumber;
53
+ elapsedMs: z.ZodNumber;
54
+ }, z.core.$strict>;
55
+ }, z.core.$strict>;
56
+ type CaptureSnapshot = z.infer<typeof captureSnapshotSchema>;
57
+
58
+ declare class CaptureRefusal extends Error {
59
+ code: string;
60
+ metrics?: {
61
+ maxSliceMs: number;
62
+ totalWorkMs: number;
63
+ elapsedMs: number;
64
+ phase: string;
65
+ } | undefined;
66
+ constructor(code: string, metrics?: {
67
+ maxSliceMs: number;
68
+ totalWorkMs: number;
69
+ elapsedMs: number;
70
+ phase: string;
71
+ } | undefined);
72
+ }
73
+
74
+ type Metrics = NonNullable<CaptureRefusal["metrics"]>;
75
+ type CaptureOptions = {
76
+ /** Trusted merchant configuration, never copied from the incoming capability. */
77
+ environmentId: string;
78
+ grant: string;
79
+ baseUrl: string;
80
+ document?: Document;
81
+ signal?: AbortSignal;
82
+ onStatus?: (status: {
83
+ state: "idle" | "capturing" | "uploading" | "waiting" | "paused" | "stopped";
84
+ reason?: string;
85
+ snapshots: number;
86
+ pending: number;
87
+ metrics?: Metrics;
88
+ expiresAt?: number;
89
+ }) => void;
90
+ /** A reviewed local transport must honor cancellation. The default uses capability-only HTTP. */
91
+ transport?: (snapshot: CaptureSnapshot, bytes: Uint8Array, signal: AbortSignal, requestId: string) => Promise<void>;
92
+ };
93
+
94
+ declare function installCaptureActivation(options: {
95
+ baseUrl: string;
96
+ environmentId: string;
97
+ controls?: boolean;
98
+ nonce?: string;
99
+ document?: Document;
100
+ prepare?: () => Promise<void>;
101
+ onStatus?: (status: {
102
+ state: string;
103
+ reason?: string;
104
+ snapshots: number;
105
+ }) => void;
106
+ onAuthoringChange?: (active: boolean) => void;
107
+ }): {
108
+ destroy(): void;
109
+ checkpoint(_label?: string): void;
110
+ retry(): void;
111
+ };
112
+
113
+ /** Optional post-build release descriptor. Keeps bundler CSS output out of a digest/rebuild cycle. */
114
+ declare function loadAppManifestRelease(path: string, document: Document, signal: AbortSignal): Promise<string>;
115
+
116
+ declare function installAppManifestRelease(release: string, target?: Document): {
117
+ attributes: {
118
+ indianaAppManifestRelease: string;
119
+ };
120
+ destroy(): void;
121
+ };
122
+ /** Lazy, explicitly authorized runtime collection; ordinary visitors do not load the recorder. */
123
+ declare function startAppManifestCapture(options: CaptureOptions): Promise<{
124
+ checkpoint(nextLabel?: string): void;
125
+ retry(): void;
126
+ destroy: (reason?: string) => void;
127
+ readonly paused: boolean;
128
+ readonly snapshots: number;
129
+ }>;
130
+
131
+ export { type CaptureOptions, installAppManifestRelease, installCaptureActivation, loadAppManifestRelease, startAppManifestCapture };
package/dist/iam.js ADDED
@@ -0,0 +1 @@
1
+ import{a,b,c,d}from"./chunk-VVSQKVE7.js";import"./chunk-4K25DELJ.js";export{c as installAppManifestRelease,a as installCaptureActivation,b as loadAppManifestRelease,d as startAppManifestCapture};