@tinycloud/sdk-core 2.4.0-beta.10 → 2.4.0-beta.11
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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -959,6 +959,14 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
959
959
|
domain?: string | null | undefined;
|
|
960
960
|
avatarUrl?: string | null | undefined;
|
|
961
961
|
}>>;
|
|
962
|
+
/**
|
|
963
|
+
* TinyCloud hosts this session was created against. Persisted so a
|
|
964
|
+
* restored session resolves to the same node without re-running the
|
|
965
|
+
* registry/fallback resolution (or the wallet sign-in flow). Optional
|
|
966
|
+
* for backward compatibility with sessions persisted before this field
|
|
967
|
+
* existed — those restore and lazily re-resolve their hosts.
|
|
968
|
+
*/
|
|
969
|
+
tinycloudHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
962
970
|
}, "strip", z.ZodTypeAny, {
|
|
963
971
|
chainId: number;
|
|
964
972
|
address: string;
|
|
@@ -981,6 +989,7 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
981
989
|
verificationMethod: string;
|
|
982
990
|
spaces?: Record<string, string> | undefined;
|
|
983
991
|
} | undefined;
|
|
992
|
+
tinycloudHosts?: string[] | undefined;
|
|
984
993
|
}, {
|
|
985
994
|
chainId: number;
|
|
986
995
|
address: string;
|
|
@@ -1003,6 +1012,7 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
1003
1012
|
verificationMethod: string;
|
|
1004
1013
|
spaces?: Record<string, string> | undefined;
|
|
1005
1014
|
} | undefined;
|
|
1015
|
+
tinycloudHosts?: string[] | undefined;
|
|
1006
1016
|
}>;
|
|
1007
1017
|
type PersistedSessionData = z.infer<typeof PersistedSessionDataSchema>;
|
|
1008
1018
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -959,6 +959,14 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
959
959
|
domain?: string | null | undefined;
|
|
960
960
|
avatarUrl?: string | null | undefined;
|
|
961
961
|
}>>;
|
|
962
|
+
/**
|
|
963
|
+
* TinyCloud hosts this session was created against. Persisted so a
|
|
964
|
+
* restored session resolves to the same node without re-running the
|
|
965
|
+
* registry/fallback resolution (or the wallet sign-in flow). Optional
|
|
966
|
+
* for backward compatibility with sessions persisted before this field
|
|
967
|
+
* existed — those restore and lazily re-resolve their hosts.
|
|
968
|
+
*/
|
|
969
|
+
tinycloudHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
962
970
|
}, "strip", z.ZodTypeAny, {
|
|
963
971
|
chainId: number;
|
|
964
972
|
address: string;
|
|
@@ -981,6 +989,7 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
981
989
|
verificationMethod: string;
|
|
982
990
|
spaces?: Record<string, string> | undefined;
|
|
983
991
|
} | undefined;
|
|
992
|
+
tinycloudHosts?: string[] | undefined;
|
|
984
993
|
}, {
|
|
985
994
|
chainId: number;
|
|
986
995
|
address: string;
|
|
@@ -1003,6 +1012,7 @@ declare const PersistedSessionDataSchema: z.ZodObject<{
|
|
|
1003
1012
|
verificationMethod: string;
|
|
1004
1013
|
spaces?: Record<string, string> | undefined;
|
|
1005
1014
|
} | undefined;
|
|
1015
|
+
tinycloudHosts?: string[] | undefined;
|
|
1006
1016
|
}>;
|
|
1007
1017
|
type PersistedSessionData = z.infer<typeof PersistedSessionDataSchema>;
|
|
1008
1018
|
/**
|
package/dist/index.js
CHANGED
|
@@ -188,7 +188,15 @@ var PersistedSessionDataSchema = z2.object({
|
|
|
188
188
|
/** Schema version for migrations */
|
|
189
189
|
version: z2.string(),
|
|
190
190
|
/** Optional ENS data */
|
|
191
|
-
ens: EnsDataSchema2.optional()
|
|
191
|
+
ens: EnsDataSchema2.optional(),
|
|
192
|
+
/**
|
|
193
|
+
* TinyCloud hosts this session was created against. Persisted so a
|
|
194
|
+
* restored session resolves to the same node without re-running the
|
|
195
|
+
* registry/fallback resolution (or the wallet sign-in flow). Optional
|
|
196
|
+
* for backward compatibility with sessions persisted before this field
|
|
197
|
+
* existed — those restore and lazily re-resolve their hosts.
|
|
198
|
+
*/
|
|
199
|
+
tinycloudHosts: z2.array(z2.string()).optional()
|
|
192
200
|
});
|
|
193
201
|
var TinyCloudSessionSchema = z2.object({
|
|
194
202
|
/** User's Ethereum address */
|