@oxyhq/core 9.0.0 → 9.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/README.md +1 -3
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/models/interfaces.d.ts +15 -0
- package/dist/types/session/SessionClient.d.ts +2 -2
- package/package.json +2 -2
- package/src/models/interfaces.ts +15 -0
- package/src/session/SessionClient.ts +2 -2
|
@@ -453,6 +453,16 @@ export interface ServiceAssetMetadata {
|
|
|
453
453
|
mime: string;
|
|
454
454
|
size: number;
|
|
455
455
|
status: 'active' | 'trash';
|
|
456
|
+
/** Intrinsic width in pixels when variant/metadata extraction has run. */
|
|
457
|
+
width?: number;
|
|
458
|
+
/** Intrinsic height in pixels when variant/metadata extraction has run. */
|
|
459
|
+
height?: number;
|
|
460
|
+
/** Playback duration in seconds for video/audio assets. */
|
|
461
|
+
durationSec?: number;
|
|
462
|
+
/** Derived once from width/height at asset processing time. */
|
|
463
|
+
orientation?: 'portrait' | 'landscape' | 'square';
|
|
464
|
+
/** width / height, derived at asset processing time. */
|
|
465
|
+
aspectRatio?: number;
|
|
456
466
|
}
|
|
457
467
|
/**
|
|
458
468
|
* Reverse-lookup asset metadata returned by `POST /assets/service/by-sha256`.
|
|
@@ -476,6 +486,11 @@ export interface ServiceAssetMetadataBySha {
|
|
|
476
486
|
size: number;
|
|
477
487
|
status: 'active' | 'trash';
|
|
478
488
|
url?: string;
|
|
489
|
+
width?: number;
|
|
490
|
+
height?: number;
|
|
491
|
+
durationSec?: number;
|
|
492
|
+
orientation?: 'portrait' | 'landscape' | 'square';
|
|
493
|
+
aspectRatio?: number;
|
|
479
494
|
}
|
|
480
495
|
/**
|
|
481
496
|
* Account storage usage (server-side usage, not local AsyncStorage)
|
|
@@ -28,8 +28,8 @@ export interface SessionClientOptions {
|
|
|
28
28
|
onUnauthenticated?: () => void;
|
|
29
29
|
/**
|
|
30
30
|
* Statically-injected `socket.io-client` factory (its `io` export).
|
|
31
|
-
* `@oxyhq/services`
|
|
32
|
-
*
|
|
31
|
+
* `@oxyhq/services` lists `socket.io-client` as a real dependency and
|
|
32
|
+
* passes `io` in directly, so realtime session sync never
|
|
33
33
|
* depends on a runtime dynamic `import('socket.io-client')` of a bare
|
|
34
34
|
* specifier — which is bundler-fragile in Metro/Expo-web and Vite when
|
|
35
35
|
* `@oxyhq/core` is consumed as its published dist (the import resolves to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "OxyHQ SDK Foundation — API client, authentication, cryptographic identity, and shared utilities",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@oxyhq/contracts": "^0.13.0",
|
|
98
|
-
"@oxyhq/protocol": "^0.1.
|
|
98
|
+
"@oxyhq/protocol": "^0.1.3",
|
|
99
99
|
"bip39": "^3.1.0",
|
|
100
100
|
"buffer": "^6.0.3",
|
|
101
101
|
"elliptic": "^6.6.1",
|
package/src/models/interfaces.ts
CHANGED
|
@@ -520,6 +520,16 @@ export interface ServiceAssetMetadata {
|
|
|
520
520
|
mime: string;
|
|
521
521
|
size: number;
|
|
522
522
|
status: 'active' | 'trash';
|
|
523
|
+
/** Intrinsic width in pixels when variant/metadata extraction has run. */
|
|
524
|
+
width?: number;
|
|
525
|
+
/** Intrinsic height in pixels when variant/metadata extraction has run. */
|
|
526
|
+
height?: number;
|
|
527
|
+
/** Playback duration in seconds for video/audio assets. */
|
|
528
|
+
durationSec?: number;
|
|
529
|
+
/** Derived once from width/height at asset processing time. */
|
|
530
|
+
orientation?: 'portrait' | 'landscape' | 'square';
|
|
531
|
+
/** width / height, derived at asset processing time. */
|
|
532
|
+
aspectRatio?: number;
|
|
523
533
|
}
|
|
524
534
|
|
|
525
535
|
/**
|
|
@@ -544,6 +554,11 @@ export interface ServiceAssetMetadataBySha {
|
|
|
544
554
|
size: number;
|
|
545
555
|
status: 'active' | 'trash';
|
|
546
556
|
url?: string;
|
|
557
|
+
width?: number;
|
|
558
|
+
height?: number;
|
|
559
|
+
durationSec?: number;
|
|
560
|
+
orientation?: 'portrait' | 'landscape' | 'square';
|
|
561
|
+
aspectRatio?: number;
|
|
547
562
|
}
|
|
548
563
|
|
|
549
564
|
/**
|
|
@@ -36,8 +36,8 @@ export interface SessionClientOptions {
|
|
|
36
36
|
onUnauthenticated?: () => void;
|
|
37
37
|
/**
|
|
38
38
|
* Statically-injected `socket.io-client` factory (its `io` export).
|
|
39
|
-
* `@oxyhq/services`
|
|
40
|
-
*
|
|
39
|
+
* `@oxyhq/services` lists `socket.io-client` as a real dependency and
|
|
40
|
+
* passes `io` in directly, so realtime session sync never
|
|
41
41
|
* depends on a runtime dynamic `import('socket.io-client')` of a bare
|
|
42
42
|
* specifier — which is bundler-fragile in Metro/Expo-web and Vite when
|
|
43
43
|
* `@oxyhq/core` is consumed as its published dist (the import resolves to
|