@idetik/core 0.3.0 → 0.4.1

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.d.ts CHANGED
@@ -640,7 +640,6 @@ declare class Idetik {
640
640
  start(): this;
641
641
  private animate;
642
642
  stop(): void;
643
- private updateSize;
644
643
  }
645
644
 
646
645
  declare abstract class Renderer {
@@ -1235,6 +1234,19 @@ declare const Image$1: z.ZodObject<{
1235
1234
  }>;
1236
1235
  type Image$1 = z.infer<typeof Image$1>;
1237
1236
 
1237
+ type AwsCredentials = {
1238
+ accessKeyId: string;
1239
+ secretAccessKey: string;
1240
+ sessionToken?: string;
1241
+ };
1242
+ type S3FetchStoreProps = {
1243
+ url: string;
1244
+ region?: string;
1245
+ credentials?: AwsCredentials;
1246
+ overrides?: RequestInit;
1247
+ useSuffixRequest?: boolean;
1248
+ };
1249
+
1238
1250
  type Version$1 = "v2" | "v3";
1239
1251
  type ZarrArrayParams = {
1240
1252
  arrayPath: string;
@@ -1242,11 +1254,9 @@ type ZarrArrayParams = {
1242
1254
  } & ({
1243
1255
  type: "fetch";
1244
1256
  url: string;
1245
- fetchOptions?: {
1246
- overrides?: RequestInit;
1247
- useSuffixRequest?: boolean;
1248
- };
1249
- } | {
1257
+ } | ({
1258
+ type: "s3";
1259
+ } & S3FetchStoreProps) | {
1250
1260
  type: "filesystem";
1251
1261
  directoryHandle: FileSystemDirectoryHandle;
1252
1262
  path: string;
@@ -1585,6 +1595,9 @@ type HttpOmeZarrImageSourceProps = {
1585
1595
  url: string;
1586
1596
  version?: Version;
1587
1597
  };
1598
+ type S3OmeZarrImageSourceProps = S3FetchStoreProps & {
1599
+ version?: Version;
1600
+ };
1588
1601
  type FileSystemOmeZarrImageSourceProps = {
1589
1602
  directory: FileSystemDirectoryHandle;
1590
1603
  version?: Version;
@@ -1603,6 +1616,17 @@ declare class OmeZarrImageSource {
1603
1616
  * @param version OME-Zarr version
1604
1617
  */
1605
1618
  static fromHttp(props: HttpOmeZarrImageSourceProps): OmeZarrImageSource;
1619
+ /**
1620
+ * Creates an OmeZarrImageSource from an S3 HTTP(S) URL.
1621
+ *
1622
+ * @param url URL of Zarr root
1623
+ * @param version OME-Zarr version
1624
+ * @param credentials AWS credentials for S3 authentication (will generate signatures per-request)
1625
+ * @param region AWS region for S3 bucket (e.g., 'us-east-1')
1626
+ * @param overrides RequestInit overrides to customize fetch behavior (e.g., custom headers for S3 authentication)
1627
+ * @param useSuffixRequest Whether to use suffix requests for range queries
1628
+ */
1629
+ static fromS3(props: S3OmeZarrImageSourceProps): OmeZarrImageSource;
1606
1630
  /**
1607
1631
  * Creates an OmeZarrImageSource from a local filesystem directory.
1608
1632
  *